You are on page 1of 5

Analysis of EEG signals for diagnosis of epileptic

seizures based on features extracted using efficient


wavelet transform
Deepti H Bagali1 Shobha S2
Dept. of Electronics and Communication Dept. of Electronics and Communication
Sapthagiri College of Engineering Sapthagiri College of Engineering
Bangalore, India Bangalore, India

Abstract -The electroencephalogram (EEG) signal plays an control, wheelchair control and person identification using
important role in the diagnosis of epilepsy. Early detection of brainwaves. The EEG signals can be effectively used for
seizures provides opportunity for early intervention and results various applications such as emotion recognition, brain
in improved outcomes over treatment among epilepsy patients. In computer interfaces (BCI) etc. One of the most important
a significant number of cases, detection of the epileptic EEG
signal is carried out manually by skilled professionals, who are
applications of the analysis of EEG signals is its use in
small in number. Visual inspection by skilled professional is very neuroscience to diagnose diseases and brain disorders.
time consuming and may even be inaccurate. These inaccuracies Epileptic seizures detection is typically done by the physicians
are particularly significant for long time duration EEG signals. using a visual scanning of the EEG signals which is a time
Therefore there is a need for an automated Bio-marker detection consuming process and may be inaccurate. These inaccuracies
and classification for epilepsy. It is required to use complex are particularly significant for long time duration EEG signals.
algorithms to recognize invisible information that exist in EEG With advances in technology, use of artificial
signals and diagnose epilepsy. We propose a novel and efficient intelligence, pattern matching and classification algorithms
approach for automatically detecting the presence of epileptic
have evolved automated methods for early detection of
seizures in EEG signals. A neural-network- based automated
epileptic EEG detection system is introduced that uses energy as epilepsy. The diagnosis of epilepsy is one of the difficult
the input feature. The signal pre-processing is done using filter. problems faced by researchers. EEG provides a direct measure
EEG waves feature extraction is carried out using the Dual- tree of postsynaptic brain activity and has several orders of
complex Wavelet Transform (DTCWT). FFT of each level is magnitude greater temporal resolution than functional MRI,
taken which gives an indication to the different frequency bands allowing it to resolve neurophysiological oscillations and
in the signals at different levels. Corresponding energies are dynamics on millisecond scale.
calculated. The Back Propagation Neural Network is trained with Capturing EEG signals in epilepsy patients and with
the obtained energy values for effective detection of epileptic visual inspection of EEG by doctors cannot decipher epilepsy
seizures. It is shown that the energy value vary widely for the
epileptic signal and the normal signal. This fact is utilized in early
and classify epilepsy into sub groups. It is required to use
detection of seizures. complex algorithms to recognize invisible information that
exist in EEG signals and diagnose epilepsy. Literature reports
Keywords—EEG, moving average filter, DTCWT, FFT, Neural various methods that extract features from EEG signals in time
Network domain, frequency domain and from nonlinear dynamics to
appropriately detect suitable biomarker for diagnosis of
I. INTRODUCTION
epilepsy. Recent developments in technology and use of
Epilepsy is a neurological disorder characterized by recurrent suitable mathematical approaches could provide solutions to
attacks over long periods. The sudden abnormal discharge of identify epilepsy biomarkers from EEG. Because EEG
neurons in the brain leads to brain dysfunction and the onset of measures such as spectral power, coherence, and complexity
epilepsy. Epileptic seizures usually last a short time and are are continuous and relate to typical development, they hold
accompanied by involuntary twitching attacks. The most tremendous potential for the creation of clinically meaningful
common type of epilepsy, which affects 6 out of 10 people subgroups within the spectra of neuro-developmental
with the disorder, is called idiopathic epilepsy and has no disorders.
identifiable cause. Epilepsy with a known cause is called
secondary epilepsy, or symptomatic epilepsy. Early detection II. DATABASE COLLECTION
of seizures provides opportunity for early intervention and
results in improved outcomes over treatment among epilepsy The EEG data used were a subset of EEG data corresponding
patients. In spite of recent advances, the interest in extracting to both normal and epileptic subjects, made available by Dr.
knowledge hidden in the electroencephalogram(EEG) signals Ralph Andrzejak from the Epilepsy Centre at the University of
is rapidly growing, as well as their application in the Bonn. Two EEG data sets from two different groups were
computational neuro engineering field such as mobile robot analyzed: healthy subjects with normal EEG data, epileptic
subjects during a seizure. Each data set recorded with a 128-
channel amplifier system contained 100 single-channel EEG B. Discrete wavelet transform
segments sampled at 173.61 Hz, each of 23.6 sec duration.
There are five broad spectral sub-bands of the EEG DWT chooses only a subset of scales and positions. DWT
signal which are generally of clinical interest: delta (0 - 4 Hz), works as filters where the signals are divided into two bands at
theta (4 - 8 Hz), alpha (8 - 16 Hz), beta (16 - 32 Hz) and each a specified level called approximations and details
gamma waves (32 - 64 Hz). Higher frequencies are often more signals as shown in figure 2. Each level could characterize the
common in abnormal brain states such as epilepsy (i.e. there is frequencies of the EEG data band. The algorithm of the DWT
a shift of EEG signal energy from lower to higher frequency decomposition and reconstruction can be summarized. Given a
bands before and during a seizure). These five frequency sub- signal “s” of length n, starting from s, the first step produces
bands provide more accurate information about neuronal two sets of coefficients: approximation coefficients cA1, and
activities underlying the problem and, consequently, some detail coefficients cD1.
changes in the EEG signal, which are not so obvious in the
original full-spectrum signal, can be amplified when each sub-
band is considered independently. That was the basic premise
of this research. Most of the features were extracted from each
sub-band separately, after wavelet decomposition of the full-
spectrum EEG signal, as well as reconstructed in all five sub-
bands using the inverse wavelet transform.

