0% found this document useful (0 votes)
461 views10 pages

MATLAB Simulation Analysis For Removing Artifacts From EEG Signals Using Adaptive Algorithms

description not necessary

Uploaded by

janani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
461 views10 pages

MATLAB Simulation Analysis For Removing Artifacts From EEG Signals Using Adaptive Algorithms

description not necessary

Uploaded by

janani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/318131272

MATLAB Simulation Analysis for Removing Artifacts from EEG Signals Using
Adaptive Algorithms

Conference Paper · December 2018


DOI: 10.1007/978-3-319-53556-2_39

CITATIONS READS

0 543

4 authors, including:

Pallavi Jadhav
SVERI´s College of Engineering
5 PUBLICATIONS   39 CITATIONS   

SEE PROFILE

All content following this page was uploaded by Pallavi Jadhav on 26 September 2018.

The user has requested enhancement of the downloaded file.


MATLAB Simulation Analysis
for Removing Artifacts from EEG
Signals Using Adaptive Algorithms

Pallavi Jadhav, Dipalie Pujari, Papiya Biswas and Mohua Biswas

 
Keywords EEG Ocular artifacts (EOG) Least mean squared Normalized least 
   
mean squared MSE SNR Convergence Stability EEG signal Depth of 

anasthesia DoA

1 Introduction

EEG signal is the record of cerebrum activity. Thus, EEG is a non-stationary signal.
These signals are affected by noise called as artifacts. Simple filters and
Non-adaptive filtering technique is not able to remove noise such as EMG, ECG
and EOG. The increasing value of EMG in EEG signal could raise the BIS index
which results in inaccurate amount of DoA. For removing the artifacts from EEG
signal adaptive filters are required [1–3] (Fig. 1).

2 Database

500 PSG records belonging to sixteen subjects were selected from the MIT-BIH
Polysomnographic Database. All subjects are aged 44 ± 12 years. This database
contains over 80 h of four-, six-, and seven-channel PSG recordings. All of them
contain EEG, ECG and Blood Pressure (BP) signals, some of them have Nasal or
Plethysmograph Respiratory signals, five of them have O2 Saturation signal, EOG
and EMG signals. All the subjects have ECG signals annotated beat-by-beat, and
EEG and respiration signals annotated by an expert with respect to sleep stages and
apnea. In this work were used only the EEG, ECG and EOG signals, all of them
were sampled at 250 Hz [4].

P. Jadhav (&)  D. Pujari  P. Biswas  M. Biswas


Sveri’s College of Engineering, Solapur University, Pandharpur, India
e-mail: pmjadhav@coe.sveri.ac.in

© Springer International Publishing AG 2018 399


P.M. Pawar et al. (eds.), Techno-Societal 2016,
DOI 10.1007/978-3-319-53556-2_39
400 P. Jadhav et al.

Fig. 1 EEG signal

3 Adaptive Filter Algorithms

3.1 Least Mean Square Algorithm

The algorithm was developed by Widrow and Hoff in 1966 and was the first linear
adaptive-filtering algorithm for solving problems such as prediction and commu-
nication [5].
The filter tap weights of the adaptive filter are updated according to the fol-
lowing formula:

wðn þ 1Þ ¼ wðnÞ þ 2leðnÞ xðnÞ;

where x(n) is the input vector of time delayed input values.

3.2 Normalized Least Mean Square Algorithm

One of the primary disadvantages of the LMS algorithm is that it has a fixed step
size parameter for each iteration and this is overcome by NLMS algorithm. When
the convergence factor l is large, the algorithm experiences a gradient noise
amplification problem. In order to solve this difficulty we can use the NLMS
algorithm. The correction applied to the weight vector w(n) at iteration n + 1 is
“normalized” with respect to the squared Euclidian norm of the input vector x(n) at
iteration n [6].

4 Artifacts

By artifacts, it is understood that all signals which appear in the EEG record which
don’t come from the brain. The common artifacts occurred in EEG signal are EOG,
EMG and ECG.
MATLAB Simulation Analysis for Removing Artifacts … 401

4.1 Electro-oculogram (EOG)

The major noise source of EEG signal is EOG. It is because of the movement of the
eye ball causes an electric field around the eye and affected the electric field of the
scalp. EOG is considered as a signal with high amplitude and low frequency.
Amplitudes of EOG are in the range of 0.05 and 3 mV. EOG occurs in 0–16 Hz of
EEG signal.

4.2 Electromyogram (EMG)

An electromyography detects the electrical potential which is generated by the


muscle cells. These are the constant peak signals which affect the entire amplitude
of EEG signal. EMG has less effect on frequency of EEG signal. EMG makes EEG
signal spiky which results in wrong EEG analysis. Amplitude range of EMG is
from 0 to 10 mV (peak-to-peak) or 0–1.5 mV (rms). Frequency range is
12–300 Hz. Most of the spectrum lies between 30 and 150 Hz.

4.3 Electrocardiogram (ECG)

The electrical artifact actually is the ECG, as recorded from head electrodes. The P
wave and T wave are usually not visible, because of the distance from the heart and
the sub-optimal axis. Essentially, the artifact is a poorly formed QRS complex. It is
the most prominent, when the neck is short. Amplitude level is from
1.15 ± 0.69 mV. Frequency range is 0.3–30 Hz.

5 Simulation Diagram

