Next Article in Journal
Investigation and Field Measurements for Demand Side Management Control Technique of Smart Air Conditioners located at Residential, Commercial, and Industrial Sites
Next Article in Special Issue
A Novel Hybrid Transfer Learning Framework for Dynamic Cutterhead Torque Prediction of the Tunnel Boring Machine
Previous Article in Journal
Simulators for Designing Energy-Efficient Power Supplies Based on Solar Panels
Previous Article in Special Issue
Power Flow Optimization and Economic Analysis Based on High Voltage Phase Shifting Transformer
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Application of Block Sparse Bayesian Learning in Power Quality Steady-State Data Compression

1
College of Electrical Engineering and Automation, Anhui University, Hefei 232000, China
2
Power Quality Engineering Research Center, Ministry of Education, Hefei 232000, China
3
New Smart City High-Quality Power Supply Joint Laboratory of China Southern Power Grid, Shenzhen Power Supply Co., Ltd., Shenzhen 518000, China
*
Author to whom correspondence should be addressed.
Energies 2022, 15(7), 2479; https://doi.org/10.3390/en15072479
Submission received: 3 February 2022 / Revised: 19 March 2022 / Accepted: 25 March 2022 / Published: 28 March 2022
(This article belongs to the Special Issue Energy, Electrical and Power Engineering 2021-2022)

Abstract

:
In modern power systems, condition monitoring equipment generates a great deal of steady-state data that are too large for data transmission and, thus, data compression is needed. Therefore, there is a balance to strike between compression quality and data accuracy. Greedy algorithms are effective but suffer from low data reconstruction accuracy. This paper proposes a block sparse Bayesian learning (BSBL)-based data compression method. Based on the prior distribution and posterior probability of the sparse signals, it uses the Bayesian formula to excavate the block structure of these signals. This paper also adds two indicators to the evaluation process to validate the proposed method. The proposed method is effective in terms of signal-to-noise ratio (SNR), relative root mean square error (RRMSE), amplitude error, energy recovery percentage (ERP), and angle error. The first three indicate better performance of the proposed method than the traditional method by giving the same compression ratio. Therefore, the method validates the possibility of a more accurate and economical solution to power quality assurance.

1. Introduction

As more power electronic equipment and impact loads are connected to the power system, more power quality problems also emerge. When investigating and solving these problems, the data from the time of the accident are needed. When data cannot be stored indefinitely, methods to achieve better reconstruction performance at a low compression ratio become a key issue [1,2].
The current methods for power quality data compression are divided into the traditional methods and those based on compressed sensing (CS). The traditional method is based on wavelet theory. Fundamentally, it is to keep the coefficients larger than the set threshold and discard the coefficients smaller than the set threshold after a wavelet transformation of the data [3,4]. It is found that the magnitudes of wavelet-transformed coefficients associated with disturbance events are much larger than those of disturbance-free coefficients; this fact leads to an effective method to compress power quality disturbance data [3]. The compressed data size is one-sixth to one-third of that of the original data. Ref. [5] uses two-dimensional lifting wavelet transformations based on a one-dimensional wavelet to improve the computational efficiency of the compression algorithm. However, this method is based on the Nyquist theorem, and its high sampling rate and high hardware cost will hinder the efficiency of data transmission and analysis.
Based on the above problems, Donoho proposed the compressed sensing theory [6]. It is known from the CS theory that after the signal is sparsely transformed, the signal can be sampled, compressed, and reconstructed far below the standard of the Nyquist sampling frequency. Presently, many methods for dealing with power quality problems are based on CS theory.
Greedy algorithms represented by the orthogonal matching pursuit (OMP), sparsity adaptive matching pursuit (SAMP), and compressed sampling matching pursuit (CoSAMP) algorithms are widely used, which could compress power quality data. The core idea is to go step-by-step and make the best choice based on an optimization measure according to the current situation [7,8,9,10,11].
Sparse Bayesian learning (SBL) and its improved algorithms are also based on CS theory. They combine existing data to make short-term predictions, compress and reconstruct data, or classify and identify events. Ref. [12] combines the sparse Bayesian learning and extreme learning machine (ELM) algorithms to propose an improved algorithm for power quality event classification, and the test data proves that the algorithm has a faster calculation speed and generalization performance. Ref. [13] proposes a hyperparameter adaptive group Bayesian learning algorithm, which can locate the harmonic source with a small number of measured values and estimate the magnitude and angle of the harmonic source. Ref. [14] proposes a joint clustering and sparse Bayesian learning algorithm when the clustering partition is unknown. The method can adaptively divide clusters, and different clusters can learn different time correlation coefficients, thereby reducing the interference between clusters. Ref. [15] proposes a complex spatiotemporal sparse Bayesian learning (CSTSBL) algorithm to reconstruct angular positions using the spatiotemporal correlation structure of the solution matrix, which can achieve high accuracy and resolution performance at low signal-to-noise ratios.
In addition to statistical features, general sparse vectors also have certain structural features that can provide additional information for algorithm convergence. Based on this idea, the block SBL (BSBL) algorithm is applied to regression and classification in machine learning. Ref. [16] uses the variational Bayesian block sparse method to estimate the radar target scattering center and achieves good results in combination with simulation. Ref. [17] proposes a clustered block sparse Bayesian learning (CBSBL) algorithm for millimeter wave channel estimation by exploiting the correlation between mm wave channels. The algorithm improves the accuracy and robustness of mm wave channel estimation.
BSBL can not only recover signals with block structure but also consider intra-block correlation. Therefore, its recovery of sparse signals can be good. It has been successfully applied to monitor fetal electrocardiograms and electroencephalograms via wireless body area networks [18]. However, there is not much research on the related field of power quality signals. Based on this, this paper proposes a reconstruction method that combines BSBL and sparsity in the transform domain. Different transform domains are used to sparsely transform different power quality steady-state signals. The experimental results using the constructed signal and the measured signal show that the BSBL algorithm outperforms the traditional CS-based algorithms in relative performance indicators.
However, the composition of actual power quality is complex. If it is compressed using a greedy algorithm, it is difficult to pre-estimate the sparsity of the data before finding a suitable dictionary matrix. This causes larger errors in the reconstruction after data compression. Aiming to solve this problem, this paper proposes a BSBL method for compressing steady-state power quality data. It uses the known prior distribution and posterior probability of the signal to mine the correlation within the block and improve the reconstruction accuracy of the signal. For indicators of the reconstructed signal performance comparison, SNR (signal-to-noise ratio), ERP (energy recovery percentage), and RRMSE (relative root mean square error) are more commonly used. However, there is usually a lack of indicators established by combining its signal characteristics to analyze the reconstruction performance. In this paper, two performance indicators are proposed according to the characteristics of the power quality steady-state signal and the relative standard, and their practicability is demonstrated. The Section 2 briefly introduces the BSBL framework and the concept of power quality steady-state data. The Section 3 introduces the flow chart of BSBL and the proposed performance indicators. The Section 4 provides case studies and performance comparisons with other algorithms. The Section 5 gives the recommended transform domain and CR values for the proposed algorithm in different engineering signals.

