5D Library › Insulin-Glucagon Bistability, Visceral Lipolysis Kinetics and Linear-Programming Diet Optimization · 中文

Chapter 4. Two Cheap Measurements

A tape measure against a blood test

Everything in the previous chapters is about people whose insulin is already behaving badly, which raises a practical question: how do you find them? The expensive answer is a clamp study. The cheap answers are a tape measure and a fasting blood panel, and there is a literature on how well each performs. Ashwell, Gunn and Gibson’s meta-analysis found the waist-to-height ratio a better screening tool for cardiometabolic risk than waist circumference or body mass index, and supported the familiar advice to keep the waist under half the height (Ashwell et al. 2012). On the blood side, Simental-Mendia and colleagues proposed the product of fasting triglycerides and fasting glucose as a surrogate for insulin resistance (Simental-Mendia et al. 2008), and Guerrero-Romero and colleagues then compared the index against the euglycaemic hyperinsulinaemic clamp directly, which is the comparison that matters (Guerrero-Romero et al. 2010).

Evidence

Published. Ashwell, Gunn and Gibson’s systematic review and meta-analysis found waist-to-height ratio superior to waist circumference and body mass index for screening adult cardiometabolic risk (Ashwell et al. 2012). Simental-Mendia and colleagues introduced the product of fasting triglycerides and glucose as a surrogate measure (Simental-Mendia et al. 2008). Guerrero-Romero and colleagues validated that index against the clamp (Guerrero-Romero et al. 2010).

Note

What the sample is. The people in this chapter do not exist. Two groups of equal size are generated from a model with a shared latent severity, so that the waist ratio and the blood markers correlate as they do in life, and the group means are set from the ranges published for adults. Nothing here is an estimate of how either marker performs in any real population. What the arithmetic can show is how much a second marker can possibly add once the first is in hand, which is a question about the geometry of correlated measurements rather than about any cohort.

Calculation

# Chapter 4. p07: How well waist-to-height ratio separates the insulin
# resistant from the insulin sensitive. The sample is synthetic, not a
# cohort: two groups of equal size, a shared latent severity that makes
# the markers correlate, and group means taken from the ranges reported
# for adults. The curve of sensitivity against one minus specificity is
# summarised by the area under it, computed from ranks, and the cutoff
# is the one that maximises sensitivity plus specificity minus one.
import random

SEED, N = 95, 4000
WHTR0, WHTR_G, WHTR_SD = 0.485, 0.100, 0.050
LAT = 0.6                      # weight of the shared severity term

def sample():
    rng = random.Random(SEED)
    rows = []
    for g in (0, 1):
        for _ in range(N):
            z = rng.gauss(0.0, 1.0)
            ew = rng.gauss(0.0, 1.0)
            et = rng.gauss(0.0, 1.0)
            ef = rng.gauss(0.0, 1.0)
            mix = LAT * z + (1.0 - LAT ** 2) ** 0.5 * ew
            whtr = WHTR0 + WHTR_G * g + WHTR_SD * mix
            rows.append((g, whtr, z, et, ef))
    return rows

def auc(pos, neg):
    both = sorted([(v, 1) for v in pos] + [(v, 0) for v in neg])
    ranks, i = [0.0] * len(both), 0
    while i < len(both):
        j = i
        while j + 1 < len(both) and both[j + 1][0] == both[i][0]:
            j += 1
        r = (i + j) / 2.0 + 1.0
        for k in range(i, j + 1):
            ranks[k] = r
        i = j + 1
    s = sum(r for r, (_, lab) in zip(ranks, both) if lab == 1)
    n1, n0 = len(pos), len(neg)
    return (s - n1 * (n1 + 1) / 2.0) / (n1 * n0)

def roc_point(pos, neg, cut):
    sens = sum(1 for v in pos if v >= cut) / len(pos)
    spec = sum(1 for v in neg if v < cut) / len(neg)
    return sens, spec

