journal article·2023-07-28Open access

Implementation of Machine Learning and Deep Learning Techniques for the Detection of Epileptic Seizures Using Intracranial Electroencephalography

Marcin Kołodziej, Andrzej Majkowski, Andrzej Rysz

Applied Sciences· Volume 13· Issue 15

Abstract

The diagnosis of epilepsy primarily relies on the visual and subjective assessment of the patient’s electroencephalographic (EEG) or intracranial electroencephalographic (iEEG) signals. Neurophysiologists, based on their experience, look for characteristic discharges such as spikes and multi-spikes. One of the main challenges in epilepsy research is developing an automated system capable of detecting epileptic seizures with high sensitivity and precision. Moreover, there is an ongoing search for universal features in iEEG signals that can be easily interpreted by neurophysiologists. This article explores the possibilities, issues, and challenges associated with utilizing artificial intelligence for seizure detection using the publicly available iEEG database. The study presents standard approaches for analyzing iEEG signals, including chaos theory, energy in different frequency bands (alpha, beta, gamma, theta, and delta), wavelet transform, empirical mode decomposition, and machine learning techniques such as support vector machines. It also discusses modern deep learning algorithms such as convolutional neural networks (CNN) and long short-term memory (LSTM) networks. Our goal was to gather and comprehensively compare various artificial intelligence techniques, including both traditional machine learning methods and deep learning techniques, which are most commonly used in the field of seizure detection. Detection results were tested on a separate dataset, demonstrating classification accuracy, sensitivity, precision, and specificity of seizure detection. The best results for seizure detection were obtained with features related to iEEG signal energy (accuracy of 0.97, precision of 0.96, sensitivity of 0.99, and specificity of 0.96), as well as features related to chaos, Lyapunov exponents, and fractal dimension (accuracy, precision, sensitivity, and specificity all equal to 0.95). The application of CNN and LSTM networks yielded significantly better results (CNN: Accuracy of 0.99, precision of 0.98, sensitivity of 1, and specificity of 0.99; LSTM: Accuracy of 0.98, precision of 0.96, sensitivity of 1, and specificity of 0.99). Additionally, the use of the gradient-weighted class activation mapping algorithm identified iEEG signal fragments that played a significant role in seizure detection.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: EEG and Brain-Computer Interfaces · Blind Source Separation Techniques · Epilepsy research and treatment

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Electrical Engineering, Warsaw University of Technology, Pl. Politechniki 1, 00-661 Warsaw, Poland

1st Military Clinical Hospital with Outpatient Clinic, Municipal Non-Profit Healthcare Facility in Lublin Neurosurgery Department, ul. Kościuszki 30, 19-300 Ełk, Poland

References (100+)

