Meropenem is cleared in about an hour and TB divides about once a day, so the drug is the fast variable. Following the recipe recovers the phase line of Saddle-Node Bifurcation: The Inoculum Effect, and step 5 says exactly what it costs. The steady states and the bifurcation diagram are exact for every , the dynamics are slowed by a few percent, and the threshold inoculum moves with the initial drug level, which the reduced model cannot express.
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import solve_ivp
plt.rcParams.update({"figure.dpi": 130, "font.size": 9, "axes.spines.top": False,
"axes.spines.right": False})
C_OUTER, C_INNER, C_COMP, C_GREY = "#0072B2", "#D55E00", "#009E73", "#999999"The model of Drug and Bacteria in the Plane, (1), follows TB cells that destroy the drug meropenem, , which kills them. Saddle-Node Bifurcation: The Inoculum Effect replaced the drug by its steady state , because the drug is cleared in about an hour while TB needs about a day to divide, and found a bistable phase line with a threshold inoculum and a saddle-node bifurcation. Drug and Bacteria in the Plane showed geometrically why this works: the arrows are nearly vertical, the distance to the -nullcline decays at least at the clearance rate (Proposition 4), and the slow eigenvalue is the slope of the phase line (Proposition 5). Here we follow the recipe of Quasi-Steady State instead, and compute what the reduction gets wrong.
Scale. Measure cells against the carrying capacity and time in cell generations, , , and keep . Then (1) becomes
with
The small parameter is the growth rate of the cells divided by the clearance rate of the drug. TB grows at /day and meropenem’s half-life of an hour gives /day, so . For the E. coli of Populations and Fractions, which doubles every 20 minutes, /h and : the cells would be faster than the drug, and the reduction would have no justification.
Slave. The critical manifold is , which is (3) in scaled form.
Check. for every . The manifold is attracting everywhere, and more cells make it more strongly attracting, because they destroy drug as well as clearance removes it.
Reduce.
which is (5) in scaled form.
For TB the recipe could stop here. To see what step 5 is for, treat as a dial, from TB at to E. coli at , and ask what the reduction gets wrong. The answer is much less than the size of suggests.
What does not depend on ε¶
Proposition 1 (The bifurcation diagram is exact)
For every , the steady states of (1) are the points with a steady state of the reduced equation (3), and
if , the steady state is a saddle;
if , it is stable.
The bifurcation diagram of Saddle-Node Bifurcation: The Inoculum Effect, with its transcritical bifurcation at and saddle-node at , therefore holds for the full model, whatever the value of .
Proof 1
At a steady state , which is , and then . Stability is Proposition 2 in scaled variables. Directly: the Jacobian of (1) at is triangular with eigenvalues and . At , using and ,
since by the same relations. Conclude with Proposition 5.
The steady states do not depend on the approximation, since at a steady state the drug is at rest anyway, and neither does their stability.
The first correction slows time¶
Tikhonov’s theorem says the error is ; here it can be computed. The drug does not sit exactly on : as changes, moves and the drug chases it. This is the lag that Proposition 4 bounds by ; to first order it can be found exactly.
Proposition 2 (The lag slows, it does not steer)
Proof 2
When the population grows () the drug lies above its QSS value: it has not caught up with the extra destruction. When the population shrinks it lies below. With the slowdown is at most 2% for TB, and at most 15% at , although that is no longer small.
The layer moves the threshold¶
What the reduction cannot see is the initial drug level. The reduced model starts the drug at , its QSS value. A real experiment starts it wherever the protocol puts it:
cells introduced into a culture or a patient that already holds the drug: , more drug than QSS;
an infusion started on an established infection: , less.
Drug and Bacteria in the Plane showed the consequence in the plane: the separatrix of the saddle is tilted, so the threshold inoculum depends on , and for a slow drug by a factor of seven (Example 2). The layer problem gives the size of the tilt.
Proposition 3 (The threshold inoculum depends on the protocol)
To first order in , an inoculum starting with drug level is cleared when , where
and is the QSS drug level at the threshold.
Proof 3
This is a first-order calculation, not a rigorous bound. Inside the layer is frozen and, by (3), the drug relaxes as
The cell equation is , and near the threshold , so the layer changes by
After the layer the solution is close to the critical manifold, where the reduced phase line applies, so it is cleared when . To first order this is . In the original units , and , which is the second form; the first follows from and .
The correction is a product: the extra kill rate , times the time for which the drug is away from its QSS level. Cells that meet a full dose before they have destroyed any of it need a larger inoculum to survive; cells that get a head start before the drug arrives need a smaller one. The growth rate does not appear: near the threshold growth and killing balance, and what matters is how long the drug is out of balance compared with how fast it kills. For TB at /day, (8) gives 1.27 with no drug at the start and 1.34 with the full dose, the thresholds read off the separatrix in Drug and Bacteria in the Plane to two decimals.
r, Kc, Nc, a = 1.0, 10.0, 1.0, 2.0 # 1/day, 1e8 cells/mL, 1e8 cells/mL, 1/day
alpha, kappa = a / r, Kc / Nc
h = lambda n: 1 / (1 + kappa * n)
nm = (9 - np.sqrt(41)) / 20 # the saddle n_- = N_-/K
def full(t, y, eps):
n, d = y
return [n * (1 - n) - alpha * d * n, (1 - d - kappa * n * d) / eps]
def separatrix(eps):
"""Stable manifold of the saddle (n_-, h(n_-)), integrated backward."""
J = np.array([[-nm, -alpha * nm],
[-kappa * h(nm) / eps, -(1 + kappa * nm) / eps]])
w, V = np.linalg.eig(J)
v = V[:, np.argmin(w.real)].real # numpy >= 2.5 returns complex arrays
def leave(t, y):
return min(y[1] + 0.05, 1.05 - y[1], y[0])
leave.terminal = True
back = lambda t, y: [-z for z in full(t, y, eps)]
halves = [solve_ivp(back, (0, 50), [nm, h(nm)] + 1e-7 * s * v, events=leave,
rtol=1e-10, atol=1e-12, method="LSODA").y for s in (1, -1)]
return np.hstack([halves[0][:, ::-1], halves[1]])
def threshold(eps, d0):
n, d = separatrix(eps)
i = np.argsort(d)
return np.interp(d0, d[i], n[i])
fig, ax = plt.subplots(figsize=(4.8, 3.1))
E = np.linspace(0.02, 3.0, 40)
for d0, col, lab in ((1.0, C_INNER, "drug already at $D_0$"),
(h(nm), C_OUTER, "drug at its QSS level"),
(0.0, C_COMP, "no drug yet")):
ax.plot(E, [10 * threshold(e, d0) for e in E], color=col, lw=1.6, label=lab)
first = nm * (1 + E * alpha * (d0 - h(nm)) / (1 + kappa * nm))
ax.plot(E, 10 * first, color=col, ls=":", lw=1.2)
for e, lab in ((1 / 16.6, "TB"), (2.9, "E. coli")):
ax.axvline(e, color=C_GREY, lw=0.8, ls="--")
ax.text(e + 0.04, 0.15, lab, fontsize=8, color="#555555",
style="normal" if lab == "TB" else "italic")
ax.set_xlim(0, 3); ax.set_ylim(0, 3.6)
ax.set_xlabel(r"$\varepsilon = r/\delta$")
ax.set_ylabel(r"threshold inoculum ($10^8$ cells/mL)")
ax.legend(loc="upper left", frameon=False, fontsize=8)
ax.set_title("the threshold depends on the protocol")
fig.tight_layout();
The threshold inoculum of the full model (1) against , with and , for three starting drug levels. Solid: the full model, where the separatrix crosses the line . Dotted: the first-order formula (8). At TB’s the three thresholds differ by a few percent; at E. coli’s they differ by a factor of six.
Remark 1 (Why the QSS start gives the exact threshold)
The blue line in the figure is flat: a population that starts with the drug at its QSS level has threshold exactly , for every . For the critical manifold lies below the curve on which , and between the two curves grows and falls. Neither curve can be crossed outward: on the first is at rest while grows, which carries the solution above , and on the second is at rest while falls. So a solution that starts on the critical manifold with stays between the curves, with increasing, and reaches . For the two curves swap places, falls and rises, and the solution is cleared. In other words, the separatrix crosses the critical manifold exactly at the saddle.
The answer to “what does the reduction cost?” is therefore specific. The steady states, their stability and the bifurcation diagram cost nothing. The dynamics are slowed, by at most 2% for TB. The threshold inoculum is shifted by (8), which depends on an initial condition that the reduced model cannot even express.