2. BSBL Algorithm and Power Quality Steady-State Data

2.1. CS Theory

CS theory points out that when a signal f R N × 1 of length N is sparse or its sparse representation on a certain orthogonal transform domain Ψ is x, f = ψ x . Using a measurement matrix Φ R M × N , the measurement signal of f is
y = Φ f = Φ ψ x = A x
where M is the signal observation dimension, and M < < N . Furthermore, A = Φ ψ is the sensing matrix, and y is the observation value of the sparse x under A. Ref. [18] used mathematics to prove that the measurement matrix Φ must meet the requirements of the restricted isometry property (RIP):
( 1 δ ) | | y | | 2 2 | | Φ y | | 2 2 ( 1 + δ ) | | y | | 2 2
where δ is the restricted equidistant constant and δ ( 0 , 1 ) and | | y | | 2 are the norms of y. The equivalent condition of RIP is that y is not related to Φ. The Gaussian random matrix, Bernoulli random matrix, sparse binary matrix, and other matrices are nearly irrelevant to any sparse matrix at present.

2.2. BSBL Framework

For the sparse x in Equation (1), its non-zero elements often have block structure characteristics [19]. In this structure, suppose it is divided into s continuous blocks, the number of elements in the i-th block is t i , and there are
N = i = 1 s t i
When the number of elements in each block is equal, there are
x = [ x 1 , x 2 , x t t   datas , x t + 1 , x t + 2 , x 2 t t   datas , , x ( s 1 ) t + 1 , x ( s 1 ) t + 2 , x s t t   datas ]
That is, t 1 = t 2 = = t s and N = s t , assuming that there are k blocks in these blocks that are non-zero ( k < < s ), then this vector is called block k-sparse.
Assuming that the blocks are independent of each other and obey Gaussian distribution,
p ( x i ; γ i , B i ) ~ N ( 0 , γ i B i ) , i = 1 , 2 , , s
where γ i is a hyperparameter. Most γ i tend to zero, and γ i 0 . B i is a positive definite matrix. The prior distribution with γ i and B i as parameters are
p ( x ; { γ i , B i } i = i s ) ~ N ( 0 , Σ 0 )
0 = d i a g { γ 1 B 1 , γ 2 B 2 , , γ s B s } = ( γ 1 B 1 0 0 γ s B s )
Therefore, the compression sampling process for signal x is
y = A x + ε
where ε is the noise signal in the sampling process and satisfies the Gaussian distribution with a mean value of 0 and a variance of λ ( λ > 0 ),
p ( ε i ) ~ N ( 0 , λ E )
where E is the identity matrix. According to the Bayesian formula, the posterior probability distribution of x is obtained as a Gaussian distribution with mean μ x and variance Σ x :
p ( x | y ; λ , { γ i , B i } i = 1 s ) ~ N ( μ x , Σ x )
μ x = 1 λ Σ x A T y
Σ x = ( Σ 0 1 + 1 λ A T A ) 1 = Σ 0 Σ 0 A T ( λ E + A Σ 0 A T ) 1 A Σ 0
Thus far, the maximum posterior probability estimate of x is x ^ , and x = μ x .

2.3. Steady-State Power Quality Signal

The steady-state indicators of power quality include voltage deviation, frequency deviation, harmonics, three-phase voltage unbalance, voltage fluctuation and flicker, etc. [20]. In this paper, common and harmful harmonics, voltage fluctuations, and flicker are used to construct the steady-state signal of power quality.
After performing a discrete Fourier transform (DFT) on a periodic non-sinusoidal AC signal, the components greater than integer multiples of the fundamental frequency are called harmonics, and the non-integer multiples are called interharmonics. The analytical expression is
x ( t ) = h = 0.1 M A h cos ( 2 π f 0 h t + φ h )
where h is the (inter)harmonic order, f 0 is the power frequency, A h and φ h are the amplitude and phase of the corresponding order, respectively.
Voltage fluctuation is the phenomenon of a series of changes or continuous changes in the root mean square value of the voltage. Flicker is the cumulative effect of voltage fluctuations over a period of time, which is reflected by the visual perception caused by unstable light illumination. Flicker becomes a kind of harm caused by voltage fluctuations. Because the voltage fluctuation period is generally greater than the power frequency period, the power frequency signal can be regarded as the carrier wave, and the fluctuation signal can be regarded as the modulating wave. The analytical expression of the voltage fluctuation is as follows:
x ( t ) = U 0 [ 1 + m cos ( 2 π f s t + φ s ) ] cos ( 2 π f 0 t + φ 0 )
where U 0 is the power frequency voltage amplitude, m is the modulation indicator, and m < 1, f s and φ s are the modulation wave frequency and initial phase, respectively.

