Mprovement of Extended Kalman Filter Frequency Tracker For Nonstationary Harmonic Signals
Mprovement of Extended Kalman Filter Frequency Tracker For Nonstationary Harmonic Signals
593
The structure of the EKF frequency tracker is If we also define the ratio of q and r as:
diagrammatically depicted in Fig.1. As with any frequency
tracker, from an external point of view it can be seen as a q
device receiving the measured signal y (t ) as input, and λ= , (17)
r
delivering the estimated frequency ω (t ) = x3 (t | t ) as output.
The internal structure is constituted by two main sub-blocks: it can be shown (see [8], [12]) that the Riccati equation and
the first performs the updating of the state equations, the gain (i.e., K (t ) ) of EKF change in the form of:
according to the first expression in (12); the second has the
task of providing the gain vector at each time step and is based
on the third and fourth equations of (12).
⎢⎣
(
P(t + 1) = F (t ) ⎡ P(t ) − P(t ) H T HP(t ) H T + λ )
−1
HP(t )⎤
⎥⎦
Notice that our EKF frequency tracker is parameterized in
{ q, p, r }. These three parameters are the “knobs,” by means × F T (t ) + I11
of which the designer can obtain suitable tracking
performance. (
K (t ) = P(t ) H T HP(t ) H T + λ )−1
. (18)
III. PARAMETERIZATION ANALYSIS
Therefore, the performance of the EKF frequency tracker
In [5] and [7] a preliminary analysis of the roles played by
the parameters has been given, and some guidelines for their q
depends only on the ratio λ = and so, the problem of
tuning have been proposed proposed. Such analysis, having r
the objective of explaining the effects of each parameter on tuning of three design parameters { q, p, r } can be reduced
the EKF performance, is mainly based upon Monte Carlo to tuning of just one design parameter λ . With these results,
simulation trials. Even though some useful and interesting the EKF equations (12) can be rewritten as:
indications have been obtained in this way, the tuning of
parameters still remains a difficult task due to the unclear
cross-relationships between such parameters. ⎧ x (t | t ) = f ( x (t − 1 | t − 1))
⎪
In this section, considering the works of [8] and [12], with ⎪ + K (t )( y (t ) − H ( f ( x (t − 1 | t − 1)))
some assumption and without loss of performance, we
⎪ ω (t ) = Cx (t | t )
parameterize the extended Kalman frequency tracker by ⎪⎪
means of only one design parameter instead of three (
⎨ K (t ) = P(t ) H T HP(t ) H T + λ
⎪
−1
)
parameters { q, p, r }. This simplification provides an easier
and more transparent tuning of the EKF tracking behaviour. ⎪ ⎢⎣
(
⎪ P (t + 1) = F (t ) ⎡ P (t ) − P(t ) H T HP(t ) H T + λ )
−1
HP(t )⎤
⎥⎦
If we assume that: ⎪
⎩⎪ × F T (t ) + I11
q= p (13) (19)
I11 = diag (0,0,1,1) , (14) f ( x (t | t )) =
⎡ x 4 (t | t )[ x1 (t | t ) cos( x 3 (t | t )) − x 2 (t | t ) sin( x3 (t | t ))]⎤
according to definition of I qp in (12), we can conclude: ⎢ ⎥
⎢ x 4 (t | t )[ x1 (t | t ) sin( x3 (t | t )) + x 2 (t | t ) cos( x 3 (t | t ))]⎥
⎢ x 3 (t | t ) ⎥
I qp = q × I11 ; (15) ⎢ ⎥
⎣⎢ x 4 (t | t ) ⎦⎥
H = [1 0 0 0] C = [0 0 1 0]
therefore, with this assumption, the Riccati equation (the
fourth equation) in (12) changes in the form of: and
(
P(t + 1) = F (t ) ⎡ P(t ) − P(t ) H T HP(t ) H T + r
⎢⎣
)
−1
HP(t )⎤
⎥⎦
⎡ x 1 (t | t ) ⎤
⎢ ⎥
⎢ x 2 (t | t )⎥ ∂f ( x)
× F T (t ) + qI11 . x (t | t ) = , F (t ) = | x = x (t −1|t −1)
⎢ x 3 (t | t ) ⎥ ∂x
⎢ ⎥
(16) ⎣⎢ x 4 (t | t )⎦⎥
594
I11 = diag (0,0,1,1) In order to compare performance of proposed technique
with that of [8] for estimating of frequency of the harmonic
Tracker (19) is a significant simplification of (12); the signal embedded in y (t ) , the EKF frequency trackers (19)
vector of the “tunable” parameters of (19) is now constituted and [8] are used.
by a single parameter λ . In conclusion, the task of tuning the In order to obtain more reliable results, the value of λ is
tuning parameters of the EKF frequency tracker (12) chosen near zero ([8], [12]). The corresponding frequency
(parameterized with { q, p, r }) boils down to that of tuning estimation results for EKF frequency tracker [8] and our
the tracker (19), where a single parameter { λ } has to be proposed EKF frequency tracker, are displayed in Fig. 3 (a)
chosen. In this way, when λ increases, the error variance and (b) respectively (where f1=10(kHz), f2=20(kHz)).
diminishes, however, its tracking ability deteriorates; in As shown in Fig. 3, since the algorithm of [8] has no
opposition, when λ decreases, the tracking process becomes assumption about the variation of signal amplitude, our
more robust for state variations, but the error variance grows proposed EKF frequency tracker has resulted to superior
(see [8], [9]). performance compared to that of [8].
In the previous simulation, we assumed that f1=10(kHz) and
IV. SIMULATION RESULTS f2=20(kHz) and therefore f2=2f1. Now, if we increase the
deference between f1 and f2, for example f1=4(kHz) and
The following simulations demonstrate the advantages of
f2=30(kHz), and therefore f2=7.5f1, the simulation results will
our proposed technique in comparison with other techniques
be in the form of Fig. 4. The corresponding frequency
(specially the method proposed in [8]) for frequency tracking
estimation results for EKF frequency tracker [8] and our
in two following nonstationary conditions:
proposed EKF frequency tracker are displayed in Fig. 4 (a)
• noisy environments,
and (b) respectively.
• variations of signal amplitude and frequency.
First, assume a harmonic signal, characterized by time-
varying frequency and amplitude and embedded in white
noise. Specifically, y (t ) = s (t ) + n(t ) for 0ms ≤ t ≤ 10ms ,
where n(t ) ≈ WN (0,0.02) and s(t) is defines by means of
following two equations:
and
The measured signal y(t) for f1=10(kHz) and f2=20(kHz) has (a)
been shown in Fig. 2.
(b)
Figure 2. Measured signal y(t). Figure 3. (a) Frequency tracking of the EKF frequency tracker proposed in
[8]. (b) Frequency tracking of our proposed EKF frequency tracker (19).
595
(a) (a)
(b) (b)
Figure 4. (a) Frequency tracking of the EKF frequency tracker proposed in Figure 6. (a) Frequency tracking of the EKF frequency tracker proposed in
[8]. (b) Frequency tracking of our proposed EKF frequency tracker (19). [8]. (b) Frequency tracking of our proposed EKF frequency tracker (19)
As shown in Fig. 4, the EKF frequency tracker [8] can not The corresponding frequency estimation results for EKF
track the frequency jumping of y(t) whereas our proposed frequency tracker [8] and our proposed EKF frequency tracker
EKF frequency tracker has tracked it. are displayed in Fig. 6 (a) and (b), respectively. (In order to
obtain more reliable results, the value of λ is chosen near
zero ([8], [12])).
Finally, consider a harmonic signal embedded in white
noise, characterized by time-varying frequency and random
amplitude. Specifically, y (t ) = s (t ) + n(t ) for 0ms ≤ t ≤ 8ms ,
where n(t ) ≈ WN (0,0.01) and
s(t ) = A(t ) cos( f (t ) × 2πt ) + n(t ) where A(t) is a random
process, f(t) is 10(kHz) for 0ms ≤ t ≤ 2ms , f(t) is 13(kHz) for
0.6ms ≤ t ≤ 0.8ms and for 0.2ms ≤ t ≤ 0.6ms f(t) increases
linearly from 10(kHz) to 13(kHz). The measured signal y(t) is
shown in Fig. 5.
V. CONCLUSION
In this work, by adding one additional state variable (that
represents the variations of signal amplitude) to third-order
Figure 5. Measured signal y(t).
state space model proposed in [5]-[8], we extremely improved
the performance of EKF frequency tracker for nonstationary
596
harmonic signals (harmonic signals with time-varying
amplitude and frequency). Since most of harmonic signals
typically have time varying characteristics (such as time
varying amplitude), the proposed technique is more useful and
superior compared to the conventional methods.
REFERENCES
[1] D. L. Snyder, The State-Variable Approach to Continuous Estimation
with Applications to Analog Communications Theory. Boston, MA:
MIT Press, 1969.
[2] B. Boashash, “Estimating and interpreting the instantaneous frequency
of a signal,” in Proc. IEEE, vol. 80, no. 4, pp. 520–568, 1992.
[3] L. Hsu, R. Ortega, and G. Damm, “A globally convergent frequency
estimator,” IEEE Trans. Automat. Contr., vol. 44, pp. 698–713, 1999.
[4] S. M. Kay, Modern Spectral Estimation: Theory and Applications.
Engleweood Cliffs, NJ: Prentice-Hall, 1988.
[5] B. La Scala and R. Bitmead, “Design of an extended Kalman filter
frequency tracker,” IEEE Trans. Signal Processing, vol. 44, pp. 739–
742, 1996.
[6] B. La Scala, R. Bitmead, and B. G. Quinn, “An extended Kalman filter
frequency tracker for high-noise environments,” IEEE Trans. Signal
Processing, vol. 44, pp. 431–434, 1996.
[7] B. La Scala, R. Bitmead, and M. R. James, “Conditions for stability of
the extended Kalman filter and their application to the frequency
tracking problem,” Math. Control, Signals Syst., vol. 8, pp. 1–26, 1995.
[8] S. Bittanti and S. M. Savaresi, “On the Parameterization and Design of
an Extended Kalman Filter Frequency Tracker,” IEEE Trans.
Automatic Control, vol. 45, pp. 1718–1724, 2000.
[9] L. D. Avendano-Valencia, L. E. Avendano, J. M. Ferrero, and G. C.
Dominguez, “Improvement of an Extended Kalman Filter Power Line
Interference Suppressor for ECG Signals,” Computers in Cardiology,
ISSN 0276−6574, 34:553−556, 2007.
[10] B. D. O. Anderson and J. B. Moore, Optimal Filtering. Englewood
Cliffs, NJ: Prentice-Hall, 1979.
[11] M. I. Ribeiro, “Kalman and Extended Kalman Filters: Concept,
Derivation and Properties,” Institute for Systems and Robotics,
Instituto Superior Tcnico, Av. Rovisco Pais, 1, February 2004.
[12] S. Bittanti, A. J. Laub, and J. C. Willems, Eds., The Riccati equation,
New York: Springer-Verlag, 1991.
597