digestive-coach-dataset / patterns.json
kelsbeans's picture
Upload patterns.json with huggingface_hub
95ae929 verified
Raw History Blame Contribute Delete
9.43 kB
{
"schema_version": 1,
"note": "TCM pattern knowledge base (T9b, BRIEF-12/BRIEF-13). Sign lists are paraphrased standard clinical terms with per-source page-level provenance - never verbatim passages. mapped_pattern is the closed v1 vocabulary member (PRD R9) each source pattern maps to; null means out of v1 vocabulary (recorded for a future vocab revision, never emitted by the coach). Weights are the standardized differentiation scores from S-TCM-FD-LTA-2022 Table 3 (overall sample, threshold 10.0). Consumed by coach/generate.py to ground teacher tcm_rationale in sourced sign-symptom maps; a pattern record NEVER changes an evidence label (mechanism/diagnosis altitude, cf. sources.md microbiome decision).",
"patterns": [
{
"source_label": "Spleen deficiency and qi stagnation",
"mapped_pattern": "SPLEEN_QI_DEFICIENCY",
"mapping_note": "Deficiency-with-stagnation presentation; the guideline names this the most fundamental FD pathogenesis (Rec 2).",
"signs_weighted": [
[
"distension and fullness in the stomach",
5.5
],
[
"oppression in the chest",
4.2
],
[
"lack of strength",
3.6
],
[
"reluctance to speak",
3.6
],
[
"poor appetite",
2.2
],
[
"fatigue of spirit",
1.9
],
[
"belching",
1.5
],
[
"unformed stools",
0.9
]
],
"prevalence_pct_of_diagnosed": 47.3,
"provenance": [
{
"source_id": "S-TCM-FD-LTA-2022",
"pages": "12 (Table 3), 14 (Table 4)"
},
{
"source_id": "S-TCM-FD-GUIDELINE-2025",
"pages": "504 (Table 3 Rec 2-4)"
}
]
},
{
"source_label": "Spleen-stomach qi deficiency",
"mapped_pattern": "SPLEEN_QI_DEFICIENCY",
"mapping_note": "Pure deficiency presentation of the same v1 vocabulary member; distinguished from the stagnation variant by heaviness/undigested food rather than distension-dominance.",
"signs_weighted": [
[
"reluctance to speak",
8.6
],
[
"lack of strength",
8.1
],
[
"stomach heaviness",
5.5
],
[
"sallow complexion",
5.4
],
[
"undigested food in stools",
3.8
],
[
"hard stools followed by soft stools",
3.8
],
[
"weight loss",
3.0
],
[
"fatigue of spirit",
2.9
]
],
"prevalence_pct_of_diagnosed": 54.1,
"coexists_with": [
{
"source_label": "Spleen-stomach deficiency cold",
"note": "most common co-existing pair, 32.8% of overall sample; adjusted odds ratio 53.23 (95% CI 21.77-130.16)"
}
],
"provenance": [
{
"source_id": "S-TCM-FD-LTA-2022",
"pages": "13 (Table 3), 14 (Table 4), 15 (Table 6), abstract"
}
]
},
{
"source_label": "Spleen-stomach deficiency cold",
"mapped_pattern": "SPLEEN_YANG_DEFICIENCY",
"mapping_note": "Deficiency-cold in the middle burner = yang-deficiency presentation in the v1 vocabulary; guideline syndrome 'deficiency cold in the spleen and stomach' (Rec 26-31).",
"signs_weighted": [
[
"reluctance to speak",
8.1
],
[
"lack of strength",
6.5
],
[
"sallow complexion",
3.9
],
[
"body heaviness",
3.4
],
[
"bland taste in the mouth",
2.9
],
[
"fatigue of spirit",
2.7
],
[
"dull stomach pain",
2.1
],
[
"aversion to cold",
2.1
],
[
"cold hands and feet",
1.8
],
[
"symptoms worse with cold",
1.7
],
[
"symptoms relieved by pressure",
1.5
]
],
"prevalence_pct_of_diagnosed": 51.2,
"coexists_with": [
{
"source_label": "Spleen-stomach qi deficiency",
"note": "AOR 53.23 (21.77-130.16); deficiency-cold rarely presents without qi deficiency"
}
],
"provenance": [
{
"source_id": "S-TCM-FD-LTA-2022",
"pages": "13 (Table 3), 14, abstract"
},
{
"source_id": "S-TCM-FD-GUIDELINE-2025",
"pages": "504-505 (Rec 26-31)"
}
]
},
{
"source_label": "Liver qi invading the stomach",
"mapped_pattern": "LIVER_OVERACTING_ON_SPLEEN",
"mapping_note": "Wood-overacting-on-earth presentation; guideline syndrome 'liver and stomach disharmony' (Rec 12-22). LIVER_QI_STAGNATION is the milder stagnation-only presentation without digestive invasion; mood linkage is the discriminator (severe anxiety associated, AOR 1.20, 95% CI 1.08-1.33).",
"signs_weighted": [
[
"depressed mood",
10.7
],
[
"oppression in the chest",
7.6
],
[
"acid vomiting",
5.8
],
[
"irritability",
4.7
],
[
"nausea or vomiting",
3.5
],
[
"distension and fullness under the ribs",
3.4
],
[
"symptoms worse with emotional stress",
2.9
],
[
"hiccup",
2.1
]
],
"prevalence_pct_of_diagnosed": 55.8,
"provenance": [
{
"source_id": "S-TCM-FD-LTA-2022",
"pages": "12-13 (Table 3), 14, abstract"
},
{
"source_id": "S-TCM-FD-GUIDELINE-2025",
"pages": "504 (Rec 12-22)"
}
]
},
{
"source_label": "Stomach heat",
"mapped_pattern": "STOMACH_HEAT",
"signs_weighted": [
[
"burning sensation in the stomach",
9.6
],
[
"acid vomiting",
8.5
],
[
"bitter taste in the mouth",
7.7
],
[
"gastric upset",
4.1
],
[
"dry mouth",
3.8
],
[
"bad breath",
3.4
],
[
"quick digestion with rapid return of hunger",
3.2
],
[
"yellowish urine",
2.6
],
[
"constipation",
2.4
],
[
"poor sleep",
1.8
]
],
"prevalence_pct_of_diagnosed": 51.9,
"provenance": [
{
"source_id": "S-TCM-FD-LTA-2022",
"pages": "12 (Table 3), 14 (Table 4)"
}
]
},
{
"source_label": "Spleen-stomach dampness-heat",
"mapped_pattern": "DAMPNESS_ACCUMULATION",
"mapping_note": "Heat variant of dampness in the v1 vocabulary; guideline syndrome 'damp heat in the spleen and stomach' (Rec 23-25). Stool signs dominate the rule.",
"signs_weighted": [
[
"tenesmus",
7.6
],
[
"difficulty passing stools",
5.0
],
[
"unformed stools",
4.8
],
[
"foul-smelling stools",
3.9
],
[
"diarrhoea",
3.4
],
[
"yellowish urine",
2.0
],
[
"rumbling bowels",
1.9
],
[
"nausea or vomiting",
1.4
],
[
"thirst without desire to drink",
1.0
]
],
"prevalence_pct_of_diagnosed": 24.0,
"provenance": [
{
"source_id": "S-TCM-FD-LTA-2022",
"pages": "13 (Table 3), 14 (Table 4)"
},
{
"source_id": "S-TCM-FD-GUIDELINE-2025",
"pages": "505 (Rec 23-25)"
}
]
},
{
"source_label": "Spleen deficiency with dampness encumbrance",
"mapped_pattern": "DAMPNESS_ACCUMULATION",
"mapping_note": "Deficiency variant of dampness; phlegm/heaviness/dizziness discriminate it from the heat variant.",
"signs_weighted": [
[
"unformed stools",
5.2
],
[
"tenesmus",
4.8
],
[
"bland taste in the mouth",
4.4
],
[
"excessive phlegm or saliva",
4.4
],
[
"foul-smelling stools",
3.8
],
[
"nausea or vomiting",
3.7
],
[
"difficulty passing stools",
3.6
],
[
"heavy-headedness",
3.2
],
[
"dizziness",
2.7
],
[
"diarrhoea",
2.7
],
[
"foreign-body sensation in the throat",
2.5
],
[
"rumbling bowels",
2.5
],
[
"body heaviness",
2.4
]
],
"prevalence_pct_of_diagnosed": 56.2,
"provenance": [
{
"source_id": "S-TCM-FD-LTA-2022",
"pages": "13-14 (Table 3), 14 (Table 4)"
}
]
},
{
"source_label": "Cold-heat complex",
"mapped_pattern": null,
"mapping_note": "OUT OF v1 VOCABULARY (R9). Guideline syndrome 'mixed cold and heat' (Rec 32-33, Banxia Xiexin Tang territory); 52.3% of diagnosed participants. Candidate for a v2 pattern vocabulary; until then the coach must not emit it - nearest honest v1 output is the dominant co-existing pattern or INSUFFICIENT_INFORMATION.",
"signs_weighted": [
[
"symptoms worse with pressure",
6.9
],
[
"rumbling bowels",
6.5
],
[
"bitter taste in the mouth",
4.7
],
[
"symptoms worse after eating",
4.3
],
[
"gastric upset",
4.0
],
[
"nausea or vomiting",
3.5
],
[
"unformed stools",
3.0
],
[
"symptoms worse with cold",
2.5
],
[
"dry mouth",
2.2
]
],
"prevalence_pct_of_diagnosed": 52.3,
"provenance": [
{
"source_id": "S-TCM-FD-LTA-2022",
"pages": "12 (Table 3), 14 (Table 4)"
},
{
"source_id": "S-TCM-FD-GUIDELINE-2025",
"pages": "505 (Rec 32-33)"
}
]
}
],
"not_covered": [
"FOOD_STAGNATION - neither source derives a rule for it; definition remains under AUD-06 (WHO standard terminologies) only.",
"LIVER_QI_STAGNATION - subsumed under the liver-invading presentations in both sources; kept in vocabulary per AUD-06."
]
}