A self-attention model for cross-subject seizure detection

Comput Biol Med. 2023 Oct:165:107427. doi: 10.1016/j.compbiomed.2023.107427. Epub 2023 Sep 1.

Abstract

Epilepsy is a neurological disorder characterized by recurring seizures, detected by electroencephalography (EEG). EEG signals can be detected by manual time-consuming analysis and recently by automatic detection. The latter poses a significant challenge due to the high dimensional and non-stationary nature of EEG signals. Recently, deep learning (DL) techniques have emerged as valuable tools for seizure detection. In this study, a novel data-driven model based on DL, incorporating a self-attention mechanism (SAT), is proposed. One notable advantage of the proposed method is its simplicity in application, as the raw signal data is directly fed into the suggested network without requiring expertise in signal processing. The model leverages a one-dimensional convolutional neural network (CNN) to extract relevant features from EEG signals. These features are then passed through a long short-term memory (LSTM) module to benefit from its memory capabilities, along with a SAT mechanism. The key contribution of this paper lies in the addition of the SAT layer to the LSTM encoder, enabling enhanced exploration of the latent mapping during the encoding step. Cross-subject experiments revealed good performance of this approach with F1-score of 97.8% and 92.7% for binary and five-class epileptic seizure recognition tasks, respectively, on the public UCI dataset, and 97.9% on the CHB-MIT database, surpassing state-of-the-art DL performance. Besides, the proposed method exhibits robustness to inter-subject variability.

Keywords: Convolutional neural network (CNN); Deep learning (DL); Electroencephalography (EEG); Epileptic seizure recognition; Long short-term memory (LSTM); Self-attention (SAT).

MeSH terms

  • Databases, Factual
  • Electroencephalography*
  • Humans
  • Neural Networks, Computer
  • Seizures* / diagnosis
  • Signal Processing, Computer-Assisted