Next Article in Journal
The Role of Astrocytes and Alpha-Synuclein in Parkinson’s Disease: A Review
Previous Article in Journal
Moving towards an Understanding of the Role of the Inferior Fronto-Occipital Fasciculus in Language Processing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Novel ML-Based Algorithm for Detecting Seizures from Single-Channel EEG

Department of Biomedical Engineering, Faculty of Engineering, Jordan University of Science and Technology, P.O. Box 3030, Irbid 22110, Jordan
*
Author to whom correspondence should be addressed.
NeuroSci 2024, 5(1), 59-70; https://doi.org/10.3390/neurosci5010004
Submission received: 23 January 2024 / Revised: 18 February 2024 / Accepted: 26 February 2024 / Published: 29 February 2024

Abstract

:
There is a need for seizure classification based on EEG signals that can be implemented with a portable device for in-home continuous minoring of epilepsy. In this study, we developed a novel machine learning algorithm for seizure detection suitable for wearable systems. Extreme gradient boosting (XGBoost) was implemented to classify seizures from single-channel EEG obtained from an open-source CHB-MIT database. The results of classifying 1-s EEG segments are shown to be sufficient to obtain the information needed for seizure detection and achieve a high seizure sensitivity of up to 89% with low computational cost. This algorithm can be impeded in single-channel EEG systems that use in- or around-the-ear electrodes for continuous seizure monitoring at home.

1. Introduction

