2D adaptive filters explained

A two-dimensional (2D) adaptive filter is very much like a one-dimensional adaptive filter in that it is a linear system whose parameters are adaptively updated throughout the process, according to some optimization approach. The main difference between 1D and 2D adaptive filters is that the former usually take as inputs signals with respect to time, what implies in causality constraints, while the latter handles signals with 2 dimensions, like x-y coordinates in the space domain, which are usually non-causal. Moreover, just like 1D filters, most 2D adaptive filters are digital filters, because of the complex and iterative nature of the algorithms.

Motivation

The topic of 2D adaptive filters is very important in electrical engineering and signal processing since these filters have the ability to take into account the nonstationary statistical properties of 2D signals. Adaptive filters find applications in areas such as Noise cancellation, Signal prediction, Equalization and Echo cancellation. Examples of applications of 2D adaptive filters include Image Denoising,[1] Motion Tracking,[2] OFDM channel estimation,[3] magnetic recording equalization [4]

Example Application

2D Adaptive Filters can be used to identify systems. The system function of the unknown system is given by

P(z1,z2)

, and

H(z1,z2)

is the system function of the 2D adaptive filter when its output comes to steady. The error signal

e(n1,n2)

between the unknown system output,

d(n1,n2)

, and the adaptive filter output,

y(n1,n2)

, is minimized if the unknown system and known 2D adaptive filter have the same input, and if the resulting outputs are similar. Then, it can be shown that

P(z1,z2)

can be represented by

H(z1,z2)

.

H(z1,z2)

is known as the system identification model of the unknown system.

Problem Statement

In digital signal processing, any linear shift invariant system can be represented by the convolution of the signal with the filter's impulse response, given by the expression:

y(n1,n2)=

\sum
m1
\sum
m2

w(m1,m2)x(n1-m1,n2-m2)

If this system is to model a desired response

d(n1,n2)

, the adaptive system can be obtained by continuously adjusting the weight values according to some cost function

F[e(n1,n2)]

that evaluates the error between the two responses.

e(n1,n2)=d(n1,n2)-y(n1,n2)


wj+1(n1,n2)=wj(n1,n2)+F[e(n1,n2)]

Approaches

2D Least Mean Square FIR Adaptive Filters

Least mean square (LMS) Adaptive Filters [5] use the most common error measure method, the mean square error. The 2D LMS Adaptive filters are derived from the 1D LMS adaptive filters main method which minimizes the output mean square value by adjusting coefficients of the filter. The filter has the primary 2D input signal d and the reference input signal x. The primary input signal d consists of the ideal signal and noise component. The filter is an N by N causal FIR filter with impulse response

w

. Then we can get the filter output given by

y(n1,n2)=\sum

N-1
m1=0
N-1
\sum
m2=0

wj(m1,m2)x(n1-m1,n2-m2)

where j is the iteration number for adaptive filters.

The error signal

ej

at the j-th iteration is defined as

ej=d(n1,n2)-\sum

N-1
m1=0
N-1
\sum
m2=0

wj(m1,m2)x(n1-m1,n2-m2)

The weight matrix at the next iteration is equal to the present weight matrix plus a change proportional to the negative gradient of the mean square error. For the two-dimensional LMS adaptive filter, the filter coefficients are updated as follows:

wj+1(n1,n2)=wj(n1,n2)+2\muejx(n1,n2)

where

\mu

is the scaler multiplier controlling which can control the rate of convergence and filter stability.

Advantages: The TDLMS adaptive filter can be implemented without any form of matrix operations or any averaging or differentiation. The algorithm convergence does not depend on the initial conditions and it will converge for any arbitrarily initial value, hence, it provides good performance in nonstationary images.

Disadvantages: The exact values of the expectations of the TDLMS adaptive filter will not converges to a fixed value, if we need to maintain its tracking ability. Therefore, the design choice of μ depends on the particular application and it involves a tradeoff between the convergence speed, tracking ability, and steady-state MSE.

2D Least Mean Square IIR Adaptive Filters

For a two-dimensional LMS IIR Adaptive filter, its basic idea is the same as 2D LMS FIR Adaptive Filters, except we are using an IIR filter, which can reduce the filter order requirements.[6] The two-dimensional IIR filter`s difference equation can be written as

y(n1,n2)=\sum

M1
m1=0
M2
\sum
m2=0

a(m1,m2)x(n1-m1,n2-m2)-{\sum

L1
m1=0
L2
\sum
m2=0
}_ b(m_1,m_2)y(n_1-m_1,n_2-m_2)

where

y(n1,n2)

and

x(n1,n2)

are, respectively, the output and input of the adaptive filter.

b(m1,m2)

and

a(m1,m2)

are the masks of the filter`s input and output. The error signal is given by

