Algorithm Search⌘K

Modelcore

SEIR epidemic model

Also called susceptible-exposed-infectious-recovered model.

An SIR model with an exposed class of individuals who are infected but not yet infectious, for diseases with a latent period.

The SEIR epidemic model adds to the Kermack-McKendrick SIR model an exposed class E of individuals who are infected but cannot yet transmit. It is the standard model for diseases with a clear latent period, such as measles, chickenpox and influenza. The latent period does not change the basic reproduction number when there are no deaths during it, and it does not change the final size of an epidemic in a closed population. It does slow the growth of the epidemic, because each generation of cases takes longer. With births and deaths, the model has an endemic equilibrium, and the approach to it shows damped oscillations with a period of a few years, the classical explanation of recurrent childhood epidemics. Like the Kermack-McKendrick model, it assumes a well-mixed population; the SIR model on networks puts the same states on the nodes of a contact graph instead.

The machine

State. The numbers SS, EE, II and RR of susceptible, exposed, infectious and recovered individuals, with S+E+I+R=NS + E + I + R = N.

Parameters. The transmission rate β\beta, the rate σ\sigma at which exposed individuals become infectious (the mean latent period is 1/σ1/\sigma), the recovery rate γ\gamma (the mean infectious period is 1/γ1/\gamma), and an optional birth and death rate μ\mu. With μ>0\mu > 0, births enter S at the rate μN\mu N and each class loses individuals at the per capita rate μ\mu, so NN stays constant.

Equations.

dSdt=μN−βSIN−μS,dEdt=βSIN−(σ+μ)E,dIdt=σE−(γ+μ)I,dRdt=γI−μR.\begin{aligned} \frac{dS}{dt} &= \mu N - \frac{\beta S I}{N} - \mu S, \\ \frac{dE}{dt} &= \frac{\beta S I}{N} - (\sigma + \mu) E, \\ \frac{dI}{dt} &= \sigma E - (\gamma + \mu) I, \\ \frac{dR}{dt} &= \gamma I - \mu R . \end{aligned}

Only infectious individuals transmit, and a new infection enters E, not I. With μ=0\mu = 0 this is the closed epidemic model. The stochastic reading is the continuous-time Markov chain with the same rates, one event per individual transfer.

Assumptions. Homogeneous mixing, frequency-dependent transmission, exponential latent and infectious periods, and lasting immunity.

What it counts

The basic reproduction number. Use the next-generation matrix with the infected classes x=(E,I)x = (E, I) at the disease-free state S=NS = N. New infections appear only in E, at the rate βI\beta I, and all other flows go into VV:

F=(0β00),V=(σ+μ0−σγ+μ),FV−1=(βσ(σ+μ)(γ+μ)βγ+μ00).F = \begin{pmatrix} 0 & \beta \\ 0 & 0 \end{pmatrix}, \qquad V = \begin{pmatrix} \sigma + \mu & 0 \\ -\sigma & \gamma + \mu \end{pmatrix}, \qquad F V^{-1} = \begin{pmatrix} \dfrac{\beta \sigma}{(\sigma + \mu)(\gamma + \mu)} & \dfrac{\beta}{\gamma + \mu} \\ 0 & 0 \end{pmatrix}.

The matrix is triangular, so its spectral radius is its top left entry:

R0=βσ(σ+μ)(γ+μ).R_0 = \frac{\beta \sigma}{(\sigma + \mu)(\gamma + \mu)} .

The factor σ/(σ+μ)\sigma / (\sigma + \mu) is the probability that an exposed individual lives to become infectious, and β/(γ+μ)\beta / (\gamma + \mu) is the expected number of infections it then causes. With μ=0\mu = 0, R0=β/γR_0 = \beta / \gamma, the same as for SIR.

The growth rate. Without births, the linearization of (E,I)(E, I) at the disease-free state has the growth rate rr that solves (r+σ)(r+γ)=βσ(r + \sigma)(r + \gamma) = \beta \sigma, so