Epilepsy is one of the brain diseases that is gaining attention due to its spread and the extent of its impact on the daily lives of patients. According to the WHO, by 2031, the world is aiming to increase countries’ coverage of epilepsy services to 50% coverage in 2021. The appropriate diagnosis and treatment of people with epilepsy is estimated to allow 70% of these patients to have seizure-free lives.
The diagnosis of epilepsy relies on neurological examination and observations of symptoms. The investigation of the EEG is assigned as the confirmatory tool [1], besides examining some biomarkers obtained from ECG and sleep studies. Brain imaging using CT and MRI is also utilized in the diagnosis and assessment of epilepsy and seizures [2].
Epilepsy is managed pharmaceutically with customized anti-seizure medications. Different medications with different doses are suggested to patients according to the type of epilepsy, type of seizures, the frequency of its occurrence, age, sex, health condition, and other factors [3]. Recording seizure information is crucial for the assessment of medication and management of epilepsy. Alternatives for refractory epilepsy include resective surgery and diet therapy [4].
Some epileptic patients experience seizures day and night, whereas others suffer seizures only during daytime or only during night-time (~20%) [5,6]. Comparative studies between simultaneous EEG recordings and patients-counting of seizures have shown that self-reporting is ineffective as it leaves more than 50% of seizures unrevealed [7]. The ratio rises to 85.8% for nocturnal (i.e., during sleep) seizures [8].
The unpredictable nature of seizures is a serious challenge to the patients themselves and the people around them, in addition to the inability to recognize some types of asymptomatic seizures, which can lead to serious complications that may ultimately lead to sudden unexpected death in epilepsy (SUDEP) [9,10].
Therefore, the need for developing a practical method of continuous seizure detection has emerged to address two major aspects: providing physicians with detailed records of the timing and frequency of seizures and their types [1], along with the need to offer the necessary care for the patient during or shortly after seizures.
Cumulative efforts have produced user-friendly wearable devices have been produced to enhance the management of epilepsy and seizures continuously at home. According to the type of sensor and type of input, there are various seizure-detection systems. Some systems have one input, and others include a combination of inputs. Examples of such devices that indirectly monitor seizures without recording EEG include smart-watches-based systems, alert bracelets, movement monitors based on camera or motion sensing, and breathing monitors.
It is critically noted that some sensors are limited to detecting not all but certain types of seizures. The strategy for selecting a monitor for epilepsy should consider the seizure type according to these capabilities [11].
EEG monitoring is considered the gold standard for seizure detection and prediction. It detects the excitatory and inhibitory post-synaptic potentials (EPSPs and IPSPs) [11]. Regular and prolonged EEG testing and sleep studies are essential to explore individual behavior and reactions to medicine [12]. Studies in epilepsy underline the significant role of routine EEG in establishing the medical plan and modifying it, if necessary, for optimum treatment [12,13]. This can be achieved by accurate differentiation between an epileptic seizure and a nonepileptic event [14] and by being able to suspect a seizure afterward [15]. A comprehensive recording, including wakefulness, drowsiness, and sleep, is preferred [16].
Other systems take advantage of the symptoms and disorders associated with seizures, such as involuntary movement that is identified by video monitoring, muscle activity (EMG), accelerometry (ACM), and mattress sensors. Biomarkers are also utilized in such systems as heart rate changes in ECG-based systems, sweating in electrodermal activity (EDA) systems, and cerebral blood flow recognized by cerebral oxygen saturation sensors [11,17]. Multimodal systems, like combining heart rate and movement, have been used for seizure detection [18].
An option for long-term EEG monitoring is intracranial monitoring (iEEG). Commercially available iEEG monitoring devices can provide therapeutic neurostimulation once the onset of a seizure is detected. Besides the invasive nature of this approach and its moderate data-acquisition capability, it has been reported to be restricted to unifocal and bifocal epilepsy [19]. Additionally, scalp EEG is superior to iEEG in detecting absence seizures [11] and has shown higher sensitivity in simultaneous recordings [20].
Other options are deep brain stimulation (DBS)-based devices. These have been shown to sense brain signals while delivering stimulation to treat symptoms of epilepsy characterized by partial-onset seizures, with or without secondary generalization, that are refractory to three or more antiepileptic medications.
Behind-the-ear sensors form a simple EEG monitoring approach that can detect focal [21,22] and generalized epileptic seizures [23]. They have been shown to provide real-time EEG monitoring and determine seizure frequency and severity with an overall sensitivity of 75% and an accuracy range from 70% to 90% [24].
The work toward achieving an automatic detection of seizures based on EEG signals relies on exploring the features that identify ongoing seizures and distinguish them from normal EEG. The standard practice in analyzing raw EEG signals involves feature extraction followed by optimum feature selection to construct the feature vector and then classification based on a threshold or model standards. The feature can be extracted from several domains, categorized into time, frequency, time–frequency, and non-linear domains such as empirical mode decomposition (EMD) and rational transform domains. Researchers have shown that a merged combination of features from different domains provides better performance in comparison with a single-domain feature vector [25,26].
Various feature-extraction methods and machine learning classifiers based on single and multiple EEG channels were explored with a minimum accuracy of 70%. This emphasizes the improvements and added values that ML approaches have provided to this scope [27].
In seizure detection, an AI model is usually trained on segments of EEG data to classify them into ictal, interictal, and normal signals. Several types of neural networks, including recurrent neural networks (RNNs), have shown great potential in sequential signal classification, such as the brain signal [28].
Combining different types of classifiers to detect epileptic seizures was explored like combining an ANN feed-forward backpropagation and an ML support vector machine (SVM) [29]. The benchmark database acquired from Bonn University [30] The classification results showed higher sensitivity in many of the considered cases than methods that relied on decision trees, EMD, and other types of ANNs individually. Acharya et al. developed a deep convolutional neural network (CNN) algorithm that was trained on single-channel EEG segments extracted from the original multichannel dataset from Bonn University [31]. Nevertheless, deep neural networks usually require large training data for the network to make correct decisions and highly accurate classifications afterward. They also require higher computational power and time to run the fully trained network.
Particle Swarm Optimization (PSO)-based ANN was evaluated for seizure classification of each patient separately (patient-specific). It has a sensitivity of 98% [32]. Another study by Satapathy et al. proposed a close concept using the PSO algorithm with radial basis function ANN; it has shown high accuracies with different datasets and using different features [33].
Other types of ANNs have been utilized in early seizure detection, like a weightless neural network (WNN) called WiSARD [34], which performs the classification based on the raw EEG data rather than the extracted features obtained after the initial analysis. The dataset was obtained from the European epilepsy database (EPILEPSIAE) [35]. Classification accuracy ranges between 72.56% and 99.93% was reportedwith an anticipation time range from 2 to 30 s.
Another study focused on the enhancement of the dataset itself, and the sensitivity reached was relatively high [36].
One of the studies that addressed single-channel EEG for the automatic detection of epileptic events used the databases of Bonn and CHB-MIT. It used a novel feature for classification: Kraskov entropy based on the Hilbert–Huang Transform (HHT). Although it performed well with the dataset from Bonn, it did poorly with the other [37]. Another study of single-channel EEG classification was conducted on mice rather than patients, where Bergstrom et al. developed an algorithm based on wavelet decomposition, which had previously used the total multi-channel brain signal. In their study, they introduced a modified algorithm based on the same approach to classify single-channel signals into interictal spikes, seizures (including absence-type), and other abnormal events with an accuracy of 87% [38].
As noted from this literature review, most of the published studies dealing with seizure classification focus primarily on the accuracy of classification, without considering the complexity of their proposed approaches and thus their potential for implementation within a portable system for epilepsy for in-home use. Some studies perform the classification using other bio signals besides the EEG, rather than relying solely on the EEG signal. Also, studies that focus on the number of channels are rare. Usually, they use the total number of channels in the utilized databases.
Gradient tree boosting is a form of tree ensemble boosting introduced by Friedman in 2001 based on the idea of decision trees and random forests [39]. It is a technique used for creating a strong classifier based on merging weak classifiers and taking advantage of their weaknesses in a way that helps improve the final classification model. The way the final model is built is based on iterative learning and training on the data starting with the base model and moving toward the robust model. Iterative optimization of training leads to progressively enhancing the model (Gradient Boosting).
XGBoost was developed by Chen and Guestrin in 2016 [40]. It follows the same principle as gradient tree boosting;but provides improved performance by managing the complexity of the trees through the use of various regularization approaches.
The speed and performance of XGBoost make it a widely used model in the fields of regression, classification, ranking, and user-defined prediction problems. Since it was first proposed, XGBoost has shown advanced performance on ML tasks and consistently outperforms other single-algorithm methods, along with very fast training.
Several studies have shown the feasibility of detecting seizures using single-channel EEG. Furthermore, reviews in epilepsy have concluded that features extracted from time and time–frequency domains are the most used in seizure detection methods [41]. Another review confirms the same conclusion and adds that the variance, energy, nonlinear energy, and Shannon entropy features extracted from raw EEG signals are the best features for distinguishing seizures, providing that the variance, energy, kurtosis, and line length all have low computational complexity [27].
The presented study aims to develop a novel ML algorithm for seizure detection according to wearable system requirements and specifications using an extreme gradient boosting (XGBoost) classifier, as it was indicated to perform highly on seizure-detection problems using different combinations of features and EEG databases [42,43]. The combination of an efficient classifier with a single-channel EEG dataset obtained from an appropriate cranial location and the use of a feature vector of low computational complexity will meet the requirements of wearable systems while maintaining high classification performance.