Show source-provided references
1. Epilepsy: A Clinical Overview10.1016/j.amjmed.2021.01.038 ↗
2. Seizure Reduction and Quality of Life Improvements in People with Epilepsy10.1046/j.1528-1157.2002.32201.x ↗
3. Psychosocial and Economic Problems of Parents of Children with Epilepsy10.1053/seiz.1998.0241 ↗
4. Supply Problems of Antiseizure Medication Are Common among Epilepsy Patients in Germany10.1016/j.yebeh.2022.108988 ↗
5. Use of Antiepileptic Drugs as Prophylaxis against Posttraumatic Seizures in the Pediatric Population: A Systematic Review and Meta-Analysis10.1007/s10143-023-01963-z ↗
6. Drug-Resistant Temporal Lobe Epilepsy Due to Middle Fossa Meningoencephalocele in a Child: A Surgical Case Report10.1016/j.braindev.2022.08.008 ↗
7. Clinical Utility of EEG in Diagnosing and Monitoring Epilepsy in Adults10.1016/j.clinph.2018.01.019 ↗
8. Normative Intracranial EEG Maps Epileptogenic Tissues in Focal Epilepsy10.1093/brain/awab480 ↗
9. Advances of Intracranial Electroencephalography in Localizing the Epileptogenic Zone10.1007/s12264-016-0035-8 ↗
10. Detection of Spikes with Defined Parameters in the ECoG Signal10.1109/TIM.2018.2862078 ↗
11. Machine Learning for Predicting Epileptic Seizures Using EEG Signals: A Review10.1109/RBME.2020.3008792 ↗
12. Epileptic Seizure Detection in EEGs Using Time–Frequency Analysis10.1109/TITB.2009.2017939 ↗
13. A Review of Epileptic Seizure Detection Using Machine Learning Classifiers10.1186/s40708-020-00105-1 ↗
14. Real-Time Epileptic Seizure Detection Using EEG10.1109/TNSRE.2017.2697920 ↗
15. EEG-Based Epileptic Seizure Detection via Machine/Deep Learning Approaches: A Systematic Review10.1155/2022/6486570 ↗
16. Farooq, M.S., Zulfiqar, A., and Riaz, S. (2023). Epileptic Seizure Detection Using Machine Learning: Taxonomy, Opportunities, and Challenges. Diagnostics, 13.10.3390/diagnostics13061058 ↗
17. Neurostimulation in Generalized Epilepsy: A Systematic Review and Meta-Analysis10.1111/epi.17524 ↗
18. Machine Learning and Wearable Devices of the Future10.1111/epi.16555 ↗
19. Absence Seizures: Individual Patterns Revealed by EEG-FMRI10.1111/j.1528-1167.2010.02698.x ↗
20. The Role of EEG in Epilepsy: A Critical Review10.1016/j.yebeh.2009.02.035 ↗
21. Association of Periodic and Rhythmic Electroencephalographic Patterns with Seizures in Critically Ill Patients10.1001/jamaneurol.2016.4990 ↗
22. High-Frequency EEG Activity in Epileptic Encephalopathy with Suppression-Burst10.1016/j.braindev.2014.04.004 ↗
23. Seizure Onset Location Shapes Dynamics of Initiation10.1016/j.clinph.2020.04.168 ↗
24. Generation of Physiological and Pathological High Frequency Oscillations: The Role of Perisomatic Inhibition in Sharp-Wave Ripple and Interictal Spike Generation10.1016/j.conb.2014.07.020 ↗
25. Automatic Detection of Epileptiform Spikes in the Electrocorticogram: A Comparison of Two Algorithms10.1016/S1059-1311(98)80056-3 ↗
26. Automated Epilepsy Detection Techniques from Electroencephalogram Signals: A Review Study10.1007/s13755-020-00129-1 ↗
27. EEG Seizure Detection and Prediction Algorithms: A Survey10.1186/1687-6180-2014-183 ↗
28. A Review on the Pattern Detection Methods for Epilepsy Seizure Detection from EEG Signals10.1515/bmt-2017-0233 ↗
29. Epileptic Seizure Detection by Analyzing EEG Signals Using Different Transformation Techniques10.1016/j.neucom.2014.05.044 ↗
30. Panda, R., Khobragade, P.S., Jambhule, P.D., Jengthe, S.N., Pal, P.R., and Gandhi, T.K. (2010, January 16–18). Classification of EEG Signal Using Wavelet Transform and Support Vector Machine for Epileptic Seizure Diction. Proceedings of the 2010 International Conference on Systems in Medicine and Biology, Kharagpur, India.10.1109/ICSMB.2010.5735413 ↗
31. Optimal Classification of Epileptic Seizures in EEG Using Wavelet Analysis and Genetic Algorithm10.1016/j.sigpro.2008.01.026 ↗
32. Mohseni, H.R., Maghsoudi, A., and Shamsollahi, M.B. (September, January 30). Seizure Detection in EEG Signals: A Comparison of Different Approaches. Proceedings of the 2006 International Conference of the IEEE Engineering in Medicine and Biology Society, New York, NY, USA.10.1109/IEMBS.2006.260931 ↗
33. Classification of Epileptiform EEG Using a Hybrid System Based on Decision Tree Classifier and Fast Fourier Transform
34. Seizure Detection by Convolutional Neural Network-Based Analysis of Scalp Electroencephalography Plot Images10.1016/j.nicl.2019.101684 ↗
35. Wei, X., Zhou, L., Chen, Z., Zhang, L., and Zhou, Y. (2018). Automatic Seizure Detection Using Three-Dimensional CNN Based on Multi-Channel EEG. BMC Med. Inform. Decis. Mak., 18.10.1186/s12911-018-0693-8 ↗
36. Epileptic Seizure Detection Based on EEG Signals and CNN10.3389/fninf.2018.00095 ↗
37. Ma, Y., Liu, C., Ma, M.S., Yang, Y., Truong, N.D., Kothur, K., Nikpour, A., and Kavehei, O. TSD: Transformers for Seizure Detection. bioRxiv, 2023.10.1101/2023.01.24.525308 ↗
38. Continuous Seizure Detection Based on Transformer and Long-Term IEEG10.1109/JBHI.2022.3199206 ↗
39. Ke, N., Lin, T., Lin, Z., Zhou, X.-H., and Ji, T. (2022, January 17). Convolutional Transformer Networks for Epileptic Seizure Detection. Proceedings of the 31st ACM International Conference on Information & Knowledge Management, Association for Computing Machinery, New York, NY, USA.10.1145/3511808.3557568 ↗
40. Vagus Nerve Stimulation10.1111/j.1528-1157.1998.tb01151.x ↗
41. Vagus Nerve Stimulation for the Treatment of Epilepsy10.1016/j.nec.2018.12.005 ↗
42. Transcutaneous Vagus Nerve Stimulation (t-VNS) in Pharmacoresistant Epilepsies: A Proof of Concept Trial10.1111/j.1528-1167.2012.03492.x ↗
43. The Role of High-Quality EEG Databases in the Improvement and Assessment of Seizure Prediction Methods10.1016/j.yebeh.2011.08.030 ↗
44. EEG Datasets for Seizure Detection and Prediction—A Review10.1002/epi4.12704 ↗
45. EPILEPSIAE—A European Epilepsy Database10.1016/j.cmpb.2010.08.011 ↗
46. Handa, P., Mathur, M., and Goel, N. (2021). Open and Free EEG Datasets for Epilepsy Diagnosis. arXiv.
47. Nonrandomness, Nonlinear Dependence, and Nonstationarity of Electroencephalographic Recordings from Epilepsy Patients10.1103/PhysRevE.86.046206 ↗
48. (2023, June 19). American Epilepsy Society Seizure Prediction Challenge. Available online: https://kaggle.com/competitions/seizure-prediction.
49. Indications of Nonlinear Deterministic and Finite-Dimensional Structures in Time Series of Brain Electrical Activity: Dependence on Recording Region and Brain State10.1103/PhysRevE.64.061907 ↗
50. A Review on Seizure Detection Systems with Emphasis on Multi-Domain Feature Extraction and Classification Using Machine Learning
51. Wang, L., Xue, W., Li, Y., Luo, M., Huang, J., Cui, W., and Huang, C. (2017). Automatic Epileptic Seizure Detection in EEG Signals Using Multi-Domain Feature Extraction and Nonlinear Analysis. Entropy, 19.10.3390/e19060222 ↗
52. Epileptic Seizure Detection in Long-Term EEG Records Using Sparse Rational Decomposition and Local Gabor Binary Patterns Feature Extraction10.1016/j.knosys.2016.11.023 ↗
53. A Hybrid Feature Extraction and Machine Learning Approaches for Epileptic Seizure Detection10.1007/s11045-019-00673-4 ↗
54. Behara, D.S.T., Kumar, A., Swami, P., Panigrahi, B.K., and Gandhi, T.K. (2016, January 16–18). Detection of Epileptic Seizure Patterns in EEG through Fragmented Feature Extraction. Proceedings of the 2016 3rd International Conference on Computing for Sustainable Global Development (INDIACom), New Delhi, India.
55. Automatic Seizure Detection Using Wavelet Transform and SVM in Long-Term Intracranial EEG10.1109/TNSRE.2012.2206054 ↗
56. Burrello, A., Cavigelli, L., Schindler, K., Benini, L., and Rahimi, A. (2019, January 9–13). Laelaps: An Energy-Efficient Seizure Detection Algorithm from Long-Term Human IEEG Recordings without False Alarms. Proceedings of the 2019 Design, Automation & Test in Europe Conference & Exhibition (DATE), Grenoble, France.10.23919/DATE.2019.8715186 ↗
57. Seizure Onset Zone Identification From IEEG: A Review10.1109/ACCESS.2022.3182716 ↗
58. Sharma, A. (2015, January 8–10). Epileptic Seizure Prediction Using Power Analysis in Beta Band of EEG Signals. Proceedings of the 2015 International Conference on Soft Computing Techniques and Implementations (ICSCTI), Faridabad, India.10.1109/ICSCTI.2015.7489552 ↗
59. Distribution of the Time-Average Power of a Gaussian Process10.1109/TIT.1970.1054407 ↗
60. Machine Learning Approach for Epileptic Seizure Detection Using the Tunable-Q Wavelet Transform Based Time–Frequency Features10.1007/s41870-022-00877-1 ↗
61. Yousefi, M.R., Golnejad, S., and Hosseini, M.M. (2022). Comparison of EEG Based Epilepsy Diagnosis Using Neural Networks and Wavelet Transform. arXiv.
62. An EEG Based Real-Time Epilepsy Seizure Detection Approach Using Discrete Wavelet Transform and Machine Learning Methods10.1016/j.bspc.2022.103820 ↗
63. Filtering and Compression of Signals by the Method of Discrete Wavelet Decomposition into One-Dimensional Series10.1007/s10559-023-00567-1 ↗
64. Classification and Identification of Epileptic EEG Signals Based on Signal Enhancement10.1016/j.bspc.2021.103248 ↗
65. Wavelets and Digital Filters Designed and Synthesized in the Time and Frequency Domains10.3934/mbe.2022141 ↗
66. A Novel Wavelet Approach for Multiclass IEEG Signal Classification in Automated Diagnosis of Epilepsy10.1109/TIM.2022.3207799 ↗
67. Mathew, J., Sivakumaran, N., and Karthick, P.A. (2023). Automated Detection of Seizure Types from the Higher-Order Moments of Maximal Overlap Wavelet Distribution. Diagnostics, 13.10.3390/diagnostics13040621 ↗
68. Seizures Classification Based on Higher Order Statistics and Deep Neural Network10.1016/j.bspc.2020.101921 ↗
69. Qatmh, M., Bonny, T., Nasir, N., Al-Shabi, M., and Al-Shammaa, A. (2021, January 7–10). Detection of Epileptic Seizure Using Discrete Wavelet Transform on Gamma Band and Artificial Neural Network. Proceedings of the 2021 14th International Conference on Developments in eSystems Engineering (DeSE), Sharjah, United Arab Emirates.10.1109/DeSE54285.2021.9719527 ↗
70. A Review of Feature Extraction and Performance Evaluation in Epileptic Seizure Detection Using EEG10.1016/j.bspc.2019.101702 ↗
71. A Formula to Calculate the Variance of Uncertain Variable10.1007/s00500-014-1457-8 ↗
72. Measuring Skewness: A Forgotten Statistic?10.1080/10691898.2011.11889611 ↗
73. Interpretation of the Kurtosis Statistic10.1080/00031305.1970.10477202 ↗
74. Entropy Analysis of the EEG Background Activity in Alzheimer’s Disease Patients10.1088/0967-3334/27/3/003 ↗
75. A Time-Frequency Approach for Newborn Seizure Detection10.1109/51.956820 ↗
76. Early Seizure Detection in Childhood Focal Epilepsy with Electroencephalogram Feature Fusion on Deep Autoencoder Learning and Channel Correlations10.1007/s11045-022-00839-7 ↗
77. Lai, E. (2003). Practical Digital Signal Processing, Newnes.10.1016/B978-075065798-3/50009-6 ↗
78. (2023, June 19). Automated EEG-Based Diagnosis of Neurological Disorders: Inventing the Future of Neurology. Available online: https://www.routledge.com/Automated-EEG-Based-Diagnosis-of-Neurological-Disorders-Inventing-the-Future/Adeli-Ghosh-Dastidar/p/book/9781138118201.
79. Practical Method for Determining the Minimum Embedding Dimension of a Scalar Time Series10.1016/S0167-2789(97)00118-8 ↗
80. Sensitivity of the Wolf’s and Rosenstein’s Algorithms to Evaluate Local Dynamic Stability from Small Gait Data Sets10.1007/s10439-011-0474-3 ↗
81. A Fast Algorithm to Determine Fractal Dimensions by Box Counting10.1016/0375-9601(89)90854-2 ↗
82. Sevcik, C. (2010). A Procedure to Estimate the Fractal Dimension of Waveforms. arXiv.
83. Review of Empirical Mode Decomposition10.1117/12.421232 ↗
84. (2023, June 19). Mean-Optimized Mode Decomposition: An Improved EMD Approach for Non-Stationary Signal Processing-ScienceDirect . Available online: https://www.sciencedirect.com/science/article/pii/S0019057820302573.
85. Epileptic Seizure Classifications Using Empirical Mode Decomposition and Its Derivative10.1186/s12938-020-0754-y ↗
86. A Review on Empirical Mode Decomposition in Fault Diagnosis of Rotating Machinery10.1016/j.ymssp.2012.09.015 ↗
87. Kasruddin Nasir, A.N., Ahmad, M.A., Najib, M.S., Abdul Wahab, Y., Othman, N.A., Abd Ghani, N.M., Irawan, A., Khatun, S., Raja Ismail, R.M.T., and Saari, M.M. (2019, January 29). KNN and SVM Classification for EEG: A Review. Proceedings of the In In ECCE2019, Proceedings of the 5th International Conference on Electrical, Control & Computer Engineering, Kuantan, Pahang, Malaysia.10.1007/978-981-15-2317-5 ↗
88. A Review on Machine Learning for EEG Signal Processing in Bioengineering10.1109/RBME.2020.2969915 ↗
89. Schmorrow, D.D., and Fidopiastis, C.M. (2020). Proceedings of the Augmented Cognition. Theoretical and Technological Approaches, Springer International Publishing.10.1007/978-3-030-50353-6 ↗
90. Machine Learning Applications for Electroencephalograph Signals in Epilepsy: A Quick Review10.1186/s42494-020-00014-0 ↗
91. Review of Machine Learning Algorithms for Diagnosing Mental Illness10.30773/pi.2018.12.21.2 ↗
92. El Morr, C., Jammal, M., Ali-Hassan, H., and EI-Hallak, W. (2022). Machine Learning for Practical Decision Making: A Multidisciplinary Perspective with Applications from Healthcare, Engineering and Business Analytics, Springer International Publishing.10.1007/978-3-031-16990-8 ↗
93. Ghosh, S., Dasgupta, A., and Swetapadma, A. (2019, January 21–22). A Study on Support Vector Machine Based Linear and Non-Linear Pattern Classification. Proceedings of the 2019 International Conference on Intelligent Sustainable Systems (ICISS), Palladam, Tamilnadu, India.10.1109/ISS1.2019.8908018 ↗
94. Kuyoro, A.O., Alimi, S., and Awodele, O. (2022, January 4–6). Comparative Analysis of the Performance of Various Support Vector Machine Kernels. Proceedings of the 2022 5th Information Technology for Education and Development (ITED), Changsha, China.10.1109/ITED56637.2022.10051564 ↗
95. Kernel Methods on Riemannian Manifolds with Gaussian RBF Kernels10.1109/TPAMI.2015.2414422 ↗
96. Han, S., Qubo, C., and Meng, H. (2012, January 24–28). Parameter Selection in SVM with RBF Kernel Function. Proceedings of the World Automation Congress 2012, Puerto Vallarta, Mexico.
97. Classification of EEG Signals Using a Multiple Kernel Learning Support Vector Machine10.3390/s140712784 ↗
98. Zhiwei, L., and Minfen, S. (2007, January 16–18). Classification of Mental Task EEG Signals Using Wavelet Packet Entropy and SVM. Proceedings of the 2007 8th International Conference on Electronic Measurement and Instruments, Xi’an, China.
99. Classification of Seizure Based on the Time-Frequency Image of EEG Signals Using HHT and SVM10.1016/j.bspc.2014.03.007 ↗
100. Nandy, A., Alahe, M.A., Nasim Uddin, S.M., Alam, S., Nahid, A.-A., and Awal, M.A. (2019, January 10–12). Feature Extraction and Classification of EEG Signals for Seizure Detection. Proceedings of the 2019 International Conference on Robotics, Electrical and Signal Processing Techniques (ICREST), Dhaka, Bangladesh.10.1109/ICREST.2019.8644337 ↗