R0=(1+rσ)(1+rγ).R_0 = \left( 1 + \frac{r}{\sigma} \right) \left( 1 + \frac{r}{\gamma} \right).

For SIR the relation is R0=1+r/γR_0 = 1 + r / \gamma, so if you fit SIR equations to an SEIR disease, you get an R0R_0 that is too small. The mean generation interval is 1/σ+1/γ1/\sigma + 1/\gamma.

A hand example. Take β=0.4\beta = 0.4 and γ=0.2\gamma = 0.2 per day, so R0=2R_0 = 2 for every σ\sigma. Solve the quadratic r2+(σ+γ)r+σγ−βσ=0r^2 + (\sigma + \gamma) r + \sigma \gamma - \beta \sigma = 0:

mean latent period 1/σ1/\sigma rr per day doubling time check (1+r/σ)(1+r/γ)(1 + r/\sigma)(1 + r/\gamma)
5 days 0.0828 8.4 days 2.000
2 days 0.1217 5.7 days 2.000
1 day 0.1483 4.7 days 2.000
none (SIR) 0.2000 3.5 days 1+r/γ=21 + r/\gamma = 2

For 1/σ=51/\sigma = 5 days, (r+0.2)2=0.08(r + 0.2)^2 = 0.08, so r=0.08−0.2≈0.0828r = \sqrt{0.08} - 0.2 \approx 0.0828.

Relation to other models

  • SIR. The limit σ→∞\sigma \to \infty, an instant latent period. The final size and R0R_0 without births are the same as for SIR, but the time course is slower.
  • Stage splitting. Split E into kk stages, each left at rate kσk \sigma, to make the latent period Erlang distributed with the same mean and a smaller variance (see the compartmental epidemic model). The same trick applies to I.
  • SEIRS, MSEIR. Waning immunity returns R to S; a class M of infants protected by maternal antibodies comes before S (Hethcote 2000).
  • The general Kermack-McKendrick model. The 1927 model with an infectivity A(τ)A(\tau) that depends on the time since infection contains SEIR as the case where A(τ)A(\tau) is β\beta times the probability of being in I at time τ\tau.
  • Stochastic SEIR. The Markov chain with the same rates, simulated with the Gillespie algorithm. Its early phase is a branching process with two types, E and I, and the extinction probability depends on whether the first case is exposed or infectious.
  • SIR model on networks. States on the nodes of a contact graph instead of class counts in a well-mixed population. The final size there depends on the graph, not only on R0R_0.

Known results in the model

Final size without births. With μ=0\mu = 0, the fraction zz of the population ever infected, for an epidemic that starts from a very small number of cases, solves the same final size relation as SIR:

z=1−e−R0z.z = 1 - e^{-R_0 z}.

The proof is the same as for SIR: dln⁡S/dt=−βI/Nd \ln S / dt = -\beta I / N and dR/dt=γIdR/dt = \gamma I, so ln⁡S\ln S and RR change in a fixed ratio, and at the end all of E and I have moved to R. Ma and Earn (2006) show that the formula holds for any number of latent and infectious stages. For R0=2R_0 = 2, z≈0.797z \approx 0.797.

The endemic equilibrium. With μ>0\mu > 0 and R0>1R_0 > 1, there is one endemic equilibrium, with fractions

s∗=1R0,i∗=μ(R0−1)β,e∗=(γ+μ) i∗σ,r∗=1−s∗−e∗−i∗.s^* = \frac{1}{R_0}, \qquad i^* = \frac{\mu (R_0 - 1)}{\beta}, \qquad e^* = \frac{(\gamma + \mu)\, i^*}{\sigma}, \qquad r^* = 1 - s^* - e^* - i^* .