2. Materials and Methods

The framework is explained in detail in Figure 1. The coding in this work was implemented in Python using Jupyter Notebook.

2.1. Dataset

Among the available databases of epilepsy recordings, we chose to proceed with the CHB-MIT database. Compared with other databases, CHB-MIT includes the largest number of patients and seizures obtained with scalp EEG, whereas many databases include iEEG and fewer patients and seizure files. It is also widely used, which makes it a good choice for comparing the performance of a proposed classifier to others.
This database was obtained at Children’s Hospital Boston (CHB) in collaboration with a team from the Massachusetts Institute of Technology (MIT). It includes 23 cases collected from 22 epilepsy patients in 2000 and another case added in 2010. Two cases were obtained from the same patient with a 1.5-year duration between the recordings [44].
The database comprises EEG recordings collected noninvasively from 21 channels using a scalp EEG-acquisition cap, with the EEG electrodes positioned according to the international 10–20 system in an anterior–posterior bipolar montage. The positions of the 21 electrodes are Fp1, Fp2, F7, F3, Fz, F4, F8, T7, T8, FT9, FT10, C3, Cz, C4, P7, P3, Pz, P4, P8, O1, and O2. The signals are saved within a total of 664 [.edf] files. The duration of each recording is one hour, with a 256-Hz sampling frequency and 16-bit resolution. The total number of seizures is 198, which are included within 129 files.
To develop an approach suitable for wearable systems, the choice of the EEG channel was based on the cranial location. First, the locations of the electrodes must be adjacent to in – or around the ear electrode placement. Second, the specific channel must connect both sides of the brain. Moreover, considering that temporal lobe seizures are the most common type of focal epileptic seizures [45], EEG electrodes connected to the temporal lobe must be able to sense generalized seizures and most focal seizures. Following these factors, we selected FT9–FT10 as the most suitable channel to achieve these points.
The dataset for training and testing of the classification model was selected from the original CHB-MIT database as shown in Table 1. The selected dataset contains data from twelve patients with ages between 6 and 19 years. The dataset contains all seizure types, including simple partial, complex partial, and Generalized tonic–clonic.

2.2. Data Preprocessing

A finite impulse response (FIR) filter between 0.5 and 70 Hz was used to filter the EEG signals [46]. A 1 s rectangular window was applied without overlappingat a sampling frequency of 256 Hz.
Each of these windows was labeled (0) for normal EEG segments, and (1) for seizure segments.
After combining the files of each patient, the files of all patients were combined within one file. Next was features extraction, which is the process of converting raw data into statistical features. Kurtosis, Variance, Energy, and Differential Entropy were calculated from each of the raw segments separately.
Data exploration and visualization were performed to investigate the statistical characteristics of the data, including the range for each feature in each class, the mean, and the standard deviation.
Univariate analysis was performed to study the characteristics of each feature individually, and bivariate analysis was used to study the characteristics of every two features together. By studying the correlation between the features, we found that variance and energy correlate at a rate of 99.99%. Therefore, data cleaning was performed, and variance was deleted to avoid data redundancy.
The features of interest were isolated to form the feature vector to be fed into the proposed classification model as temporal characteristics of the EEG data from FT9-FT10. The used features include the following: (1) Kurtosis, which refers to the statistical measure that describes the shape of any of the tails of a distribution, i.e., whether the distribution is heavy-tailed or light-tailed compared to a normal distribution. (2) Energy, which refers to the capacity to accomplish work. In the context of signals, the energy of a signal over a period of time is the sum of the square of the signal magnitude. (3) Differential Entropy: the “Entropy” of a signal refers to the measure of randomness. Differential entropy is a measure of the average surprise of a random variable for continuous probability distributions. The formulae to calculate these features are listed in Appendix A.
Synthetic Minority Over-Sampling Technique (SMOTE) resampling was used to increase the number of samples of seizures to that of non-seizure segments. Exploring the dataset, we found that seizures made up 0.3% of the complete data. After using SMOTE resampling, we obtained a balanced dataset of 65,400 segments in each of the categories. Feature scaling was utilized to improve the quality of data. This involves normalization and standardization. The primary purpose of normalization is to make the data uniform across all records and fields. It is essential when the data distribution is uncertain or does not have a Gaussian distribution. The technique of putting disparate features on the same scale is known as data standardization. Standardized data can be described as a re-scaling of features so that the mean is 0 and the standard deviation is 1. In this work, the kurtosis and energy data were normalized without assuming a certain distribution of the data, while the differential entropy data were standardized, as their distribution can be assumed to be Gaussian.

