The present invention relates to a method for filtering comprising adaptive filtering an input signal, interpolating the filtered signal, interpolating the input signal for adapting the adaptive filtering, providing a reference signal, combining the interpolated filtered signal and the reference signal for forming an error signal. The invention also relates to an apparatus comprising an adaptive filter for filtering an input signal, a first interpolator for interpolating the filtered signal, a second interpolator for interpolating the input signal, wherein the interpolated input signal is arranged to be used to adapt the adaptive filter.
In prior art there are many different filter designs for different signal filtering purposes. The filters can be divided into different categories e.g. on the basis of the impulse response of the filters. The filters can have either infinite impulse response (IIR) or finite impulse response (FIR). The filters can further be categorised into sub categories on the basis of other properties of the filters. In this patent application the finite impulse response filters, or FIR filters, are considered in greater detail.
The finite impulse response of the FIR filters means that if an impulse is input to the FIR filter the output of the FIR filter will stabilize to zero or to a constant value in course of time. In other words, the effect of the input impulse to the output of the FIR filter is finite in time.
In the following, some terms typical to filters are defined. The filters typically have a certain frequency response. This means that different frequency components of the input signal are attenuated or amplified differently, i.e. the frequency properties of the input signal affect on how the signal passes through the filter. For example, filters having low-pass frequency response attenuate high frequency signals more than low frequency signals. High-pass filters attenuate low frequency signals more than high frequency signals. Band pass filters have a certain, band pass frequency region on which signals are attenuated less than signals outside the band pass frequency region. Band stop filters have a certain, band stop frequency region on which signals are attenuated more than signals outside the band pass frequency region. The frequency on which the filtering properties change (e.g. from stop band to pass band or vice versa) is called as a cut off frequency. Typically the cut off frequency is defined as a frequency on which the attenuation of the filter is 3 dB above the minimum attenuation (or amplification is 3 dB below maximum amplification) of the pass band of the filter. In band pass filters there are two cut off frequencies defined, wherein the pass band lies between the lower cut off frequency and the upper cut off frequency. It should be noted here that in practical implementations the filtering properties does not change suddenly at the cut off frequency but there is always a transition region in which the attenuation (or amplification) properties of the filter changes. It is also obvious that the frequency response is not necessarily constant on the pass band or on the stop band but there can exist some variations (ripple) as is known by an expert in the field.
There are many ways to implement apparatuses containing FIR filters. In some designs adaptivity has been achieved by using some adaptive blocks in the filtering apparatus. As an example of such a filtering apparatus an adaptive interpolated FIR filter, or AIFIR filter for short, is presented in the following. AIFIR filters, which contain one or more interpolators, are applicable in such applications in which a large adaptive FIR filter is required. For example, in echo cancellation, there is a necessity to use a large FIR adaptive filter to model the echo path. When an AIFIR filter is used in a filtering apparatus, this gives an important reduction of the arithmetic operations for both filtering and weight updating. The AIFIR filters are well known by an expert in the field. It should be noted that the interpolator plays an important role in the performance of these structures. The existing approaches in the field of AIFIR filtering apparatuses does not deal with the design of the interpolator. There are many applications, such as system identification and channel equalization, in which prior information about the frequency response of the system to be modelled is not available. Therefore, in these applications it is not possible to design a fixed interpolator.
The U.S. Pat. No. 5,966,415 discloses a digital filter structure comprising an equalizer followed by an interpolator. The equalizer works at a lower sampling rate while at the output of the interpolator the signal has a higher sampling rate. The filter comprises a coefficient register file for storing different sets of coefficients for the interpolator. Based on the data clock and the sampling rate interpolation interval corresponding coefficients are taken from the coefficient register file to be used for the interpolation. The values of the coefficients stored in the coefficient register file are computed in advance by using well known methods such as the minimum mean square error between the interpolator frequency response and the ideal frequency response. Therefore, the coefficients are not adaptive but are computed in advance.
The block diagram of one prior art apparatus including an AIFIR filter is presented in
Minimize E[e2(n)], (1)
Subject to CTW=f (2)
Taking into account (1) and (2) the adaptive constrained LMS algorithm used for adaptation of the sparse FIR filter W(n) can be described as follows:
First, the output of the filter W(n) is computed by:
y(n)=Wt(n)X(n), (3)
where X(n) [x(n), x(n−1), . . . , x(n−N+1)]t is the vector of the past N samples from the input signal x(n) and N is the length of the adaptive filter W(n).
Second, the output of the interpolator is computed:
Yi(n)=ItY(n), (4)
where I=[i1, i2, . . . , iM]t is the vector containing the interpolator coefficients and Y(n)=[y(n), y(n−1), . . . , y(n−M+1)]t is the vector of the past M samples from the signal y(n).
Then, the output error is computed:
e(n)=d(n)+z(n)−yt(n), (5)
The filtered input vector XI(n) is computed as follows:
When all the above calculations are performed, the sparse adaptive filter weights can be updated:
W(n+1)=F{W(n)+μe(n)XI(n)}+q (7)
where F=Id−Ct(CCt)−1C is the projection matrix, Id is the identity matrix of the order of N, and q=Ct(CCt)−1f is a correction vector.
The matrix C and the vector f from the constrained condition (2) in the case of AIFIR are given by (for N odd and L=2):
where
is the number of zero coefficients in the sparse filter W(n) and [*] represents the integer part of the quantity inside the brackets.
Taking into account the equations (8) and (9), the matrix F and the vector g in the Equation (7) can be written as follows:
According to the Equations (10) and (11), it can be seen that the Equation (7) is equivalent with the update equation of the standard LMS, in which just N−K coefficients are adapted provided that the vector W(n) is initialised with zeros. Therefore, the multiplication with F and the addition of q does not introduce extra computations in the Equation (7).
It is also easy to conduct matrices for other values than L=2. For example, if L=3 the matrix F has the following contents:
The matrix F has non-zero values (=1) only on the main diagonal so that every Lth value of the main diagonal is non-zero.
It is well known that in the case of an interpolated FIR filter the interpolator has to be designed in order to remove the frequency images introduced by the zero taps on the sparse filter W(n). In all prior art publications known by the applicant of the present invention in the field of AIFIR filters the interpolator has fixed coefficients and the filter is designed based on some available information about the system to be identified, i.e. optimal filter properties.
In order to illustrate how the prior art AIFIR filter approaches work, two possible practical example implementations are described. In the first implementation the AIFIR filter is used to identify a low-pass filter, and in the second implementation the AIFIR filter is used to identify a high-pass filter. In both implementations the fixed interpolator has a low-pass filter frequency response, because it is assumed that the optimum filter interpolator is unknown and there is no information available for designing the interpolator. Therefore, a low-pass frequency response is assumed in these examples.
The frequency response of the optimum filtering apparatus of the first implementation is presented in
The aim of the present invention is to provide an improved method for filtering signals, and an apparatus comprising an adaptive filter in which less computation power is needed compared with prior art filtering apparatuses. The invention is based on the idea that at least one interpolator of the apparatus is adaptive, wherein the coefficients of the interpolator can be changed according to the desired frequency characteristics of the apparatus. The adaptation can be performed, for example, by using the normalized least mean square (NLMS) algorithm. To put it more precisely, the method according to the present invention is mainly characterized by that the properties of the interpolation of the filtered signal are adaptable. The apparatus according to the present invention is mainly characterized by that the apparatus further comprises a first adapting block for adapting the properties of the first interpolator.
Significant advantages are achieved with the present invention. In applications where a very large FIR filter is required, the complexity of the apparatus can be reduced due to the fact that a small number of coefficients are different from zero. Therefore, less calculation operations are needed than with prior art filtering apparatuses. The invention is also applicable with applications in which there it is not possible to have information about the frequency response of an optimum filtering apparatus. Therefore, by using the method of the present invention the frequency characteristics of the apparatus can be adjusted according to the desired frequency response. Also, when there is a need to change the frequency response of the apparatus during operation it is possible with the apparatus of the present invention. The memory space needed to store the filter coefficients is also smaller than with prior art FIR filters.
In the following, the invention will be described in more detail with reference to the appended drawings, in which
a to 9d depict some of main applications classes as simplified block diagrams.
In
In the following, the operation of the individual blocks of the apparatus 1 will be described in more detail. The adaptive FIR filter 2 is sparse FIR adaptive filter having (L−1) zeros between non-zero coefficients. The coefficients of the adaptive FIR filter 2 are preferably adapted such that the expected value of the squared error is minimized. In order to handle the sparse nature of the adaptive FIR filter 2 a constrained approach has to be used. The constrained cost function to be minimized is the same as with prior art filters. Therefore equations (1) and (2) are applicable here. Then, the similar steps than with prior art can be applied as follows:
First, the output of the adaptive FIR filter 2 is computed by equation (3):
y(n)=Wt(n)X(n).
Second, the output of the first adaptive interpolator 3 is computed by equation (4):
YI(n)=It(n)Y(n),
but now, the coefficients of the first adaptive interpolator 3 are also adapted. The adaptation is performed, for example, by using the following equation:
where μI is the step-size used to adapt the coefficients of the interpolator, e(n) is the output error, I(n)=[i(n)1, i(n)2, . . . , i(n)M]t is the M×1 vector containing the coefficients of the interpolator, Y(n)=[y(n), y(n−1), . . . , y(n−M+1)]t is the vector of the past M samples from the signal y(n), and ε is a small constant.
The output error e(n) is computed by using the equation (5):
e(n)=d(n)+z(n)−yt(n).
The filtered input vector Xt(n) is computed by using the equation (6):
When all the above calculations are performed, the sparse adaptive filter weights can be updated by using the equation (7):
W(n+1)=F{W(n)+μe(n)XI(n)}+q.
The behaviour of the apparatus according to the present invention can be analysed e.g. by using the similar example situations than what was used above in the description where the background art was considered. The frequency response of the optimum filtering apparatus for the first example is depicted in
In the case when the interpolator of the prior art filtering apparatus is not designed appropriately, the prior art filtering apparatus fails to find optimal coefficients for the adaptive FIR filter. The filtering apparatus 1 according to the present invention has also in this case a very good performance. This can be seen by comparing the
Although the apparatus of
The first adapting block 4 and the second adapting block 6 can use least mean square based (LMS) algorithms in adapting the coefficients of the interpolators 3, 7, respectively. However, the invention is not limited to LMS algorithms but also other suitable algorithms can be used in the coefficient adaptation.
There are many application areas in which the filter according to the present invention can be applied.
b depicts an inverse modelling application. In this class of applications, the function of the adaptive filtering apparatus is to provide an inverse model that represents the best fit to an unknown noisy plant. Ideally, in the case of a linear system, the inverse model has a transfer function equal to the reciprocal of the plant's transfer function, such that the combination of the two constitutes an ideal transmission medium. A delayed version of the plant input constitutes the desired response for the filtering apparatus 1. In some applications the plant input can be used without delay as the desired response.
c depicts a predictive application. The function of the adaptive filtering apparatus is to provide the best prediction of the present value of a certain signal. The present value of the signal thus serves the purpose of a desired response for the adaptive filtering apparatus. Past values of the signal supply the input applied to the filtering apparatus 1. Depending on the application of interest, the output y(n) of the filtering apparatus or the estimation error e(n) may serve as the system output. In the first case, the system operates as a predictor, in the latter case, it operates as a prediction-error filter.
The fourth class of applications is interference modelling and it is depicted in
The above described application classes are known by an expert in the field of adaptive filters. The present invention provides improved filtering method to be applied e.g. in those application areas. The improvements are mainly based on the adapting nature of the interpolators, which has not been used with prior art filtering methods.
The above mentioned filtering applications can be utilized, for example, in analysing properties of systems such as buildings, earth, human body, communication channels, etc. For example, in the case of analysing buildings the input signal can be a shock wave, wherein the filter coefficients can be used in evaluating the behaviour of the building during earthquakes.
The filtering method of the present invention can also be used for noise cancellation e.g. to suppress maternal ECG component in fetal ECG. The input signal x(n) of the filtering apparatus 1 is taken near the mother's heart to generate as clean heartbeat signal as possible of the mother's heartbeats. The desired signal d(n) is taken near the abdominal of the mother to get a fetal ECG signal. The “error” signal e(n) of the filtering apparatus 1 is then the fetal ECG signal from which the mother's heartbeat signal is substantially totally removed.
It is also possible to use the filtering method of the present invention in channel equalization, time delay estimation, echo cancellation, adaptive control etc. It is obvious that the above mentioned applications are just non-restrictive examples in which the present invention can be applied.
Number | Date | Country | Kind |
---|---|---|---|
20035050 | Apr 2003 | FI | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/FI04/50045 | 4/22/2004 | WO | 10/20/2005 |