MoI.Rmd
In 1950, George Maccdonald published a model of malaria superinfection (Macdonald G, 1950)1. He was trying to understand how reexposure would affect the prevalence of infection in a population. In particular, if people are continuously becoming reinfected, then how long would it take until a person would clear all of the parasites to become uninfected again? Macdonald described one model, but the mathematical formula he used in the paper didn’t match his description. (Paul Fine’s essay on the problematic formulation of Macdonald’s model for superinfection is highly recommended reading (Fine PEM, 1975)2.)
In 1974, Dietz presented slightly different solution to the problem of clearance with superinfection in a mathematical model developed for the Garki Project (Dietz K, 1974)3; the clearance rate was a function of the force of infection () and the clearance rate ():
Dietz’s function was based on a steady state solution to a model from queuing theory, called .
An elegant solution to the problem of superinfection was proposed by
Nåsell, who developed a hybrid modeling approach (Nåsell, 1985)4. The
random variables approach to the problem was formulated by Henry, et
al., and this hybrid approach figures prominently in
ramp.falciparum.
The following is a demonstration of software in
ramp.falciparum.
Using the software, we show that all three
approaches give identical answers.
Finally, we derive a correct formula for the clearance rate under superinfection.
The model Macdonald described is called . In this model, each new infection increases the MoI by one; the transition rate to a higher MoI is the force of infection (FoI), denoted . Each parasite can clear at some rate, . The following diagram shows how the fraction of the population with a given MoI, denoted , changes over time.
$$\begin{equation} \begin{array}{ccccccccc} \zeta_0 & {h\atop \longrightarrow} \atop {\longleftarrow \atop r} & \zeta_1 & {h\atop \longrightarrow} \atop {\longleftarrow \atop {2r}} & \zeta_2 & {h \atop \longrightarrow} \atop {\longleftarrow \atop {3r}} & \zeta_3 & {h \atop \longrightarrow} \atop {\longleftarrow \atop {4r}}& \ldots \end{array} \end{equation}$$
Changes in the fraction uninfected (MoI=0) are described by:
For those who are infected (with MoI), the dynamics are:
The software in ramp.falciparum
includes functions to set
up and solve the queuing model
While
is an infinite system of differential equations, the function
solveMMinfinity
solves a finite system of differential
equations. The maximum MoI is chosen to be large enough that it doesn’t
affect the results.
MMinf <- solveMMinfty(5/365, foiP3, Amax=1095)
with(MMinf, plot(time, m, type = "l", ylab = expression(m[tau](a)), xlab = "a - cohort age (in days)"))
While the infinite system of differential equations can be formulated and solved numerically, Nåsell showed that the system can be described by a simple equation. Let denote the mean MoI.
He also showed that the distribution of the MoI would converge to a Poisson distribution. If the initial distribution was Poisson, then it would remain Poisson forever.
hybrid = solve_dm(5/365, foiP3, Amax=1095)
with(hybrid, plot(time, m, type = "l", ylab = expression(m[tau](a)), xlab = "a - cohort age (in days)"))
Let denote the density of parasite cohorts of age in a host cohort of age . We assume infections clear at the constant rate . Since infections in are independent, we can track the dynamics for the AoI of all parasite cohorts with the equation,
with the boundary condition We note that the age of the host birth cohort sets an upper limit for the parasite cohort, so . The solution, which describes density of infections of age in a host cohort of age , is given by the formula:
From these equations, we derive random variables describing the MoI, the AoI, and the AoY, noting that the mean MoI is:
In ramp.falciparum,
this is computed with the function
meanMoI
moi = meanMoI(aa, foiP3, hhat=5/365)
plot(aa, moi, type = "l", ylab = expression(m[tau](a)), xlab = "a - cohort age (in days)")
The three give the same answers, up to slight differences introduced by the numerical methods:
c(mean(abs(moi - hybrid$m)) < 1e-9,
mean(abs(MMinf$m- hybrid$m)) < 1e-10,
max(abs(moi - hybrid$m)) < 1e-8,
max(abs(MMinf$m- hybrid$m))< 1e-10)
## [1] TRUE TRUE TRUE TRUE
With all this information at hand, we are now in a position to formulate a model for superinfection.
We note that since is the mean of a Poisson, the prevalence of infection can be computed directly from . It is the complement of the zero term from a Poisson:
It is, nevertheless, sometimes useful to know the clearance rate, a transition from MoI = 1 to MoI=0. Clearance from the infected class can only occur if a person is infected with an MoI of one, and if that infection clears:
The change in prevalence is thus described by the equation:
While this is interesting, and while it solves the problem of modeling clearance under superinfection, the equation depends on . Since we can compute directly from , the equation for prevalence is completely redundant.
On the other hand, if we wanted a model for prevalence that did not use , we could rewrite the equation:
Macdonald G. The analysis of infection rates in diseases in which superinfection occurs. Trop Dis Bull. 1950;47: 907–915↩︎
Fine PEM. Superinfection - a problem in formulating a problem. Tropical Diseases Bulletin. 1975;75: 475–488↩︎
Dietz K, Molineaux L, Thomas A. A malaria model tested in the African savannah. Bull World Health Organ. 1974;50: 347–357↩︎
Nåsell I. Hybrid Models of Tropical Infections. 1st edition. Berlin: Springer-Verlag; 1985. https://doi.org/10.1007/978-3-662-01609-1↩︎