e(n1,n2)=d(n1,n2)-y(n1,n2)

where

d(n1,n2)

is the primary output signal.

The mean square error

2(n
E\{e
1,n

2)\}

is minimized by updating the filter weights in a manner to converge to the optimum filter weight.

Advantages: IIR filters can satisfy the prescribed frequency response because it can reduce the filter`s order requirements.

Disadvantages: The performance surfaces of adaptive LMS IIR Adaptive filters are nonquadratic and may have local minima. Meanwhile, adaptive IIR filters may become unstable during the adaptation, thus some kind of stability monitoring is needed.

Recursive least square adaptive filters

2D Recursive Least Square Adaptive Filters [7] can be developed by applying 1D recursive least squares filters along both horizontal and vertical directions. The RLS adaptive is an algorithm which finds the filter coefficients recursively to minimize the weighted least squares cost function. The RLS algorithm is different to the least mean squares algorithm which aim to reduce the mean square error, its input signal is considered deterministic. For this reason, the RLS algorithm has fast convergence characteristic.

Advantages: The RLS algorithm has fast convergence property. The accuracy of image denoising based on RLS algorithm is better than 2D LMS adaptive filters.

Disadvantages: The RLS algorithm needs a large amount of computations, especially in two-dimensional and multidimensional case.

Lexicographic Ordering

One convenient approach to implement 2D Adaptive Filters is to transform the 2D problem into a 1D problem by lexicographic ordering.[5] This simplifies the implementation and makes it possible to benefit from the extensive literature that is available for 1D adaptive filters and utilize all of the existing 1D algorithms.

McClellan Transformations

McClellan transformations [8] can be used to transform a 1D filter design into a 2D filter design by using a transformation function. This theory allows the design of 2D adaptive filters [9] out of existing 1D prototype filters. Compared to the direct approach, this system has the advantages of a lower computational complexity and a faster convergence rate. However, in order to work properly, it needs some a priori information about the system to correctly select the transformation function parameters, making the system pre-constrained.

Block Diagonal 2D Adaptive Filters

Block Diagonal 2D Adaptive Filters is an alternative approach [10] that scans the signal through blocks and applies weight adjustments for each block, instead of for each sample as in the traditional adaptive filters. The advantage of this kind of system is that it takes into account signal correlations along both dimensions. On the other hand, it assumes a higher local stationarity of the signal.

Notes and References

  1. Abadi, M. Shams Esfand, and S. Nikbakht. "Image denoising with two-dimensional adaptive filter algorithms." Iranian Journal of Electrical & Electronic Engineering 7.2 (2011).
  2. Trimeche, Mejdi. "Hierarchical Motion Estimation Using Recursive LMS Filters." (2007).
  3. Hou, Xiaolin, et al. "On two-dimensional adaptive channel estimation in OFDM systems." Vehicular Technology Conference, 2004. VTC2004-Fall. 2004 IEEE 60th. Vol. 1. IEEE, 2004.
  4. Kumar, P. Sarath, and Sumit Roy. "Two-dimensional equalization: Theory and applications to high density magnetic recording." Communications, IEEE Transactions on 42.234 (1994): 386-395.
  5. Mohiy M.Hadhoud and David W.Thomas. "Two-Dimensional Adaptive LMS (TDLMS) Algorithm." IEEE Transactions on Circuits And Systems, Vol 35, No.5, May 1988.
  6. Alfredo C. Tan and Sheng-Tsal Chen, "Two-Dimensional Adaptive LMS IIR Filter." Circuits and Systems, 1993., ISCAS '93, 1993 IEEE International Symposium on Date 3–6 May 1993.
  7. Mitsuji Muneyasu, Eiji Uemoto and Takao Hinamoto. "A Novel 2-D Adaptive Filter Based On The 1-D RLS Algorithm." Circuits and Systems, 1997. ISCAS '97., Proceedings of 1997 IEEE International Symposium on 9-12 June 1997
  8. McClellan, James H. "The design of two-dimensional digital filters by transformations." Proc. 7th Annu. Princeton Conf. Information Sciences and Systems. 1973.
  9. Jenkins, W. K., and R. P. Faust. "A constrained two-dimensional adaptive digital filter with reduced computational complexity." Circuits and Systems, 1988., IEEE International Symposium on. IEEE, 1988.
  10. Azimi-Sadjadi, Mahmood R., and Hongye Pan. "Two-dimensional block diagonal LMS adaptive filtering ." Signal Processing, IEEE Transactions on 42.9 (1994): 2420-2429.