5D Library › Autonomic Sympathovagal Balance, Six-Meridian State-Space Models and Multimodal Biomarker Inversion · 中文

Chapter 2. A Two-Compartment Model of Sympathetic and Vagal Tone, and Five Regimes

A two-compartment model that can be computed

Write sympathetic activity SS and vagal activity VV as two interacting “compartments”: each relaxes towards its central drive, they inhibit each other (coefficient cc), and the baroreflex turns the rise in blood pressure caused by sympathetic activity into vagal braking (gain gg):

dSdt=uS−S−cV2,dVdt=uV+(g−c)S−V.\frac{dS}{dt} = \frac{u_S – S – cV}{2},\qquad \frac{dV}{dt} = u_V + (g – c)S – V.

This is an illustrative model, not a law of physiology; its use is to write “sympathetic overload”, “vagal withdrawal”, “baroreflex collapse” and “dual depletion” as parameter settings that can be compared. Heart rate and RMSSD are read off linearly from SS and VV. The model is run to rest and then given a stress pulse, and the time for sympathetic activity to return within a tenth of its resting value is recorded.

Calculation

# Chapter 2. p03: A two-compartment model of autonomic tone. S is
# sympathetic and V vagal activity (arbitrary units, >= 0). Each relaxes
# to its central drive, they inhibit each other (c = 0.3), and the
# baroreflex turns sympathetic pressure into vagal braking with gain g:
#   dS/dt = (uS - S - c V) / 2      dV/dt = (uV + g S - c S - V) / 1
# Heart rate and RMSSD are read off as HR = 70 + 40 S - 25 V and
# RMSSD = 12 + 40 V - 6 S (illustrative). Each regime is run to rest,
# then given a stress pulse (uS + 1 for 5 time units); the recovery time
# is when S returns within 10% of its resting value. Euler step 0.01.
REGIMES = (("balanced", 0.5, 0.8, 0.6),
           ("sympathetic overload", 1.4, 0.8, 0.6),
           ("vagal withdrawal", 0.5, 0.25, 0.6),
           ("baroreflex collapse", 0.5, 0.8, 0.0),
           ("dual depletion", 0.15, 0.15, 0.6))
C = 0.3

def step(S, V, uS, uV, g, dt=0.01):
    dS = (uS - S - C * V) / 2.0
    dV = (uV + g * S - C * S - V) / 1.0
    return max(0.0, S + dt * dS), max(0.0, V + dt * dV)

def run(uS, uV, g):
    S = V = 0.5
    for _ in range(5000):
        S, V = step(S, V, uS, uV, g)
    rest = (S, V)
    t, back = 0.0, None
    for i in range(6000):
        pulse = 1.0 if i < 500 else 0.0
        S, V = step(S, V, uS + pulse, uV, g)
        t = (i + 1) * 0.01
        if i >= 500 and back is None and abs(S - rest[0]) <= 0.1 * max(
                rest[0], 0.05):
            back = t - 5.0
    return rest, back

if __name__ == "__main__":
    print("   regime                  S     V     HR  RMSSD  recovery")
    for name, uS, uV, g in REGIMES:
        (S, V), back = run(uS, uV, g)
        hr, rm = 70 + 40 * S - 25 * V, 12 + 40 * V - 6 * S
        print("   {:<21} {:5.2f} {:5.2f}  {:4.0f}  {:5.1f}  {:6.2f}".format(
            name, S, V, hr, rm, back))
#    regime                  S     V     HR  RMSSD  recovery
#    balanced               0.24  0.87    58   45.4    6.14
#    sympathetic overload   1.06  1.12    85   50.4    3.66
#    vagal withdrawal       0.39  0.37    76   24.3    5.33
#    baroreflex collapse    0.29  0.71    64   38.9    8.21
#    dual depletion         0.10  0.18    69   18.6    7.63

In the balanced setting heart rate is 58, RMSSD 45.4 and recovery time 6.14. Under sympathetic overload heart rate rises to 85, yet RMSSD is 50.4: the baroreflex turns the raised sympathetic activity into stronger vagal braking, and both rise together. Under vagal withdrawal RMSSD falls to 24.3; under baroreflex collapse the resting readings are close to the balanced ones (heart rate 64, RMSSD 38.9), and the difference lies in slower recovery (8.21); under dual depletion RMSSD is only 18.6.

