Abstract
Accurate forecasting of infectious disease spread is critical for public health response. This paper presents a Physics-Informed Neural Network (PINN) framework that integrates epidemiological ordinary differential equations (ODEs) directly into a deep learning loss function. By combining mechanistic biological theory with data-driven learning, the model achieves more stable and accurate forecasts for COVID-19 metrics compared to traditional "black-box" AI models.
Introduction
Forecasting contagious diseases involves navigating a trade-off between two traditional approaches. Mechanistic compartmental models (e.g., SIR) are interpretable and theory-based but often fail to adapt to dynamic real-world complexities like behavioral changes or viral mutations. Conversely, purely data-driven AI models (e.g., LSTMs, Transformers) excel at pattern recognition but are prone to overfitting and can produce physically implausible predictions due to a lack of underlying biological constraints. This research bridges the gap by developing a model that respects epidemiological "laws" while leveraging the flexibility of deep learning.
Methodology
The proposed framework utilizes Physics-Informed Neural Networks (PINNs). The innovation lies in a composite loss function (L = L_data + L_ODE) that penalizes predictions violating a system of nine ordinary differential equations (ODEs) describing disease progression (Susceptible, Latent, Infectious, Hospitalized, etc.).
The architecture features dual sub-networks: one for predicting state variables and another for estimating a time-varying transmission rate. This allows the model to explicitly incorporate external covariates like mobility and vaccination data. A rolling window approach is used, retraining the model weekly to provide forecasts for 1 to 4 weeks ahead.
Datasets
The study utilized state-level COVID-19 data from California spanning July 2020 to April 2022. The dataset includes daily cases, deaths, and hospitalizations, alongside Google Community Mobility Reports and CDC vaccination data.
Data was preprocessed using a 7-day moving average to reduce noise and normalized to a 0-1 range to ensure training stability.
Results and Discussion
The PINN framework demonstrated several key advantages:
- Regularization via Physics: ODE constraints prevent the erratic "wiggly" predictions common in standard neural networks, keeping forecasts grounded in plausible disease dynamics.
- Data Efficiency: By embedding biological rules, the model requires less training data than purely data-driven architectures like Transformers.
- Superior Accuracy: The model consistently outperformed naive baselines and standard sequence models (RNNs, LSTMs, GRUs, Transformers) across 1–4 week horizons, maintaining a Mean Absolute Scaled Error (MASE) below 1.0.
- Dynamic Inference: Treating the transmission rate as a neural network output allowed the model to successfully capture shifts driven by policy changes or new variants.
Conclusion
While the PINN framework offers a robust alternative to traditional forecasting, limitations remain. Future work will focus on integrating Bayesian methods for better uncertainty quantification and testing the architecture's generalizability to other infectious diseases like influenza. Despite these challenges, the integration of mechanistic theory and deep learning represents a significant step forward in reliable pandemic modeling.
Summary updated