if __name__ == "__main__":
    rows = sample()
    pos = [w for g, w, _, _, _ in rows if g == 1]
    neg = [w for g, w, _, _, _ in rows if g == 0]
    print("   {} resistant and {} sensitive, synthetic".format(len(pos),
                                                               len(neg)))
    print("   mean waist-to-height ratio: resistant {:.4f},"
          " sensitive {:.4f}".format(sum(pos) / len(pos),
                                     sum(neg) / len(neg)))
    a = auc(pos, neg)
    print("   area under the curve: {:.4f}".format(a))
    best, best_cut = -1.0, 0.0
    for i in range(2001):
        cut = 0.35 + 0.00025 * i
        sens, spec = roc_point(pos, neg, cut)
        j = sens + spec - 1.0
        if j > best:
            best, best_cut = j, cut
    sens, spec = roc_point(pos, neg, best_cut)
    print("   best cutoff {:.4f}: sensitivity {:.4f}, specificity {:.4f}"
          .format(best_cut, sens, spec))
    print("   that cutoff scores sensitivity plus specificity minus one"
          " at {:.4f}".format(best))
    print("   cutoff   sensitivity   specificity   sum minus one")
    for cut in (0.4800, 0.5000, 0.5200, 0.5400, 0.5600, 0.6000):
        sens, spec = roc_point(pos, neg, cut)
        print("   {:<9.4f}{:<14.4f}{:<14.4f}{:.4f}"
              .format(cut, sens, spec, sens + spec - 1.0))
#    4000 resistant and 4000 sensitive, synthetic
#    mean waist-to-height ratio: resistant 0.5857, sensitive 0.4841
#    area under the curve: 0.9244
#    best cutoff 0.5317: sensitivity 0.8568, specificity 0.8403
#    that cutoff scores sensitivity plus specificity minus one at 0.6970
#    cutoff   sensitivity   specificity   sum minus one
#    0.4800   0.9778        0.4675        0.4453
#    0.5000   0.9533        0.6252        0.5785
#    0.5200   0.9008        0.7702        0.6710
#    0.5400   0.8177        0.8715        0.6892
#    0.5600   0.6980        0.9413        0.6393
#    0.6000   0.3910        0.9888        0.3798

In this sample the resistant group has a mean waist ratio of 0.5857 and the sensitive group 0.4841, and the area under the curve is 0.9244. The cutoff that maximises sensitivity plus specificity minus one is 0.5317, giving sensitivity 0.8568 and specificity 0.8403 for a score of 0.6970. The familiar advice to keep the waist under half the height corresponds to the cutoff 0.5000 in the table, which here catches 0.9533 of the resistant group at the cost of flagging all but 0.6252 of the sensitive one. That is the trade a screening threshold is for: 0.5000 is a sensitive cutoff and 0.5600, with specificity 0.9413, is a specific one.

The index, and what it adds

The index is the natural logarithm of the product of fasting triglycerides and fasting glucose divided by two. p08 draws from the identical generator with the identical seed, so it is looking at the same people.

Calculation

# Chapter 4. p08: The triglyceride-glucose index on the same synthetic
# sample as p07. The index is the natural logarithm of fasting
# triglycerides times fasting glucose divided by two, with both in
# mg/dL, so it is the sum of the two logarithms less the logarithm of
# two. The generator, seed and draw order are identical to p07, so the
# two programs see the same people. Reported: the area under the curve,
# the best cutoff, and what a two-step rule gains over either marker.
import math
import random

SEED, N = 95, 4000
WHTR0, WHTR_G, WHTR_SD = 0.485, 0.100, 0.050
TG0, TG_G, TG_SD = 90.0, 175.0, 0.30
FPG0, FPG_G, FPG_SD = 90.0, 108.0, 0.08
LAT = 0.6