For simulation we require the recorded EEG signal and then it will be given as an
input as shown in Simulink model for LMS filter. Recorded EEG Noise samples
also taken and then it will be added with original signal. The recorded noise taken
might be EOG, EMG and ECG. Added signal is subtracted from the output of the
adaptive filter and then given to the display. By changing the filter parameters we
can use LMS as NLMS filter. Filter order is 32 for LMS filter and 40 for NLMS
filter. The step size for LMS and NLMS filteris 0.027 and 0.8 resp. MATLAB
function blocks are created by user for statistical parameters such as MSE, SNR and
convergence rate. Sampling of the EEG signal and noise signal is already done.
‘sig’ signal is the pure EEG signal and ‘nio’ signal is noise signal which is any i. e
EOG, EMG and ECG. Around 1000 samples are taken for the simulation (Fig. 2).
402 P. Jadhav et al.

Fig. 2 Simulink model for LMS filter algorithm

6 Results

The Simulation is done to remove the noise of an EEG signal which is corrupted by
various types of interferences and distortions. Figure 4 shows de-noise EEG signal
by LMS filter algorithm.

6.1 Simulation Result for EOG Artifact Removing


Using LMS Filter

See Fig. 3.

Fig. 3 a Pure EEG signal. b EEG + EOG. c Error signal. d De-noised EEG signal
MATLAB Simulation Analysis for Removing Artifacts … 403

6.2 Simulation Result for EOG Artifact Removing


Using NLMS Filter

See Fig. 4.

Fig. 4 a Pure EEG signal. b EEG + EOG. c Error signal. d De-noised EEG signal

6.3 Simulation Result for EMG Artifact Removing


Using LMS Filter

See Fig. 5.

Fig. 5 a Pure EEG signal. b EEG + EMG. c Error signal. d De-noised EEG signal
404 P. Jadhav et al.

6.4 Simulation Result for EMG Artifact Removing


Using NLMS Filter

See Fig. 6.

Fig. 6 a Pure EEG signal. b EEG + EMG. c Error signal. d De-noised EEG signal

6.5 Simulation Result for ECG Artifact Removing


Using LMS Filter

See Fig. 7.

Fig. 7 a Pure EEG signal. b EEG + ECG. c Error signal. d De-noised EEG signal
MATLAB Simulation Analysis for Removing Artifacts … 405

6.6 Simulation Result for ECG Artifact Removing


Using NLMS Filter

See Fig. 8, Tables 1, 2 and 3.

Fig. 8 a Pure EEG signal. b EEG + ECG. c Error signal. d De-noised EEG signal

Table 1 Comparison of LMS and NLMS algorithm for EOG removal based on statistical
parameters
Sr. No. Algorithm SNR MSE Convergence speed
1. LMS −6772 0.00774 0.85
2. NLMS −6755 0.00772 0.95

Table 2 Comparison of LMS and NLMS algorithm for EMG removal based on statistical
parameters
Sr. No. Algorithm SNR MSE Convergence speed
1. LMS −3.6e+7 0.00116 0.885
2. NLMS −1.6e+7 0.00109 0.985

Table 3 Comparison of LMS and NLMS algorithm for ECG removal based on statistical
parameters
Sr. no. Algorithm SNR MSE Convergence speed
1 LMS −925.55 0.3399 0.985
2 NLMS −949.54 0.3300 0.985
406 P. Jadhav et al.

Selection of Order and Step Size for LMS and NLMS Filter
(a) For step size = 0.5

Order of filter MSE for LMS MSE for NLMS


5 0.00812 0.007754
10 0.00804 0.007753
20 0.00786 0.007746
32 0.00777 0.007729
40 0.007754 0.007730

(b) For step size = 0.3


Order of filter MSE for LMS MSE for NLMS
5 0.008092 0.007787
10 0.008065 0.007786
20 0.007912 0.007769
32 0.007792 0.007741
40 0.07762 0.007738

7 Conclusion

For EOG artifact SNR and MSE values are better for NLMS as compared to LMS.
The NLMS filter of order 40 and step size of 0.5 is selected for minimum value of
MSE. For more convergence speed NLMS filter with order 40 and step size 0.9 is
selected. For EMG artifact SNR and MSE values are better for NLMS as compared
to LMS. The NLMS filter of order 40 and step size of 0.9 is selected for minimum
value of MSE. For more convergence speed NLMS filter with order 40 and step size
0.15 is selected. NLMS gives better SNR and minimum value of MSE.
Convergence speed of NLMS is more as compared to LMS. The NLMS is mainly
used to remove EOG noise in EEG signal. EOG artifacts are largely reduced to
improve BIS index in DoA. During the simulation for NLMS algorithm, SNR is
improved as compared to LMS. Mean square error is less for NLMS compared to
LMS which is close to zero. EMG artifacts are largely reduced which increases the
BIS index, which is useful in correct DoA. Hence NLMS algorithm is better than
that of LMS algorithm.
MATLAB Simulation Analysis for Removing Artifacts … 407

References

1. Google Image. https://www.google.co.in/search?q=adaptive+filter


2. Majkowski A (2005) Denoising based on wavelet and pca signal compression intelligent signal
processing. In: IEEE international workshop, pp 70–73, 1–3 Sept 2005
3. SuyiLi (2009) Comparisons of wavelet packet, lifting wavelet and stationary wavelet transform
for de-noising ECG. In: 2nd IEEE international conference on computer science and
information technology, ICCSIT 2009, 8–11 Aug 2009
4. Banerjee A, Basuand K, Chakraborty A (2010) Prediction of EEG signal by digital filtering
5. Walters-Williams J, Li Y (2012) BMICA-independent component analysis based on B-spline
mutual information estimation for EEG signals. Can J Biomed Eng Technol 3(4)
6. Szalai J, Haller P, Marthi Z (2012) Adaptiv filtering of EEG signals. In: The 6th edition of the
interdisciplinarity in engineering international conference Petru Maior. University of Tîrgu
Mures, Romania

View publication stats

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy