Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Mar:215:106604.
doi: 10.1016/j.cmpb.2021.106604. Epub 2021 Dec 29.

Unsupervised seizure identification on EEG

Affiliations

Unsupervised seizure identification on EEG

İlkay Yıldız et al. Comput Methods Programs Biomed. 2022 Mar.

Abstract

Background and objective: Epilepsy is one of the most common neurological disorders, whose development is typically detected via early seizures. Electroencephalogram (EEG) is prevalently employed for seizure identification due to its routine and low expense collection. The stochastic nature of EEG makes manual seizure inspections laborsome, motivating automated seizure identification. The relevant literature focuses mostly on supervised machine learning. Despite their success, supervised methods require expert labels indicating seizure segments, which are difficult to obtain on clinically-acquired EEG. Thus, we aim to devise an unsupervised method for seizure identification on EEG.

Methods: We propose the first fully-unsupervised deep learning method for seizure identification on raw EEG, using a variational autoencoder (VAE). In doing so, we train the VAE on recordings without seizures. As training captures non-seizure activity, we identify seizures with respect to the reconstruction errors at inference time. Moreover, we extend the traditional VAE training loss to suppress EEG artifacts. Our method does not require ground-truth expert labels indicating seizure segments or manual feature extraction.

Results: We implement our method using the PyTorch library and execute experiments on an NVIDIA V100 GPU. We evaluate our method on three benchmark EEG datasets: (i) intracranial recordings from the University of Pennsylvania and the Mayo Clinic, (ii) scalp recordings from the Temple University Hospital of Philadelphia, and (iii) scalp recordings from the Massachusetts Institute of Technology and the Boston Children's Hospital. To assess performance, we report accuracy, precision, recall, Area under the Receiver Operating Characteristics Curve (AUC), and p-value under the Welch t-test for distinguishing seizure vs. non-seizure EEG windows. Our approach can successfully distinguish seizures from non-seizure activity, with up to 0.83 AUC on intracranial recordings. Moreover, our algorithm has the potential for real-time inference, by processing at least 10 s of EEG in a second.

Conclusion: We take the first successful steps in deep learning-based unsupervised seizure identification on raw EEG. Our approach has the potential of alleviating the burden on clinical experts regarding laborsome EEG inspections for seizures. Furthermore, aiding the identification of early seizures via our method could facilitate successful detection of epilepsy development and initiate antiepileptogenic therapies.

Keywords: EEG; Epilepsy; Seizure; Sparsity; Unsupervised learning; Variational autoencoder.

PubMed Disclaimer

Conflict of interest statement

Declaration of Competing Interest The authors declare that they have no conflict of interests. The authors alone are responsible for the content and writing of this article.

Figures

Fig. 1.
Fig. 1.
Our Variational Autoencoder architecture. The encoder contains convolutional (conv.), batch-normalization (batch norm.), and fully-connected (FC) layers for latent feature extraction, while the decoder contains convolutional transpose (deconv.) and FC layers for upsampling and reconstruction [50]. Conv. and deconv. layers apply 4 × 4 convolutional filters, with the number of filter channels written next to the filter size. FC layers are described via their output dimension. For each layer, the activation function is written in the end of the corresponding description.
Fig. 2.
Fig. 2.
Distributions of the seizure identification performance metrics of our VAE-based unsupervised method. For each metric, the line inside each box indicates the median, upper and lower limits of each box indicate the upper and lower quartiles, and upper and lower limits of each vertical line indicate the maximum and minimums attained over the 5 test folds.
Fig. 3.
Fig. 3.
Example EEG windows and corresponding seizure identifications on UPenn.
Fig. 4.
Fig. 4.
Latent means predicted from seizure (red) vs. non-seizure (blue) windows on UPenn w.r.t. each pair of 3 dimensions. Dimension is reduced from D = 64 to 3 using the t-SNE algorithm.

References

    1. Thijs RD, Surges R, O’Brien TJ, Sander JW, Epilepsy in adults, Lancet 393 (10172) (2019) 689–701. - PubMed
    1. Engel J, Seizures and epilepsy, volume 83, Oxford University Press, 2013.
    1. Vespa PM, Shrestha V, Abend N, Agoston D, Au A, Bell MJ, Bleck TP, Blanco MB, Claassen J, Diaz-Arrastia R, et al., The epilepsy bioinformatics study for anti-epileptogenic therapy (EpiBioS4Rx) clinical biomarker: study design and protocol, Neurobiol. Dis. 123 (2019) 110–114. - PMC - PubMed
    1. Hirsch L, LaRoche S, Gaspard N, Gerard E, Svoronos A, Herman S, Mani R, Arif H, Jette N, Minazad Y, et al., American clinical neurophysiology society standardized critical care EEG terminology: 2012 version, J. Clin. Neurophysiol. 30 (1) (2013) 1–27. - PubMed
    1. Saba-Sadiya S, Chantland E, Alhanai T, Liu T, Ghassemi MM, Unsupervised EEG artifact detection and correction, Front. Digit. Health 2 (2021) 57. - PMC - PubMed