Detection of epileptic seizures in EEG by using machine learning techniques
More details
Hide details
Wasit University
Muayed S AL-Huseiny   

Wasit University
Submission date: 2022-10-07
Final revision date: 2022-11-16
Acceptance date: 2022-12-22
Online publication date: 2023-01-06
Publication date: 2023-01-06
In this research a public dataset of recordings of EEG signals of healthy subjects and epileptic patients was used to build three simple classifiers with low time complexity, these are decision tree, random forest and AdaBoost algorithm. The data was initially preprocessed to extract short waves of electrical signals representing brain activity. The signals are then used for the selected models. Experimental results showed that random forest achieved the best accuracy of detection of the presence/absence of epileptic seizure in the EEG signals at 97.23% followed by decision tree with accuracy of 96.93%. The least performing algorithm was the AdaBoost scoring accuracy of 87.23%. Further, the AUC scores were 99% for decision tree, 99.9% for random forest and 95.6% for AdaBoost. These results are comparable to state-of-the-art classifiers which have higher time complexity.
Lima AA, Mridha MF, Das SC, Kabir MM, Islam MR, Watanobe Y. A comprehensive survey on the detection, classification, and challenges of neurological disorders. Biology. 2022;11(3):469.
Al-Sharhan S, Bimba A. Adaptive multi-parent crossover GA for feature optimization in epileptic seizure identification. Applied Soft Computing. 2019;75:575-87.
Baykara M, Abdulrahman A. Seizure detection based on adaptive feature extraction by applying extreme learning machines. Traitement du Signal. 2021;38(2):331-40.
Fisher RS, Scharfman HE, deCurtis M. How can we identify ictal and interictal abnormal activity? Adv Exp Med Biol. 2014;813:3-23.
Abdulhay E, Alafeef M, Abdelhay A, Al-Bashir A. Classification of Normal, Ictal and Inter-ictal EEG via Direct Quadrature and Random Forest Tree. J Med Biol Eng. 2017;37(6):843-57.
Waser M, Benke T, Dal-Bianco P, Garn H, Mosbacher JA, Ransmayr G, et al. Neuroimaging markers of global cognition in early Alzheimer's disease: A magnetic resonance imaging-electroencephalography study. Brain Behav. 2019;9(1):e01197.
Lehnertz K, Andrzejak RG, Arnhold J, Widman G, Burr W, David P, Elger CE. Possible clinical and research applications of nonlinear eeg analysis in humans. Chaos in Brain?. 2000:134-155.
Mardini W, Yassein MMB, Al-Rawashdeh R, Aljawarneh S, Khamayseh Y, Meqdadi O. Enhanced detection of epileptic seizure using eeg signals in combination with machine learning classifiers. IEEE Access. 2020;8:24046-55.
Golmohammadi M, Ziyabari S, Shah V, Weltin EV, Campbell C, Obeid I, et al., editors. Gated recurrent networks for seizure detection. 2017 IEEE Signal Processing in Medicine and Biology Symposium (SPMB). 2017:1-5.
Truong ND, Kuhlmann L, Bonyadi MR, Querlioz D, Zhou L, Kavehei O. Epileptic seizure forecasting with generative adversarial networks. IEEE Access. 2019;7:143999-4009.
Djoufack Nkengfack LC, Tchiotsop D, Atangana R, Louis-Door V, Wolf D. EEG signals analysis for epileptic seizures detection using polynomial transforms, linear discriminant analysis and support vector machines. Biomedical Signal Processing and Control. 2020;62:102141.
Abdulhussien AS, Abdulsaddaa AT, Iqbal K. Automatic seizure detection with different time delays using SDFT and time-domain feature extraction. J Biomed Res. 2022;36(1):48-57.
Asif U, Roy S, Tang J, Harrer S, editors. SeizureNet: multi-spectral deep feature learning for seizure type classification. machine learning in clinical neuroimaging and radiogenomics in neuro-oncology. Lecture Notes in Computer Science. 2020:12449.
Shoeibi A, Khodatars M, Ghassemi N, Jafari M, Moridian P, Alizadehsani R, et al. Epileptic seizures detection using deep learning techniques: A review. Int J Environ Res Public Health. 2021;18(11):5780.
Kaur T, Diwakar A, Kirandeep, Mirpuri P, Tripathi M, Chandra PS, et al. Artificial intelligence in epilepsy. Neurol India. 2021;69(3):560-6.
An S, Kang C, Lee HW. Artificial intelligence and computational approaches for epilepsy. J Epilepsy Res. 2020;10(1):8-17.
Brownlee j. How to use ensemble machine learning algorithms in weka. 2019 [Available from: https://machinelearningmastery....
Kumar P. Computational Complexity of ML Models: Analytics Vidhya; 2019 [Available from:
Frank E, Hall MA, Witten IH. The WEKA Workbench. Online Appendix for " Data Mining: Practical Machine Learning Tools and Technologies". Fourth ed: Morgan Kaufmann; 2016.
Andrzejak RG, Lehnertz K, Mormann F, Rieke C, David P, Elger CE. Indications of nonlinear deterministic and finite-dimensional structures in time series of brain electrical activity: Dependence on recording region and brain state. Physical Review E. 2001;64(6):061907.
Zhang Y, Lu Q, Monsoor T, Hussain SA, Qiao JX, Salamon N, et al. Refining epileptogenic high-frequency oscillations using deep learning: a reverse engineering approach. Brain Communications. 2022;4(1):fcab267.
Wu Q, Fokoue E. Epileptic-Seizure-Recognition-Using-ANN 2017 [Available from:
Salzberg SL. C4.5: Programs for Machine Learning by J. Ross Quinlan. Morgan Kaufmann Publishers, Inc., 1993. Machine Learning. 1994;16(3):235-40.
Khanna N. J48 Classification (C4.5 Algorithm) in a Nutshell 2021 [Available from:
Yiu T. Understanding Random Forest 2019 [Available from:
Breiman L. Random Forests. Machine Learning. 2001;45(1):5-32.
Freund Y, Schapire RE. Experiments with a new boosting algorithm. Proceedings of the Thirteenth International Conference on International Conference on Machine Learning; Bari, Italy: Morgan Kaufmann Publishers Inc.; 1996:148–56.
Desarda A. Understanding AdaBoost 2019 [Available from:
Shah V, von Weltin E, Lopez S, McHugh JR, Veloso L, Golmohammadi M, et al. The temple university hospital seizure detection corpus. Front Neuroinform. 2018;12:83.
Tatum WO, Rubboli G, Kaplan PW, Mirsatari SM, Radhakrishnan K, Gloss D, et al. Clinical utility of EEG in diagnosing and monitoring epilepsy in adults. Clin Neurophysiol. 2018;129(5):1056-82.
Liu J, Woodson B. Deep Learning Classification for Epilepsy Detection Using a Single Channel Electroencephalography (EEG). Proceedings of the 2019 3rd International Conference on Deep Learning Technologies; Xiamen, China: Association for Computing Machinery. 2019:23–6.