PAN-cODE: COVID-19 forecasting using conditional latent ODEs

Ruian Shi, Haoran Zhang, Quaid Morris

TL;DR

This paper introduces PAN-CODE, a novel deep learning framework for COVID-19 forecasting that leverages conditional latent Ordinary Differential Equations (ODEs). PAN-CODE can generate alternative caseload trajectories based on hypothetical non-pharmaceutical intervention (NPI) adoption scenarios, offering a powerful tool for informed policy-making. It achieves competitive forecasting accuracy with less data and can generalize to unseen regions.

What Problem Does This Paper Address?

The COVID-19 pandemic highlighted the critical need for accurate and timely forecasting of disease spread to inform public health responses. While various methods exist, including statistical models, compartmental models (like SIR), and deep learning approaches, many have limitations. These include:

  • Short-term focus: Many models provide reliable forecasts for only up to 4 weeks ahead.
  • Inability to model NPI impact: Existing methods often struggle to explicitly link the stringency of non-pharmaceutical interventions (NPIs) like social distancing and mask mandates to future caseloads. This is crucial because NPIs, while effective in slowing transmission, also incur significant socio-economic costs.
  • Data requirements and complexity: Some advanced models require extensive, detailed data and often necessitate expert intervention for training and tuning.
  • Limited generalization: Models may not perform well on regions or datasets not encountered during training.

This paper aims to address these gaps by developing a forecasting model that is accurate, can explicitly model the impact of NPIs, requires less data, and generalizes well.

Methods

The core of PAN-CODE is a Pandemic conditional Ordinary Differential Equation (PAN-CODE) model, built upon the Latent ODE architecture. Here's a breakdown of the key components:

  • Latent ODE (LO DE): This is a variational auto-encoder framework that uses a Gated Recurrent Unit (GRU) to encode time-series data into a distribution over a latent initial state ($z_0$). A Neural ODE then evolves this latent state over time to generate a trajectory. This allows the model to learn complex, continuous-time dynamics.
  • Conditional Latent ODE: PAN-CODE extends the Latent ODE by conditioning the latent initial state ($z_0$) on external features. In this case, these features are the stringency of NPI adoption at the time of forecasting. This is achieved by concatenating the NPI stringency vector ($I_{fc}$) with the sampled latent initial state ($z_0$) to create an augmented latent initial state ($z_0$).
  • GRU-ODE Encoder: This component processes the historical daily counts of infections, deaths, and other covariates up to the forecasting date ($f_c$). It outputs the parameters ($\mu_{z_0}, \sigma_{z_0}$) for the variational posterior distribution of the latent initial state.
  • Neural ODE Solver: This part uses the augmented latent initial state to solve the ODE, generating a latent trajectory for both the encoding and prediction regions.
  • Autoregressive Decoder (ARD): A simple feed-forward neural network that converts the latent trajectories back into predicted daily infection and death counts. It uses the previous time step's prediction to inform the current one, helping to constrain unrealistic jumps in caseload.

The model is trained by maximizing the Evidence Lower Bound (ELBO), which balances reconstructing observed data with maintaining a regularized latent space. A key innovation is the ability to generate alternative forecasts by simply modifying the NPI stringency features ($I_{fc}$) fed into the model.

Datasets

  • COVID-19 Caseload Data: Daily infection and death counts for US states and counties were obtained from the Google Cloud Platform's (GCP) Open Data resource. This dataset provides approximately 2500 trajectories dating back to February 2020.
  • Non-Pharmaceutical Intervention (NPI) Data: Historical NPI adoption stringency was sourced from the Oxford COVID-19 Government Response Tracker (OxGRCT). This data is represented by a vector of integers indicating the level of adoption for specific NPIs.
  • Covariate Data: Daily temperature index from GCP was also included to account for seasonality.

The paper does not introduce a new benchmark dataset but rather utilizes existing, publicly available data for training and evaluation.

Key Insights and Ideas

  • Conditioning on NPIs for Counterfactuals: The most significant insight is the successful integration of NPI stringency as a conditional input to the latent ODE model. This allows PAN-CODE to not only forecast but also to generate what-if scenarios, directly showing the potential impact of different policy choices.
  • Data Efficiency: PAN-CODE demonstrates competitive performance using less detailed data compared to some state-of-the-art methods, which is crucial for regions with limited data availability.
  • Generalization to Unseen Regions: The model's ability to generalize its learned dynamics to predict outcomes in regions not seen during training is a strong indicator of its robustness and the effectiveness of its underlying architecture.
  • Automated Training: The fully automated training process reduces the need for expert intervention, making the model more accessible and scalable.
  • Latent ODEs for Dynamic Systems: The paper showcases the power of Latent ODEs for modeling complex, continuous-time dynamical systems like disease spread, where the underlying processes are not always directly observable.

Key Results

  • Forecasting Accuracy: PAN-CODE achieved performance comparable to state-of-the-art methods on 4-week-ahead forecasts and outperformed many methods on 6-week-ahead death forecasting tasks. For instance, on the March 8, 2021, 6-week forecasting task, PAN-CODE showed significantly lower error than all other methods.
  • Generalization Performance: When evaluated on countries unseen during training, PAN-CODE made reasonable projections for 4- and 6-week infection forecasts, significantly outperforming baselines.
  • Counterfactual Generation: Figure 3 visually demonstrates PAN-CODE's ability to generate realistic alternative outcome trajectories by modifying NPI stringency. These visualizations clearly show the potential impact of increasing or decreasing NPI stringency on future infection and death rates.
  • Feature Importance: Analysis using LIME indicated that preventative measures have a significant impact on infection counts with a lag, while nearer to the forecast date, actual caseload becomes more relevant.

Limitations and Future Work

  • Causality: The authors acknowledge that PAN-CODE does not explicitly learn a causal model between NPI stringency and future caseload. While it learns correlations, establishing true causality is a complex task, especially given the delayed and potentially noisy nature of reporting. This is identified as a direction for future work.
  • Individual NPIs: While the model uses individual NPIs as input features, its predictions are conditioned on aggregated stringency measures. The authors suggest that richer data on individual NPIs could enable a PAN-CODE model capable of modeling more granular counterfactuals.
  • Incorporating SIR Models: The authors note that it would be straightforward to incorporate a SIR compartmental model into PAN-CODE, allowing its dynamical parameters to be learned via backpropagation, thus avoiding manual parameter specification.
  • Data Requirements for Counterfactuals: The current model's ability to generate counterfactuals is limited by the richness of the NPI data. Future work could explore how to leverage more detailed NPI data for more nuanced scenario modeling.

Summary updated

BibTeX
@article{shi2022pan,
  author = {Ruian Shi and Haoran Zhang and Quaid Morris},
  title = {{PAN-cODE: COVID-19 forecasting using conditional latent ODEs}},
  journal = {J. Am. Medical Informatics Assoc.},
  year = {2022},
  doi = {10.1093/jamia/ocac160},
}
Figure