Next Article in Journal
Channel-Wise Attention-Enhanced Feature Mutual Reconstruction for Few-Shot Fine-Grained Image Classification
Previous Article in Journal
Control and Applications of Intelligent Unmanned Aerial Vehicles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improved Sage–Husa Unscented Kalman Filter for Harmonic State Estimation in Distribution Grid

School of Electrical Engineering and Automation, Wuhan University, 299 Bayi Road, Wuchang District, Wuhan 430072, China
*
Author to whom correspondence should be addressed.
Electronics 2025, 14(2), 376; https://doi.org/10.3390/electronics14020376
Submission received: 14 November 2024 / Revised: 30 December 2024 / Accepted: 1 January 2025 / Published: 19 January 2025

Abstract

:
In distribution grids with the large-scale integration of renewable energy sources and energy storage systems, power signals are often contaminated with time-varying noise and frequency deviation caused by low-frequency inertia. To achieve an accurate dynamic harmonic state estimate (HSE), a novel method based on an improved Sage–Husa unscented Kalman filter (ISHUKF) is proposed. Considering the frequency deviation, a nonlinear filter model for power signal is proposed, and a UKF is used to address the nonlinear estimation. A Sage–Husa noise estimator is incorporated to enhance the robustness of the UKF-based HSE against the time-varying noise. Additionally, the noise covariance of the Sage–Husa algorithm is modified to ensure the rapid convergence of the estimation. Then, the performance of the proposed method is validated using an IEEE 14-node system. Finally, the method is applied to evaluate the harmonic states of grid-connected inverter faults in real-world scenarios. The simulation and experiment results demonstrate that the proposed method provides an accurate dynamic HSE even in the presence of time-varying noise and frequency deviation.

1. Introduction

Distributed energy sources are being integrated into power systems on an increasing scale. Nonlinear devices, including grid-connected converters, electromagnetic saturated motors, and impact loads, serve as harmonic sources that inject harmonics into the public grid, thereby impairing the normal operation of the power system [1,2,3,4,5]. To mitigate these harmonics, an accurate harmonic state evaluation (HSE) is essential [6,7,8,9].
The current methods for HSE can be broadly categorized into two types: non-parameter HSE methods and parameter-based HSE methods. Non-parameter HSE methods utilize transforms to map harmonics into a specific domain, where harmonic estimation is performed based on the domain coefficients. Fourier transform (FT), wavelet transform (WT), and Hilbert–Huang transform (HHT) are typical non-parameter HSE techniques [10,11,12,13,14,15,16,17,18,19]. FT methods project harmonics into the frequency domain, allowing for easy harmonic estimation through Fourier coefficients. To mitigate the effects of frequency deviation, windowed interpolation FT has been proposed [10,11]. WT methods map harmonics into the wavelet domain, where each harmonic is analyzed in different frequency bands and evaluated separately [12,13,14]. HHT methods, on the other hand, project harmonics into the Hilbert domain and use empirical mode decomposition (EMD) to estimate the harmonics [15,16,17]. Non-parameter HSE methods require a sufficient length of data to achieve accurate harmonic estimation due to the resolution limitations of the estimation process. Longer data lengths provide more accurate results but also lead to longer estimation delays. For example, when using a 0.2 s window for FT-based HSE, the estimation reflects data from 0.2 s prior to the present moment [18]. Consequently, non-parameter HSE methods are not well-suited for dynamic HSE in distribution grids, where real-time or near-real-time estimation is required.
Parameter-based HSE methods involve the construction of models for the harmonics, from which the harmonic state can be evaluated based on the model parameters. Typical parameter-based HSE methods include stochastic model approaches such as autoregressive moving average (AR/ARMA) and Prony, as well as sinusoidal model methods such as the estimation of signal parameters via rotational invariance (ESPRIT), an adaptive linear combiner (ADALINE), and a Kalman filter (KF) [19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]. The AR/ARMA method utilizes least-squares estimation to identify the parameters of a suitably chosen model for harmonic detection [19,20,21]. AR/ARMA methods can provide accurate HSE even in the presence of transient disturbances. The Prony method extracts harmonic parameters by solving a set of linear equations for the coefficients of the recurrence relation that the signal satisfies. Prony is capable of detecting all harmonic attributes and the damping factor in the presence of oscillations, but it is sensitive to noise interference [22,23]. The ESPRIT method employs a sinusoidal exponential model and decomposes the covariance matrix into the noise and signal subspaces. Once the frequency components are known, the harmonic state can be determined from the eigenvalues of the signal subspace. References [24,25] applies fast Fourier transform to evaluate harmonic order, followed by an exact model-order ESPRIT algorithm for harmonic estimation. Reference [24] introduces a joint sliding-window ESPRIT and FT scheme for harmonic estimation in power systems, where frequency deviation is accounted for by synchronizing the FT window. ESPRIT, combined with a filter bank, is employed in [26]. However, ESPRIT methods are limited to the frequency domain and are primarily suited for stationary HSE applications. The ADALINE method assumes the signal is a linear combination of harmonics and employs an artificial neural network to estimate harmonic attributes [27,28,29,30]. ADALINE is robust against noise and exhibits good convergence when the harmonic model is appropriately constructed. The KF is widely used for parameter estimation in noisy environments [31,32,33,34]. KF methods are resilient to noise and can provide accurate dynamic HSE, provided prior information about the noise is available.
In distribution grids, the harmonic currents injected into the power system exhibit dynamic characteristics due to varying load levels and the power balance of renewable energy sources. Additionally, large-scale grid-connected converters introduce significant time-varying noise to the grid, primarily due to the high-frequency switching associated with power conversion. Moreover, as the penetration of power converters increases, the frequency inertia of the distribution grid diminishes, leading to larger frequency deviations than before. These factors collectively complicate the accurate HSE in practical applications.
To further enhance the accuracy and robustness of dynamic HSE in the presence of time-varying noise and frequency deviations, this paper proposes an HSE approach based on the improved Sage–Husa unscented Kalman filter (ISHUKF). The key merits and contributions of this technique are as follows:
(1)
Frequency deviation is an inevitable source of interference in HSE. This paper designs a nonlinear harmonic model and employs the UKF to achieve accurate HSE despite the presence of frequency deviations, leveraging the capabilities of the nonlinear model.
(2)
Time-varying noise is another factor that impairs the accuracy of HSE. This paper integrates a Sage–Husa noise estimator into the UKF to minimize the noise influence on HSE.
(3)
A novel strategy is introduced to enhance the convergence of the UKF, thereby improving the dynamic performance of HSE.
The structure of the paper is as follows: Section 2 presents the proposed method, Section 3 evaluates the new method through simulations in a distribution grid, Section 4 demonstrates its performance in field harmonic state estimation, and Section 5 concludes the work.

