Abstract

The fluctuation of microgrid power flow leads to serious voltage problems at the point of common coupling (PCC). The quantitative representation of the disturbance parameters of the voltage waveform at the PCC is necessary for evaluating and controlling the impact of distributed generation in the microgrid on the power system. An improved atomic decomposition (IAD) method is proposed to represent the disturbance parameters quantitatively and efficiently. Based on the disturbance characteristics of the PCC voltage, a coherent atom dictionary composed of four subdictionaries is constructed to improve the decomposition efficiency. To further improve the computational efficiency, an improved matching pursuits algorithm is proposed by alternating the search way to extract the disturbance components in the atomic decomposition. Meanwhile, simulation results show that the proposed IAD method has better antinoise and disturbance parameters quantization ability than wavelet transform.

1. Introduction

As the increased capacity of distributed generation in microgrids, power quality problems such as voltage deviation and fluctuation are more serious at the microgrid-connected point of common coupling (PCC) because of the fluctuation and intermittency of power flow [1]. The mitigating equipment, such as a static var compensator or static var generator, is usually installed at the PCC to improve the power quality. But whether and how much-mitigating equipment should be required to properly mitigate the power quality problem economically. The answer needs a sound evaluation of the PCC voltage influence by the microgrid. Evaluation of the historically recorded disturbance is an effective approach to estimating the PCC voltage influenced by the distributed power and decides whether mitigation is required. Generally, voltage profiles are expressed with root mean square (RMS) values. The recording interval may be one or several minutes. It is the average value of RMS in several cycles per recording data. This description can reflect only the steady-state voltage problems. Sometimes, we are concerned about the instantaneous voltage waveform caused by the fluctuation of distributed resources in microgrids, for example, the voltage sag waveform. In this circumstance, we need to record a piece of voltage disturbance waveform instead of presenting the RMS values. Due to the disturbances that exist all the time in microgrids; therefore, the recorded waveform is tremendous. If the waveform is stored and transmitted in the form of sampling data, the dimension is huge and hard to deal with. If the data are modeled properly and only the modeling parameters are stored and transmitted, the data dimension will be reduced greatly [24].

At present, many experts have done a lot of research on the analysis and detection of interference signals [5]. By analyzing the recovery and reconstruction process of various power-quality single disturbances and composite disturbance signals, a set of acquisition methods suitable for power-quality disturbance (PQD) signals was proposed in [6]. Long-term gapless oscillographic analysis was proposed in [7] for efficient real-time compression of data. Chen et al. [8] proposed several methods to compress the synchrophasor and POW data in a lossless manner. Literature [9] proposed a singular value decomposition-based method for the compression of synchrophasor data, which provided high CR and preserved the critical information of events and disturbances. In [10], considering the patterns, potential applications, and associated precision to preprocess the time series, the lossless coding considering the precision method was proposed.

Signal model parameter extraction methods based on wavelet transform (WT) or analysis methods combined with other methods are widely used [1113]. In this method, the disturbance signal is decomposed first, and then the residual coefficient and detail coefficient of each scale are applied to a certain threshold to compress the feature data. In [11], a wavelet denoising method based on variational mode decomposition and multiscale permutation entropy was proposed to analyze vibration fault characteristics. Literature [12] presented a methodology to characterize voltage sags using fault analysis and deep convolutional neural networks, and the discrete WT was used in signal processing. In [13], to separate the interharmonic components, a set of new scaling filters and wavelet filters with narrow transition bands was designed for the undecimated wavelet packet transform.

Overall analysis, WT has good time–frequency domain localization characteristics, which can provide the characteristics of disturbance signals at different scales, but it is vulnerable to noise and has poor application effect on low-frequency disturbances such as voltage sag and voltage swell. Therefore, these methods cannot obtain the accurate model parameters of the disturbance signals.

