Beruflich Dokumente
Kultur Dokumente
Lecture 8
Block & Frequency-Domain FrequencyAdaptive Filtering
N. Tangsangiumvisai
N. Tangsangiumvisai
Why Frequency-Domain ? FrequencyTime-domain Adaptive Filtering : Long FIR adaptive filter length high computational complexity
x(n)
Serial-toparallel converter
Parallel-toserial converter
y(n)
Serial-toparallel converter
e(n)
d(n)
adaptive filter length : M RLS sectioning the input signal into L-point blocks L point
Adaptive Signal Processing : Lecture 8 4
N. Tangsangiumvisai
h (k ) x(kL + i l ),
l
i = 0,1, , M 1
... (5)
and is kept fixed over each block of data. p Thus, the sample time, n, can be written as , p , ,
n = kL + i, i = 0,1, , M 1, k = 0,1,
... (3)
... (4)
5 N. Tangsangiumvisai Adaptive Signal Processing : Lecture 8 6
Example
For the kth block, Eq.(9) become
(when filter length M 3 bl k size L 3) ( h filt l th M=3, block i L=3);
where
0< <
max
and max is the largest eigenvalue of the autocorrelation matrix of the input signal vector vector. (When the eigenvalue spread is large has to be small large, to ensure stability of the system.)
N. Tangsangiumvisai
N. Tangsangiumvisai
j (k ) =
M 1 i =0
x(kL + i j )
e(kL + i ), j = 0,1, , M 1
... (10)
BLMS : S
(k ) =
... (12)
Their time constant and misadjustment are identical. BLMS introduces signal path delay in the adaptation loop, loop depending on the block length L length, L.
B = L
... (13)
From eq.(8), the update equation becomes 1 h(k + 1) = h(k ) B (k ) 2 BLMS h ti ht b has tighter bound on th step-size. d the t i e.g. (L=10) LMS = 0.01 BLMS
= 0.1
LMS = 0.5
N. Tangsangiumvisai
BLMS = 5
which i i hi h is impossible ! ibl
11
N. Tangsangiumvisai
12
Block size
In general, the block size and the adaptive filter length can b chosen diff be h differently, i tl i.e. L M . The recommended choice of the block size is
L=M
Contents
Block Adaptive Filters Fast LMS Algorithm (F LMS) (F-LMS) Numerical Example Summary S
L > M : redundant data in the operations of adaptive filters L < M : insignificant data for the estimation of the gradient vector vector.
N. Tangsangiumvisai
13
N. Tangsangiumvisai
14
Fast LMS (F-LMS) Algorithm (Fx(n) Concatenate 2 blocks Old New x x FFT
F-LMS (II)
X(k) X Y(k) y(k) IFFT Save last block y Discard y(n) H(k) Delay H(k+1)
It was developed by Clark and Ferrara in 1980 1980. Instead f I t d of performing the usual time-domain f i th l ti d i adaptation, F-LMS employs the FFT method to obtain computational efficiency efficiency. The block length is now chosen to be L = M . Linear convolution Fast convolution (by employing the overlap-save method)
I Gradient constraint 0
Conjugate
X X (k)
H
FFT E(k)
F-LMS (III)
The input signal matrix is given by
X(k ) = FFT[diag(x(kM - M), , x(kM - 1), x(kM),, x(kM + M - 1) )]
(N x N) N = 2M
F-LMS (IV)
From the relationship
The dont care data
(k 1)th block
k th block
... (14)
* y (k ) = IFFT[Y (k )] (k
... (17)
The output signal vector for the block time k is obtained as Y ( k ) = X( k ) H ( k ) ... (15) which results in
y (k ) =
... (16)
e( k ) =
= d(k ) y (k )
17 N. Tangsangiumvisai
N. Tangsangiumvisai
F-LMS (V)
and the desired signal vector is
d(k ) =
... (20)
FLMS represents a precise frequency-domain implementation of BLMS BLMS. Large eigenvalue spread of the autocorrelation input matrix, slow convergence rate due to the upperbound of the step-size for stability guarantee. Each tap-weight of the adaptive filter is therefore suggested to be adapted independently from one another. Individual step-size is employed to each tapweight of the adaptive filter.
N. Tangsangiumvisai Adaptive Signal Processing : Lecture 8 20
The gradient vector is obtained from the first M elements of the fast correlation :
( k ) H = IFFT X (k ) E (k ) *
... (21)
The N-point FFT of the zero-padded gradient vector is used in the update equation as ( k ) H (k + 1) = H (k ) + FFT ... (22) 0
step-size
N. Tangsangiumvisai Adaptive Signal Processing : Lecture 8 19
stationary input
F 1
non- stationary input p
The constant 0 < F < 1 is a forgetting factor. D(k ) The step-size is now given by
F (k ) = di P01 (k ) P 1 (k ) , PN 11 (k ) diag ), 1 ),
'
This modified version will be referred to as F-NLMS in this course. Its update equation is given by
' ( k ) H (k + 1) = H (k ) + ' FFT 0
... (26)
( (
))
... (24)
Contents
Block Adaptive Filters Fast LMS Algorithm (F LMS) (F-LMS) Numerical Example Summary S
AEC Example
An example of audio conferencing in a mobile situation [http://iec.org]
N. Tangsangiumvisai
23
N. Tangsangiumvisai
24
N. Tangsangiumvisai
25
N. Tangsangiumvisai
26
e(n)
Fig.3 Generic from of an adaptive filter x(n) : input signal d(n) : desired signal e(n) : error signal
27 N. Tangsangiumvisai Adaptive Signal Processing : Lecture 8 28
N. Tangsangiumvisai
input x(n)
plant
+
adaptive filter
w (n + 1) = w (n) + v
a small positive constant
x( n)
+ x( n) 2
2
e* ( n )
... (29)
N. Tangsangiumvisai
29
N. Tangsangiumvisai
30
i.e. the larger the room size is, the longer the echo path delay is.
N. Tangsangiumvisai
31
N. Tangsangiumvisai
32
e.g. when the sampling frequency is 8 kHz. [N Jain Fundamentals of integration and evaluation of speech algorithms on an embedded system] N. Jain,
N. Tangsangiumvisai Adaptive Signal Processing : Lecture 8 33 N. Tangsangiumvisai Adaptive Signal Processing : Lecture 8 34
Numerical Example
Consider the AEC system. Input sequences are white noise and speech signal. The acoustic echo path is modeled with length 256 taps. Weight Error Vector Norm are shown.
WEVN(n) = 10 log 10
N. Tangsangiumvisai
h ( n) h ( n) h ( n) (n
2 2
2 2
... (30)
Fig.5 Fig 5 The Near-End Room Impulse Response Near End
35
N. Tangsangiumvisai
36
Fig.6 The WEVN performance of NLMS V.S. F-NLMS, when the input signal is a white noise (L=256).
N. Tangsangiumvisai Adaptive Signal Processing : Lecture 8 37 N. Tangsangiumvisai
Fig.7 The WEVN performance of NLMS V.S. F-NLMS, with a speech input signal (L=256).
Adaptive Signal Processing : Lecture 8 38
Computational Complexity
NLMS : . RMPs per input sample
FNLMS :
256 512
where M is the adaptive filter length p and includes the division operations.
1024
N. Tangsangiumvisai
39
N. Tangsangiumvisai
40
Summary
- For long adaptive filter length, FNLMS gives complexity reduction, as compared to the time domain method. time-domain method - FLMS gives the same convergence speed as LMS. (convergence speed i i d d is independent to bl k size.) d block i ) - FLMS has tighter bound for stability as compared to LMS. g y p - FLMS provides a more accurate estimate gradient (estimation accuracy depends on the block size) as compared to LMS LMS. Next week : Lecture 9 : Multi-rate systems and Filter Banks
N. Tangsangiumvisai
41