Novel deep learning framework for detection of epileptic seizures using EEG signals

Sayani Mallick, Veeky BathsFrontiers Comput. Neurosci 2024 · DOI

TL;DR

This paper introduces a novel deep learning framework that combines 1D Convolutional Neural Networks (CNNs) with Bidirectional Long Short-Term Memory (Bi-LSTM) or Gated Recurrent Unit (Bi-GRU) layers for accurate detection of epileptic seizures from EEG signals. The proposed model achieves state-of-the-art performance across various classification tasks, including binary, three-class, four-class, and five-class classifications, demonstrating its robustness and potential for real-world applications.

What Problem Does This Paper Address?

Epilepsy, a chronic neurological disorder affecting millions worldwide, is characterized by abnormal electrical activity in the brain leading to seizures. Accurately and efficiently detecting these seizures is crucial for diagnosis and management. Traditionally, this has relied on manual inspection of Electroencephalogram (EEG) signals by experts, a time-consuming and error-prone process. While machine learning and deep learning have shown promise in automating this task, there's a continuous need for more robust and accurate models that can handle variations in EEG signal lengths and the presence of artifacts, leading to improved diagnostic support.

Methods

The core of the proposed framework is a novel architecture that leverages a repeating unit composed of:

  • 1D Convolutional Neural Networks (1D-CNNs): These layers are used to extract relevant local features from the sequential EEG data.
  • Bidirectional Long Short-Term Memory (Bi-LSTM) or Gated Recurrent Unit (Bi-GRU) layers: These recurrent layers are employed to capture long-term dependencies and temporal dynamics within the EEG signals, processing the data in both forward and backward directions.
  • Average Pooling Layer: This layer downsamples the feature maps, reducing dimensionality and computational cost.

These units are stacked and interspersed with Dropout layers to prevent overfitting. The extracted features are then flattened and fed into Dense (fully connected) layers for the final classification. The authors specifically highlight the use of Bidirectional LSTMs/GRUs over unidirectional ones to better simulate real-life scenarios with varying signal durations.

Datasets

The study exclusively utilizes the Bonn dataset for training and evaluation. This dataset comprises 500 single-channel EEG signals, each with 4,097 sample points and a duration of 23.6 seconds, sampled at 173.61 Hz. The dataset is divided into five sets (A, B, C, D, E), representing different conditions:

  • Set A & B: EEG signals from healthy subjects (eyes open and closed).
  • Set C: EEG signals from epileptic patients during seizure-free intervals (inter-ictal).
  • Set D: EEG signals from the epileptogenic zone during seizures (ictal).
  • Set E: True seizure waveforms recorded during the ictal stage.

The paper explores various classification tasks using combinations of these sets, as detailed in Table 1.

Key Insights and Ideas

  • Synergistic Feature Extraction: The combination of 1D-CNNs for local feature extraction and Bi-LSTMs/Bi-GRUs for temporal dependency modeling proves highly effective for EEG signal analysis.
  • Robustness to Signal Length: The framework demonstrates its ability to handle EEG signals of varying durations (23.6s, 11.8s, and 1s) without significant performance degradation, which is crucial for practical applications.
  • Importance of Preprocessing: While the model performs well on raw signals, filtering to remove noise (frequencies above 50 Hz) further enhances performance, indicating the impact of signal quality.
  • Bidirectional RNNs for Temporal Context: The use of bidirectional RNNs is highlighted as a key factor in capturing the full temporal context of EEG signals, which is essential for accurate seizure detection.

Key Results

The proposed framework achieves impressive performance across multiple classification scenarios:

  • Binary Classification (Seizure vs. Normal): Achieves accuracies of 99%-100% for the A vs. E classification.
  • Ternary Classification (Normal-Interictal-Seizure): Achieves accuracies ranging from 97.2% to 99.2%.
  • Four-Class Classification: Achieves accuracies between 96.2% and 98.4%.
  • Five-Class Classification: Achieves accuracies from 95.81% to 98%.

These results are consistently high across different studies involving filtered and unfiltered signals, and varying signal durations, often outperforming previous state-of-the-art methods as presented in Tables 5-9. The ablation study (Table 10) confirms the significant contribution of both 1D-CNN and Bi-LSTM/Bi-GRU layers to the overall performance.

Limitations and Future Work

  • Dataset Specificity: The study is primarily validated on the Bonn dataset. While it's a widely used benchmark, testing on diverse datasets with different characteristics would further establish the model's generalizability.
  • Computational Cost: While the framework is efficient, the authors mention exploring inference and training times. Further optimization for real-time applications might be necessary.
  • Artifact Handling: Although the model shows robustness, explicitly addressing specific types of artifacts in EEG signals could be a future direction.
  • Extension to Other Datasets: The authors suggest that the framework's efficacy could be tested on other datasets for broader applicability.
  • Seizure Prediction: While the paper focuses on detection, extending the framework to seizure prediction (forecasting an upcoming seizure) is a natural next step.

Summary updated

BibTeX
@article{mallick2024novel,
  author = {Sayani Mallick and Veeky Baths},
  title = {{Novel deep learning framework for detection of epileptic seizures using EEG signals}},
  journal = {Frontiers Comput. Neurosci.},
  year = {2024},
  doi = {10.3389/fncom.2024.1340251},
}
Figure