3. Algorithm Implementation Process and Evaluation Indicators

3.1. Parameter Learning Rules under the BSBL Algorithm

In order to determine the value of the hyperparameter Θ = ( γ i , B i , λ ) (i = 1, 2, 3, …, s), expectation-maximization (EM) can be used to obtain the maximum value of p ( y ; Θ ) [21,22]. The problem of obtaining the maximum value of p ( y ; Θ ) can also be transformed into obtaining the minimum value of L ( Θ ) .
L ( Θ ) = y T Σ y 1 y + log | Σ y |
Σ y = λ E + A Σ 0 A T
For signals with no noise or noise close to 0, λ can be set to 0 directly. When the signal-to-noise ratio (SNR) is low, the learning rule is [23]
λ y A μ x 2 2 + i = 1 s T r ( Σ x i ( A i ) T A i ) M
where the symbol “ ” means assigning the result on the right to the symbol on the left. Furthermore, Tr is the trace of the matrix, A i is the sub-matrix corresponding to the i-th block of x, and Σ x is the i-th main diagonal block matrix of the Σ x . In other cases, the learning rule of λ is
λ | | y A μ x | | 2 2 + T r ( Σ x A T A ) M
The learning rules of B i are
B i Σ x i + μ x i ( μ x i ) T γ i
However, for different block numbers i, if different B i are used, over-fitting will occur. Therefore, for any i, the learning rule of setting the average value of the parameters is
B 1 m >∑ i = 1 s Σ x i + μ x i ( μ x i ) T γ i
where μ x i is the i-th block of μ x .
At the same time, in order to better find the intra-block correlation, a first-order auto-regressive model can be used. At this time, the matrix form in the corresponding block is
B = Toeplitz ( [ 1 , r , r 2 , r t 1 ] ) = ( 1 r r t 1 r 1 r t 2 r t 1 r t 2 1 )
where Toeplitz ( [ 1 , r , r 2 , r t 1 ] ) is the corresponding Toeplitz matrix, and r is the autoregressive coefficient.
The learning rules of γ i are
γ i 1 t i T r [ B i 1 ( Σ x i + μ x i ( μ x i ) T ) ]

3.2. The BSBL Algorithm Process

The BSBL algorithm process calculates μ x and Σ x , according to Equations (11) and (12), as well as the initialization parameters or return values. Then, the parameters λ , B , and γ i are continuously iterated according to the method shown in Section 2.3 until the μ x and μ x calculated twice in a row are less than a certain threshold μ t h , the final μ x is output, and the iteration ends. The flowchart is shown in Figure 1.
It can be seen from the flowchart that BSBL will perform better due to the exploration of the intra-block correlation of the signal and continuous parameter iteration. At the same time, since each iteration will find the inverse of the Σ x (Equation (12)), the running time will inevitably increase.

3.3. Evaluation Indicators of Power Quality Data Compression Performance

The compression performance evaluation indicator is an objective evaluation of the performance of the compression algorithm, which can judge the approximation degree of the reconstructed signal to the original signal. The compression performance evaluation indicators generally include the compression ratio (CR), SNR, ERP, and RRMSE.
(1)
The calculation equation of the CR is
CR = N R N O × 100 %
where N R and N O are the reconstructed signal and the original signal, respectively.
(2)
The equation for calculating the SNR is:
SNR = 10 lg i = 1 N [ x ( i ) ] 2 i = 1 N [ x ( i ) x ¯ ( i ) ] 2
where x ( i ) is the original signal without white noise, and x ¯ ( i ) is the reconstructed signal; the unit of the SNR is the decibel (dB). The larger the value, the smaller the noise contained in the reconstructed signal.
(3)
The calculation equation of the ERP is
ERP = i = 1 N [ x ¯ ( i ) ] 2 i = 1 N [ x ( i ) ] 2 × 100 %
The closer the ERP is to 1, the closer the energy recovery is to the original signal.
(4)
The calculation equation of relative root mean square error is
RRMSE = i = 1 N [ x ( i ) x ¯ ( i ) ] 2 i = 1 N [ x ( i ) ] 2 × 100 %
The smaller the RRMSE, the smaller the relative error of the reconstructed signal.
The above indicators are only proposed for compression and reconstruction errors of general signals. However, the voltage harmonics of the power quality steady-state signal will cause voltage deviation; the amplitude and phase of the harmonics will affect the analysis of the three-phase voltage imbalance. In addition to the error between the reconstructed and original signals, we must also evaluate the characteristics of the power quality signal. For example, Section 5.2 of IEC41000-4-30 Testing and measurement techniques—Power quality measurement methods stipulates that the measurement uncertainty of the supply voltage magnitude should not exceed 0.1% of Udin (declared input voltage). Meanwhile, Section 5.1 of IEC41000-4-7 Testing and measurement techniques—General guide on harmonics and interharmonics measurements and instrumentation, for power supply systems and equipment connected thereto stipulates that the measurement error of the harmonic voltage/current of the Class I harmonic measuring instrument shall not exceed 5%. According to the requirements of these standards and the characteristics of the power quality signal, two new evaluation indicators are proposed: the relative error of the harmonic amplitude (hereafter referred to as the amplitude error) and the relative error of the harmonic phase angle (hereafter referred to as the phase angle error). The calculation equations are
Amplitude   error = h = 0.1 N ( A h A ^ h ) 2 h = 0.1 N A h 2 × 100 %
Angle   error = h = 0.1 N ( φ h φ h ) 2 h = 0.1 N φ h 2 × 100 %
where A h and φ h are divided into the amplitude and phase angle of each harmonic and interharmonic of the original data after the DFT. The values of A ^ h and φ ^ h are divided into the amplitude and phase angle of each harmonic and interharmonic of the reconstructed signal after the DFT. Thus, amplitude and phase angle errors can reflect the degree of harmonic distortion as the judgment basis after signal compression and reconstruction and meet the relevant national standards, thereby increasing the credibility of the algorithm performance evaluation results and engineering applications.

