Skip to main content
Log in

Epileptic seizure classification using ConvLSTM deep classifier and rotation short-time Fourier Transform

  • Original Research
  • Published:
Journal of Ambient Intelligence and Humanized Computing Aims and scope Submit manuscript

Abstract

Epilepsy is one of the world’s most common neurological disorders. Timely diagnosis of this disease improves the quality of life of patients. In this research, we used deep learning to diagnose and predict epileptic seizures. While Long Short Term Memory (LSTM) learn the concept of time and Convolutional Neural Network (CNN) learn images well, Convolutional Long Short Term Memories (ConvLSTMs) as a new type of LSTMs use both capabilities. How to prepare the input is important and effective in using deep neural networks. The use of raw signals also forces us to make full use of time-domain features. We employed the short-time Fourier transform (STFT) to use both time and frequency domain information. But the output images have a fixed resolution due to the fixed size of the window. We solved this problem by calculating STFT with different window sizes and adding a third dimension. Then, with rotation, we put the dimensions in positions appropriate to their meaning. So we provided a set of images that convey the concept of time to ConvLSTMs to learn the signal pattern and generalize it. We tested our deep learning model on dataset from the University of Bonn in Germany. We compared the findings with those obtained from the other state-of-the-art models. The obtained accuracies demonstrate that the proposed model is both effective and reliable.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15

Similar content being viewed by others