def sample():
    rng = random.Random(SEED)
    rows = []
    for g in (0, 1):
        for _ in range(N):
            z = rng.gauss(0.0, 1.0)
            ew = rng.gauss(0.0, 1.0)
            et = rng.gauss(0.0, 1.0)
            ef = rng.gauss(0.0, 1.0)
            mix = LAT * z + (1.0 - LAT ** 2) ** 0.5 * ew
            whtr = WHTR0 + WHTR_G * g + WHTR_SD * mix
            ltg = (math.log(TG0) + math.log(TG_G / TG0) * g
                   + TG_SD * (LAT * z + (1.0 - LAT ** 2) ** 0.5 * et))
            lfpg = (math.log(FPG0) + math.log(FPG_G / FPG0) * g
                    + FPG_SD * (LAT * z + (1.0 - LAT ** 2) ** 0.5 * ef))
            rows.append((g, whtr, ltg + lfpg - math.log(2.0)))
    return rows

def auc(pos, neg):
    both = sorted([(v, 1) for v in pos] + [(v, 0) for v in neg])
    ranks, i = [0.0] * len(both), 0
    while i < len(both):
        j = i
        while j + 1 < len(both) and both[j + 1][0] == both[i][0]:
            j += 1
        r = (i + j) / 2.0 + 1.0
        for k in range(i, j + 1):
            ranks[k] = r
        i = j + 1
    s = sum(r for r, (_, lab) in zip(ranks, both) if lab == 1)
    n1, n0 = len(pos), len(neg)
    return (s - n1 * (n1 + 1) / 2.0) / (n1 * n0)

def point(pos, neg, cut):
    sens = sum(1 for v in pos if v >= cut) / len(pos)
    spec = sum(1 for v in neg if v < cut) / len(neg)
    return sens, spec

if __name__ == "__main__":
    rows = sample()
    pos = [t for g, _, t in rows if g == 1]
    neg = [t for g, _, t in rows if g == 0]
    print("   mean index: resistant {:.4f}, sensitive {:.4f}"
          .format(sum(pos) / len(pos), sum(neg) / len(neg)))
    print("   area under the curve: {:.4f}".format(auc(pos, neg)))
    best, best_cut = -1.0, 0.0
    for i in range(3001):
        cut = 7.00 + 0.001 * i
        sens, spec = point(pos, neg, cut)
        if sens + spec - 1.0 > best:
            best, best_cut = sens + spec - 1.0, cut
    sens, spec = point(pos, neg, best_cut)
    print("   best cutoff {:.3f}: sensitivity {:.4f}, specificity {:.4f}"
          .format(best_cut, sens, spec))
    print("   cutoff   sensitivity   specificity   sum minus one")
    for cut in (8.300, 8.500, 8.600, 8.700, 8.800, 9.000):
        sens, spec = point(pos, neg, cut)
        print("   {:<9.3f}{:<14.4f}{:<14.4f}{:.4f}"
              .format(cut, sens, spec, sens + spec - 1.0))
    wp = [w for g, w, _ in rows if g == 1]
    wn = [w for g, w, _ in rows if g == 0]
    print("   waist-to-height ratio on the same people: area {:.4f}"
          .format(auc(wp, wn)))
    gate = 0.5200
    both_pos = sum(1 for g, w, t in rows
                   if g == 1 and w >= gate and t >= best_cut)
    both_neg = sum(1 for g, w, t in rows
                   if g == 0 and not (w >= gate and t >= best_cut))
    print("   two-step rule, waist ratio at or above {:.2f} and then the"
          " index:".format(gate))
    print("   sensitivity {:.4f}, specificity {:.4f}, sum minus one {:.4f}"
          .format(both_pos / len(pos), both_neg / len(neg),
                  both_pos / len(pos) + both_neg / len(neg) - 1.0))
    print("   so the blood test adds {:.4f} to the waist measurement alone"
          .format(auc(pos, neg) - auc(wp, wn)))