III. PREPROCESSING AND WAVELET TRANSFORM

A. Preprocessing

The most elementary form of an FIR filter is a moving average


filter. Moving average filters are used for smoothing signal.
Fig.3 3level decomposition using DWT
The input samples, x (n) are passed through a series of buffer
registers (labeled z–1, corresponding to the z-transform
The approximations (A) are the high-scale, low frequency
representation of a delay element). The figure 1 shows the
components of the signal. The details (D) are the low-scale,
original signal and figure 2 shows the signal after applying
high-frequency components. The samples of the signal are
moving average filter.
dividing by 2 and this is called sub-sampling, as shown in Fig
2. At every level, the sub-sampling will result in half the
number of samples. The procedure of the sub-band coding of
the EEG data can be visualized, as shown in Fig.3. In this
work, an eight-level multi-resolution decomposition using
Daubechies8 wavelets is implemented

Fig.1 Original signal

Fig.4 The tree of the multi-decomposition (multi-level) of the


signals

These vectors are obtained by convolving s with the low-pass


filter Lo_D for approximation, and with the high-pass filter
Hi_D for detail, followed by dyadic decimation. The length of
each filter is equal to 2N. If n = length (s), the signals F and G
Fig.2 signal after filtering are of length n + 2N - 1, and then the coefficients cA1 and
cD1 are of length Floor means that the length of the
coefficients rolled to the nearest integer. The next step splits given level have the same shape, independent of shift. It is
the approximation coefficients cA1 into two parts using the easily observed that the DT CWT has outstanding
same scheme, replacing s by cA1 and producing cA2 and cD2 performances in this direction compared to the severe shift
and so on. dependence of the normal DWT.
Features of the Dual Tree Complex Wavelet Transform
C. Dual tree complex wavelet transform (DTCWT)
On one hand, the dual-tree DWT can be viewed as an 1. Good shift invariance
overcomplete wavelet transform with a redundancy factor 2. Good directional selectivity in 2-D, 3-D
of two. On the other hand, the dual-tree DWT is also a 3. Perfect reconstruction
complex DWT, where the first and second DWTs 4. Limited redundancy – 2:1 in 1-D, 4:1 in 2-D
represent the real and imaginary parts of a single complex 5. Low computation
DWT. The first implementation proposed had the
constraint of linear phase, and to accomplish this, the D. Fast Fourier transform
implementation required odd-length filters in one tree and
Fourier analysis is extremely useful for data analysis, as it
even-length filters in the other. Greater symmetry between
breaks down a signal into constituent sinusoids of different
the two trees occurs if each tree uses odd and even filters
frequencies. For sampled vector data, Fourier analysis is
alternately from level to level, but this is not essential.
performed using the discrete Fourier transform (DFT). The
Figure 5 shows the DTCWT architecture
fast Fourier transform (FFT) is an efficient algorithm for
computing the DFT of a sequence; it is not a separate
transform. It is particularly used in area such as signal
processing, where its uses range from filtering and frequency
analysis to power spectrum estimation. Computation using
FFT of each level gives an indication to the corresponding
frequencies in different bands.

