fMRI-Diffusion: Generating fMRI Time Series Via a Temporal Transformer Diffusion Model for Major Depressive Disorder Diagnosis

Muhammad Asif Hasan, Yanming Zhu, Xuefei Yin, Alan Wee-Chung LiewarXiv 2026

TL;DR

fMRI-Diffusion introduces a novel framework that uses a Temporal Transformer within a diffusion model to directly synthesize high-fidelity, region-of-interest-level fMRI time series for data augmentation. By preserving the rich temporal dynamics usually lost in static functional connectivity matrices, this approach significantly boosts the accuracy of Major Depressive Disorder (MDD) classification across multiple diagnostic models and brain atlases.

What Problem Does This Paper Address?

Deep learning has shown immense promise in identifying neuroimaging biomarkers for psychiatric conditions like Major Depressive Disorder (MDD). Typically, researchers analyze resting-state functional MRI (rs-fMRI) by calculating Functional Connectivity (FC) matrices, which map the pairwise correlations of blood-oxygen-level-dependent (BOLD) signals across different brain regions.

However, training robust deep learning models requires massive datasets, which are notoriously scarce and expensive to collect in clinical settings. To combat this, previous data augmentation techniques used Generative Adversarial Networks (GANs) to synthesize artificial data. The catch? These methods generate synthetic FC matrices directly. By compressing high-dimensional fMRI recordings into static, pairwise summaries, they completely discard the multivariate temporal structures and non-linear dependencies of the original brain activity.

Methods

Instead of generating static connectivity matrices, the authors propose fMRI-Diffusion, a framework that synthesizes region-of-interest (ROI)-level fMRI time series data directly.

Figure 1: Overview of the proposed fMRI-Diffusion framework for synthesizing fMRI time-series data. The framework consists of two main stages. (1) Training (top), which follows the standard DDPM framework with a forward diffusion process and a reverse denoising process. In the forward process, Gaussian noise is progressively added to the original fMRI time series. In the reverse process, a Temporal Transformer serves as the denoising network to predict and remove noise at each diffusion step, enabling the reconstruction of clean fMRI signals. (2) Generation (bottom), where new fMRI sequences are synthesized by starting from pure noise and iteratively applying the trained Temporal Transformer in the reverse denoising process.

The architecture relies on two core pillars:

  1. Denoising Diffusion Probabilistic Models (DDPM): The framework uses a standard diffusion process where Gaussian noise is iteratively added to a clean fMRI time series (forward process) and subsequently removed to reconstruct the clean signal (reverse process).
  2. Temporal Transformer Denoiser: Instead of using standard convolutional networks (like a 1D U-Net) as the denoising backbone, the authors adapt a Transformer encoder. By treating each fMRI time point as a token, the self-attention mechanism effectively captures both short- and long-range temporal dependencies across the full sequence.
Figure 2: Architecture of the Transformer-based denoising network used in the proposed fMRI-Diffusion framework. The model combines temporal encoding and timestep embedding with the noisy fMRI input, processes the sequence through multi-head self-attention and feed-forward layers, and outputs the predicted noise for each diffusion step to guide the reverse denoising process.

Crucially, the authors introduce a two-stage training strategy. Before the Transformer is thrown into the diffusion pipeline, it undergoes supervised pretraining on an MDD vs. Healthy Control classification task. This initializes the network with highly task-relevant representations, drastically improving training stability and generation quality under data-scarce conditions. Once the high-fidelity time series are generated, standard FC matrices are computed downstream to train any standard classifier.

Datasets

The framework was evaluated using the REST-meta-MDD dataset, the largest publicly available rs-fMRI collection for MDD research.

  • Primary Evaluation: Preprocessed data from Site 20 (Southwest University), containing scans from 282 MDD patients and 251 Normal Controls (NC).
  • Cross-Site Generalization: Independent data from Site 25 (89 MDD / 63 NC), Site 21 (86 MDD / 70 NC), and Site 8 (75 MDD / 75 NC) to test robustness against multi-site scanner variability.

Key Insights and Ideas

  • Generation Before Compression: Synthesizing data at the time-series level before computing functional connectivity preserves higher-order temporal interactions that correlation-based matrices inherently collapse.
  • Discriminative Pretraining for Generative Tasks: Initializing a generative diffusion model's denoiser with weights from a supervised classification task bridges the gap between data synthesis and diagnostic utility, ensuring the generated noise patterns reflect actual biological variations.
  • Atlas-Agnostic Versatility: Because the model generates raw ROI time series, the synthetic data can be mapped onto any brain parcellation atlas (e.g., AAL, HO, Craddock) post-generation, making it far more flexible than matrix-level augmentations which are locked to a single atlas definition.

Key Results

The proposed fMRI-Diffusion framework demonstrated substantial improvements across multiple validation metrics:

  • Outperforming SOTA Baselines: When compared against five state-of-the-art GAN-based matrix synthesis methods (including GC-GAN and DCGAN), fMRI-Diffusion consistently achieved the highest diagnostic accuracy, outperforming the strongest baseline by up to 3.7 percentage points in accuracy under the Harvard-Oxford (HO) atlas.
Table 1 Performance comparison of MDD diagnosis using data synthesized by the proposed method and SOTA method. Results are evaluated in terms of ACC, SEN, SPEC, and F1, and reported as mean ± standard deviation. The best results are highlighted in bold, and the second-best results are underlined.
  • Universal Classifier Improvement: Augmenting training data with fMRI-Diffusion consistently boosted the performance of 10 different classification models (including specialized MDD models like MAF and DSAM, as well as general graph neural networks like ChebyNet, GAT, and GraphSAGE).
Table 2 Performance comparison of SOTA MDD diagnosis models with and without using synthetic data generated by our proposed method. Results are evaluated using ACC, SEN, SPEC, and F1 (mean ± standard deviation), with the better-performing results highlighted in bold.
  • High Distributional Fidelity: Statistical metrics comparing the real and synthetic data distributions (KL divergence, Wasserstein distance, and Kolmogorov-Smirnov statistic) remained exceptionally low (all below 0.06), proving that the generated time series closely mirror real human brain dynamics.
Table 4 Quantitative evaluation of the distributional similarity between real and synthetic fMRI data using KL divergence, WD, and KS statistic. Lower values indicate higher similarity.

Limitations and Future Work

While fMRI-Diffusion represents a major step forward, the authors note a few areas for improvement:

  • Unimodal Data: The framework currently only synthesizes fMRI data. Future work will explore multimodal data fusion, combining imaging data with non-imaging clinical or genetic data for a more comprehensive diagnostic tool.
  • Task Scope: The model was strictly validated on MDD. The authors plan to extend and evaluate this framework on other data-scarce neuropsychiatric disorders, such as ADHD, Autism Spectrum Disorder (ASD), Mild Cognitive Impairment (MCI), and Parkinson's disease.

Summary updated

BibTeX
@misc{hasan2026fmri,
  author = {Muhammad Asif Hasan and Yanming Zhu and Xuefei Yin and Alan Wee-Chung Liew},
  title = {{fMRI-Diffusion: Generating fMRI Time Series Via a Temporal Transformer Diffusion Model for Major Depressive Disorder Diagnosis}},
  year = {2026},
  eprint = {2605.24065},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.24065},
}
Figure