BrainMAE: A Region-aware Self-supervised Learning Framework for Brain Signals

Yifan Yang, Yutong Mao, Xufu Liu, Xiao LiuarXiv 2024 · DOI

Introduction

Understanding the human brain as a dynamic network is a cornerstone of modern neuroscience. Functional magnetic resonance imaging (fMRI) allows researchers to observe how different brain regions (Regions of Interest, or ROIs) interact over time. However, deep learning models in this domain face a significant challenge: balancing the capture of temporal dynamics with the high levels of noise inherent in neuroimaging. Existing models typically fall into two categories: Fixed-FC models, which are stable but miss moment-to-moment changes, and Dynamic-FC models, which often struggle to distinguish signal from noise.

BrainMAE addresses this "Goldilocks" problem by applying the Masked Auto-Encoder (MAE) concept to fMRI time-series data. By combining a region-aware graph attention mechanism with a strategy of masking and reconstructing brain signals, the framework captures rich temporal dynamics while remaining resilient to noise.

Methodology: Region-aware Masked Autoencoding

BrainMAE introduces two primary innovations to process fMRI signals effectively. First, it employs Region-aware Graph Attention. Treating each brain ROI like a "word" in a sentence, the model assigns each a learnable embedding vector. These embeddings calculate a region-aware attention matrix that constrains information flow, ensuring the model respects the brain's underlying functional organization.

Second, the model utilizes Masked Autoencoding for fMRI. fMRI signals are segmented into 15-second windows. During pre-training, the model randomly masks a large portion (70%) of the ROI signals within a segment and is tasked with reconstructing the missing data. This self-supervised task forces the model to learn intrinsic relationships between regions and their temporal evolution.

The BrainMAE architecture features Transient State Encoders (TSEs) and a region-aware graph attention mechanism to reconstruct masked fMRI signals.

The architecture utilizes Transient State Encoders (TSEs), with two variants: SG-BrainMAE (Static-Graph) and AG-BrainMAE (Adaptive-Graph).

Emergent Neuroscientific Insights

A key finding of the study is that the learned ROI embeddings—initialized randomly—naturally organized themselves to reflect known neuroscientific principles. Specifically, the embeddings aligned with the cortical hierarchy (the "Principal Gradient") of the human brain, effectively "discovering" these patterns without explicit supervision.

Visualizations of learned ROI embeddings show they align with Yeo's 17 networks and the cortical hierarchy, while also enabling individual subject fingerprinting.

Furthermore, these ROI embeddings proved to be universal signatures, remaining consistent across different datasets (HCP-3T, HCP-7T, NSD) and preprocessing pipelines. The model's attention scores also correlated significantly with subjects' arousal states, acting as a proxy for alertness during tasks.

Experimental Results

BrainMAE was evaluated across several large-scale datasets, including the Human Connectome Project (HCP) and the Natural Scenes Dataset (NSD). It consistently outperformed state-of-the-art baselines in four major downstream tasks:

  • Behavior Prediction: On HCP-3T, SG-BrainMAE achieved 97.49% accuracy in gender classification and significantly lower error rates in predicting cognitive behaviors (e.g., memory, vocabulary) compared to models like BrainNetTF and STAGIN.
  • Age Prediction: The model achieved a Mean Absolute Error (MAE) of just 5.78 years on the HCP-Aging dataset.
  • Transient Mental State Decoding: BrainMAE reached ~96% accuracy in identifying mental states (e.g., math, rest, visual tasks) within short time windows.
  • Individual Fingerprinting: t-SNE visualizations demonstrated the model's ability to differentiate between individual subjects and between "task" vs. "rest" states within the same person.

Conclusion and Future Directions

BrainMAE demonstrates the power of self-supervised masked autoencoding for neuroimaging. While currently utilizing a 100-ROI parcellation, future work could explore higher-resolution spatial maps or include subcortical regions like the thalamus. Additionally, the framework's success with fMRI suggests potential applications in other network-based signals, such as EEG or non-biological traffic flow networks.

Summary updated

BibTeX
@misc{yang2024brainmae,
  author = {Yifan Yang and Yutong Mao and Xufu Liu and Xiao Liu},
  title = {{BrainMAE: A Region-aware Self-supervised Learning Framework for Brain Signals}},
  year = {2024},
  eprint = {2406.17086},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.17086},
}
Figure