III. ARTIFICAL NEURAL NETWORK

In this paper, for training the EEG signals we utilize Back


propagation algorithm. One of the most commonly used
supervised ANN model is back propagation network that uses
back propagation learning algorithm. Back propagation
algorithm is appropriate for pattern recognition problems. The
back propagation neural network is essentially a network of
simple processing elements working together to produce a
complex output. These elements or nodes are arranged into
different layers: input, hidden and output layer as shown in
Fig.5 DTCWT architecture
figure 6.
In order to examine the shift invariance properties of a
transform, Kingsbur proposes a method based on the retention
of just one type (details or approximations), from just one
level of the decomposition tree. For example one might
choose to retain only the level-3 detail coefficients and set all
the others to zero. If the signal y reconstructed from just these
coefficients, is free of aliasing then it can be said that the
transform is shift invariant at that level. The degree of shift
invariance of two implementation schemes (one for the DT
CWT and the other for the classical DWT) is presented in fig.
3.5. In each case the input is a unit step, shifted to 16 adjacent
sampling instants in turn. Each unit step is passed through the
forward and inverse version of the chosen wavelet transform.
The figure shows the input steps and the components
of the inverse transform output signal, reconstructed from the
wavelet coefficients at each of levels 1 to 4 in turn and from Fig.6 Network showing three layers: input, hidden and output
the scaling function coefficients at level 4. Summing these
components reconstructs the input steps perfectly. Good shift The advantages of Back propagation algorithm are, it is simple
invariance is shown when all the 16 output components from a and its speed is also reasonable. In a back propagation neural
network, the learning algorithm has two stages. Initially, a [2] L.D. Iasemidis, D.S. Shiau, W. Chaovalitwongse, J.C.
training input pattern is presented to the network input layer. Sackellares, P.M. Pardalos, and J.C. Principe, "Adaptive
The network propagates the input pattern from layer to layer epileptic seizure prediction system," IEEE Transactions on
until the output pattern is produced by the output layer. If this Biomedical Engineering, vol. 50, no.5,2003, pp. 616–627.
pattern is dissimilar from the preferred output, an error is
intended and then propagated backward through the network [3] Hamid R. Mohseni1, A. Maghsoudi and Mohammad B.
from the output layer to the input layer. The weights are Shamsollahi, “Seizure Detection in EEG signals: A
customized as the error is propagated. In the proposed Comparison of Different Approaches” in proceedings of 28th
approach, we primarily present the test input signal i.e. EEG Annual IEEE International Conference on Engineering in
signals to the neural network, which in turn compares the Medicine and Biology Society, Aug. 30-Sept. 3 2006, pp:
input signal with the trained signal, on the basis of the weight 6724-6727.
factor. If the input signals (EEG signal) contain epileptic [4] Chen, H., Zhong, S., and Yao D. “Detection singularity
seizure, then the trained network notifies the occurrence of the value of character wave in epileptic EEG by wavelet”, in
disease. The utilization of Back propagation shows better proceedings of IEEE International Conference on
results in the detection of seizure from EEG signal. Communications, Circuits and Systems and West Sino
Expositions 2002, vol. 2, 29 June-1 July 2002, pp:1094-1097.
IV. EXPERIMENT RESULTS
[5] N.F. Gulera, E.D. Ubeylib, I. Guler, "Recurrent neural
The Back Propagation Neural Network was trained with the networks employing Lyapunov exponents for EEG signals
extracted feature from 200 EEG signals, of which 100 were classification" in proceedings of Journal on Expert Systems
seizure affected EEG signals and others were normal EEG with Applications vol. 29,no. 3, 2005, pp. 506–514.
signals. In the testing phase, extracted feature from EEG
signal is provided as test input for epileptic seizure detection. [6] M.C. Casdagli, L.D. Iasemidis, R.S. Savit, R.L. Gilmore,
The accuracy results of the proposed approach is 78%. S.N. Roper, J.C. Sackellares, "Non-linearity in invasive EEG.
Recordings from patients with temporal lobe epilepsy,"
Table1. Accuracy Electroencephalogram. Clin.europhysiol.1997, pp:98-105.
Signals Detected results
[7] A. Subasia, and E. Ercelebi, "Classification of EEG signals
using neural network and logistic regression," in proceedings
Normal(100) 84 of Computer Methods and Programs in Biomedicine, vol. 78,
2005, pp. 87-99.
Epileptic(100) 79
[8] Dr D. H. Crawford, "Digital Signal Processing: An
Introduction and Some Examples of its Everyday Use",
V. CONCLUSION EPSON Scotland Design Centre.