Atomic decomposition algorithm technology has been a hot research topic in the field of signal processing in recent years. This method originates from the idea proposed by Mallat and Zhang to decompose signals on overly complete non-orthogonal bases [14]. The atomic decomposition method decomposes signals based on an over-complete dictionary, which can improve the sparse representation of signals [15]. Sparse signal representation has good adaptability and high flexibility in describing any complex signal based on atomic decomposition, which is not limited by an orthogonal basis. It provides an effective method for extracting features from complex signals for fault diagnosis [16]. Tcheou et al. [17] analyze the problem of using atomic decompositions for rate-distortion-optimum compression of signals from electric power system disturbances. They use different dictionaries corresponding to different quantizers of atomic parameters. These quantizers can provide near-optimum rate-distortion performance. Gao et al. [18] propose an internal overvoltage identification method based on time–frequency atomic decomposition, which mainly decomposes the overvoltage waveform using the atomic decomposition algorithm and obtains effective atoms from the waveform. Then, by combining corresponding recognition standards, the hierarchical identification of overvoltage types is achieved. The experimental results show that the algorithm has high accuracy and strong adaptability.

However, traditional atomic decomposition algorithms used for PQD signals have problems with excessive computational resource consumption and low subdictionary selection accuracy. The conventional atomic decomposition algorithm for PQD signals is optimized by introducing a convolutional neural networks-based subdictionary predictor inspired by the PQD signal classification technique [19]. They verify that this method can reduce the demand for computing resources and improve the accuracy of subdictionary selection in signal decomposition. To accurately extract fault features from noise signals, Zhang et al. [20] propose an improved orthogonal matching pursuit (MP) with an adaptive Gabor subdictionary. It can significantly improve the efficiency of signal sparse representation while ensuring accuracy. Agarwal et al. [21] present a novel algorithm for the estimation of overcomplete dictionaries. Under the probabilistic model of generating data as well as assumptions on the coefficients and dictionaries, it can be guaranteed that such a procedure approximately recovers the unknown overcomplete dictionary.

In this paper, we proposed an improved atomic decomposition (IAD) method to model the voltage disturbances in microgrids. The contribution of this work is as follows:(1)An efficient disturbance modeling method based on atomic decomposition is presented to extract the model parameters.(2)An improved MP algorithm is proposed to decrease computation quantities by alternating the search way of selecting the optimal atoms.(3)The coherent atom dictionary is constructed according to the characteristics of the PCC voltage disturbance to improve the decomposition efficiency.

After the introduction, the principle of atomic decomposition, as well as the expression method for disturbances with atoms, is discussed in Section 2. Section 3 discusses the construction of the coherent atom dictionary and the improved MP algorithm. In Section 4, the performance of the proposed IAD method is evaluated with simulations. Finally, the conclusions are listed in Section 5.

2. Modeling of Signals with Atoms

2.1. Principle of Atomic Decomposition

Dictionary D is defined as a set of all possible basic items representing the signal waveforms. In this paper, the signals are voltage disturbances collected at the PCC of microgrids. D is called a dictionary of atoms. The ideal signal can be represented by the linear combination of elements selected in D.where is the atoms of dictionary D, and is an indexing parameter associated with a particular dictionary element in D. is the amplitude of atom , and is the number of atoms. In neglecting the residual parts, the analyzed signal X is approximately equal to . Therefore, the practical signal X can be expressed approximately by the combination of .

Usually, the dictionary D is over-complete to ensure that any signal can be represented by an optimal set of elements selected adaptively, resulting in the sparsity of the expression. Atomic decomposition differs from other signal transformations, for it permits the linear dependency among the selected atoms. Because the decomposition in the over-complete dictionary is not unique, it permits the selection with different atoms to compose X, therefore, leading to sparse and compact representation. For a specific signal, the best expansion function can be selected adaptively from an over-complete set of expansion functions according to the signal characteristics. Such expansion functions are more accurate to represent the signal. The expanded functions in the over-complete set are atoms, and the over-complete set composed of atoms is called the atomic dictionary. Atoms are generated by stretching, translating, and modulating from a window function .

