WIPIVERSE All articles

Compartmental models in epidemiology

Compartmental models are a class of mathematical frameworks used to describe the spread of infectious diseases within populations. They divide the population into distinct groups, or “compartments,” based on disease status (e.g., susceptible, infected, recovered) and define rates of movement between these compartments using differential equations.

Core concepts

  • Compartments – Represent homogeneous subpopulations sharing the same epidemiological status. Common compartments include:
    • S – Susceptible individuals who can contract the infection.
    • E – Exposed individuals who are infected but not yet infectious (latent period).
    • I – Infectious individuals capable of transmitting the disease.
    • R – Recovered (or removed) individuals who are immune or no longer infectious.
  • Transition rates – Parameters such as the transmission rate (β), recovery rate (γ), and incubation rate (σ) govern the flow between compartments.
  • Assumptions – Traditional models assume a closed population (no births, deaths, or migration), homogeneous mixing (equal contact probability among individuals), and fixed parameter values over the modeled period.

Principal models

Model Compartments Typical use
SIR S → I → R Acute infections conferring lasting immunity (e.g., measles).
SEIR S → E → I → R Diseases with a significant incubation period (e.g., influenza, COVID‑19).
SIRS S → I → R → S Infections where immunity wanes over time (e.g., pertussis).
SEIRS S → E → I → R → S Combines latent period with waning immunity.
SIS S ↔ I Pathogens that do not confer immunity after infection (e.g., many sexually transmitted infections).
MSIR / MSEIR Adds a “Maternally immune” compartment for newborns with passive immunity. Neonatal disease dynamics.
Metapopulation and network‑based extensions Multiple interacting subpopulations or nodes. Spatial spread, travel, and heterogeneous contact patterns.

Mathematical formulation

For the basic SIR model, the dynamics are expressed as a system of ordinary differential equations (ODEs):

$$ \frac{dS}{dt} = -\beta \frac{S I}{N}, $$

$$ \frac{dI}{dt} = \beta \frac{S I}{N} - \gamma I, $$

$$ \frac{dR}{dt} = \gamma I, $$

where $N = S + I + R$ is the total population size, $\beta$ is the transmission coefficient, and $\gamma$ is the recovery rate.

Key epidemiological quantities

  • Basic reproduction number (R₀) – The expected number of secondary cases generated by a typical infectious individual in a wholly susceptible population. In the SIR model, $R₀ = \beta / \gamma$.
  • Effective reproduction number (Rₑ) – Adjusts R₀ for the current proportion of susceptible individuals: $Rₑ = R₀ \times (S/N)$.

Applications

  • Outbreak forecasting – Estimating epidemic peaks, total case counts, and duration.
  • Policy evaluation – Simulating effects of interventions such as vaccination, quarantine, social distancing, and contact tracing.
  • Parameter inference – Fitting model outputs to observed case data to estimate transmission dynamics.

Limitations and extensions

  • Homogeneous mixing is rarely realistic; contact heterogeneity is addressed through age‑structured models, network models, and stochastic simulations.
  • Deterministic ODE models do not capture random fluctuations present in small populations; stochastic formulations (e.g., Gillespie algorithm) are used for such contexts.
  • Parameter uncertainty – Accurate estimates of β, γ, and other rates are often limited by data quality. Sensitivity analysis and Bayesian inference are common methods to assess robustness.
  • Spatial dynamics – Metapopulation and partial differential equation (PDE) models incorporate geographic spread, travel networks, and environmental heterogeneity.

Historical overview

The compartmental approach originated with the work of Kermack and McKendrick (1927), who formulated the first SIR model. Subsequent decades expanded the framework to include additional compartments, stochastic elements, and data‑driven calibration, establishing compartmental models as a foundational tool in modern epidemiology.

References

  • Kermack, W. O., & McKendrick, A. G. (1927). A contribution to the mathematical theory of epidemics. Proceedings of the Royal Society A, 115(772), 700–721.
  • Anderson, R. M., & May, R. M. (1991). Infectious Diseases of Humans: Dynamics and Control. Oxford University Press.
  • Diekmann, O., Heesterbeek, J. A. P., & Britton, T. (2012). Mathematical Tools for Understanding Infectious Disease Dynamics. Princeton University Press.

Compartmental models continue to evolve, integrating real‑time data streams, machine‑learning techniques, and detailed contact patterns to enhance predictive accuracy and inform public‑health decision making.

Browse

More topics to explore

    Browse all articles