4. Case Study

4.1. Construction of the Steady-State Power Quality Signal

This article takes the signal length N = 2560 (N is the number of sampling points) and the signal sampling frequency of 12.8 kHz, and Gaussian white noise is added to the signal to make the SNR = 30 dB. For the choice of the two parameters, μ t h and block length, their being too large or too small will degrade the relative performance of the results. Therefore, a sensitivity analysis was carried out on these parameters by using synthetic data and measured data. The results are shown in Figure 2 and Figure 3. It can be seen from Figure 2 that the value of the SNR gradually decreases with the increase of μ t h . When μ t h = 10 4 , the value of the SNR can be greater than 30 dB. It can be seen from the comparison in Figure 3 that the value of the SNR first increases and then decreases with the increase of block length. When block   length = 128 , the SNR of both data can be greater than 30 dB. Therefore, we set μ t h = 10 4 and block   length = 128 . The measurement matrix was selected as a sparse binary matrix, and the transform domains used by the signal were the DFT domain and the discrete cosine transform (DCT) domain. Suppose that the harmonic signal contains harmonics of 250 Hz, 350 Hz, 1900 Hz, 2100 Hz, 3950 Hz, and 4050 Hz and inter harmonics of 85 Hz and 115 Hz. In the voltage fluctuation signal, we set m = 0.1, f s = 20 Hz , φ s = π 3 . The signal waveforms and expressions are shown below (normalized basic amplitude to 1 p.u.) and in Figure 4.
x 1 ( t ) = sin ( 2 π × 50 t ) + 0.1 sin ( 2 π × 250 t 2 π / 3 ) + 0.1 sin ( 2 π × 350 t + 2 π / 3 ) + 0.08 sin ( 2 π × 1900 t + 5 π / 6 ) + 0.08 sin ( 2 π × 2100 t + 5 π / 6 ) + 0.05 sin ( 2 π × 3950 t + π / 3 ) + 0.05 sin ( 2 π × 4050 t + π / 3 ) + 0.06 sin ( 2 π × 85 t ) + 0.06 sin ( 2 π × 115 t )
x 2 ( t ) = [ 1 + 0.1 cos ( 10 π t ) + π / 3 ] × cos ( 100 π t )
For harmonic signals and voltage fluctuation signals, the DFT and DCT were used to perform sparse transformations and then compressed and reconstructed. The coefficients in the DFT and DCT domains are shown in Figure 5 and Figure 6, respectively.
It can be seen from Figure 5 and Figure 6 that after the transformation of the above two signals, the non-sparse components in the DCT domain were more concentrated in several blocks. Therefore, after compression and reconstruction by the BSBL algorithm, its performance should be slightly better than that under the DFT.

4.2. BSBL Algorithm Reconstruction Performance Analysis

The amplitude error was set up to ensure that the performance of the reconstructed signal meets Section 5.1 of IEC 41000-4-7. SNR is an important indicator for signal compression and reconstruction. However, there is no standard for this indicator at present. In the following cases, when the SNR of the reconstructed signal is more than 30 dB and the amplitude error is less than 5%, the minimum CR value is considered to be the best.

4.2.1. Performance Analysis of the Harmonic Signal

The various indicators of the harmonic signal in the DFT and DCT domains when different CR compressions and reconstructions were used are shown in Table 1 and Table 2.
It can be seen from Table 1 and Table 2 that in the harmonic signal, when the CR was 30% to 50%, the reconstruction effect of the DCT was better than that of the DFT. In the DFT domain, the value of the ERP differed from 1 by less than 0.5%, the amplitude error was less than 5%, and the phase error was less than 2%. The amplitude error meets the allowable error standard for the measurement of Class I instruments in IEC41000-4-7, and the situation is similar in the DCT domain. After the DCT, when CR = 40%, the result of the SNR is more than 30 dB. Therefore, for the constructed harmonic signal CR = 40% is an ideal choice under the DCT, and CR = 50% is a good choice under the DFT.

4.2.2. Performance Analysis of Voltage Fluctuation Signal

The various indicators of the voltage fluctuation signal in the DFT and DCT domains when different CR compressions and reconstructions were used are shown in Table 3 and Table 4.
For the constructed voltage fluctuation signal, the reconstruction performance after the DCT and DFT is good, the SNR can reach 50 dB or more, the amplitude error is less than 0.5%, and the difference between the ERP and 1 approaches 0.5%. Therefore, compression reconstruction with CR = 30% is an ideal choice for this case.

