Self-supervised representation learning from electroencephalography signals

Hubert J. Banville, Isabela Albuquerque, Aapo Hyvärinen, Graeme Moffat, Denis-Alexander Engemann, Alexandre Gramfort

Abstract

Electroencephalography (EEG) is a critical tool for monitoring brain health, yet its analysis remains bottlenecked by the need for expert manual annotation. This paper explores self-supervised learning (SSL) as a means to leverage massive, unlabeled brainwave datasets. By exploiting the temporal structure of EEG signals through novel pretext tasks—Relative Positioning and Temporal Shuffling—the authors demonstrate that deep learning models can learn robust representations of brain activity. These models effectively identify sleep stages and estimate biological age without requiring labeled training data, significantly outperforming supervised approaches in low-data scenarios.

Introduction

The clinical utility of EEG, particularly in tasks like sleep staging, is limited by the high cost and scarcity of expert-labeled data. While vast quantities of unlabeled EEG data exist, traditional unsupervised methods often fail to capture the nuanced features necessary for clinical applications. This work bridges the gap by applying SSL, where the inherent structure of the data provides the supervision signal.

Methods: Temporal Pretext Tasks

The researchers propose that because brain activity evolves over time, temporal proximity can serve as a proxy for similarity. They introduce two specific self-supervised tasks:

  1. Relative Positioning (RP): The model predicts whether a second EEG window is "positive" (sampled near an anchor window) or "negative" (sampled from a different time or recording).
  2. Temporal Shuffling (TS): The model determines if three EEG windows are in their original chronological order or have been shuffled.

Both tasks utilize a Siamese CNN architecture to extract compact embeddings from raw EEG signals. These embeddings are then evaluated on downstream clinical tasks, such as sleep staging, using a simple linear classifier.

Results and Discussion

Performance in Low-Data Regimes

A key advantage of SSL is its performance when labeled data is scarce. As shown in the accuracy comparisons, the SSL-based models (RP and TS) consistently outperform standard supervised learning across varying amounts of labeled data per class. Notably, with only one labeled example per sleep stage, SSL models achieved approximately 25% higher accuracy than their supervised counterparts.

Emergent Physiological Representations

Beyond performance gains, the SSL models learned to capture complex physiological information that was not explicitly part of the training objective. UMAP visualizations of the learned embeddings reveal distinct clustering by sleep stages and a clear gradient corresponding to the biological age of the subjects. This suggests that the temporal pretext tasks force the model to learn fundamental characteristics of brain activity.

Conclusion

This study demonstrates that self-supervised learning is a powerful paradigm for EEG analysis. By leveraging the temporal context of brainwaves, models can learn high-quality representations that are both data-efficient and physiologically meaningful. Future work will explore more advanced architectures like Transformers and the applicability of these methods to other clinical domains such as epilepsy detection.

Summary updated

BibTeX
@inproceedings{banville2019self,
  author = {Hubert J. Banville and Isabela Albuquerque and Aapo Hyvärinen and Graeme Moffat and Denis-Alexander Engemann and Alexandre Gramfort},
  title = {{Self-supervised representation learning from electroencephalography signals}},
  booktitle = {MLSP},
  year = {2019},
  doi = {10.1109/mlsp.2019.8918693},
}
Figure