2.3. Classification

The classification model implemented in this study is the XGBoost approach. The dataset is divided into two subsets for trainingand testing75% of the seizure and non-seizure feature vectors was used for training.
A baseline model with initial parameters was applied to the training dataset to investigate how XGBoost performs in a seizure-detection task based on the extracted features. Then, parameter-tuning was performed to gradually optimize the model to achieve the best results using XGBoost.
To assess the performance of the proposed classification model, several performance measures were computed, including the accuracy, precision, F1 score, recall, false positive rate, and true negative rate, along with a receiver operating characteristic (ROC) curve, the area under the ROC curve (AUC), and the sensitivity of the model to seizures.

3. Results

The performance matrix of XGBoost is shown below in Figure 2. XGBoost achieved a TPR of 89.21%, FNR of 10.79%, a total accuracy of 82%, F1-score of 83%, recall of 89%, specificity of 74%, negative predictive value (NPV) of 87%, positive predictive value (PPV) of 77%, precision of 77%, and error rate of 18.5%
It also achieved a high sensitivity to epileptic events of 89.21% and a tendency of the model to identify and characterize seizures using only three features from only one domain. The FNR is significantly low, but false negatives here may be because not all seizures are visible in all EEG channels; nevertheless, focal seizures can be distinguished from the EEG signal obtained from their associated lobe. Also, generalized seizures do not occur in all brain locations simultaneously, making them observable within one channel at one point in time and not visible in another. On the other hand, the FPR obtained was 26.13%, which may be associated with artifacts. Importantly, the authors who published the database stated that some of the rhythmic activity detected in the EEG was abnormal but not associated with seizures, which can explain the false positives because the classifier is limited to only two classes. In contrast, abnormal segments are associated with a third class that the classifier tends to assign to the class of seizure because it is closer to it than the other class.
The ROC_AUC plot for the XGBoost is shown in Figure 3. The AUC score is 0.89.

4. Discussion

Neurologists usually interpret epileptic EEG signals by examining the signal in a time series. In this work, we have used this fact to construct a seizure-classification model based on features taken from the time domain with the simplest possible approach to be implementable in portable devices.
Table 2 presents how the proposed method performs in comparison to the methods in the literature for seizure/non-seizure classification based on the CHB-MIT database as generic approaches (not patient-specific). We can conclude from this aforementioned comparison that the method proposed shows comparable performance represented by the sensitivity achieved while relying on one EEG channel, three features, and a 1 s decision window. It also achieved sensitivity values close to other more complex methods. Hybrid feature vectors obtained from more than one domain achieved higher sensitivity but with the cost of increased complexity and computational cost. Multiple EEG channels may also perform better classification than a single channel, but adding channels leads to reduced patient comfort and increased power consumption. Therefore, the trade-off between simplicity and performance is key to creating the optimal approach for patients with epilepsy.
Considering the instability of the EEG in the case of seizure, the proposed method can be used more effectively for patients with generalized epilepsy and patients with focal epilepsy in the temporal and frontal lobes. Moreover, such an approach could be specified for patients with focal epilepsy within other brain lobes by replacing the EEG channel to be within this lobe and building a model similar to the current model in other respects.
The EEG channels selected in this study are closest to the M1-M2 channels, which are utilized in portable EEG devices using in- or around-the-ear electrodes, which are suitable locations for in-home, self-administered EEG devices. A noteworthy limitation of monitoring seizures using single-channel devices is its sensitivity to seizure type. Several studies have investigated the inclusion criteria and the types/locations of seizures that can reliably be monitored with near-the-ear EEG single-channel monitoring systems, and these studies have been ongoing since the introduction of near-the-ear EEG recording in the early 2000s.
A potential advancement of the presented study is to employ the correlation between sleep and epilepsy [52] and possibly combine both sleep staging and seizure detection. Poor sleep causes a higher potential for seizures to occur and vice versa. In general, there are opposing roles of sleep stages in epilepsy; only 1% or less of seizures arise during rapid eye movement (REM) sleep. In comparison with NREM sleep and wakefulness, REM sleep has an antiepileptic effect against focal and generalized seizures [53]. Besides the difference in the rate of epileptic events throughout the sleep stages, various types of seizures occur during distinct stages [6]. Furthermore, sleep quality may also be affected by medicinal and non-medicinal interventions [54,55].

5. Conclusions

