BioSerenity-E1: a self-supervised EEG model for medical applications
Ruggero G. Bettinardi, Mohamed Rahmouni, Ulysse Gimenez
TL;DR
BioSerenity-E1 introduces a self-supervised EEG foundation model built from spectral tokenization via a transformer-based VQ-VAE tokenizer and a Masked Token Predictor to learn rich, transferable features from 4000 hours of clinical EEG. The two-stage pretraining enables robust representations that are then fine-tuned for seizure detection, normal/abnormal EEG classification, and multiclass pathology tasks, achieving state-of-the-art or competitive performance across multiple datasets and metrics. The work demonstrates strong results in low-data regimes, indicating practical value for clinical deployment where labeled data are scarce. Limitations include channel-set generalization and codebook utilization, pointing to future work on diverse data, channel-agnostic inputs, and entropy-based improvements to unleash the full capacity of the learned representations.
Abstract
Electroencephalography (EEG) serves as an essential diagnostic tool in neurology; however, its accurate manual interpretation is a time-intensive process that demands highly specialized expertise, which remains relatively scarce and not consistently accessible. To address these limitations, the implementation of automated pre-screening and analysis systems for EEG data holds considerable promise. Advances in self-supervised learning made it possible to pre-train complex deep learning architectures on large volumes of unlabeled EEG data to learn generalizable representations, that can later be used to enhance performance on multiple tasks while needing less downstream data. In the present paper, we introduce BioSerenity-E1, the first of a family of self-supervised foundation models for clinical EEG applications that combines spectral tokenization with masked prediction to achieve state-of-the-art performance across relevant diagnostic tasks. The two-phase self-supervised pretraining framework initially acquires compressed EEG representations via a transformer-based VQ-VAE architecture designed to reconstruct log-multitaper spectral projections, then implements extensive (70% block) masked token prediction to force the model to learn complex spatiotemporal dependencies in EEG signals. BioSerenity-E1 achieves strong performance across three clinical tasks, either in line or above state-of-the-art methods: seizure detection (AUROC = 0.926, Sensitivity = 0.909), normal/abnormal classification (AUPRC = 0.970 on proprietary data; 0.910 on TUH-Abnormal), and multiclass pathology differentiation on unbalanced data (Weighted F1 = 0.730). The utility of BioSerenity-E1 is further confirmed in low-data regimes scenarios, showing clear improvements in AUPRC (from +2% to 17%) when trained on less than 10% of the available data.