4.2.3. Performance Analysis When the Signal Is Not Sparsely Transformed

The BSBL algorithm also has a good effect on non-sparse signals. The signal does not use any sparse transform domain and directly performs compression and reconstruction. However, the performance cannot meet the requirement of SNR > 30 dB when μ t h = 10 4 , so we set μ t h = 10 5 . The performance indicators and reconstruction error of each point are shown in Table 5.
It can be seen from Table 5 that the performance of direct compression and reconstruction of the signal is worse than the result in the DFT or DCT domain. When the CR = 60%, the amplitude error can still be less than 5%, the value of the SNR could be more than 30 dB, the value of the ERP differs from 1 by less than 0.5%, and the phase error is less than 2%. Therefore, in the case of low accuracy and lack of corresponding hardware facilities, the proposed algorithm can directly compress and reconstruct harmonic signals.

4.3. Comparison of Reconstruction Performance with Other Algorithms

In order to judge the performance of the proposed algorithm more scientifically and objectively, this paper compares the performance of this algorithm with other data compression algorithms. For the performance comparison between different algorithms, the priorities of comparison were amplitude error, SNR, RRMSE, ERP, and angle error. This experiment selected the harmonic signal; the CR was selected as 40%; the DCT transform domain was selected; and the CoSaMP, SbOMP [24], and SAMP-SD [25] algorithms were compared. The sparsity (K) was set to 16, and the number of iterations was set to 40. Its comparative performance is shown in Table 6.
From Table 6, it can be seen that the SNR of the proposed algorithm was better than that of the traditional algorithm. Both the RRMSE and amplitude error were less than 1%, while other algorithms were more than 1%. This shows that the proposed algorithm can improve the first three indicators.

4.4. Compression and Reconstruction of Measured Signals

4.4.1. Signals with Harmonics

In order to further verify the practicability of the BSBL algorithm, the real-world data of the capacitive current of a wind farm retrieved from Ningxia Province, China were used for compression and reconstruction. It can be seen from Figure 7 that the signal segment contains rich (inter)harmonic content. The various indicators of reconstruction are shown in Table 7 and Table 8.
It can be seen from Table 7 and Table 8 that for the measured harmonic data, no matter which transformation was adopted, its sparsity was much lower than that of the constructed signal. Therefore, under the same conditions, its performance indicators were lower than those of the constructing signals. When the CR was ≥ 50%, the amplitude error met the IEC40000-6-7 standard. The SNR after the DCT was more than 30 dB, and the SNR after the DFT was 30 dB. In this case, CR = 50% was selected.
The following compares the performance of the proposed algorithm and the traditional algorithm applied to real-world data. The traditional algorithm was set to CR = 40%. Since the sparsity of the measured data cannot be estimated, the sparsity was cycled from 40 to 300. The final result of the traditional algorithm is the result of the largest SNR under the DFT and DCT and the sparsity cycle as the experimental result to compare with the proposed algorithm. The proposed algorithm takes CR = 40%, the result in the DCT domain.
It can be seen from Table 9 that the first three indicators of the proposed algorithm are far better than the traditional ones and because there is no need to predict the sparsity in advance. The process of the proposed algorithm is also simpler. The comparison result shows that the proposed algorithm can be applied to engineering.

4.4.2. Fluctuant Signal

Figure 8 shows the fluctuant signal. The application scenario of these data is the sub-synchronous oscillation caused by the super-synchronous interharmonic of the port power electronic converter group. The various indicators of reconstruction are shown in Table 10 and Table 11.
For the measured fluctuation signal, the performance of the DFT was better than that of the DCT. Taking CR = 40% under the DFT can be satisfied.
Table 12 shows the performance comparison between the proposed and traditional algorithms with parameter settings the same as those in Section 4.4.1.
It can be seen from the corresponding coefficients in Figure 7 and Figure 8 that the sparsity of the fluctuant signal was much smaller than that of the harmonic signal, so the performance of each algorithm was good, and the performance of the proposed algorithm was slightly better than the traditional algorithm. Furthermore, from the comparison of these two experiments, the reconstruction performance of the proposed algorithm was better than other algorithms for signals with more harmonic content.

4.5. Analysis of Results

The reconstruction performance of the voltage fluctuation signal and harmonic signal (Table 1, Table 2, Table 3 and Table 4) shows that the smaller the sparsity of the original signal after sparse transformation, the higher the reconstruction performance. For the harmonic signal, when the compression ratio increases, the performance of each indicator also increases. For the above constructed and measured data, the trend was consistent with CR. However, the measured signal performed worse than the construction signal because of its rich harmonic content. By comparing the constructed signal with the measured signal, with any transformation and harmonic signal with CR = 50%, the amplitude error met the requirements of IEC41000-4-7; the SNR was more than 30 dB; and the performance results of the other indicators, such as RRMSE, ERP, and angle error, were also good. There was little difference between the two transformation domains. For fluctuation signals, when the CR = 40%, the amplitude error met the requirements, but other indicators under the DCT were lower, so using the DFT is recommended.
When compared with the performance of greedy algorithms (SbOMP, SAMP-SD, CoSAMP), the BSBL algorithm does not need to estimate the sparsity of the steady-state power quality signal in advance. Furthermore, the BSBL algorithm has a more prominent effect when the harmonic component in the signal is large. The proposed algorithm can be used normally without sparse transformation, but its performance is slightly worse than with sparse transformation. Therefore, when a large number of steady-state power quality data need to be recorded, sampled, and transmitted in engineering, BSBL is a good solution.

