Professional Documents
Culture Documents
Optimal Memory for Discrete-Time FIR Filters in II. ESTIMATION OF OPTIMAL MEMORY
State-Space Assume that the -state process is described in discrete-time state-
Felipe Ramirez-Echeverria, Amadou Sarr, and space from zero to with the time-invariant state and obser-
Yuriy S. Shmaliy, Fellow, IEEE vation equations, respectively,
(1)
(2)
Abstract—In this correspondence, we propose an efficient estimator of
optimal memory (averaging interval) for discrete-time finite impulse re-
sponse (FIR) filters in state-space. Its crucial property is that only real mea- where , and
surements and the filter output are involved with no reference and noise . Here, and are zero mean,
statistics. Testing by the two-state polynomial model has shown a very good and , white sequences with the covariances
correspondence with predicted values. Even in the worst case of the har- and , respectively, and property
monic model, the estimator demonstrates practical applicability.
for all and .
Index Terms—FIR filtering, optimal memory, state space, discrete time. We can now apply a FIR estimator with memory and
assign the estimate obtained via measurements from zero to as
. The MSE in this estimate can be defined as
I. INTRODUCTION
Since Jazwinski has proposed a limited memory optimal filter [1], (3)
the latter was developed by various authors in different forms [2]–[5].
In contrast to the recursive Kalman filter having the infinite impulse where means averaging of and is the estimation
response (IIR), the discrete-time finite impulse response (FIR) filter error. The MSE will be truly minimal if we minimize (3) by and
utilizes data from the nearest past of points (memory). In order for let . In doing so, one can either minimize the trace
the mean square errors (MSEs) in such filters to be truly minimal, , if needs to be applied to all of the states at once, or the
should be optimal, . Otherwise, if , noise reduction is th component of corresponding to the desired th state,
inefficient and, when , the estimate bias dominates. Note respectively,
that such filters are not selective filters. Thus, there is no exact rela-
(4)
tion between the filter order and memory. The FIR filter memory opti-
mization in state space needs finding the derivative of the MSE matrix (5)
with respect to the convolution batch length that implies a mathemat-
ical problem. Therefore, the authors typically suppose that is given
and derive conditionally optimal filters. The value is then han- Both estimates, and , can serve as depending on ap-
dled heuristically or by employing real measurements for some refer- plications. For example, in the velocity measuring radars or frequency
ence model [5], [6]. In [7], has been determined for polynomial measuring systems [6], required only for the second state can be
models via the higher order states that has clear limitations. For sig- found using (5) with . In GPS-based ground applications, all of
nals with known bandwidth , the approach was proposed in [4]. Its the vehicular states commonly need to be estimated at once. Thus (4)
flaw is that is highly sensitive to . Still no estimator was ad- must be used.
dressed for the most demanded case: determination of for arbi- The problem with (4) or (5) arises instantly when the reference be-
trary models via real measurements and estimates with no reference havior is unknown as it usually is. If so, then let us substitute with
and cost equipment. and examine the MSV of the difference between the actual mea-
In this correspondence, we show that can efficiently be esti- surement and the relevant estimate . Substituting with (2)
mated via the mean square value (MSV) associated with real measure- gives us
ments and -variant estimates. In Section II, we discuss the estima-
tion of in a learning cycle. The -variant MSE and MSV are de- (6a)
rived in Section III employing the Kalman-like unbiased FIR (UFIR) (6b)
filter. The optimal memory estimation algorithm is discussed in Section
IV. Applications to the two-state polynomial and harmonic models are in which two last terms strongly depend on . Three limiting cases can
given in Section V and concluding remarks are drawn in Section VI. be considered:
• When , the FIR filter degree is equal
Manuscript received April 19, 2012; revised June 26, 2012 and January 23, to the number of measured points and the filter thus tracks each
2013; accepted January 23, 2013. Date of publication November 08, 2013; date of them. No noise reduction is provided and the error with
of current version January 13, 2014. The associate editor coordinating the re- its sign changed almost repeats measurement noise. Substituting
view of this manuscript and approving it for publication was Prof. Shuguang with makes (6b) near zero
(Robert) Cui.
F. Ramirez-Echeverria and Y. S. Shmaliy are with the Department of Elec-
tronics Engineering, Universidad de Guanajuato, Salamanca 36885, Mexico (7)
(e-mail: shmaliy@ugto.mx).
Amadou Sarr is with the Department of Mathematics and Statistics, Mc- • At the optimal point , two last terms in (6b)
Master University, Hamilton, ON L8S 4L8, Canada (e-mail: asarr@math.mc-
master.ca).
vanish by the orthogonality condition, the measurement noise
Color versions of one or more of the figures in this paper are available online dominates the estimation error, , and we get
at http://ieeexplore.ieee.org.
Digital Object Identifier 10.1109/TSP.2013.2290504 (8)
1053-587X © 2013 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
558 IEEE TRANSACTIONS ON SIGNAL PROCESSING, VOL. 62, NO. 3, FEBRUARY 1, 2014
(9)
(12)
which convergence depends on the model. Note that the bias correction
gain is associated in (12) with the noise power gain (NPG) which
where is the bias correction gain,
diminishes as a reciprocal of [4]. Even so, cannot be neglected
(13) in (19) with large , because of divergence.
Provided , by (17), can be estimated numerically using (4)
(14) or (5) by increasing from until or reaches a first
(15) minimum. Note that (19) agrees with the fact that when a model is
RAMIREZ-ECHEVERRIA et al.: OPTIMAL MEMORY FOR DISCRETE-TIME FIR FILTERS IN STATE-SPACE 559
B. -Variant MSV
Although can be estimated by minimizing (17), and are
commonly not fully known and the estimate of may thus not be
correct. If that is the case, then the MSV (6a) may serve better.
Employing (12), the MSV (6b) can be transformed by
, and
(20)
(21)
(22)
(23)
cause ambiguities in the determination of and long baseline mea-
At , the term in brackets of (23) vanishes by (18) and we have
surement would be required. The algorithm we propose (Fig. 2) implies
multiple short measurements and denoising by averaging. At the early
stage, such measurements , are conducted with length
(24) . Provided , the above-discussed full-horizon UFIR filter
(12)–(16) produces the estimates . Next, the MSVs
Now observe that and, by simple manipulations, (13) are calculated via as . The
can be transformed to -variant trace of the MSV is then computed via the average of partic-
ular MSVs as
(25)
(27)
representing the filter NPG see (18) in [10] . Because, the NPG di-
minishes in FIR structures once rises, both and are also
diminished by . That implies and we come up with a Because still may have some ripples around , extra de-
conclusion that (24) is always positive and so is the derivative of , noising can be organized with -point smoothing. In our algorithm,
we employ the -degree and -lag UFIR smoothing filter (42, [10])
(26)
(28)
On the other hand, since decreases with and reaches a min-
imum at , then increases with and, by (26), passes
across with a minimum and positive slope. Because the esti- in which and means a maximum integer smaller
mate bias forces MSV to converge to MSE, is concave as well than or equal to . The low-degree impulse responses
as MSE. Further minimization of by gives us that can , are specified in [10] by (52), (53), (59), and (71). Note that any
be said to be a crucial property of the MSV. However, since analytical smoother such as the Savitzky-Golay’s can be used here and and
solutions to (10) and (11) are not available in state space, efficient nu- must be set individually for each trace. Provided , the trace mini-
merical algorithms are required. mization can be obtained by (10) to produce finally .
Fig. 3. Effect of on the MSE and MSV in the 2-state polynomial model: (a)
errors as functions of and (b) derivative of MSV in the th
measurement, trace (bold) by (27), and trace (circles) smoothed by (28).
Experimental dependencies, by (3) and (6a), are dashed in (a).
VI. CONCLUSION
The algorithm proposed in this correspondence is crucial for the es-
timation of optimal memory making the MSE in discrete-time state-
space FIR filters truly minimal. We have shown how to find optimal
memory via the -variant mean square value involving real measure-
Fig. 6. Optimal found for the 2-state harmonic model: (a) by , ments and estimates while ignoring any reference and noise statistics.
by (b) , and (c) experimental. An application to the polynomial two-state model has shown a very
good correspondence with the theory. Even in the worst case of the har-
monic model, the memory estimated experimentally has demonstrated
practical applicability.
converges slowly and the sum length should not be shorter than .
Next, we varied NNR and estimated by (4) and (10) as shown in
Fig. 4. Here, curves (a) and (b) trace very close to each other. Moreover, REFERENCES
the dependences suggest a simple empirical rule (dotted in [1] A. H. Jazwinski, Stochastic Processes and Filtering Theory. New
Fig. 4) York, NY, USA: Academic, 1970.
[2] A. M. Bruckstein and T. Kailath, “Recursive limited memory filtering
and scattering theory,” IEEE Trans. Inf. Theory, vol. IT-31, no. 3, pp.
440–443, May 1985.
[3] W. H. Kwon, P. S. Kim, and S. H. Han, “A receding horizon unbiased
FIR filter for discrete-time state space models,” Automatica, vol. 38,
where one can set . Experiment, however, reveals that fits no. 3, pp. 545–551, Mar. 2002.
actual only if is small. The effect is due to short time measure- [4] Y. S. Shmaliy, “Linear optimal FIR estimation of discrete time-in-
variant state-space models,” IEEE Trans. Signal Process., vol. 58, no.
ments and it almost disappears on a long baseline. 6, pp. 3086–3096, June 2010.
[5] P. S. Kim, “An alternative FIR filter for state estimaiton in discrete-
B. Two-State Harmonic Model time systems,” Digit. Signal Process., vol. 20, no. 5, pp. 935–943, May
2010.
The most inconvenient case for the estimation of is perturbed [6] Y. Kou, Y. Jiao, D. Xu, M. Zhang, Y. Liu, and X. Li, “Low-cost precise
by noise the harmonic model with its quasi periodic behavior. We sim- measurement of oscillator frequency instability based on GNSS carrier
observation,” Adv. Space Res., vol. 51, no. 6, pp. 969–977, 2012.
ulate it with [7] Y. S. Shmaliy, J. Muñoz-Diaz, and L. Arceo-Miquel, “Optimal hori-
zons for a one-parameter family of unbiased FIR filters,” Digit. Signal
, and uncorrelated zero mean white Gaussian and . Process., vol. 18, no. 5, pp. 739–750, Sep. 2008.
The noise was set with [8] Y. S. Shmaliy, “An iterative Kalman-like algorithm ignoring noise and
initial conditions,” IEEE Trans. Signal Process., vol. 59, no. 6, pp.
and and with . 2465–2473, Jun. 2011.
For , errors in the first state estimates are shown in Fig. 5(a) [9] T. Kailath, A. H. Sayed, and B. Hassibi, Linear Estimation. Upper
Saddle River, NJ, USA: Prentice-Hall, 2000.
and, by , we have obtained as shown in Fig. 5(b). Then [10] Y. S. Shmaliy and L. J. Morales-Mendoza, “FIR smoothing of discrete-
smoothing with and minimization of by gave us time polynomial signals in state space,” IEEE Trans. Signal Process.,
closely related to in Fig. 5(a). Observing Fig. 5, one notices vol. 58, no. 5, pp. 2544–2555, May 2010.