2. The Proposed Method

In this section, the harmonics are non-linearly modeled and the ISHUKF is proposed to process the model for HSE.

2.1. Harmonic Model

To simultaneously estimate the amplitudes and phase angles of each harmonic, the harmonic signal yk at time k can be expressed as follows:
y k = h = 1 N a k h cos ( ω k h k Δ t + θ k h )
In the equation, h is the harmonic order; N is the total number of harmonics; Δ t denotes the sampling interval; ω k h represents the frequency of the h-th harmonic, a k h is the amplitude of the h-th harmonic; and θ k h is the phase angle of the h-th harmonic. The essence of the HSE method lies in estimating the amplitude and phase at the target frequency. However, if the frequency is fixed, the HSE method cannot produce accurate results for harmonics with varying frequencies. Hence, the frequency has to be set as a state variable and be estimated during the HSE:
x k 1 = a k 1 x k 2 = ω k k Δ t + θ k 1 x k 2 h 1 = a k h x k 2 h = h ω k k Δ t + θ k h x k 2 N 1 = a k N x k 2 N = N ω k k Δ t + θ k N x k 2 N + 1 = ω k
Then, the harmonics can be modeled as
x k = f ( x k 1 ) + q k 1 y k = h ( x k ) + r k ,
where k is sample index, the system Gaussian noise q follows the N ( 0 , Q ) distribution, and the measurement Gaussian noise r follows the N ( 0 , R ) distribution. Then, the state variables can be obtained by
x k + 1 1 x k + 1 2 x k + 1 2 h 1 x k + 1 2 h x k + 1 2 N 1 x k + 1 2 N x k + 1 2 N + 1 = 1 0 0 0 0 0 0 1 0 0 0 Δ t 0 0 1 0 0 0 0 0 0 1 0 h Δ t 0 0 0 1 0 0 0 0 0 0 1 N Δ t 0 0 0 0 0 1 x k 1 x k 2 x k 2 h 1 x k 2 h x k 2 N 1 x k 2 N x k 2 N + 1 .
Because the sample interval Δ t is much smaller than the harmonic number N, the Equation (4) can be rewritten as
x k + 1 1 x k + 1 2 x k + 1 2 N 1 x k + 1 2 N x k + 1 2 N + 1 = 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 x k 1 x k 2 x k 2 N 1 x k 2 N x k 2 N + 1 .
The state function and measurement function for the proposed method are
f ( x k + 1 ) = E x k h ( x k ) = h = 1 N x k 2 h 1 cos ( x k 2 h ) ,
where the identity matrix E is the state matrix. In Equation (6), the h(.) represents the nonlinear function of x, which necessitates the use of a nonlinear method for the HSE.

2.2. UKF for HSE

