SlideShare a Scribd company logo
Bulletin of Electrical Engineering and Informatics
Vol. 10, No. 4, August 2021, pp. 1785~1792
ISSN: 2302-9285, DOI: 10.11591/eei.v10i4.2789 1785
Journal homepage: http://beei.org
The estimate of amplitude and phase of harmonics in power
system using the extended kalman filter
Mehrdad Ahmadi Kamarposhti1
, Ahmed Amin Ahmed Solyman2
1
Department of Electrical Engineering, Jouybar Branch, Islamic Azad University, Jouybar, Iran
2
Department of Electrical and Electronic Engineering, Istanbul Gelisim University, Avcilar, Turkey
Article Info ABSTRACT
Article history:
Received Jan 9, 2021
Revised Apr 13, 2021
Accepted May 29, 2021
Nowadays, the amplitude of the harmonics in the power grid has increased
unwittingly due to the increasing use of the nonlinear elements and power
electronics. It has led to a significant reduction in power quality indicators. As
a first step, the estimate of the amplitude, and the phase of the harmonics in
the power grid are essential to resolve this problem. We use the Kalman filter
to estimate the phase, and we use the minimal squared linear estimator to
assess the amplitude. To test the aforementioned method, we use terminal test
signals of the industrial charge consisting of the power converters and ignition
coils. The results show that this algorithm has a high accuracy and estimation
speed, and they confirm the proper performance in instantaneous tracking of
the parameters.
Keywords:
Kalman filter
Minimal squared linear
estimator
Power grid harmonic phase
Power quality This is an open access article under the CC BY-SA license.
Corresponding Author:
Mehrdad Ahmadi Kamarposhti
Department of Electrical Engineering
Jouybar Branch, Islamic Azad University, Jouybar, Iran
Emails: mehrdad.ahmadi.k@gmail.com, m.ahmadi@jouybariau.ac.ir
1. INTRODUCTION
The amplitude extension of the harmonics is one of the major concerns of the people exploiting the
modern power systems. The harmonic distortions can result in poor performance, lifetime reduction, and the
lower efficiency in the industrial equipment. The harmful effects of harmonics are clearly documented in
articles [1]-[4]. For this reason, the IEC and IEEE have developed standards for harmonics. Increasing the
use of the nonlinear elements has intensified the presence of harmonics in the power grid. To prevent the
growing trend of harmonic distortions, which are currently considered as the most important indicator of
power quality, knowing the harmonic parameters such as amplitude and phase is necessary to design suitable
filters. In other words, we need to estimate the harmonics in the system accurately in order to precisely
control the equipments. Up to now, there have been several ways to estimate harmonics that are defined as
unwanted components in an alternating waveform having distortion. For example, we can name the discrete
Fourier transform methods [5], the mode estimation techniques [6], data exploration tools [7], independent
component analysis [8], and neural networks [9]. Suresh Kumar et al. [10] we used genotype algorithms, the
minimum squared genetic algorithms, the optimization of the least squared hybrid particles an adaptive
neural network in order to estimate harmonics in the power system. The article shows that if the neural
network method is well trained, it can provide better results than other methods. M. Gupta et al. [11], we use
the method of optimizing the congestion of particles combined with the gradient reduction method to train
the neural network weights. Because of the problems involved in training the parameters of the neural
network, we used a new and efficient method to identify the harmonic parameters.
 ISSN: 2302-9285
Bulletin of Electr Eng & Inf, Vol. 10, No. 4, August 2021 : 1785– 1792
1786
A rapid and reliable estimation of power system signal harmonics is highly vital for the assessment
of power quality and plays an important role in power systems. Voltage distortion and current waveforms are
severely affected by an increasing demand for non-linear loads, the large-scale use of electronic equipments
of high-power industrial and medium-power domestic loads, arc furnaces, controlled motor drives [12]. An
unexpected increase in harmonic pollution resulted from the signal circuit intereference, communications,
and electric railway systems [13], is one of the critical issues of the power quality [14] assessment and
decreases the electricity quality supplied to the consumers [15]. This is why a fast and proper component
harmonics assessment is critical.
The research on harmonic estimation suggests that the amplitude of the harmonics can be estimated
by both parametric and non-parametric methods. Kalman filter, Prony method, adaptive notch filtering,
Hilbert-Huang transform matrix pencil method, and Taylor-Fourier. are the parametric methods whereas non-
parametric algorithms are based on the discrete fourier transform (DFT) [16]. In FFT-based [17]-[19]
frequency algorithm, non-synchronous sampling produces some unavoidable defects such as spectral leakage
and picket fence effect [20]. To alleviate these shortcomings, windowed interpolation FFT (WIFFT)
algorithm [21] has been suggested. Using spectral analysis, Cheng-I Chen et al. [20] have tackled frequency
estimation for inter-harmonics and power system harmonics. Kalman filter (KF) being one of the best
methods for the estimation of the sinusoid parameters manipulated by unknown measurement noise fails to
produce exact results during nonlinearity and power system dynamics. Sub-optimal solutions comprising two
classes, that is, local approach and global approach, employ nonlinear extended kalman filter (EKF) [22] as
one of the local approach methods which yields recursive sub-optimal solutions for nonlinear dynamic
systems [23]. Although EKF is computationally efficient and linearizes the state-space model with first order
Taylor series expansion [24], this method may deviate from the correct course due to model nonlinearity and
improper initialization. Thus, to decrease such instances, unscented kalman filter (UKF) [25], has been
suggested that surpasses the conventional EKF for its capacity to diminish linearization burden for the
predicted states and achieve the second-order accuracy. Nevertheless, it does not yield the correct
second-order moments for quadratic functions [26]. Quadrature kalman filter (QKF) [27], robust kalman
filter [28], iterated kalman filter (IKF) [29] and ensemble kalman filter (EnKF) [30] have been introduced to
enhance the stability and accuracy of the estimation. Among all these KF, QKF exactly calculates the
recursive Bayesian estimation integrals based on the gaussian assumption employing the Gauss-Hermite
numerical integration rule; however, QKF is likely to diverge due to high dimensional state-space models
[23]. In this paper, the proposed method consists of the KF combination, and a linear estimator named as the
least squared (LS), therefore, we suggest LS.KF as the name for this method. This algorithm uses the KF
method to estimate the phase, and the LS method to estimate the amplitude.
2. EXTENDED KALMAN FILTER
A new version of the linear kalman filter with certain modifications called the EKF is used in
systems with measurement equations and non-linear processes. In each stage of the recursive algorithm,
using a first order Taylor series, the non-linear equations are linearized to form a linear process before the
linear Kalman filter model is employed. The EKF delineates the relationship between the states and the
measurements and the state transition function using the nonlinear functions f and h, respectively:
𝑥k+1 = 𝑓[𝑥𝑘 , 𝑘] + 𝑤𝑘 (1)
𝑧𝑘 = ℎ[𝑥𝑘 , 𝑘] + 𝑣𝑘 (2)
Where xk and zk are the state vector and the measurement at instant k, respectively; and wk and vk are the
uncertainties introduced by the measurement noise and the state transition, both with zero mean and
covariances Qk and Rk, respectively. The nonlinear functions f and h are linearized by a first-order Taylor
series as:
𝑥k+1 = 𝛷𝑘𝑥𝑘 + 𝑤𝑘
𝑧𝑘 = 𝐻𝑘𝑥𝑘 + 𝑣𝑘
𝛷𝑘 = 𝜕𝑓𝑖[𝑥𝑘, 𝑘] /𝜕𝑥𝑗
𝐻𝑘 = 𝜕ℎ𝑖 [𝑥𝑘, 𝑘]/𝜕𝑥𝑗
(3)
Where fi and hi are the ith elements of functions f and h, respectively, and Φk and Hk are the state transition
and the measurement matrices, respectively.
Bulletin of Electr Eng & Inf ISSN: 2302-9285 
The estimate of amplitude and phase of harmonics in power system … (Mehrdad Ahmadi Kamarposhti)
1787
The kalman filter is a two-step prediction-correction process. Starting with an initial estimate of the process
𝑥𝑘
/
, and its error covariance matrix 𝑃𝑘
/
, the measurement at instant k, zk, is used to improve the estimation. A
linear combination of the estimate and the measurement is chosen according to (4):
𝑥𝑘 = 𝑥𝑘
/
+ 𝐾𝑘(𝑧𝑘 − 𝐻𝑘𝑥𝑘
/
) = 𝑥𝑘
/
+ 𝜀𝑘 (4)
Where xk is the estimation update at instant k and Kk is the filter coefficient. εk is the residual, defined as:
𝜀𝑘 = 𝑧𝑘 − 𝐻𝑘𝑥𝑘
/
(5)
That illustrates the difference between the measurement zk and the estimation 𝑥𝑘
/
at instant k. The
state transition matrix Φk is used to project the filter ahead using the measurement at instant k+1. Kalman
filter equations can be found in [14].
3. INTRODUCING THE LS.KF METHOD
Since the maintenance of the power quality indicators to the extent-required standard is as an
important issue for the utility companies, the awareness of the parameters of the harmonics is necessary for
designing the suitable filters in order to either eliminate or reduce them. Several methods have been proposed
for the amplitude and phase harmonics assessment up to now. However, the time-based methods show better
performance at the time of noise. In the other words, the accuracy and the speed of the convergences are
higher than the frequency-based algorithms
One of the famous methods used to estimate harmonics is KF algorithm. This algorithm with
maintaining simplicity, linearity, and sustainability is able to estimate harmonic parameters even during the
noises and nonlinear factors in the main signal. This filter has been considered as one of the most successful
analytical ones. It instantly assesses the function without initial training, and optimal output is produced. The
time amplitude methods estimate the harmonic parameters in it by instantaneous sampling of the signals. The
test signal can be shown as:
𝑍𝑘 = ∑ 𝐴𝑛 𝑠𝑖𝑛( 𝜔𝑛𝑘𝑇𝑠) 𝑐𝑜𝑠( 𝜑𝑛) + 𝐴𝑛 𝑐𝑜𝑠( 𝜔𝑛𝑘𝑇)
𝑁
𝑛=1
𝑠𝑖𝑛( 𝜑𝑛) + 𝑘𝑠𝑟𝑎𝑛𝑑(𝑘) (6)
In this paper, the Kalman filter is used to estimate the phase of the harmonics. The procedure is as follows.
First, the estimated phase parameters are considered as the following vector:
𝑋 = [𝜃1, 𝜃2, . . . , 𝜃𝑛] (7)
The system dynamics is defined as a discrete time equation as:
𝑋𝐾+1,𝐾+1 = 𝜙(𝑡𝑘, 𝑡𝑘+1)𝑋𝑘+1,𝑘 + 𝑤𝑘+1 (8)
Where in 𝜑(𝑡𝑘, 𝑡𝑘+1) is a matrix of (n+1, n+1) and w is a model noise. The system mode is updated based on
the above equations, and the covariance matrix is obtained at this stage from the following equation.
𝑃𝐾+1,𝐾 = 𝜙(𝑡𝑘, 𝑡𝑘+1)𝑃𝑘,𝑘𝜙(𝑡𝑘, 𝑡𝑘+1)𝑇
(9)
According to (6), the value of ZK can be the voltage or current desired, which includes noise.
𝑍𝑘+1 = 𝐻𝑋 + 𝜎𝑉𝑟𝑎𝑛𝑑(𝑘) (10)
The kalman interest matrix is calculated as:
𝐺𝐾+1 = 𝑃𝑘+1,𝑘𝐻𝑇
(𝐻𝑃𝑘+1,𝑘𝐻𝑇
+ 𝜎𝑣
2
)−1
(11)
After obtaining the measurement values of Z, the update equations are estimated as:
𝑋𝐾+1,𝐾+1 = 𝑋𝐾+1,𝐾 + 𝐺𝐾+1[𝑍𝑘+1 − 𝐻𝑋𝑘+1,𝑘] (12)
 ISSN: 2302-9285
