A hybrid framework for compartmental models enabling simulation-based inference

Multi-scale systems often exhibit a combination of stochastic and deterministic dynamics. In compartmental models, low occupancy compartments tend to exhibit stochastic dynamics while high occupancy compartments tend to follow deterministic dynamics. Representing both dynamics with existing methods is challenging. Failing to account for stochasticity in small populations can produce "atto-foxes", for example in the Lotka-Volterra ordinary differential equation (ODE) model. This limitation becomes problematic when studying the extinction of species or the clearance of infection, but it can be overcome by using discrete stochastic models, such as continuous-time Markov chains (CTMCs). Unfortunately, simulating CTMCs is impractical for many realistic models, where discrete events have very high frequencies. In this work, we develop a mathematical framework to couple continuous ODEs and discrete CTMCs: "Jump-Switch-Flow" (JSF). In this framework, compartments can reach extinct states ("absorbing states"), thereby resolving atto-fox-type problems. JSF has the desired behaviours of exact CTMC simulation, but is substantially computationally faster than existing alternatives, by at least one order of magnitude, and can even obtain constant scaling, irrespective of compartment occupancy. We demonstrate JSF's utility for simulation-based inference, particularly multi-scale problems, with several case-studies. In a simulation study, we demonstrate how JSF can enable a more nuanced analysis of the efficacy of public health interventions. We also carry out a novel analysis of longitudinal within-host data from SARS-CoV-2 infections to quantify the timing of viral clearance. In this work, we show how JSF offers a novel approach to compartmental model simulation.

Authors

Institutions

Publication Details

Journal
Journal of Mathematical Biology
Published
2026-05-27
DOI
https://doi.org/10.1007/s00285-026-02409-y
Primary Topic
COVID-19 epidemiological studies
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A hybrid framework for compartmental models enabling simulation-based inference

Jennifer A. Flegg, Domenic P. J. Germano, Sophie Hautphenne, Mark B. Flegg et al.
Journal of Mathematical Biology
COVID-19 epidemiological studies
article

A hybrid framework for compartmental models enabling simulation-based inference

Jennifer A. Flegg, Domenic P. J. Germano, Sophie Hautphenne, Mark B. Flegg, Robert Moss, Alexander E. Zarebski
article en

Abstract

Multi-scale systems often exhibit a combination of stochastic and deterministic dynamics. In compartmental models, low occupancy compartments tend to exhibit stochastic dynamics while high occupancy compartments tend to follow deterministic dynamics. Representing both dynamics with existing methods is challenging. Failing to account for stochasticity in small populations can produce "atto-foxes", for example in the Lotka-Volterra ordinary differential equation (ODE) model. This limitation becomes problematic when studying the extinction of species or the clearance of infection, but it can be overcome by using discrete stochastic models, such as continuous-time Markov chains (CTMCs). Unfortunately, simulating CTMCs is impractical for many realistic models, where discrete events have very high frequencies. In this work, we develop a mathematical framework to couple continuous ODEs and discrete CTMCs: "Jump-Switch-Flow" (JSF). In this framework, compartments can reach extinct states ("absorbing states"), thereby resolving atto-fox-type problems. JSF has the desired behaviours of exact CTMC simulation, but is substantially computationally faster than existing alternatives, by at least one order of magnitude, and can even obtain constant scaling, irrespective of compartment occupancy. We demonstrate JSF's utility for simulation-based inference, particularly multi-scale problems, with several case-studies. In a simulation study, we demonstrate how JSF can enable a more nuanced analysis of the efficacy of public health interventions. We also carry out a novel analysis of longitudinal within-host data from SARS-CoV-2 infections to quantify the timing of viral clearance. In this work, we show how JSF offers a novel approach to compartmental model simulation.

Journal of Mathematical BiologyVol. 92(6)
The University of Sydney (AU), The University of Melbourne (AU), University of Oxford (GB), Cooperative Trials Group for Neuro-Oncology (AU), Melbourne Health (AU), Monash University (AU)
Australian Research Council, National Health and Medical Research Council
Openalex Percentile: Top 7%
COVID-19 epidemiological studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.