There is a demand for continuous monitoring of patients with epilepsy with high performance while maintaining low computational costs suitable for wearable devices. In this work, we show that XGBoost can be used to provide a classification of seizures based on a few temporal features obtained from a single EEG channel, with the aim of building a simple ML algorithm for use in wearable systems.
The FT9–FT10 channel was chosen so that the signal comes from the area as close as possible to the ear to utilize in- or around-the-ear-based recording systems. In contrast to features computed from the frequency domain and others, energy, differential entropy, and kurtosis were chosen to represent the signal as features computed from the time domain, such as those of raw EEG, provided that no additional calculations were required. Finally, XGBoost has been proposed as a classification model because it provides high performance in such tasks quickly and with low computation.
The results presented after testing the proposed model on the test dataset show that XGBoost is effective in detecting seizures, with high sensitivity, which makes it a candidate for AI software in wearable devices for epilepsy patients. In addition, we concluded that features from the time domain alone can be used to distinguish seizures and that seizures can be observed in the signal obtained from the near-ear EEG channel. Moreover, we have shown with the results that the use of a 1 s EEG segment is sufficient to obtain the information needed for seizure detection and is also important for real-time application. Computed from the time domain alone for just a fraction of a second, and based on a simple ML model, we can use these data as input to achieve a high seizure sensitivity of up to 89%.
This study aimed to develop a simple yet reliable algorithm to automate seizure-classification tasks, which can then be implemented in existing portable recording devices. The results have indicated that the classification performance of the proposed algorithm is comparable with more advanced approaches while retaining simplicity and low computational costs. A continuation of this work can focus on performing comparison studies of seizure monitoring and classification between standard clinical EEG monitoring and a portable single-channel EEG monitoring device that implements the proposed algorithm.

Author Contributions