Bulletin of Electr Eng & Inf, Vol. 10, No. 4, August 2021 : 1785– 1792
1788
Moreover, the matrix P is obtained as:
𝑃𝐾+1,𝐾+1 = [𝐼 − 𝐺𝐾+1𝐻]𝑃𝐾+1,𝐾 (13)
In each replication, this algorithm is used by the KF method to estimate the phase, and the least
squares method (LS) is used to estimate the amplitude. This process is repeated until we will get an
acceptable answer. To estimate the amplitude of the signal, the discrete linear model of the sampled signal is
used as:
𝑍𝐾 = 𝐻𝐾𝐴𝐾 + 𝜀𝐾 (14)
In which Zk is measured from the sample K-signal. Hk is the matrix of system structure, Ak is the
matrix of unknown parameters to be estimated, and 𝜀𝐾 is also the input noise. To find the best estimate for
matrix A meaning Ae, we use the minimization of the following function.
(𝐽𝐴∈(𝑘)) = [𝑍𝑘 − 𝐻𝐾𝐴∈(𝑘)]𝑇[𝑍𝑘 − 𝐻𝐾𝐴∈(𝑘)] (15)
After phase estimation, KF and Hk are calculated as:
𝐻𝐾 = [
𝑠𝑖𝑛( 𝜔1𝑡1 + 𝜙1) 𝑠𝑖𝑛( 𝜔2𝑡1 + 𝜙2) ⋯ 𝑠𝑖𝑛( 𝜔𝑛𝑡1 + 𝜙𝑛)
𝑠𝑖𝑛( 𝜔1𝑡2 + 𝜙1) 𝑠𝑖𝑛( 𝜔2𝑡2 + 𝜙2) ⋯ 𝑠𝑖𝑛( 𝜔𝑛𝑡2 + 𝜙𝑛)
⋮ ⋮ ⋮ ⋮
𝑠𝑖𝑛( 𝜔1𝑡𝑘 + 𝜙1) 𝑠𝑖𝑛( 𝜔2𝑡𝑘 + 𝜙2) ⋯ 𝑠𝑖𝑛( 𝜔𝑛𝑡𝑘 + 𝜙𝑛)
] (16)
Further estimation based on LS method, it is achieved by solving the following objective function:
𝐴∈(𝑘) = [𝐻𝐾
𝑇
𝐻𝐾]−1
𝐻𝐾𝑍𝐾 (17)
By using the last sample obtained from the previous relationship, the amplitude vector is estimated by LS as:
𝜃𝐾 = [𝐴1𝑘 𝐴2𝑘 ⋯ 𝐴𝑛𝑘]𝑇
(18)
In addition, this process is repeated until the final answer is reached.
4. THE SIMULATION RESULTS
To simulate the performance of the above algorithm, a test signal has been used. This signal has a
distortion as:
𝑦(𝑡) = 1.5 𝑠𝑖𝑛( 𝜔𝑡 + 80∘
) + 0.5 𝑠𝑖𝑛( 3𝜔𝑡 + 60∘
)
+0.2 𝑠𝑖𝑛( 5𝜔𝑡 + 45∘
) + 0.15 𝑠𝑖𝑛( 7𝜔𝑡 + 36∘
)
+0.1 𝑠𝑖𝑛( 11𝜔𝑡 + 30∘
) + 𝐾𝑠𝑟𝑎𝑛𝑑(𝑡)
(19)
The test signal from the terminal of an industrial charge is sampled consisting of the power
converters and the ignition kilns. This test signal contains 5 harmonics, Gaussian noises with a mean of 0 and
variance one. The coefficient is considered equal to 0.05. To test the efficiency of the proposed algorithm,
several test signals are used as follows:
− Static test signal with the low noise
− Static test signal with the high noise
− The dynamic test signal
− The signal test with the frequency deviation
For the static signal with the low noise, the signal-to-noise ratio is SNR=20 db, and for static
signals, with high noise the signal-to-noise ratio is SNR=5 db. The results are as follows: As you can see in
Figure 1 and Figure 2, the actual values with the simulated estimated values for the static signal with the low
noise is SNR=20 db, and with the high noise is SNR=5 db. Therefore, they are hardly different from each
other. In other words, the results show the accuracy of the above method to estimate these types of signals. In
a real power system, the amplitude of the waveform of the electric waves varies with different times. The
Bulletin of Electr Eng & Inf ISSN: 2302-9285 
The estimate of amplitude and phase of harmonics in power system … (Mehrdad Ahmadi Kamarposhti)
1789
changes of these amplitudes depend on the types of charge. The dynamic test signal has the following
characteristics:
𝑍(𝑡) = [1.5 + 𝑎1(𝑡)] 𝑠𝑖𝑛( 𝜔𝑡 + 80∘
)
+[0.5 + 𝑎3(𝑡)] 𝑠𝑖𝑛( 3𝜔𝑡 + 60∘
)
+[0.2 + 𝑎5(𝑡)] 𝑠𝑖𝑛( 5𝜔𝑡 + 45∘
)
+0.15 𝑠𝑖𝑛( 7𝜔𝑡 + 36∘
) + 0.1 𝑠𝑖𝑛( 11𝜔𝑡 + 30∘
)
+0.5 𝑒𝑥𝑝( − 5𝑡) + 𝐾𝑠𝑟𝑎𝑛𝑑(𝑡)
𝑎1(𝑡) = 0.15 𝑠𝑖𝑛 2 𝜋𝑓1𝑡 + 0.05 𝑠𝑖𝑛 2 𝜋𝑓5𝑡
𝑎2(𝑡) = 0.05 𝑠𝑖𝑛 2 𝜋𝑓3𝑡 + 0.02 𝑠𝑖𝑛 2 𝜋𝑓5𝑡
𝑎3(𝑡) = 0.025 𝑠𝑖𝑛 2 𝜋𝑓1𝑡 + 0.005 𝑠𝑖𝑛 2 𝜋𝑓5𝑡
(20)
As indicated in Figure 3 and Figure 4, despite the change in harmonic amplitude and noise, the LS.KF
method follows the sudden changes in amplitude and phases.
Figure 1. The comparison of the actual signal with
the estimated one (SNR=20 db)
Figure 2. The comparison of the actual signal with
the estimated one (SNR=5 db)
Figure 3. Tracking the base harmonic amplitude in
dynamical condition
Figure 4. Tracking the basic harmonic phase in
dynamical conditions
In Figure 5 and Figure 6, the amplitude and phase of the third harmonic are estimated in dynamical
conditions by using the above algorithm. As you can see, the precision of the method is also used to estimate
the harmonics. Moreover, this method can also be used to estimate other harmonics in the network. Since
there is always a mechanical deviation for any power system, we test the proposed estimation against these
deviations. For this purpose, we used the mechanical deviation of ∆𝐹 = −1 𝐻𝑍.
This deviation was applied at the beginning of the second cycle, and that will be eliminated after
33 ms because the harmonics are the correct multiplication of the base frequency. Subsequently, the
deviation at the original frequency affects all the harmonics. The results of the baseline harmonic amplitude
and phase estimation are presented in Figure 7 and Figure 8.
As we can see, the estimated range of the amplitude and phase do not show much deviation, after
applying frequency deviation. In case of smaller deviations like ∆𝐹 = 0.1 𝐻𝑍 the introduced LS-KF method
can monitor the parameters almost uninterruptedly.
 ISSN: 2302-9285
