Skip to main content
QUICK REVIEW

[Paper Review] Real-Time Seizure Detection using EEG: A Comprehensive Comparison of Recent Approaches under a Realistic Setting

Kwanhyung Lee, Hyewon Jeong|arXiv (Cornell University)|Jan 21, 2022
EEG and Brain-Computer InterfacesNeuroscience11 citations
TL;DR

This paper presents a comprehensive, real-time comparison of state-of-the-art deep learning models and signal feature extractors for EEG-based seizure detection under identical, realistic experimental conditions. It introduces a novel margin-based evaluation metric and demonstrates that ResNet-short + LSTM with EPOCH feature extraction achieves the highest AUROC (0.92) and best balance of sensitivity and specificity, outperforming other models and feature types in practical real-time deployment scenarios.

ABSTRACT

Electroencephalogram (EEG) is an important diagnostic test that physicians use to record brain activity and detect seizures by monitoring the signals. There have been several attempts to detect seizures and abnormalities in EEG signals with modern deep learning models to reduce the clinical burden. However, they cannot be fairly compared against each other as they were tested in distinct experimental settings. Also, some of them are not trained in real-time seizure detection tasks, making it hard for on-device applications. Therefore in this work, for the first time, we extensively compare multiple state-of-the-art models and signal feature extractors in a real-time seizure detection framework suitable for real-world application, using various evaluation metrics including a new one we propose to evaluate more practical aspects of seizure detection models. Our code is available at https://github.com/AITRICS/EEG_real_time_seizure_detection.

Motivation & Objective

  • To establish a fair, realistic benchmark for real-time seizure detection using EEG, addressing inconsistencies in prior studies' experimental settings and evaluation metrics.
  • To evaluate the performance of state-of-the-art deep learning models and signal feature extractors (e.g., EPOCH, STFT, LFCC, SincNet) under identical real-time constraints.
  • To introduce and validate a novel margin-based evaluation metric that measures detection accuracy relative to actual seizure onset and offset times, improving clinical relevance.
  • To assess practical deployment factors such as processing latency, false alarms per 24 hours, and robustness to anti-aliasing effects in EEG preprocessing.
  • To provide a reproducible, open-source framework (code and data) for future research and clinical model deployment using the TUH EEG Seizure Corpus V1.5.2.

Proposed method

  • The study employs a real-time sliding window inference framework with a 4-second window and variable stride, ensuring all models process data within the window's duration to guarantee real-time operation.
  • Signal preprocessing includes multiple feature extractors: raw EEG, EPOCH, STFT, LFCC, SincNet, frequency bands, and downsampled signals, with and without anti-aliasing bandpass filtering.
  • Deep learning models tested include CNN2D+LSTM and ResNet-short + LSTM, trained and evaluated end-to-end on the TUH EEG Seizure Corpus V1.5.2 dataset.
  • A novel evaluation metric, MARGIN, is proposed to assess whether seizure detection occurs within a defined time window (3sec or 5sec) around actual onset and offset, improving clinical practicality.
  • Performance is evaluated using standard metrics (AUROC, AUPRC, TPR, TNR) and additional practical metrics: false alarms per 24 hours and onset latency (time from seizure onset to detection).
  • Experiments are repeated over 5 runs to ensure statistical robustness, with results averaged and standard deviations reported.

Experimental results

Research questions

  • RQ1How do different state-of-the-art deep learning models (e.g., ResNet-short + LSTM vs. CNN2D+LSTM) perform in real-time binary seizure detection under identical experimental conditions?
  • RQ2Which signal feature extraction method (e.g., EPOCH, STFT, LFCC, SincNet) yields the highest detection performance in terms of AUROC, AUPRC, and clinical practicality?
  • RQ3How does the inclusion of anti-aliasing bandpass filtering before down-sampling affect the performance of real-time seizure detection models?
  • RQ4To what extent does the proposed margin-based evaluation metric improve the assessment of model performance compared to standard metrics in clinical deployment contexts?
  • RQ5What is the trade-off between detection latency, false alarm rate, and detection accuracy across different model and feature combinations?

Key findings

  • ResNet-short + LSTM with EPOCH feature extraction achieved the highest AUROC (0.92) and AUPRC (0.91), outperforming other models and feature types.
  • The EPOCH feature extractor achieved the best balance of sensitivity (TPR: 0.83) and specificity (TNR: 0.85), with only 1.68 false alarms per 24 hours when TNR exceeded 0.95.
  • The margin-based metric showed that EPOCH-based models detected seizures within 3 seconds of onset in 49% of cases and within 5 seconds in 62% of cases, indicating strong clinical relevance.
  • Anti-aliasing filtering before down-sampling improved model performance: ResNet-short + LSTM achieved AUROC of 0.91 and AUPRC of 0.90 after filtering, compared to 0.88 and 0.87 without filtering.
  • The SincNet feature extractor achieved the highest TNR (1.0) but lowest TPR (0.33), indicating high specificity but poor sensitivity, limiting its clinical utility.
  • Onset latency was lowest (3.96 seconds) for downsampled features and highest (24.77 seconds) for SincNet, highlighting trade-offs between feature complexity and real-time responsiveness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.