This paper presented an EEG data classification algorithm [9]Vicente Zarzoso and Pierre Comon, “How fast is
which based on features extracted after wavelet transform and FastICA?” Proceedings of European Signal Processing
statistical pattern recognition. It makes an objective decision Conference, Florence, Italy, September 2006.
about the type of the EEG data processed. The main
advantages of the algorithm is feature extractions with highly [10]Prabhakar K. Nayak, and Niranjan U. Cholayya,
meaningful wavelet transform because hidden EEG "Independent component analysis of Electroencephalogram" ,
information can be revealed and the noise reduction. It gives in proceedings of journal papers of technical meeting on
very good sensitivity and specificity as well as an overall Medical and Biological Engineering, IEE Japan, vol.MBE-06,
classification accuracy of 99%. Therefore, the conclusion is no.95-115, 2006, pp : 25-28.
that the proposed algorithm can be used to classify EEG
signals and detect seizures in a clinical setting. [11]M. Ungureanu, C. Bigan, R. Strungaru, V. Lazarescu,
"Independent Component Analysis Applied in Biomedical
REFERENCES Signal Processing", in proceedings of Measurement Science
Review, Vol. 4, no.2, 2004.
[1] Klaus Lehnertz, Florian Mormann, Thomas Kreuz, Ralph
G. Andrzejak, Christoph Rieke, Peter David, And Christian E. [12] Fox, Kevin L., Henning, Rhonda R., and Reed, Jonathan
Elger, “Seizure Prediction By Nonlinear EEG Analysis” in H. (1990). “A Neural Network Approach towards Intrusion
proceeding of IEEE engineering in medicine and biology Detection”. In Proceedings of the
magazine, vol.22, no. 1, January/February 2003, pp: 57-63. [13] Stjepana Kovac,. Gelastic seizures: Incidence, clinical
and EEG features in adult patients undergoing video-EEG
telemetry Epilepsia, 56(1):e1–e5, 2015 doi: 10.1111/epi.

You might also like