Bulletin of Electr Eng & Inf, Vol. 10, No. 4, August 2021 : 1785– 1792
1790
Figure 5. Tracking the third harmonic amplitude in
dynamical conditions
Figure 6. Tracking the third harmonic phase in
dynamical conditions
Figure 7. Basic harmonic amplitude tracking by
frequency deviation
Figure 8. Basic harmonic phase tracking by
frequency deviation
5. THE COMPARISON OF THE ALGORITHM-LS-KF WITH DFT METHOD
To understand the efficiency of the algorithm, its performance is compared with the DFT1 fourier
transform traditional method. For this purpose, the desired signal is initially combined with the white noise
and the signal-to-noise ratio of SNR=10 db is used for modeling. The results are shown in Figure 9 and
Figure 10.
Figure 9. Signal tracking by the LS-KF method Figure 10. Signal tracking by DFT method
To compare the performance of the LS-KF algorithm with the DFT method better, we used the
following two indicators, there are; 1) the squares average of the estimated signal error, 2) the variance of the
estimated signal. Also, the results are shown in Table 1.
Bulletin of Electr Eng & Inf ISSN: 2302-9285 
The estimate of amplitude and phase of harmonics in power system … (Mehrdad Ahmadi Kamarposhti)
1791
Table 1. Comparison of performance indicators of LS-KF and DFT algorithms
The error variance
The square average of errors
The type of algorithm
0.1187
0.0475
0.0094
0.0055
DFT
LS.KF
6. CONCLUSION
Today, the accurate estimation of the amplitude and phase of the harmonics to design filters to
remove unwanted harmonics is essential for the proper operation of the power system. In this paper, a new
and efficient method to identify the harmonic parameters is used. The proposed method consists of a
combination of the KF filter and a linear estimator called the least squared LS. Therefore, the LS-KF name is
suggested for this method. In this algorithm, we used the KF method to estimate the phase, and we also used
the LS method to estimate the amplitude. As the results of the simulation show us that, the harmonic
parameters converge in less than one cycle to real values. The algorithm also performs well in the moment
tracking of the parameters. To show the accuracy of the proposed method, we used two indicators, one of
them was MSE, and another one was variance to test signals.
REFERENCES
[1] W. M. Grady and S. Santoso, "Understanding Power System Hannonics," in IEEE Power Engineering Review, vol.
21, no. 11, pp. 8-11, Nov. 2001, doi: 10.1109/MPER.2001.961997.
[2] R. G. Ellis, “Harmonic analysis of industrial power systems,” in IEEE Transactions on Industry Applications, vol.
32, no. 2, pp. 417-421, March-April 1996, doi: 10.1109/28.491492.
[3] V. Suresh Kumar, P.S. Kannan, “Harmonics-its sources, effects and remedial measures on modern textile industry,”
in proc-2002 universities power engineering conference (UPEC), pp. 133-136, 2002.
[4] V. S. Kumar, P. S. Kannan, “Harmonic studies in space vector PWM inverter drive system,” 2004 International
Conference on Power System Technology, 2004, pp. 123-127, doi: 10.1109/ICPST.2004.1459978.
[5] T. Assaf, H. Henao, G.A. Capolino, “A special method for on-line computation of the harmonics of symmetrical
components in induction machines,” European Transactions on electrical power, vol. 15, no. 3, pp. 203-216, 2005.
doi: https://doi.org/10.1002/etep.52.
[6] G. T. Heydt, “Identification of harmonic sources by a state estimation technique,” in IEEE Transactions on Power
Delivery, vol. 4, no. 1, pp. 569-576, Jan. 1989, doi: 10.1109/61.19248.
[7] A. Asheibi, D. Stirling, D. Sutanto, “Analyzing Harmonic Monitoring Data Using Supervised and Unsupervised
Learning,” in IEEE Transactions on Power Delivery, vol. 24, no. 1, pp. 293-301, Jan. 2009, doi:
10.1109/TPWRD.2008.2002654.
[8] E. Gursoy, D. Niebur, “Harmonic Load Identification Using Complex Independent Component Analysis,” in IEEE
Transactions on Power Delivery, vol. 24, no. 1, pp. 285-292, Jan. 2009, doi: 10.1109/TPWRD.2008.2002968.
[9] R. K. Hartana, G. G. Richards, “Constrained neural network-based identification of harmonic sources,” in IEEE
Transactions on Industry Applications, vol. 29, no. 1, pp. 202-208, Jan.-Feb. 1993, doi: 10.1109/28.195908.
[10] V. S. Kumar, P. S. Kannan, K. Kalaiselvi, D. Kavitha, “Optimal Estimation of Harmonics in Power System using
Intelligent Computing Techniques,” International Joint Conference on Neural Networks, 2007, pp. 142-147, doi:
10.1109/IJCNN.2007.4370945.
[11] M. Gupta, S. Srivastana, J. Gupta, “A faster estimation algorithm applied to power quality problems,” International
journal of engineering science and technology, vol. 2, no. 9, pp. pp. 4448-4461, 2010.
[12] P. K. Ray, B. Subudhi, “Ensemble-Kalman-Filter-Based Power System Harmonic Estimation,” in IEEE
Transactions on Instrumentation and Measurement, vol. 61, no. 12, pp. 3216-3224, Dec. 2012, doi:
10.1109/TIM.2012.2205515.
[13] S. Liu, “An adaptive Kalman filter for dynamic estimation of harmonic signals,” 8th International Conference on
Harmonics and Quality of Power. Proceedings (Cat. No.98EX227), 1998, pp. 636-640 vol. 2, doi:
10.1109/ICHQP.1998.760120.
[14] J. Yao, D. Di, G. Jiang, S. Gao, H. Yan, “Real-Time Acceleration Harmonics Estimation for an Electro-Hydraulic
Servo Shaking Table Using Kalman Filter With a Linear Model,” in IEEE Transactions on Control Systems
Technology, vol. 22, no. 2, pp. 794-800, March 2014, doi: 10.1109/TCST.2013.2256136.
[15] H. M. Beides, G. T. Heydt, “Dynamic state estimation of power system harmonics using Kalman filter
methodology,” in IEEE Transactions on Power Delivery, vol. 6, no. 4, pp. 1663-1670, Oct. 1991, doi:
10.1109/61.97705.
[16] S. Zhong, K. Tam, “A Frequency Domain Approach to Characterize and Analyze Load Profiles,” in IEEE
Transactions on Power Systems, vol. 27, no. 2, pp. 857-865, May 2012, doi: 10.1109/TPWRS.2011.2170592.
[17] H. Wen, J. Zhang, W. Yao, L. Tang, “FFT-Based Amplitude Estimation of Power Distribution Systems Signal
Distorted by Harmonics and Noise,” in IEEE Transactions on Industrial Informatics, vol. 14, no. 4, pp. 1447-1455,
April 2018, doi: 10.1109/TII.2017.2749682.
[18] H. C. Lin, “Inter-Harmonic Identification Using Group-Harmonic Weighting Approach Based on the FFT,” in IEEE
Transactions on Power Electronics, vol. 23, no. 3, pp. 1309-1319, May 2008, doi: 10.1109/TPEL.2008.921067.
 ISSN: 2302-9285
