Removal of Noise From Electrocardiogram Using Digital FIR and IIR Filters With Various Methods
Removal of Noise From Electrocardiogram Using Digital FIR and IIR Filters With Various Methods
Abstract-Electrocardiogram (ECG) is a type of measuring An ECG is very sensItIve, different types of artifact and
the electrical activities of heart. Each section of ECG is necessary interference can contaminate the ECG signal as the real
for the diagnosis of various cardiac problems. But the amplitude
amplitude and time period of the signal can be changed. ECG
and time period of ECG signal is generally corrupted by various
noises. Mter an analog ECG signal is transformed into digital
signals are mostly affected by:
format, appropriate digital filter can be utilized to repress the
1) Baseline Wander: It is actually the effect where the base
various kinds of noise like Baseline Wander, Power line
Interference, High -frequency Noise, Physiological Artifacts etc.,
axis of any ECG signal viewed on a screen appears to
depends on their specifications. In generic two types of method "wander" or move up and down rather than be straight. This
can be classified in this paper; FIR filters like Rectangular, cause the entire signal to shift from its normal base. It is
Hann, Blackman, Hamming and Kaiser window techniques and usually caused due to improper electrodes and by respiration
IIR filters like Butterworth, Chebyshev I, Chebyshev II and
or movement of the patient.
Elliptic filters are also prospected to reduce artifacts in ECG
signal. The results are collected from different orders for FIR 2) Physiological Artifacts: This kind of noises is primarily
filter as 56, 300, 450, and 600 and for IIR filter as 1, 2, and 3. The
produced by other organs of the body or caused by muscular
signals taken from the MIT-BIH data base which contains the
normal and abnormal waveforms. The work has been
retractions relevant to breathing. Electrode movement artifact
implemented in MATLAB FDA Tool. The results are obtained is commonly considered to be the most difficult, since it may
using different window based FIR filters, IIR filter with different imitate the figure of abnormal beats and cannot be eliminated
approximation methods and their respective waveforms are simply by normal filters, as can an artifact of other kinds.
shown. In addition, power spectrum density, signal to noise ratio
(SNR) and means square error (MSE) of both noisy and filtered 3) High -frequency Noise: This kind of random artifact
ECG signals are calculated. We observed that Digital FIR filter could be due to the thermal cause in electrodes, the recording
with Kaiser Window in order 56 shows high performance as
system, , the instrumentation amplifiers and pickup of ambient
compared to the other windowing techniques and Digital IIR
filter approximation methods.
electromagnetic signals by cables[ I].In the real-time clinical
monitoring systems in surgery, electrosurgical nOIse IS a
Index Terms-FIR filters, IIR filter, Electrocardiogram, SNR, considerable barrier to be overcome.
MSE,MATLAB
4) Power line Interference: Interference caused by radiation
LINTRODUCTION from the high voltage power for Examples of environmental
interference are those effected by 50 or 60 Hz power-supply
Signal processing has a wealthy background and its
lines, , radiation from lights, electrodes motion and radio
significance in biomedical engineering is known to all. An
frequency emissions from nearby medical devices.
electrocardiogram demonstrates the electrical activity in the
heart, and may be analyzed in characteristic parts, named P, Q, These artifacts and interference makes the wrong diagnosis
R, S, and T waves. When an ECG is recorded, it would be of the ECG signal [1-2].So, the elimination of these artifacts
corrupted with various kinds of noise. Therefore exploitation and interference from ECG signal has become very difficult.
of pure ECG indices from noisy measurements has been one Different kinds of digital filters have been used to rectify the
of the important considerations of biomedical signal problem [2-4].But it is hard to utilize these filters with fixed
processing and requires trusty techniques to maintain the coefficients to remove several kinds of artifacts, because the
diagnostic data of the recorded signal. ECG signal is known as a non-stationary signals.
0157
This full-text paper was peer-reviewed and accepted to be presented at the IEEE ICCSP 2015 conference.
windows [7]. They proposed second order infinite impulse the frequency response of the IIR being convolved with the
response (IIR) notch filter, adaptive notch filtering technique Fourier transform of the window function. If the window's
with least mean square algorithm and discrete wavelet main lobe is narrow, the composite frequency response
transform method for the removal of power line interference remains close to that of the ideal IIR filter.
from ECG signal and considered two synthesis parameters
MSE and SNR [8]. Mohandas Choudhary, Ravindra Pratap III. METHODOLOGY
Narwaria "Suppression of Noise in ECG Signal Using Low ECG signal fundamentally contains frequency between 0-
pass IIR Filters" describes an IIR filter design for noise 250Hz. Research proves that the frequency range of the ECG
removing [9] it gives various types of IIR filter design but the signal is 0-250 Hz, The sampling frequency was selected to
result of Butterworth is best among all. Mbachu et al. designed facilitate performances of 60 Hz digital notch filter in
digital FIR low pass, high pass and notch filters with a arrhythmia detectors, sampling frequency of data signal is 360
rectangular window for the removal of the artifacts [10]. In Hz and amplitude Imv. We designed the filter for corrupted
this work, the artifact from the electrocardiogram waveform ECG signal in four steps: In the first, step with the help of
has been eliminated utilizing these various methods. Signal to FDA Tool in MATLAB software design digital FIR filters
noise ratio (SNR), Means square error (MSE) and power with various windowing techniques like: Rectangular, Hann,
spectral density resulting from the algorithms has been Hamming, Blackman and Kaiser with high pass filter cut off
investigated and compared. frequency 0.5 Hz were utilized to delete baseline wander
noise from noisy ECG signal. In the second step, removing
The rest of this article organized as follows: Section II
theoretical description of digital filters. Section III summarizes power line interference (50/60 Hz) by band stop with cut off
the techniques investigated. Section IV provides the results frequency (59.5Hz-60.5 Hz) was carried out , in the third step,
and output waveforms. Finally, some conclusions are we deleted EMG noise by applying low pass filter with cut off
frequency 100Hz, in order 56,300,450 and 600, finally moving
demonstrated in Section V.
average filter to smooth the ECG waveform. The task was
II.THEORY accomplished in various orders.
0158
This full-text paper was peer-reviewed and accepted to be presented at the IEEE ICCSP 2015 conference.
203 12.84 13.71 13.08 13.13 13.01 13.76 203 12.84 12.31 12.61 3.10 12.61
205 9.02 9.94 9.50 9.54 9.41 9.95 205 9.02 9.02 9.01 5.47 9.01
TABLE II TABLE IV
MSE COMP ARSION OF WINDOW BASED FIR FILTERS MSE COMPARSION OF IIR APPROXIMATION METHOD
203 0.29 0.24 0.25 0.25 0.02 0.23 203 0.29 0.03 0.03 3.87 0.21
205 0.15 0.11 0.13 0.13 0.13 0.10 205 0.15 0.19 0.21 6.80 0.03
Fig. 2. Noisy ECG (113m) and removed BLW using Kaiser Window
0159
This full-text paper was peer-reviewed and accepted to be presented at the IEEE ICCSP 2015 conference.
: ;�UIDI�I II� 1
ECG Si n l with EMG Noise
ga
ECG Signal without Powerline I nterference
3000 r---�----�--r---�---.
g 2000
o 10 20 30 40 50 60 70 80 90 c..
Time I s Ji 1000
:;� j o 10 20 30 40
Time I s
50 60 70 80 90 3ooo r----,-----.--.---�
ECG Si gan
Frequency I Hz
l wth reduced EMG Noise
� 2000
:;� l
"
c.
Ji 1000
o 10 20 30 40 50 60 70 80 90
Time I s
....&..
30�0--- --
1�
5 0---- 1 �--�
-�00 -50--�1I ..�5� 1� �--�
0 ----00 1 5�
0 ---)
200
Frequency I Hz
Fig. 3. Remove PLI (60 Hz) and EMG using Kaiser Window
Fig. 6. Frequency spectrum of with and without EMG using Kaiser Window
I , , I , , •
Q)
'" 4000 o - - - - . L. ______ ... . ______ .. _______ � _______ .. _______.. ______ -'. ______ .. ______
�
I , I I , I I ,
I , I I , I I •
, . , , . , , .
0.
� 2000
N
-
20 - - - - - - - � - - - - - - - r - -------
, .
: -------:- - - - - - - i - -----
, , .
:r:
rn
0 � I , , • ,
,
I I
..
I
,
I
- - - - - - - � - - - - - - - � - ------ ------ .,- - - - - - - � - -----
u , ,
co , ,
Frequency I Hz Q)
�
E CG Signal with reduced Baseline Wander <T
i" �O
3000
�
�
CL
Q)
2000 �o
'"
�
li
� 1000 -
100
..oJ iii..
0 -
120
-200 -150 -100 -50 0 50 100 150 200 0 20 40 60 80 100 120 140 160 180
Frequency J Hz Frequency (Hz)
Fig. 4. Frequency spectrum of with and without BL W using Kaiser Window Fig. 7. Power spectrum density of noisy ECG signal using Kaiser Window
ECG Signal with Powerline Interference Periodogram Power Spectral Density Estimate
3000 20
., 2000 0 -'
______I.... _____ _______ .>_______ L _______ L _______I...______ . _____ • .>. _____ -'
I I I I I I I I
I I I I I I I I
I I I I I I I I
� I I I I I I I I
c. I I I I I I I
I I I I I I I
E I I I I I I I I
<! 1000 _____ .J _______ J _______ L _______ L _______ ______ .J _______ J ______
I I I I I I I
'-
N I I I I I I I
I I I I I I I
...&.. �� I
"
I
,
,
I I
,
,
,
0 '--" -- r ' --" -- r ' --" --" i r ]--" - ---" - '--" -
3000 'S ,
,
,
,
,
,
.
.
.
, , .
�
CL
,
,
,
,
,
,
,
,
,
�o -----r------,-------,------
� 2000
.�
Ci
100
- .. _______ � _______ .. ------
Ji
- - - - - -I- ______ -0 _______ ------1--------4-------
, , .
1000 I
I
I
I
I
I
I
I
I
I
I
I
,
,
,
,
.
,
I I I I , , ,
I I I I , , ,
, , ,
...&...
I I I I
-120 "----'----"---'---"---'
0 o 20 40 60 80 100 120 140 160 180
-
200 -
150 -100 -50 0 50 100 150 200 Freq u ency (Hz)
Frequency I Hz
Fig. 5. Frequency spectrum of with and without PLI using Kaiser Window Fig. 8. Power spectrum density of denoised ECG signal using Kaiser Window
0160
This full-text paper was peer-reviewed and accepted to be presented at the IEEE ICCSP 2015 conference.
'"
�
0.
with different windows like Rectangular, Hann, Hamming, E
<{ 2000
Blackman and Kaiser Window with different order
56,300,450,600 and IIR filters approximation methods like 0
.,111.
-200 -150 -100 -50 0 50 100 150 200
Butterworth, Chebyshev I, Chebyshev II and Elliptic at orders Frequency I Hz
EGG Signal wlh reduced Baseline Wander
1, 2, 3 with proper parameters indicating the best outcomes of 3000
baseline wander noise, power line interference and
electromyography noise removal. The results for various '" 2000
=
�
0.
E
<{ 1000
-2
0 10 20 30 40 50 60 70 80 00
lime/s .... �.
0
ECG Signal without Basel ine Wander -200 -150 -100 -50 50 100 150 200
3 Frequency I Hz
EGG Signal with reduced Powerline Interference
> 2
3000
E
'" '"
-0
2000
� �
0.
> 0
0
E
<{ 1000
-1
0 10 20 30 40 50 60 70 80 00 •• �.
0
lime/s -200 -150 -100 -50 50 100 150 200
Frequercy I Hz
Fig. 9. Noisy ECG (l13m) and removed BLW using Butterworth Fig. 12. Frequency spectrum of with and without PLI using
approximation method Butterworth approximation method
I�� . o 10 20 30 40
Time / s
50 60 70 80 90
i:� �
>
.
0 10 20 30 40
Time / s
50 60 70 80 90
��� .
-> 0 10 20 30 40
Time / s
50 60 70 80 90
Fig. 10. Remove PLI (60 Hz) and EMG using Butterworth Fig. 13. Frequency spectrum of with and without EMG using
approximation method Butterworth approximation method
0161
This full-text paper was peer-reviewed and accepted to be presented at the IEEE ICCSP 2015 conference.
REFERENCES
0162