To derive s∗s^*, set dE/dt=dI/dt=0dE/dt = dI/dt = 0: then βs∗=(σ+μ)(γ+μ)/σ\beta s^* = (\sigma + \mu)(\gamma + \mu)/\sigma, so s∗=1/R0s^* = 1/R_0. Then dS/dt=0dS/dt = 0 gives μ(1−s∗)=βs∗i∗\mu (1 - s^*) = \beta s^* i^*. For R0≤1R_0 \le 1, the only equilibrium is the disease-free one, and it is stable.

Damped oscillations. At the endemic equilibrium, the linearization has one fast real eigenvalue and a complex pair with a small negative real part, so the system returns to the equilibrium in slow, damped oscillations. Take numbers like measles: a life span of 70 years (μ=1/25550\mu = 1/25550 per day), a latent period of 8 days, an infectious period of 5 days and R0=15R_0 = 15, which gives β≈3.0015\beta \approx 3.0015 per day. Then s∗=1/15s^* = 1/15, e∗≈2.92×10−4e^* \approx 2.92 \times 10^{-4}, i∗≈1.83×10−4i^* \approx 1.83 \times 10^{-4}, and the eigenvalues of the reduced system in (s,e,i)(s, e, i) are about −0.3252-0.3252 and −0.000229±0.006488i-0.000229 \pm 0.006488 i per day. The period of the oscillation is 2π/0.006488≈9682\pi / 0.006488 \approx 968 days, about 2.65 years. The approximation

T≈2πAG,T \approx 2 \pi \sqrt{A G},

with the mean age at infection A≈1/(μ(R0−1))=70/14=5A \approx 1 / (\mu (R_0 - 1)) = 70/14 = 5 years and G=1/σ+1/γ=13G = 1/\sigma + 1/\gamma = 13 days, gives 2π5⋅365⋅13≈9682\pi \sqrt{5 \cdot 365 \cdot 13} \approx 968 days. The damping time is 1/0.000229≈44001/0.000229 \approx 4400 days, about 12 years. In the deterministic model the oscillations die out; in real populations, seasonal changes in contact rates and chance events keep them going.

The mean age at infection. At the endemic equilibrium, a susceptible individual is infected at the rate βi∗=μ(R0−1)\beta i^* = \mu (R_0 - 1), so the mean age at infection is about 1/(μ(R0−1))1 / (\mu (R_0 - 1)), which is about L/(R0−1)L / (R_0 - 1) for a life expectancy LL. With L=70L = 70 years and R0=15R_0 = 15 it is 5 years. Vaccination lowers the effective R0R_0 and so raises the mean age at infection.

Numerical note. With births, the time scales differ by a factor of more than 1000 (a fast eigenvalue of about −0.33-0.33 per day against a slow one of about −0.0002-0.0002 per day). An explicit method such as the classical Runge-Kutta method with a step of a fraction of a day is still stable and accurate, but runs over decades need many steps. An implicit method for a stiff problem allows larger steps.

References

  1. Herbert W. Hethcote, The mathematics of infectious diseases, SIAM Review 42(4), 2000, pages 599 to 653 (the SEIR and MSEIR models with births and deaths, their threshold quantities and endemic equilibria)
  2. Matt J. Keeling and Pejman Rohani, Modeling Infectious Diseases in Humans and Animals, Princeton University Press, 2008, Section 2.5, Infection with a latent period (the SEIR model), Section 2.1.2.3, oscillatory dynamics, Section 2.1.2.4, the mean age at infection, and Section 3.3.1, SEIR and multi-compartment models
  3. Junling Ma and David J. D. Earn, Generality of the final size formula for an epidemic of a newly invading infectious disease, Bulletin of Mathematical Biology 68(3), 2006, pages 679 to 702 (the final size formula of the SIR model holds also with a latent period and several infectious stages)
  4. Roy M. Anderson and Robert M. May, Infectious Diseases of Humans, Dynamics and Control, Oxford University Press, 1991, Part I, microparasites (models with latent periods, the interepidemic period and the age at infection for measles and other childhood infections)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/MCAZGR/text.yaml