What does Sub-Perceptual Tryptamine Kinetics conclude, in numbers, about “Classical Sources Read Side by Side: "Begin Like a Millet Grain" and the Boundary of Dose”?

Answer: Chapter 7 treats the Shennong Bencao Jing's escalation rule as a dose-finding algorithm, compares it with a 3+3 design and a continual reassessment method, and finds that its final tenfold step carries most of the risk.

Scope of the numbers: It is not medical advice and is not a guide to using anything. Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's models and hypotheses; apart from cited literature data, all data in the book are synthetic.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python only

Dose levels (dimensionless fractions of an unspecified reference):
   0.05 0.10 0.20 0.40 0.80 1.60 3.20 6.40 12.80
Synthetic population: P(toxic) has its midpoint at 3.00 and P(effective)
at 0.80, so there is a real therapeutic window. Target toxicity 25 %.
   dose   P(effective)   P(toxic)
    0.05          0.007      0.001
    0.10          0.023      0.004
    0.20          0.076      0.013
    0.40          0.223      0.038
    0.80          0.500      0.108
    1.60          0.777      0.268
    3.20          0.924      0.526
3000 simulated dose-findings per rule.
   rule                    median dose found  mean exposures  any toxicity
   Bencao Jing escalation               2.00             3.9         38.5%
   3+3                                  0.80            22.2        100.0%
   CRM, 24 patients                     1.60            24.0        100.0%
   The three columns are not like for like, and that matters. The
   classical rule is a rule for ONE person, so its exposure count is one
   person's escalation and its toxicity column is that person's risk. The
   3+3 and the CRM are trial-level designs run across many people, so their
   exposure counts are totals and 'any toxicity' is near-certain simply
   because twenty-odd people were exposed. The comparison is informative
   about the SHAPE of each rule, not about which is safer.
The classical rule reaches a dose near the effective midpoint with very
few exposures, because it escalates against the RESPONSE rather than
against toxicity, and it stops the moment the illness goes. That is its
strength: it is individualised and it is frugal. Its weakness is also
Show the full program
# Chapter 7. The Shennong Bencao Jing's escalation rule, treated as an
# algorithm. The preface to the Bencao Jing instructs, for toxic drugs: begin
# with an amount "like a millet grain"; if the illness goes, stop; if it does
# not, double it; if it still does not, go tenfold; take the removal of the
# illness as the measure. That is a dose-finding rule, and dose-finding rules
# have operating characteristics. The program compares it with a modern 3+3
# design and a one-parameter continual reassessment method on the same
# synthetic patient population, and reports what each finds and what each
# costs. Everything is in dose-fraction units relative to an unspecified
# reference. Synthetic; fixed seed; standard library only. This is a study of
# the RULE, not advice to use it.
import math
import random

# 0.05 .. 12.8, dimensionless
DOSE_LEVELS = [0.05 * (2 ** k) for k in range(9)]

def p_toxic(d, d50=3.0, slope=1.6):
    return 1.0 / (1.0 + (d50 / d) ** slope)

def p_effective(d, d50=0.8, slope=1.8):
    return 1.0 / (1.0 + (d50 / d) ** slope)

def classical(rng, max_steps=12):
    """Begin minimal; stop if effective; else double; if still not, go
    tenfold."""
    d, used, doubled = DOSE_LEVELS[0], 0, 0
    tox = False
    for _ in range(max_steps):
        used += 1
        if rng.random() < p_toxic(d):
            tox = True
            break
        if rng.random() < p_effective(d):
            return d, used, tox
        if doubled < 2:
            d *= 2.0
            doubled += 1
        else:
            d *= 10.0
            doubled = 0
        if d > DOSE_LEVELS[-1]:
            break
    return d, used, tox

def three_plus_three(rng, target=0.33):
    """Classic 3+3: escalate while 0/3, expand on 1/3, stop on >=2."""
    exposures = 0
    for i, d in enumerate(DOSE_LEVELS):
        t = sum(1 for _ in range(3) if rng.random() < p_toxic(d))
        exposures += 3
        if t == 0:
            continue
        if t == 1:
            t2 = sum(1 for _ in range(3) if rng.random() < p_toxic(d))
            exposures += 3
            if t + t2 <= 1:
                continue
        return (
            (DOSE_LEVELS[i - 1] if i > 0 else DOSE_LEVELS[0]),
            exposures,
            True,
        )
    return DOSE_LEVELS[-1], exposures, False

def crm(rng, n=24, target=0.25):
    """One-parameter power model CRM on a skeleton, grid posterior over
    beta."""
    skeleton = [p_toxic(d) for d in DOSE_LEVELS]
    betas = [0.2 * (10 ** (0.05 * k)) for k in range(41)]
    logpost = [0.0] * len(betas)
    idx, exposures, tox_total = 0, 0, 0
    for _ in range(n):
        d = DOSE_LEVELS[idx]
        y = 1 if rng.random() < p_toxic(d) else 0
        exposures += 1
        tox_total += y
        for bi, b in enumerate(betas):
            p = min(max(skeleton[idx] ** b, 1e-9), 1 - 1e-9)
            logpost[bi] += math.log(p) if y else math.log(1 - p)
        m = max(logpost)
        w = [math.exp(v - m) for v in logpost]
        s = math.fsum(w)
        w = [v / s for v in w]
        best, bestgap = 0, 9e9
        for j in range(len(DOSE_LEVELS)):
            est = math.fsum(
                wi * (skeleton[j] ** b) for wi, b in zip(w, betas)
            )
            if abs(est - target) < bestgap:
                best, bestgap = j, abs(est - target)
        idx = min(best, idx + 1)                        # no skipping upward
    return DOSE_LEVELS[idx], exposures, tox_total > 0