Conceptualization, Y.M.D.; methodology, Y.M.D. and T.K.A.-O.; software, T.K.A.-O.; validation, Y.M.D. and T.K.A.-O.; formal analysis, T.K.A.-O.; investigation, T.K.A.-O.; resources, T.K.A.-O.; data curation, T.K.A.-O.; writing—original draft preparation, Y.M.D. and T.K.A.-O.; writing—review and editing, Y.M.D.; visualization, T.K.A.-O.; supervision, Y.M.D.; project administration, Y.M.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The used database is available online at PhysioNet (https://physionet.org/physiobank/database/chbmit/). Accessed on 13 January 2023.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Features Formulae

Kurtosi = n × i n ( Y i Y ¯ ) 4 i n ( Y i Y ¯ 2 ) 2
where the following apply:
Y i : the ith Variable of the distribution.
Y ¯ : Mean of the distribution.
n : No. of variables in the distribution.
Energy = n = x [ n ] 2
where x[n] is a discrete-time signal.
Differential   Entropy   ( Δ Entropy ) = + p x   l o g 2 p x   d x
where p(x) is the Probability Density Function.

References

  1. Stafstrom, C.E.; Carmant, L. Seizures and epilepsy: An overview for neuroscientists. Cold Spring Harb. Perspect. Med. 2015, 5, a022426. [Google Scholar] [CrossRef]
  2. Kuzniecky, R.I. Neuroimaging of epilepsy: Therapeutic implications. NeuroRx 2005, 2, 384–393. [Google Scholar] [CrossRef] [PubMed]
  3. Wyllie, E.; Cascino, G.D.; Gidal, B.E.; Goodkin, H.P. Wyllie’s Treatment of Epilepsy: Principles and Practice; Lippincott Williams & Wilkins: Philadelphia, PA, USA, 2012. [Google Scholar]
  4. González, F.L.; Osorio, X.R.; Rein, A.G.N.; Martínez, M.C.; Fernández, J.S.; Haba, V.V.; Pedraza, A.D.; Cerdá, J. Drug-resistant epilepsy: Definition and treatment alternatives. Neurol. Engl. Ed. 2015, 30, 439–446. [Google Scholar] [CrossRef]
  5. Schmitt, B. Sleep and epilepsy syndromes. Neuropediatrics 2015, 46, 171–180. [Google Scholar] [CrossRef]
  6. Kostopoulos, G.K.; Koutroumanidis, M. Brain mechanisms linking epilepsy to sleep. In Reference Module in Neuroscience and Biobehavioral Psychology; Elsevier: Amsterdam, The Netherlands, 2017. [Google Scholar]
  7. Elger, C.E.; Hoppe, C. Diagnostic challenges in epilepsy: Seizure under-reporting and seizure detection. Lancet Neurol. 2018, 17, 279–288. [Google Scholar] [CrossRef] [PubMed]
  8. Hoppe, C.; Poepel, A.; Elger, C.E. Epilepsy: Accuracy of patient seizure counts. Arch. Neurol. 2007, 64, 1595–1599. [Google Scholar] [CrossRef] [PubMed]
  9. Purnell, B.S.; Thijs, R.D.; Buchanan, G.F. Dead in the night: Sleep-wake and time-of-day influences on sudden unexpected death in epilepsy. Front. Neurol. 2018, 9, 1079. [Google Scholar] [CrossRef]
  10. Kloster, R.; Engelskjøn, T. Sudden unexpected death in epilepsy (SUDEP): A clinical perspective and a search for risk factors. J. Neurol. Neurosurg. Psychiatry 1999, 67, 439–444. [Google Scholar] [CrossRef]
  11. Ulate-Campos, A.; Coughlin, F.; Gaínza-Lein, M.; Fernández, I.S.; Pearl, P.; Loddenkemper, T. Automated seizure detection systems and their effectiveness for each type of seizure. Seizure 2016, 40, 88–101. [Google Scholar] [CrossRef]
  12. Smith, S.J.M. EEG in the diagnosis, classification, and management of patients with epilepsy. J. Neurol. Neurosurg. Psychiatry 2005, 76 (Suppl. S1), ii2–ii7. [Google Scholar] [CrossRef]
  13. Asadi-Pooya, A.A.; Sperling, M.R. Normal awake, drowsy, and sleep EEG patterns that might be overinterpreted as abnormal. J. Clin. Neurophysiol. 2019, 36, 250–256. [Google Scholar] [CrossRef] [PubMed]
  14. Maganti, R.K.; Rutecki, P. EEG and epilepsy monitoring. CONTINUUM Lifelong Learn. Neurol. 2013, 19, 598–622. [Google Scholar] [CrossRef] [PubMed]
  15. Maturana, M.I.; Meisel, C.; Dell, K.; Karoly, P.J.; D’souza, W.; Grayden, D.B.; Burkitt, A.N.; Jiruska, P.; Kudlacek, J.; Hlinka, J.; et al. Critical slowing down as a biomarker for seizure susceptibility. Nat. Commun. 2020, 11, 2172. [Google Scholar] [CrossRef] [PubMed]
  16. Jin, B.; Aung, T.; Geng, Y.; Wang, S. Epilepsy and its interaction with sleep and circadian rhythm. Front. Neurol. 2020, 11, 327. [Google Scholar] [CrossRef]
  17. Ramgopal, S.; Thome-Souza, S.; Jackson, M.; Kadish, N.E.; Fernández, I.S.; Klehm, J.; Bosl, W.; Reinsberger, C.; Schachter, S.; Loddenkemper, T. Seizure detection, seizure prediction, and closed-loop warning systems in epilepsy. Epilepsy Behav. 2014, 37, 291–307. [Google Scholar] [CrossRef] [PubMed]
  18. Arends, J.; Thijs, R.D.; Gutter, T.; Ungureanu, C.; Cluitmans, P.; Van Dijk, J.; van Andel, J. Multimodal nocturnal seizure detection in a residential care setting: A long-term prospective trial. Neurology 2018, 91, e2010–e2019. [Google Scholar] [CrossRef] [PubMed]
  19. Duun-Henriksen, J.; Baud, M.; Richardson, M.P.; Cook, M.; Kouvas, G.; Heasman, J.M.; Friedman, D.; Peltola, J.; Zibrandtsen, I.C.; Kjaer, T.W. A new era in electroencephalographic monitoring? Subscalp devices for ultra–long-term recordings. Epilepsia 2020, 61, 1805–1817. [Google Scholar] [CrossRef]
  20. Schad, A.; Schindler, K.; Schelter, B.; Maiwald, T.; Brandt, A.; Timmer, J.; Schulze-Bonhage, A. Application of a multivariate seizure detection and prediction method to non-invasive and intracranial long-term EEG recordings. Clin. Neurophysiol. 2008, 119, 197–211. [Google Scholar] [CrossRef]
  21. Gu, Y.; Cleeren, E.; Dan, J.; Claes, K.; Van Paesschen, W.; Van Huffel, S.; Hunyadi, B. Comparison between scalp EEG and behind-the-ear EEG for development of a wearable seizure detection system for patients with focal epilepsy. Sensors 2017, 18, 29. [Google Scholar] [CrossRef]
  22. You, S.; Cho, B.H.; Yook, S.; Kim, J.Y.; Shon, Y.M.; Seo, D.W.; Kim, I.Y. Unsupervised automatic seizure detection for focal-onset seizures recorded with behind-the-ear EEG using an anomaly-detecting generative adversarial network. Comput. Methods Programs Biomed. 2020, 193, 105472. [Google Scholar] [CrossRef]
  23. Vandecasteele, K.; De Cooman, T.; Dan, J.; Cleeren, E.; Van Huffel, S.; Hunyadi, B.; Van Paesschen, W. Visual seizure annotation and automated seizure detection using behind-the-ear electroencephalographic channels. Epilepsia 2020, 61, 766–775. [Google Scholar] [CrossRef]
  24. Becker, T.; Vandecasteele, K.; Chatzichristos, C.; Van Paesschen, W.; Valkenborg, D.; Van Huffel, S.; De Vos, M. Classification with a deferral option and low-trust filtering for automated seizure detection. Sensors 2021, 21, 1046. [Google Scholar] [CrossRef]
  25. Paul, Y. Various epileptic seizure detection techniques using biomedical signals: A review. Brain Inform. 2018, 5, 6. [Google Scholar] [CrossRef]
  26. Wang, L.; Xue, W.; Li, Y.; Luo, M.; Huang, J.; Cui, W.; Huang, C. Automatic epileptic seizure detection in EEG signals using multi-domain feature extraction and nonlinear analysis. Entropy 2017, 19, 222. [Google Scholar] [CrossRef]
  27. Boonyakitanont, P.; Lek-Uthai, A.; Chomtho, K.; Songsiri, J. A review of feature extraction and performance evaluation in epileptic seizure detection using EEG. Biomed. Signal Process. Control 2019, 57, 101702. [Google Scholar] [CrossRef]
  28. Güler, N.F.; Übeyli, E.D.; Güler, I. Recurrent neural networks employing Lyapunov exponents for EEG signals classification. Expert Syst. Appl. 2005, 29, 506–514. [Google Scholar] [CrossRef]
  29. Peachap, A.B.; Tchiotsop, D. Epileptic seizures detection based on some new Laguerre polynomial wavelets, artificial neural networks and support vector machines. Inform. Med. Unlocked 2019, 16, 100209. [Google Scholar] [CrossRef]
  30. Andrzejak, R.G.; Lehnertz, K.; Mormann, F.; Rieke, C.; David, P.; Elger, C.E. 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 2001, 64, 061907. [Google Scholar] [CrossRef] [PubMed]
  31. Acharya, U.R.; Oh, S.L.; Hagiwara, Y.; Tan, J.H.; Adeli, H. Deep convolutional neural network for the automated detection and diagnosis of seizure using EEG signals. Comput. Biol. Med. 2018, 100, 270–278. [Google Scholar] [CrossRef] [PubMed]
  32. Nasehi, S.; Pourghassem, H. Patient-specific epileptic seizure onset detection algorithm based on spectral features and IPSONN classifier. In Proceedings of the 2013 International Conference on Communication Systems and Network Technologies (CSNT 2013), Gwalior, India, 6–8 April 2013; pp. 186–190. [Google Scholar]
  33. Satapathy, S.K.; Dehuri, S.; Jagadev, A.K. EEG signal classification using PSO trained RBF neural network for epilepsy identification. Inform. Med. Unlocked 2017, 6, 1–11. [Google Scholar] [CrossRef]
  34. Aleksander, I.; De Gregorio, M.; Galvao França, F.M.; Vieira Lima, P.M.; Morton, H. A brief introduction to weightless neural systems. In Proceedings of the ESANN—2009 Proceedings, European Symposium on Artificial Neural Networks-Advances in Computational Intelligence and Learning, Bruges, Belgium, 22–24 April 2009; pp. 299–305. [Google Scholar]
  35. De Aguiar, K.; França, F.M.; Barbosa, V.C.; Teixeira, C.A. Early detection of epilepsy seizures based on a weightless neural network. In Proceedings of the 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Milan, Italy, 25–29 August 2015; pp. 4470–4474. [Google Scholar]
  36. Ayodele, K.P.; Ikezogwo, W.O.; Komolafe, M.A.; Ogunbona, P. Supervised domain generalization for integration of disparate scalp EEG datasets for automatic epileptic seizure detection. Comput. Biol. Med. 2020, 120, 103757. [Google Scholar] [CrossRef] [PubMed]
  37. Lu, Y.; Ma, Y.; Chen, C.; Wang, Y. Classification of single-channel EEG signals for epileptic seizures detection based on hybrid features. Technol. Health Care 2018, 26, 337–346. [Google Scholar] [CrossRef] [PubMed]
  38. Bergstrom, R.A.; Choi, J.H.; Manduca, A.; Shin, H.-S.; Worrell, G.A.; Howe, C.L. Automated identification of multiple seizure-related and interictal epileptiform event types in the EEG of mice. Sci. Rep. 2013, 3, 1483. [Google Scholar] [CrossRef] [PubMed]
  39. Friedman, J.H. Greedy function approximation: A gradient boosting machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef]
  40. Tianqi, C.; Guestrin, C. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar]
  41. Ciurea, A.; Manoila, C.-P.; Tautan, A.-M.; Ionescu, B. Low latency automated epileptic seizure detection: Individualized vs. Global approaches. In Proceedings of the 2020 International Conference on e-Health and Bioengineering (EHB), Iasi, Romania, 29–30 October 2020; pp. 1–4. [Google Scholar]
  42. Wu, J.; Zhou, T.; Li, T. Detecting epileptic seizures in EEG signals with complementary ensemble empirical mode decomposition and extreme gradient boosting. Entropy 2020, 22, 140. [Google Scholar] [CrossRef] [PubMed]
  43. Long, J.-M.; Yan, Z.-F.; Shen, Y.-L.; Liu, W.-J.; Wei, Q.-Y. Detection of epilepsy using MFCC-based feature and XGBoost. In Proceedings of the 2018 11th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), Beijing, China, 13–15 October 2018; pp. 1–4. [Google Scholar]
  44. Shoeb, A.H. Application of Machine Learning to Epileptic Seizure Onset Detection and Treatment. Ph.D. Thesis, Massachusetts Institute of Technology, Cambridge, MA, USA, 2009. [Google Scholar]
  45. Krook-Magnuson, E.; Armstrong, C.; Oijala, M.; Soltesz, I. On-demand optogenetic control of spontaneous seizures in temporal lobe epilepsy. Nat. Commun. 2013, 4, 1376. [Google Scholar] [CrossRef] [PubMed]
  46. Sahani, M.; Rout, S.K.; Dash, P.K. FPGA implementation of epileptic seizure detection using semisupervised reduced deep convolutional neural network. Appl. Soft Comput. 2021, 110, 107639. [Google Scholar] [CrossRef]
  47. Zabihi, M.; Kiranyaz, S.; Rad, A.B.; Katsaggelos, A.K.; Gabbouj, M.; Ince, T. Analysis of high-dimensional phase space via poincaré section for patient-specific seizure detection. IEEE Trans. Neural Syst. Rehabil. Eng. 2015, 24, 386–398. [Google Scholar] [CrossRef]
  48. Sopic, D.; Aminifar, A.; Atienza, D. e-glass: A wearable system for real-time detection of epileptic seizures. In Proceedings of the 2018 IEEE International Symposium on Circuits and Systems (ISCAS), Florence, Italy, 27–30 May 2018; pp. 1–5. [Google Scholar]
  49. Wei, Z.; Zou, J.; Zhang, J.; Xu, J. Automatic epileptic EEG detection using convolutional neural network with improvements in time-domain. Biomed. Signal Process. Control 2019, 53, 101551. [Google Scholar] [CrossRef]
  50. Liang, W.; Pei, H.; Cai, Q.; Wang, Y. Scalp EEG epileptogenic zone recognition and localization based on long-term recurrent convolutional network. Neurocomputing 2019, 396, 569–576. [Google Scholar] [CrossRef]
  51. Hu, X.; Yuan, S.; Xu, F.; Leng, Y.; Yuan, K.; Yuan, Q. Scalp EEG classification using deep Bi-LSTM network for seizure detection. Comput. Biol. Med. 2020, 124, 103919. [Google Scholar] [CrossRef]
  52. Temkin, O. The Falling Sickness: A History of Epilepsy from the Greeks to the Beginnings of Modern Neurology; JHU Press: Baltimore, MD, USA, 1994. [Google Scholar]
  53. Ng, M.; Pavlova, M. Why are seizures rare in rapid eye movement sleep? Review of the frequency of seizures in different sleep stages. Epilepsy Res. Treat. 2013, 2013, 932790. [Google Scholar] [CrossRef] [PubMed]
  54. Gibbon, F.M.; Maccormac, E.; Gringras, P. Sleep and epilepsy: Unfortunate bedfellows. Arch. Dis. Child. 2019, 104, 189–192. [Google Scholar] [CrossRef] [PubMed]
  55. Kotagal, P.; Yardi, N. The Relationship Between Sleep and Epilepsy. Semin. Pediatr. Neurol. 2008, 15, 42–49. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The framework of the development of a binary classifier of seizures.