Bulletin of Electr Eng & Inf, Vol. 10, No. 4, August 2021 : 1785– 1792
1792
[19] Fusheng Zhang, Zhongxing Geng, Wei Yuan, “The algorithm of interpolating windowed FFT for harmonic analysis
of electric power system,” in IEEE Transactions on Power Delivery, vol. 16, no. 2, pp. 160-164, April 2001, doi:
10.1109/61.915476.
[20] C. Chen, Y. Chen, “Comparative Study of Harmonic and Interharmonic Estimation Methods for Stationary and
Time-Varying Signals,” in IEEE Transactions on Industrial Electronics, vol. 61, no. 1, pp. 397-404, Jan. 2014, doi:
10.1109/TIE.2013.2242419.
[21] A. Ferrero, S. Salicone, S. Toscani, “A Fast, Simplified Frequency-Domain Interpolation Method for the Evaluation
of the Frequency and Amplitude of Spectral Components,” in IEEE Transactions on Instrumentation and
Measurement, vol. 60, no. 5, pp. 1579-1587, May 2011, doi: 10.1109/TIM.2010.2090051.
[22] J. Zhao, M. Netto, L. Mili, “A Robust Iterated Extended Kalman Filter for Power System Dynamic State
Estimation,” in IEEE Transactions on Power Systems, vol. 32, no. 4, pp. 3205-3216, July 2017, doi:
10.1109/TPWRS.2016.2628344.
[23] S. Wang, J. Feng, C. K. Tse, “Analysis of the Characteristic of the Kalman Gain for 1-D Chaotic Maps in Cubature
Kalman Filter,” in IEEE Signal Processing Letters, vol. 20, no. 3, pp. 229-232, March 2013, doi:
10.1109/LSP.2013.2241424.
[24] Robert G. Brown, Patric Y. C, Hwang, “Introduction to random signals and applied Kalman filtering,” New York,
Wiley, 1992.
[25] J. B. V. Reddy, P. K. Dash, R. Samantaray, A. K. Moharana, “Fast Tracking of Power Quality Disturbance Signals
Using an Optimized Unscented Filter,” in IEEE Transactions on Instrumentation and Measurement, vol. 58, no. 12,
pp. 3943-3952, Dec. 2009, doi: 10.1109/TIM.2009.2020835.
[26] F. Gustafsson, G. Hendeby, “Some Relations Between Extended and Unscented Kalman Filters,” in IEEE
Transactions on Signal Processing, vol. 60, no. 2, pp. 545-555, Feb. 2012, doi: 10.1109/TSP.2011.2172431.
[27] I. Arasaratnam, S. Haykin, R. J. Elliott, “Discrete-Time Nonlinear Filtering Algorithms Using Gauss–Hermite
Quadrature,” in Proceedings of the IEEE, vol. 95, no. 5, pp. 953-977, May 2007, doi: 10.1109/JPROC.2007.894705.
[28] X. Lu, L. Xie, H. Zhang, W. Wang, “Robust Kalman Filtering for Discrete-Time Systems With Measurement
Delay,” in IEEE Transactions on Circuits and Systems II: Express Briefs, vol. 54, no. 6, pp. 522-526, June 2007,
doi: 10.1109/TCSII.2007.892223.
[29] R. Zhan, J. Wan, “Iterated Unscented Kalman Filter for Passive Target Tracking,” in IEEE Transactions on
Aerospace and Electronic Systems, vol. 43, no. 3, pp. 1155-1163, July 2007, doi: 10.1109/TAES.2007.4383605.
[30] S. K. Singh, N. Sinha, A. K. Goswami, N. Sinha, “Several variants of kalman filter algorithm for power system
harmonic estimation,” International Journal of Electrical Power & Energy Systems, vol. 78, pp. 793-800, 2016. doi:
https://doi.org/10.1016/j.ijepes.2015.12.028.

More Related Content

PDF
A research on significance of kalman filter approach as applied in electrical...
PDF
Nonlinear control strategy of single-phase unified power flow controller
PDF
Kalman Filter Estimation of Impedance Parameters for Medium Transmission Line
PDF
Parallel control structure scheme for load frequency controller design using ...
PDF
Line Losses in the 14-Bus Power System Network using UPFC
PDF
Power System State Estimation - A Review
PDF
Artificial Intelligence Technique based Reactive Power Planning Incorporating...
A research on significance of kalman filter approach as applied in electrical...
Nonlinear control strategy of single-phase unified power flow controller
Kalman Filter Estimation of Impedance Parameters for Medium Transmission Line
Parallel control structure scheme for load frequency controller design using ...
Line Losses in the 14-Bus Power System Network using UPFC
Power System State Estimation - A Review
Artificial Intelligence Technique based Reactive Power Planning Incorporating...

What's hot (18)

PDF
Comparison of Soft Computing Techniques applied in High Frequency Aircraft Sy...
PDF
Comparative Study on the Performance of A Coherency-based Simple Dynamic Equi...
PDF
Coordinated planning in improving power quality considering the use of nonlin...
PDF
Time-domain harmonic extraction algorithms for three-level inverter-based sh...
PDF
Comparison of Reference Signal Extraction Methods
PDF
Harmonic Comparison of Three Phase Direct Matrix Converter for Reactive Load ...
PDF
Design and Performance Analysis of Genetic based PID-PSS with SVC in a Multi-...
PDF
Performance evaluation-of-hybrid-intelligent-controllers-in-load-frequency-co...
PDF
Power quality improvement in a weak bus system using facts controller
PDF
ENHANCING COMPUTATIONAL EFFORTS WITH CONSIDERATION OF PROBABILISTIC AVAILABL...
PDF
Fuzzy and predictive control of a photovoltaic pumping system based on three-...
PDF
2.[6 13]investigation on d-statcom operation for power quality improvement in...
PDF
Bb4102386391
PDF
Power quality improvement in a weak bus system using
PDF
Harmonic Analysis Techniques of Power System-A Review
PDF
Power System Contingency Ranking Using Fast Decoupled Load Flow Method
PDF
Power System Problems in Teaching Control Theory on Simulink
PDF
Evaluation of Fundamental d-q Synchronous Reference Frame Harmonic Detection ...
Comparison of Soft Computing Techniques applied in High Frequency Aircraft Sy...
Comparative Study on the Performance of A Coherency-based Simple Dynamic Equi...
Coordinated planning in improving power quality considering the use of nonlin...
Time-domain harmonic extraction algorithms for three-level inverter-based sh...
Comparison of Reference Signal Extraction Methods
Harmonic Comparison of Three Phase Direct Matrix Converter for Reactive Load ...
Design and Performance Analysis of Genetic based PID-PSS with SVC in a Multi-...
Performance evaluation-of-hybrid-intelligent-controllers-in-load-frequency-co...
Power quality improvement in a weak bus system using facts controller
ENHANCING COMPUTATIONAL EFFORTS WITH CONSIDERATION OF PROBABILISTIC AVAILABL...
Fuzzy and predictive control of a photovoltaic pumping system based on three-...
2.[6 13]investigation on d-statcom operation for power quality improvement in...
Bb4102386391
Power quality improvement in a weak bus system using
Harmonic Analysis Techniques of Power System-A Review
Power System Contingency Ranking Using Fast Decoupled Load Flow Method
Power System Problems in Teaching Control Theory on Simulink
Evaluation of Fundamental d-q Synchronous Reference Frame Harmonic Detection ...
Ad

Similar to The estimate of amplitude and phase of harmonics in power system using the extended kalman filter (20)