References

  • Abbasi MU, Rashad A, Basalamah A, Tariq M (2019) Detection of epilepsy seizures in neo-natal EEG Using LSTM architecture. IEEE Access 7:179074–179085

    Article  Google Scholar 

  • Acharya UR, Oh SL, Hagiwara Y, Tan JH, Adeli H (2018) Deep convolutional neural network for the automated detection and diagnosis of seizure using EEG signals. Comput Biol Med 100:270–278

    Article  Google Scholar 

  • Andrzejak RG, Lehnertz K, Mormann F, Rieke C, David P, Elger CE (2001) Indications of nonlinear deterministic and finite-dimensional structures in time series of brain electrical activity: dependence on recording region and brain state. Phys Rev E 64(6):061907

    Article  Google Scholar 

  • Ay B, Yildirim O, Talo M, Baloglu UB, Aydin G, Puthankattil SD, Acharya UR (2019) Automated depression detection using deep representation and sequence learning with EEG signals. J Med Syst 43(7):205

    Article  Google Scholar 

  • Barbu, T. (2013). Variational image denoising approach with diffusion porous media flow. Paper presented at the Abstract and Applied Analysis.

  • Bishop CM (1995) Neural networks for pattern recognition. Oxford University Press, Oxford

    MATH  Google Scholar 

  • Boyat AK, Joshi BK (2015) A review paper: noise models in digital image processing. arXiv preprint arXiv:1505.03489

  • Cabal-Yepez E, Garcia-Ramirez AG, Romero-Troncoso RJ, Garcia-Perez A, Osornio-Rios RA (2012) Reconfigurable monitoring system for time-frequency analysis on industrial equipment through STFT and DWT. IEEE Trans Industr Inf 9(2):760–771

    Article  Google Scholar 

  • Darjani N, Omranpour H (2020) Phase space elliptic density feature for epileptic EEG signals classification using metaheuristic optimization method. Knowl-Based Syst 205:106276

    Article  Google Scholar 

  • Elloumi M (2021) Deep learning for biomedical data analysis: techniques, approaches, and applications. Springer International Publishing, New York

    Book  Google Scholar 

  • Güler I, Übeyli ED (2005) Adaptive neuro-fuzzy inference system for classification of EEG signals using wavelet coefficients. J Neurosci Methods 148(2):113–121

    Article  Google Scholar 

  • Güler NF, Übeyli ED, Güler I (2005) Recurrent neural networks employing Lyapunov exponents for EEG signals classification. Expert Syst Appl 29(3):506–514

    Article  Google Scholar 

  • Hasib MM, Nayak T, Huang Y (2018) A hierarchical LSTM model with attention for modeling EEG non-stationarity for human decision prediction. In: Paper presented at the 2018 IEEE EMBS international conference on biomedical & health informatics (BHI)

  • Hassan AR, Subasi A (2016) Automatic identification of epileptic seizures from EEG signals using linear programming boosting. Comput Methods Programs Biomed 136:65–77

    Article  Google Scholar 

  • Hastie T, Tibshirani R, Friedman J (2013) The elements of statistical learning: data mining, inference, and prediction. Springer, New York

    MATH  Google Scholar 

  • Heinzel G, Rüdiger A, Schilling R (2002) Spectrum and spectral density estimation by the Discrete Fourier transform (DFT), including a comprehensive list of window functions and some new at-top windows

  • Hiran KK, Jain RK, Lakhwani K, Doshi R (2021) Machine learning: master supervised and unsupervised learning algorithms with real examples, English. BPB Publications, Noida

    Google Scholar 

  • Hosseini M-P, Soltanian-Zadeh H, Elisevich K, Pompili D (2016) Cloud-based deep learning of big eeg data for epileptic seizure prediction. In: Paper presented at the 2016 IEEE global conference on signal and information processing (GlobalSIP)

  • Hu L, Zhang Z (2019) EEG signal processing and feature extraction. Springer, New York

    Book  Google Scholar 

  • Ilakiyaselvan N, Khan AN, Shahina A (2020) Deep learning approach to detect seizure using reconstructed phase space images. J Biomed Res 34(3):240

    Article  Google Scholar 

  • Jia J, Goparaju B, Song J, Zhang R, Westover MB (2017) Automated identification of epileptic seizures in EEG signals based on phase space representation and statistical features in the CEEMD domain. Biomed Signal Process Control 38:148–157

    Article  Google Scholar 

  • Jurado F, Saenz JR (2002) Comparison between discrete STFT and wavelets for the analysis of power quality events. Electric Power Syst Res 62(3):183–190

    Article  Google Scholar 

  • Kim S, Hong S, Joh M, Song S-K (2017) Deeprain: Convlstm network for precipitation prediction using multichannel radar data. arXiv preprint arXiv:1711.02316

  • Kıymık MK, Güler İ, Dizibüyük A, Akın M (2005) Comparison of STFT and wavelet transform methods in determining epileptic seizure activity in EEG signals for real-time application. Comput Biol Med 35(7):603–616

    Article  Google Scholar 

  • Kumar Y, Dewal M, Anand R (2014) Epileptic seizures detection in EEG using DWT-based ApEn and artificial neural network. SIViP 8(7):1323–1334

    Article  Google Scholar 

  • Li Y, Cui W-G, Huang H, Guo Y-Z, Li K, Tan T (2019) Epileptic seizure detection in EEG signals using sparse multiscale radial basis function networks and the Fisher vector approach. Knowl-Based Syst 164:96–106

    Article  Google Scholar 

  • Patidar S, Panigrahi T (2017) Detection of epileptic seizure using Kraskov entropy applied on tunable-Q wavelet transform of EEG signals. Biomed Signal Process Control 34:74–80

    Article  Google Scholar 

  • Polat K, Güneş S (2007) Classification of epileptiform EEG using a hybrid system based on decision tree classifier and fast Fourier transform. Appl Math Comput 187(2):1017–1026

    MathSciNet  MATH  Google Scholar 

  • Reed R, MarksII RJ (1999) Neural smithing: supervised learning in feedforward artificial neural networks. Mit Press, New York

    Book  Google Scholar 

  • Sanei S, Chambers J (2007) Introduction to EEG. EEG signal processing. Wiley, West Sussex, pp 1–34

    Chapter  Google Scholar 

  • Shahbazi M, Aghajan H (2018) A generalizable model for seizure prediction based on deep learning using cnn-lstm architecture. In: Paper presented at the 2018 IEEE global conference on signal and information processing (GlobalSIP)

  • Sharma M, Pachori RB, Acharya UR (2017) A new approach to characterize epileptic seizures using analytic time-frequency flexible wavelet transform and fractal dimension. Pattern Recogn Lett 94:172–179

    Article  Google Scholar 

  • Sharmila A, Geethanjali P (2016) DWT based detection of epileptic seizure from EEG signals using naive Bayes and k-NN classifiers. IEEE Access 4:7716–7727

    Article  Google Scholar 

  • Shi X, Chen Z, Wang H, Yeung D-Y, Wong W-K, Woo W-C (2015) Convolutional LSTM network: A machine learning approach for precipitation nowcasting. Adv Neural Inf Process Syst 28

  • Shi T, Ren L, Cui W (2019) Feature recognition of motor imaging EEG signals based on deep learning. Personal Ubiquitous Comput 1–12

  • Song H, Wang W, Zhao S, Shen J, Lam K-M (2018) Pyramid dilated deeper convlstm for video salient object detection. In: Paper presented at the Proceedings of the European conference on computer vision (ECCV)

  • Srinivasan V, Eswaran C, Sriraam N (2007) Approximate entropy-based epileptic EEG detection using artificial neural networks. IEEE Trans Inf Technol Biomed 11(3):288–295

    Article  Google Scholar 

  • Subasi A, Gursoy MI (2010) EEG signal classification using PCA, ICA, LDA and support vector machines. Expert Syst Appl 37(12):8659–8666

    Article  Google Scholar 

  • Sun X, Wang J, Bertino E (2020) Artificial intelligence and security: 6th international conference, ICAIS 2020, Hohhot, China, July 17–20, 2020, Proceedings. Part III: Springer

  • Swami P, Gandhi TK, Panigrahi BK, Tripathi M, Anand S (2016) A novel robust diagnostic model to detect seizures in electroencephalography. Expert Syst Appl 56:116–130

    Article  Google Scholar 

  • Tawfik NS, Youssef SM, Kholief M (2016) A hybrid automated detection of epileptic seizures in EEG records. Comput Electr Eng 53:177–190

    Article  Google Scholar 

  • Thodoroff P, Pineau J, Lim A (2016) Learning robust features using deep learning for automatic seizure detection. In: Paper presented at the Machine learning for healthcare conference

  • Tsiouris ΚΜ, Pezoulas VC, Zervakis M, Konitsiotis S, Koutsouris DD, Fotiadis DI (2018) A long short-term memory deep learning network for the prediction of epileptic seizures using EEG signals. Comput Biol Med 99:24–37

    Article  Google Scholar 

  • Ullah I, Hussain M, Aboalsamh H (2018) An automated system for epilepsy detection using EEG brain signals based on deep learning approach. Expert Syst Appl 107:61–71

    Article  Google Scholar 

  • Wang J, Feng Z, Lu N, Luo J (2018) Toward optimal feature and time segment selection by divergence method for EEG signals classification. Comput Biol Med 97:161–170

    Article  Google Scholar 

  • Wang X, Gong G, Li N, Qiu S (2019) Detection analysis of epileptic EEG using a novel random forest model combined with grid search optimization. Front Hum Neurosci 13:52

    Article  Google Scholar 

  • (WHO), W. H. O (2019) Epilepsy. https://www.who.int/en/news-room/fact-sheets/detail/epilepsy. Accessed 3 Jan 2021

  • Xu W, Chen W, Liang Y (2018) Feasibility study on the least square method for fitting non-Gaussian noise data. Physica A 492:1917–1930

    Article  MATH  Google Scholar 

  • Xu G, Ren T, Chen Y, Che W (2020) A One-Dimensional CNN-LSTM Model for Epileptic Seizure Recognition Using EEG Signal Analysis. Front Neurosci 14:1253

    Article  Google Scholar 

  • Zhou M, Tian C, Cao R, Wang B, Niu Y, Hu T et al (2018) Epileptic seizure detection based on EEG signals and CNN. Front Neuroinform 12:95

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hesam Omranpour.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Chalaki, M., Omranpour, H. Epileptic seizure classification using ConvLSTM deep classifier and rotation short-time Fourier Transform. J Ambient Intell Human Comput 14, 3809–3825 (2023). https://doi.org/10.1007/s12652-022-04204-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s12652-022-04204-1

Keywords

Navigation