Figure 1. The framework of the development of a binary classifier of seizures.
Neurosci 05 00004 g001
Figure 2. The performance matrix of XGBoost on seizure-detection task.
Figure 2. The performance matrix of XGBoost on seizure-detection task.
Neurosci 05 00004 g002
Figure 3. The ROC_AUC plot for XGBoost on seizure-detection task.
Figure 3. The ROC_AUC plot for XGBoost on seizure-detection task.
Neurosci 05 00004 g003
Table 1. Details of the dataset from MIT-CHB database included in the study.
Table 1. Details of the dataset from MIT-CHB database included in the study.
No.PatientGenderAge Seizures (s)
1chb-02M11184
2chb-04M22400
3chb-05F7524
4chb-07F14.5340
5chb-09F10296
6chb-11F12816
7chb-14F9177
8chb-15M162012
9chb-16F777
10chb-17F12296
11chb-19F19239
12chb-20F6302
Table 2. Comparison between the proposed method and state-of-the-art methods for seizure classification.
Table 2. Comparison between the proposed method and state-of-the-art methods for seizure classification.
ReferenceChannel
Count
Window LengthFeatures
(Input Shape)
Feature
Domain
ClassificationSensitivity
Zabihi 2016 [47]231 s7 featuresNon-LinearLDA and NB88.27%
Sopic 2018 [48]24 s7 featuresNonlinear
and Power
Random
Forest
93.80%
Wei 2019 [49]235 sWaveform image
(1280 × 23 × 1)
TimeCNN72.11%
Ayodele 2020 [36]85 s17 10-layer
16 × 16 raster arrays
FrequencyRNN71.45%
Liang 2020 [50]182 swaveform image
(100 × 227 × 1)
TimeLRCN84.00%
Hu 2020 [51]234 s10 featuresNon-LinearBi-LSTM93.61%
Proposed
Approach
11 s3 featuresTimeXGBoost89.21%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Dweiri, Y.M.; Al-Omary, T.K. Novel ML-Based Algorithm for Detecting Seizures from Single-Channel EEG. NeuroSci 2024, 5, 59-70. https://doi.org/10.3390/neurosci5010004

AMA Style

Dweiri YM, Al-Omary TK. Novel ML-Based Algorithm for Detecting Seizures from Single-Channel EEG. NeuroSci. 2024; 5(1):59-70. https://doi.org/10.3390/neurosci5010004

Chicago/Turabian Style

Dweiri, Yazan M., and Taqwa K. Al-Omary. 2024. "Novel ML-Based Algorithm for Detecting Seizures from Single-Channel EEG" NeuroSci 5, no. 1: 59-70. https://doi.org/10.3390/neurosci5010004

Article Metrics

Back to TopTop