I'm trying to filter some motion noise from an ECG signal. To do that I'll try to implement an adaptive filter using the LMS algorithm.
I think I have to calculate the MSE of this:
E[e^2 ] = E[(s + n )^2 ]+ 2E[(s + n)X ]W^T + WE[X^T X ]W^T
in which s+n
is the noised ECG
,
X (n) = [ 1, Accx (n), Accy (n), Accz (n)]
are the values from the accelerometer,
W = [w0, w1, w2, w3]
the coefficients.
Wt +1 = Wt + 2αeX
,
I'm trying to understand how to calculate alfa
and minimise the MSE.
http://www.mathworks.com/help/dsp/ref/adaptfilt.lms.html
can anyone give me a simpler example? I'm kind of lost here.
s
(your "noiseless" or "desired" ECG signal) and the accelerometer readings (X
). Can you point to a model for the relationship? $\endgroup$ – Peter K.♦ Jul 1 '13 at 19:19