Professional Documents
Culture Documents
Seizure Detection Using EEG Signals
Seizure Detection Using EEG Signals
71]
Original Article
Abstract
Background: Epilepsy causes when the repeated seizure occurs in the brain. Electroencephalogram (EEG) test provides valuable information
about the brain functions and can be useful to detect brain disorder, especially for epilepsy. In this study, application for an automated seizure
detection model has been introduced successfully. Materials and Methods: The EEG signals are decomposed into sub‑bands by discrete
wavelet transform using db2 (daubechies) wavelet. The eight statistical features, the four gray level co‑occurrence matrix and Renyi entropy
estimation with four different degrees of order, are extracted from the raw EEG and its sub‑bands. Genetic algorithm (GA) is used to select
eight relevant features from the 16 dimension features. The model has been trained and tested using support vector machine (SVM) classifier
successfully for EEG signals. The performance of the SVM classifier is evaluated for two different databases. Results: The study has been
experimented through two different analyses and achieved satisfactory performance for automated seizure detection using relevant features
as the input to the SVM classifier. Conclusion: Relevant features using GA give better accuracy performance for seizure detection.
Introduction The position of Fp2, F4, F8, C4, T4, T6, P4, and O2 electrodes
indicates right hemisphere and Fp1, F3, F7, C3, T3, T5, P3, and
Human cerebral cortex consists of brain has a tremendous
O1 electrodes indicates left hemisphere, respectively. The
and prosperous spatiotemporal dynamics which is particularly
position of FZ, CZ, and PZ electrodes indicates the midline
unique to the human. Millions of neurons in the brain
in frontal, central, and parietal regions.[3] Providing quality
communicate each other through chemical and electrical
treatment is more important for epileptic patients. Supportive
signals (action potentials). [1] The abnormal electrical
system will be helpful for experts to have better diagnosis.
disturbance in the brain is called seizure. Epilepsy causes when
Hence, focusing on automated seizure detection is necessary
the repeated seizures occur in the brain. Careful analysis of
for the future development. To develop an expert system, the
electroencephalogram (EEG) provides valuable information
machine has to learn to distinguish the EEG signal features.
about the brain functions and can be useful to detect brain
Machine can learn from data just like human brain acquires
disorder, especially for epilepsy. EEG includes different
knowledge through study and facts. Machine learning carries
kinds of waveforms with various frequencies, amplitude,
out a particular task to classify the data in two stages. Training
and spatial distribution. The types of EEG waves[2,3] are
stage is the first stage where the machine trained with the
identified according to their frequency range – delta: below
relevant features and the corresponding categorical labels of
3.5 Hz (0.1–3.5 Hz), theta: 4–7.5 Hz, alpha: 8–13 Hz, beta:
the data while in testing stage the machine examined with
14–40 Hz, and gamma: above 40 Hz. The EEG may show
the unknown data of similar features. The classifier has to
unusual electrical discharge when some abnormality occurs
in the brain. The measurement of placing the electrodes in the Address for correspondence: Ms. B. Suguna Nanthini,
brain area, namely, frontal pole (Fp), frontal (F), parietal (P), Research Scholar, School of Computing, SASTRA University,
temporal (T), and occipital (O), provides meaningful Thanjavur ‑ 613 401, Tamil Nadu, India.
communication. Even numbers and odd numbers as subscript E‑mail: bs.nanthini@gmail.com
have been decided to differentiate the brain’s hemisphere.
This is an open access article distributed under the terms of the Creative Commons
Access this article online Attribution-NonCommercial-ShareAlike 3.0 License, which allows others to remix, tweak,
Quick Response Code: and build upon the work non-commercially, as long as the author is credited and the new
Website: creations are licensed under the identical terms.
www.jnsbm.org
For reprints contact: reprints@medknow.com
© 2017 Journal of Natural Science, Biology and Medicine | Published by Wolters Kluwer - Medknow 159
[Downloaded free from http://www.jnsbm.org on Tuesday, March 20, 2018, IP: 117.241.27.71]
160 Journal of Natural Science, Biology and Medicine ¦ Volume 8 ¦ Issue 2 ¦ July-December 2017
[Downloaded free from http://www.jnsbm.org on Tuesday, March 20, 2018, IP: 117.241.27.71]
Journal of Natural Science, Biology and Medicine ¦ Volume 8 ¦ Issue 2 ¦ July-December 2017 161
[Downloaded free from http://www.jnsbm.org on Tuesday, March 20, 2018, IP: 117.241.27.71]
“+1” and “−1”.[23] In this paper, the SVM classifier is used for • Step 5: The 16 dimension features and the eight appropriate
EEG signal classification. features are used as the input to the SVM classifier
• Step 6: The performance of the SVM classifier is evaluated
Performance evaluation for each signal using combined features and appropriate
Confusion matrix features separately
For this experimental research, a value “−1” indicates normal • Step 7: The accuracy obtained by the SVM classifier is
EEG pattern and “+1” indicates abnormal EEG types (epileptic compared
seizure). The performance evaluation of the Artificial Neural • Step 8: The procedure from step 1 to step 7 is applied for
Network (ANN) classifier and SVM classifier are examined three different analyses
using confusion matrix. In charge of analyzing the output • Step 9: The study declared that the appropriate features
data, sensitivity determines true positive ratio and specificity can provide better accuracy in the performance of the
determines true negative ratio are estimated using confusion SVM classifier.
matrix. Sensitivity, specificity, and total classification accuracy
are determined by the following formula.[19] Tables 1‑3 show the sample features extracted from the
16 channel raw EEG signal from the second database. In this
TP paper, the study carried out 2 different analyses and their
Sensitivity = TPR = × 100% (8)
TP + FN explanations are as follows:
TN Analysis 1
Specificity
= TNR
= × 100% (9)
TN + FP In this analysis, the EEG signals from online database have
been examined for binary classification. Among five different
(TP + TN)
Accuracy = × 100% (10) sets, set A (normal) and set E (abnormal) are used for seizure
(TP + FP + TN + FN) detection. The 16 dimension features (extracted) and the
eight appropriate features (selected) are given as the input
Where TP, TN, FP, and FN refer true positive, true negative, to the SVM classifier. The model has been trained and tested
false positive, and false negative, respectively. The performance using the 16 dimension features (extracted) and the eight
of the classifier is compared using the equation 10. relevant features (selected) separately for raw EEG signal
Analysis of variance as well as for its sub‑bands. The performance of the SVM
One‑way analysis of variance (ANOVA) is a simple case of classifier is evaluated. The 200 samples from set A and E are
the linear model to determine whether the given data are from cross‑validated using K‑fold cross‑validation method. The
different groups. It is defined as: model is trained and tested for seizure detection. The average
of accuracy is taken and compared for EEG signal analysis.
Y
=ij α ij + ε ij (11) Table 4 shows the comparison of accuracy obtained by the
Where Yij is a matrix of observations in which each column SVM classifier. Figure 2 shows the performance analysis of
represents a different group, αij is a matrix whose columns the SVM classifier.
are the group means (constant) and εij is a matrix of random Feature extraction is the process used for reducing the
disturbances.[24] In this paper, ANOVA has been used to dimension of input vectors. Extracting appropriate features
determine whether the given datasets (normal and abnormal is very important for classification. Training and testing
subjects) are having different characteristics. the classifier with these features give better accuracy in the
performance of seizure detection. This analysis proved that
Results the relevant features are used for classification can provide
Two different databases are analyzed in this paper. First, we better accuracy in the performance of the SVM classifier.
analyzed the online available data (Andrzejak et al., 2001). The performance shows reliable variation in values when the
Among the five sets in the database, set A and set E are taken study is used GA
for binary classification. The pseudocode for this study is as
follows:
• Step 1: Receiving EEG signal from the source after simple
preprocessing
• Step 2: The EEG signal is decomposed into sub‑bands at
level 4
• Step 3: The eight statistical features, four GLCM features
and Renyi entropy estimation from four different degrees
of orders are extracted from raw EEG signal as well as
from its sub‑bands
• Step 4: The eight appropriate features are selected from
the 16 dimension features using GA method Figure 2: Support vector machine performance analysis for analysis 1
162 Journal of Natural Science, Biology and Medicine ¦ Volume 8 ¦ Issue 2 ¦ July-December 2017
[Downloaded free from http://www.jnsbm.org on Tuesday, March 20, 2018, IP: 117.241.27.71]
Journal of Natural Science, Biology and Medicine ¦ Volume 8 ¦ Issue 2 ¦ July-December 2017 163
[Downloaded free from http://www.jnsbm.org on Tuesday, March 20, 2018, IP: 117.241.27.71]
164 Journal of Natural Science, Biology and Medicine ¦ Volume 8 ¦ Issue 2 ¦ July-December 2017
[Downloaded free from http://www.jnsbm.org on Tuesday, March 20, 2018, IP: 117.241.27.71]
Journal of Natural Science, Biology and Medicine ¦ Volume 8 ¦ Issue 2 ¦ July-December 2017 165
[Downloaded free from http://www.jnsbm.org on Tuesday, March 20, 2018, IP: 117.241.27.71]
region and brain state. Phys Rev E Stat Nonlin Soft Matter Phys signal. J Appl Sci 2014;14:1658‑61.
2001;64(6 Pt 1):061907. 20. Burges CJ. A tutorial on support vector machines for pattern recognition.
6. Subasi A, Gursoy IM. EEG signal classification using PCA, ICA, LDA Data Min Knowl Discov 1998;2:121‑67.
and support vector machines. Expert Syst Appl 2010;37:8659‑66. 21. Gular I, Ubeyli ED. Multiclass support vector machines for EEG‑signals
7. Siuly, Li Y, Wen PP. Clustering technique‑based least square support classification. IEEE Trans Inf Technol Biomed 2007;11:117‑26.
vector machine for EEG signal classification. Comput Methods 22. Nicolaou N, Georgiou J. Detection of epileptic electroencephalogram
Programs Biomed 2011;104:358‑72. based on permutation entropy and support vector machines. Expert Syst
8. Ocak H. Automatic detection of epileptic seizures in EEG using Appl 2012;39:202‑9.
discrete wavelet transform and approximate entropy. Expert Syst Appl 23. Li Z, Zhou M, Lin H, Pu H. A two stage sparse SVM training. Int J Mach
2009;36:2027‑36. Learn Cybern 2014;5:425‑34.
9. Gandhi T, Panigrahi BK, Anand S. A Comparative study of wavelet 24. Armstrong RA, Eperjesi F, Gilmartin B. The application of analysis
families for EEG signal classification. Neurocomputing 2011;74:3051‑7. of variance (ANOVA) to different experimental designs in optometry.
10. Hasan O. Optimal classification of epileptic seizures in EEG Ophthalmic Physiol Opt 2002;22:248‑56.
using wavelet analysis and genetic algorithm. Signal Processing 25. Derya Ubeyli E. Analysis of EEG signals by combining eigenvector
2008;88:1858‑67. methods and multiclass support vector machines. Comput Biol Med
11. Nanthini BS, Santhi B. Different approaches of analyzing EEG signals 2008;38:14‑22.
for seizure detection. Int J Signal Imaging Syst Eng 2015;8:28‑38. 26. Chandaka S, Chatterjee A, Munshi S. Cross‑correlation aided support
12. Albregtsen F. Statistical Texture Measures Computed from Gray Level vector machine classifier for classification of EEG signals. Expert Syst
Co‑occurrence Matrices. Image Processing Laboratory, Department of Appl 2009;36:1329‑36.
Informatics, University of Oslo; 2008. 27. Liang SF, Wang HC, Chang WL. Combination of EEG complexity and
13. Kannathal N, Choo ML, Acharya UR, Sadasivan PK. Entropies for spectral analysis for epilepsy diagnosis and seizure detection. EURASIP
detection of epilepsy in EEG. Comput Methods Programs Biomed J Adv Signal Process 2010;2010:853434.
2005;80:187‑94. 28. Lima CA, Coelho AL, Eisencraft M. Tackling EEG signal classification
14. Maszczyk T, Duch W. Comparison of Shannon, Renyi and Tsallis Entropy with least squares support vector machines: A sensitivity analysis study.
used in decision trees. Lect Notes Comput Sci 2008;5067:643‑57. Comput Biol Med 2010;40:705‑14.
15. Subasi A. Automatic detection of epileptic seizure using dynamic fuzzy 29. Iscan Z, Dokur Z, Tamer D. Classification of electroencephalogram
neural networks. Expert Syst Appl 2006;31:320‑8. signals with combined time and frequency features. Expect Syst Appl
16. Gandhi TP, Chakraborthy P, Roy GG, Panigrahi BK. Discrete 2011;38:10499‑505.
harmony search based expert model for epileptic seizure detection in 30. Nanthini BS, Santhi B. EEG signal analysis for epileptic seizure detection
electrocenhalography. Expert Syst Appl 2012;39:4055‑62. using soft computing techniques. World Appl Sci J 2014b; 29:65‑9.
17. Guo L, Rivero D, Pazos A. Epileptic seizure detection using multiwavelet 31. Sucic V, Saulig N, Boashash B. Estimating the number of components
transform based approximate entropy and artificial neural networks. of a multi component non stationary signal using the short‑term
J Neurosci Methods 2010;193:156‑63. time‑frequency Renyi entropy. EURASIP J Adv Signal Process
18. Ubeyli ED. Combined neural network model employing wavelet 2011;2011:125
co‑efficients for EEG signals classification. Digital Signal Process 32. Lerga J, Saulig N, Mozetic V. Algorithm based on the short‑term Rényi
2009;19:297‑308. entropy and IF estimation for noisy EEG signals analysis. Comput Biol
19. Nanthini BS, Santhi B. Seizure detection using SVM classifier on EEG Med 2016;80:1‑13.
166 Journal of Natural Science, Biology and Medicine ¦ Volume 8 ¦ Issue 2 ¦ July-December 2017