Abstract
Functional Magnetic Resonance Imaging (fMRI) provides critical insights into brain activity, yet its application in deep learning is hindered by the scarcity of labeled clinical data and the difficulty of modeling dynamic neural connections. We present Spatio-Temporal Masked Auto-Encoder (ST-MAE), a generative self-supervised learning framework that treats fMRI data as a dynamic graph. By reconstructing masked nodes and edges across both spatial and temporal dimensions, ST-MAE learns robust representations of brain dynamics. Our experiments across multiple large-scale datasets demonstrate that ST-MAE achieves state-of-the-art performance in gender classification, age regression, and psychiatric disorder diagnosis, particularly in low-label regimes.
Introduction
The analysis of fMRI data faces two primary challenges: the "label drought," where high-quality clinical labels are expensive and scarce, and the inherent dynamism of brain networks. Traditional models often treat functional connectivity as a static map, ignoring how regional communication evolves over time. While self-supervised learning (SSL) offers a solution by leveraging unlabeled data, existing contrastive methods may overlook fine-grained semantic details and the temporal trajectory of brain activity.
Methods
ST-MAE models fMRI data as a dynamic graph where nodes represent brain regions of interest (ROIs) and edges represent connection strengths. The framework employs two primary pretext tasks during pre-training:
- Spatial Reconstruction: The model masks specific nodes and edges at a given time step and utilizes a Graph Neural Network (GNN) encoder to rebuild them.
- Temporal Reconstruction: The model takes representations from two different time points ($t_{past}$ and $t_{future}$) and predicts the brain network state at an intermediate time point ($t_{present}$).
By forcing the model to "fill in the blanks" across both the physical structure of the brain and the timeline of the scan, it learns a deep, nuanced representation of neural dynamics.
Datasets and Evaluation
The study utilizes an extensive collection of fMRI datasets. Pre-training was conducted on the UK Biobank (UKB), featuring approximately 40,000 entries. Downstream evaluation spanned several benchmarks, including the ABCD study, HCP (Young Adult, Aging, and Development), ABIDE (Autism Spectrum Disorder), and ADHD200.
Key Results and Insights
ST-MAE consistently outperformed both supervised baselines and state-of-the-art SSL methods across multiple tasks:
- Performance Gains: In gender classification on the ABIDE dataset, ST-MAE achieved an AUROC of 77.89, significantly higher than the 68.81 static baseline.
- Label Efficiency: In clinical tasks such as ASD and ADHD diagnosis, the model maintained high accuracy even when labeled data was reduced to 10-20% of the original set, highlighting its utility for rare disease research.
- Scaling Laws: Performance correlates positively with the amount of unlabeled data used during the SSL phase, suggesting that "foundation models" for the brain are a viable path forward.
Conclusion
ST-MAE provides a powerful generative framework for modeling dynamic brain networks. While the model exhibits sensitivity to masking ratios and requires significant computational resources, its ability to extract meaningful patterns from unlabeled data makes it a valuable tool for neuroimaging. Future work will focus on improving model interpretability to better understand the spatio-temporal patterns signifying specific psychiatric disorders.
Summary updated