Compartmental models are a mathematical framework used to simulate how populations move between different states or "compartments". While widely applied in various fields, they have become particularly fundamental to the mathematical modelling of infectious diseases. In these models, the population is divided into compartments labeled with shorthand notation – most commonly S, I, and R, representing Susceptible, Infectious, and Recovered individuals. The sequence of letters typically indicates the flow patterns between compartments; for example, an SEIS model represents progression from susceptible to exposed to infectious and then back to susceptible again.
These models originated in the early 20th century through pioneering epidemiological work by several mathematicians. Key developments include Hamer's work in 1906, Ross's contributions in 1916, collaborative work by Ross and Hudson in 1917, the seminal Kermack and McKendrick model in 1927, and Kendall's work in 1956. The historically significant Reed–Frost model, though often overlooked, also substantially influenced modern epidemiological modeling approaches.
Most implementations of compartmental models use ordinary differential equations (ODEs), providing deterministic results that are mathematically tractable. However, they can also be formulated within stochastic frameworks that incorporate randomness, offering more realistic representations of population dynamics at the cost of greater analytical complexity.
Epidemiologists and public health officials use these models for several critical purposes: analyzing disease transmission dynamics, projecting the total number of infections and recoveries over time, estimating key epidemiological parameters such as the basic reproduction number (R<sub>0</sub>) or effective reproduction number (R<sub>t</sub>), evaluating potential impacts of different public health interventions before implementation, and informing evidence-based policy decisions during disease outbreaks. Beyond infectious disease modeling, the approach has been adapted for applications in population ecology, pharmacokinetics, chemical kinetics, and other fields requiring the study of transitions between defined states. For such investigations and to consult decision makers, often more complex models are used.
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, mumps, and rubella.
thumb|Spatial SIR model simulation. Each cell can infect its eight immediate neighbors.
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.)
Between I and R, the transition rate is assumed to be proportional to the number of infectious individuals which is <math> \gamma I </math>. If an individual is infectious for an average time period <math> D </math>, then <math> \gamma = 1 / D </math>. 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. 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).
For the special case in which there is no removal from the infectious compartment (<math> \gamma=0 </math>), 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 birth and death
thumb|400px|right|A single realization of the SIR epidemic as produced with an implementation of the [[Gillespie algorithm and the numerical solution of the ordinary differential equation system (dashed)]]
The dynamics of an epidemic, for example, the flu, 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:
:<math>
\left\{\begin{aligned}
& \frac{dS}{dt} = - \frac{\beta}{N} I S, \\[6pt]
& \frac{dI}{dt} = \frac{\beta}{N} I S - \gamma I, \\[6pt]
& \frac{dR}{dt} = \gamma I,
\end{aligned}\right.
</math>
thumb|right|The SIR model
where <math>S</math> is the stock of susceptible population in unit number of people, <math>I</math> is the stock of infected in unit number of people, <math>R</math> is the stock of removed population (either by death or recovery) in unit number of people, and <math>N</math> is the sum of these three in unit number of people. <math>\beta</math> is the infection rate constant in the unit number of people infected per day per infected person, and <math>\gamma</math> is the recovery rate constant in the unit fraction of a person recovered per day per infected person, when time is in unit day.
This model was for the first time proposed by William Ogilvy Kermack and Anderson Gray McKendrick as a special case of what we now call Kermack–McKendrick theory, and followed work McKendrick had done with Ronald Ross.
This system is non-linear, however it is possible to derive its analytic solution in implicit form. This idea can probably be more readily seen if we say that the typical time between contacts is <math>T_{c} = \beta^{-1}</math>, and the typical time until removal is <math>T_{r} = \gamma^{-1}</math>. From here it follows that, on average, the number of contacts by an infectious individual with others before the infectious has been removed is: <math>T_{r}/T_{c}.</math>
By dividing the first differential equation by the third, separating the variables and integrating we get
:<math> S(t) = S(0) e^{-R_0(R(t) - R(0))/N}, </math>
where <math>S(0)</math> and <math>R(0)</math> are the initial numbers of, respectively, susceptible and removed subjects.
Writing <math>s_0 = S(0) / N</math> for the initial proportion of susceptible individuals, and
<math>s_\infty = S(\infty) / N</math> and
<math>r_\infty = R(\infty) / N</math> for the proportion of susceptible and removed individuals respectively in the limit <math>t \to \infty,</math> one has
:<math>s_\infty = 1 - r_\infty = s_0 e^{-R_0(r_\infty - r_0)}</math>
(note that the infectious compartment empties in this limit).
This transcendental equation has a solution in terms of the Lambert function, namely
:<math>s_\infty = 1-r_\infty = - R_0^{-1}\, W(-s_0 R_0 e^{-R_0(1-r_0)}).</math>
This shows that at the end of an epidemic that conforms to the simple assumptions of the SIR model, unless <math>s_0=0</math>, 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 and the initial susceptibility are extremely important. In fact, upon rewriting the equation for infectious individuals as follows:
:<math> \frac{dI}{dt} = \left(R_0 \frac{S}{N} - 1\right) \gamma I,</math>
it yields that if:
:<math> R_{0} \cdot S(0) > N,</math>
then:
:<math> \frac{dI}{dt}(0) >0 ,</math>
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
:<math> R_{0} \cdot S(0) < N,</math>
then
:<math> \frac{dI}{dt}(0) <0 ,</math>
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 and the initial susceptibility are extremely important.
The force of infection
Note that in the above model the function:
:<math> F = \beta I,</math>
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 <math>N</math>):
:<math> F = \beta \frac{I}{N} .</math>
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. yields
:<math>
\begin{align}
S(t) & = S(0) e^{-\xi(t)} \\[8pt]
I(t) & = N-S(t)-R(t) \\[8pt]
R(t) & = R(0) + \rho \xi(t) \\[8pt]
\xi(t) & = \frac{\beta}{N}\int_0^t I(t^*) \, dt^*
\end{align}
</math>
Here <math>\xi(t)</math> can be interpreted as the expected number of transmissions an individual has received by time <math>t</math>. The two solutions are related by <math>e^{-\xi(t)} = u</math>.
Effectively the same result can be found in the original work by Kermack and McKendrick.), to obtain its parameters from existing data, or to predict the future dynamics of an epidemics modeled by the SIR model. The approximant involves the Lambert function which is part of all basic data visualization software such as Microsoft Excel, MATLAB, and Mathematica.
While Kendall Three reproduction numbers can be pulled out from the data analyzed with numerical approximation,
:the basic reproduction number:
::<math>R_0=\frac{\beta_0}{\gamma_0}</math>
:the real-time reproduction number:
::<math>R_t=\frac{\beta_t}{\gamma_t}</math>
:and the real-time effective reproduction number:
::<math>R_e=\frac{\beta_tS}{\gamma_tN}</math>
<math>R_0</math> represents the speed of reproduction rate at the beginning of the spreading when all populations are assumed susceptible, e.g. if <math>\beta_0 = 0.4 day^{-1}</math> and <math>\gamma_0 = 0.2 day^{-1}</math> meaning one infectious person on average infects 0.4 susceptible people per day and recovers in 1/0.2=5 days. Thus when this person recovered, there are two people still infectious directly got from this person and <math>R_0 = 2</math>, i.e. the number of infectious people doubled in one cycle of 5 days. The data simulated by the model with <math>R_0 = 2</math> or real data fitted will yield a doubling of the number of infectious people faster than 5 days because the two infected people are infecting people. From the SIR model, we can tell that <math>\beta</math> is determined by the nature of the disease and also a function of the interactive frequency between the infectious person <math>I</math> with the susceptible people <math>S</math> and also the intensity/duration of the interaction like how close they interact for how long and whether or not they both wear masks, thus, it changes over time when the average behavior of the carriers and susceptible people changes. The model use <math>SI</math> to represent these factors but it indeed is referenced to the initial stage when no action is taken to prevent the spread and all population is susceptible, thus all changes are absorbed by the change of <math>\beta</math>.
<math>\gamma</math> is usually more stable over time assuming when the infectious person shows symptoms, she/he will seek medical attention or be self-isolated. So if we find <math>R_t</math> changes, most probably the behaviors of people in the community have changed from their normal patterns before the outbreak, or the disease has mutated to a new form. Costive massive detection and isolation of susceptible close contacts have effects on reducing <math>1/\gamma</math> but whose efficiencies are under debate. This debate is largely on the uncertainty of the number of days reduced from after infectious or detectable whichever comes first to before a symptom shows up for an infected susceptible person. If the person is infectious after symptoms show up, or detection only works for a person with symptoms, then these prevention methods are not necessary, and self-isolation and/or medical attention is the best way to cut the <math>1/\gamma</math> values. The typical onset of the COVID-19 infectious period is in the order of one day from the symptoms showing up, making massive detection with typical frequency in a few days useless.
<math>R_t</math> does not tell us whether or not the spreading will speed up or slow down in the latter stages when the fraction of susceptible people in the community has dropped significantly after recovery or vaccination. <math>R_e</math> corrects this dilution effect by multiplying the fraction of the susceptible population over the total population. It corrects the effective/transmissible interaction between an infectious person and the rest of the community when many of the interaction is immune in the middle to late stages of the disease spreading. Thus, when <math>R_e > 1</math>, we will see an exponential-like outbreak; when <math>R_e = 1</math>, a steady state reached and no number of infectious people changes over time; and when <math>R_e < 1</math>, the disease decays and fades away over time.
Using the differential equations of the SIR model and converting them to numerical discrete forms, one can set up the recursive equations and calculate the S, I, and R populations with any given initial conditions but accumulate errors over a long calculation time from the reference point. Sometimes a convergence test is needed to estimate the errors. Given a set of initial conditions and the disease-spreading data, one can also fit the data with the SIR model and pull out the three reproduction numbers when the errors are usually negligible due to the short time step from the reference point.
Steady-state solutions
The only steady state solution to the classic SIR model as defined by the differential equations above is I=0, S and R can then take any values. The model can be changed while retaining three compartments to give a steady-state endemic solution by adding some input to the S compartment.
For example, one may postulate that the expected duration of susceptibility will be <math>\operatorname E[\min(T_L\mid T_S)]</math> where <math>T_L</math> reflects the time alive (life expectancy) and <math>T_S</math> reflects the time in the susceptible state before becoming infected, which can be simplified to:
:<math> \operatorname E[\min(T_L\mid T_S)]=\int_0^\infty e^{-(\mu+\delta) x} \, dx= \frac{1}{\mu+\delta},</math>
such that the number of susceptible persons is the number entering the susceptible compartment <math>\mu N</math> times the duration of susceptibility:
:<math>S = \frac{\mu N}{\mu + \lambda}.</math>
Analogously, the steady-state number of infected persons is the number entering the infected state from the susceptible state (number susceptible, times rate of infection) <math>\lambda = \tfrac{\beta I}{N},</math> times the duration of infectiousness <math>\tfrac{1}{\mu+v}</math>:
:<math>I = \frac{\mu N}{\mu + \lambda} \lambda \frac{1}{\mu + v}. </math>
Other compartmental models
There are many modifications of the SIR model, including those that include births and deaths, where upon recovery there is no immunity (SIS model), where immunity lasts only for a short period of time (SIRS), where there is a latent period of the disease where the person is not infectious (SEIS and SEIR), and where infants can be born with immunity (MSIR). Also, compartments for vaccination, detection, or infected vectors like fleas, ticks, or mosquitoes can be added. Compartmental models can also be used to model multiple risk groups, and even the interaction of multiple pathogens. such that the basic reproduction rate is greater than unity. The solution is given as
:<math>I(t) = \frac{I_\infty}{1+V e^{-\chi t</math>.
where <math>I_\infty = (1 -\gamma/\beta)N</math> is the endemic infectious population, <math>\chi = \beta-\gamma</math>, and <math>V = I_\infty/I_0 - 1</math>. As the system is assumed to be closed, the susceptible population is then <math>S(t) = N - I(t)</math>.
Whenever the integer nature of the number of agents is evident (populations with fewer than tens of thousands of individuals), inherent fluctuations in the disease spreading process caused by discrete agents result in uncertainties. In this scenario, the evolution of the disease predicted by compartmental equations deviates significantly from the observed results. These uncertainties may even cause the epidemic to end earlier than predicted by the compartmental equations.
As a special case, one obtains the usual logistic function by assuming <math>\gamma=0</math>. This can be also considered in the SIR model with <math>R=0</math>, i.e. no removal will take place. That is the SI model. The differential equation system using <math>S=N-I</math> thus reduces to:
:<math>
\frac{dI}{dt} \propto I\cdot (N-I).
</math>
In the long run, in the SI model, all individuals will become infected.
SIRD model
thumb|Diagram of the SIRD model with initial values <math>S(0)=997, I(0)=3, R(0)=0</math> and the rates of infection <math>\beta=0.4</math>, recovery <math>\gamma=0.035</math> and mortality <math>\mu=0.005</math>
thumb|Animation of the SIRD model with initial values <math display="inline">S(0)=997, I(0)=3, R(0)=0</math>, and rates of recovery <math display="inline">\gamma=0.035</math> and mortality <math display="inline">\mu=0.005</math>. The animation shows the effect of reducing the rate of infection from <math display="inline">\beta=0.5</math> to <math display="inline">\beta=0.12</math>. If there is no medicine or vaccination available, it is only possible to reduce the infection rate (often referred to as "flattening the curve") by measures such as "social distancing".
The Susceptible-Infectious-Recovered-Deceased model differentiates between Recovered (meaning specifically individuals having survived the disease and now immune) and Deceased. This model uses the following system of differential equations:
:<math>
\begin{align}
& \frac{dS}{dt} = - \frac{\beta I S}{N}, \\[6pt]
& \frac{dI}{dt} = \frac{\beta I S}{N} - \gamma I - \mu I, \\[6pt]
& \frac{dR}{dt} = \gamma I, \\[6pt]
& \frac{dD}{dt} = \mu I,
\end{align}
</math>
where <math>\beta, \gamma, \mu</math> are the rates of infection, recovery, and mortality, respectively.
SIRV model
The Susceptible-Infectious-Recovered-Vaccinated model is an extended SIR model that accounts for vaccination of the susceptible population. This model uses the following system of differential equations:
:<math>
\begin{align}
& \frac{dS}{dt} = - \frac{\beta(t) I S}{N} - v(t) S, \\[6pt]
& \frac{dI}{dt} = \frac{\beta(t) I S}{N} - \gamma(t) I, \\[6pt]
& \frac{dR}{dt} = \gamma(t) I, \\[6pt]
& \frac{dV}{dt} = v(t) S,
\end{align}
</math>
thumb|right|A cartoon for the SIRV model
where <math>\beta, \gamma, v</math> are the rates of infection, recovery, and vaccination, respectively. For the semi-time initial conditions <math>S(0)=(1-\eta)N</math>, <math>I(0)=\eta N</math>, <math>R(0)=V(0)=0</math> and constant ratios <math>k=\gamma(t)/\beta(t)</math> and <math>b=v(t)/\beta(t)</math> the model had been solved approximately. This model uses the following system of differential equations for the population fractions <math>S, I, R, V, D</math>:
thumb|This file provides a cartoon of the SIRVD model
:<math>
\begin{align}
& \frac{dS}{dt} = - a(t) S I - v(t) S, \\[6pt]
& \frac{dI}{dt} = a(t) S I - \mu(t) I - \psi(t) I, \\[6pt]
& \frac{dR}{dt} = \mu(t) I, \\[6pt]
& \frac{dV}{dt} = v(t) S,\\[6pt]
& \frac{dD}{dt} = \psi(t) I
\end{align}
</math>
where <math>a(t), v(t), \mu(t), \psi(t)</math> are the infection, vaccination, recovery, and fatality rates, respectively. For the semi-time initial conditions <math>S(0)=1-\eta</math>, <math>I(0)=\eta</math>, <math>R(0)=V(0)=D(0)=0</math> and constant ratios <math>k=\mu(t)/a(t)</math>, <math>b=v(t)/a(t)</math>, and <math>q=\psi(t)/a(t)</math> the model had been solved approximately, and exactly for some special cases, irrespective of the functional form of <math>a(t)</math>.
thumb|Scheme of SIRVB model
The kinetic equations become:
:<math>
\begin{align}
& \frac{dS}{dt} = - a(t) S I - v(t) S + b(t)
[\mu(t) I + v(t) S ], \\[6pt]
& \frac{dI}{dt} = a(t) S I - \mu(t) I, \\[6pt]
& \frac{dR}{dt} = [1- b(t)] \mu(t) I , \\[6pt]
& \frac{dV}{dt} = [1- b(t)] v(t) S ,\\[6pt]
\end{align}
</math>
where infection rate <math> a(t) </math> can be write as <math> \beta(t) /N </math>, recovery rate <math> \mu(t) </math> can be simplified to a constant <math> \gamma </math>, <math> v(t) </math> is the vaccination rate, <math> b(t) </math> is the break through ratio or fraction of immuned people susceptible to reinfection (<1).
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 is called passive immunity. This added detail can be shown by including an M class (for maternally derived immunity) at the beginning of the model.
800px|center|MSIR compartmental modelTo indicate this mathematically, an additional compartment is added, M(t). This results in the following differential equations:
::<math>
\begin{align}
\frac{dM}{dt} & = \Lambda - \delta M - \mu M\\[8pt]
\frac{dS}{dt} & = \delta M - \frac{\beta SI}{N} - \mu S\\[8pt]
\frac{dI}{dt} & = \frac{\beta SI}{N} - \gamma I - \mu I\\[8pt]
\frac{dR}{dt} & = \gamma I - \mu R
\end{align}
</math>
Carrier state
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.
A simple modification of previous image by Viki Male to make the word "Carrier" plainly visible.
SEIR model
For many important infections, there is a significant latency period during which individuals have been infected but are not yet infectious themselves. During this period the individual is in compartment E (for exposed).
800px|center|SEIR compartmental model
Assuming that the latency period is a random variable with exponential distribution with parameter <math>a</math> (i.e. the average latency period is <math>a^{-1}</math>), and also assuming the presence of vital dynamics with birth rate <math>\Lambda</math> equal to death rate <math>N\mu</math> (so that the total number <math> N</math> is constant), we have the model:
:<math>
\begin{align}
\frac{dS}{dt} & = \mu N - \mu S - \frac{\beta I S}{N} \\[8pt]
\frac{dE}{dt} & = \frac{\beta I S}{N} - (\mu + a ) E \\[8pt]
\frac{dI}{dt} & = a E - (\gamma +\mu ) I \\[8pt]
\frac{dR}{dt} & = \gamma I - \mu R.
\end{align}
</math>
We have <math>S+E+I+R=N,</math> but this is only constant because of the simplifying assumption that birth and death rates are equal; in general <math>N</math> is a variable.
For this model, the basic reproduction number is:
:<math>R_0 = \frac{a}{\mu+a}\frac{\beta}{\mu+\gamma}.</math>
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 from biologically meaningful initial conditions
:<math> \left(S(0),E(0),I(0),R(0)\right) \in \left\{(S,E,I,R)\in [0,N]^4 : S \ge 0, E \ge 0, I\ge 0, R\ge 0, S+E+I+R = N \right\} </math>
it holds that:
:<math> R_0 \le 1 \Rightarrow \lim_{t \to +\infty} \left(S(t),E(t),I(t),R(t)\right) = DFE = (N,0,0,0),</math>
:<math> R_0 > 1 , I(0)> 0 \Rightarrow \lim_{t \to +\infty} \left(S(t),E(t),I(t),R(t)\right) = EE. </math>
In case of periodically varying contact rate <math>\beta(t)</math> the condition for the global attractiveness of DFE is that the following linear system with periodic coefficients:
: <math>
\begin{align}
\frac{dE_1}{dt} & = \beta(t) I_1 - (\gamma +a ) E_1 \\[8pt]
\frac{dI_1}{dt} & = a E_1 - (\gamma +\mu ) I_1
\end{align}
</math>
is stable (i.e. it has its Floquet's eigenvalues inside the unit circle in the complex plane).
SEIS model
The SEIS model is like the SEIR model (above) except that no immunity is acquired at the end.
:::<math>{\color{blue}{\mathcal{S} \to \mathcal{E} \to \mathcal{I} \to \mathcal{S}</math>
In this model an infection does not leave any immunity thus individuals that have recovered return to being susceptible, moving back into the S(t) compartment. The following differential equations describe this model:
::<math>
\begin{align}
\frac{dS}{dt} & = \Lambda - \frac{\beta SI}{N} - \mu S + \gamma I \\[6pt]
\frac{dE}{dt} & = \frac{\beta SI}{N} - (\epsilon + \mu)E \\[6pt]
\frac{dI}{dt} & = \varepsilon E - (\gamma + \mu)I
\end{align}
</math>
MSEIR model
For the case of a disease, with the factors of passive immunity, and a latency period there is the MSEIR model.
:::<math> \color{blue}{\mathcal{M} \to \mathcal{S} \to \mathcal{E} \to \mathcal{I} \to \mathcal{R </math>
::<math>
\begin{align}
\frac{dM}{dt} & = \Lambda - \delta M - \mu M \\[6pt]
\frac{dS}{dt} & = \delta M - \frac{\beta SI}{N} - \mu S \\[6pt]
\frac{dE}{dt} & = \frac{\beta SI}{N} - (\varepsilon + \mu)E \\[6pt]
\frac{dI}{dt} & = \varepsilon E - (\gamma + \mu)I \\[6pt]
\frac{dR}{dt} & = \gamma I - \mu R
\end{align}
</math>
MSEIRS model
An MSEIRS model is similar to the MSEIR, but the immunity in the R class would be temporary, so that individuals would regain their susceptibility when the temporary immunity ended.
:::<math>{\color{blue}{\mathcal{M} \to \mathcal{S} \to \mathcal{E} \to \mathcal{I} \to \mathcal{R} \to \mathcal{S}</math>
More complex general models
When developing more detailed models for in-depth analysis, models are mostly generated for specific outbreak scenarios of specific diseases, including compartments for targeted research questions like hospitalization compartments or detection dynamics. Even though those models are often tailored for specific situations, there are complex models, still usable for a broad variety of different diseases. One of those attempts to create a general model includes twelve compartments, extending the well-known SEIR model by a second stage of infection, detection compartments, and two doses of vaccination. Additionally smear infections are incorporated via an external Pathogen <math>P</math> and a simplistic vector population is included by <math>S_V</math> and <math>I_V</math>. Moreover population dynamics like birth and death processes can be included. Such complex models enable a deeper understanding of infection dynamics and the introduction of different pharmaceutical and non-pharmaceutical interventions.
Variable contact rates
It is well known that the probability of getting a disease is not constant in time. As a pandemic progresses, reactions to the pandemic may change the contact rates which are assumed constant in the simpler models. Counter-measures such as masks, social distancing, and lockdown will alter the contact rate in a way to reduce the speed of the pandemic.
In addition, 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
:<math> F = \beta(t) \frac{I}{N} , \quad \beta(t+T)=\beta(t)</math>
with period T equal to one year.
Thus, our model becomes
:<math>
\begin{align}
\frac{dS}{dt} & = \mu N - \mu S - \beta(t) \frac{I}{N} S \\[8pt]
\frac{dI}{dt} & = \beta(t) \frac{I}{N} S - (\gamma +\mu ) I
\end{align}
</math>
(the dynamics of recovered easily follows from <math>R=N-S-I</math>), 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:
:<math>\frac 1 T \int_0^T \frac{\beta(t)}{\mu+\gamma} \, dt < 1 \Rightarrow \lim_{t \to +\infty} (S(t),I(t)) = DFE = (N,0), </math>
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.
SIR model with diffusion
Spatiotemporal compartmental models describe not the total number, but the density of susceptible/infective/recovered persons. Consequently, they also allow to model the distribution of infected persons in space. In most cases, this is done by combining the SIR model with a diffusion equation
:<math>
\begin{align}
& \partial_t S = D_S \nabla^2 S - \frac{\beta I S}{N}, \\[6pt]
& \partial_t I = D_I \nabla^2 I + \frac{\beta I S}{N}- \gamma I, \\[6pt]
& \partial_t R = D_R \nabla^2 R + \gamma I,
\end{align}
</math>
where <math>D_S</math>, <math>D_I</math> and <math>D_R</math> are diffusion constants. Thereby, one obtains a reaction-diffusion equation. (Note that, for dimensional reasons, the parameter <math>\beta</math> has to be changed compared to the simple SIR model.) Early models of this type have been used to model the spread of the black death in Europe. Extensions of this model have been used to incorporate, e.g., effects of nonpharmaceutical interventions such as social distancing.
Interacting Subpopulation SEIR Model
As social contacts, disease severity and lethality, as well as the efficacy of prophylactic measures may differ substantially between interacting subpopulations, e.g., the elderly versus the young, separate SEIR models for each subgroup may be used that are mutually connected through interaction links. that promise a shortening of the pandemic and a reduction of case and death counts in the setting of limited access to vaccines during a wave of virus Variants of Concern.
SIR Model on Networks
The SIR model has been studied on networks of various kinds in order to model a more realistic form of connection than the homogeneous mixing condition which is usually required. A simple model for epidemics on networks in which an individual has a probability p of being infected by each of his infected neighbors in a given time step leads to results similar to giant component formation on Erdos Renyi random graphs.
[[File:SIR NumericalExample.png|thumb|right|An example of using the numerical SIR model to fit the COVID-19 data (from U.S. CDC) in the state of Ohio, U.S.A. <math>R_t</math> fitted using the SIR and the SIRV model are both shown. Note that although the SIR model can model an individual wave, a more complex model like SIR<sub>SS</sub> would better model multiple waves.
KdV-SIR equation
Based on the classical SIR model, a Korteweg-de Vries (KdV)–SIR equation and its analytical solution have been proposed to illustrate the fundamental dynamics of an epidemic wave, the dependence of solutions on parameters, and the dependence of predictability horizons on various types of solutions. The KdV-SIR equation is written as follows:
<math>\frac{d^2I}{dt} -\sigma_o^2 I + \frac{3}{2} \frac{\sigma_o^2} {I_{max I^2 = 0 </math>.
Here,
<math>\sigma_o = \gamma (R_o -1) </math>,
<math>R_o = \frac{\beta}{\gamma} \frac{S_o}{N} </math>,
and
<math>I_{max}=\frac{S_o}{2}\frac{(R_o-1)^2}{R_o^2} </math>.
<math>S_o</math> indicates the initial value of the state variable <math>S</math>. Parameters <math>\sigma_o</math>(σ-naught) and <math>R_o</math> (R-naught) are the time-independent relative growth rate and basic reproduction number, respectively. <math>I_{max}</math> presents the maximum of the state variables <math>I</math>(for the number of infected persons). The KdV-SIR equation shares the same form as the Korteweg–De Vries equation in the traveling wave coordinate. An analytical solution to the KdV-SIR equation is written as follows:
<math>I=I_{max}sech^2 \left( \frac{\sigma_o}{2}t \right) </math>,
which represents a solitary wave solution.
Heterogeneous (structured, Bayesian) model
Modeling a full population of possibly millions people using two constants <math>\beta</math> and <math>\gamma</math> seem far fetched; each individual has personal characteristics that influence the propagation : immunity status, contact habits and so on. So it is interesting to know what happens if, for instance, <math>\beta</math> and <math>\gamma</math> are not two constants but some random variables (a pair for each individual). This procedure has several names : "heterogeneous model", "structuration" (see also below for age structured models) or "Bayesian" view. Surprising results emerge, for instance it was proved in Typically these introduce an additional compartment to the SIR model, <math>V</math>, for vaccinated individuals. Below are some examples.
Vaccinating newborns
In presence of a communicable diseases, one of the main tasks is that of eradicating it via prevention measures and, if possible, via the establishment of a mass vaccination program. Consider a disease for which the newborn are vaccinated (with a vaccine giving lifelong immunity) at a rate <math>P \in (0,1)</math>:
:<math>
\begin{align}
\frac{dS}{dt} & = \nu N (1-P) - \mu S - \beta \frac{I}{N} S \\[8pt]
\frac{dI}{dt} & = \beta \frac{I}{N} S - (\mu+\gamma) I \\[8pt]
\frac{dV}{dt} & = \nu N P - \mu V
\end{align}
</math>
where <math>V</math> is the class of vaccinated subjects. It is immediate to show that:
:<math> \lim_{t \to +\infty} V(t)= N P,</math>
thus we shall deal with the long term behavior of <math>S</math> and <math>I</math>, for which it holds that:
:<math> R_0 (1-P) \le 1 \Rightarrow \lim_{t \to +\infty} \left(S(t),I(t)\right) = DFE = \left(N \left(1-P\right),0\right) </math>
:<math> R_0 (1-P) > 1 , \quad I(0)> 0 \Rightarrow \lim_{t \to +\infty} \left(S(t),I(t)\right) = EE = \left(\frac{N}{R_0(1-P)},N \left(R_0 (1-P)-1\right)\right). </math>
In other words, if
:<math> P < P^{*}= 1-\frac{1}{R_0} </math>
the vaccination program is not 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 vaccinate at least 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:
:<math> P=P(I), \quad P'(I)>0.</math>
In such a case the eradication condition becomes:
:<math> P(0) \ge P^{*},</math>
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 newborns at a rate ρ the equation for the susceptible and vaccinated subject has to be modified as follows:
:<math>
\begin{align}
\frac{dS}{dt} & = \mu N (1-P) - \mu S - \rho S - \beta \frac{I}{N} S \\[8pt]
\frac{dV}{dt} & = \mu N P + \rho S - \mu V
\end{align}
</math>
leading to the following eradication condition:
:<math> P \ge 1- \left(1+\frac{\rho}{\mu}\right)\frac{1}{R_0} </math>
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:
:<math>
\begin{align}
\frac{dS}{dt} & = \mu N - \mu S - \beta \frac{I}{N} S, \quad S(n T^+) = (1-p) S(n T^-), & & n=0,1,2,\ldots \\[8pt]
\frac{dV}{dt} & = - \mu V, \quad V(n T^+) = V(n T^-) + p S(n T^-), & & n=0,1,2,\ldots
\end{align}
</math>
It is easy to see that by setting one obtains that the dynamics of the susceptible subjects is given by:
:<math> S^*(t) = 1- \frac{p}{1-(1-p)E^{-\mu T E^{-\mu MOD(t,T)} </math>
and that the eradication condition is:
:<math> R_0 \int_0^T S^*(t) \, dt < 1 </math>
Vaccination games
A huge literature recognizes that the vaccination can be seen as a game: in a population where everybody is vaccinated any epidemic will die off immediately so an additional person will have no interest to vaccinate at all. On the contrary, a person arriving in a population where nobody is vaccinated will have all incentives to vaccinate (the epidemic will break loose in such a population). So, it seems that the individual has interest to do the opposite of the population as a whole. But the population is the sum of all individuals, and the previous affirmation should be false. So, in fact, a Nash equilibrium is reached. Technical tools to treat such situations involve game theory or modern tools such as Mean-field game theory.
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 <math>s(t,a),i(t,a),r(t,a)</math> (to limit ourselves to the susceptible-infectious-removed scheme) such that:
:<math>S(t)=\int_0^{a_M} s(t,a)\,da </math>
:<math>I(t)=\int_0^{a_M} i(t,a)\,da</math>
:<math>R(t)=\int_0^{a_M} r(t,a)\,da</math>
(where <math>a_M \le +\infty</math> 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:
:<math>\partial_t s(t,a) + \partial_a s(t,a) = -\mu(a) s(a,t) - s(a,t)\int_0^{a_M} k(a,a_1;t)i(a_1,t)\,da_1 </math>
:<math>\partial_t i(t,a) + \partial_a i(t,a) = s(a,t)\int_{0}^{a_M}{k(a,a_1;t)i(a_1,t)da_1} -\mu(a) i(a,t) - \gamma(a)i(a,t) </math>
:<math>\partial_t r(t,a) + \partial_a r(t,a) = -\mu(a) r(a,t) + \gamma(a)i(a,t) </math>
where:
:<math>F(a,t,i(\cdot,\cdot))=\int_0^{a_M} k(a,a_1;t)i(a_1,t) \, da_1 </math>
is the force of infection, which, of course, will depend, though the contact kernel <math> k(a,a_1;t) </math> 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:
:<math>i(t,0)=r(t,0)=0</math>
but that are nonlocal for the density of susceptible newborns:
:<math>s(t,0)= \int_0^{a_M} \left(\varphi_s(a) s(a,t)+\varphi_i(a) i(a,t)+\varphi_r(a) r(a,t)\right) \, da </math>
where <math>\varphi_j(a), j=s,i,r</math> are the fertilities of the adults.
Moreover, defining now the density of the total population <math>n(t,a)=s(t,a)+i(t,a)+r(t,a)</math> one obtains:
:<math>\partial_t n(t,a) + \partial_a n(t,a) = -\mu(a) n(a,t) </math>
In the simplest case of equal fertilities in the three epidemic classes, we have that in order to have demographic equilibrium the following necessary and sufficient condition linking the fertility <math>\varphi(.)</math> with the mortality <math>\mu(a)</math> must hold:
:<math> 1 = \int_0^{a_M} \varphi(a) \exp\left(- \int_0^a{\mu(q)dq} \right) \, da </math>
and the demographic equilibrium is
:<math>n^*(a)=C \exp\left(- \int_0^a \mu(q) \, dq \right),</math>
automatically ensuring the existence of the disease-free solution:
:<math>DFS(a)= (n^*(a),0,0).</math>
A basic reproduction number can be calculated as the spectral radius of an appropriate functional operator.
Next-generation method
One way to calculate <math>R_0
</math> is to average the expected number of new infections over all possible infected types. The next-generation method is a general method of deriving <math>R_0
</math> when more than one class of infectives is involved. This method, originally introduced by Diekmann et al. (1990), can be used for models with underlying age structure or spatial structure, among other possibilities. In this picture, the spectral radius of the next-generation matrix <math>G
</math> gives the basic reproduction number, <math>R_0 = \rho(G).
</math>
Consider a sexually transmitted disease. In a naive population where almost everyone is susceptible, but the infection seed, if the expected number of gender 1 is <math>f
</math> and the expected number of infected gender 2 is <math>m
</math>, we can know how many would be infected in the next-generation. Such that the next-generation matrix <math>G
</math> can be written as:<math display="block">G = \begin{pmatrix} 0 & f \\ m & 0 \end{pmatrix},
</math>where each element <math>g_{ij}
</math> is the expected number of secondary infections of gender <math>i
</math> caused by a single infected individual of gender <math>j
</math>, assuming that the population of gender <math>i
</math> is entirely susceptible. Diagonal elements are zero because people of the same gender cannot transmit the disease to each other but, for example, each <math>f
</math> can transmit the disease to <math>m
</math>, on average. Meaning that each element <math>g_{ij}
</math> is a reproduction number, but one where who infects whom is accounted for. If generation <math>a
</math> is represented with <math>\phi_a
</math> then the next generation <math>\phi_{a+1}
</math> would be <math>G\phi_a
</math>.
The spectral radius of the next-generation matrix is the basic reproduction number, <math>R_0 = \rho(G) = \sqrt{mf}</math>, that is here, the geometric mean of the expected number of each gender in the next-generation. Note that multiplication factors <math>f
</math> and <math>m
</math> alternate because, the infectious person has to 'pass through' a second gender before it can enter a new host of the first gender. In other words, it takes two generations to get back to the same type, and every two generations numbers are multiplied by <math>m
</math>×<math>f
</math>. The average per generation multiplication factor is therefore <math>\sqrt{mf}
</math>. Note that <math>G
</math> is a non-negative matrix so it has single, unique, positive, real eigenvalue which is strictly greater than all the others.
Next-generation matrix for compartmental models
In mathematical modelling of infectious disease, the dynamics of spreading is usually described through a set of non-linear ordinary differential equations (ODE). So there is always <math>n
</math> coupled equations of form <math>\dot{C_i}={\operatorname{d}\!C_i\over\operatorname{d}\!t} = f(C_1, C_2, ..., C_n)</math> which shows how the number of people in compartment <math>C_i</math> changes over time. For example, in a SIR model, <math>C_1 = S</math>, <math>C_2 = I
</math>, and <math>C_3 = R
</math>. Compartmental models have a disease-free equilibrium (DFE) meaning that it is possible to find an equilibrium while setting the number of infected people to zero, <math>I=0
</math>. In other words, as a rule, there is an infection-free steady state. This solution, also usually ensures that the disease-free equilibrium is also an equilibrium of the system. There is another fixed point known as an Endemic Equilibrium (EE) where the disease is not totally eradicated and remains in the population. Mathematically, <math>R_0
</math> is a threshold for stability of a disease-free equilibrium such that:
: <math> R_0 \le 1 \Rightarrow \lim_{t \to \infty} (C_1(t),C_2(t),\cdots, C_n(t)) = \textrm{DFE} </math>
: <math> R_0 > 1 , I(0)> 0 \Rightarrow \lim_{t \to \infty} (C_1(t),C_2(t),\cdots, C_n(t)) = \textrm{EE}. </math>
To calculate <math>R_0
</math>, the first step is to linearise around the disease-free equilibrium (DFE), but for the infected subsystem of non-linear ODEs which describe the production of new infections and changes in state among infected individuals. Epidemiologically, the linearisation reflects that <math>R_0
</math> characterizes the potential for initial spread of an infectious person in a naive population, assuming the change in the susceptible population is negligible during the initial spread. A linear system of ODEs can always be described by a matrix. So, the next step is to construct a linear positive operator that provides the next generation of infected people when applied to the present generation. Note that this operator (matrix) is responsible for the number of infected people, not all the compartments. Iteration of this operator describes the initial progression of infection within the heterogeneous population. So comparing the spectral radius of this operator to unity determines whether the generations of infected people grow or not. <math>R_0
</math> can be written as a product of the infection rate near the disease-free equilibrium and average duration of infectiousness. It is used to find the peak and final size of an epidemic.
The SEIR model with vital dynamics and constant population
As described in the example above, so many epidemic processes can be described with a SIR model. However, for many important infections, such as COVID-19, there is a significant latency period during which individuals have been infected but are not yet infectious themselves. During this period the individual is in compartment E (for exposed). Here, the formation of the next-generation matrix from the SEIR model involves determining two compartments, infected and non-infected, since they are the populations that spread the infection. So we only need to model the exposed, E, and infected, I, compartments. Consider a population characterized by a death rate <math>\mu</math> and birth rate <math>\lambda
</math> where a communicable disease is spreading. As in the previous example, we can use the transition rates between the compartments per capita such that <math>\beta</math> be the infection rate, <math>\gamma</math> be the recovery rate, and <math>\kappa</math> be the rate at which a latent individual becomes infectious. Then, we can define the model dynamics using the following equations:
<math display="block">\begin{cases} \dot{S} = \lambda - \mu S - \beta SI, \\\\ \dot{E} = \beta SI - (\mu+\kappa)E, \\\\ \dot{I} = \kappa E - (\mu+\gamma)I, \\\\ \dot{R} = \gamma I - \mu R. \end{cases}
</math>Here we have 4 compartments and we can define vector <math>\mathrm{x} = (S, E, I, R)
</math> where <math>\mathrm{x}_i
</math> denotes the number or proportion of individuals in the <math>i
</math>-th compartment. Let <math>F_i(\mathrm{x})
</math> be the rate of appearance of new infections in compartment <math>i
</math> such that it includes only infections that are newly arising, but does not include terms which describe the transfer of infectious individuals from one infected compartment to another. Then if <math>V_i^+
</math> is the rate of transfer of individuals into compartment <math>i
</math> by all other means and <math>V_i^-
</math> is the rate of transfer of individuals out of the <math>i
</math>-th compartment, then the difference <math>F_i(\mathrm{x}) - V_i(\mathrm{x})
</math> gives the rate of change of such that <math>V_i(\mathrm{x}) = V_i^-(\mathrm{x}) - V_i^+
(\mathrm{x})
</math>.
We can now make matrices of partial derivatives of <math>F
</math> and <math>V
</math> such that
<math>F_{ij} = {\partial\! \ F_i(\mathrm{x}^*)\over\partial \! \ \mathrm{x}_j}
</math> and <math>V_{ij} = {\partial\! \ V_i(\mathrm{x}^*)\over\partial \! \ \mathrm{x}_j}
</math> , where <math>\mathrm{x}^* = (S^*, E^*, I^*, R^*) = (\lambda/\mu, 0, 0, 0)
</math> is the disease-free equilibrium.
We now can form the next-generation matrix (operator) <math>G = FV^{-1}
</math>. During an epidemic, typically the number of diagnosed infections <math>N(t)</math> over time <math>t</math> is known. In the early stages of an epidemic, growth is exponential, with a logarithmic growth rate
<math display="block">K := \frac{d\ln(N)}{dt}.</math>
For exponential growth, <math>N</math> can be interpreted as the cumulative number of diagnoses (including individuals who have recovered) or the present number of infection cases; the logarithmic growth rate is the same for either definition. In order to estimate <math>R_0</math>, assumptions are necessary about the time delay between infection and diagnosis and the time between infection and starting to be infectious.
In exponential growth, <math>K</math> is related to the doubling time <math>T_d</math> as<math display="block">K=\frac{\ln(2)}{T_d}.</math>
Simple model
If an individual, after getting infected, infects exactly <math>R_0</math> new individuals only after exactly a time <math>\tau</math> (the serial interval) has passed, then the number of infectious individuals over time grows as<math display="block">n_E(t) = n_E(0)\, R_0^{t/\tau} = n_E(0)\,e^{Kt}</math>or<math display="block">\ln(n_E(t)) = \ln(n_E(0))+\ln(R_0)t/\tau.</math>The underlying matching differential equation is<math display="block">\frac{dn_E(t)}{dt} =n_E(t)\frac {\ln(R_0)}{\tau}.</math>or<math display="block">\frac{d\ln(n_E(t))}{dt} =\frac {\ln(R_0)}{\tau}.</math>In this case, <math>R_0 = e^{K \tau}</math> or <math>K = \frac{\ln R_0}{\tau}</math>.
For example, with <math>\tau=5~\mathrm{d}</math> and <math>K=0.183~\mathrm{d}^{-1}</math>, we would find <math>R_0=2.5</math>.
If <math>R_0</math> is time dependent
<math display="block">\ln(n_E(t)) = \ln(n_E(0))+\frac{1}{\tau}\int\limits_{0}^{t}\ln(R_0(t))dt</math>
showing that it may be important to keep <math>\ln(R_0)</math> below 0, time-averaged, to avoid exponential growth.
Latent infectious period, isolation after diagnosis
In this model, an individual infection has the following stages:
- Exposed: an individual is infected, but has no symptoms and does not yet infect others. The average duration of the exposed state is <math>\tau_E</math>.
- Latent infectious: an individual is infected, has no symptoms, but does infect others. The average duration of the latent infectious state is <math>\tau_I</math>. The individual infects <math>R_0</math> other individuals during this period.
- Isolation after diagnosis: measures are taken to prevent further infections, for example by isolating the infected person.
This is a SEIR model and <math>R_0</math> may be written in the following form
<math display="block">R_0 = 1 + K(\tau_E+\tau_I) + K^2\tau_E\tau_I.</math>
This estimation method has been applied to COVID-19 and SARS. It follows from the differential equation for the number of exposed individuals <math>n_E</math> and the number of latent infectious individuals <math>n_I</math>,<math display="block">\frac{d}{dt} \begin{pmatrix} n_E \\ n_I \end{pmatrix} = \begin{pmatrix} -1/\tau_E & R_0/\tau_I \\ 1/\tau_E & -1/\tau_I \end{pmatrix} \begin{pmatrix} n_E \\ n_I \end{pmatrix}.</math>The largest eigenvalue of the matrix is the logarithmic growth rate <math>K</math>, which can be solved for <math>R_0</math>.
In the special case <math>\tau_I = 0</math>, this model results in <math>R_0=1+K\tau_E</math>, which is different from the simple model above (<math>R_0=\exp(K\tau_E)</math>). For example, with the same values <math>\tau=5~\mathrm{d}</math> and <math>K=0.183~\mathrm{d}^{-1}</math>, we would find <math>R_0=1.9</math>, rather than the true value of <math>2.5</math>. The difference is due to a subtle difference in the underlying growth model; the matrix equation above assumes that newly infected patients are currently already contributing to infections, while in fact infections only occur due to the number infected at <math>\tau_E</math> ago. A more correct treatment would require the use of delay differential equations.
Latent period is the transition time between contagion event and disease manifestation. In cases of diseases with varying latent periods, the basic reproduction number can be calculated as the sum of the reproduction numbers for each transition time into the disease. An example of this is tuberculosis (TB). Blower and coauthors calculated from a simple model of TB the following reproduction number:<math display="block">R_0 = R_0^{\text{FAST + R_0^{\text{SLOW</math>In their model, it is assumed that the infected individuals can develop active TB by either direct progression (the disease develops immediately after infection) considered above as FAST tuberculosis or endogenous reactivation (the disease develops years after the infection) considered above as SLOW tuberculosis.
Other considerations within compartmental epidemic models
Vertical transmission
In the case of some diseases such as AIDS and hepatitis B, it is possible for the offspring of infected parents to be born infected. This transmission of the disease down from the mother is referred to as vertical transmission. The influx of additional members into the infected category can be considered within the model by including a fraction of the newborn members in the infected compartment.
Vector transmission
Diseases transmitted from human to human indirectly, i.e. malaria spread by way of mosquitoes, are transmitted through a vector. In these cases, the infection transfers from human to insect and an epidemic model must include both species, generally requiring many more compartments than a model for direct transmission.
Others
Other occurrences which may need to be considered when modeling an epidemic include things such as the following: These models are only valid in the thermodynamic limit, where the population is effectively infinite. In stochastic models, the long-time endemic equilibrium derived above, does not hold, as there is a finite probability that the number of infected individuals drops below one in a system. In a true system then, the pathogen may not propagate, as no host will be infected. But, in deterministic mean-field models, the number of infected can take on real, namely, non-integer values of infected hosts, and the number of hosts in the model can be less than one, but more than zero, thereby allowing the pathogen in the model to propagate. The reliability of compartmental models is limited to compartmental applications.
One of the possible extensions of mean-field models considers the spreading of epidemics on a network based on percolation theory concepts. Stochastic epidemic models have been studied on different networks and more recently applied to the COVID-19 pandemic.
See also
- Attack rate
- Basic reproduction number
- Flatten the curve
- List of COVID-19 simulation models
- Mathematical modelling in epidemiology
- Modifiable areal unit problem
- Next-generation matrix
- Risk assessment
References
Further reading
External links
- SIR model: Online experiments with JSXGraph
