5D Library › Autonomic Sympathovagal Balance, Six-Meridian State-Space Models and Multimodal Biomarker Inversion · 中文
Chapter 5. A Three-Modality Screen as a Bayesian Inverse Problem
Three patterns and three signals
Picture a three-minute screen: a structured questionnaire, a pulse read with a phone camera (remote photoplethysmography, rPPG (Verkruysse et al. 2008)), and a voice perturbation score from a short reading. Among the people the screen flags, suppose three patterns are equally common: A “prefrontal fatigue”, B “salience-network anxiety lock” and C “shutdown” (what the polyvagal theory calls the “dorsal vagal freeze”, a notion that is itself disputed (Grossman 2023)). All three names are illustrative labels, not diagnostic categories.
Write this as an inverse problem: given three observed scores, which pattern is most likely? If the three scores are independent given the pattern, the posterior is the product of the three likelihoods.
Calculation
# Chapter 5. p09: A three-minute screen with three modalities. Among
# people the screen flags, three patterns are equally common (prior 1/3):
# A "prefrontal fatigue", B "salience-network anxiety lock", C "shutdown"
# (the polyvagal "dorsal freeze" label). Each modality gives one score in
# standard units with sd 1: a structured questionnaire Q, a camera pulse
# score P (from heart rate and RMSSD) and a voice perturbation score J.
# Illustrative class means below. If the three scores are independent
# given the class, the posterior is the product of the likelihoods
# (likelihood ratios multiply). Misclassification over 30,000 people,
# seed 86.
import random
from math import exp
MEANS = {"A": (0.0, 0.0, 0.5), "B": (1.0, 1.2, 1.0), "C": (0.6, -0.8, -0.5)}
def post(x, use):
w = {c: exp(-0.5 * sum((x[i] - m[i]) ** 2 for i in use))
for c, m in MEANS.items()}
z = sum(w.values())
return {c: v / z for c, v in w.items()}
def draw(rng, c, rho=0.0):
f = rng.gauss(0, 1)
return [m + rho ** 0.5 * f + (1 - rho) ** 0.5 * rng.gauss(0, 1)
for m in MEANS[c]]
if __name__ == "__main__":
rng = random.Random(86)
people = [(c, draw(rng, c)) for _ in range(10000) for c in "ABC"]
for use, label in (((0,), "questionnaire only"),
((0, 1), "+ camera pulse"),
((0, 1, 2), "+ voice")):
err = sum(1 for c, x in people
if max(post(x, use).items(), key=lambda kv: kv[1])[0] != c)
print(" {:<19} error {:.3f}".format(label, err / len(people)))
# questionnaire only error 0.532
# + camera pulse error 0.356
# + voice error 0.298With the questionnaire alone the error is 0.532, not much better than a three-way guess without any signal (about two in three); adding the camera pulse brings it to 0.356, and adding voice to 0.298. Each modality carries some information the others lack.
Summary
Writing the screen as a Bayesian inverse problem shows clearly how much each modality contributes; but adding modalities is honest only when their common causes are modelled correctly. Ignoring the correlation raises the error and, worse, makes the tool claim a certainty it does not have.
References
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).