Professional Documents
Culture Documents
Year : 2020-21
Comparative study of FIR and IIR filters for the
removal of Baseline noises from ECG signal
1- Sinoatrial node
A finite impulse response (FIR) filter is a filter structure that can be used to implement almost any sort of
frequency response digitally. An FIR filter is usually implemented by using a series of delays, multipliers,
and adders to create the filter's output.
Why PSD? Why not ESD?
•Power Spectral Density (PSD) is the frequency response of a random or periodic signal. It tells us where
the average power is distributed as a function of frequency. The PSD is the Fourier transform of the
autocorrelation function.
•Energy density spectrum (ESD) is also called energy spectrum. The square of the amplitude of the
(complex) Fourier transform of an aperiodic function.
ys = ylim;
y=val(1,:);
subplot(2,1,2)
t = (0:length(y)-1)/360; plot(t,outhi)
title('Highpass Filtered Signal')
xlabel('Time (s)')
bhi = fir1(320,0.5/180,'high',kaiser(321,0.5),'scale'); ylim(ys)
outhi = filter(bhi,1,y);
MATLAB Output (FIR)
Conclusion
•This problem can be solved by applying the IIR filter to the ECG signal in both directions.
•FIR and IIR filters both have removed the baseline noises at the expense of some ringing effect at the
starting of waveform.
•But their comparison shows that due large order of FIR filter there is a phase delay in FIR filtered
waveforms.
•The computational complexity of FIR filter is far greater than IIR filters. It increases the memory
requirement and power dissipation of FIR filter. So, IIR filters can be the better choice for removal of
Baseline noises.
References
1. https://www.alivecor.com/education/ecg.html#:~:text=Also%20known%20as%20an%20electroc
ardiogram,it%20travels%20through%20your%20heart
2. https://www.alivecor.com/education/ecg.html#:~:text=Also%20known%20as%20an%20electroc
ardiogram,it%20travels%20through%20your%20heart
3. https://www.researchgate.net/figure/An-example-of-baseline-wandering-removal-showing-a-
raw-signal-from-Lead-I-b-filtered_fig4_225040955
4. https://www.mikroe.com/ebooks/digital-filter-design/introduction-iir-filter
5. https://www.mikroe.com/ebooks/digital-filter-design/introduction-iir-filter
Thank You!