Abstract
Epilepsy is a chronic nervous disorder, which disturbs the normal daily routine of an epileptic patient due to sudden seizure onset. In this era of smart healthcare, automated seizure prediction techniques could assist the patients, their family, and medical personnel to control and manage these seizures. This paper proposes a spectral feature-based two-layer LSTM network model for automatic prediction of epileptic seizures using long-term multichannel EEG signals. This model makes use of spectral power and mean spectrum amplitude features of delta, theta, alpha, beta, and gamma bands of 23-channel EEG spectrum for this task. Initially, the proposed single-layer and two-layer LSTM models have been evaluated for EEG segments having durations in the range of 5–50 s for 24 epileptic subjects, out of which EEG segments of 30 s duration are found to be useful for accurate seizure prediction using two-layer LSTM model. Afterwards, to validate the performance of this classifier, the spectral features of 30 s duration EEG segments are fed to random forest, decision tree, k-nearest neighbour, support vector machine, and naive Bayes classifiers, which are empowered with grid search-based parameter estimation. Finally, the iterative simulation results and comparison with recently published existing techniques firmly reveal that the proposed two-layer LSTM model with EEG spectral features is an effective technique for accurately predicting seizures in real time with an average classification accuracy of 98.14%, average sensitivity of 98.51%, and average specificity of 97.78%, thereby enabling the epileptic patients to have a better quality of life.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Introduction
Epilepsy is a commonly occurring chronic nervous disorder characterized by the occurrence of spontaneous and sudden seizures [1]. This neurological disorder affects the lives of all age groups from infants to old age persons, covering approximately 50 million people around the world [2]. This count is getting worse in developing countries like India. As per statistical figures of Indian Epilepsy Centre, New Delhi, approximately 10 million Indian population is suffering from this disorder and this number is increasing day-by-day with the annual addition of 0.5–1 million new epileptic patients [3]. This fatal disorder may result in vital medical symptoms like abnormal behaviour, muscle cramps, strange sensations, and loss of consciousness, etc., which could lead to major injuries, brain damage or deaths of its patients in road accidents or during working in hazardous work environments [1]. Despite occurring at low frequency, these uncontrolled seizures critically influence the normal quality of life of epileptic patients. In general, more than 99.95% times, epileptic patients are not suffering from any seizure and should be entitled to live normal life, which could also reduce the socioeconomic burden on patients and their families [4]. This idea could be achieved by predicting epileptic seizures well before their actual onset. It would help in saving the lives of patients by sending timely alerts, thereby enabling them to take precautionary measures.
Epileptic seizures cause a rapid upsurge in electrical disturbances in the patient’s brain, which can be measured using the electroencephalogram (EEG) technique [5]. Usually, EEG signal recordings are examined by neurologists to determine different stages of epilepsy like ictal (on-going seizures), preictal (just before seizure onset), post-ictal (after seizure onset period), and interictal (in-between seizures) [6]. However, this process is arduous and time-consuming, which leads to the need for an automatic epileptic seizure prediction system [7, 8].
Nowadays, Internet of things (IoT) technologies have started playing a key role in providing solutions to various health-related problems with the help of machine learning algorithms being deployed at cloud-based servers. These healthcare solutions may include elderly care [9], remote healthcare [10], fitness programs [11], detection and prognosis of neurological and mental disorders like Alzheimer, epilepsy, autism spectrum disorder and schizophrenia, etc. [12,13,14,15,16,17]. Deep learning [18] is another paradigm in this regard, which is capable of handling the large volume of signal data generated by wearable IoT sensing devices like EEG headsets for epilepsy [19]. The algorithms based on deep learning techniques overcome the limitations of traditional machine learning algorithms by offering less processing time and capability of handling big data of multichannel biomedical signals [20]. Consequently, these techniques play a promising role in providing real-time solutions in healthcare sector.
To provide a smart solution to the patients with epilepsy, the present paper proposes a spectral feature-based two-layer long short-term memory (LSTM) model [21] for automated prediction of epileptic seizures. This approach makes use of long-term CHB-MIT [22] EEG database of 24 cases of epilepsy, collected at Children’s Hospital, Boston. First of all, the raw 23 channel EEG signals being recorded from the patient’s scalp are pre-processed, filtered, and segmented into short-duration segments in the range of 5–50 s. Then, these segments are converted into frequency domain using Fast Fourier transform (FFT), and are separated into five frequency bands for accurate interpretation of functional and behavioural features of a complex structure of the brain during epileptic seizures [23]. The given frequency bands of 23 channel EEG signals are characterized by extracting two distinct features—spectral power and mean spectrum amplitude. Initially, this work proposes single-layer LSTM (1L-LSTM) and two-layer LSTM (2L-LSTM) models for seizure prediction, which utilizes spectral features of various sub-bands of given EEG segments. This analysis of 1L-LSTM and 2L-LSTM for different duration values of EEG segments reveals the effectiveness of 30 s duration EEG segments for seizure prediction using 2L-LSTM. Furthermore, to ensure the effectiveness of the proposed 2L-LSTM model, its performance has been compared with that of decision tree, random forest, k-nearest neighbour (kNN), support vector machine (SVM), naive Bayes, and 1L-LSTM classifiers for EEG segments of 30 s. These traditional machine learning classifiers make use of grid-search technique for estimating hyperparameters to improve their performance. The overall analysis of simulation results of given classifiers and comparison with existing methods confirm the utility of the proposed spectral features based two-layer LSTM model (2L-LSTM) for accurate and real-time seizure prediction in epileptic patients.
This paper has been divided into different sections. Section 1 gives the introduction of the problem of epileptic seizures, the use of modern technologies to predict seizures, and the proposed model for automatic prediction of seizures. The related work done by various researchers in the field of automatic prediction of seizures has been discussed in Sect. 2. In addition, the methodology implemented for seizure prediction using the proposed approach has been explained step-by-step in Sect. 3. Moreover, Sect. 4 provides analysis and discussion of the results obtained after the implementation of the proposed model. Finally, the conclusions are made in Sect. 5.
Related work
This section discusses research work done by various researchers during recent years in the field of automatic prediction of epileptic seizures. The publications, in which CHB-MIT EEG database has been employed for seizure prediction using traditional machine learning and deep learning techniques, are given the key focus.
A traditional machine learning-based approach presented by Usman et. al. [24] discusses the empirical mode decomposition method for extraction of time- and frequency-domain features from 2 s duration EEG segments. These features include features of power spectral density such as spectral centroid, variational coefficient, spectral skew, and combined feature set consisting of four statistical moments and three frequency moments of intrinsic mode functions. It provides classification results using SVM for prediction of epileptic seizures with a sensitivity of 92.23%. A similar approach [25] makes use of graph theory, and time-domain and frequency-domain features of 5 s duration EEG segments to train SVM algorithm for the classification of preictal and interictal EEG stages in epileptic patients. This approach provides satisfactory results of seizure prediction with a sensitivity of 87.75% and specificity of 87.75%.
In an effort to employ unsupervised learning techniques for automatic epileptic seizure prediction, Kitano et al. [26] have presented a self-organising map (SOM) algorithm along with a polling-based decision process for EEG segments of 4 s, which are pre-processed using wavelet transform. This method has obtained classification results with an accuracy of 91%, sensitivity of 98%, and specificity of 88%. In addition to this approach, an extreme learning machine (ELM) approach [27] has been employed for prediction of seizures, which takes into account bag-of-wave feature extraction technique, and achieves classification of seizure stages with sensitivity of 88.24%.
Furthermore, some researchers have started harnessing the power of deep learning algorithms for prediction of epileptic seizures. In this regard, Truong et al. [28] have proposed a convolutional neural network (CNN)-based generalized epileptic seizure prediction approach with short-time Fourier transform-based pre-processing of 30 s duration EEG segments and have achieved the results of seizure prediction with a sensitivity of 81.2%. A similar approach presented by Hu et al. [29] makes use of CNN for feature extraction from the mean amplitude spectrum of 19 frequency bands taken from 15-channel EEG segments of 2 s, which classifies seizure stages using SVM classifier with a sensitivity of 86.25%. A bidirectional long-term memory network (LSTM) model is another deep learning-based seizure prediction system [30], in which a two-dimensional stacked convolutional autoencoder has been employed for spatial feature extraction. This model provides seizure prediction results with sensitivity of 94.6%.
In the same concern, Duan et al. [31] present an idea of using bi-direction gated recurrent unit (Bi-GRU), which is also a type of recurrent neural network, to predict seizure states effectively. This model employs CNN algorithm for extracting features from correlation coefficients among electrodes for eight distinct sub-bands of multi-time scale EEG segments having segment duration of 1 s, 2 s, and 3 s. It provides classification results with an accuracy of 94.8%, sensitivity of 91.7%, and specificity of 97.7%. In addition, Usman et al. [32] make use of a CNN model for extraction of features from EEG segments of 29 s duration, which are decomposed using empirical mode decomposition. It performs classification using a single-layer LSTM classifier and provides classification results with a sensitivity of 93% and specificity of 92.5%. Similarly, Zhang et al. [33] also employs a CNN model fed with synchronization features such as Pearson correlation coefficients to predict epileptic seizures. These features are obtained from EEG segments of 8 s, which provides classification results with an accuracy of 89/98%.
The comprehensive review of existing seizure prediction techniques reveal that most of these techniques are dependent upon complex feature extraction and pre-processing methods and classification using traditional machine learning as well as deep learning techniques. Also, some of these existing techniques show relatively poor classification performance with low values of accuracy, sensitivity, or specificity. Hence, there exists an extreme requirement of providing accurate seizure prediction, which could be achieved by applying deep learning-based models fed with simple spectral domain features. Therefore, the present work utilizes an LSTM-based approach in the field of epileptic seizure prediction, which makes use of spectral power and mean spectrum amplitude features of five frequency bands taken from 23-channel EEG segments of shorter durations. This model tends to predict seizure stages more accurately for its effective utilization in real-time scenarios.
Materials and methods
This section discusses the procedure adopted for the implementation of automatic epileptic seizure prediction. This procedure primarily involves two phases: pre-processing and classification. The pre-processing phase consists of filtering and segmentation of raw multichannel EEG signals followed by transformation into frequency domain using Fast Fourier transform (FFT), frequency band separation, and feature extraction. The extracted features are used for training and testing of the proposed LSTM models as well as other well-known models in classification phase. The whole process is depicted in Fig. 1. The dataset applied and various implementation steps are discussed in the following subsections.
Dataset
The proposed model takes into account long-term CHB-MIT EEG dataset [22] of 24 cases taken from subjects with intractable seizures. This dataset has been collected at Children’s Hospital, Boston, and is openly available at online web portal PhysioNet [34]. As per information provided on this portal, out of 24 EEG recordings, the recordings of the first 23 cases are taken from 22 subjects having 5 males with an age group of 3–22 years and 17 females with an age group of 1.5–19 years. These EEG signals are collected from the patient’s scalp using EEG electrodes positioned with an international 10–20 system of electrode placement [35] and are sampled at a sampling rate of 256 samples per second having 16-bit resolution. Most of the samples contain 23 channels with some exceptions of 24 or 26 channels.
The present research work considers 23 channels of EEG signals for all 24 cases. The long sequence of EEG samples contains seizure intervals, which are mentioned in the annotation files of the dataset. These seizure intervals are termed as ictal stages. The signals after the ictal stage are termed as post-ictal stage. The proposed model assumes an intervention period (IP) of 5 min just before the seizure onset, which could be used for the generation and transmission of alert messages to epileptic patients, their family members, and hospitals. In this work, a preictal period of 30 min has been considered before IP [36]. The interictal stages are assumed at least 4 h before and/or after the ictal stage. A multichannel EEG signal labelled with different seizure stages is shown in Fig. 2.
The given dataset after time-domain segmentation into different seizure class labels produces an unbalanced dataset having a large number of interictal classes followed by preictal and post-ictal classes, and very few classes for ictal stage. Since the prediction of epileptic seizures is primarily dependent upon detection of preictal stage among interictal or normal EEG samples. Therefore, a balanced dataset consisting of an equal number of interictal and preictal class labels only has been taken into consideration in the present work.
Band-pass filtering
The scalp EEG signals sensed from epileptic patients are required to be free from different kinds of artefacts and noises before its processing for seizure prediction [37], which leads to the need for precise filtering. Therefore, given multichannel EEG signals are filtered using Butterworth bandpass filter [38] with a lower cut-off frequency of 0.1 Hz and higher cut-off frequency of 127 Hz. This method is a widely popular filtering technique for the analysis of biomedical signals due to its flat and ripple-free frequency response in passband [39].
EEG segmentation
The variation in statistical features of EEG signals over a time interval makes them non-stationary in nature [13]. The solution to this problem is to divide a long sequence of EEG signals into short-duration segments, which are assumed to be pseudo-stationary having similar statistical time and frequency features [40]. The present work also employs this approach by dividing EEG signals of different seizure intervals into shorter duration segments, such as 5 s, 10 s, 15 s, 20 s, 25 s, 30 s, 35 s, 40 s, 45 s, and 50 s duration segments without any over-lapping. Although, the EEG signals provided in CHB-MIT dataset have time durations ranging from several minutes to hours, yet the present work takes into account a maximum EEG segment duration of 50 s only. This is because of the reason that a further increase in segment duration results in the generation of few EEG samples only, which would not be adequate for appropriate training, testing, and validation of the proposed classifiers. Moreover, these shorter duration segments are also advantageous in terms of the requirement of low computational power for processing, lower transmission bandwidth, and lesser storage requirement on local or cloud-based storage.
Fast Fourier transform
The transformation of time-domain EEG signals into frequency domain emphasizes the epileptic spikes in spectral domain [41], which are useful for accurate and speedy prediction of epileptic seizures. Therefore, keeping in view the significance of time-frequency transformation for EEG signals, the present work makes use of fast Fourier transform algorithm (FFT) for converting multichannel time-domain EEG signals into frequency domain.
Frequency band separation
The EEG signals can be subdivided into different sub-bands in spectral domain, which include delta (\(\delta \)), theta (\(\theta \)), alpha (\(\alpha \)), beta (\(\beta \)), and gamma (\(\gamma \)) bands [42]. Epileptic seizures prompt dynamic variations in the characteristics of these sub-bands, which further describes the changes in functional and behavioural characteristics of the complex structure of an epileptic patient’s brain [43]. These changing characteristics tend to provide descriptors for prediction of epileptic seizures. Therefore, the present work takes into account five spectral bands of EEG signals for the task of seizure prediction having frequency range for delta (0.1–4 Hz), theta (4–8 Hz), alpha (8–12 Hz), beta (12–30 Hz), and gamma bands (\(> 30\) Hz) [44].
Feature extraction
The feature extraction is an important step for extracting distinct features from different frequency bands of EEG signal. These features characterize different epileptic stages and act as descriptors for the prediction of epileptic seizures. The present work takes into account two features for different EEG bands, which include spectral power and mean spectrum amplitude [45, 46].
For a N-point signal x(n) with discrete Fourier transform \(X_p(k)\) of its particular frequency band, the spectral power in \({\mu V}^2\)/Hz can be expressed by Eq. 1
where \(X_p^*(k)\) is the complex conjugate of \(X_p(k)\).
Similarly, the mean spectrum amplitude (\({\mu V}\) /Hz) in spectral domain for a signal x(n) can be expressed by Eq. 2.
Spectral power and mean spectrum amplitude for different frequency bands of an EEG signal are shown in Fig. 3. This figure depicts the variation of both features for interictal and preictal stages of an epileptic patient.
Classification using LSTM network
Long short-term memory networks (LSTM) are a special type of recurrent neural networks (RNN), which are capable of learning long term dependencies in given data sequences by memorizing the information for longer period, thus avoiding the vanishing gradient problem of RNN [47]. LSTM networks are initially introduced by Hochreiter and Schmidhuber [21]. These networks are widely used in various classification problems of times series data, speech, audio, text data and biomedical signals, etc. [48, 49].
The architecture of LSTM is defined by a basic LSTM cell (Fig. 4), which comprises three gates for controlling the flow of information from one cell state to other. These gates include forget gate, input gate, and output gate [21, 50]. All three gates make use of sigmoid activation \(\sigma \) for providing a decision to control the flow of information. The forget gate decides whether a piece of information in the given data sample should be retained or forgotten. It considers current input signal \(x_t\) and previous output sequence \(y_{t-1}\) in the cell state \(C_{t-1}\) to provide output \(f_t\) between 0 and 1, where 0 represents completely forgetting the information, and 1 is meant for completely retaining the information. The input gate provides a decision about information being stored in the current cell state \(C_t\) by multiplying its output \(i_t\) with the output \(\tilde{\text {C}}_t\) of \(\tanh \) activation layer. Similarly, the output gate decides the flow of fraction of information \(y_t\) in \(C_t\) at the output of LSTM cell by combining its output \(o_t\) with the output of another \(\tanh \) activation layer. Mathematically, the operation of three gates of an LSTM cell to provide output \(y_t\) in cell state \(C_t\) has been expressed by the following equations: [50].
where, W and b are the weight matrices and bias factors for different gates of LSTM cell.
In this work, single-layer LSTM (1L-LSTM) and two-layer LSTM (2L-LSTM) models are taken into consideration for the task of seizure prediction. The architectural view of the single-layer LSTM model (1L-LSTM) and two-layer LSTM model (2L-LSTM) employed in this work for automated epileptic seizure prediction have been visualized in Figs. 5, 6. 1L-LSTM architecture consists of a single LSTM layer having 50 LSTM units, a dropout layer with probability \(p=0.25\), and a dense output layer having ‘sigmoid’ activation function. Similarly, 2L-LSTM architecture is an upgraded version of 1L-LSTM consisting of two LSTM layers with 128 and 64 LSTM units, respectively, followed by a dropout layer (\(p=0.25\)), a dense fully connected layer having 16 neurons and a dense output layer with ‘sigmoid’ activation for binary classification of interictal and preictal stages of seizures. The input layer in both models is presented by an input vector of (10 \(\times \) 23), where a total of ten features have been extracted from five frequency bands of 23 channel EEG signal. These models utilize a batch size of 32 input instances for training using ‘rmsprop’ optimizer and a loss function of binary cross-entropy. To achieve optimum accuracy, 1L-LSTM and 2L-LSTM models are trained for 100 and 200 epochs, respectively.
Apart from using the above-mentioned LSTM models, the present work also considers decision tree (DT), random forest (RF), k-nearest neighbour (kNN), support vector machine (SVM), and naive Bayes (NB) classifiers for prediction of seizure activities. These classifiers are empowered with grid search-based parameter estimation [51] for hyper-tuning of different parameters. The input feature map for these classifiers has been modified by concatenating spectral features of different EEG channels.
Results and discussion
This section discusses the simulation results of the proposed LSTM models for automatic prediction of epileptic seizures. The proposed approach for seizure prediction has been implemented on a laptop having a configuration of Intel i7 8th generation processor, 16 GB RAM, Nvidia GEFORCE GTX 1060 graphics processing unit (GPU) of 6 GB and Windows 10 operating system using Python programming language.
In this work, EEG signals are segmented into various short-duration segments with duration in the range of 5–50 s. Then, spectral power and mean spectrum amplitude features are extracted from five frequency bands of each EEG segment, leading to a total of 10 features from each of 23 channels of these segments. Thus, this pre-processing provides an input feature map of 10 \(\times \) 23 for a single EEG segment. In the process of training and testing of the proposed LSTM models, the given datasets for each subject are divided into two subsets, consisting of 90% instances for training and 10% instances for testing purposes. The training datasets further include 10% instances for validation of the trained classifiers.
The present work makes use of different performance measures like classification accuracy, sensitivity, specificity, and F1 score [12, 52] to analyze the performance of given classifiers. It involves the performance evaluation of the proposed LSTM classifiers for EEG segments of different duration to visualize the impact of EEG segment duration on their classification accuracy for effective classification of interictal and preictal seizure stages. This work takes into account a tenfold validation approach for seizure stage classification in each of 24 epileptic patients to ensure the statistical viability of the proposed classification models. Also, the effectiveness of the proposed models has been analyzed by taking the average values of results obtained from 24 patients for EEG segments of different durations.
Table 1 shows the classification performance of 1L-LSTM for 24 epileptic patients in terms of average values of given performance measures for various EEG segment durations. It is evident from this table that the given single-layer LSTM model provides maximum classification accuracy of 97.34% with a least standard deviation of ±2.77%, maximum value of specificity of 98.25% with a minimum standard deviation of ±2.86%, and maximum average F1 score of 97.2% with standard deviation \(of \pm 3.1\)% in case of input EEG segments of \(50\,s\) duration. Moreover, it provides maximum values of average sensitivity of 97.13% ± 5.13% for EEG segment duration of \(45\,s\). Similarly, for EEG segment duration of \(30\,s\), 1L-LSTM model provides average classification accuracy of 96.22% ± 3.83%, average sensitivity of 96.02% ± 5.57%, average specificity of 96.5% ± 4.81%, and average F1 score of 95.95% ± 4.34%. Thus, it is obvious from this discussion that the proposed LSTM architecture provides an accurate classification of seizure stages for EEG segment of \(50\,s\) duration. However, there exists a marginal variation in values of given performance measures for different EEG segment durations.
Afterwards, another LSTM model, i.e., two-layer LSTM model (2L-LSTM), has been taken into consideration using the spectral feature maps of different duration EEG segments. Table 2 depicts the performance analysis of 2L-LSTM model for EEG segments of different durations in terms of average values of various performance measures obtained from the classification results of 24 epileptic patients. As shown in this table, 2L-LSTM classifier provides maximum average classification of 98.14% with standard deviation \(of \pm 2.5\)%, average sensitivity of 98.51% ± 2.55%, average specificity of 97.78% ± 3.37%, and average F1 score of 98.23% ± 2.3% for 24 epileptic patients in case of EEG segment duration of \(30\,s\). Moreover, this classifier gives average accuracy of 97.45% ± 2.5%, average sensitivity of 97.6% ± 3.5%, average specificity of 97.5% ± 3.6%, and average F1 score of 97.26% ± 2.8% for EEG segments of 50 s duration. Furthermore, the classification performance of 1L-LSTM and 2L-LSTM models has been compared for EEG segments of different durations in terms of average classification accuracy of 24 patients, which is visible in Fig. 7. From this figure, it is evident that 2L-LSTM model achieves maximum average classification accuracy of 98.14% for segment duration of 30 s for 24 epileptic patients.
In addition, the performance of the proposed 2L-LSTM model has also been compared with 1L-LSTM, decision tree (DT), random forest (RF), kNN, SVM, and naive Bayes (NB) classifiers for EEG segment duration of 30 s. This performance analysis is illustrated in Fig. 8 for average values of performance measures obtained from 24 patients with epileptic seizures. This figure clearly demonstrates that the modified architecture of LSTM, i.e., 2L-LSTM, surpasses all other classifiers with a maximum classification accuracy of 98.14%, sensitivity of 98.51%, specificity of 97.78%, and F1 score of 98.23%. On the other hand, random forest, 1L-LSTM, SVM, decision tree, kNN, and naive Bayes classifiers have attained classification accuracies of 97.3%, 96.2%, 96.06%, 93.08%, 92.56%, and 80.09%, respectively. Thus, it has been proved from this analysis that the proposed two-layer LSTM model provides highly accurate results for the prediction of epileptic seizures as compared to other classifiers for spectral features of 30 s duration EEG segments.
Moreover, Table 3 depicts the performance of the proposed two-layer LSTM model for seizure prediction in case of 24 individual patients or subjects by employing 30 s duration segments. This table shows the range of classification accuracy for 93.02% for subject ID 4–100% for 14 different subjects. The results of sensitivity range from 92% for subject ID 4–100% for 17 different subjects. Similarly, specificity values range from 91.66% for subject ID 10–100% for 16 different subjects out of 24 subjects, and the F1 score ranges from 93.88% for subject ID 4–100% for 14 different subjects.
To ensure the stability of the proposed LSTM models for prediction of epileptic seizures, the performance of these models has also been illustrated in terms of loss and accuracy curves with respect to epochs used during the training process (refer to Fig. 9). As shown in Fig. 9a, c, loss curves for 1L-LSTM and 2L-LSTM decrease exponentially with increasing epochs and converge to the least value of loss for training and validation datasets. Similarly, Fig. 9b, d illustrates an exponential rise in classification accuracy with respect to epochs, which attain a flat response with an increase in the number of epochs for same datasets. However, it is also evident from these curves that 2L-LSTM exhibits more stable characteristics with low variations in accuracy and loss curves than those in 1L-LSTM model. Thus, this analysis assures the stable performance of 2L-LSTM model over 1L-LSTM model for accurate seizure prediction.
Furthermore, the results of the proposed model for prediction of epileptic seizures are also compared with other techniques discussed in recently published research papers, as shown in Table 4. This table shows the performance of existing seizure prediction techniques in terms of various performance measures, and also provides a brief overview of signal processing and feature extraction methods, EEG segment duration, and classifiers employed for the desired task. As shown in this table, some researchers have made use of traditional machine learning algorithms in association with complex feature extraction techniques to obtain seizure stage classification. These algorithms include SVM [24, 25, 29], ELM [27], and self-organising maps (SOM) [26]. Similarly, some of the researchers have employed deep learning techniques for feature extraction and classification tasks. In this regard, Truong et al. [28] made use of a six-layer CNN model for seizure prediction using 30 s duration EEG segments, which were transformed using STFT. This model was made of three convolution layers, a flatten layer and two fully connected layers. In addition, Abdelhameed and Bayoumi [30] took into account 2D convolutional autoencoder model for feature extraction from 4 s duration EEG segments. This model was comprised of four convolution layers and three upsampling layers. It used Bi-LSTM classifier consisting of a single LSTM layer, for seizure classification. Similarly, Hu et al. [29] employed another CNN architecture for feature extraction from EEG segments of \(2\,s\) duration, which was made of two pairs of convolution and max-pooling layers, followed by two fully connected layers. The classification was accomplished from the extracted features using SVM. Moreover, Usman et al. [32] also presented a CNN-based feature extraction technique from decomposed EEG segments of \(29\,s\) duration using empirical mode decomposition. The proposed CNN architecture contained three groups of convolution and max-pooling layers, optimized using batch normalization and ‘leakyRelu’ techniques and a flatten layer. This technique performed classification using a single-layer LSTM model consisting of 256 LSTM units. In the same concern, Zhang et al. [33] employed a CNN model consisting of three convolution layers, one fully connected layer, and an output layer of size 2 having ’Relu‘ activation. This model used synchronization features obtained from EEG segments of 8 s for seizure prediction.
After the thorough analysis of the existing techniques mentioned in Table 4, it is quite apparent that the proposed two-layer LSTM model provides better classification results for epileptic seizure prediction among given techniques for EEG segments of 30 s duration in terms of various performance measures. The overall analysis of simulation results and their comparative study with the latest techniques published in the recent literature evidently portrays the usefulness of the proposed two-layer LSTM architecture for accurate and real-time prediction of epileptic seizures using spectral power and mean spectrum amplitude features of short-duration EEG segments.
Conclusion
The present paper proposes a two-layer LSTM model, which takes into account spectral features of multichannel EEG signal segments for seizure prediction in epileptic patients. The spectral features, including spectral power and mean spectrum amplitude, are extracted from delta, theta, alpha, beta, and gamma sub-bands of EEG segments having different duration. Initially, the performance of the proposed single-layer and two-layer LSTM models has been analyzed for input EEG segments of different duration values in the range of 5–50 s. This analysis shows that the given models perform optimally for EEG segments of different durations and a maximum accuracy has been achieved by a two-layer LSTM model at a segment duration of 30 s. Then, the results of the proposed two-layer LSTM model are validated by comparing its performance with that of random forest, decision tree, SVM, kNN, Naive Bayes, and single-layer LSTM classifiers fed with spectral features of 30 s duration EEG segments. Also, the performance of the proposed two-layer LSTM model has been evaluated through its comparison with other state-of-the-art techniques mentioned in the recent literature. To conclude, it is obvious that the proposed two-layer LSTM network model with spectral features inputs of 30 s duration multichannel EEG segments is a suitable technique for accurate and real-time prediction of epileptic seizures.
References
NINDS (2021) Focus on Epilepsy Resarch: National Institute of Neurological Disorders and Stroke. https://www.ninds.nih.gov/Current-Research/Focus-Research/Focus-Epilepsy. Accessed 23 Feb 2021
WHO (2021) Epilepsy: World Health Organization. https://www.who.int/mentalhealth/. Accessed 05 Mar 2021
IEC (2019) What is Epilepsy: Indian Epilepsy Centre, New Delhi. http://www.indianepilepsycentre.com/what-is-epilepsy.html. Accessed 20 Feb 2021
Freestone DR, Karoly PJ, Cook MJ (2017) A forward-looking review of seizure prediction. Curr Opin Neurol 30(2):167–173
Litt B, Esteller R, Echauz J, D’Alessandro M, Shor R, Henry T, Pennell P, Epstein C, Bakay R, Dichter M, Vachtsevanos G (2001) Epileptic seizures may begin hours in advance of clinical onset: a report of five patients. Neuron 30(1):51–64. https://doi.org/10.1016/S0896-6273(01)00262-8
Ullah I, Hussain M, Aboalsamh H et al (2018) An automated system for epilepsy detection using EEG brain signals based on deep learning approach. Exp Syst Appl 107:61–71
Kuhlmann L, Lehnertz K, Richardson MP, Schelter B, Zaveri HP (2018) Seizure prediction–ready for a new era. Nat Rev Neurol 14(10):1
Acharya UR, Hagiwara Y, Adeli H (2018) Automated seizure prediction. Epilepsy Behav 88:251–261
Azimi I, Rahmani AM, Liljeberg P, Tenhunen H (2017) Internet of things for remote elderly monitoring: a study from user-centered perspective. J Ambient Intell Hum Comput 8(2):273–289. https://doi.org/10.1007/s12652-016-0387-y
Malasinghe LP, Ramzan N, Dahal K (2019) Remote patient monitoring: a comprehensive study. J Ambient Intell Hum Comput 10(1):57–76. https://doi.org/10.1007/s12652-017-0598-x
Yong B, Xu Z, Wang X, Cheng L, Li X, Wu X, Zhou Q (2018) Iot-based intelligent fitness system. J Parallel Distrib Comput 118:14–21. https://doi.org/10.1016/j.jpdc.2017.05.006
Singh K, Malhotra J (2019) Stacked autoencoders based deep learning approach for automatic epileptic seizure detection. In: 2018 First international conference on secure cyber computing and communication (ICSCCC), IEEE, pp 249–254
Singh K, Singh S, Malhotra J (2021) Spectral features based convolutional neural network for accurate and prompt identification of schizophrenic patients. Proc Inst Mech Eng Part H J Eng Med 235(2):167–184
Oh SL, Jahmunah V, Arunkumar N, Abdulhay EW, Gururajan R, Adib N, Ciaccio EJ, Cheong KH, Acharya UR (2021) A novel automated autism spectrum disorder detection system. Complex Intell Syst. https://doi.org/10.1007/s40747-021-00408-8
Zhang A, Su L, Zhang Y, Fu Y, Wu L, Liang S (2021) Eeg data augmentation for emotion recognition with a multiple generator conditional Wasserstein GAN. Complex Intell Syst. https://doi.org/10.1007/s40747-021-00336-7
Mc Carthy M, Schueler P (2019) Can digital technology advance the development of treatments for Alzheimer’s disease. J Prev Alzheimer’s Dis 6(4):217–220. https://doi.org/10.14283/jpad.2019.32
Singh K, Malhotra J (2021) Cloud based ensemble machine learning approach for smart detection of epileptic seizures using higher order spectral analysis. Phys Eng Sci Med 44(1):313–324
LeCun Y, Bengio Y, Hinton G (2015) Deep learning. Nature 521(7553):436
Faust O, Hagiwara Y, Hong TJ, Lih OS, Acharya UR (2018) Deep learning for healthcare applications based on physiological signals: a review. Comput Methods Prog Biomed 161:1–13
Mohammadi M, Al-Fuqaha A, Sorour S, Guizani M (2018) Deep learning for iot big data and streaming analytics: a survey. IEEE Commun Surv Tutor 20(4):2923–2960
Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput 9(8):1735–1780
Shoeb A (2009) Application of machine learning to epileptic seizure onset detection and treatment. Master’s thesis, Massachusetts Institute of Technology
Kumar JS, Bhuvaneswari P (2012) Analysis of electroencephalography (EEG) signals and its categorization–a study. Proced Eng 38:2525 – 2536, international Conference on MOdeling Optimization and Computing. https://doi.org/10.1016/j.proeng.2012.06.298
Usman SM, Usman M, Fong S (2017) Epileptic seizures prediction using machine learning methods. Comput Math Methods Med. https://doi.org/10.1155/2017/9074759
Tsiouris KM, Pezoulas VC, Koutsouris DD, Zervakis M, Fotiadis DI (2017) Discrimination of preictal and interictal brain states from long-term EEG data. In: 2017 IEEE 30th international symposium on computer-based medical systems (CBMS), pp 318–323, https://doi.org/10.1109/CBMS.2017.33
Kitano LAS, Sousa MAA, Santos SD, Pires R, Thome-Souza S, Campo AB (2018) Epileptic seizure prediction from EEG signals using unsupervised learning and a polling-based decision process. In: Kůrková V, Manolopoulos Y, Hammer B, Iliadis L, Maglogiannis I (eds) Artif Neural Netw Mach Learn ICANN 2018. Springer International Publishing, Cham, pp 117–126
Cui S, Duan L, Qiao Y, Xiao Y (2018) Learning EEG synchronization patterns for epileptic seizure prediction using bag-of-wave features. J Ambient Intell Hum Comput. https://doi.org/10.1007/s12652-018-1000-3
Truong ND, Nguyen AD, Kuhlmann L, Bonyadi MR, Yang J, Kavehei O (2017) A generalised seizure prediction with convolutional neural networks for intracranial and scalp electroencephalogram data analysis. arXiv preprint arXiv:1707.01976
Hu W, Cao J, Lai X, Liu J (2019) Mean amplitude spectrum based epileptic state classification for seizure prediction using convolutional neural networks. J Ambient Intell Hum Comput. https://doi.org/10.1007/s12652-019-01220-6
Abdelhameed A, Bayoumi M (2018) Semi-supervised deep learning system for epileptic seizures onset prediction. In: 2018 17th IEEE international conference on machine learning and applications (ICMLA), IEEE, pp. 1186–1191
Duan L, Hou J, Qiao Y, Miao J (2019) Epileptic seizure prediction based on convolutional recurrent neural network with multi-timescale. Intelligence science and big data engineering. Big data and machine learning. Springer, Berlin, pp 139–150
Usman SM, Khalid S, Bashir Z (2021) Epileptic seizure prediction using scalp electroencephalogram signals. Biocybern Biomed Eng 41(1):211–220
Zhang S, Chen D, Ranjan R, Ke H, Tang Y, Zomaya AY (2021) A lightweight solution to epileptic seizure prediction based on EEG synchronization measurement. J Supercomput 77(4):3914–3932
Goldberger A, Amaral L, Glass L, Hausdorff J, Ivanov P, Mark R, Mietus J, Moody G, Peng CK, Stanley H (2019) PhysioBank, PhysioToolkit and PhysioNet : Components of a New Research Resource for Complex Physiologic Signals. https://physionet.org/content/chbmit/1.0.0/. Accessed 26 Aug 2019
Homan RW (1988) The 10–20 electrode system and cerebral location. Am J EEG Technol 28(4):269–279
Assi EB, Nguyen DK, Rihana S, Sawan M (2017) Towards accurate prediction of epileptic seizures: a review. Biomed Signal Process Control 34:144–157. https://doi.org/10.1016/j.bspc.2017.02.001
Upadhyay R, Padhy P, Kankar P (2016) Eeg artifact removal and noise suppression by discrete orthonormal s-transform denoising. Comput Electr Eng 53:125–142. https://doi.org/10.1016/j.compeleceng.2016.05.015
Challis R, Kitney R (1983) The design of digital filters for biomedical signal processing part 3: the design of Butterworth and Chebychev filters. J Biomed Eng 5(2):91–102. https://doi.org/10.1016/0141-5425(83)90026-2
Robertson DGE, Dowling JJ (2003) Design and responses of butterworth and critically damped digital filters. J Electromyogr Kinesiol 13(6):569–573
Barlow J (1985) Methods of analysis of nonstationary EEGs, with emphasis on segmentation techniques: a comparative review. J Clin Neurophysiol Off Publ Am Electroencephalogr Soc 2(3):267–304. https://doi.org/10.1097/00004691-198507000-00005
Singh K, Malhotra J (2019) Iot and cloud computing based automatic epileptic seizure detection using hos features based random forest classification. J Ambient Intell Hum Comput. https://doi.org/10.1007/s12652-019-01613-7
Newson JJ, Thiagarajan TC (2019) Eeg frequency bands in psychiatric disorders: a review of resting state studies. Front Hum Neurosci 12:521. https://doi.org/10.3389/fnhum.2018.00521
Tsipouras MG (2019) Spectral information of EEG signals with respect to epilepsy classification. EURASIP J Adv Signal Process 2019(1):10. https://doi.org/10.1186/s13634-019-0606-8
Lim S, Yeo M, Yoon G (2019) Comparison between concentration and immersion based on EEG analysis. Sensors. https://doi.org/10.3390/s19071669
Moretti DV, Babiloni C, Binetti G, Cassetta E, Forno GD, Ferreric F, Ferri R, Lanuzza B, Miniussi C, Nobili F, Rodriguez G, Salinari S, Rossini PM (2004) Individual analysis of EEG frequency and band power in mild Alzheimer’s disease. Clin Neurophysiol 115(2):299–308. https://doi.org/10.1016/S1388-2457(03)00345-6
Andrews JR, Arthur MG (1977) Spectrum amplitude: definition, generation, and measurement, vol 699. Dept. of Commerce, National Bureau of Standards, Institute for Basic Standards
Graves A, Schmidhuber J (2005) Framewise phoneme classification with bidirectional LSTM and other neural network architectures. Neural Netw 18(5–6):602–610
Yildirim Ö (2018) A novel wavelet sequence based on deep bidirectional LSTM network model for ECG signal classification. Comput Biol Med 96:189–202
Guo T, Xu Z, Yao X, Chen H, Aberer K, Funaya K (2016) Robust online time series prediction with recurrent neural networks. In: 2016 IEEE international conference on data science and advanced analytics (DSAA), IEEE, pp 816–825
Olah C (2015) Understanding LSTM networks. https://colah.github.io/posts/2015-08-Understanding-LSTMs/
Liashchynskyi P, Liashchynskyi P (2019) Grid search, random search, genetic algorithm: a big comparison for nas. arXiv preprint arXiv:1912.06059
Baratloo A, Hosseini M, Negida A, El Ashal G (2015) Part 1: simple definition and calculation of accuracy, sensitivity and specificity. Emergency 3(2):48–49
Funding
The authors of this manuscript have not received any financial support to carry out the present research.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors of this manuscript declare that they have no conflict of interest with any person or organization for carrying out this research work.
Informed consent
This manuscript uses a publicly available ‘CHB-MIT’ EEG dataset, which was developed at the Children’s Hospital Boston in collaboration with the Massachusetts Institute of Technology (MIT). The authors of this manuscript have cited the article corresponding to this dataset as per the recommendations of its developers. The appropriate informed consent has already been taken by the developers of this dataset from the concerned organization before making it online.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Singh, K., Malhotra, J. Two-layer LSTM network-based prediction of epileptic seizures using EEG spectral features. Complex Intell. Syst. 8, 2405–2418 (2022). https://doi.org/10.1007/s40747-021-00627-z
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s40747-021-00627-z