#    mean index: resistant 9.1594, sensitive 8.3078
#    area under the curve: 0.9645
#    best cutoff 8.705: sensitivity 0.9165, specificity 0.8812
#    cutoff   sensitivity   specificity   sum minus one
#    8.300    0.9958        0.4883        0.4840
#    8.500    0.9770        0.7183        0.6953
#    8.600    0.9525        0.8115        0.7640
#    8.700    0.9190        0.8780        0.7970
#    8.800    0.8558        0.9290        0.7848
#    9.000    0.6785        0.9825        0.6610
#    waist-to-height ratio on the same people: area 0.9244
#    two-step rule, waist ratio at or above 0.52 and then the index:
#    sensitivity 0.8423, specificity 0.9435, sum minus one 0.7858
#    so the blood test adds 0.0400 to the waist measurement alone

The index reaches an area of 0.9645 against the waist ratio’s 0.9244 on the same people, and its best cutoff is 8.705, with sensitivity 0.9165 and specificity 0.8812. The cutoff is worth noting because it falls inside the range the validation literature reports, which is a weak but real check that the generator was not set up to flatter the index.

The two curves of sensitivity against one minus specificity on the same synthetic people (p07 and p08).

The last lines are the ones with a practical consequence. The blood test adds 0.0400 of area to the tape measure. A two-step rule, measuring the waist first and sending only those at or above 0.52 for blood, reaches sensitivity 0.8423 and specificity 0.9435 for a score of 0.7858, against 0.7970 for the index used alone on everybody. The two-step rule is therefore very slightly worse at discriminating and very much cheaper, since it orders blood on a minority. For a screening programme that is usually the better trade; for an individual already in a clinic it is not.

Hypothesis · not established

The author’s interpretation (not yet tested): because the two markers share most of their information, any screening programme that already measures the waist should treat the fasting panel as a confirmatory rather than a screening test, and the gain from adding it will stay below twice the 0.0400 found here in any population whose markers correlate as strongly as these. What would show it wrong: in a cohort with both measurements and a clamp, if adding the index to the waist ratio raised the area by more than twice that figure, or if the correlation between the two markers were weak enough that they carried largely independent information, the two-step recommendation would not follow.

Summary

On one synthetic sample the waist ratio reaches an area of 0.9244 and the index 0.9645, so the blood test adds 0.0400. A two-step rule scores 0.7858 against 0.7970 for the index alone while ordering blood on a minority. The best index cutoff, 8.705, sits where the validation literature puts it. Chapter 5 turns from measuring people to feeding them, starting with the mineral the low-carbohydrate week takes away.

References

Ashwell, Margaret, Patricia Gunn, and Sigrid Gibson. 2012. “Waist-to-Height Ratio Is a Better Screening Tool than Waist Circumference and BMI for Adult Cardiometabolic Risk Factors: A Systematic Review and Meta-Analysis.” Obesity Reviews 13 (3): 275 to 286.
Guerrero-Romero, Fernando, Luis E. Simental-Mendia, Manuel Gonzalez-Ortiz, et al. 2010. “The Product of Triglycerides and Glucose, a Simple Measure of Insulin Sensitivity: Comparison with the Euglycemic-Hyperinsulinemic Clamp.” The Journal of Clinical Endocrinology and Metabolism 95 (7): 3347 to 3351.
Simental-Mendia, Luis E., Martha Rodriguez-Moran, and Fernando Guerrero-Romero. 2008. “The Product of Fasting Glucose and Triglycerides as Surrogate for Identifying Insulin Resistance in Apparently Healthy Subjects.” Metabolic Syndrome and Related Disorders 6 (4): 299 to 304.

Fan, Y. (2026). Insulin-Glucagon Bistability, Visceral Lipolysis Kinetics and Linear-Programming Diet Optimization: Hepatic Glycogen Depletion Times, Triglyceride-Glucose Indices and Micronutrient-Constrained Menus [胰岛素胰高血糖素双稳态、内脏脂解动力学与线性规划配餐] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090248 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).