if __name__ == "__main__":
    print(
        "Dose levels (dimensionless fractions of an unspecified reference):"
    )
    print("   " + " ".join("{:.2f}".format(d) for d in DOSE_LEVELS))
    print(
        "\nSynthetic population: P(toxic) has its midpoint at 3.00 and"
        " P(effective)"
    )
    print(
        "at 0.80, so there is a real therapeutic window. Target toxicity"
        " 25 %."
    )
    print("   dose   P(effective)   P(toxic)")
    for d in DOSE_LEVELS[:7]:
        print(
            "   {:5.2f} {:14.3f} {:10.3f}".format(
                d, p_effective(d), p_toxic(d)
            )
        )

    REPS = 3000
    print("\n{} simulated dose-findings per rule.\n".format(REPS))
    print("   rule                    median dose found  mean exposures"
          "  any toxicity")
    for name, fn in (("Bencao Jing escalation", classical),
                     ("3+3", three_plus_three),
                     ("CRM, 24 patients", crm)):
        rng = random.Random(777)
        doses, exps, toxes = [], [], 0
        for _ in range(REPS):
            d, e, t = fn(rng)
            doses.append(d)
            exps.append(e)
            toxes += t
        doses.sort()
        print(
            "   {:24s} {:16.2f} {:15.1f} {:13.1%}".format(
                name, doses[REPS // 2], math.fsum(exps) / REPS, toxes / REPS
            )
        )

    print(
        "\n   The three columns are not like for like, and that matters. The"
    )
    print(
        "   classical rule is a rule for ONE person, so its exposure count"
        " is one"
    )
    print(
        "   person's escalation and its toxicity column is that person's"
        " risk. The"
    )
    print(
        "   3+3 and the CRM are trial-level designs run across many people,"
        " so their"
    )
    print(
        "   exposure counts are totals and 'any toxicity' is near-certain"
        " simply"
    )
    print(
        "   because twenty-odd people were exposed. The comparison is"
        " informative"
    )
    print("   about the SHAPE of each rule, not about which is safer.")

    print(
        "\nThe classical rule reaches a dose near the effective midpoint with"
        " very"
    )
    print(
        "few exposures, because it escalates against the RESPONSE rather than"
    )
    print(
        "against toxicity, and it stops the moment the illness goes. That"
        " is its"
    )
    print(
        "strength: it is individualised and it is frugal. Its weakness is"
        " also"
    )
    print(
        "visible: it has no mechanism for learning across people, so each"
        " person"
    )
    print(
        "repeats the whole search, and the tenfold step after two"
        " doublings is"
    )
    print("large enough to cross a steep toxicity curve in one move.")

    print("\nWhat the tenfold step costs, measured as P(toxic) at each step:")
    d = DOSE_LEVELS[0]
    seq = [d]
    for k in range(4):
        seq.append(seq[-1] * 2)
    seq.append(seq[-1] * 10)
    print("   step    dose    P(toxic)   increment in P(toxic)")
    prev = 0.0
    for i, dd in enumerate(seq):
        pt = p_toxic(dd)
        print(
            "   {:5d} {:7.2f} {:10.4f} {:22.4f}".format(i, dd, pt, pt - prev)
        )
        prev = pt
    print(
        "\n   The doublings move P(toxic) by small amounts; the single"
        " tenfold step"
    )
    print(
        "   moves it by much more than all the doublings combined. Read as an"
    )
    print(
        "   algorithm, the rule is therefore well designed in its early"
        " phase and"
    )
    print(
        "   badly designed in its last step - which is exactly the kind of"
        " judgement"
    )
    print("   a formal comparison can offer and a reverent reading cannot.")
    print(
        "\n   This is an analysis of a RULE on synthetic data. It is not a"
        " claim"
    )
    print(
        "   about any substance, and nothing here should be used to choose an"
        " amount"
    )
    print("   of anything.")

Single source and citation

Fan, Y. (2026). Biomathematical Models of Sub-Perceptual Tryptamine Pharmacokinetics, 5-HT2A Receptor Desensitisation and Neuroplastic Window Dynamics (Version 1.0.0), Chapter 7: Classical Sources Read Side by Side: "Begin Like a Millet Grain" and the Boundary of Dose. 5D Library. https://doi.org/10.5281/zenodo.24019347

DOI: 10.5281/zenodo.24019347 · Read the monograph · 5DL-B-054 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026054,
  author    = {Fan, Yafu},
  title     = {Biomathematical Models of Sub-Perceptual Tryptamine Pharmacokinetics, 5-HT2A Receptor Desensitisation and Neuroplastic Window Dynamics},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.24019347},
  url       = {https://doi.org/10.5281/zenodo.24019347}
}

Other chapter answers in this book