Compartmental models in epidemiology
In order to model the progress of an epidemic in a large population, the population diversity must be reduced to a few key characteristics which are relevant to the infection under consideration. For example, for most common childhood diseases that confer long-lasting immunity, it makes sense to divide the population into those who are susceptible to the disease, those who are infected and those who have recovered and are immune. These subdivisions of the population are called compartments.
- 1 The SIR model
- 2 Bio-mathematical deterministic treatment of the SIR model
- 3 Modelling mass vaccination programmes
- 4 The SEIR model
- 5 Elaborations on the basic SIR model
- 6 The SIS model
- 7 The influence of age: age-structured models
- 8 Deterministic versus stochastic epidemic models
- 9 The GEMF model: Generalized Epidemic Mean-Field model
- 10 See also
- 11 References
- 12 Bibliography
- 13 External links
The SIR model
The SIR model labels these three compartments S = number susceptible, I =number infectious, and R =number recovered (immune). This is a good and simple model for many infectious diseases including measles, mumps and rubella.
The letters also represent the number of people in each compartment at a particular time. To indicate that the numbers might 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.
The SIR model is dynamic in three senses
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 disease with a short infectious period, such as measles in the UK prior to the introduction of a vaccine 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, 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 as a result of offspring being born into the susceptible compartment.
Each member of the population typically progresses from susceptible to infectious to removed. This can be shown as a flow diagram in which the boxes represent the different compartments and the arrows the transition between compartments.
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 β I, where β is the contact rate, which takes into account the probability of getting the disease in a contact between a susceptible and an infectious subject.
Between I and R, the transition rate is ν (simply the rate of recovery or death). If the duration of the infection is denoted D, then ν = 1/D, since an individual experiences one recovery in D units of time.
It is assumed that the permanence of each single subject in the epidemic states is a random variable with exponential distribution. More complex and realistic distributions (such as Erlang distribution) can be equally used with few modifications.
Bio-mathematical deterministic treatment of the SIR model
The SIR model without vital dynamics
Because a single epidemic outbreak moves faster than the normal birth-death rates in a given population, normal birth-death rates are excluded. The SIR system described above can be expressed by the following set of ordinary differential equations:
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 (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 recovery is . From here it follows that, on average, the number of contacts by an infected individual with others before the infected has recovered is:
By dividing the first differential equation by the third, separating the variables and integrating we get
(where S(0) and R(0) are the initial numbers of, respectively, susceptible and removed subjects). Thus, in the limit , the proportion of recovered individuals obeys the transcendental equation
This equation shows that at the end of an epidemic, unless S(0)=0, not all individuals of the population have recovered, so some must remain susceptible. This means that the end of an epidemic is caused by the decline in the number of infected individuals rather than an absolute lack of susceptible subjects. The role of the basic reproduction number is extremely important. In fact, upon rewriting the equation for infectious individuals as follows:
it yields that if:
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
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 the basic reproduction number is 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. 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.
The SIR model with vital dynamics and constant population
Considering a population characterized by a death rate and birth rate equal to the death rate, and where a communicable disease is spreading. The model is:
for which it holds:
Also in this case we may define a basic reproduction number :
which has threshold properties. In fact, independently from biologically meaningful initial values:
one can show that:
The point DFE is called the disease free equilibrium, whereas the point EE is called the Endemic Equilibrium. Since, with heuristic arguments, one may show that may be read as the average number of infections caused by a single infectious subject in a wholly susceptible population, the above relationship biologically means that if this number is less or equal than one the disease get extinct, whereas if this number is greater than one the disease will remain permanently endemic in the population.
Variable contact rates and pluriannual or chaotic epidemics
It is well known that the probability of getting a disease is not constant in the time. Some diseases are seasonal, such as the common cold viruses, which are more prevalent during winter. With childhood diseases, such as measles, mumps, and rubella, there is a strong correlation with the school calendar, so that during the school holidays the probability of getting such a disease dramatically decreases.
As a consequence, for many classes of diseases one should consider a force of infection with periodically ('seasonal') varying contact rate
with period T equal to one year.
Thus, our model becomes
(the dynamics of recovered easily follows from ), i.e. a nonlinear set of differential equations with periodically varying parameters. It is well known that this class of dynamical systems may undergo very interesting and complex phenomena of nonlinear parametric resonance. It is easy to see that if:
whereas if the integral is greater than one the disease will not die out and there may be such resonances. For example, considering the periodically varying contact rate as the 'input' of the system one has that the output is a periodic function whose period is a multiple of the period of the input. This allowed to give a contribution to explain the poly-annual (typically biennial) epidemic outbreaks of some infectious diseases as interplay between the period of the contact rate oscillations and the pseudo-period of the damped oscillations near the endemic equilibrium. Remarkably, in some cases the behavior may also be quasi-periodic or even chaotic.
Modelling mass vaccination programmes
Vaccinating the newborns
In presence of a communicable diseases, one of main tasks is that of eradicating it via prevention measures and, if possible, via the establishment of a mass vaccination program. Let us consider a disease for which the newborn are vaccinated (with a vaccine giving lifelong immunity) at a rate :
where V is the class of vaccinated subjects. It is immediate to show that:
thus we shall deal with the long term behavior of S and I, for which it holds that:
In other words if
the vaccination program is successful in eradicating the disease, on the contrary it will remain endemic, although at lower levels than the case of absence of vaccinations. This means that the mathematical model suggests that for a disease whose basic reproduction number may be as high as 18 one should have to vaccinate 94.4% of newborns in order to eradicate the disease.
Vaccination and information
Modern societies are facing the challenge of "rational" exemption, i.e. the family's decision to not vaccinate children as a consequence of a "rational" comparison between the perceived risk from infection and that from getting damages from the vaccine. In order to assess whether this behavior is really rational, i.e. if it can equally lead to the eradication of the disease, one may simply assume that the vaccination rate is an increasing function of the number of infectious subjects:
In such a case the eradication condition becomes:
i.e. the baseline vaccination rate should be greater than the "mandatory vaccination" threshold, which, in case of exemption, cannot hold. Thus, "rational" exemption might be myopic since it is based only on the current low incidence due to high vaccine coverage, instead taking into account future resurgence of infection due to coverage decline.
Vaccination of non newborns
In case there also are vaccinations of non newborn at a rate ρ the equation for the susceptible and vaccinated subject has to be modified as follows:
leading to the following eradication condition:
Pulse vaccination strategy
This strategy repeatedly vaccinates a defined age-cohort (such as young children or the elderly) in a susceptible population over time. Using this strategy, the block of susceptible individuals is then immediately removed, making it possible to eliminate an infectious disease, (such as measles), from the entire population. Every T time units a constant fraction p of susceptible subjects is vaccinated in a relatively short (with respect to the dynamics of the disease) time. This leads to the following impulsive differential equations for the susceptible and vaccinated subjects:
It is easy to see that by setting I = 0 one obtains that the dynamics of the susceptible subjects is given by:
and that the eradication condition is:
The SEIR model
For many important infections there is a significant incubation period during which the individual has been infected but is not yet infectious themselves. During this period the individual is in compartment E (for exposed).
Assuming that the incubation period is a random variable with exponential distribution with parameter a (i.e. the average incubation period is ), and also assuming the presence of vital dynamics with birth rate equal to death rate, we have the model:
Of course, we have that .
For this model, the basic reproduction number is:
Similarly to the SIR model, also in this case we have a Disease-Free-Equilibrium (N,0,0,0) and an Endemic Equilibrium EE, and one can show that, independently form biologically meaningful initial conditions
it holds that:
In case of periodically varying contact rate the condition for the global attractiveness of DFE is that the following linear system with periodic coefficients:
is stable (i.e. it has its Floquet's eigenvalues inside the unit circle in the complex plane).
Elaborations on the basic SIR model
The MSIR model
For many infections, including measles, babies are not born into the susceptible compartment but are immune to the disease for the first few months of life due to protection from maternal antibodies (passed across the placenta and additionally through colostrum). This added detail can be shown by including an M class (for maternally derived immunity) at the beginning of the model.
Some people who have had an infectious disease such as tuberculosis never completely recover and continue to carry the infection, whilst not suffering the disease themselves. They may then move back into the infectious compartment and suffer symptoms (as in tuberculosis) or they may continue to infect others in their carrier state, while not suffering symptoms. The most famous example of this is probably Mary Mallon, who infected 22 people with typhoid fever. The carrier compartment is labelled C.
The SIS model
Some infections, for example those from the common cold and influenza, do not confer any long lasting immunity. Such infections do not give immunization upon recovery from infection, and individuals become susceptible again.
We have the model:
Note that denoting with N the total population it holds that: it follows that:
i.e. the dynamics of infectious is ruled by a logistic equation, so that :
The influence of age: age-structured models
Age has a deep influence on the disease spread rate in a population, especially the contact rate. This rate summarizes the effectiveness of contacts between susceptible and infectious subjects. Taking into account the ages of the epidemic classes (to limit ourselves to the susceptible-infectious-removed scheme) such that:
(where is the maximum admissible age)and their dynamics is not described, as one might think, by "simple" partial differential equations, but by integro-differential equations:
is the force of infection, which, of course, will depend, though the contact kernel on the interactions between the ages.
Complexity is added by the initial conditions for newborns (i.e. for a=0), that are straightforward for infectious and removed:
but that are nonlocal for the density of susceptible newborns:
where are the fertilities of the adults.
Moreover, defining now the density of the total population one obtains:
In the simplest case of equal fertilities in the three epidemic classes, we have that in oder to have demographic equilibrium the following necessary and sufficient condition linking the fertility with the mortality must hold:
and the demographic equilibrium is
automatically ensuring the existence of the disease-free solution:
A basic reproduction number can be calculated as the spectral radius of an appropriate functional operator.
Deterministic versus stochastic epidemic models
It is important to stress that the deterministic models presented here are valid only in case of sufficiently large populations. Moreover, even in case of large populations, as pointed out among the firsts by M. S. Bartlett, in some cases deterministic models should cautiously be used. For example in case of seasonally varying contact rates the number of infectious subjects may reduce to infinitesimal values, thus maybe invalidating some results that are obtained in the field of chaotic epidemics.
The GEMF model: Generalized Epidemic Mean-Field model
The generalized epidemic mean-field model (GEMF) is a novel and generalized formulation of the epidemic spreading problem and a modeling solution. This modeling approach considers a spreading process among a group of nodes that can be in different compartments (susceptible, infected, recovered, and vaccinated), and where the nodes are connected through a multi-layer network. It is suitable for a large class of individual-based spreading scenarios. GEMF allows for simple and rapid development of software to simulate multi-compartment and multi-layer epidemic models.
- Mathematical modelling in epidemiology
- Modifiable Areal Unit Problem
- Next-generation matrix
- Risk assessment
- Attack rate
- Bailey, Norman T. J. (1975). The mathematical theory of infectious diseases and its applications (2nd ed.). London: Griffin. ISBN 0-85264-231-8.
- Sonia Altizer; Nunn, Charles (2006). Infectious diseases in primates: behavior, ecology and evolution. Oxford Series in Ecology and Evolution. Oxford [Oxfordshire]: Oxford University Press. ISBN 0-19-856585-2.
- Darabi Sahneh F., Scoglio C., Van Mieghem P., "Generalized Epidemic Mean-Field Model for Spreading Processes over Multi-Layer Complex networks," IEEE/ACM Transactions on Networking, vol. 21, no.5, 1609-1620, 2013.
- May, Robert M.; Anderson, Roy M. (1991). Infectious diseases of humans: dynamics and control. Oxford [Oxfordshire]: Oxford University Press. ISBN 0-19-854040-X.
- V. Capasso, The Mathematical Structure of Epidemic Systems, Springer Verlag (1993)
- McKendrick AG (1925). "Applications of mathematics to medical problems". Proceedings of the Edinburgh Mathematical Society 44: 98–130. doi:10.1017/S0013091500034428.
Reprinted with commentary in Johnson, Norman L.; Kotz, Samuel (1992). Breakthroughs in statistics 3. Berlin: Springer-Verlag. ISBN 0-387-94989-5.
- Kermack WO, McKendrick AG (August 1, 1927). "A Contribution to the Mathematical Theory of Epidemics". Proceedings of the Royal Society A 115 (772): 700–721. doi:10.1098/rspa.1927.0118.
- Kermack WO, McKendrick AG (October 1, 1932). "Contributions to the Mathematical Theory of Epidemics. II. The Problem of Endemicity". Proceedings of the Royal Society A 138 (834): 55–83. doi:10.1098/rspa.1932.0171.
- Kermack WO, McKendrick AG (July 3, 1933). "Contributions to the Mathematical Theory of Epidemics. III. Further Studies of the Problem of Endemicity". Proceedings of the Royal Society A 141 (843): 94–122. doi:10.1098/rspa.1933.0106.
- Bartlett MS (1957). "Measles periodicity and community size". Journal of the Royal Statistical Society, Series A 120 (1): 48–70. doi:10.2307/2342553. JSTOR 2342553.
- Hethcote H (1976). "Qualitative analyses of communicable disease models". Math. Biosci. 28 (3-4): 335–356. doi:10.1016/0025-5564(76)90132-2.
- Olsen LF, Schaffer WM (August 1990). "Chaos versus noisy periodicity: alternative hypotheses for childhood epidemics". Science 249 (4968): 499–504. doi:10.1126/science.2382131. PMID 2382131.
- Inaba H (1990). "Threshold and stability results for an age-structured epidemic model". J Math Biol 28 (4): 411–34. PMID 2384720.
- Agur Z, Cojocaru L, Mazor G, Anderson RM, Danon YL (December 1993). "Pulse mass measles vaccination across age cohorts". Proc. Natl. Acad. Sci. U.S.A. 90 (24): 11698–702. doi:10.1073/pnas.90.24.11698. PMC 48051. PMID 8265611.
- Kuznetsov YA, Piccardi C (1994). "Bifurcation analysis pf periodic SEIR and SIR epidemic models". J Math Biol 32 (2): 109–21. doi:10.1007/BF00163027. PMID 8145028.
- Li MY, Muldowney JS (February 1995). "Global stability for the SEIR model in epidemiology". Math Biosci 125 (2): 155–64. doi:10.1016/0025-5564(95)92756-5. PMID 7881192.
- Nasell, I. (2002). "Measles outbreaks are not chaotic". In Blower, Sally; Castillo-Chávez, Carlos. Mathematical approaches for emerging and reemerging infectious diseases: an introduction. Berlin: Springer. pp. 85–115. ISBN 0-387-95354-X.
- d'Onofrio A (2002). "Stability properties of pulse vaccination strategy in SEIR epidemic model". Math Biosci 179 (1): 57–72. doi:10.1016/S0025-5564(02)00095-0. PMID 12047921.
- d'Onofrio A (2004). "Mixed pulse vaccination strategy in epidemic model with realistically distributed infectious and latent times". Applied Mathematics and Computation 151 (1): 181–7. doi:10.1016/S0096-3003(03)00331-X.
- Reluga TC, Bauch CT, Galvani AP (December 2006). "Evolving public perceptions and stability in vaccine uptake". Math Biosci 204 (2): 185–98. doi:10.1016/j.mbs.2006.08.015. PMID 17056073.
- d'Onofrio A, Manfredi P, Salinelli E (2007). "Vaccinating behaviour, information, and the dynamics of SIR vaccine preventable diseases". Th. Pop. Biol.: 301–17.
- Schaffer WM, Bronnikova TV (2007). "Parametric dependence in model epidemics". J. Biol. Dynam. 1 (2): 183–195. doi:10.1080/17513750601174216.
- Stone L, Olinky R, Huppert A (March 2007). "Seasonal dynamics of recurrent epidemics". Nature 446 (7135): 533–6. doi:10.1038/nature05638. PMID 17392785.
- Vynnycky, E., White, R.G. (2010). Vynnycky, E., White, R.G., ed. An Introduction to Infectious Disease Modelling. Oxford: Oxford University Press. p. 368. ISBN 0-19-856576-3.
- the Spatiotemporal Epidemiological Modeler (STEM) is an open source Epidemiological modeling system that uses the Eclipse Modeling Framework from the Eclipse Foundation to allow rapid development of new models for infectious disease. External STEM site at Eclipse.
- SIR model: Online experiments with JSXGraph
- SEIR Model simulator Free to use epidemics simulator using SEIR model. Systems Dynamics implementation of the SEIR model.