The UKF is a nonlinear version of the KF with the accuracy of a second-order Taylor series approximation [35]. To implement the nonlinear transformation y = h ( x ) , where the state variable x has a mean value of x ¯ and covariance of P x , a set of 2 n + 1 sigma points χ i is constructed as
χ i = x ¯ i = 0 x ¯ + ( n + λ ) P x i i = 1 , 2 , , n x ¯ ( n + λ ) P x i i = n + 1 , , 2 n .
Then, the corresponding weights for the sigma points are
W ( 0 ) m = λ n + λ W ( 0 ) c = λ n + λ + ( 1 + β α 2 ) W i m = W i c = 1 2 ( n + λ ) i = 1 , , 2 n ,
where the λ = α 2 ( n + κ ) n is a scaling parameter that controls the distance between the two sigma points. The constant α is a factor that specifies the spread of the sigma points, β is a factor to incorporate prior knowledge of the distribution of x ¯ , and β = 2 is represents the nominal distribution. The κ is an auxiliary scaling parameter for the spread of the sigma points, which can be set to 0 [35]. Here, the α , β and κ are set as 0.001, 2 and 0, respectively.
The detailed steps of the UKF algorithm are as follows:
(1)
Initialization, k = 0, x ^ 0 and P 0 are
x ^ 0 = E [ x 0 ] P 0 = E [ ( x 0 x ^ 0 ) ( x 0 x ^ 0 ) T ] ,
where E [ . ] is the expect function.
(2)
Time Update
Calculate the Sigma points at time k, and construct the matrix:
χ i , k 1 = x ^ k 1       , i = 0 x ^ k 1 + ( ( n + λ ) P k 1 ) i , i = 1 , 2 , , n x ^ k 1 ( ( n + λ ) P k 1 ) i , i = n + 1 , n + 2 , , 2 n .
(3)
Prediction
Perform the transformation of the state equation on the set of Sigma points, and then predict the statistical quantities at time k:
χ ^ i , k k 1 = f ( χ i , k 1 ) + q k 1 ,
x ^ k k 1 = i = 0 2 n W i m χ ^ i , k k 1 ,
P k k 1 = i = 0 2 n W i c χ ^ i , k k 1 x ^ k k 1 χ ^ i , k k 1 x ^ k k 1 T + Q k 1 .
Perform the nonlinear transformation h ( ) on the χ i , k 1 in the measurement equation, and then obtain the statistic y i , k k 1 as
y i , k k 1 = h ( χ i , k 1 ) + r k 1 .
Then, use the statistic y i , k k 1 to recover the measurement prediction y ^ k k 1 as
y ^ k k 1 = i = 0 2 n W i m y i , k k 1 .
and the auto-covariance P y y and cross-covariance P x y are calculated as follows:
P y y = i = 0 2 n W i c ( y i , k k 1 y ^ k k 1 ) ( y i , k k 1 y ^ k k 1 ) ) T + R k 1 ,
P x y = i = 0 2 n W i c ( χ i , k 1 x ^ k k 1 ) ( y i , k k 1 y ^ k k 1 ) T .
(4)
Measurement Update
Calculate the filter gain K :
K k = P x y P y y 1 .
Then, the updated state estimate x k and covariance estimate P k at time step k are
x ^ k k = x ^ k k 1 + K k ( y k y ^ k k 1 ) ,
P k = P k k 1 K k P y y K k T .
According to the filter model, the h-order harmonic state at time k is evaluated as
a k h = x k 2 h 1 θ k h = x k 2 h h x k 2 N + 1 k Δ t .

2.3. Sage–Husa Noise Estimation

In traditional UKF methods, the noise covariance Q and R in Equation (15) and Equation (18) are fixed during the estimation process. This limitation prevents the accurate stratification of HSE in distribution grids, especially due to the presence of dynamic noise. The Sage–Husa estimation method is introduced to adjust the covariance values according to the noise level [36], thereby improving the accuracy of HSE when using the UKF.
(1)
The covariance of system noise is evaluated as
Q ^ k = ( 1 d k ) Q ^ k 1 + d k ( K k e k e k T K k T + P k E k 1 P k 1 E k 1 T ) = ( 1 d k ) Q ^ k 1 + d k ( K k e k e k T K k T + P k P k 1 ) ,
where e k = y k y ^ k k 1 , and d k = ( 1 b ) / ( 1 b k + 1 ) is the weighted coefficient and b ⋲ [0.95, 0.99] is the forgetting factor.
(2)
The covariance of measurement noise is estimated as
R ^ k = ( 1 d k ) R ^ k 1 + d k e k e k T .

2.4. Improved Sage–Husa Noise Estimation

In Equation (22), in the system with dynamic noise, the estimation of Q ^ k is prone to filter divergence because it tends to fall into a nonpositive semidefinite. Then, adjustment factor μ is introduced to modify the estimation of Q ^ k without losing critical information from the original Sage–Husa estimation [37]. Then the Q ^ k is given by
Q ^ k = ( 1 d k ) Q ^ k 1 + d k ( K k e k e k T K k T + ( μ k ) p ( P k P k 1 ) ) ,
where p is initialized as 0, and the adjustment factor μ is calculated as
μ k = exp ( t r ( P k P k 1 ) K k e k e k T K k T ) ,
where tr(.) is the trace operation. At every step k, the Q ^ k is monitored. If the min ( e i g ( Q ^ k ) ) < 0 , the Q ^ k is not a positive semidefinite, and then p = p + 1 in Equation (26) until the min ( e i g ( Q ^ k ) ) > 0 , which ensures that the Q ^ k is a positive semidefinite. Here, the min(.) returns the minimum value of (.) and eig(.) returns the eigenvalue vector of (.).

2.5. Harmonic State Estimation by Improved SHUKF (ISHUKF)

The HSE process based on the new method is as follows:
(1)
Sample the power signals.
(2)
Use the UKF to process the power signals and estimate the harmonics state by the state variable vector x according to Equation (21).
(3)
Use Sage–Husa noise to estimate covariances of system noise Q and measurement noise R, respectively, for the UKF iteration.
(4)
Monitor the Q, and use Equation (27) to make sure that the Q ^ k is a positive semidefinite.
(5)
Refresh the Q and R, then move forward to Step (2).
(6)
Stop the whole process if the HSE is over.
The flowchart of the new method is shown in Figure 1.
The computational complexity of the UKF is O((2N + 1)3). Similarly, the one of Equation (26) is also O((2N + 1)3). Therefore, the computational complexity of the new method is O(2(2N + 1)3), which is directly related to the number of state variables of the filter model. In application, the size of the filter model can be calibrated for the balance of interested HSE accuracy and computation consumption.
Pseudocode of the new method
1. Build the nonlinear filter model for the interested harmonics (Equation (6)).
2. Initialize the parameters: r, q, P, α , β , κ and b.
3. Obtain power signal y k .
4. Generate sigma points for the UKF estimation (Equations (7) and (8)).
5. Perform UKF to estimate y k (Equation (7) to Equation (21)).
6. Monitor the noise by improved Sage–Husa estimator (Equation (23) to Equation (25)).
7. Return to 5 to modify the Q and R of the UKF.

3. Simulation Analysis

In this section, the new method is applied for HSE in a simulated distribution grid system. The settings of the new method are given in Table 1. Dynamic HSE methods such as ADALINE and KF are used for the ISHUKF comparisons. The sampling rate is 4 kHz.

3.1. Harmonic State Estimation in Distribution Grid Model

To verify the performance of the ISHUKF for HSE, this paper constructs the IEEE 14-node system for verification, as shown in Figure 2. This system has generators connected to nodes 1, 2, 3, 6, and 8 for power supply. The specific parameters of the system components such as generators, transformers, buses, and branches can be found in [38]. Apart from the harmonic sources at nodes 10 and 13, the rest are non-harmonic source buses. The harmonic sources are modeled as current sources, and their harmonic spectrum is shown in Table 2. Measurement devices are installed at nodes 2, 4, 5, 6, 7, 8, 11, and 12 to capture the harmonic at each node.
In the simulation, the harmonic impedance matrix of the system is established using the BIBC (bus injection current-branch current)–BCBV (branch current-bus voltage) method, as described in [39]. The ISHUKF is applied for the estimation of harmonic currents injected into the grid with simulated noise.
To evaluate the accuracy of HSE, the root-mean-square error (RMSE) is introduced as the evaluation metric. The RMSE can measure the deviation between the estimated and true values of the harmonic current magnitude and phase angle, and the RMSE for the h-order harmonic evaluation is given by
R M S E h = 1 L l = 1 L ( y ^ l , h y l , h ) 2 ,
where l is the sample index and L is the data length. The y ^ l , h and y l , h represent the estimated and true values of the magnitude or the phase angle of the h-th harmonic current respectively. A smaller RMSE indicates a more accurate HSE.
To evaluate the HSE in the presence of noise, the standard deviation (STD) is used as a metric. A method with smaller STD is less affected by noise, indicating a smoother result with reduced noise contamination. The standard deviation is given by
S T D h = 1 L l = 1 L ( y ^ l , h y ¯ l , h ) 2 ,
where y ¯ l , h represents the mean values of the magnitude of the h-th harmonic current.

3.2. Harmonic State Estimation with Dynamic Noise

To verify the estimation accuracy of the ISHUKF with dynamic noise interference, the 0.2 s harmonic current is divided into five segments, each lasting 0.04 s. The signal-to-noise ratios (SNRs) of the segments are 50 dB, 45 dB, 40 dB, 35 dB, and 30 dB, respectively, from the first to the last segment. The noise is Gaussian with a mean of zero, and the system frequency is 50 Hz. The harmonic current and the noise affecting the harmonic are shown, respectively, in Figure 3.
The RMSE and STD comparisons of the three methods are presented in Table 3. Both the ADALINE and KF are freed linear estimators, with harmonic frequencies set based on the system frequency. As a result, the HSE errors arise solely from the noise. The ADALINE and KF yield similar RMSE and STD values for harmonic estimation since both methods rely on the least-mean-squares rule. However, because the parameters of ADALINE and KF, such as the learning rate and noise variance, are fixed, the estimation of the two methods cannot be adjusted to the change of noise. In contrast, the ISHUKF uses the Sage–Husa algorithm to estimate the noise and tunes the parameter of the UKF at every sample of the current, which provides more accuracy (smaller RMSE) and is less noise-affected (smaller STD) than the two methods. Moreover, the improved Q calculation helps to prevent filter divergence when noise conditions change, further contributing to the superior performance of the proposed method.
The performance comparison of the three methods for the 5th, 7th, 11th and 13th harmonics are shown in the Figure 4, Figure 5, Figure 6, and Figure 7, respectively. From these figures, it is evident that the estimation curve of the ISHUKF exhibits less noise. This is primarily due to the underlying principle of the UKF. When the noise is significant, the UKF places greater trust in the estimated state variables ( x ^ k k 1 ) in Equation (19), and the estimation x ^ k k predominantly relies on the filter’s prediction. Conversely, when the noise is low, the UKF relies more on the measurement ( y k y ^ k k 1 ), and the estimation is primarily influenced by the measurement. The Kalman gain ( K k ) controls the weighting of the measurement. Because the Kalman gain is adjusted at each time step k, based on the noise covariance Q and R, the ISHUKF is less affected by noise compared to the other two methods.

4. Experiment

To test the performance of the method proposed in this paper on a hardware platform, we have established a setup consisting of the following components, as shown in Figure 8. The platform includes a 600 V DC power supply, a three-phase two-level inverter (simulating the harmonic source), a 40 kW programmable three-phase AC power source (simulating the distribution grid, with adjustable frequency), a programmable load, a rapid control prototyping (RCP) unit, and a computer with CPU intel i7-8750H memory DDR4 16G (for HSE and result display) (ThinkPad, Beijing, China). The computer downloads the program to the inverter controller via the RCP unit. Meanwhile, the signal conditioning circuit collects the three-phase current signals, which are then transmitted to the computer through the RCP unit for the HSE and display. The current sampling rate is 4 kHz, and the filtering capacitor and inductor are 50 uF and 1 mH, respectively. When the inverter switches are open-circuited, all three phase currents become distorted due to the condition where the sum of the currents equals zero, leading to the injection of significant harmonics into the grid. Since the harmonic orders of the currents are low during the fault condition, the DC component, fundamental component, second harmonic, and third harmonic are modeled. The computational complexity of this process is O(2 × 113). Table 4 presents the key parameters of the experiments.

4.1. HSE for Single Switch Open-Circuited Harmonics

This experiment evaluates the new method for dynamic HSE under frequency deviation. The load current is initially 5 A and increases to 7.5 A at 0.3 s, then decreases back to 5 A at 0.5 s. The upper arm switch of Phase A is open-circuited at 0.4 s. The system operates at 49.5 Hz, controlled by the programmable AC source. The current signals of the three-phase inverter and the estimated frequency by ISHUKF are shown in Figure 9. Prior to the fault, the harmonics of the current are mainly from switches by pulse width modulation and very small. After the fault occurs, intense harmonics appear in the faulty phase, as half of the current waveform is missing [40]. Also, because the sum of the three phase currents is zero, the currents of the unfaulty phases also exhibit harmonics. The runtime of the ISHUKF is 0.08 s, which is much less than 0.6 s, demonstrating the real-time capability of the proposed method.
The estimation comparisons for the second harmonic and third harmonic of each phase are shown in Figure 10, Figure 11, and Figure 12, respectively, because the two harmonic and third harmonic are the two largest harmonics in the three-phase currents.
In the Figure 10, Figure 11 and Figure 12, both ADALINE and KF exhibit oscillations for all the estimation of all harmonics, as these two methods are designed for a 50 Hz system. When there is frequency deviation, the harmonic frequencies do not align with the model assumptions of these methods. As a result, even in the absence of harmonics (before the fault), the outputs from both methods show oscillatory behavior. In contrast, the ISHUKF incorporates frequency as part of the state variables and estimates the frequency at each step k (See Figure 9). The estimated frequency is then used for the HSE, which ensures that frequency deviations do not affect the performance of the ISHUKF.
The ISHUKF requires approximately 0.01 s (half a cycle) for the dynamic HSE, which is close to that of ADALINE and about 0.003 s faster than that of the KF. Both ADALINE and KF use least-mean-squares estimation. The weight updates in ADALINE are managed by a neural network, making it robust against noise interference. On the other hand, the state variables of the KF are prone to divergence when the filter model is large and with noise. Hence, the KF takes a longer time for the HSE to keep the filter convergence. In contrast, the ISHUKF is less affected by the noise and provides fast HSE, similar to ADALINE.

4.2. HSE for Multiple Switch Open-Circuited Harmonics

This experiment aims to evaluate the performance of the proposed method for steady HSE under conditions of low SNR. In this scenario, the upper arms of Phase A and Phase B are open-circuited, with the current set to 1 A. Since two phases are affected by faults, the direct component of the fault current is higher than that of a single-phase fault. The peak value of the fault current is approximately 2.6 A, which is about half of the value observed in Section 4.1. While the noise remains nearly unchanged, the currents in this case are reduced. Figure 13 shows the three-phase currents.
Table 5 presents STDs of the three methods for HSE, and Figure 14 shows the detailed performance of the Phase A HSE.
In Table 4, both ADALINE and KF show similar estimation results, as both methods are based on least-mean-squares estimation. However, due to the presence of noise, the true harmonic amplitudes are distorted, leading to larger standard deviations (STDs) in the estimations. ADALINE adjusts the weights of the neurons for HSE using gradient-based optimization, while KF uses Kalman gain, which is more susceptible to saturation, to perform a similar function. As a result, the ADALINE method responds more quickly to noise than KF. In contrast, the ISHUKF avoids Kalman gain saturation because the process and measurement noise covariances (Q and R) are updated at each step k. Additionally, by estimating the noise, the ISHUKF is better able to identify the true harmonic values amidst the noise, leading to more accurate HSE with smaller STDs compared to ADALINE and KF.

5. Conclusions

In order to accurately perform the dynamic harmonic state estimation of the power system under the influence of time-varying noise and frequency deviation, this paper proposes a dynamic HSE based on an improved Sage–Husa UKF. Because the frequency is estimated, the filter model of HSE becomes nonlinear, and the UKF is used to handle this nonlinearity. The Sage–Husa noise estimator is integrated to evaluate the noise covariance, ensuring the accuracy of the UKF estimation even in the presence of noise. Furthermore, the improved algorithm maintains the system noise covariance as a positive semidefinite, allowing the UKF to remain accurate despite time-varying noise. The proposed method is validated through simulations of the IEEE 14-node system for HSE with time-varying noise, as well as through experiments on a faulty grid-connected inverter for field HSE under frequency deviation, load changes and noise.
The proposed method can be flexibly adapted for harmonic estimation by adjusting the size of the filter model and can also be applied in various areas, such as harmonic source localization and power quality evaluation. Additionally, many types of power equipment generate harmonics under faulty conditions. The new method also holds potential for fault detection applications.

Author Contributions

