[Paper Review] SSM: Inference for time series analysis with State Space Models
This paper introduces SSM, an open-source library for Bayesian inference in state space models tailored for time series analysis in epidemiology and ecology. It combines compartmental models with advanced inference methods—such as particle MCMC, iterated filtering, and extended Kalman filtering—enabling efficient, transparent, and reproducible modeling of stochastic dynamical systems with environmental and demographic noise.
The main motivation behind the open source library SSM is to reduce the technical friction that prevents modellers from sharing their work, quickly iterating in crisis situations, and making their work directly usable by public authorities to serve decision-making.
Motivation & Objective
- To reduce technical friction in sharing, reproducing, and deploying time series models in public health and ecological contexts.
- To provide a transparent, modular, and extensible framework for defining and inferring compartmental models with both deterministic and stochastic dynamics.
- To support rapid model iteration and decision-making during crises by enabling direct usability of models by public authorities.
- To integrate state-of-the-art computational inference methods—particle MCMC, iterated filtering, and extended Kalman filtering—within a unified, open-source software stack.
- To promote reproducibility by decoupling model specification from implementation, using a grammar-based formalism for compartmental models.
Proposed method
- Models are defined via a grammar-based formalism specifying reactions, their effects (via integer vectors $ l^{(k)} $), and time-dependent rates $ r^{(k)}(z_t, \theta) $, enabling clear and unambiguous model specification.
- Stochastic differential equations (SDEs) are used to model demographic and environmental noise, with drift $ \mu_t $ and dispersion matrix $ L $, driven by Brownian motion.
- The diffusion approximation of Markov jump processes is applied to derive SDEs from discrete-state jump processes, enabling continuous-time stochastic modeling.
- Particle MCMC and iterated filtering are used for Bayesian inference in non-linear, non-Gaussian state space models, allowing posterior estimation of latent states and parameters.
- The extended Kalman filter (EKF) is employed as a computationally efficient approximation for initial parameter exploration and warm-starting particle methods.
- Environmental stochasticity is modeled via correlated white noise on infection rates, reflecting model mis-specification, following Breto et al. (2009).
Experimental results
Research questions
- RQ1How can compartmental models be formally and unambiguously specified to improve model transparency and reproducibility?
- RQ2What inference methods are most effective for non-linear, non-Gaussian state space models in epidemiological and ecological time series?
- RQ3How can computational efficiency be improved in Bayesian inference for complex stochastic models without sacrificing accuracy?
- RQ4To what extent can environmental stochasticity be modeled to account for unobserved variability and model mis-specification?
- RQ5How can open-source software tools reduce the time lag between model development and real-world application in public health crises?
Key findings
- The SSM library enables full reproducibility of time series modeling results, addressing the common three-year delay between epidemic events and published, reproducible analyses.
- Particle MCMC and iterated filtering provide robust inference for non-linear, non-Gaussian models, with the ability to handle latent states and unknown parameters in complex systems.
- The extended Kalman filter significantly reduces computational cost in preliminary inference, enabling faster convergence and better initialization for particle-based methods.
- Incorporating environmental stochasticity via correlated white noise improves model robustness by accounting for unmodeled variability, particularly in epidemic transmission dynamics.
- The grammar-based model specification framework decouples model definition from implementation, allowing for modular, reusable, and human-readable model descriptions.
- The library supports a wide range of applications—from historical data analysis to real-time epidemic monitoring and forecasting—demonstrating its versatility across domains like epidemiology, ecology, and population dynamics.
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.