PDF
Kalman Filter Algorithm for Mitigation of Power System Harmonics
PDF
IRJET- Low Cost Harmonic Measurement using Arduino UNO
PDF
Closed Loop Non Linear Control of Shunt Hybrid Power Filter for Harmonics Mit...
PDF
IRJET- A Review on Distribution System with Harmonic Reduction
PDF
Emc model for modern power electronic systems for harmonics, losses & emi...
PDF
Emc model for modern power electronic systems for
PDF
A New approach for controlling the power flow in a transmission system using ...
PDF
Harmonic analysis and Power factor improvement with UPQC under two Novel cont...
PDF
Icaee paper id 116.pdf
PDF
Power System Problems in Teaching Control Theory on Simulink
PDF
POWER SYSTEM PROBLEMS IN TEACHING CONTROL THEORY ON SIMULINK
PDF
Advance Technology in Application of Four Leg Inverters to UPQC
PDF
Reduce state of charge estimation errors with an extended Kalman filter algor...
PDF
Lr3421092114
PDF
Adaptive Fuzzy PID Based Control Strategy For 3Phase 4Wire Shunt Active Filte...
PDF
IRJET- Power Quality Improvement by using Three Phase Adaptive Filter Control...
PDF
PDF
Unified power quality conditioner for compensating power quality problem ad
PDF
Optimal design & analysis of load frequency control for two interconnecte...
PDF
Cuckoo Search Optimization Algorithm based Load Frequency Control of Intercon...
Kalman Filter Algorithm for Mitigation of Power System Harmonics
IRJET- Low Cost Harmonic Measurement using Arduino UNO
Closed Loop Non Linear Control of Shunt Hybrid Power Filter for Harmonics Mit...
IRJET- A Review on Distribution System with Harmonic Reduction
Emc model for modern power electronic systems for harmonics, losses & emi...
Emc model for modern power electronic systems for
A New approach for controlling the power flow in a transmission system using ...
Harmonic analysis and Power factor improvement with UPQC under two Novel cont...
Icaee paper id 116.pdf
Power System Problems in Teaching Control Theory on Simulink
POWER SYSTEM PROBLEMS IN TEACHING CONTROL THEORY ON SIMULINK
Advance Technology in Application of Four Leg Inverters to UPQC
Reduce state of charge estimation errors with an extended Kalman filter algor...
Lr3421092114
Adaptive Fuzzy PID Based Control Strategy For 3Phase 4Wire Shunt Active Filte...
IRJET- Power Quality Improvement by using Three Phase Adaptive Filter Control...
Unified power quality conditioner for compensating power quality problem ad
Optimal design & analysis of load frequency control for two interconnecte...
Cuckoo Search Optimization Algorithm based Load Frequency Control of Intercon...
Ad

More from journalBEEI (20)

PDF
Square transposition: an approach to the transposition process in block cipher
PDF
Hyper-parameter optimization of convolutional neural network based on particl...
PDF
Supervised machine learning based liver disease prediction approach with LASS...
PDF
A secure and energy saving protocol for wireless sensor networks
PDF
Plant leaf identification system using convolutional neural network
PDF
Customized moodle-based learning management system for socially disadvantaged...
PDF
Understanding the role of individual learner in adaptive and personalized e-l...
PDF
Prototype mobile contactless transaction system in traditional markets to sup...
PDF
Wireless HART stack using multiprocessor technique with laxity algorithm
PDF
Implementation of double-layer loaded on octagon microstrip yagi antenna
PDF
The calculation of the field of an antenna located near the human head
PDF
Exact secure outage probability performance of uplinkdownlink multiple access...
PDF
Design of a dual-band antenna for energy harvesting application
PDF
Transforming data-centric eXtensible markup language into relational database...
PDF
Key performance requirement of future next wireless networks (6G)
PDF
Noise resistance territorial intensity-based optical flow using inverse confi...
PDF
Modeling climate phenomenon with software grids analysis and display system i...
PDF
An approach of re-organizing input dataset to enhance the quality of emotion ...
PDF
Parking detection system using background subtraction and HSV color segmentation
PDF
Quality of service performances of video and voice transmission in universal ...
Square transposition: an approach to the transposition process in block cipher
Hyper-parameter optimization of convolutional neural network based on particl...
Supervised machine learning based liver disease prediction approach with LASS...
A secure and energy saving protocol for wireless sensor networks
Plant leaf identification system using convolutional neural network
Customized moodle-based learning management system for socially disadvantaged...
Understanding the role of individual learner in adaptive and personalized e-l...
Prototype mobile contactless transaction system in traditional markets to sup...
Wireless HART stack using multiprocessor technique with laxity algorithm
Implementation of double-layer loaded on octagon microstrip yagi antenna
The calculation of the field of an antenna located near the human head
Exact secure outage probability performance of uplinkdownlink multiple access...
Design of a dual-band antenna for energy harvesting application
Transforming data-centric eXtensible markup language into relational database...
Key performance requirement of future next wireless networks (6G)
Noise resistance territorial intensity-based optical flow using inverse confi...
Modeling climate phenomenon with software grids analysis and display system i...
An approach of re-organizing input dataset to enhance the quality of emotion ...
Parking detection system using background subtraction and HSV color segmentation
Quality of service performances of video and voice transmission in universal ...

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
additive manufacturing of ss316l using mig welding
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
PPT on Performance Review to get promotions
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPT
Mechanical Engineering MATERIALS Selection
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Artificial Intelligence
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Construction Project Organization Group 2.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
additive manufacturing of ss316l using mig welding
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
bas. eng. economics group 4 presentation 1.pptx
CH1 Production IntroductoryConcepts.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
R24 SURVEYING LAB MANUAL for civil enggi
PPT on Performance Review to get promotions
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
UNIT 4 Total Quality Management .pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Mechanical Engineering MATERIALS Selection
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Artificial Intelligence
UNIT-1 - COAL BASED THERMAL POWER PLANTS

