Neuro-BERT: Rethinking Masked Autoencoding for Self-Supervised Neurological Pretraining

Di Wu, Siyuan Li, Jie Yang, Mohamad Sawan

TL;DR

This paper introduces Neuro-BERT, a novel self-supervised pre-training framework for neurological signals that leverages masked autoencoding in the Fourier domain. By predicting masked frequency and phase information, Neuro-BERT effectively learns robust representations from sparse and noisy neurological data, significantly outperforming existing methods on various downstream tasks without requiring extensive data augmentation.

What Problem Does This Paper Address?

Neurological signals, such as EEG and EMG, hold immense potential for applications ranging from medical diagnostics to brain-computer interfaces. However, unlocking this potential with deep learning is hampered by the scarcity and high cost of acquiring large, annotated datasets. Traditional supervised learning methods struggle with this data bottleneck. While self-supervised learning (SSL) has shown promise in other domains like computer vision and natural language processing, directly applying these methods to neurological signals is challenging due to their unique characteristics: they are often informatively sparse, stochastic, and non-stationary. Existing SSL approaches for neurological signals, particularly contrastive learning methods, often rely on carefully crafted data augmentations that may not translate well or can even corrupt the signal's inherent meaning. This paper aims to bridge this gap by developing a more robust and data-efficient self-supervised pre-training method specifically tailored for neurological signals.

Methods

Neuro-BERT builds upon the success of masked autoencoding (MAE) techniques, similar to BERT in NLP. The core innovation lies in its Fourier Inversion Prediction (FIP) task. Instead of directly predicting masked signal segments in the time-domain, Neuro-BERT operates in the Fourier domain.

Here's a breakdown of the key components:

  • Patch Embedding: The input neurological signal is first segmented into non-overlapping "patches" using 1D convolutions, similar to how images are tokenized in Vision Transformers (ViT).
  • Masking Strategy: A portion of these patch embeddings is randomly masked. These masked tokens are then replaced with a learnable "mask token." Positional embeddings are added to retain temporal information.
  • Encoder Architecture: A standard Transformer encoder is used to process the masked sequence and extract latent representations. This choice is motivated by the Transformer's flexibility and ability to handle sequential data without strong inductive biases, making it suitable for raw neurological signals.
  • Fourier Inversion Prediction (FIP): This is the novel pre-training task. The model is trained to predict the magnitude and phase of the masked signal segments in the Fourier domain. These predicted components are then used with the inverse Fourier transform (IDFT) to reconstruct the original signal. The intuition is that frequency and phase distributions capture crucial neurological activities.
  • Prediction Head: A simple linear layer is used as the prediction head to estimate the magnitude and phase. This simplicity is a key advantage.

Crucially, Neuro-BERT does not require data augmentation, unlike many contrastive learning methods. This avoids potential signal corruption and simplifies the training process.

Datasets

The paper evaluates Neuro-BERT on several benchmark datasets for various neurological tasks:

  • SleepEDF: EEG recordings for sleep stage classification.
  • Epilepsy: EEG recordings for epileptic seizure detection.
  • Ninapro DB5: EMG signals for hand gesture recognition and finger joint angle regression.

These datasets represent diverse types of neurological signals and downstream tasks, allowing for a comprehensive evaluation of the proposed method.

Key Insights and Ideas

  • Fourier Domain is Key for Neurological Signals: The paper strongly suggests that frequency and phase information in the Fourier domain are more informative and robust for representing neurological activities than raw time-domain signals, especially when dealing with sparsity and noise.
  • Masked Autoencoding is More Suitable than Contrastive Learning for Fine-tuning: While contrastive methods excel at learning discriminative features (good for linear probing), MAE methods like Neuro-BERT capture more general, low-level features. This makes them significantly better for fine-tuning on downstream tasks, leading to greater performance gains.
  • No Data Augmentation Needed: The ability of Neuro-BERT to achieve strong performance without relying on complex and potentially detrimental data augmentations is a major practical advantage. This simplifies the pipeline and preserves the integrity of the original signals.
  • Simplicity of FIP and Linear Decoder: The proposed FIP task and the use of a simple linear decoder demonstrate that complex architectures are not always necessary for effective self-supervised pre-training in this domain.

Key Results

Neuro-BERT consistently achieves state-of-the-art performance across various downstream tasks and datasets:

  • Fine-tuning Performance: Neuro-BERT significantly outperforms existing self-supervised methods (contrastive and MAE-based) and even supervised baselines on classification tasks (SleepEDF, Epilepsy, Ninapro) and regression tasks (Ninapro finger joint angle). For instance, it shows substantial gains in accuracy and macro F1-score compared to methods like TS-TCC and MoCo.V3.
  • Semi-supervised Learning: In scenarios with limited labeled data (as low as 1%), Neuro-BERT provides significant improvements over random initialization and other MAE methods like MaskedAE, demonstrating its effectiveness in data-scarce situations.
  • Transfer Learning: Neuro-BERT shows strong transferability, performing well when fine-tuned between classification and regression tasks on the Ninapro dataset.
  • Ablation Studies:
    • Masking ratios around 10-20% are optimal for the spatiotemporal domain, but the Fourier domain (FIP) is more robust to varying masking ratios.
  • A simple linear decoder is sufficient and even outperforms more complex decoder architectures.
  • Integrating FIP into other MAE approaches (like GPT and MaskedAE) consistently improves their performance.

Limitations and Future Work

The authors acknowledge several limitations and propose future research directions:

  • Data Annotation Dependency: While self-supervised, Neuro-BERT still benefits from having some data for pre-training. Its performance gains are less pronounced when only very small datasets are available.
  • Noise Handling: The current FIP approach might struggle with highly noisy neurological signals, as noise can also be present in the Fourier domain.
  • Linear Separability: Compared to contrastive methods, Neuro-BERT's learned representations might exhibit lower linear separability, although this is less critical for fine-tuning performance.

Future work includes:

  • Developing adaptive weighting mechanisms for the frequency loss function to better handle noise.
  • Exploring hybrid approaches that combine contrastive learning with masked autoencoding.
  • Extending the framework to a multi-modal setting, integrating neurological signals with other modalities like images and text for enhanced human-computer interaction.

Summary updated

BibTeX
@article{wu2022neuro,
  author = {Di Wu and Siyuan Li and Jie Yang and Mohamad Sawan},
  title = {{Neuro-BERT: Rethinking Masked Autoencoding for Self-Supervised Neurological Pretraining}},
  journal = {IEEE Journal of Biomedical and Health Informatics},
  year = {2022},
}
Figure