The key issue in atomic decomposition is how to search the energy factor and the atom . Here, we accomplish the search by using the MP algorithm described in Section 2.2. The atoms in the dictionary are usually obtained by scaling, transforming, and modulating some special functions. One of the common methods is to use Gabor as the mother function to form the Gabor atoms, as shown in Equation (2).where is the Gaussian window, is the parameter group of atoms, is the scale factor, is the translation factor, is the frequency modulation factor, and is the phase. The phase and is assigned to make .

Theoretically, the denser the atom distributions in the dictionary get, the more concise the signals are represented, while the dictionary gets larger. The overlarge dictionary is adverse to computation. It is impossible to search in a dictionary with infinite atoms. Therefore, parameters of the atoms should be discrete sampled to obtain a finite while redundant dictionary. The discretization of atom parameters obeys that , where are the integers, is a real number. Thus, can be uniquely represented in discrete form as , where dominates the atom scaling, dominates time shift, and dominates the atom modulation. Let the length of the signal is , then the atoms in the finite discrete dictionary are expressed as follows:where . The phase parameter is unnecessary to be searched separately; it can be derived from parameters depicted in [22].

2.2. MP Algorithm

Implementation of atomic decomposition directly through optimization is a hard problem. As a suboptimal scheme, the MP algorithm is usually used in the atomic decomposition [18]. MP algorithm is a greedy iterative algorithm. In each iteration, the atom that best matches the signal or the residual component of the signal is extracted from the atomic dictionary. The signal is represented as a linear combination of the best-matched atoms. The number of iterations or the energy of the residual signal is restricted as the end condition of the decomposition.

Suppose the signal to be analyzed is , H is a finite-dimensional Hilbert space. D is an over-complete atomic dictionary, is an atom of D, γ is the atomic parameter group, is the set of parameter groups, . The atoms are usually normalized, that is, . First, select the atom from D that best matches the signal f, and the satisfy as follows:

Equation (4) represents the inner product of the two quantities. Signal f is divided into two parts: the component on the optimal atom and the residual component, namely,where is the residual component after the 1st atomic decomposition of signal f. The residual components will be further extracted to gain more atomic components. The iteration is as follows: satisfy as follows:

After n iterations, let the residual component is , then the signal f can be expressed as follows:

Therefore, through n iterations, signal f can be represented by a linear combination of n atoms, adding the error. The error is the residual component after n iterations. In discrete forms, if the length of the signal is finite and n increases infinitely, the decays exponentially to zero. In general, the main components of the signal can be represented very sparse by the atoms compared to the signal length.

3. Improvement of Atom Decomposition

3.1. Construction of Damped Sinusoidal Coherent Atoms

The voltage disturbances in microgrids connected to PCC are mainly the fundamental component. According to the principle of atomic decomposition, if the atoms have similar structures to the analyzed signal, the performances of atomic decomposition, such as the efficiency and the accuracy will get better. This kind of atomic dictionary is specially constructed for a certain type of signal and is called the coherent atom dictionary [21]. In this paper, we employ damped sinusoidal atoms to build the coherent atom dictionary instead of using the Gabor dictionary. The other reason for introducing damped sinusoidal atoms to substitute Gabor atoms is that the parameters of Gabor atoms have no physical significance. This is a disadvantage to evaluating the disturbances.

The expression of the signal with damped sinusoidal atoms is shown in Equation (9).where is the amplitude of damped sinusoidal atoms, is the frequency, is the damping factor, is the phase, is the unit step function, and are the component starting and ending time, respectively.

The key issue of this dictionary is that the discrete atom parameter group () of Equation (9) needs to be determined. Here, we use Gabor atoms to produce the damped sinusoidal atoms. The procedure is shown in Figure 1.

Step 1. Decompose the signal in the Gabor dictionary with the MP algorithm to acquire parameters .