5. Conclusions

This paper studies the application of BSBL in steady-state power quality data compression, converts data into sparse data through different transformation domains (DFT, DCT), and compresses and reconstructs it using BSBL. Based on the relative standard, two indicators of power quality data characteristics, namely relative amplitude error and relative phase angle error, are also presented in this paper. Then, the algorithm’s validity is verified by constructing and measuring signals. The results show that CR = 50% can meet the standard for harmonic signals in engineering, no matter which transformation is used. For fluctuation signals, using the CR = 40% selection after the DFT is recommended to obtain a better result. The results also show that when μ t h = 10 5 and CR = 60% are selected, the standard requirement can be met without sparse transformation of signals. Finally, compared with other greedy algorithms (SbOMP, SAMP-SD, CoSAMP), we show that the proposed algorithms are superior to other greedy algorithms in terms of relevant indicators. Therefore, in the case of conforming to the standard, the proposed algorithm can meet the requirements of steady-state signal compression of power quality in engineering. Meanwhile, in the performance comparison with other algorithms, the two indicators of the ERP and angle error are not improved. This will be the direction of our next research study.

Author Contributions

Writing—original draft, W.H.; Writing—review and editing, M.Z.; Resources, H.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the China Southern Power Grid Corporation Science and Technology Project [No. 090000KK52190169; SZKJXM2019669].

Acknowledgments

We thank Shenzhen Power Supply Co., Ltd. for the data support they provided.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Minh Khoa, N.; van Dai, L. Detection and classification of power quality disturbances in power system using modified-combination between the Stockwell transform and decision tree methods. Energies 2020, 13, 3623. [Google Scholar] [CrossRef]
  2. Wang, S.; Chen, H.; Wu, L.; Wang, J. A novel smart meter data compression method via stacked convolutional sparse auto-encoder. Int. J. Electr. Power Energy Syst. 2020, 118, 105761. [Google Scholar] [CrossRef]
  3. Santoso, S.; Powers, E.; Grady, W. Power quality disturbance data compression using wavelet transform methods. IEEE Trans. Power Deliv. 1997, 12, 1250–1257. [Google Scholar] [CrossRef]
  4. Wang, K.; Zhang, M.; Zhang, S.; Xu, Z. A PQ Data Compression Algorithm Based on Wavelet Domain Principal Component Analysis. In Proceedings of the 2020 Asia Energy and Electrical Engineering Symposium (AEEES), Chengdu, China, 29–31 May 2020; pp. 347–350. [Google Scholar] [CrossRef]
  5. Bao, W.; Zhou, R.; Liu, J.F. A Periodical Data Compression Method Based on 2-D Lifting Wavelet Transform in Thermal Power Plant. Proc. CSEE 2007, 29, 98–103. [Google Scholar]
  6. Donoho, D.L. Compressed sensing. IEEE Trans. Inf. Theory 2006, 52, 1289–1306. [Google Scholar] [CrossRef]
  7. Mallat, S.; Zhang, Z. Matching pursuits with time-frequency dictionaries. IEEE Trans. Signal Process. 1993, 41, 3397–3415. [Google Scholar] [CrossRef] [Green Version]
  8. Goklani, H.S.; Sarvaiya, J.N.; Fahad, A.M. Image reconstruction using Orthogonal Matching Pursuit (OMP) algorithm. In Proceedings of the 2014 2nd International Conference on Emerging Technology Trends in Electronics, Communication and Networking, Surat, India, 26–27 December 2014; pp. 1–5. [Google Scholar] [CrossRef]
  9. Ahmed, M.M.; Bedour, H.; Hassan, S.M. Design and Implementation of a Multistage Image Compression and Reconstruction System Based on the Orthogonal Matching Pursuit Using FPGA. In Proceedings of the 2019 14th International Conference on Computer Engineering and Systems (ICCES), Cairo, Egypt, 17–18 December 2019; pp. 174–179. [Google Scholar] [CrossRef]
  10. Song, S.; Zhang, X.; Hao, Q.; Wang, Y.; Feng, N.; Shen, Y. An improved reconstruction method based on auto-adjustable step size sparsity adaptive matching pursuit and adaptive modular dictionary update for acoustic emission signals of rails. Measurement 2022, 189, 110650. [Google Scholar] [CrossRef]
  11. Sun, M.; Zhao, A.; Li, B.; Zhang, J.; He, Q.; Song, X. Virtual compressed sensing photoacoustic imaging using CoSaMP algorithm based on k-wave. In Proceedings of the Sixteenth National Conference on Laser Technology and Optoelectronics, International Society for Optics and Photonics, Shanghai, China, 3–6 June 2021; Volume 11907, p. 1190739. [Google Scholar]
  12. Ucar, F.; Cordova, J.; Alcin, O.F.; Dandil, B.; Ata, F.; Arghandeh, R. Bundle extreme learning machine for power quality analysis in transmission net-works. Energies 2019, 12, 1449. [Google Scholar] [CrossRef] [Green Version]
  13. Zhou, W.; Wu, Y.; Huang, X.; Lu, R.; Zhang, H.-T. A group sparse Bayesian learning algorithm for harmonic state estimation in power systems. Appl. Energy 2021, 306, 118063. [Google Scholar] [CrossRef]
  14. Wang, S.; Li, D.; Liu, M.; Huang, W.; Chen, H.; Cen, Y. Clustered-Sparse Bayesian Learning for Channel Estimation in Underwater Acoustic OFDM Systems. In Proceedings of the 2020 International Conference on Wireless Communications and Signal Processing, Nanjing China, 21–23 October 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 546–551. [Google Scholar] [CrossRef]
  15. Ni, Z.; Huang, B.; Cao, M. Angular Positions Estimation of Spatially Extended Targets for MIMO Radar Using Complex Spatiotemporal Sparse Bayesian Learning. IEEE Access 2019, 7, 94473–94480. [Google Scholar] [CrossRef]
  16. Chen, D.; Luo, X.; Tao, S.; Chen, R. Multi radar imaging based on variational Bayesian block sparse method. In Proceedings of the 2018 IEEE International Conference on Computational Electromagnetics (ICCEM), Chengdu, China, 26–28 March 2018. [Google Scholar]
  17. Liu, J.; Li, X.; Fang, K.; Fan, T. Millimeter wave channel estimation based on clustering block sparse bayesian learning. In Proceedings of the 2019 11th International Conference on Wireless Communications and Signal Processing (WCSP), Xi’an, China, 23–25 October 2019. [Google Scholar]
  18. Zhang, Z.; Jung, T.-P.; Makeig, S.; Rao, B.D. Compressed Sensing of EEG for Wireless Telemonitoring with Low Energy Consumption and Inexpensive Hardware. IEEE Trans. Biomed. Eng. 2012, 60, 221–224. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  19. Candes, E.J.; Romberg, J.K.; Tao, T. Stable signal recovery from incomplete and inaccurate measurements. Commun. Pure Appl. Math. 2006, 59, 1207–1223. [Google Scholar] [CrossRef] [Green Version]
  20. Xiao, X.N. Power Quality Analysis and Control; China Electric Power Press: Beijing, China, 2010. [Google Scholar]
  21. Wipf, D.P.; Rao, B.D. An Empirical Bayesian Strategy for Solving the Simultaneous Sparse Approximation Problem. IEEE Trans. Signal Process. 2007, 55, 3704–3716. [Google Scholar] [CrossRef]
  22. Eldar, Y.C.; Kuppinger, P.; Bolcskei, H. Block-Sparse Signals: Uncertainty Relations and Efficient Recovery. IEEE Trans. Signal Process. 2010, 58, 3042–3054. [Google Scholar] [CrossRef] [Green Version]
  23. Zhang, Z.; Rao, B.D. Sparse Signal Recovery with Temporally Correlated Source Vectors Using Sparse Bayesian Learning. IEEE J. Sel. Top. Signal Process 2011, 5, 912–926. [Google Scholar] [CrossRef] [Green Version]
  24. Hang, L.; Bo, W.; Daizhi, L.; Rongqiang, H. Processing Optical Fiber Sensing Signals with Improved Compressed Sensing Algorithm. In Proceedings of the 2020 5th International Conference on Computer and Communication Systems (ICCCS), Shanghai, China, 15–18 May 2020; pp. 660–664. [Google Scholar] [CrossRef]
  25. Zhiyuan, S.; Qianqian, W.; Xinmiao, C. A sparsity adaptive compressed signal reconstruction based on sensing dictionary. J. Syst. Eng. Electron. 2021, 32, 1345–1353. [Google Scholar] [CrossRef]