Conceptualization, J.S.; methodology, J.S.; software, P.Y.; validation, P.Y.; formal analysis, P.Y.; investigation, J.S.; resources, J.S.; data curation, P.Y.; writing—original draft preparation, P.Y.; writing—review and editing, J.S.; visualization, J.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Carta, D.; Muscas, C.; Pegoraro, P.A.; Solinas, A.V.; Sulis, S. Compressive sensing-based harmonic sources identification in smart grids. IEEE Trans Instrum. Meas. 2021, 70, 9000810. [Google Scholar] [CrossRef]
  2. Kumar, D.; Zare, F. Harmonic analysis of grid connected power electronic systems in low voltage distribution networks. IEEE J. Emerg. Sel. Top. Power Electron. 2016, 4, 70–79. [Google Scholar] [CrossRef]
  3. Sun, Y.; Wu, H.; Song, X.; Zhang, H.; Zhang, Y.; Chen, J.; Liu, H. Analysis of Influence of Grid-Following and Grid-Forming Static Var Generators on High-Frequency Resonance in Doubly Fed Induction Generator-Based Wind Farms. Electronics 2024, 13, 3879. [Google Scholar] [CrossRef]
  4. Safarishaal, M.; Hemmati, R.; Saeed Kandezy, R.; Jiang, J.N.; Lin, C.; Wu, D. Nonlinear Impact of Topological Configuration of Coupled Inverter-Based Resources on Interaction Harmonics Levels of Power Flow. Energies 2024, 17, 2512. [Google Scholar] [CrossRef]
  5. Jin, G.; Li, F.; Yin, C.; Liu, J.; Wang, T. Analysis of Small-Disturbance Stability of Onshore Wind Power All-DC Power Generation System and Identification of Leading Factors. Electronics 2024, 13, 8. [Google Scholar] [CrossRef]
  6. Ahmadi-Gorjayi, F.; Mohsenian-Rad, H. A physics-aware MIQP approach to harmonic state estimation in low-observable power distribution systems using harmonic phasor measurement units. IEEE Trans. Smart Grid 2023, 14, 2111–2124. [Google Scholar] [CrossRef]
  7. Li, J.; Cao, Y.; Zhang, X.; Lin, H.; Dai, H.; Xu, Y. An accurate harmonic parameter estimation method based on Slepian and Nuttall mutual convolution window. Measurement 2021, 174, 109027. [Google Scholar] [CrossRef]
  8. Chen, L.; Zhao, W.; Xie, X.; Zhao, D.; Huang, S. Harmonic phasor estimation based on frequency-domain sampling theorem. IEEE Trans. Instrum. Meas. 2021, 70, 9001210. [Google Scholar] [CrossRef]
  9. Mack, P.; de Koster, M.; Lehnen, P.; Waffenschmidt, E.; Stadler, I. Power Quality State Estimation for Distribution Grids Based on Physics-Aware Neural Networks—Harmonic State Estimation. Energies 2024, 17, 5452. [Google Scholar] [CrossRef]
  10. Barros, J.; Diego, R.I. On the use of the Hanning window for harmonic analysis in the standard framework. IEEE Trans. Power Deliv. 2006, 21, 538–539. [Google Scholar] [CrossRef]
  11. Chen, L.; Zhao, W.; Wang, F.; Wang, Q.; Huang, S. Enhanced Interpolated Dynamic DFT Synchrophasor Estimator Considering Second Harmonic Interferences. Sensors 2018, 18, 2748. [Google Scholar] [CrossRef] [PubMed]
  12. Costa, F.B.; Häselbarth, S.; Yanchenko, S.; Oliveira, A.M.; Strunz, K. Wavelet-based harmonic magnitude measurement in the presence of interharmonics. IEEE Trans. Power Deliv. 2023, 38, 2072–2087. [Google Scholar] [CrossRef]
  13. Ildarabadi, R.; Zadehbagheri, M. New Technology and Method for Monitoring the Status of Power Systems to Improve Power Quality—A Case Study. Processes 2023, 11, 2468. [Google Scholar] [CrossRef]
  14. Chang, G.W.; Lin, Y.-L.; Liu, Y.-J.; Sun, G.H.; Yu, J.T. A Hybrid Approach for Time-Varying Harmonic and Interharmonic Detection Using Synchrosqueezing Wavelet Transform. Appl. Sci. 2021, 11, 752. [Google Scholar] [CrossRef]
  15. Afroni, M.J.; Sutanto, D.; Stirling, D. Analysis of Nonstationary Power-Quality Waveforms Using Iterative Hilbert Huang Transform and SAX Algorithm. IEEE Trans. Power Deliv. 2013, 28, 2134–2144. [Google Scholar] [CrossRef]
  16. Wang, H.; Liu, J.; Luo, S.; Xu, X. Research on Power Quality Disturbance Detection Method Based on Improved Ensemble Empirical Mode Decomposition. Electronics 2020, 9, 585. [Google Scholar] [CrossRef]
  17. Zabihi, A.; Aghdasi, F.; Ellouzi, C.; Singh, N.K.; Jha, R.; Shen, C. Non-Contact Wind Turbine Blade Crack Detection Using Laser Doppler Vibrometers. Energies 2024, 17, 2165. [Google Scholar] [CrossRef]
  18. IEC 61000-4-7; Electromagnetic Compatibility (EMC)—Part 4–7: Testing and Measurement Techniques. IEC: Geneva, Switzerland, 2009.
  19. Shu, Q.; Fan, Y.; Xu, F.; Wang, C.; He, J. A harmonic impedance estimation method based on AR model and Burg algorithm. Electr. Power Syst. Res. 2022, 202, 107568. [Google Scholar] [CrossRef]
  20. Teng, J.-H.; Leou, R.-C.; Chang, C.-Y.; Chan, S.-Y. Harmonic Current Predictors for Wind Turbines. Energies 2013, 6, 1314–1328. [Google Scholar] [CrossRef]
  21. Babaei, Z.; Samet, H.; Jalil, M. An innovative approach considering active power and harmonics for modeling the electric arc furnace along with analyzing time-varying coefficients based on ARMA models. Int. J. Electr. Power Energy Syst. 2023, 153, 109377. [Google Scholar] [CrossRef]
  22. Katz, R.; Diab, N.; Batenkov, D. On the accuracy of Prony’s method for recovery of exponential sums with closely spaced exponents. Appl. Comput. Harmon. Anal. 2024, 73, 101687. [Google Scholar] [CrossRef]
  23. Gong, J.; Liu, S. A Harmonic and Interharmonic Detection Method for Power Systems Based on Enhanced SVD and the Prony Algorithm. Appl. Sci. 2023, 13, 7558. [Google Scholar] [CrossRef]
  24. Jain, S.K.; Singh, S.N. Exact model order ESPRIT technique for harmonics and interharmonics estimation. IEEE Trans. Instrum. Meas. 2012, 61, 1915–1923. [Google Scholar] [CrossRef]
  25. Bracale, A.; Carpinelli, G.; Gu, I.; Bollen, M. A new joint sliding-window ESPRIT and DFT scheme for waveform distortion assessment in power systems. Electr. Power Syst. Res. 2012, 88, 112–120. [Google Scholar] [CrossRef]
  26. Santos, E.; Khosravy, M.; Lima, M.; Cerqueira, A.; Duque, C. ESPRIT associated with filter bank for power-line harmonics, sub-harmonics and inter-harmonics parameters estimation. Int. J. Electr. Power Energy Syst. 2020, 118, 105731. [Google Scholar] [CrossRef]
  27. Marei, M.I.; El-Saadany, E.F.; Salama, M.M.A. A processing unit for symmetrical components and harmonics estimation based on a new adaptive linear combiner structure. IEEE Trans. Power Deliv. 2024, 19, 1245–1252. [Google Scholar] [CrossRef]
  28. Chang, G.W.; Chen, C.-I.; Liang, Q.W. A two-stage ADALINE for harmonics and interharmonics measurement. IEEE Trans. Ind. Electron. 2009, 56, 2220–2228. [Google Scholar] [CrossRef]
  29. Zhou, Y.; Zhang, C.; Zhang, Y.; Zhang, J. A new adaptive square-root unscented Kalman filter for nonlinear systems with additive noise. Int. J. Aerosp. Eng. 2015, 2015, 381478. [Google Scholar] [CrossRef]
  30. Janpong, S.; Areerak, K.; Areerak, K. Harmonic Detection for Shunt Active Power Filter Using ADALINE Neural Network. Energies 2021, 14, 4351. [Google Scholar] [CrossRef]
  31. Asl, R.M.; Hagh, Y.S.; Simani, S.; Handroos, H. Adaptive square-root unscented Kalman filter: An experimental study of hydraulic actuator state estimation. Mech. Syst. Signal Process. 2019, 132, 670–691. [Google Scholar]
  32. Ouyang, Q.; Ma, R.; Wu, Z.; Xu, G.; Wang, Z. Adaptive square-root unscented Kalman filter-based state-of-charge estimation for lithium-ion batteries with model parameter online Identification. Energies 2020, 13, 4968. [Google Scholar] [CrossRef]
  33. Qi, J.; Sun, K.; Wang, J.; Liu, H. Dynamic state estimation for multi-machine power system by unscented Kalman filter with enhanced numerical stability. IEEE Trans. Smart Grid 2018, 9, 1184–1196. [Google Scholar] [CrossRef]
  34. Du, S.; Sun, W.; Wang, Y.; Wang, M.; Zhang, H. Harmonic Injection Control of Permanent Magnet Synchronous Motor Based on Fading Memory Kalman Filtering. Electronics 2023, 12, 4890. [Google Scholar] [CrossRef]
  35. Julier, S.J.; Uhlmann, J.K. Unscented filtering and nonlinear estimation. Proc. IEEE 2004, 92, 401–422. [Google Scholar] [CrossRef]
  36. Zhang, Y.; Nie, Z.; Wang, Z.; Zhang, G.; Shan, X. Integration of High-Rate GNSS and Strong Motion Record Based on Sage–Husa Kalman Filter with Adaptive Estimation of Strong Motion Acceleration Noise Uncertainty. Remote Sens. 2024, 16, 2000. [Google Scholar] [CrossRef]
  37. Fan, Y.; Qiao, S.; Wang, G.; Zhang, H. An Improved Sage-Husa Variational Robust Adaptive Kalman Filter With Uncertain Noise Covariances. IEEE Sens. J. 2024, 24, 28921–28930. [Google Scholar] [CrossRef]
  38. Pak, L.F.; Dinavahi, V.; Chang, G.; Steurer, M.; Ribeiro, P.F. Real-Time Digital Time-Varying Harmonic Modeling and Simulation Techniques IEEE Task Force on Harmonics Modeling and Simulation. IEEE Trans. Power Delivery 2007, 22, 1218–1227. [Google Scholar] [CrossRef]
  39. Teng, J.H. A direct approach for distribution system load flow solutions. IEEE Trans. Power Deliv. 2003, 18, 882–887. [Google Scholar] [CrossRef]
  40. He, S.; Tian, W.; Zhu, R.; Zhang, Y.; Mao, S. Electrical Signature Analysis for Open-Circuit Faults Detection of Inverter With Various Disturbances in Distribution Grid. IEEE Trans. Ind. Inform. 2023, 19, 8351–8361. [Google Scholar] [CrossRef]
