Cramer Distance: A Deep Learning Approach for Better Epileptic Seizure Prediction
Hayder M A Ghanimi
Hayder M A Ghanimi
Information Technology Department, College of Science, University of Warith Al-Anbiyaa, Karbala, Iraq and
Department of Computer Science, College of Computer Science and Information Technology, University of Kerbala, Karbala, Karbala Governorate, Iraq.
Epilepsy is a neurological condition that is found in most people all over the
world, and the ability to accurately anticipate seizures in epileptic patients has a significant
impact on both their level of protection and their overall quality of life. This research
proposes a unique patient specific seizure prediction approach based on Deep Learning (DL) using
long-term scalp electroencephalogram (EEG) recordings to predict seizure onset. Preictal brain
states should be adequately detected and differentiated from the prevalent interictal brain
states as early as possible to make this technology acceptable for real-time use. A single
automated system has been designed for the Features Extraction (FE) and classification
processes. The raw EEG signal that has not been pre-processed is considered the input to the
system, and the signal is further reduced using subsequent computations. An innovative
reconstruction approach using Variational Auto-Encoder Generative Adversarial Networks
(VAE+C+GAN) with the Cramer Distance (CD) and a Temporal-Spatial-Frequency (TSF) loss function
is presented in this research work. The machine that discriminates receives instructions to
differentiate between created tests and actual samples, while the generator is verified to
produce false samples that the discriminator does not recognize as fake. The proposed
VAE+C+GAN’s experimental results have been examined, and a classification accuracy of 95% has
been achieved. According to the experiment's findings, the VAE-C-GAN performs better than the
current EEG classification system and has excellent potential for real-time applications.
Keywords
Seizure, Cramer Distance, Variational Autoencoder, Electroencephalogram, Epilepsy
Diagnosis and Detection.
R. S. Fisher et al., “Epileptic Seizures and Epilepsy: Definitions Proposed by the International League Against Epilepsy (ILAE) and the International Bureau for Epilepsy (IBE),” Epilepsia, vol. 46, no. 4, pp. 470–472, Mar. 2005, doi: 10.1111/j.0013-9580.2005.66104.x.
A. T. et al., “Automated Epileptic Seizure Detection Methods: A Review Study,” Epilepsy - Histological, Electroencephalographic and Psychological Aspects, Feb. 2012, doi: 10.5772/31597.
H. Ocak, “Automatic detection of epileptic seizures in EEG using discrete wavelet transform and approximate entropy,” Expert Systems with Applications, vol. 36, no. 2, pp. 2027–2036, Mar. 2009, doi: 10.1016/j.eswa.2007.12.065.
H. Takahashi, S. Takahashi, R. Kanzaki, and K. Kawai, “State-dependent precursors of seizures in correlation-based functional networks of electrocorticograms of patients with temporal lobe epilepsy,” Neurological Sciences, vol. 33, no. 6, pp. 1355–1364, Jan. 2012, doi: 10.1007/s10072-012-0949-5.
Z. Iscan, Z. Dokur, and T. Demiralp, “Classification of electroencephalogram signals with combined time and frequency features,” Expert Systems with Applications, vol. 38, no. 8, pp. 10499–10505, Aug. 2011, doi: 10.1016/j.eswa.2011.02.110.
K. Polat and S. Güneş, “Artificial immune recognition system with fuzzy resource allocation mechanism classifier, principal component analysis and FFT method based new hybrid automated identification system for classification of EEG signals,” Expert Systems with Applications, vol. 34, no. 3, pp. 2039–2048, Apr. 2008, doi: 10.1016/j.eswa.2007.02.009.
E. Alickovic, J. Kevric, and A. Subasi, “Performance evaluation of empirical mode decomposition, discrete wavelet transform, and wavelet packed decomposition for automated epileptic seizure detection and prediction,” Biomedical Signal Processing and Control, vol. 39, pp. 94–102, Jan. 2018, doi: 10.1016/j.bspc.2017.07.022.
A. R. Hassan and A. Subasi, “Automatic identification of epileptic seizures from EEG signals using linear programming boosting,” Computer Methods and Programs in Biomedicine, vol. 136, pp. 65–77, Nov. 2016, doi: 10.1016/j.cmpb.2016.08.013.
E. D. Übeyli, “Lyapunov exponents/probabilistic neural networks for analysis of EEG signals,” Expert Systems with Applications, vol. 37, no. 2, pp. 985–992, Mar. 2010, doi: 10.1016/j.eswa.2009.05.078.
M. A. Bin Altaf, C. Zhang, and J. Yoo, “A 16-Channel Patient-Specific Seizure Onset and Termination Detection SoC With Impedance-Adaptive Transcranial Electrical Stimulator,” IEEE Journal of Solid-State Circuits, vol. 50, no. 11, pp. 2728–2740, Nov. 2015, doi: 10.1109/jssc.2015.2482498.
C. Zhang, M. A. Bin Altaf, and J. Yoo, “Design and Implementation of an On-Chip Patient-Specific Closed-Loop Seizure Onset and Termination Detection System,” IEEE Journal of Biomedical and Health Informatics, vol. 20, no. 4, pp. 996–1007, Jul. 2016, doi: 10.1109/jbhi.2016.2553368.
A. Subasi, J. Kevric, and M. Abdullah Canbaz, “Epileptic seizure detection using hybrid machine learning methods,” Neural Computing and Applications, vol. 31, no. 1, pp. 317–325, Apr. 2017, doi: 10.1007/s00521-017-3003-y.
A. Emami, N. Kunii, T. Matsuo, T. Shinozaki, K. Kawai, and H. Takahashi, “Seizure detection by convolutional neural network-based analysis of scalp electroencephalography plot images,” NeuroImage: Clinical, vol. 22, p. 101684, 2019, doi: 10.1016/j.nicl.2019.101684.
T. Wen and Z. Zhang, “Deep Convolution Neural Network and Autoencoders-Based Unsupervised Feature Learning of EEG Signals,” IEEE Access, vol. 6, pp. 25399–25410, 2018, doi: 10.1109/access.2018.2833746.
S. Stober, A. Sternin, A. M. Owen and J. A. Grahn, “Deep Feature Learning for EEG Recordings,” 2015, arXiv preprint arXiv:1511.04306.
M. Golmohammadi, S. Ziyabari, V. Shah, S. L. de Diego, I. Obeid and J. Picone, “Deep Architectures for Automated Seizure Detection in Scalp EEGs,” 2017, arXiv preprint arXiv:1712.09776.
R. Socher, E. H. Huang, J. Pennington, A. Y. Ng and C. D. Manning, “Dynamic pooling and unfolding recursive autoencoders for paraphrase detection,” In NIPS, Vol. 24, pp. 801-809, Dec. 2011.
X. Yi, E. Walia, and P. Babyn, “Generative adversarial network in medical imaging: A review,” Medical Image Analysis, vol. 58, p. 101552, Dec. 2019, doi: 10.1016/j.media.2019.101552.
M. G. Bellemare, I. Danihelka, W. Dabney, S. Mohamed, B. Lakshminarayanan, S. Hoyer and R. Munos, “The Cramer Distance as a Solution to Biased Wasserstein Gradients,” 2017, arXiv preprint arXiv:1705.10743.
V. Gupta and R. B. Pachori, “Epileptic seizure identification using entropy of FBSE based EEG rhythms,” Biomedical Signal Processing and Control, vol. 53, p. 101569, Aug. 2019, doi: 10.1016/j.bspc.2019.101569.
Acknowledgements
We would like to thank Reviewers for taking the time and effort necessary to
review the manuscript. We sincerely appreciate all valuable comments and suggestions, which
helped us to improve the quality of the manuscript.
Funding
No funding was received to assist with the preparation of this manuscript.
Ethics declarations
Conflict of interest
The authors would like to thank to the reviewers for nice comments on the
manuscript.
Availability of data and materials
Data sharing is not applicable to this article as no new data were created or
analysed in this study.
Author information
Contributions
All authors have equal contribution in the paper and all authors have read and
agreed to the published version of the manuscript.
Corresponding author
Santhi Sri T
Santhi Sri T
Department of Computer Science and Engineering, Koneru Lakshmaiah Education
Foundation, Vaddeswaram, Andhra Pradesh, India.
Open Access This article is licensed under a Creative Commons Attribution
NoDerivs is a more restrictive license. It allows you to redistribute the material commercially
or
non-commercially but the user cannot make any changes whatsoever to the original, i.e. no
derivatives of the
original work. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/4.0/
Cite this article
Hayder M A Ghanimi, Santhi Sri T, Vijaya Bhaskar Sadu, Pachipala Yellamma, Surya
U and Kamal Poon, “Cramer Distance: A Deep Learning Approach for Better Epileptic Seizure
Prediction”, Journal of Machine and Computing, pp. 1069-1078, October 2024.
doi:10.53759/7669/jmc202404099.