Figure 1. Flowchart of the BSBL algorithm.
Figure 1. Flowchart of the BSBL algorithm.
Energies 15 02479 g001
Figure 2. Sensitivity curve of μ t h in different data. (a) Sensitivity curve of μ t h in measured data. (b) Sensitivity curve of μ t h in synthetic data.
Figure 2. Sensitivity curve of μ t h in different data. (a) Sensitivity curve of μ t h in measured data. (b) Sensitivity curve of μ t h in synthetic data.
Energies 15 02479 g002
Figure 3. Sensitivity analysis of block length in different data. (a) Sensitivity curve of block length in measured data. (b) Sensitivity curve of block length in synthetic data.
Figure 3. Sensitivity analysis of block length in different data. (a) Sensitivity curve of block length in measured data. (b) Sensitivity curve of block length in synthetic data.
Energies 15 02479 g003
Figure 4. Signal waveform of harmonic and voltage fluctuation.
Figure 4. Signal waveform of harmonic and voltage fluctuation.
Energies 15 02479 g004
Figure 5. Different transform basis coefficients of the harmonic signal.
Figure 5. Different transform basis coefficients of the harmonic signal.
Energies 15 02479 g005
Figure 6. Different transform basis coefficient of voltage fluctuation signal.
Figure 6. Different transform basis coefficient of voltage fluctuation signal.
Energies 15 02479 g006
Figure 7. Measured original signal waveform and its DFT and DCT coefficients.
Figure 7. Measured original signal waveform and its DFT and DCT coefficients.
Energies 15 02479 g007
Figure 8. Measured fluctuant signal waveform and its DFT and DCT coefficients.
Figure 8. Measured fluctuant signal waveform and its DFT and DCT coefficients.
Energies 15 02479 g008
Table 1. Reconstruction results of harmonic signals in the DFT domain.
Table 1. Reconstruction results of harmonic signals in the DFT domain.
Transform DomainDFT
CR (%)30405060
SNR (dB)23.7428.9137.6552.47
RRMSE (%)6.53.581.310.24
Amplitude error (%)6.443.521.250.19
ERP (%)101.49100.49100.15100.03
Angle error (%)1.461.421.41.22
Table 2. Reconstruction results of harmonic signals in the DCT domain.
Table 2. Reconstruction results of harmonic signals in the DCT domain.
Transform DomainDCT
CR (%)30405060
SNR (dB)25.0632.540.5848.29
RRMSE (%)5.582.370.930.38
Amplitude error (%)5.52.280.850.3
ERP (%)101.27100.45100.16100.07
Angle error (%)1.451.431.391.32
Table 3. Reconstruction results of voltage fluctuation signal in the DFT domain.
Table 3. Reconstruction results of voltage fluctuation signal in the DFT domain.
Transform DomainDFT
CR (%)30405060
SNR (dB)49.5759.5361.3562.02
RRMSE (%)0.330.110.090.08
Amplitude error (%)0.290.080.070.06
ERP (%)100.52100.08100.02100.01
Angle error (%)1.10.940.920.87
Table 4. Reconstruction results of voltage fluctuation signal in the DCT domain.
Table 4. Reconstruction results of voltage fluctuation signal in the DCT domain.
Transform DomainDCT
CR (%)30405060
SNR (dB)54.6258.4559.1459.72
RRMSE (%)0.190.120.110.1
Amplitude error (%)0.140.080.070.07
ERP (%)100.2100.03100.01100
Angle error (%)1.291.151.111.07
Table 5. Reconstruction results of the harmonic signals without a sparse transform.
Table 5. Reconstruction results of the harmonic signals without a sparse transform.
Transform DomainNo Transform Domain
CR (%)30405060
SNR (dB)25.4026.8328.1030.05
RRMSE (%)5.374.553.933.17
Amplitude error (%)4.263.563.052.43
ERP (%)100.62100.15100.03100.02
Angle error (%)1.091.020.960.91
Table 6. Performance comparison of reconstruction algorithms (the harmonic signal).
Table 6. Performance comparison of reconstruction algorithms (the harmonic signal).
Traditional MethodsProposed Method
AlgorithmsSAMP-SDCoSaMPSbOMPBSBL
SNR (dB)39.4138.0135.9440.58
RRMSE (%)1.111.151.530.93
Amplitude error (%)1.081.121.470.85
ERP (%)100.06100.09100.13100.16
Angle error (%)1.391.431.401.39
Table 7. Reconstruction results of the harmonic signal in the DFT domain.
Table 7. Reconstruction results of the harmonic signal in the DFT domain.
Transform DomainDFT
CR (%)30405060
SNR (dB)22.2425.1029.6637.53
RRMSE (%)7.735.563.291.33
Amplitude error (%)7.625.493.241.31
ERP (%)103.78101.63100.84100.28
Angle error (%)1.341.361.351.32
Table 8. Reconstruction results of the harmonic signal in the DCT domain.
Table 8. Reconstruction results of the harmonic signal in the DCT domain.
Transform DomainDCT
CR (%)30405060
SNR (dB)25.9128.2530.5132.28
RRMSE (%)6.104.722.952.85
Amplitude error (%)5.834.333.162.51
ERP (%)102.33101.03100.30100.30
Angle error (%)1.151.131.071.03
Table 9. Performance comparison of reconstruction algorithms (real-world harmonic signal).
Table 9. Performance comparison of reconstruction algorithms (real-world harmonic signal).
Traditional MethodsProposed Method
AlgorithmsSAMP-SDCoSaMPSbOMPBSBL
SNR (dB)23.4621.5620.9828.25
RRMSE (%)6.348.357.434.72
Amplitude error (%)6.288.237.364.33
ERP (%)100.48100.60100.92101.03
Angle error (%)1.191.221.261.13
Table 10. Reconstruction results of the fluctuant signal in the DFT domain.
Table 10. Reconstruction results of the fluctuant signal in the DFT domain.
Transform DomainDFT
CR (%)30405060
SNR (dB)23.5936.5642.1343.76
RRMSE (%)6.61 1.490.780.65
Amplitude error (%)6.551.480.760.64
ERP (%)111.51102.03100.34100.04
Angle error (%)1.281.301.351.37
Table 11. Reconstruction results of the fluctuant signal in the DCT domain.
Table 11. Reconstruction results of the fluctuant signal in the DCT domain.
Transform DomainDCT
CR (%)30405060
SNR (dB)23.5226.5835.7540.76
RRMSE (%)6.674.691.630.92
Amplitude error (%)5.984.141.330.71
ERP (%)103.71100.81100.20100.03
Angle error (%)1.181.161.020.90
Table 12. Performance comparison of reconstruction algorithms (real-world fluctuant signal).
Table 12. Performance comparison of reconstruction algorithms (real-world fluctuant signal).
Traditional MethodsProposed Method
AlgorithmsSAMP-SDCoSaMPSbOMPBSBL
SNR (dB)35.2334.7235.3336.56
RRMSE (%)1.85 1.831.721.49
Amplitude error (%)1.80 1.671.68 1.48
ERP (%)100.10 100.04 100.1 102.03
Angle error (%)1.36 1.22 1.291.30
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hu, W.; Zhu, M.; Zhang, H. Application of Block Sparse Bayesian Learning in Power Quality Steady-State Data Compression. Energies 2022, 15, 2479. https://doi.org/10.3390/en15072479

AMA Style

Hu W, Zhu M, Zhang H. Application of Block Sparse Bayesian Learning in Power Quality Steady-State Data Compression. Energies. 2022; 15(7):2479. https://doi.org/10.3390/en15072479

Chicago/Turabian Style

Hu, Wenjian, Mingxing Zhu, and Huaying Zhang. 2022. "Application of Block Sparse Bayesian Learning in Power Quality Steady-State Data Compression" Energies 15, no. 7: 2479. https://doi.org/10.3390/en15072479

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop