Compartmental models are a very general modelling technique. They are often applied to the
mathematical modelling of infectious disease
Mathematical models can project how infectious diseases progress to show the likely outcome of an epidemic (including in plants) and help inform public health and plant health interventions. Models use basic assumptions or collected statistics alo ...
s. The population is assigned to compartments with labels – for example, S, I, or R, (Susceptible, Infectious, or Recovered). People may progress between compartments. The order of the labels usually shows the flow patterns between the compartments; for example SEIS means susceptible, exposed, infectious, then susceptible again.
The origin of such models is the early 20th century, with important works being that of
Ross Ross or ROSS may refer to:
People
* Clan Ross, a Highland Scottish clan
* Ross (name), including a list of people with the surname or given name Ross, as well as the meaning
* Earl of Ross, a peerage of Scotland
Places
* RoSS, the Republic of Sou ...
in 1916, Ross and
Hudson
Hudson may refer to:
People
* Hudson (given name)
* Hudson (surname)
* Henry Hudson, English explorer
* Hudson (footballer, born 1986), Hudson Fernando Tobias de Carvalho, Brazilian football right-back
* Hudson (footballer, born 1988), Hudso ...
in 1917,
Kermack and McKendrick in 1927
and
Kendall in 1956.
The
Reed-Frost model was also a significant and widely-overlooked ancestor of modern epidemiological modelling approaches.
The models are most often run with ordinary differential equations (which are deterministic), but can also be used with a stochastic (random) framework, which is more realistic but much more complicated to analyze.
Models try to predict things such as how a disease spreads, or the total number infected, or the duration of an epidemic, and to estimate various epidemiological parameters such as the
reproductive number
In epidemiology, the basic reproduction number, or basic reproductive number (sometimes called basic reproduction ratio or basic reproductive rate), denoted R_0 (pronounced ''R nought'' or ''R zero''), of an infection is the expected number of ...
. Such models can show how different
public health intervention
A public health intervention is any effort or policy that attempts to improve mental and physical health on a population level. Public health interventions may be run by a variety of organizations, including governmental health departments and n ...
s may affect the outcome of the epidemic, e.g., what the most efficient technique is for issuing a limited number of
vaccine
A vaccine is a biological Dosage form, preparation that provides active acquired immunity to a particular infectious disease, infectious or cancer, malignant disease. The safety and effectiveness of vaccines has been widely studied and verifie ...
s in a given population.
The SIR model
The SIR model
is one of the simplest compartmental models, and many models are derivatives of this basic form. The model consists of three compartments:-
:S: The number of susceptible individuals. When a susceptible and an infectious individual come into "infectious contact", the susceptible individual contracts the disease and transitions to the infectious compartment.
:I: The number of infectious individuals. These are individuals who have been infected and are capable of infecting susceptible individuals.
:R for the number of removed (and immune) or deceased individuals. These are individuals who have been infected and have either recovered from the disease and entered the removed compartment, or died. It is assumed that the number of deaths is negligible with respect to the total population. This compartment may also be called "recovered" or "resistant".
This model is reasonably predictive
for infectious diseases that are transmitted from human to human, and where recovery confers lasting resistance, such as
measles
Measles is a highly contagious infectious disease caused by measles virus. Symptoms usually develop 10–12 days after exposure to an infected person and last 7–10 days. Initial symptoms typically include fever, often greater than , cough, ...
,
mumps
MUMPS ("Massachusetts General Hospital Utility Multi-Programming System"), or M, is an imperative, high-level programming language with an integrated transaction processing key–value database. It was originally developed at Massachusetts Gener ...
and
rubella
Rubella, also known as German measles or three-day measles, is an infection caused by the rubella virus. This disease is often mild, with half of people not realizing that they are infected. A rash may start around two weeks after exposure and ...
.
These variables (S, I, and R) represent the number of people in each compartment at a particular time. To represent that the number of susceptible, infectious and removed individuals may vary over time (even if the total population size remains constant), we make the precise numbers a function of ''t'' (time): S(''t''), I(''t'') and R(''t''). For a specific disease in a specific population, these functions may be worked out in order to predict possible outbreaks and bring them under control.
As implied by the variable function of ''t'', the model is dynamic in that the numbers in each compartment may fluctuate over time. The importance of this dynamic aspect is most obvious in an
endemic
Endemism is the state of a species being found in a single defined geographic location, such as an island, state, nation, country or other defined zone; organisms that are indigenous to a place are not endemic to it if they are also found elsew ...
disease with a short infectious period, such as
measles
Measles is a highly contagious infectious disease caused by measles virus. Symptoms usually develop 10–12 days after exposure to an infected person and last 7–10 days. Initial symptoms typically include fever, often greater than , cough, ...
in the UK prior to the introduction of a
vaccine
A vaccine is a biological Dosage form, preparation that provides active acquired immunity to a particular infectious disease, infectious or cancer, malignant disease. The safety and effectiveness of vaccines has been widely studied and verifie ...
in 1968. Such diseases tend to occur in cycles of outbreaks due to the variation in number of susceptibles (S(''t'')) over time. During an
epidemic
An epidemic (from Ancient Greek, Greek ἐπί ''epi'' "upon or above" and δῆμος ''demos'' "people") is the rapid spread of disease to a large number of patients among a given population within an area in a short period of time.
Epidemics ...
, the number of susceptible individuals falls rapidly as more of them are infected and thus enter the infectious and removed compartments. The disease cannot break out again until the number of susceptibles has built back up, e.g. as a result of offspring being born into the susceptible compartment.
Each member of the population typically progresses from susceptible to infectious to recovered. This can be shown as a flow diagram in which the boxes represent the different compartments and the arrows the transition between compartments, i.e.
Transition rates
For the full specification of the model, the arrows should be labeled with the transition rates between compartments. Between ''S'' and ''I'', the transition rate is assumed to be ''d(S/N)/dt = -βSI/N
2'', where ''N'' is the total population, β is the average number of contacts per person per time, multiplied by the probability of disease transmission in a contact between a susceptible and an infectious subject, and ''SI/N
2'' is the fraction of those contacts between an infectious and susceptible individual which result in the susceptible person becoming infected. (This is mathematically similar to the
law of mass action
In chemistry, the law of mass action is the proposition that the rate of the chemical reaction is directly proportional to the product of the activities or concentrations of the reactants. It explains and predicts behaviors of solutions in dyna ...
in chemistry in which random collisions between molecules result in a chemical reaction and the fractional rate is proportional to the concentration of the two reactants).
Between ''I'' and ''R'', the transition rate is assumed to be proportional to the number of infectious individuals which is γ''I''. This is equivalent to assuming that the probability of an infectious individual recovering in any time interval ''dt'' is simply γ''dt''. If an individual is infectious for an average time period ''D'', then γ = 1/''D''. This is also equivalent to the assumption that the length of time spent by an individual in the infectious state is a random variable with an
exponential distribution
In probability theory and statistics, the exponential distribution is the probability distribution of the time between events in a Poisson point process, i.e., a process in which events occur continuously and independently at a constant average ...
. The "classical" SIR model may be modified by using more complex and realistic distributions for the I-R transition rate (e.g. the
Erlang distribution
The Erlang distribution is a two-parameter family of continuous probability distributions with support x \in independent exponential distribution">exponential variables with mean 1/\lambda each. Equivalently, it is the distribution of the time ...
).
For the special case in which there is no removal from the infectious compartment (γ=0), the SIR model reduces to a very simple SI model, which has a
logistic solution, in which every individual eventually becomes infected.
The SIR model without vital dynamics
The dynamics of an epidemic, for example, the
flu
Influenza, commonly known as "the flu", is an infectious disease caused by influenza viruses. Symptoms range from mild to severe and often include fever, runny nose, sore throat, muscle pain, headache, coughing, and fatigue. These symptom ...
, are often much faster than the dynamics of birth and death, therefore, birth and death are often omitted in simple compartmental models. The SIR system without so-called vital dynamics (birth and death, sometimes called demography) described above can be expressed by the following system of ordinary
differential equations
In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, an ...
:
:
where
is the stock of susceptible population,
is the stock of infected,
is the stock of removed population (either by death or recovery), and
is the sum of these three.
This model was for the first time proposed by
William Ogilvy Kermack
William Ogilvy Kermack FRS FRSE FRIC (26 April 1898 – 20 July 1970) was a Scottish biochemist. He made mathematical studies of epidemic spread and established links between environmental factors and specified diseases. He is noteworthy for ...
and
Anderson Gray McKendrick
Lt Col Anderson Gray McKendrick DSc FRSE (8 September 1876 – 30 May 1943) was a Scottish military physician and epidemiologist who pioneered the use of mathematical methods in epidemiology. Irwin (see below) commented on the quality of his wor ...
as a special case of what we now call
Kermack–McKendrick theory Kermack–McKendrick theory is a hypothesis that predicts the number and distribution of cases of an infectious disease as it is transmitted through a population over time. Building on the research of Ronald Ross and Hilda Hudson, A. G. McKendrick ...
, and followed work McKendrick had done with
Ronald Ross
Sir Ronald Ross (13 May 1857 – 16 September 1932) was a British medical doctor who received the Nobel Prize for Physiology or Medicine in 1902 for his work on the transmission of malaria, becoming the first British Nobel laureate, and the f ...
.
This system is
non-linear
In mathematics and science, a nonlinear system is a system in which the change of the output is not proportional to the change of the input. Nonlinear problems are of interest to engineers, biologists, physicists, mathematicians, and many other ...
, however it is possible to derive its analytic solution in implicit form.
Firstly note that from:
:
it follows that:
:
expressing in mathematical terms the constancy of population
. Note that the above relationship implies that one need only study the equation for two of the three variables.
Secondly, we note that the dynamics of the infectious class depends on the following ratio:
:
the so-called
basic reproduction number
In epidemiology, the basic reproduction number, or basic reproductive number (sometimes called basic reproduction ratio or basic reproductive rate), denoted R_0 (pronounced ''R nought'' or ''R zero''), of an infection is the expected number of ...
(also called basic reproduction ratio). This ratio is derived as the expected number of new infections (these new infections are sometimes called secondary infections) from a single infection in a population where all subjects are susceptible.
This idea can probably be more readily seen if we say that the typical time between contacts is
, and the typical time until removal is
. From here it follows that, on average, the number of contacts by an infectious individual with others ''before'' the infectious has been removed is:
By dividing the first differential equation by the third,
separating the variables and integrating we get
:
where
and
are the initial numbers of, respectively, susceptible and removed subjects.
Writing
for the initial proportion of susceptible individuals, and
and
for the proportion of susceptible and removed individuals respectively
in the limit
one has
:
(note that the infectious compartment empties in this limit).
This
transcendental equation
In applied mathematics, a transcendental equation is an equation over the real number, real (or complex number, complex) numbers that is not algebraic equation, algebraic, that is, if at least one of its sides describes a transcendental function. ...
has a solution in terms of the
Lambert function, namely
:
This shows that at the end of an epidemic that conforms to the simple assumptions of the SIR model, unless
, not all individuals of the population have been removed, so some must remain susceptible. A driving force leading to the end of an epidemic is a decline in the number of infectious individuals. The epidemic does not typically end because of a complete lack of susceptible individuals.
The role of both the
basic reproduction number
In epidemiology, the basic reproduction number, or basic reproductive number (sometimes called basic reproduction ratio or basic reproductive rate), denoted R_0 (pronounced ''R nought'' or ''R zero''), of an infection is the expected number of ...
and the initial susceptibility are extremely important. In fact, upon rewriting the equation for infectious individuals as follows:
:
it yields that if:
:
then:
:
i.e., there will be a proper epidemic outbreak with an increase of the number of the infectious (which can reach a considerable fraction of the population). On the contrary, if
:
then
:
i.e., independently from the initial size of the susceptible population the disease can never cause a proper epidemic outbreak. As a consequence, it is clear that both the
basic reproduction number
In epidemiology, the basic reproduction number, or basic reproductive number (sometimes called basic reproduction ratio or basic reproductive rate), denoted R_0 (pronounced ''R nought'' or ''R zero''), of an infection is the expected number of ...
and the initial susceptibility are extremely important.
The force of infection
Note that in the above model the function:
:
models the transition rate from the compartment of susceptible individuals to the compartment of infectious individuals, so that it is called the
force of infection
In epidemiology, force of infection (denoted \lambda) is the rate at which susceptible individuals acquire an infectious disease. Because it takes account of susceptibility it can be used to compare the rate of transmission between different group ...
. However, for large classes of communicable diseases it is more realistic to consider a force of infection that does not depend on the absolute number of infectious subjects, but on their fraction (with respect to the total constant population
):
:
Capasso
and, afterwards, other authors have proposed nonlinear forces of infection to model more realistically the contagion process.
Exact analytical solutions to the SIR model
In 2014, Harko and coauthors derived an exact so-called analytical solution (involving an integral that can only be calculated numerically) to the SIR model.
In the case without vital dynamics setup, for
, etc., it corresponds to the following time parametrization
:
:
:
for
:
with initial conditions
: