What does Continuous Glucose Curves and the Minimal Model conclude, in numbers, about “The Switch to Ketone Metabolism: a Gradient, Not a Toggle”?

Answer: Chapter 5 uses an illustrative dynamic model to show that the metabolic switch is gradual: ketones take 18.2 hours to rise from one tenth to nine tenths, clearance turnover keeps the width above 8.8 hours even when the molecular step is a toggle, and seven definitions of "switched" differ by 12.6 hours.

Scope of the numbers: It is not medical advice, claims no effect of any kind and offers no dietary, fasting or medication plan; any self-experiment must first be discussed with a licensed physician. Its parameters are illustrative; all calculations are generated by its programs.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 18.2, 8.8

Hill H10%-point 90%-point width (h) BHB at 72 h
112.9 35.9 23.0 3.120
214.3 36.2 21.8 3.600
418.2 36.4 18.2 4.342
822.3 35.7 13.4 5.005
1624.0 34.3 10.3 5.192
20024.9 33.6 8.8 5.200
clearance C floor ln9/C width at H 200 width at H 4
0.258.79 8.8 18.2
0.504.39 4.4 16.2
1.002.20 2.2 15.6
2.001.10 1.2 15.4
Show the full program
# Chapter 5. p52: can a sharper molecular switch make the blood switch?
# Model and parameters of p51. We sharpen the ketogenic response to FFA
# (Hill coefficient H up to 200, i.e. practically a step at KF) and
# speed up BHB clearance C (VK scaled with C, so the plateau stays put).
# Transition width = hours from 10 % to 90 % of the 0-72 h BHB change.
# A first-order clearance alone sets a floor: ln(9) / C hours.
import math

BASE = dict(VG=6.0, KL=15.0, KS=20.0, TS=2.0, F0=0.2, FM=1.3, TF=3.0,
            VK=1.3, KF=1.0, H=4.0, C=0.25)


def deriv(s, p):
    l, sig, f, b = s
    prod = p["VK"] * f ** p["H"] / (f ** p["H"] + p["KF"] ** p["H"])
    return (-p["VG"] * l / (l + p["KL"]),
            (l / (l + p["KS"]) - sig) / p["TS"],
            (p["F0"] + p["FM"] * (1.0 - sig) - f) / p["TF"],
            prod - p["C"] * b)


def width(p, l0=100.0, t_end=72.0, h=0.05):
    sig = l0 / (l0 + p["KS"])
    f = p["F0"] + p["FM"] * (1.0 - sig)
    b = p["VK"] * f ** p["H"] / (f ** p["H"] + p["KF"] ** p["H"]) / p["C"]
    s = (l0, sig, f, b)
    tr = [(0.0, b)]
    for j in range(int(round(t_end / h))):
        a = deriv(s, p)
        q = deriv(tuple(v + h / 2 * d for v, d in zip(s, a)), p)
        r = deriv(tuple(v + h / 2 * d for v, d in zip(s, q)), p)
        u = deriv(tuple(v + h * e for v, e in zip(s, r)), p)
        s = tuple(v + h / 6 * (w1 + 2 * w2 + 2 * w3 + w4)
                  for v, w1, w2, w3, w4 in zip(s, a, q, r, u))
        tr.append(((j + 1) * h, s[3]))
    b0, b1 = tr[0][1], tr[-1][1]

    def cross(level):
        for (t0, y0), (t1, y1) in zip(tr, tr[1:]):
            if y0 < level <= y1:
                return t0 + h * (level - y0) / (y1 - y0)
        return float("nan")
    t10 = cross(b0 + 0.1 * (b1 - b0))
    t90 = cross(b0 + 0.9 * (b1 - b0))
    return t10, t90, b1


print("Hill H   10%-point  90%-point  width (h)  BHB at 72 h")
for hh in (1.0, 2.0, 4.0, 8.0, 16.0, 200.0):
    p = dict(BASE, H=hh)
    t10, t90, b1 = width(p)
    print("%6.0f   %7.1f    %7.1f    %6.1f     %.3f"
          % (hh, t10, t90, t90 - t10, b1))
print("clearance C   floor ln9/C   width at H 200   width at H 4")
for c in (0.25, 0.5, 1.0, 2.0):
    w = []
    for hh in (200.0, 4.0):
        p = dict(BASE, H=hh, C=c, VK=1.3 * c / 0.25)
        t10, t90, _ = width(p)
        w.append(t90 - t10)
    print("   %4.2f        %6.2f         %6.1f          %6.1f"
          % (c, math.log(9.0) / c, w[0], w[1]))

Single source and citation

Fan, Y. (2026). Areas under Continuous Glucose Curves, the Two-Compartment Minimal Model of Insulin Action and the Dynamics of the Switch to Ketone Metabolism (Version 1.0.0), Chapter 5: The Switch to Ketone Metabolism: a Gradient, Not a Toggle. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-286 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026286,
  author    = {Fan, Yafu},
  title     = {Areas under Continuous Glucose Curves, the Two-Compartment Minimal Model of Insulin Action and the Dynamics of the Switch to Ketone Metabolism},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book