The estimate of amplitude and phase of harmonics in power system using the extended kalman filter

  • 1. Bulletin of Electrical Engineering and Informatics Vol. 10, No. 4, August 2021, pp. 1785~1792 ISSN: 2302-9285, DOI: 10.11591/eei.v10i4.2789 1785 Journal homepage: http://beei.org The estimate of amplitude and phase of harmonics in power system using the extended kalman filter Mehrdad Ahmadi Kamarposhti1 , Ahmed Amin Ahmed Solyman2 1 Department of Electrical Engineering, Jouybar Branch, Islamic Azad University, Jouybar, Iran 2 Department of Electrical and Electronic Engineering, Istanbul Gelisim University, Avcilar, Turkey Article Info ABSTRACT Article history: Received Jan 9, 2021 Revised Apr 13, 2021 Accepted May 29, 2021 Nowadays, the amplitude of the harmonics in the power grid has increased unwittingly due to the increasing use of the nonlinear elements and power electronics. It has led to a significant reduction in power quality indicators. As a first step, the estimate of the amplitude, and the phase of the harmonics in the power grid are essential to resolve this problem. We use the Kalman filter to estimate the phase, and we use the minimal squared linear estimator to assess the amplitude. To test the aforementioned method, we use terminal test signals of the industrial charge consisting of the power converters and ignition coils. The results show that this algorithm has a high accuracy and estimation speed, and they confirm the proper performance in instantaneous tracking of the parameters. Keywords: Kalman filter Minimal squared linear estimator Power grid harmonic phase Power quality This is an open access article under the CC BY-SA license. Corresponding Author: Mehrdad Ahmadi Kamarposhti Department of Electrical Engineering Jouybar Branch, Islamic Azad University, Jouybar, Iran Emails: mehrdad.ahmadi.k@gmail.com, m.ahmadi@jouybariau.ac.ir 1. INTRODUCTION The amplitude extension of the harmonics is one of the major concerns of the people exploiting the modern power systems. The harmonic distortions can result in poor performance, lifetime reduction, and the lower efficiency in the industrial equipment. The harmful effects of harmonics are clearly documented in articles [1]-[4]. For this reason, the IEC and IEEE have developed standards for harmonics. Increasing the use of the nonlinear elements has intensified the presence of harmonics in the power grid. To prevent the growing trend of harmonic distortions, which are currently considered as the most important indicator of power quality, knowing the harmonic parameters such as amplitude and phase is necessary to design suitable filters. In other words, we need to estimate the harmonics in the system accurately in order to precisely control the equipments. Up to now, there have been several ways to estimate harmonics that are defined as unwanted components in an alternating waveform having distortion. For example, we can name the discrete Fourier transform methods [5], the mode estimation techniques [6], data exploration tools [7], independent component analysis [8], and neural networks [9]. Suresh Kumar et al. [10] we used genotype algorithms, the minimum squared genetic algorithms, the optimization of the least squared hybrid particles an adaptive neural network in order to estimate harmonics in the power system. The article shows that if the neural network method is well trained, it can provide better results than other methods. M. Gupta et al. [11], we use the method of optimizing the congestion of particles combined with the gradient reduction method to train the neural network weights. Because of the problems involved in training the parameters of the neural network, we used a new and efficient method to identify the harmonic parameters.
  • 2.  ISSN: 2302-9285 Bulletin of Electr Eng & Inf, Vol. 10, No. 4, August 2021 : 1785– 1792 1786 A rapid and reliable estimation of power system signal harmonics is highly vital for the assessment of power quality and plays an important role in power systems. Voltage distortion and current waveforms are severely affected by an increasing demand for non-linear loads, the large-scale use of electronic equipments of high-power industrial and medium-power domestic loads, arc furnaces, controlled motor drives [12]. An unexpected increase in harmonic pollution resulted from the signal circuit intereference, communications, and electric railway systems [13], is one of the critical issues of the power quality [14] assessment and decreases the electricity quality supplied to the consumers [15]. This is why a fast and proper component harmonics assessment is critical. The research on harmonic estimation suggests that the amplitude of the harmonics can be estimated by both parametric and non-parametric methods. Kalman filter, Prony method, adaptive notch filtering, Hilbert-Huang transform matrix pencil method, and Taylor-Fourier. are the parametric methods whereas non- parametric algorithms are based on the discrete fourier transform (DFT) [16]. In FFT-based [17]-[19] frequency algorithm, non-synchronous sampling produces some unavoidable defects such as spectral leakage and picket fence effect [20]. To alleviate these shortcomings, windowed interpolation FFT (WIFFT) algorithm [21] has been suggested. Using spectral analysis, Cheng-I Chen et al. [20] have tackled frequency estimation for inter-harmonics and power system harmonics. Kalman filter (KF) being one of the best methods for the estimation of the sinusoid parameters manipulated by unknown measurement noise fails to produce exact results during nonlinearity and power system dynamics. Sub-optimal solutions comprising two classes, that is, local approach and global approach, employ nonlinear extended kalman filter (EKF) [22] as one of the local approach methods which yields recursive sub-optimal solutions for nonlinear dynamic systems [23]. Although EKF is computationally efficient and linearizes the state-space model with first order Taylor series expansion [24], this method may deviate from the correct course due to model nonlinearity and improper initialization. Thus, to decrease such instances, unscented kalman filter (UKF) [25], has been suggested that surpasses the conventional EKF for its capacity to diminish linearization burden for the predicted states and achieve the second-order accuracy. Nevertheless, it does not yield the correct second-order moments for quadratic functions [26]. Quadrature kalman filter (QKF) [27], robust kalman filter [28], iterated kalman filter (IKF) [29] and ensemble kalman filter (EnKF) [30] have been introduced to enhance the stability and accuracy of the estimation. Among all these KF, QKF exactly calculates the recursive Bayesian estimation integrals based on the gaussian assumption employing the Gauss-Hermite numerical integration rule; however, QKF is likely to diverge due to high dimensional state-space models [23]. In this paper, the proposed method consists of the KF combination, and a linear estimator named as the least squared (LS), therefore, we suggest LS.KF as the name for this method. This algorithm uses the KF method to estimate the phase, and the LS method to estimate the amplitude. 2. EXTENDED KALMAN FILTER A new version of the linear kalman filter with certain modifications called the EKF is used in systems with measurement equations and non-linear processes. In each stage of the recursive algorithm, using a first order Taylor series, the non-linear equations are linearized to form a linear process before the linear Kalman filter model is employed. The EKF delineates the relationship between the states and the measurements and the state transition function using the nonlinear functions f and h, respectively: 𝑥k+1 = 𝑓[𝑥𝑘 , 𝑘] + 𝑤𝑘 (1) 𝑧𝑘 = ℎ[𝑥𝑘 , 𝑘] + 𝑣𝑘 (2) Where xk and zk are the state vector and the measurement at instant k, respectively; and wk and vk are the uncertainties introduced by the measurement noise and the state transition, both with zero mean and covariances Qk and Rk, respectively. The nonlinear functions f and h are linearized by a first-order Taylor series as: 𝑥k+1 = 𝛷𝑘𝑥𝑘 + 𝑤𝑘 𝑧𝑘 = 𝐻𝑘𝑥𝑘 + 𝑣𝑘 𝛷𝑘 = 𝜕𝑓𝑖[𝑥𝑘, 𝑘] /𝜕𝑥𝑗 𝐻𝑘 = 𝜕ℎ𝑖 [𝑥𝑘, 𝑘]/𝜕𝑥𝑗 (3) Where fi and hi are the ith elements of functions f and h, respectively, and Φk and Hk are the state transition and the measurement matrices, respectively.
  • 3. Bulletin of Electr Eng & Inf ISSN: 2302-9285  The estimate of amplitude and phase of harmonics in power system … (Mehrdad Ahmadi Kamarposhti) 1787 The kalman filter is a two-step prediction-correction process. Starting with an initial estimate of the process 𝑥𝑘 / , and its error covariance matrix 𝑃𝑘 / , the measurement at instant k, zk, is used to improve the estimation. A linear combination of the estimate and the measurement is chosen according to (4): 𝑥𝑘 = 𝑥𝑘 / + 𝐾𝑘(𝑧𝑘 − 𝐻𝑘𝑥𝑘 / ) = 𝑥𝑘 / + 𝜀𝑘 (4) Where xk is the estimation update at instant k and Kk is the filter coefficient. εk is the residual, defined as: 𝜀𝑘 = 𝑧𝑘 − 𝐻𝑘𝑥𝑘 / (5) That illustrates the difference between the measurement zk and the estimation 𝑥𝑘 / at instant k. The state transition matrix Φk is used to project the filter ahead using the measurement at instant k+1. Kalman filter equations can be found in [14]. 3. INTRODUCING THE LS.KF METHOD Since the maintenance of the power quality indicators to the extent-required standard is as an important issue for the utility companies, the awareness of the parameters of the harmonics is necessary for designing the suitable filters in order to either eliminate or reduce them. Several methods have been proposed for the amplitude and phase harmonics assessment up to now. However, the time-based methods show better performance at the time of noise. In the other words, the accuracy and the speed of the convergences are higher than the frequency-based algorithms One of the famous methods used to estimate harmonics is KF algorithm. This algorithm with maintaining simplicity, linearity, and sustainability is able to estimate harmonic parameters even during the noises and nonlinear factors in the main signal. This filter has been considered as one of the most successful analytical ones. It instantly assesses the function without initial training, and optimal output is produced. The time amplitude methods estimate the harmonic parameters in it by instantaneous sampling of the signals. The test signal can be shown as: 𝑍𝑘 = ∑ 𝐴𝑛 𝑠𝑖𝑛( 𝜔𝑛𝑘𝑇𝑠) 𝑐𝑜𝑠( 𝜑𝑛) + 𝐴𝑛 𝑐𝑜𝑠( 𝜔𝑛𝑘𝑇) 𝑁 𝑛=1 𝑠𝑖𝑛( 𝜑𝑛) + 𝑘𝑠𝑟𝑎𝑛𝑑(𝑘) (6) In this paper, the Kalman filter is used to estimate the phase of the harmonics. The procedure is as follows. First, the estimated phase parameters are considered as the following vector: 𝑋 = [𝜃1, 𝜃2, . . . , 𝜃𝑛] (7) The system dynamics is defined as a discrete time equation as: 𝑋𝐾+1,𝐾+1 = 𝜙(𝑡𝑘, 𝑡𝑘+1)𝑋𝑘+1,𝑘 + 𝑤𝑘+1 (8) Where in 𝜑(𝑡𝑘, 𝑡𝑘+1) is a matrix of (n+1, n+1) and w is a model noise. The system mode is updated based on the above equations, and the covariance matrix is obtained at this stage from the following equation. 𝑃𝐾+1,𝐾 = 𝜙(𝑡𝑘, 𝑡𝑘+1)𝑃𝑘,𝑘𝜙(𝑡𝑘, 𝑡𝑘+1)𝑇 (9) According to (6), the value of ZK can be the voltage or current desired, which includes noise. 𝑍𝑘+1 = 𝐻𝑋 + 𝜎𝑉𝑟𝑎𝑛𝑑(𝑘) (10) The kalman interest matrix is calculated as: 𝐺𝐾+1 = 𝑃𝑘+1,𝑘𝐻𝑇 (𝐻𝑃𝑘+1,𝑘𝐻𝑇 + 𝜎𝑣 2 )−1 (11) After obtaining the measurement values of Z, the update equations are estimated as: 𝑋𝐾+1,𝐾+1 = 𝑋𝐾+1,𝐾 + 𝐺𝐾+1[𝑍𝑘+1 − 𝐻𝑋𝑘+1,𝑘] (12)
  • 4.  ISSN: 2302-9285 Bulletin of Electr Eng & Inf, Vol. 10, No. 4, August 2021 : 1785– 1792 1788 Moreover, the matrix P is obtained as: 𝑃𝐾+1,𝐾+1 = [𝐼 − 𝐺𝐾+1𝐻]𝑃𝐾+1,𝐾 (13) In each replication, this algorithm is used by the KF method to estimate the phase, and the least squares method (LS) is used to estimate the amplitude. This process is repeated until we will get an acceptable answer. To estimate the amplitude of the signal, the discrete linear model of the sampled signal is used as: 𝑍𝐾 = 𝐻𝐾𝐴𝐾 + 𝜀𝐾 (14) In which Zk is measured from the sample K-signal. Hk is the matrix of system structure, Ak is the matrix of unknown parameters to be estimated, and 𝜀𝐾 is also the input noise. To find the best estimate for matrix A meaning Ae, we use the minimization of the following function. (𝐽𝐴∈(𝑘)) = [𝑍𝑘 − 𝐻𝐾𝐴∈(𝑘)]𝑇[𝑍𝑘 − 𝐻𝐾𝐴∈(𝑘)] (15) After phase estimation, KF and Hk are calculated as: 𝐻𝐾 = [ 𝑠𝑖𝑛( 𝜔1𝑡1 + 𝜙1) 𝑠𝑖𝑛( 𝜔2𝑡1 + 𝜙2) ⋯ 𝑠𝑖𝑛( 𝜔𝑛𝑡1 + 𝜙𝑛) 𝑠𝑖𝑛( 𝜔1𝑡2 + 𝜙1) 𝑠𝑖𝑛( 𝜔2𝑡2 + 𝜙2) ⋯ 𝑠𝑖𝑛( 𝜔𝑛𝑡2 + 𝜙𝑛) ⋮ ⋮ ⋮ ⋮ 𝑠𝑖𝑛( 𝜔1𝑡𝑘 + 𝜙1) 𝑠𝑖𝑛( 𝜔2𝑡𝑘 + 𝜙2) ⋯ 𝑠𝑖𝑛( 𝜔𝑛𝑡𝑘 + 𝜙𝑛) ] (16) Further estimation based on LS method, it is achieved by solving the following objective function: 𝐴∈(𝑘) = [𝐻𝐾 𝑇 𝐻𝐾]−1 𝐻𝐾𝑍𝐾 (17) By using the last sample obtained from the previous relationship, the amplitude vector is estimated by LS as: 𝜃𝐾 = [𝐴1𝑘 𝐴2𝑘 ⋯ 𝐴𝑛𝑘]𝑇 (18) In addition, this process is repeated until the final answer is reached. 4. THE SIMULATION RESULTS To simulate the performance of the above algorithm, a test signal has been used. This signal has a distortion as: 𝑦(𝑡) = 1.5 𝑠𝑖𝑛( 𝜔𝑡 + 80∘ ) + 0.5 𝑠𝑖𝑛( 3𝜔𝑡 + 60∘ ) +0.2 𝑠𝑖𝑛( 5𝜔𝑡 + 45∘ ) + 0.15 𝑠𝑖𝑛( 7𝜔𝑡 + 36∘ ) +0.1 𝑠𝑖𝑛( 11𝜔𝑡 + 30∘ ) + 𝐾𝑠𝑟𝑎𝑛𝑑(𝑡) (19) The test signal from the terminal of an industrial charge is sampled consisting of the power converters and the ignition kilns. This test signal contains 5 harmonics, Gaussian noises with a mean of 0 and variance one. The coefficient is considered equal to 0.05. To test the efficiency of the proposed algorithm, several test signals are used as follows: − Static test signal with the low noise − Static test signal with the high noise − The dynamic test signal − The signal test with the frequency deviation For the static signal with the low noise, the signal-to-noise ratio is SNR=20 db, and for static signals, with high noise the signal-to-noise ratio is SNR=5 db. The results are as follows: As you can see in Figure 1 and Figure 2, the actual values with the simulated estimated values for the static signal with the low noise is SNR=20 db, and with the high noise is SNR=5 db. Therefore, they are hardly different from each other. In other words, the results show the accuracy of the above method to estimate these types of signals. In a real power system, the amplitude of the waveform of the electric waves varies with different times. The
  • 5. Bulletin of Electr Eng & Inf ISSN: 2302-9285  The estimate of amplitude and phase of harmonics in power system … (Mehrdad Ahmadi Kamarposhti) 1789 changes of these amplitudes depend on the types of charge. The dynamic test signal has the following characteristics: 𝑍(𝑡) = [1.5 + 𝑎1(𝑡)] 𝑠𝑖𝑛( 𝜔𝑡 + 80∘ ) +[0.5 + 𝑎3(𝑡)] 𝑠𝑖𝑛( 3𝜔𝑡 + 60∘ ) +[0.2 + 𝑎5(𝑡)] 𝑠𝑖𝑛( 5𝜔𝑡 + 45∘ ) +0.15 𝑠𝑖𝑛( 7𝜔𝑡 + 36∘ ) + 0.1 𝑠𝑖𝑛( 11𝜔𝑡 + 30∘ ) +0.5 𝑒𝑥𝑝( − 5𝑡) + 𝐾𝑠𝑟𝑎𝑛𝑑(𝑡) 𝑎1(𝑡) = 0.15 𝑠𝑖𝑛 2 𝜋𝑓1𝑡 + 0.05 𝑠𝑖𝑛 2 𝜋𝑓5𝑡 𝑎2(𝑡) = 0.05 𝑠𝑖𝑛 2 𝜋𝑓3𝑡 + 0.02 𝑠𝑖𝑛 2 𝜋𝑓5𝑡 𝑎3(𝑡) = 0.025 𝑠𝑖𝑛 2 𝜋𝑓1𝑡 + 0.005 𝑠𝑖𝑛 2 𝜋𝑓5𝑡 (20) As indicated in Figure 3 and Figure 4, despite the change in harmonic amplitude and noise, the LS.KF method follows the sudden changes in amplitude and phases. Figure 1. The comparison of the actual signal with the estimated one (SNR=20 db) Figure 2. The comparison of the actual signal with the estimated one (SNR=5 db) Figure 3. Tracking the base harmonic amplitude in dynamical condition Figure 4. Tracking the basic harmonic phase in dynamical conditions In Figure 5 and Figure 6, the amplitude and phase of the third harmonic are estimated in dynamical conditions by using the above algorithm. As you can see, the precision of the method is also used to estimate the harmonics. Moreover, this method can also be used to estimate other harmonics in the network. Since there is always a mechanical deviation for any power system, we test the proposed estimation against these deviations. For this purpose, we used the mechanical deviation of ∆𝐹 = −1 𝐻𝑍. This deviation was applied at the beginning of the second cycle, and that will be eliminated after 33 ms because the harmonics are the correct multiplication of the base frequency. Subsequently, the deviation at the original frequency affects all the harmonics. The results of the baseline harmonic amplitude and phase estimation are presented in Figure 7 and Figure 8. As we can see, the estimated range of the amplitude and phase do not show much deviation, after applying frequency deviation. In case of smaller deviations like ∆𝐹 = 0.1 𝐻𝑍 the introduced LS-KF method can monitor the parameters almost uninterruptedly.
  • 6.  ISSN: 2302-9285 Bulletin of Electr Eng & Inf, Vol. 10, No. 4, August 2021 : 1785– 1792 1790 Figure 5. Tracking the third harmonic amplitude in dynamical conditions Figure 6. Tracking the third harmonic phase in dynamical conditions Figure 7. Basic harmonic amplitude tracking by frequency deviation Figure 8. Basic harmonic phase tracking by frequency deviation 5. THE COMPARISON OF THE ALGORITHM-LS-KF WITH DFT METHOD To understand the efficiency of the algorithm, its performance is compared with the DFT1 fourier transform traditional method. For this purpose, the desired signal is initially combined with the white noise and the signal-to-noise ratio of SNR=10 db is used for modeling. The results are shown in Figure 9 and Figure 10. Figure 9. Signal tracking by the LS-KF method Figure 10. Signal tracking by DFT method To compare the performance of the LS-KF algorithm with the DFT method better, we used the following two indicators, there are; 1) the squares average of the estimated signal error, 2) the variance of the estimated signal. Also, the results are shown in Table 1.
  • 7. Bulletin of Electr Eng & Inf ISSN: 2302-9285  The estimate of amplitude and phase of harmonics in power system … (Mehrdad Ahmadi Kamarposhti) 1791 Table 1. Comparison of performance indicators of LS-KF and DFT algorithms The error variance The square average of errors The type of algorithm 0.1187 0.0475 0.0094 0.0055 DFT LS.KF 6. CONCLUSION Today, the accurate estimation of the amplitude and phase of the harmonics to design filters to remove unwanted harmonics is essential for the proper operation of the power system. In this paper, a new and efficient method to identify the harmonic parameters is used. The proposed method consists of a combination of the KF filter and a linear estimator called the least squared LS. Therefore, the LS-KF name is suggested for this method. In this algorithm, we used the KF method to estimate the phase, and we also used the LS method to estimate the amplitude. As the results of the simulation show us that, the harmonic parameters converge in less than one cycle to real values. The algorithm also performs well in the moment tracking of the parameters. To show the accuracy of the proposed method, we used two indicators, one of them was MSE, and another one was variance to test signals. REFERENCES [1] W. M. Grady and S. Santoso, "Understanding Power System Hannonics," in IEEE Power Engineering Review, vol. 21, no. 11, pp. 8-11, Nov. 2001, doi: 10.1109/MPER.2001.961997. [2] R. G. Ellis, “Harmonic analysis of industrial power systems,” in IEEE Transactions on Industry Applications, vol. 32, no. 2, pp. 417-421, March-April 1996, doi: 10.1109/28.491492. [3] V. Suresh Kumar, P.S. Kannan, “Harmonics-its sources, effects and remedial measures on modern textile industry,” in proc-2002 universities power engineering conference (UPEC), pp. 133-136, 2002. [4] V. S. Kumar, P. S. Kannan, “Harmonic studies in space vector PWM inverter drive system,” 2004 International Conference on Power System Technology, 2004, pp. 123-127, doi: 10.1109/ICPST.2004.1459978. [5] T. Assaf, H. Henao, G.A. Capolino, “A special method for on-line computation of the harmonics of symmetrical components in induction machines,” European Transactions on electrical power, vol. 15, no. 3, pp. 203-216, 2005. doi: https://doi.org/10.1002/etep.52. [6] G. T. Heydt, “Identification of harmonic sources by a state estimation technique,” in IEEE Transactions on Power Delivery, vol. 4, no. 1, pp. 569-576, Jan. 1989, doi: 10.1109/61.19248. [7] A. Asheibi, D. Stirling, D. Sutanto, “Analyzing Harmonic Monitoring Data Using Supervised and Unsupervised Learning,” in IEEE Transactions on Power Delivery, vol. 24, no. 1, pp. 293-301, Jan. 2009, doi: 10.1109/TPWRD.2008.2002654. [8] E. Gursoy, D. Niebur, “Harmonic Load Identification Using Complex Independent Component Analysis,” in IEEE Transactions on Power Delivery, vol. 24, no. 1, pp. 285-292, Jan. 2009, doi: 10.1109/TPWRD.2008.2002968. [9] R. K. Hartana, G. G. Richards, “Constrained neural network-based identification of harmonic sources,” in IEEE Transactions on Industry Applications, vol. 29, no. 1, pp. 202-208, Jan.-Feb. 1993, doi: 10.1109/28.195908. [10] V. S. Kumar, P. S. Kannan, K. Kalaiselvi, D. Kavitha, “Optimal Estimation of Harmonics in Power System using Intelligent Computing Techniques,” International Joint Conference on Neural Networks, 2007, pp. 142-147, doi: 10.1109/IJCNN.2007.4370945. [11] M. Gupta, S. Srivastana, J. Gupta, “A faster estimation algorithm applied to power quality problems,” International journal of engineering science and technology, vol. 2, no. 9, pp. pp. 4448-4461, 2010. [12] P. K. Ray, B. Subudhi, “Ensemble-Kalman-Filter-Based Power System Harmonic Estimation,” in IEEE Transactions on Instrumentation and Measurement, vol. 61, no. 12, pp. 3216-3224, Dec. 2012, doi: 10.1109/TIM.2012.2205515. [13] S. Liu, “An adaptive Kalman filter for dynamic estimation of harmonic signals,” 8th International Conference on Harmonics and Quality of Power. Proceedings (Cat. No.98EX227), 1998, pp. 636-640 vol. 2, doi: 10.1109/ICHQP.1998.760120. [14] J. Yao, D. Di, G. Jiang, S. Gao, H. Yan, “Real-Time Acceleration Harmonics Estimation for an Electro-Hydraulic Servo Shaking Table Using Kalman Filter With a Linear Model,” in IEEE Transactions on Control Systems Technology, vol. 22, no. 2, pp. 794-800, March 2014, doi: 10.1109/TCST.2013.2256136. [15] H. M. Beides, G. T. Heydt, “Dynamic state estimation of power system harmonics using Kalman filter methodology,” in IEEE Transactions on Power Delivery, vol. 6, no. 4, pp. 1663-1670, Oct. 1991, doi: 10.1109/61.97705. [16] S. Zhong, K. Tam, “A Frequency Domain Approach to Characterize and Analyze Load Profiles,” in IEEE Transactions on Power Systems, vol. 27, no. 2, pp. 857-865, May 2012, doi: 10.1109/TPWRS.2011.2170592. [17] H. Wen, J. Zhang, W. Yao, L. Tang, “FFT-Based Amplitude Estimation of Power Distribution Systems Signal Distorted by Harmonics and Noise,” in IEEE Transactions on Industrial Informatics, vol. 14, no. 4, pp. 1447-1455, April 2018, doi: 10.1109/TII.2017.2749682. [18] H. C. Lin, “Inter-Harmonic Identification Using Group-Harmonic Weighting Approach Based on the FFT,” in IEEE Transactions on Power Electronics, vol. 23, no. 3, pp. 1309-1319, May 2008, doi: 10.1109/TPEL.2008.921067.
  • 8.  ISSN: 2302-9285 Bulletin of Electr Eng & Inf, Vol. 10, No. 4, August 2021 : 1785– 1792 1792 [19] Fusheng Zhang, Zhongxing Geng, Wei Yuan, “The algorithm of interpolating windowed FFT for harmonic analysis of electric power system,” in IEEE Transactions on Power Delivery, vol. 16, no. 2, pp. 160-164, April 2001, doi: 10.1109/61.915476. [20] C. Chen, Y. Chen, “Comparative Study of Harmonic and Interharmonic Estimation Methods for Stationary and Time-Varying Signals,” in IEEE Transactions on Industrial Electronics, vol. 61, no. 1, pp. 397-404, Jan. 2014, doi: 10.1109/TIE.2013.2242419. [21] A. Ferrero, S. Salicone, S. Toscani, “A Fast, Simplified Frequency-Domain Interpolation Method for the Evaluation of the Frequency and Amplitude of Spectral Components,” in IEEE Transactions on Instrumentation and Measurement, vol. 60, no. 5, pp. 1579-1587, May 2011, doi: 10.1109/TIM.2010.2090051. [22] J. Zhao, M. Netto, L. Mili, “A Robust Iterated Extended Kalman Filter for Power System Dynamic State Estimation,” in IEEE Transactions on Power Systems, vol. 32, no. 4, pp. 3205-3216, July 2017, doi: 10.1109/TPWRS.2016.2628344. [23] S. Wang, J. Feng, C. K. Tse, “Analysis of the Characteristic of the Kalman Gain for 1-D Chaotic Maps in Cubature Kalman Filter,” in IEEE Signal Processing Letters, vol. 20, no. 3, pp. 229-232, March 2013, doi: 10.1109/LSP.2013.2241424. [24] Robert G. Brown, Patric Y. C, Hwang, “Introduction to random signals and applied Kalman filtering,” New York, Wiley, 1992. [25] J. B. V. Reddy, P. K. Dash, R. Samantaray, A. K. Moharana, “Fast Tracking of Power Quality Disturbance Signals Using an Optimized Unscented Filter,” in IEEE Transactions on Instrumentation and Measurement, vol. 58, no. 12, pp. 3943-3952, Dec. 2009, doi: 10.1109/TIM.2009.2020835. [26] F. Gustafsson, G. Hendeby, “Some Relations Between Extended and Unscented Kalman Filters,” in IEEE Transactions on Signal Processing, vol. 60, no. 2, pp. 545-555, Feb. 2012, doi: 10.1109/TSP.2011.2172431. [27] I. Arasaratnam, S. Haykin, R. J. Elliott, “Discrete-Time Nonlinear Filtering Algorithms Using Gauss–Hermite Quadrature,” in Proceedings of the IEEE, vol. 95, no. 5, pp. 953-977, May 2007, doi: 10.1109/JPROC.2007.894705. [28] X. Lu, L. Xie, H. Zhang, W. Wang, “Robust Kalman Filtering for Discrete-Time Systems With Measurement Delay,” in IEEE Transactions on Circuits and Systems II: Express Briefs, vol. 54, no. 6, pp. 522-526, June 2007, doi: 10.1109/TCSII.2007.892223. [29] R. Zhan, J. Wan, “Iterated Unscented Kalman Filter for Passive Target Tracking,” in IEEE Transactions on Aerospace and Electronic Systems, vol. 43, no. 3, pp. 1155-1163, July 2007, doi: 10.1109/TAES.2007.4383605. [30] S. K. Singh, N. Sinha, A. K. Goswami, N. Sinha, “Several variants of kalman filter algorithm for power system harmonic estimation,” International Journal of Electrical Power & Energy Systems, vol. 78, pp. 793-800, 2016. doi: https://doi.org/10.1016/j.ijepes.2015.12.028.