Step 2. Deduce approximately the damped sinusoidal atoms from Gabor ones obeying the steps as follows:(1)Determine the position of the greatest inner product of Gabor atoms and the signal or residuals. If the position lies on the right-hand of the center of the Gauss window function, the sinusoidal atoms are attenuated. Otherwise, if the position lies on the left-hand, the sinusoidal atoms are divergent.(2)Calculate the initial estimated value of the damped coefficient based on the time scale . If the sinusoidal atoms are attenuated, . On the contrary, if the sinusoidal atoms are divergent, . Such a treatment can maintain the equivalence between the damped sinusoidal atom and the Gabor atom in the central point . Note that is not the ultimate value; it should be optimized latterly.(3)The starting and ending times of the sinusoidal atom were obtained using the method as [22].

Step 3. Optimize the parameters to acquire the ultimate sinusoidal atoms. Here, the Pseudo-Newton algorithm is occupied. The detailed processes are as follows:(1)Increment the parameters in turn. The incremental quantities are assigned to half the parameter values.(2)Build atoms based on the newly created parameters and obtain the inner products for each atom with the residual of the approximate damped sinusoidal atoms. If one of the products is increased, then substitute the original atom with the new one and continue the next judgment. Otherwise, reduce the incremental value of the atom parameters by 1/4 and continue searching.(3)If the incremental quantity of the product is lower than a given threshold, then terminate the current optimizing process and optimization for the next parameter.

Through optimizations, the discrete parameters of atoms tend to be denser. The over-complete characteristics are ensured. The complex forms of Gabor atoms are advantageous to real signals in practice that the phases are unconsidered temporarily. After are determined, the phase can be derived from them. This will simplify the computation greatly.

3.2. Categories of Atoms in the Coherent Dictionary

As discussed above, the atoms are permitted to construct according to the characteristics of the specific signal. The algorithm is presented to produce damped sinusoidal atoms from Gabor. Damped sinusoidal atoms are more suitable for voltage disturbances of microgrids connected to PCCs. Considering the possible behavior of voltage disturbances, we construct different categories of detail subdictionaries to suit for different behaviors of disturbances such as voltage sags, voltage surges, voltage interruptions, and so on. The categories of subdictionaries are mentioned in the following sections.

3.2.1. Fundamental Subdictionary of Atoms

The fundamental component is usually the most predominant one in the disturbances. The fundamental subdictionary of atoms is constructed, as shown in Equation (10).where , is the angular frequency of the fundamental component, is the phase, and is the coefficient that makes . The length of signal is N, then the parameters are discretized as , , .

Let the sampling rate of the signal be , the relationship between the frequency f of the signal and discrete angular frequency is as follows:

Let , then Equation (10) can be written as follows:

Then

According to the MP algorithm, a best-matching atom can always be found. Let the best matching parameters and of the fundamental component are and , and the sinusoid is expressed with , thenwhere A is the amplitude of the fundamental component .

According to Equation (5),

Substitute Equations (12) and (14) into Equation (15) to obtain Equation (16).

3.2.2. Fundamental-Like Subdictionary of Atoms

For voltage disturbances such as voltage sag, voltage rise, and voltage interruption, their frequencies are still the fundamental frequency, but their phases are altered. Here, voltage sag, voltage rise, and voltage interruption are referred to as fundamental-like disturbances. The fundamental-like subdictionary of atoms is shown in Equation (17).where is the angular frequency of the fundamental component obtained by the MP algorithm, , is the phase of the fundamental-like disturbance, and are the starting time and ending time of the fundamental-like disturbance, respectively, is the coefficient that makes is the unit step function.

When the fundamental-like disturbance is in phase with the fundamental component, the disturbance is a voltage rise; when the fundamental-like disturbance is in opposite phase with the fundamental component, it is a voltage sag or interruption. Otherwise, it is a voltage transient. The parameters are discretized as . The MP algorithm can still be used to extract the fundamental-like disturbance. The amplitudes can be obtained by substituting Equation (16) with the parameters. The start time and end time with the discrete start point and end point are as follows:

3.2.3. Pulse Atomic Dictionary

