Abstract
We propose a general Bayesian approach to modeling epidemics such as COVID-19. The approach grew out of specific analyses conducted during the pandemic, in particular an analysis concerning the effects of non-pharmaceutical interventions (NPIs) in reducing COVID-19 transmission in 11 European countries. The model parameterizes the time varying reproduction number $R_t$ through a regression framework in which covariates can e.g be governmental interventions or changes in mobility patterns. This allows a joint fit across regions and partial pooling to share strength. This innovation was critical to our timely estimates of the impact of lockdown and other NPIs in the European epidemics, whose validity was borne out by the subsequent course of the epidemic. Our framework provides a fully generative model for latent infections and observations deriving from them, including deaths, cases, hospitalizations, ICU admissions and seroprevalence surveys. One issue surrounding our model's use during the COVID-19 pandemic is the confounded nature of NPIs and mobility. We use our framework to explore this issue. We have open sourced an R package epidemia implementing our approach in Stan. Versions of the model are used by New York State, Tennessee and Scotland to estimate the current situation and make policy decisions.
Introduction
During the early stages of the COVID-19 pandemic, public health officials faced a "data fog." Reported case numbers were unreliable due to limited testing capacity, and the lag between infection and death made it difficult to observe the immediate impact of policy changes. Furthermore, estimating the effectiveness of specific Non-Pharmaceutical Interventions (NPIs) is a challenge for traditional statistics because multiple policies—such as school closures and full lockdowns—often occur in quick succession.
This paper introduces a flexible Bayesian framework for modeling epidemics by combining the biological "mechanics" of disease transmission (renewal processes) with the statistical power of multilevel regression. By "pooling" data across different regions, the model can disentangle the effects of various government interventions even when data is sparse or noisy.
Methods
The authors propose a semi-mechanistic approach. It is "mechanistic" because it uses a discrete renewal equation to propagate infections based on the generation interval. It is "semi" because it uses a flexible regression framework to estimate the time-varying reproduction number ($R_t$) rather than modeling every individual interaction.
Key technical components include:
- The Renewal Equation: New infections at time $t$ are a product of the current $R_t$ and a weighted sum of past infections.
- Generative Observation Model: The model treats actual infections as a "latent" (hidden) process, generating observed data—like deaths or hospitalizations—by applying probability distributions for the time from infection to outcome.
- Partial Pooling (Multilevel Modeling): By assuming that an NPI like "school closures" has a similar effect across different regions, the model can "pool" data. This increases the effective sample size and helps separate the effects of interventions that happened simultaneously.
- Population Adjustments: To prevent predicting infinite exponential growth, the model accounts for the shrinking pool of susceptible people as the epidemic progresses.
Key Insights and Results
The primary application of this model used data from 11 European countries during the first wave of COVID-19.
The Power of Pooling and NPI Effects
Estimating NPI effects for a single country often leads to noisy results. By using a hierarchical Bayesian setup, the model "borrows strength" across regions. Across multiple model variations, "lockdown" consistently emerged as the intervention with the largest effect on reducing transmission.
NPIs vs. Mobility
A major debate during the pandemic was whether lockdowns worked because of the law itself or because people simply stopped moving. The authors used causal mediation analysis to show that while lockdown significantly reduces $R_t$ by decreasing mobility (an 18.3% reduction), there are likely other "direct" effects of the policy not captured by mobility data alone. The authors found an 85% correlation between NPI timing and changes in average mobility, confirming these factors are deeply intertwined.
Limitations and Future Work
Despite its utility, the model has several limitations:
- Unidentifiability: Some parameters, like the Infection Fatality Rate (IFR), are hard to estimate simultaneously with $R_t$, often requiring fixed external estimates that may introduce bias.
- Seeding: Estimating the initial number of cases that started an outbreak is difficult and confounded with the initial growth rate ($R_0$).
- Computational Intensity: Modeling latent infections directly in a Bayesian framework is computationally expensive; Hamiltonian Monte Carlo can struggle to converge on these high-dimensional models.
To facilitate further research, the authors released epidemia, an R package built on Stan, which has been utilized by government agencies in New York State and Scotland for policy decisions.
Summary updated