Prior Knowledge-enhanced Spatio-temporal Epidemic Forecasting

Sijie Ruan, Jinyu Li, Jia Wei, Zenghao Xu, Jie Bao, Junshi Xu, Junyang Qiu, Shuliang Wang, Xiaoxiao Wang, Hanning YuanarXiv 2026 · arXiv

TL;DR

The Spatio-Temporal priOr-aware Epidemic Predictor (STOEP) is a novel hybrid forecasting framework that seamlessly blends data-driven deep learning with classic mechanistic epidemic models. By embedding implicit spatio-temporal data priors and explicit expert knowledge, STOEP overcomes long-standing challenges like weak early-warning signals and unstable parameter estimation, outperforming top baselines by 11.1% in RMSE and achieving real-world deployment at a provincial CDC.

What Problem Does This Paper Address?

Predicting how an infectious disease will spread across different regions over time is vital for public health, but it is notoriously difficult. Traditional mechanistic models (like the classic SIR model) rely on rigid mathematical assumptions that fail to capture complex, real-world human mobility. On the flip side, pure deep learning models are prone to overfitting because epidemiological data is often scarce.

To get the best of both worlds, researchers have turned to hybrid models that use neural networks to dynamically estimate the parameters (like infection and recovery rates) of a mechanistic model. However, as illustrated in Figure 1, existing hybrid models still suffer from three major flaws:

  1. Insensitivity to Weak Signals: Before an outbreak explodes, early case numbers are very low. Standard deep learning architectures often smooth out or ignore these weak signals, missing the window for early warnings.
  2. Over-simplified Spatial Relations: Most models rely strictly on raw human mobility data to connect regions, completely ignoring intrinsic demographic or environmental similarities between distinct areas.
  3. Unstable Parameter Estimation: In data-scarce environments, unconstrained neural networks can output wildly fluctuating parameters that make no epidemiological sense.
Figure 1: (a) Illustrations of hybrid models; (b) Insensitivity to weak epidemic signals; (c) Over-simplified adjacency relation; (d) Unsta- ble parameter estimation.

Methods

The authors introduce STOEP, a framework designed to inject both data-derived (implicit) and expert-derived (explicit) priors into the forecasting pipeline. As shown in Figure 2, STOEP splits the task into three specialized modules:

  • Case-aware Adjacency Learning (CAL): Instead of relying solely on raw mobility graphs, CAL uses an attention-based mechanism to match a region's recent infection trends against a learnable "epidemic pattern set." This allows the model to dynamically adjust regional dependencies based on actual disease behavior, not just transit data.
  • Space-informed Parameter Estimating (SPE): To prevent weak signals from being lost, SPE introduces a gating mechanism that fuses dynamic, step-by-step attention with a learnable static global spatial prior matrix. This explicitly amplifies subtle but critical localized signals before passing the enhanced features into a GraphWaveNet backbone to estimate the transmission rate ($\beta$) and recovery rate ($\gamma$).
  • Filter-based Mechanistic Forecasting (FMF): To solve the instability problem, the authors collaborated with domain experts to design an adaptive thresholding filter. Using Exponential Moving Averages (EMA) and quantiles, FMF detects if estimated parameters or active infections drop below a certain noise floor. If they do, it adaptively suppresses the transmission process to filter out noise. The stabilized parameters are then fed into a Metapopulation SIR model to generate the final multi-step forecast.
Figure 2: Framework of proposed epidemic forecasting model STOEP.

Datasets

The framework was validated on two real-world datasets representing different pathogens and demographic scales:

  • COVID-19 Dataset: Daily confirmed cases across 47 prefectures in Japan (539 days, April 2020 – September 2021). Human mobility data was sourced from Facebook Movement Range Maps.
  • Flu Dataset: Daily confirmed influenza cases across 11 cities in Zhejiang Province, China (731 days, 2023–2024). Mobility data was sourced from Baidu Migration Maps.