The voltage notch and voltage spike disturbances with short duration are referred to as pulse disturbances. The pulse subdictionary of atom is shown in Equation (20).where and are, respectively, the start time and end time of the pulse disturbance, and is the coefficient to make . Pulse disturbances are also extracted through the MP algorithm. Their amplitudes can be obtained by substituting Equation (16) with the parameters. As the pulse atoms in the subdictionary are expressed in positive, they are voltage spikes when the best-matched maximum inner product is positive. Otherwise, they are voltage notches when the best-matched maximum inner product is negative. It is generally believed that the duration of a voltage notch or voltage spike is less than 1/4 fundamental cycle. Therefore, the parameters can be discretized as , , and .

3.2.4. Oscillatory Subdictionary of Atoms

Voltage disturbances such as voltage harmonics, interharmonics, attenuated oscillations, and divergent oscillations are referred to as oscillatory disturbances. Oscillatory atoms are shown in Equation (21).where is the angular frequency of the oscillation, is the phase, is the attenuation coefficient, and are the start time and end time, respectively, is the coefficient to make . If , the oscillatory disturbance is harmonic or interharmonic; if , the oscillatory disturbance is the attenuated oscillatory disturbance; and if , the oscillatory disturbance is a divergent oscillatory disturbance. The oscillatory disturbances can be extracted through the MP algorithm as well. Their amplitudes can be obtained by substituting Equation (16) with the parameters. The discretized parameters are as . The relationship between the attenuation coefficient and the discrete attenuation coefficient is as follows:

Among the four coherent subdictionaries, the fundamental subdictionary and the fundamental-like subdictionary are attributed to the oscillatory subdictionary in essence. They are listed separately mainly to reduce the computation and improve the accuracy of signal extraction. If the fundamental subdictionary is triggered merely, only two parameters are searched in the iteration. If the fundamental-like subdictionary is triggered, three parameters should be searched in the iteration. If the oscillatory subdictionary is triggered, five parameters should be searched. When the abovementioned atoms are used in turn, the computation will be reduced greatly. The fundamental component in the signal is extracted first by the fundamental atoms to remove the best-known component. Then, the residual components are extracted by the other atoms.

3.3. Improvement of MP Algorithm

To reduce the amount of computation further, the MP algorithm is improved by searching the parameters step by step and searching manners from rough to fine. The following takes the MP algorithm in the fundamental-like atoms as an example.

For , a step-by-step search is taken for and . First, search and at the same time, and implement rough search first and fine search second for both and . The procedure is, dividing the sampling points N into M equal parts, let (, ) to calculate with MP and get the rough matching parameters and (). Search for times by step in the range in fine search to obtain the best matching parameter (). Similarly, search for times in the range to obtain the best matching parameter (). For , it is obliviously after . In case that has been acquired, will be in the interval of , the searching interval is reduced. Therefore, the best matching parameter () needs to be searched in the interval of merely. The computational complexity is downgraded. Through improvement of the MP algorithm, the computational complexity is , while the computational complexity using the direct MP algorithm is . If N is 1,024 points and M is 128, the computational complexity of the direct MP algorithm is 536346624. The computational complexity of the presented MP algorithm is , which is downgraded greatly.

The orders to search the parameters are different also for different components. For the fundamental component, should be searched first and then . For the impulsive disturbances, and should be searched simultaneously. For the oscillatory disturbances, the orders are is searched first, and and is simultaneously searched following, then is searched, is searched finally. In each step, the parameters are searched from rough to fine.

4. Case Studies

The proposed modeling method is applied to microgrids connected disturbance signals. The sampling frequency is 3,200 Hz, the fundamental frequency is 50 Hz, and the sampling signal length is 1,024 points. The performance of the proposed IAD method is evaluated by the modeling efficiency , normalized mean-square error and energy ratio , respectively. The definition of each indicator is as follows:where is the number of parameters of the total atoms to represent the signal, is the length of the original signal, is the original signal, and is the reconstructed signal with atom decomposition.

Figure 2 shows the schematic diagram of disturbance parameter modeling based on IAD. The IAD algorithm is used to decompose several typical voltage disturbance signals at the microgrid-connected PCC. Then, the voltage disturbance parameters are determined based on the best atomic parameters, and the performance of the proposed method is evaluated through evaluation indicators .

4.1. Voltage Sag

