Spatio-Temporal Conditional Diffusion Models for Forecasting Future Multiple Sclerosis Lesion Masks Conditioned on Treatments

Gian Mario Favero, Ge Ya Luo, Nima Fathi, Justin Szeto, Douglas L. Arnold, Brennan Nichyporuk, Chris Pal, Tal ArbelarXiv 2025 · DOI

Abstract

Predicting the progression of Multiple Sclerosis (MS) is challenging due to the disease's high heterogeneity and the stochastic nature of lesion formation. We present a treatment-aware spatio-temporal diffusion model designed to forecast the evolution of New and Enlarging T2 (NET2) lesions. By conditioning a generative model on baseline MRI scans and specific treatment assignments, our framework enables the visualization of future disease states and counterfactual scenarios. Evaluated on a large-scale clinical trial dataset, the model demonstrates superior performance in regional lesion prediction and activity forecasting compared to population-level baselines.

Introduction

Multiple Sclerosis (MS) is a chronic inflammatory disease of the central nervous system characterized by the formation of focal lesions. While AI has made strides in predicting global disability scores, there remains a critical need for models that can provide visual, spatially-resolved forecasts of lesion activity. Predicting New and Enlarging T2 (NET2) lesions is particularly difficult because they are sparse—often occupying less than 0.1% of brain volume—and their appearance is influenced by both individual patient characteristics and therapeutic interventions.

Existing generative models for brain MRI often struggle with high-resolution voxel-space prediction or fail to incorporate causal treatment effects. This work addresses these gaps by proposing a generative framework that can simulate how a specific patient's disease might progress under different medication options, providing clinicians with a visual tool for "counterfactual" reasoning.

Methods

The proposed framework utilizes a two-stage generative approach based on Variational Diffusion Models (VDMs) and ControlNet adapters.

Pseudo-2D Slab Representation

To manage the high memory demands of 3D MRI data without sacrificing spatial context, the authors employ a "pseudo-2D" slab approach. By restructuring the data dimensions ($[b, c, s, h, w] \to [b, c \times s, h, w]$), a 2D UNet can process spatial relationships in the sagittal-coronal plane while self-attention layers maintain axial consistency. This avoids the blurring artifacts common in Latent Diffusion Models that rely on separate compression autoencoders.

Two-Stage Training

  1. Stage 1 (Pre-training): A diffusion UNet is trained to learn the general distribution of future NET2 masks, conditioned on treatment types (e.g., Placebo vs. High Efficacy).
  2. Stage 2 (ControlNet): A ControlNet adapter is trained while the primary diffusion model is frozen. This adapter processes the patient's baseline MRI (including FLAIR, GAD, and T2 modalities) to steer the generation process, ensuring that predicted lesions are anatomically plausible for the specific individual.
Overview of the Forecasting Network architecture and the ensemble prediction pipeline.

Ensemble Inference

Given the stochastic nature of MS progression, the model generates multiple possible future masks for each patient. These samples are processed through a $5 \times 5$ opening kernel to remove noise and then averaged to create a heatmap representing the probability of lesion formation in specific brain regions.

Datasets

The model was trained and validated using a robust dataset pooled from five randomized clinical trials (BRAVO, OPERA 1/2, and DEFINE), comprising 2,131 patient samples. Data included three timepoints: baseline (week 0), year one (week 48), and year two (week 96). The study focused on six treatment arms, ranging from Placebo to high-efficacy therapies like Ocrelizumab.

Key Insights and Results

A central innovation of this work is the treatment of uncertainty as a clinical feature. Rather than providing a single deterministic prediction, the model's ability to generate multiple stochastic inferences allows it to represent the risk of lesion formation.

Visualization of multiple stochastic inferences and the final ensemble heatmap compared to the factual lesion mask.

Quantitative Performance

The model significantly outperformed population-level Monte Carlo baselines across several metrics:

  • Regional Accuracy: In predicting lesion appearance within cerebral white matter, the model achieved a Balanced Accuracy (BA) of 0.684 and an F1-score of 0.579 (vs. BA 0.497 for the baseline).
  • Activity Prediction: For predicting whether a patient would develop any new lesions (binary activity), the model achieved an AUC of 0.826 in the Placebo group.
  • Lesion Counting: Predicted lesion counts were highly accurate, particularly for high-efficacy treatments (MSE of 0.006 for Ocrelizumab), demonstrating the model's sensitivity to treatment effects.

Discussion and Limitations

While the model represents a significant step toward personalized MS forecasting, several challenges remain. The extreme sparsity of NET2 lesions makes them a "needle in a haystack" for generative models, requiring heavy loss up-weighting during training. Furthermore, the "factual" outcome observed in a clinical trial is only one possible realization of a complex biological process; standard metrics like Dice scores may not fully capture the clinical utility of a model that predicts biologically plausible, albeit unobserved, trajectories.

Future work will focus on integrating richer patient metadata, such as genetic markers and detailed demographics, to further refine individual-level causal treatment effect analysis.

Summary updated

BibTeX
@misc{favero2025spatio,
  author = {Gian Mario Favero and Ge Ya Luo and Nima Fathi and Justin Szeto and Douglas L. Arnold and Brennan Nichyporuk and Chris Pal and Tal Arbel},
  title = {{Spatio-Temporal Conditional Diffusion Models for Forecasting Future Multiple Sclerosis Lesion Masks Conditioned on Treatments}},
  year = {2025},
  eprint = {2508.07006},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.07006},
}
Figure