BrainCast: A Spatio-Temporal Forecasting Model for Whole-Brain fMRI Time Series Prediction

Yunlong Gao, Jinbo Yang, Li Xiao, Haiye Huo, Yang Ji, Hao Wang, Aiying Zhang, Yu-Ping WangarXiv 2026

TL;DR

BrainCast is a novel deep learning framework designed to forecast whole-brain fMRI time series, effectively "extending" scan durations without requiring patients to spend more time in the scanner. By jointly modeling complex spatial interactions across brain regions and intrinsic temporal dynamics, it significantly outperforms state-of-the-art time-series baselines and improves downstream cognitive ability predictions.

What Problem Does This Paper Address?

Functional magnetic resonance imaging (fMRI) is a cornerstone of modern neuroscience, but it suffers from a practical bottleneck: scan durations in clinical settings are often too short. Patients—particularly children, the elderly, pregnant individuals, or those with psychiatric disorders—struggle to remain still for long periods, leading to motion artifacts and data degradation. Short scans result in a low signal-to-noise ratio (SNR) and limited statistical power for neuroimaging research.

While generic deep learning models excel at forecasting data like traffic flow or electricity usage, they fail when applied to fMRI data. Brain signals are highly nonstationary, plagued by noise, and heavily dependent on complex, large-scale spatial interactions across different Regions of Interest (ROIs) in the brain. This paper introduces BrainCast to bridge this gap, treating whole-brain fMRI prediction as a specialized multivariate time-series forecasting problem.

Methods

BrainCast uses a sliding-window approach to predict future brain activity ($X_F$) given a historical look-back window ($XP$). The architecture consists of three core components:

  1. Spatial Interaction Awareness (SIA) Module: Instead of tokenizing data point-by-point across time (which mixes noise across brain regions), the SIA module embeds the entire time series of each individual ROI as a single token. It then utilizes a customized SIAformer equipped with a Fourier Analysis Network (FAN) to capture long-range, inter-ROI spatial dependencies and functional correlations.
  2. Temporal Feature Refinement (TFR) Module: Brain dynamics consist of both high-energy (low-frequency) trends and low-energy (high-frequency) fluctuations. Standard frequency-domain models often ignore the low-energy components. The TFR module uses a spectrum-flipping technique ("Amplifier") and Seasonal-Trend Decomposition to ensure both low- and high-energy temporal features are learned without bias.
  3. Spatio-temporal Pattern Alignment (SPA) Module: Because spatial and temporal representations reside in different semantic spaces, simply concatenating them creates redundancy. The SPA module uses a cross-attention mechanism to dynamically align and fuse these heterogeneous features into a unified global representation before passing it to the forecasting head.
Fig. 1: The overall framework of BrainCast. (a) fMRI data preprocessing; (b) The Spatial Interaction Awareness (SIA) module for learning between-ROI spatial interactions; (c) The Temporal Feature Refinement (TFR) module for extracting temporal dy- namics within every ROI; and (d) The Spatio-temporal Pattern Alignment (SPA) module for aligning spatio-temporal represent- ations across ROIs and time points.

Datasets

The model was evaluated using data from the Human Connectome Project (HCP) S1200 Release, selecting a robust cohort of 862 healthy young adults. The data was parcellated into 268 ROIs using the Shen functional atlas and split into two distinct benchmarks:

  • HCP-rs-fMRI: Resting-state fMRI data capturing intrinsic brain activity.
  • HCP-t-fMRI: Task-based fMRI data, concatenating time series across seven distinct cognitive tasks (e.g., working memory, language processing, social cognition).

Key Insights and Ideas

  • Variate-Level Tokenization is Essential for fMRI: Traditional Transformers tokenized by time-steps struggle with fMRI because strong noise from a single artifact can corrupt the entire temporal token layer. Tokenizing by ROI (variate-level) isolates noise and allows the attention mechanism to map true biological brain networks.
  • Low-Energy Components Matter: High-frequency, low-energy components encode stable patterns of spontaneous neural activity. Equalizing them during training prevents the model from over-fitting to slow, dominant scanner drifts.
  • Biological Validation via Attention Maps: When visualizing the model's internal attention maps, resting-state fMRI revealed a striking left-right hemispheric symmetry (homotopic functional connectivity). Conversely, task-driven states attenuated this symmetry, showing lateralized, task-specific activation. This confirms that BrainCast learns genuine neurobiological properties rather than statistical noise.

Key Results

BrainCast was benchmarked against 8 prominent baselines, including advanced Transformers (PatchTST, iTransformer), linear models (DLinear), and graph neural networks (FourierGNN).

  • Forecasting Accuracy: BrainCast consistently achieved the lowest error metrics (MSE, MAE) and highest correlation metrics ($R, R^2$) across both resting-state and task datasets. For instance, on resting-state data, it decreased MSE by $\ge 0.014$ and increased the correlation coefficient ($R$) by $\ge 0.030$ compared to the next-best model.
Fig. 4: Visualization of forecasting results on a randomly selected ROI of one test sample for HCP-rs-fMRI (a) and HCP-t-fMRI (b), respectively. The black dots denote the previous and ground-truth future data, and the blue dots denote the predicted data.
  • Downstream Utility: To prove the practical value of the generated data, the authors used the forecasted time series to predict fluid intelligence scores (Penn Matrix Reasoning Test). Artificially extending a short 140-point fMRI sequence to 160 points using BrainCast predictions consistently improved downstream prediction accuracy across multiple machine learning models (BrainNetCNN, GCN, SVR).

Limitations and Future Work

While promising, the authors note that the current framework does not explicitly account for individual subject-specific variability, which is crucial for clinical diagnostic applications. Future work will focus on addressing this variability, integrating multi-modal data fusion (such as combining fMRI with structural MRI or diffusion tensor imaging), and validating the model on clinical cohorts with specific neurological disorders.

Summary updated

BibTeX
@misc{gao2026braincast,
  author = {Yunlong Gao and Jinbo Yang and Li Xiao and Haiye Huo and Yang Ji and Hao Wang and Aiying Zhang and Yu-Ping Wang},
  title = {{BrainCast: A Spatio-Temporal Forecasting Model for Whole-Brain fMRI Time Series Prediction}},
  year = {2026},
  eprint = {2603.13361},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.13361},
}
Figure