Figure 3(a) shows the original voltage sag signal with a 50% drop, which was decomposed by the IAD method with only four iterations to obtain the atoms’ components, as shown in Figure 3(d)3(g), and the parameters are listed in Table 1. The reconstructed signal and residual are shown in Figures 3(b) and 3(c), respectively. As can be seen from Figure 3 and Table 1, the fundamental component and voltage sag disturbance component in the signal can be extracted using the atomic library and matching tracking algorithm. Therefore, the atomic algorithm can accurately decompose the components of the signal and has a good signal reconstruction ability.

To verify the performance of the proposed IAD method in a noisy environment, we added 20 dB Gaussian white noise to the above voltage sag signal, which was decomposed by the IAD method. The decomposition results are shown in Figure 4(a), which shows the original sag signal with 20 dB noise, which is decomposed and reconstructed to obtain the reconstructed signal, as shown in Figure 4(b). There is little difference between Figures 3(b) and 4(b), which shows that this method has good antinoise and signal reconstruction ability.

In addition, the WT method is used for comparison. The decomposition results are shown in Figure 5. The reconstructed signal by WT is shown in Figure 5(b), which describes that the waveform has some distortion compared with Figure 4(b). Meanwhile, the amplitude of the residual component is higher than that of the IAD method, as shown in Figure 4(c).

In order to compare the disturbance modeling performance of the proposed method, the evaluation indicators of IAD and WT are shown in Table 2. The results exhibit that the IAD has very high modeling efficiency and the normalized mean-square error and the energy ratio are similar with WT.

4.2. Combined Signals with Voltage Sag and Momentary Interruption

The voltage sag and momentary interruption combined signal is generated by the electromagnetic transient program to simulate a short circuit fault, as shown in Figure 6(a). The combined signal was decomposed by the IAD method with five atomic iterations; the residual energy is very low, as shown in Figure 6(c). Figure 6(b) shows the reconstructed signal, which can accurately model the combined signal.

Similarly, the decomposition result of WT for the combined voltage sag and momentary interruption signal is shown in Figure 7. The reconstruction signal after WT decomposition still has some distortion in the sag waveform, as shown in Figure 7(b). In addition, the amplitude of the residual component is higher than that of the IAD method. This indicates that the disturbance signal modeling performance of WT is weaker than the IAD method proposed in this paper.

The performance of the proposed method is further reflected through the evaluation indicators . Table 3 shows the indicators for combined signals with the IAD method and the WT. Similarly, the modeling efficiency of IAD is higher than that of WT, and the normalized mean-square error and the energy ratio of IAD are also better than that of WT.

In addition, the IAD uses analytical parameters to represent the disturbance signals, which is independent of signal length and greatly improves the modeling efficiency. Furthermore, the atomic decomposition represents signals in a linear combination form, which is more suitable for different types of disturbance signals.

5. Conclusions

This paper proposed an IAD method for modeling voltage disturbances of the microgrids PCC. The proposed method can quickly and accurately quantify the voltage disturbance parameters, which can provide a basis for the voltage disturbance assessment and management in time. The coherent atom dictionary is constructed according to the characteristics of the PCC voltage disturbance of wind farms to improve the decomposition efficiency. In addition, an improved matching pursuit algorithm (IAD) is proposed to decrease computation quantities by alternating the search way of selecting the optimal atoms. Case studies showed that the proposed IAD method can achieve efficient and accurate modeling for voltage disturbances. Meanwhile, the evaluation indicators of IAD are better than that of WT.

The proposed measures in this paper, such as the damped sinusoidal atoms, the improved MP, and the subdictionaries, are designed specifically for PCC voltage disturbances modeling of microgrids to simplify the computations of atomic decomposition. However, the coherent atom dictionary is not over-complete, and it is necessary to further study how to construct the coherent atom dictionary of voltage fluctuation and flicker, so that it can be more widely used in various voltage disturbance problems caused by microgrid connections.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work is supported by the Science and Technology Project of State Grid Heilongjiang Electric Power Co., Ltd. in 2023 (522437230003).