Resting points (dots) of the five settings and their paths after a stress pulse (p03).

Can a short recording tell them apart?

Calculation

# Chapter 2. p04: Can a short recording tell the five regimes of p03
# apart? Each simulated person sits at a regime's resting point, with
# person-to-person spread and 3-minute measurement noise: HR sd 5 bpm,
# RMSSD sd 7 ms, recovery time sd 1.2. A nearest-centre rule (scaled by
# those sds) assigns the regime. Compared: resting HR and RMSSD only,
# and the same plus the recovery time after a standard stressor
# (for example a timed breathing or stand-up test). 2,000 people per
# regime, seed 86.
import importlib.util
import random

def load(name):
    spec = importlib.util.spec_from_file_location(name, name + ".py")
    m = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(m)
    return m

p03 = load("p03_two_compartment")
SD = (5.0, 7.0, 1.2)

def centres():
    out = []
    for name, uS, uV, g in p03.REGIMES:
        (S, V), back = p03.run(uS, uV, g)
        out.append((name, (70 + 40 * S - 25 * V, 12 + 40 * V - 6 * S,
                           back)))
    return out

def classify(x, cs, k):
    return min(range(len(cs)), key=lambda j: sum(
        ((x[i] - cs[j][1][i]) / SD[i]) ** 2 for i in range(k)))

if __name__ == "__main__":
    rng = random.Random(86)
    cs = centres()
    for k, label in ((2, "HR + RMSSD"), (3, "HR + RMSSD + recovery")):
        hits, conf = 0, {}
        for j, (name, c) in enumerate(cs):
            for _ in range(2000):
                x = [c[i] + rng.gauss(0, SD[i]) for i in range(3)]
                g = classify(x, cs, k)
                hits += g == j
                conf[(j, g)] = conf.get((j, g), 0) + 1
        print("   {:<22} correct {:.3f}".format(label, hits / 10000))
        worst = max(((a, b) for (a, b) in conf if a != b), key=conf.get)
        print("     most common mix-up: {} read as {} ({:.3f})".format(
            cs[worst[0]][0], cs[worst[1]][0], conf[worst] / 2000))
#    HR + RMSSD             correct 0.783
#      most common mix-up: baroreflex collapse read as balanced (0.238)
#    HR + RMSSD + recovery  correct 0.876
#      most common mix-up: baroreflex collapse read as balanced (0.130)

Using only three minutes of heart rate and RMSSD, the five regimes are classified correctly 0.783 of the time; the most common error is reading baroreflex collapse as balanced (0.238). Adding the recovery time after a standard stressor (for example a timed breathing or stand-up test) raises accuracy to 0.876 and cuts that error to 0.130. This is an upper limit, with the model exactly right and only measurement noise.

Hypothesis · not established

The author’s interpretation (not yet tested): what practitioners call “yang hyperactivity”, “yin deficiency”, “qi sinking” and “yang collapse” may correspond respectively to sympathetic overload, vagal withdrawal, collapse of baroreflex gain and dual depletion. What would show it wrong: in a study where Chinese-medicine practitioners make the pattern diagnosis independently and resting heart rate, RMSSD and recovery after a stressor are then measured, the four patterns show no reproducible difference on these three measures. The division of labour between the dorsal motor nucleus and the nucleus ambiguus (the polyvagal theory) is itself still disputed (Porges 2011; Grossman 2023).

Summary

In the two-compartment model, “sympathetic overload” need not lower RMSSD, because the baroreflex raises vagal braking at the same time; baroreflex collapse hardly shows in resting readings and is told apart only by recovery after a stressor. Mapping Chinese-medicine patterns onto these regimes is a hypothesis still to be tested.

References

Grossman, Paul. 2023. “Fundamental Challenges and Likely Refutations of the Five Basic Premises of the Polyvagal Theory.” Biological Psychology 180: 108589.
Porges, Stephen W. 2011. The Polyvagal Theory: Neurophysiological Foundations of Emotions, Attachment, Communication, and Self-Regulation. W. W. Norton.

Fan, Y. (2026). Autonomic Sympathovagal Balance, Six-Meridian State-Space Models and Multimodal Biomarker Inversion: Heart-Rate Variability Spectral Decomposition, Thermoregulatory Phase Drift and Bayesian Syndrome Classification [自主神经交感迷走平衡、六经辨证状态空间与多模态标志物反演] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090227 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).