Figure 1. The flowchart of the ISHUKF for HSE.
Figure 1. The flowchart of the ISHUKF for HSE.
Electronics 14 00376 g001
Figure 2. IEEE 14 node diagram including harmonic loads at busbars 10 and 13.
Figure 2. IEEE 14 node diagram including harmonic loads at busbars 10 and 13.
Electronics 14 00376 g002
Figure 3. The harmonic current and the increasing noise.
Figure 3. The harmonic current and the increasing noise.
Electronics 14 00376 g003
Figure 4. The performance comparison of methods for the 5-th harmonic estimation. The blue curve is the estimation and the dashed black one is the true value.
Figure 4. The performance comparison of methods for the 5-th harmonic estimation. The blue curve is the estimation and the dashed black one is the true value.
Electronics 14 00376 g004
Figure 5. The performance comparison of methods for the 7-th harmonic estimation. The blue curve is the estimation and the dashed black one is the true value.
Figure 5. The performance comparison of methods for the 7-th harmonic estimation. The blue curve is the estimation and the dashed black one is the true value.
Electronics 14 00376 g005
Figure 6. The performance comparison of methods for the 11-th harmonic estimation. The blue curve is the estimation and the dashed black one is the true value.
Figure 6. The performance comparison of methods for the 11-th harmonic estimation. The blue curve is the estimation and the dashed black one is the true value.
Electronics 14 00376 g006
Figure 7. The performance comparison of methods for the 13-th harmonic estimation. The blue curve is the estimation and the dashed black one is the true value.
Figure 7. The performance comparison of methods for the 13-th harmonic estimation. The blue curve is the estimation and the dashed black one is the true value.
Electronics 14 00376 g007
Figure 8. Experiment platform for harmonic state estimation test.
Figure 8. Experiment platform for harmonic state estimation test.
Electronics 14 00376 g008
Figure 9. The field faulty currents at 49.5 Hz.
Figure 9. The field faulty currents at 49.5 Hz.
Electronics 14 00376 g009
Figure 10. The estimation comparison of the second harmonic and the third harmonic of Phase A (faulty phase) current with single switch open-circuited.
Figure 10. The estimation comparison of the second harmonic and the third harmonic of Phase A (faulty phase) current with single switch open-circuited.
Electronics 14 00376 g010
Figure 11. The estimation comparison of the second harmonic and the third harmonic of phase B (unfaulty phase) current.
Figure 11. The estimation comparison of the second harmonic and the third harmonic of phase B (unfaulty phase) current.
Electronics 14 00376 g011
Figure 12. The estimation comparison of the second harmonic and the third harmonic of phase C (unfaulty phase) current.
Figure 12. The estimation comparison of the second harmonic and the third harmonic of phase C (unfaulty phase) current.
Electronics 14 00376 g012
Figure 13. The currents of the inverter when the upper arms of Phase A and Phase B are open-circuited.
Figure 13. The currents of the inverter when the upper arms of Phase A and Phase B are open-circuited.
Electronics 14 00376 g013
Figure 14. The estimation comparison of the second harmonic and the third harmonic of Phase A (faulty phase) current with multiple switch open-circuited.
Figure 14. The estimation comparison of the second harmonic and the third harmonic of Phase A (faulty phase) current with multiple switch open-circuited.
Electronics 14 00376 g014
Table 1. Parameter settings of the new method.
Table 1. Parameter settings of the new method.
UKFSage–Husa
rqP α β κ b
0.010.0100.001200.98
Table 2. Harmonic source spectrum table.
Table 2. Harmonic source spectrum table.
Harmonic OrderAmplitude/p.u.Phase/°
11.00000.00
50.1824−55.68
70.1190−84.11
110.0573−143.56
130.0401−175.58
Table 3. The RMSE comparison of the HSE by the three methods.
Table 3. The RMSE comparison of the HSE by the three methods.
Harmonic
Order
Harmonic
Parameters
Methods
ADALINEKFISHUKF
RMSESTDRMSESTDRMSESTD
5thAmplitude (p.u.)0.00960.00840.00910.00870.00730.0072
Phase (degree)2.7172.6722.6972.6812.1892.220
7thAmplitude (p.u.)0.00780.00760.00730.00770.00530.0053
Phase (degree)4.4654.0644.1734.3803.3583.390
11th Amplitude (p.u.)0.00670.00660.00660.00690.00380.0039
Phase (degree)10.7677.5829.427.7496.0016.013
13th Amplitude (p.u.)0.00660.00670.00660.00660.00340.0035
Phase (degree)10.3819.58810.88510.3654.8544.064
Table 4. Key parameters of the experimental settings.
Table 4. Key parameters of the experimental settings.
System frequency (Hz)50 ± 0.5
Injected current (A)1 to 7.5
Connected grid line voltage (V)380
Sampling rate (Hz)4000
Interested harmonic order Second and third
Table 5. The standard deviation comparison of the HSE by the three methods.
Table 5. The standard deviation comparison of the HSE by the three methods.
Harmonic OrderADALINEKFISHUKF
Second0.00460.00560.0039
Third0.00410.00460.0035
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yu, P.; Sun, J. Improved Sage–Husa Unscented Kalman Filter for Harmonic State Estimation in Distribution Grid. Electronics 2025, 14, 376. https://doi.org/10.3390/electronics14020376

AMA Style

Yu P, Sun J. Improved Sage–Husa Unscented Kalman Filter for Harmonic State Estimation in Distribution Grid. Electronics. 2025; 14(2):376. https://doi.org/10.3390/electronics14020376

Chicago/Turabian Style

Yu, Peixuan, and Jianjun Sun. 2025. "Improved Sage–Husa Unscented Kalman Filter for Harmonic State Estimation in Distribution Grid" Electronics 14, no. 2: 376. https://doi.org/10.3390/electronics14020376

APA Style

Yu, P., & Sun, J. (2025). Improved Sage–Husa Unscented Kalman Filter for Harmonic State Estimation in Distribution Grid. Electronics, 14(2), 376. https://doi.org/10.3390/electronics14020376

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