Abstract
Extensive data labeling on neurophysiological signals is often prohibitively expensive or impractical, as it may require particular infrastructure or domain expertise. To address the appetite for data of deep learning methods, we present for the first time a Fourier-based modeling framework for self-supervised pre-training of neurophysiology signals. The intuition behind our approach is simple: frequency and phase distribution of neurophysiology signals reveal the underlying neurophysiological activities of the brain and muscle. Our approach first randomly masks out a portion of the input signal and then predicts the missing information from either spatiotemporal or the Fourier domain. Pre-trained models can be potentially used for downstream tasks such as sleep stage classification using electroencephalogram (EEG) signals and gesture recognition using electromyography (EMG) signals. Unlike contrastive-based methods, which strongly rely on carefully hand-crafted augmentations and siamese structure, our approach works reasonably well with a simple transformer encoder with no augmentation requirements. By evaluating our method on several benchmark datasets, including both EEG and EMG, we show that our modeling approach improves downstream neurophysiological related tasks by a large margin.
Introduction
Deep learning has massive potential for medical diagnostics and brain-computer interfaces (BCIs), but it faces a significant "data appetite" problem. High-quality, annotated neurological data is expensive and rare. While fields like Computer Vision (CV) and Natural Language Processing (NLP) have leveraged self-supervised learning (SSL) to solve this—where models learn from unlabeled data by solving "pretext" puzzles—these methods do not translate directly to brain signals.
Contrastive learning, popular in CV, relies on hand-crafted data augmentations (like flipping or cropping) that can destroy the delicate information in a neural signal. Meanwhile, standard masked autoencoders (predicting missing chunks of raw signal) struggle because neurological data is "informatively sparse" and highly stochastic in the time domain. To overcome these challenges, we propose a novel framework that shifts the reconstruction task from the noisy time domain to the structured frequency domain.
Methodology
The core of our framework is a novel pretext task called Fourier Inversion Prediction (FIP). The architecture follows a streamlined pipeline:
- Patch Embedding: The raw input signal is segmented into non-overlapping patches and converted into tokens using a 1-D convolution.
- Masking: A portion of these tokens is randomly hidden (masked) to force the model to learn contextual dependencies.
- Transformer Encoding: A standard Transformer encoder processes the visible and masked tokens to capture long-range dependencies across the signal.
- Fourier Inversion Prediction (FIP): Instead of guessing raw voltage values, the model predicts the amplitude and phase of the Fourier spectrum for the missing segments.
- Reconstruction: The predicted Fourier components are transformed back into the time domain using the Inverse Fourier Transform (IFT). The model is trained to minimize the error between this reconstructed signal and the original.
This approach is bio-inspired: neurological activities are often defined by their frequency bands (e.g., Alpha or Beta waves in EEG) and muscle recruitment patterns (phase in EMG). By predicting these components, the model learns the underlying biological "rhythm" of the data rather than just memorizing local noise.
Experiments and Results
We evaluated the model on several diverse benchmarks, including SleepEDF (EEG for sleep classification), Epilepsy (EEG for seizure detection), and Ninapro DB5 (sEMG for gesture recognition and joint angle regression).
Key Insights
- Frequency > Time: Neurological signals are highly structured in the frequency domain. Fourier-based prediction makes the model remarkably stable across different masking ratios (from 10% to 40%).
- Superior Performance: The model consistently outperformed both supervised baselines and existing SSL methods. On SleepEDF, it achieved 86.53% accuracy, surpassing the supervised baseline (84.23%) and contrastive methods like TS-TCC (84.05%).
- Low-Data Efficiency: In semi-supervised tests using only 1% of labeled data, our approach improved accuracy by +30.31% over random initialization on the Ninapro dataset.
- Representation Quality: While contrastive methods (SimCLR, MoCo) are effective at initial clustering, our representations show significantly better linear separability and task-specific refinement after fine-tuning.
Conclusion
Neuro-BERT (neuro2vec) demonstrates that the Fourier domain provides a more robust target for self-supervised learning in neurophysiology than the raw time domain. While the current model requires fine-tuning to reach its full potential, its ability to generalize across different biological signals and tasks marks a significant step toward scalable, label-efficient medical AI. Future work will focus on adaptive weighting to handle extreme noise and expanding the framework to multi-modal human-computer interaction.
Summary updated