[Paper Review] Dynamic SIR/SEIR-like models comprising a time-dependent transmission rate: Hamiltonian Monte Carlo approach with applications to COVID-19
This paper proposes a flexible, data-driven Bayesian dynamic SIR/SEIR model with a time-dependent transmission rate modeled via B-splines, enabling accurate inference of transmission dynamics using Hamiltonian Monte Carlo. The method successfully captures non-exponential infectious periods and under-reporting in COVID-19 data, outperforming state-of-the-art approaches in synthetic and real-world Basque Country data, with robust uncertainty quantification and efficient computation.
A study of changes in the transmission of a disease, in particular, a new disease like COVID-19, requires very flexible models which can capture, among others, the effects of non-pharmacological and pharmacological measures, changes in population behaviour and random events. In this work, we give priority to data-driven approaches and choose to avoid a priori and ad-hoc methods. We introduce a generalised family of epidemiologically informed mechanistic models, guided by Ordinary Differential Equations and embedded in a probabilistic model. The mechanistic models SIKR and SEMIKR with K Infectious and M Exposed sub-compartments (resulting in non-exponential infectious and exposed periods) are enriched with a time-dependent transmission rate, parametrized using Bayesian P-splines. This enables an extensive flexibility in the transmission dynamics, with no ad-hoc intervention, while maintaining good differentiability properties. Our probabilistic model relies on the solutions of the mechanistic model and benefits from access to the information about under-reporting of new infected cases, a crucial property when studying diseases with a large fraction of asymptomatic infections. Such a model can be efficiently differentiated, which facilitates the use of Hamiltonian Monte Carlo for sampling from the posterior distribution of the model parameters. The features and advantages of the proposed approach are demonstrated through comparison with state-of-the-art methods using a synthetic dataset. Furthermore, we successfully apply our methodology to the study of the transmission dynamics of COVID-19 in the Basque Country (Spain) for almost a year, from mid February 2020 to the end of January 2021.
Motivation & Objective
- To develop a flexible, epidemiologically informed mechanistic model that captures complex transmission dynamics without ad-hoc interventions.
- To incorporate time-dependent transmission rates using Bayesian P-splines for enhanced temporal flexibility and smoothness.
- To enable robust parameter inference under data uncertainty and under-reporting using a generative probabilistic model.
- To apply Hamiltonian Monte Carlo for efficient posterior sampling, leveraging the model's differentiability.
- To demonstrate the method’s performance on synthetic data and real-world COVID-19 incidence in the Basque Country (Spain) from Feb 2020 to Jan 2021.
Proposed method
- The model extends standard SIR/SEIR frameworks by introducing K infectious and M exposed subcompartments (SI K R and SE M I K R), enabling non-exponential duration distributions.
- The transmission rate β(t) is modeled as a B-spline basis expansion with unknown coefficients, allowing flexible, smooth time-varying dynamics.
- A generative model is built on top of the ODE solution, incorporating observation uncertainty and under-reporting via a Negative Binomial likelihood.
- Hamiltonian Monte Carlo (HMC) is used for posterior sampling, enabled by semi-analytical computation of gradients via automatic differentiation.
- The model supports uncertainty quantification through full posterior inference, with Hessian computation feasible due to high differentiability.
- The framework is implemented in C and R, with computational efficiency enabling near-daily monitoring of transmission trends.
Experimental results
Research questions
- RQ1How can mechanistic SIR/SEIR models be extended to capture time-varying transmission dynamics without relying on ad-hoc interventions?
- RQ2To what extent can B-spline parameterization of β(t) improve the flexibility and accuracy of transmission rate estimation compared to constant or piecewise-constant models?
- RQ3How does the proposed Bayesian dynamic model handle under-reporting and noisy incidence data in real-world settings like the Basque Country?
- RQ4Can Hamiltonian Monte Carlo provide efficient and accurate posterior inference in complex, differentiable ODE-based models with time-varying parameters?
- RQ5How do different model structures (e.g., SI K R vs. SE M I K R) and prior choices affect inference robustness and interpretability?
Key findings
- The model successfully captured the non-monotonic transmission dynamics of SARS-CoV-2 in the Basque Country, identifying peaks in transmission during the first and subsequent waves.
- All models indicated that transmission decreased during restrictive measures and increased upon easing, with the highest transmission occurring in the first wave.
- Restrictive measures in later waves were implemented around or just after transmission peaks, suggesting caution in interpreting their immediate efficacy.
- The method outperformed a state-of-the-art alternative on synthetic data, demonstrating competitive performance in estimating time-varying transmission rates.
- Posterior sampling was computationally feasible, with total execution times (including tuning and sampling) under 24 hours for the Basque Country dataset.
- The model’s differentiability enabled efficient HMC sampling and potential extension to Hessian-based inference and other machine learning procedures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.