Key Insights and Ideas

  • Priors Without Extra Data: A major practical advantage of STOEP is that its "spatio-temporal priors" are entirely self-learned from the existing case and mobility data via learnable matrices and pattern memories. It achieves the benefits of external knowledge integration without requiring hard-to-get auxiliary datasets.
  • Expert Intuition as a Regularizer: Purely data-driven networks behave erratically when data is sparse. By translating an expert rule ("suppress transmission math when cases are near zero") into a differentiable adaptive thresholding filter, the authors successfully stabilized the neural network's outputs without sacrificing its flexibility.
  • Self-Learned Patterns > Hard Clustering: In ablation studies, replacing the CAL module's self-learned pattern memory with a traditional time-series clustering algorithm (like k-shape) caused a noticeable drop in performance, proving that end-to-end pattern retrieval captures epidemic dynamics much more effectively.

Key Results

STOEP consistently outperformed all baselines—including pure mechanistic, pure deep learning, and state-of-the-art hybrid models—by an average of 11.1% in RMSE.

  • COVID-19 Forecasting: STOEP achieved a 10.3% lower RMSE and 8.9% lower MAE overall compared to the closest competitor, MepoGNN. Its mid-term (7-day ahead) forecasting was particularly strong, reducing RMSE by 15.9%. A case study from the Delta variant surge in Japan shows STOEP accurately tracking peak infection periods where other models fell short.
Figure 5: Predicted daily confirmed cases of COVID-19 with hori- zon = 7.
  • Ablation Performance: As shown in Figure 3, removing the Space-informed Parameter Estimating (SPE) block caused the sharpest performance degradation, confirming that spatial prior incorporation is the most critical factor in amplifying weak early-warning signals.
Figure 3: Ablation on the COVID-19 and Flu datasets.
  • Real-World Deployment: Moving beyond academic benchmarks, STOEP has been fully deployed at the Zhejiang Provincial CDC in China, providing automated daily influenza forecasts and risk-level visualizations across 11 major cities.
Figure 6: Screenshot of the deployed system based on STOEP at Zhejiang CDC in China.

Limitations and Future Work

While STOEP demonstrates exceptional performance, the authors note that its current evaluation is confined to specific regional models where localized mobility data is readily available. They highlight that cross-regional and cross-disease transferability remains an open challenge. Future work will need to investigate how well a model trained on one specific pathogen or geographic layout can generalize to an entirely new environment without extensive retraining.

Summary updated

Abstract

Spatio-temporal epidemic forecasting is critical for public health management, yet existing methods often struggle with insensitivity to weak epidemic signals, over-simplified spatial relations, and unstable parameter estimation. To address these challenges, we propose the Spatio-Temporal priOr-aware Epidemic Predictor (STOEP), a novel hybrid framework that integrates implicit spatio-temporal priors and explicit expert priors. STOEP consists of three key components: (1) Case-aware Adjacency Learning (CAL), which dynamically adjusts mobility-based regional dependencies using historical infection patterns; (2) Space-informed Parameter Estimating (SPE), which employs learnable spatial priors to amplify weak epidemic signals; and (3) Filter-based Mechanistic Forecasting (FMF), which uses an expert-guided adaptive thresholding strategy to regularize epidemic parameters. Extensive experiments on real-world COVID-19 and influenza datasets demonstrate that STOEP outperforms the best baseline by 11.1% in RMSE. The system has been deployed at a provincial CDC in China to facilitate downstream applications.
BibTeX
@misc{ruan2026prior,
  author = {Sijie Ruan and Jinyu Li and Jia Wei and Zenghao Xu and Jie Bao and Junshi Xu and Junyang Qiu and Shuliang Wang and Xiaoxiao Wang and Hanning Yuan},
  title = {{Prior Knowledge-enhanced Spatio-temporal Epidemic Forecasting}},
  year = {2026},
  eprint = {2602.22270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.22270},
}

Loading related content...

Figure