Compartment Models in Epidemiology Part 1
This post is an introduction to the basic models of disease spread, a topic that has entered the vernacular in recent weeks due to the COVID-19 pandemic. The focus will be the Susceptible-Infected-Recovery compartmental model.
Compartment Models
Compartment models are a broad class of mathematical models used to describe how components of a system move around from one sub-section to another sub-section within the larger system. Sometimes, such models are called “bathtub models,” as the underlying math describes the “flow” (i.e. of water) from a source (the faucet) to a sink (the drain). Sometimes, the flow is one-way, meaning that the component cannot return to the source once it has left; other times, the flow is bi-directional, and a component can return to its source. Compartment models have many applications, including ecology, economics, and, notably, epidemiology.
SIR Model
The most elementary compartmental model in epidemiology is the Susceptible-Infected-Recovery Model, commonly called the SIR Model. The entire population is divided into three groups:
-
People who have not had a disease and therefore are susceptible (S)
-
People who currently have the disease and therefore are infected (I)
-
People who have recovered (R) from the disease
This can be represented by the following basic graphic.
Notice that this model assumes that the population is constant (i.e. no births or deaths) and that, once recovered, an individual cannot become infected again. If we let describe infection rate and describe recovery rate, then we have the following system of ordinary differential equations:
Observing that the sum of the three derivatives is zero proves that the SIR Model assumes the total population is constant.
The so-called basic reproduction number has also entered everyday conversation: it describes the expected number of new infections from a single infection in a population where all subjects are susceptible. In the SIR Model, it is given by the ratio of the rate of infection over the rate of recovery:
Rewriting the rate of change of infected individuals illustrates the importance of the basic reproductive number:
Thus
causing an epidemic in which the percentage of infected individuals can become quite large.
Assumptions
All mathematical models make assumptions in their attempt to simplify the complicated real world. We have already noted that the SIR Model assumes that the total population is constant. It is important to outline the other assumptions present in the model so that we know how it might fail and what improvements can be made as we add complexity. The other main assumptions present in the basic SIR Model are:
-
No prior immunity; in other words, everyone has the potential to get sick.
-
All individuals are similar (susceptibility and infectivity). Thus a healthy young adult is as likely to both become infected and to recover as an elderly person with pre-existing health problems.
-
All individuals mix uniformly (equivalently, the mixture is homogeneous). This is “math-speak” that simply means one person is equally likely to come into contact with every other person in the population - regardless of if that person is sick or healthy, a family member or a stranger.
-
All recovered individuals are immune; i.e., there is no possibility of re-infection.
-
No behavioral changes during the course of the epidemic!
Clearly, the SIR Model should not be used in any real-world decision-making process. Nevertheless, the dynamics that it describes serves as the basis for many epidemiological models that are (and should!) be used to inform policy decisions.
Simulation
See my Shiny app to view a graph of the fraction of individuals in the S, I, and R compartments over time, and how this graph changes as different parameters change. (This app assumes that everyone who is not infected initially is susceptible - in other words, there is no prior immunity, as described above.)