Documente Academic
Documente Profesional
Documente Cultură
3, 2016
Vivek Singh
Department of Electronics and Communication Engineering,
Punjabi University,
Patiala, Punjab, India
Email: vivekspatiala@gmail.com
Karan Veer*
Department of Electrical and Instrumentation Engineering,
Thapar University,
Patiala, Punjab, India
Email: karan.una@gmail.com
*Corresponding author
Reecha Sharma
Department of Electronics and Communication Engineering,
Punjabi University,
Patiala, Punjab, India
Email: richa_gemini@yahoo.com
Sanjeev Kumar
Central Scientific Instruments Organization,
Chandigarh, India
Email: virdi205@gmail.com
Reference to this paper should be made as follows: Singh, V., Veer, K.,
Sharma, R. and Kumar, S. (2016) ‘Comparative study of FIR and IIR filters for
the removal of 50 Hz noise from EEG signal’, Int. J. Biomedical Engineering
and Technology, Vol. 22, No. 3, pp.250–257.
Karan Veer has done his PhD in Electrical and Instrumentation Engineering
from Thapar University, Patiala, India. He has more than 4 years of research
experience in the area of signal processing and soft computing. He has
published 22 peer-reviewed research papers in different international
journals of repute with good impact factors and has one research book on
‘prosthetic devices’ to his credit. His current research areas include biomedical
instrumentation, signal processing, prosthetic devices and soft computing.
1 Introduction
electrical potential produced by the muscle neurons. These are safe and painless methods
(Sanei and Jonathan, 2008). Both the methods provide different views and allow us to
visualise the brain and to monitor what occurs. The frequency of EEG signal lies between
0.5 Hz and 40 Hz and is contaminated during recording with different artefacts given
below:
1 power-line interference (50 Hz)
2 Electroencephalography (EMG) noise
3 electrode motion noise
4 pulse noise (electrocardiogram)
5 baseline wandering
The common noise present in the EEG signal is power-line frequency signal of 50 Hz
due to external equipments. Digital filters are more accurate and precise than analogue
filters (Chandrakar et al., 2013). In this paper, EEG signals have been taken from
different patients. EEG signals are recorded for a duration 4 seconds and each recorded
movement is called epoch and each epoch are sampled at a frequency of 256 Hz. We
have taken five epochs of each patient and applied the above filters on 20 epochs. Finite
Impulse Response (FIR) digital notch filter based on different windows and Infinite
Impulse Response (IIR) notch filter of 100th order are applied and the cut-off band to
find the proper notch band to be removed from the desired frequency varies. The Signal-
to-Noise Ratio (SNR) and fast Fourier transform from the filtered signal are calculated.
2 Objective of research
3 Design of filters
yn k 0 bk xn k
n 1
(1)
The IIR filter is recursive in nature and the output depends on both current and previous
inputs as well as previous outputs (Rani et al., 2011):
y n k 0 bk x n k k 1 ak y n k
M N
(2)
The denoising process of the EEG signal is shown in Figure 1. In first step, raw EEG
signal was taken from the patient having 256 sampling rate with time duration of
4 seconds. In the next step, DC shift is removed from the EEG signal by taking the mean
of the EEG signal and setting it at the ground level. IIR notch filter and FIR notch filter
are applied on the EEG signal and the filtered EEG signal is received. Later, the fast
Fourier transform and SNR values of the filtered EEG signal are obtained.
The raw EEG signal contained various artefacts. Baseline wandering artefact shifted the
signal to some value of the DC level. Recorded EEG signal was shifted to the negative
DC level, which is shown in blue signal in Figure 2. Baseline wandering was removed
from the EEG signal by eliminating the DC component from the signal shown in red in
the figure.
Both digital filters were applied on the red EEG signal. It gave the denoised signals,
which were used to calculate the SNR values to quantify the most effective filter for the
denoise signals. 20 epoch signals were filtered through both filters. The calculated SNR
values of all epochs are shown in Table 1. The FIR filter gave higher SNR values for
each epoch and it gave a good elimination of the 50 Hz noise.
Comparative study of FIR and IIR filters for the removal of 50 Hz noise 255
The average value of the SNR of the IIR notch filter is 33.84 and that of the FIR notch
filter is 36.76, as shown in Figure 3. The higher bar in the figure shows the SNR value of
256 V. Singh et al.
the FIR filtered signal and the lower bar shows the SNR value of the IIR filtered signal.
The FIR filter is better than the IIR filter at eliminating the 50 Hz noise from the EEG
signal. The average SNR value of the FIR filter is larger for all the tested epochs.
Figure 3 Average SNR values of IIR and FIR filters (see online version for colours)
FFT gives the average frequency components of a signal which are calculated over the
entire time of the signal. Figure 4 shows the FFT of the filtered signal from the IIR and
FIR notch filters. Comparison of the FFT plot of the filtered signal with the raw signal is
shown in red, green and blue lines. The FIR filtered signal is completely down at the
50 Hz noise (green line), but in the case of the IIR filtered signal, some 50 Hz noise
component is present (red line). FFT shows that the FIR notch filter removes the 50 Hz
noise completely.
6 Conclusion
These methods were successful at removing the 50 Hz power-line frequency from the
EEG signal. The filters were applied to signals having sampling rate of 256 Hz with time
duration of 4 seconds (i.e. 1024 samples). The comparison was done on the basis of FFT
plot as well as SNR. The FIR notch filter preserved the desired frequency and completely
removed the 50 Hz noise from the raw EEG signal as compared with the IIR filter which
removed less 50 Hz noise. The FIR filter has the highest compatibility with the tested
EEG signals and gave a larger SNR value as compared to the IIR filter. During the study,
some limitation of the digital filters was found. Sometimes, the filters remove the main
frequency signal from the original signal. This reduces the quality of the signal. Wavelet
technique and ICA technique can be used to improve the quality of the signal.
References
Al-kadi, M.I., Reaz, M.B.I. and Ali, M. (2012) ‘Compatibility of mother wavelet functions
with the electroencephalographic signal’, Proceedings of the IEEE Biomedical Engineering
and Sciences Conference, 17–19 December, Langkawi, Malaysia, pp.113–117.
Cetin, A.E., Gerek, O.N. and Yardimci, Y. (1997) ‘Equiripple FIR filter design by the FFT
algorithm’, IEEE Magazine on Signal Processing, Vol. 14, No. 2, pp.60–64.
Chandrakar, S.B., Yadav, O.P. and Chandra, V.K. (2013) ‘A survey of noise removal techniques
for EEG signals’, International Journal of Advanced Research in Computer and
Communication Engineering, Vol. 2, No. 2, pp.1354–1356.
Niedermeyer, E. and da Silva, F.H.L. (2005) Electroencephalography: Basic Principles, Clinical
Applications, and Related Fields, Lippincott Williams & Wilkins, Philadelphia, PA.
Rani, S., Kaur, A. and Ubhi, J.S. (2011) ‘Comparative study of FIR and IIR filters for the removal
of baseline noises from ECG signal’, International Journal of Computer Science and
Information Technologies, Vol. 2, pp.1105–1110.
Sadasivan, P.K. and Narayana, D. (1995) ‘Line interference cancellation from corrupted EEG
signals using modified linear phase FIR digital filters’, Proceedings 1st RC IEEE Engineering
in Medicine and Biology Society and 14th Conference of the Biomedical Engineering Society
of India: An International Meeting, 15–18 February, New Delhi, pp.35–36.
Sanei, S. and Jonathon, A (2008) EEG Signal Processing, John Wiley & Sons, New York.
Sharma, T. and Veer, K. (2014) ‘Wavelet based feature extraction of electromyogram signal for
denoising’, International Journal of Advanced Research in Computer Engineering &
Technology, Vol. 3, pp.2623–2627.
Veer, K. (2015) ‘A technique for classification and decomposition of muscle signal for control
of myoelectric prostheses based on wavelet statistical classifier’, Measurement, Vol. 60,
pp.283–291.
Veer, K. and Agarwal, R. (2015) ‘Wavelet and short-time Fourier transform comparison-based
analysis of myoelectric signals’, Journal of Applied Statistics, Vol. 42, No. 7, pp.1591–1601.