Bridging Dynamics and Data: A Unified Diffusion Framework for Mechanistically-Informed Epidemic Forecasting

Guanghui Min, Tianhao Huang, Ke Wan, Qi R. Wang, Chen ChenICML 2026

Reliable epidemic forecasting is a cornerstone of public health decision-making, yet it remains notoriously difficult due to data sparsity and the non-stationary nature of disease dynamics. Traditionally, researchers have relied on two divergent approaches: mechanistic models (like the classic SIR model), which use differential equations to describe disease physics but often struggle to capture real-world complexity, and data-driven models (like deep learning), which excel at pattern recognition but fail miserably when an epidemic enters a new, unpredictable phase, such as a sudden lockdown or the emergence of a new variant.

While recent "hybrid" models attempt to merge these approaches, they often relegate mechanistic outputs to mere auxiliary features fed into a neural network. This "black box" design obscures interpretability and fails to inherit the physical model's ability to generalize out-of-distribution. When the underlying data distribution changes, these models break down, leaving researchers unable to explain why a specific prediction was made.

To address these fundamental limitations, researchers have introduced EpiDiff, a unified forecasting framework that synergizes epidemiological domain knowledge with the generative power of diffusion models.

The EpiDiff Framework: Steering with Uncertainty

EpiDiff uses a Diffusion Model—the same underlying technology powering modern AI image generators—as its backbone. However, the core innovation lies in how EpiDiff "steers" this model during the generation process using an uncertainty-aware mechanism.

  1. The Mechanistic Prior (The "Physics"): EpiDiff first fits a standard SIR (Susceptible-Infectious-Recovered) model to historical data. Crucially, rather than generating a single point prediction, the framework uses the Laplace Approximation and the Unscented Transform to quantify the uncertainty of that mechanistic prediction.
  2. The Diffusion Backbone (The "Data"): A Spatiotemporal Graph Transformer is employed to learn complex, data-driven patterns of how the disease moves across different geographic regions.
  3. Uncertainty-Aware Steering: During inference, EpiDiff dynamically modulates the diffusion process. If the mechanistic SIR model is highly confident (low uncertainty), EpiDiff steers the forecast to match the SIR trajectory. Conversely, if the SIR model is uncertain—perhaps due to noisy data—the model relies more heavily on the data-driven patterns learned by the Transformer.

Instead of rigidly forcing data and math to merge, EpiDiff uses uncertainty as a "volume knob." This allows the model to be heterogeneously guided, trusting the mathematical equations in one city while relying on historical data trends in another.

Datasets and Evaluation

The research team evaluated EpiDiff on three real-world datasets representing distinct epidemic scenarios:

  • covid-US: Daily state-level COVID-19 cases (representing a relatively stable/stationary environment).
  • covid-JP: Daily prefecture-level COVID-19 cases in Japan, featuring a massive outbreak peak (representing a positive distribution shift).
  • influenza-US: Weekly state-level flu data, which experienced a "negative shift" as cases were reclassified and testing behaviors changed during the COVID-19 pandemic.

Key Results and Insights

EpiDiff consistently outperformed state-of-the-art baselines, including STAN, EARTH, and DiffSTG, across all tested datasets.

  • Superior Accuracy: On the highly challenging covid-JP dataset (at a 7-day forecasting horizon), EpiDiff achieved an RMSE of 188, significantly outperforming the next best baseline, STAN, which scored 222.
  • Robustness to Non-Stationarity: Because mechanistic laws like exponential growth are baked into the steering mechanism, EpiDiff handles out-of-distribution events exceptionally well. In the influenza-US dataset, which suffered from a major distribution shift, EpiDiff maintained high accuracy while traditional time-series models (like ARMA) and GNN-based models saw their error rates skyrocket.
  • Transparent Interpretability: The framework provides a "heatmap" of uncertainty, making the model's decision-making process transparent. Users can explicitly visualize exactly when and where the model stopped trusting the SIR equations and started relying on historical data patterns.
  • Computational Efficiency: Despite the complex steering mechanism, EpiDiff utilizes a deterministic sampling method (DDIM) that keeps inference times nearly identical to standard diffusion models.

Limitations and Future Directions

While EpiDiff represents a significant leap forward, the authors acknowledge a few limitations. The current iteration relies on a basic SIR model; real-world dynamics may require more complex compartments, such as SEIR or age-stratified models. Additionally, if the initial mechanistic parameter estimation is extremely poor or noisy, that error can propagate through the steering mechanism, although the uncertainty weighting is explicitly designed to mitigate this risk. Finally, while the framework performs exceptionally well at the state and prefecture levels, scaling it to massive, high-resolution graphs (like individual city blocks) remains an exciting task for future research.

Summary updated

BibTeX
@inproceedings{min2026bridging,
  author = {Guanghui Min and Tianhao Huang and Ke Wan and Qi R. Wang and Chen Chen},
  title = {{Bridging Dynamics and Data: A Unified Diffusion Framework for Mechanistically-Informed Epidemic Forecasting}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=AY7L7acRtD},
}
Figure