What does Continuous Glucose Curves and the Minimal Model conclude, in numbers, about “The Bergman Minimal Model: the Mathematical Structure of a Remote Compartment of Insulin Action”?
Answer: The minimal model links glucose and plasma insulin with two equations. Glucose effectiveness \(S_G\) plus insulin action \(X\) in a remote compartment make up the fractional disappearance rate of glucose, and \(S_I = p_3 / p_2\) is the slope of that rate with respect to insulin. The remote compartment makes action lag insulin: in the illustrative injection, plasma insulin peaks at minute 0, action peaks at minute 38, and glucose falls to 76.3 at minute 120, below basal. The profile computation shows that one noisy curve hardly determines \(p_2\); for \(p_2\) between 0.015 and 0.060 the residuals all sit near the noise floor of 3.98. \(S_I\) is comparatively stable, while \(S_G\) and \(p_2\) trade off. The next chapter replaces the injection by a meal and asks a question closer to everyday readings: of a person's several parameters, which one moves the post-meal curve most?
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: 120, 38, 76.3
| SI = p3 / p2 = 1.250e-05 / 0.025 = 5.0e-04 | ||||
| t | insulin | G | X | SG + X |
| 0 | 88.0 | 300.0 | 0.00000 | 0.02500 |
| 5 | 61.0 | 272.5 | 0.00382 | 0.02882 |
| 10 | 45.4 | 245.0 | 0.00598 | 0.03098 |
| 20 | 31.2 | 197.0 | 0.00783 | 0.03283 |
| 30 | 26.4 | 160.5 | 0.00834 | 0.03334 |
| 60 | 21.8 | 101.8 | 0.00806 | 0.03306 |
| 90 | 17.7 | 81.6 | 0.00684 | 0.03184 |
| 120 | 14.1 | 76.3 | 0.00523 | 0.03023 |
| 180 | 10.0 | 78.8 | 0.00244 | 0.02744 |
| insulin peaks at 0 min; action X peaks at 38 min | ||||
| glucose disappearance slope Kg (10-30 min): 0.0211 per min | ||||
| check, insulin held at Ib: G(60) RK4 136.857334 exact 136.857334 |
Key formula
Show the full program
# Chapter 3. p31: the glucose minimal model after an intravenous bolus.
# dG/dt = -(SG + X) G + SG Gb
# dX/dt = -p2 X + p3 (I(t) - Ib), SI = p3 / p2
# X is insulin action in a remote compartment (per min); plasma insulin
# I(t) is a given input, as in the 1979 model. Parameters illustrative:
# SG 0.025/min, p2 0.025/min, SI 5.0e-4 per min per microU/mL,
# Gb 90 mg/dL, Ib 8 microU/mL, G(0) 300 mg/dL. RK4, step 0.5 min.
import math
SG, P2, SI, GB, IB, G0 = 0.025, 0.025, 5.0e-4, 90.0, 8.0, 300.0
P3 = P2 * SI
def ins(t):
# 示意血浆胰岛素:快速第一相 + 缓慢第二相(microU/mL)
return (IB + 80.0 * math.exp(-t / 10.0)
+ 15.0 * (t / 40.0) * math.exp(1.0 - t / 40.0))
def rhs(t, g, x, insulin):
return (-(SG + x) * g + SG * GB, -P2 * x + P3 * (insulin(t) - IB))
def run(insulin, t_end=180.0, h=0.5):
g, x, t = G0, 0.0, 0.0
out = {0: (g, x)}
for k in range(int(round(t_end / h))):
k1 = rhs(t, g, x, insulin)
k2 = rhs(t + h / 2, g + h / 2 * k1[0], x + h / 2 * k1[1], insulin)
k3 = rhs(t + h / 2, g + h / 2 * k2[0], x + h / 2 * k2[1], insulin)
k4 = rhs(t + h, g + h * k3[0], x + h * k3[1], insulin)
g += h / 6 * (k1[0] + 2 * k2[0] + 2 * k3[0] + k4[0]) # step
x += h / 6 * (k1[1] + 2 * k2[1] + 2 * k3[1] + k4[1]) # step
t = (k + 1) * h
if abs(t - round(t)) < 1e-9:
out[int(round(t))] = (g, x)
return out
res = run(ins)
print("SI = p3 / p2 = %.3e / %.3f = %.1e" % (P3, P2, SI))
print(" t insulin G X SG + X")
for t in (0, 5, 10, 20, 30, 60, 90, 120, 180):
g, x = res[t]
print("%3d %6.1f %6.1f %.5f %.5f" % (t, ins(t), g, x, SG + x))
xmax = max(range(181), key=lambda t: res[t][1])
print("insulin peaks at 0 min; action X peaks at %d min" % xmax)
kg = (math.log(res[10][0]) - math.log(res[30][0])) / 20.0
print("glucose disappearance slope Kg (10-30 min): %.4f per min" % kg)
basal = run(lambda t: IB, 60.0)
exact = GB + (G0 - GB) * math.exp(-SG * 60.0)
print("check, insulin held at Ib: G(60) RK4 %.6f exact %.6f"
% (basal[60][0], exact))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 3: The Bergman Minimal Model: the Mathematical Structure of a Remote Compartment of Insulin Action. 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
- Chapter 1 · Trapezoids and Increments: Numerical Methods and Errors for the Area under a Continuous Glucose Curve
- Chapter 2 · Same Meal, Different Curves: Decomposing Individual Variation and the Ceiling on Prediction
- Chapter 4 · Sensitivity to Personal Parameters: Which Parameter Moves the Post-Meal Curve
- Chapter 5 · The Switch to Ketone Metabolism: a Gradient, Not a Toggle
- Chapter 6 · The Measurement Chain: Interstitial Lag, MARD and Sensor Bias
- Chapter 7 · Classical Sources East and West: the Suwen on Rich Food and Bernard on Averages
- Chapter 8 · Closing the Loop: A-B-A Logs, Randomised Blocks and Pre-Registration