Accessibility settings

Published on in Vol 14 (2026)

Preprints (earlier versions) of this paper are available at https://preprints.jmir.org/preprint/101606, first published .
Doctor and patient reviewing medical data on computer screens in an office.

Traditional Chinese Medicine Knowledge Graph for Hypertension With Emotional Comorbidity: Development and Blinded Question-Answering Evaluation Study

Traditional Chinese Medicine Knowledge Graph for Hypertension With Emotional Comorbidity: Development and Blinded Question-Answering Evaluation Study

Authors of this article:

Xiangyu Su1 Author Orcid Image ;   Xiaoxia Zhao2 Author Orcid Image ;   Guixiang Yao3 Author Orcid Image ;   Yu Wang2, 4 Author Orcid Image

1School of Traditional Chinese Medicine, Shandong University of Traditional Chinese Medicine, Jinan, China

2Department of Emergency and Critical Care Medicine, Affiliated Hospital of Shandong University of Traditional Chinese Medicine, 42 Wenhua W Road, Lixia District, Jinan, Shandong, China

3Department of Geriatric Medicine, Qilu Hospital of Shandong University, 107 Wenhua W Road, Jinan, China

4The First Clinical Medical College, Shandong University of Traditional Chinese Medicine, Jinan, China

*these authors contributed equally

Corresponding Author:

Yu Wang, PhD


Background: Traditional Chinese medicine (TCM) literature on hypertension with anxiety, depression, or insomnia contains descriptions of syndrome patterns, treatment principles, formulas, and herbs. A focused knowledge graph can organize these associations and their sources, but its contribution to generated answers requires separate evaluation.

Objective: This study aims to construct a TCM knowledge resource for hypertension with emotional comorbidity, assess a reviewed subset of curated relations, and evaluate the associated question-answering implementation, including the incremental effect of graph retrieval with a fixed generation model.

Methods: Qwen2.5-7B-Instruct generated candidates from the titles, keywords, and abstracts of 419 Chinese-language records, followed by expert curation with textbook and theoretical supplementation. Expert validation was restricted to the 80 relations present in the released graph from an earlier 100-relation review sample. Three clinicians external to construction authored 73 questions, and two additional clinicians blindly rated anonymized responses using a prespecified 4-category rubric. Evaluations included retrieval-only and model-only controls, generation-model comparisons, and 6 retrieval configurations. An additional matched DeepSeek-V4-Pro experiment generated one response per question per condition with and without graph retrieval. Strict correctness was compared using the exact two-sided McNemar test; partial correctness and recorded safety concerns were reported separately.

Results: The resource contained 956 indexed terms, 101 graph nodes, and 312 relations with recorded source attribution. Experts confirmed 79/80 reviewed relations present in the released graph (98.8%, 95% CI 93.3%‐99.8%); 274/312 final relations were absent from the extraction output. In the matched experiment, strict accuracy was 50/73 (68%, 95% CI 57%‐78%) with graph retrieval and 57/73 (78%, 95% CI 67%‐86%) without it. Three discordant pairs favored graph assistance and 10 favored model-only generation (P=.09). Partially correct responses numbered 22/73 (30%) and 15/73 (21%), respectively. Both conditions had 72/73 (99%) correct-or-partially-correct responses; the same question had a recorded potential safety concern in both conditions. In the separate generation-model rating round with graph retrieval, strict accuracy was 9/73 (12%) for Qwen and 26/73 (36%) for DeepSeek.

Conclusions: The curated graph provides structured, inspectable domain knowledge with source attribution; expert confirmation applies to the reviewed subset of released relations. The matched experiment did not demonstrate improved strict answer accuracy from graph retrieval and did not establish equivalence. The resource and evaluations provide a basis for targeted development; benefits for literature navigation and clinical use require direct validation.

JMIR Med Inform 2026;14:e101606

doi:10.2196/101606

Keywords



Background

Psychological stress and hypertension have been studied through physiological responses to acute mental stress, with findings that depend on the stressor, physiological system, and population examined [1]. This literature motivates attention to psychological factors but does not justify treating every co-occurring emotional or sleep-related condition as evidence of stress-induced hypertension. Traditional Chinese medicine (TCM) research on hypertension also describes syndrome patterns, treatment principles, and herbal interventions [2,3]. Organizing these descriptions requires attention to both the relations expressed in the source material and the scope of the clinical concepts being represented.

The current resource focuses on hypertension with anxiety and related emotional or sleep-related conditions in the retrieved TCM literature. The search combined hypertension and anxiety. Corpus annotation found mentions of anxiety, depression, insomnia, or related emotional disturbance in 417/419 records (99.5%), whereas only 2/419 (0.5%) mentioned psychological stress. We use hypertension with emotional comorbidity (HTN-EC) as an operational description of this corpus, rather than a newly defined diagnostic subtype or a claim that hypertension was caused by stress. The project began under the term mental stress–induced hypertension; its repository retains the identifier MSI-HBP-knowledge-graph, in which MSI-HBP denotes mental stress–induced high blood pressure. Representation of conditions beyond anxiety depends on their occurrence in the assembled literature.

A knowledge graph offers a way to organize terms and selected associations among disease concepts, pathogeneses, treatment principles, formulas, and herbs. Recording source attribution alongside those relations can make the resource easier to inspect and revise. For a focused graph assembled from bibliographic text and supplementary sources, however, the recorded associations may cover only a small part of the information required by a question. Neither source attribution nor expert confirmation of a relation establishes therapeutic efficacy, and neither guarantees that supplying the relation to a language model will improve its answer. Resource construction and downstream performance therefore require distinct assessments.

Prior Work and Study Rationale

TCM knowledge graphs have been developed from clinical records, classical texts, and other domain sources. Weng et al [4] combined knowledge graph construction with representation learning and evaluated link prediction. Liu et al [5] investigated graph completion and quality assessment. Traditional Chinese Medicine Rheumatic Disease Knowledge Graph (TCMRD-KG) organized rheumatology knowledge from ancient Chinese literature using large language model (LLM) assistance [6], while other studies addressed diabetic kidney disease and syndrome-oriented decision support [7,8]. T-Know, OpenTCM, TCMKG, and a case-record question-answering system further illustrate approaches to structured retrieval and language-based access, using different corpora and evaluation designs [9-12]. These studies provide methodological precedents; the current work applies established techniques to a focused contemporary literature corpus.

For this application, the central question is whether the relations that have been curated and retrieved help answer independently authored information requests. Evaluating graph content alone cannot answer that question. A comparison between generated answers and retrieved triples examines the role of generation, while a comparison between generation models examines model choice under the tested retrieval setting. Assessing the incremental effect of graph assistance instead requires comparison with the same model answering without graph retrieval. We therefore combine description and expert assessment of the resource with blinded question-level evaluation and an additional matched comparison. This approach is intended to characterize the current implementation and identify specific improvements to test, without presuming a benefit from graph access.

Objectives

This study aimed to construct a TCM knowledge resource for hypertension with emotional comorbidity through LLM-assisted expert curation; describe its coverage, source attribution, and expert confirmation of the reviewed subset of released relations; and evaluate the associated question-answering implementation using independently authored questions and blinded physician ratings. Comparative evaluations examined generation models and retrieval configurations, and an additional matched comparison assessed the incremental effect of graph retrieval with the generation model held fixed. The study sought to identify the capabilities and limitations of the current implementation and to formulate evidence-informed questions for further evaluation.


Literature Corpus

The input corpus comprised 419 Chinese-language bibliographic records containing titles, keywords, and abstracts. Full-text articles were not used. The export labels were journal article (321 records), dissertation/thesis (95), and journal (3). These are record-level metadata categories. Duplicate entries identified during bibliographic checking are cross-referenced in Multimedia Appendix 1; original record numbers are retained, and corpus-level counts refer to the 419 archived records rather than distinct publications. The 321 records labeled journal article were the same set analyzed in our previous bibliometric study [13], which reports the database-specific search strategy, eligibility criteria, and screening flowchart. The search combined the subject terms hypertension and anxiety in Wanfang, the China National Knowledge Infrastructure (CNKI), and the VIP Database for Chinese Technical Periodicals (VIP) for February 2015 to 2025 and was restricted to Chinese-language TCM treatment studies. After manual screening, 652 records remained; after deduplication, 321 valid records remained. Exclusions comprised unrelated topics, duplicate publications, secondary research, nonacademic sources, records missing author, affiliation, or keyword information, and noninterventional study designs. The current resource additionally included the thesis and generic journal entries. The 2 studies shared source records but differed in purpose, methods, and outputs. No source record was retrieved from PubMed, and no record postdated 2025.

We annotated all 419 records to characterize the conditions represented in the corpus. Across titles, keywords, and abstracts, 406 mentioned anxiety, 226 mentioned emotion- or psychology-related terms, 215 mentioned depression, and 117 mentioned insomnia; these categories were not mutually exclusive. At least one emotional comorbidity was mentioned in 417/419 records (99.5%), and hypertension appeared in the titles of 416/419 records (99.3%). Only 2/419 records (0.5%) mentioned psychological stress. We therefore use HTN-EC to describe the resource’s scope: hypertension co-occurring with anxiety, depression, insomnia, or related emotional disturbance in the retrieved TCM literature. The search centered on hypertension and anxiety, so representation of other conditions depended on their occurrence in that literature. The repository retains the original MSI-HBP-knowledge-graph identifier.

Ethics Considerations

The knowledge resource was assembled from published bibliographic records and supplementary textbook and theoretical sources; no patient-identifying data or animal experiments were used. Clinicians contributed question authoring and expert ratings as described below. The authors report that ethics committee review and informed consent were not required under the institutional research ethics policy of Shandong University of Traditional Chinese Medicine.

Ontology Design

The ontology was developed from the literature corpus. Two TCM-trained authors independently identified candidate entities and types from an initial sample of 50 publications and resolved discrepancies by discussion. The candidate types were examined in a further 50 publications and refined until no new type was identified in 3 consecutive publications. Relation types were derived from the same development material. Anxiety, depression, and insomnia have both disease and symptom roles in TCM terminology. In the released index, the terms anxiety, depression, and insomnia are typed as Symptom, whereas the corresponding disorder terms (anxiety disorder and depressive disorder) are typed as Disease; in the connected graph, anxiety, depression, and insomnia therefore appear as Symptom nodes, and hypertension is the only Disease node. These development decisions were separate from the subsequent independent question evaluation.

Six core entity types participate in the 4 core relations. Disease (88 terms) captures diagnostic targets including hypertension and its clinical subtypes, anxiety disorder, depressive disorder, and comorbid presentations such as hypertension with anxiety. Symptom (107 terms) encodes presenting manifestations, including anxiety, depression, and insomnia as symptom terms, together with dizziness/Xuan Yun, headache/Tou Tong, palpitation/Xin Ji, irritability/Fan Zao, and tinnitus/Er Ming. Pathogenesis (53 terms) represents aetiological and pathogenesis concepts described in the TCM source material; this count includes the canonical primary pathogeneses (Liver Qi Stagnation, Liver Yang Hyperactivity, Phlegm-Dampness Obstruction, Heart-Kidney Disharmony, Blood Stasis, Liver-Kidney Yin Deficiency, Heart-Spleen Deficiency) and their descriptive variants documented in the source literature. Herb (66 terms) and Formula (115 terms) represent herbal substances and formulations. Treatment Method (159 terms) represents treatment principles and methods associated with the recorded TCM concepts (eg, Pacifying Liver and Suppressing Yang/Ping Gan Qian Yang, Soothing Liver and Relieving Stagnation/Shu Gan Jie, Yu). The ontology permits multirole assignment: 30 terms are assigned to more than one type (eg, Liver is simultaneously a disease location, a pattern element and a pathogenesis; the Self-Rating Anxiety Scale is both a measurement tool and a clinical scale). The entity index therefore contains 997 term–type assignments over 956 unique terms. A further 409 assignments span 19 secondary categories—measurement tools (153), clinical assessment scales (69), Western pharmaceutical agents (43), TCM pattern types (38), acupoints (27) and TCM constitution types (13), among others (full listing in Multimedia Appendix 2). These secondary categories are retained in the entity index because they support entity recognition and terminology normalization in the question-answering pipeline; they do not participate in the 4 core relations and therefore do not appear as nodes in the knowledge graph itself (see Table 1).

Table 1. Composition of the HTN-EC-KGa resource: entity index and KGb.
CategoryCount, n (%)Description
Part A. Entity index: 956 unique terms; 997 term-type assignments across 25 types. Used for entity recognition and terminology normalization.
Treatment method159 (15.9)Therapeutic strategies
Tool153 (15.3)Measurement instruments and biomarkers
Formula115 (11.5)Classical and modern TCMc formulations
Symptom107 (10.7)Presenting clinical manifestations
Disease88 (8.8)Diagnostic targets including comorbidities
Scale69 (6.9)Clinical assessment scales
Herb66 (6.6)Single herbal medicines
Pathogenesis53 (5.3)TCM etiological constructs
Pharmaceutical43 (4.3)Western pharmaceutical agents
Pattern38 (3.8)TCM syndrome patterns
Other categories106 (10.6)Acupoints, constitution types, pattern elements, social factors, etc (full listing in Multimedia Appendix 2)
Part B. KG: 101 nodes and 312 directed relations. Used for relation retrieval.
Nodes
Herb52 (51.5)Terms participating in ≥1 core relation
Formula18 (17.8)—
Symptom14 (13.9)—
Treatment method8 (7.9)—
Pathogenesis8 (7.9)Includes 2 etiology and pathogenesis terms
Disease1 (1.0)Hypertension
Relations
TREATS171 (54.8)Herb/formula/treatment method→Disease/symptom/pathogenesis
COMPOSED_OF84 (26.9)Formula→Herb
CAUSES32 (10.3)Pathogenesis→Disease/symptom
USES25 (8.0)Pathogenesis→Treatment method; Treatment method→Herb/formula

aHTN-EC-KG: hypertension with emotional comorbidity-knowledge graph.

bPercentages use 997 assignments for index types, 101 nodes for node types, and 312 relations for predicates. Index terms may have multiple types. End point validity is 312/312 (100%) and assesses referential consistency only.

cTCM: traditional Chinese medicine.

The system is organized as 2 layers with distinct data flows. The entity index (956 unique terms; 997 term–type assignments across 25 types) is loaded by load_entities() and is used solely for entity recognition and synonym normalization when parsing a user question. The knowledge graph (101 nodes and 312 directed relations across 4 relation types) is queried by query_json() and constitutes the structure over which retrieval and reasoning are performed. Only terms that participate in at least one core relation appear as graph nodes; the index is deliberately broader than the graph so that questions phrased with noncore terminology can still be parsed. Table 1 reports both layers separately.

The ontology used 4 directed predicates: COMPOSED_OF (Formula to Herb), TREATS (Herb, Formula, or Treatment Method to Disease, Symptom, or Pathogenesis), CAUSES (Pathogenesis to Disease or Symptom), and USES (Pathogenesis to Treatment Method, or Treatment Method to Herb or Formula). Figure 1 summarizes the connected node types and predicate counts. The predicates represent relations recorded or curated from the source material; their labels do not independently establish clinical efficacy or causal effects.

‎
Figure 1. Structure of the hypertension with emotional comorbidity-knowledge graph (HTN-EC) resource. The terminology index contains 956 unique terms and 997 term-type assignments across 25 types. The connected graph contains 101 nodes in 6 primary types and 312 directed relations in 4 predicates. Counts refer to stored terms and relations; predicate labels do not establish clinical efficacy or causal effects. The permitted directions are described in the ontology-design text.

LLM-Assisted Entity-Relation Extraction

Model Selection and Configuration

Candidate entities and relations were extracted using Qwen2.5-7B-Instruct [14], a Chinese-capable model with 7 billion parameters, accessed through the SiliconFlow inference platform (SiliconFlow Technology Co) [15] in April 2026. Temperature was set to 0.1. The model was selected for its available open weights, Chinese-language capabilities, and the inference resources available to the project. The extraction described here used a hosted API; local-hardware performance and the comparative accuracy or cost of alternative extraction models were outside the evaluations reported here.

Prompt Engineering

During construction, the structured extraction prompt (Prompt 3 in Multimedia Appendix 3) requested a JSON object containing entities with names and types and relations with subjects, predicates, and objects. Its input was the bibliographic text described above (Multimedia Appendix 1), rather than full-text publications. At the question-answering stage, the system first normalized synonyms and matched entity names as strings in the question. It called the entity-recognition prompt (Prompt 1) only if no entity was matched, supplying up to the first 20 entity names in each type from the entity index. The answer-synthesis prompt (Prompt 2) combined the question with retrieved relations and requested a response of 150‐300 Chinese characters; it was used in the initial, six-configuration, and generation-model evaluations. The additional matched comparison used a separate shared system prompt and condition-specific user-message templates, reproduced in Multimedia Appendix 4, sheet 7_Matched_prompts.

Data Cleaning Pipeline

Overview

The extraction candidates underwent synonym normalization, entity deduplication, supplementation of missing relation endpoints, and relation deduplication and standardization (Figure 2). These processing stages prepared candidate material for expert curation; they did not automatically produce the final 312-relation graph.

‎
Figure 2. LLM-assisted construction and expert curation. Processing of 419 bibliographic records produced 1290 candidate triples, reduced to 1144 after fusion and 1012 after schema restriction. Expert assembly used these candidates and supplementary sources to construct the final resource. Only 38 of its 312 relations occurred in the extraction output, while 274 did not. The final graph is therefore not a subset produced solely by automatic filtering. LLM: large language model; TCM: traditional Chinese medicine.
Stage 1: Synonym Normalization

Candidate fusion used 6 built-in alias groups for name normalization; normalization and alignment merged 2 entity records (1004 to 1002). Question processing used a separate dictionary of 28 synonym groups, 66 surface forms, and 38 noncanonical-to-canonical mappings. These groups covered treatment methods (6), pathogeneses (7), symptoms (11), and diseases (4). The question-processing dictionary is stored as data/synonyms.json.

Stage 2: Entity Uniqueness Constraint

Entity deduplication used the normalized name and entity type as a composite key, retaining the union of available properties when records were merged. The raw extraction contained 1004 entity records representing 926 unique names; the fusion stage contained 1002 records representing 924 unique names. Entity alignment used SequenceMatcher similarity with a threshold of 0.95 and considered pairs differing in length by no more than 2 characters. A subsequent type-reclassification step had left 36 duplicate records involving 32 entities because the uniqueness constraint was not reapplied. Removing these duplicate records yielded the final index of 997 term-type assignments over 956 unique terms.

Stage 3: Missing Entity Supplementation

Relation endpoints absent from the entity index were identified by set difference and added with types inferred from their relation contexts. This stage added 36 entities (36/956, 3.8% of the final term index). Endpoint validity was defined as the proportion of relations for which both endpoint terms were present in the index; all 312 final relations satisfied this criterion. This check assessed referential consistency, not the factual validity of the relations.

Stage 4: Triple Deduplication and Relation-Type Standardization

Candidate triples were deduplicated by subject, predicate, and object, and relation labels were mapped to the 4 ontology predicates. Raw extraction produced 1290 candidate triples with 20 relation labels. Fusion removed 146/1290 triples (11.3%), leaving 1144; restricting labels to the 4 core predicates retained 1012 and excluded 132. The excluded labels included treatment-principle, pathogenesis, symptom, and disease-nature relations outside the chosen schema. These counts describe processing of extraction candidates before construction of the final curated relation set.

The final graph was assembled by an author, YW, who has clinical TCM training and is an associate chief physician in the Department of Emergency and Critical Care Medicine at the Affiliated Hospital of Shandong University of Traditional Chinese Medicine. This author used the extraction candidates together with the retrieved literature and standard textbooks, applying the four-predicate schema, and did not participate in triple validation or subsequent evaluations. Of the 312 final relations, 38 were present in the extraction output after fusion, and 274 were not. The final set was therefore not a subset obtained by further filtering the 1012 ontology-conformant candidates. We describe the process as LLM-assisted expert curation. Expert validation (Multimedia Appendix 5) assessed the previously reviewed subset present in the final graph and did not measure extraction-model accuracy.

We distinguished 3 source categories. Category A comprised relations linked to specific publications; category B comprised relations attributed to the textbook Formulas of Chinese Medicine; and category C comprised relations attributed to TCM pathogenesis, treatment-method, or treatment-principle theory. These categories described the type of source and were not a hierarchy of clinical evidence strength. In the released data, the categories are stored in the legacy field named evidence_level. Source assignment followed relation class: TREATS relations carried publication sources, COMPOSED_OF relations carried the textbook source, and CAUSES and USES relations carried theoretical sources. Only category A provided publication-level traceability.

Knowledge Graph Storage and Analytics

The system supports Neo4j (Neo4j Inc) and JSON representations of the curated knowledge base (Figure 3). In the Neo4j representation, nodes carry entity types and edges retain the direction and predicate of each relation. Parallel JSON files store relations, the entity index, and synonyms for use without a graph database. NetworkX was used for graph-level summaries. The additional matched graph-assisted versus model-only experiment reported below used the JSON retrieval backend and did not query Neo4j.

‎
Figure 3. System architecture. Interfaces provide access to question answering, knowledge browsing, and graph summaries. Processing includes candidate extraction, expert curation, retrieval, and answer generation. The implementation supports JSON and Neo4j storage representations. The additional matched DeepSeek experiment used JSON retrieval and did not query Neo4j. UI: user interface.

Question Answering Engine

The question-answering pipeline comprised question processing, relation retrieval, and answer generation. Entity recognition first normalized synonyms and matched indexed entity names as strings, returning up to 5 matches ranked by name length. If no entity matched, language-model processing was used as a fallback, as described under the Prompt Engineering subsection. Query types included formula composition, treatment relations, pathogenesis relations, use relations, and graph-level summaries. Recognized entities and query type were used to retrieve relations through the applicable JSON procedure or parameterized Cypher query. In the graph-assisted condition, retrieved triples were supplied as context to the generation model. The synthesis prompt requested a TCM-focused response of 150‐300 Chinese characters. Model and retrieval settings are distinguished by the evaluation component below; provision of graph context was not treated as a guarantee of response correctness or freedom from fabrication.

Evaluation Design

Three practicing TCM clinicians external to system construction authored the evaluation questions: a chief physician with 28 years of experience and two associate chief physicians with 18 and 15 years of experience. They had no access to the system, graph, or corpus list and were instructed not to adapt the supplied formatting examples. Of 75 submitted questions, 3 were returned for rewording, and 2 substantive duplicates were removed, yielding 73 questions. The set covered pathogenesis identification (13), formula selection (12), treatment-principle selection (11), multistep reasoning (10), comorbidity management (10), pattern differentiation (9), and formula composition (8). The questions named 35 distinct formulas, of which 9 were retrievable from the graph; this was a measure of coverage rather than a test of question-set independence. The same 73 questions were used in all evaluation components. The earlier internally generated evaluation could not be reproduced because its question set and execution script were not archived; its accuracy estimate was withdrawn and was not used as an empirical comparator.

Two further TCM clinicians who had not authored the questions independently rated anonymized responses without knowing their generating condition. Responses were presented in randomized order within each question, with neutral labels and a new label-to-condition mapping for each question. The four-category rubric was fixed before rating: correct, meaning the core conclusion agreed with the reference answer and contained no substantive error; partially correct, meaning the core direction was correct but important elements were omitted or correct and incorrect elements were mixed; incorrect, meaning the core conclusion was inconsistent with the reference or contained substantive or misleading error; and abstained, meaning the system reported insufficient knowledge or provided no substantive answer. Fabrication and potential safety concerns were flagged separately. Disagreements were resolved by retaining the more conservative rating. Response rate used substantive answers as the numerator and all 73 questions as the denominator. Strict accuracy used fully correct answers over all 73 questions; conditional accuracy used fully correct answers over substantive answers. The correct-or-partially-correct rate combined the 2 categories over all 73 questions and was not interpreted as clinical acceptability. Agreement statistics were calculated from the independent ratings before aggregation; item-level ratings are provided in Multimedia Appendix 6.

The evaluation comprised distinct comparisons. The initial three-condition comparison used Qwen2.5-7B-Instruct with graph retrieval and synthesis, retrieval alone without synthesis, and the model alone without graph access. The original generation call had no specified output-token limit, and many Qwen2.5-7B-Instruct responses were truncated or degenerate: 62/73 model-only responses were truncated after their first item and ended with a chat-template artifact (a bare user turn), 6/73 complete-system responses contained such an artifact, and 5/73 complete-system responses degenerated into repetition or garbled text (9 distinct responses). All responses were retained and rated as produced (Multimedia Appendix 4). A separate six-configuration comparison varied retrieval while holding the DeepSeek-V4-Pro generation model constant. A generation-model comparison held the graph, retrieval procedure, question set, prompt templates, and raters constant while comparing Qwen2.5-7B-Instruct with DeepSeek-V4-Pro, both with a 6000-token output limit. These configurations were reported separately; the initial and token-limited Qwen results were not pooled. The additional DeepSeek comparison with and without graph retrieval is described below. Reuse of the question set across these comparisons does not constitute multiple independent validation cohorts. The DeepSeek answers in the generation-model comparison were the identical 73 answers from the baseline configuration (A0: no hub suppression or predicate constraint) used in the six-configuration comparison; they were not regenerated. The same 2 physicians assessed those answers in 2 separate blinded rating rounds using the same rubric. The six-configuration ratings were retained as the baseline of the retrieval-configuration comparison, whereas the generation-model comparison used the separate reassessment. Neither set of labels replaced the other, and the repeated ratings were not pooled or treated as independent response generations.

Matched Comparison With and Without Graph Retrieval

To assess the incremental contribution of graph retrieval with a fixed generation model, an additional comparison used the same 73 independently authored questions. Both conditions used deepseek-v4-pro through the DeepSeek API, with temperature 0.1, a maximum output of 6000 tokens, and the same default LangChain ChatOpenAI stopping mechanism. The conditions were run in a single batch on October 9, 2026, alternating within each question, with one response per condition per question.

Question text and the system prompt were shared between conditions. The graph-assisted condition used entity recognition and baseline JSON retrieval and supplied up to the first 15 triples as optional reference information, with an instruction to answer using the question and this information. The model-only condition performed no entity recognition or graph retrieval and received only the question and a request to answer directly. Questions are identified throughout by their number in the 73-item set, from Q001 to Q073.” The identifiers are written as Q followed by 3 digits. For 8 questions with empty retrieval (Q007, Q013, Q014, Q032, Q039, Q041, Q044, and Q063), the graph-assisted user message was identical to the model-only message. These questions remained in the analysis. The original system prompt retained the project term MSI-HBP in both conditions. The exact prompts and the exported run record are listed in Multimedia Appendix 4.

The same blinded rating procedure and rubric were applied, and consensus ratings were analyzed. All 73 paired questions were retained regardless of retrieval success or perceived context usefulness. Strict-correctness outcomes were compared with the exact two-sided McNemar test. Wilson 95% CIs were calculated for each condition’s strict accuracy. Correct-or-partially-correct rates and recorded safety flags were reported separately. No equivalence margin or equivalence analysis was specified. Question-level ratings are identified in Multimedia Appendix 6.

The run record states that the original JSON archive retained up to 10 retrieved triples per question. Its export reconstructed the first 15 triples from the saved recognized entities using the baseline retrieval procedure. Inspection of context repetition used these reconstructed lists, compared as ordered lists of triple strings. This qualitative analysis describes the exported contexts rather than an independently verified complete contemporaneous prompt log.

Validation of Curated Relations

The original review used 100 relations stratified by predicate from an earlier, unpublished local development version of the graph: 54 TREATS, 30 COMPOSED_OF, 10 USES, and 6 CAUSES. The allocation was not proportional to the final graph, and its original rationale was not preserved. All 100 relations were present in that version. Twenty were removed during subsequent graph curation, but the original review list was retained. The answer summaries in Multimedia Appendix 5 were generated later using the updated graph, after those removals; the relation list and the summaries therefore refer to different graph versions. We therefore restricted the analysis to the 80 reviewed relations whose subject-predicate-object triples were present in release v2.0: 47 TREATS, 21 COMPOSED_OF, 6 USES, and 6 CAUSES. The other 20 relations (7 TREATS, 9 COMPOSED_OF, and 4 USES) were excluded from the released-graph analysis. This is the intersection of the earlier review sample and the released graph, not a newly drawn stratified sample of the 312 released relations. Multimedia Appendix 5 retains all 100 original ratings, identifies release membership, and provides the 80-relation analysis.

Two TCM clinicians who had not assembled the graph independently classified the relations as confirmed, partially confirmed, or rejected, using separate worksheets. The answer-summary column and its contents were added after both independent rating and consensus discussion were complete and were not part of the material presented to the reviewers. The reviewers were an attending physician with 10 years of clinical experience and an associate chief physician with 15 years of experience. Among the 80 retained relations, the 47 TREATS relations had publication sources; the other 33 were assessed against their recorded textbook or theoretical sources and the reviewers’ clinical knowledge. Disagreements were resolved by discussion; a senior clinician was available if required. Partial confirmation did not count as confirmation in the strict analysis.

We report confirmation proportions with 95% Wilson CIs. Observed agreement, quadratic-weighted Cohen kappa [16], and Gwet AC1 [17] describe the initial independent ratings in the retained subset. For AC1, all 3 prespecified rating categories were retained, and a 95% percentile interval was calculated from 20,000 bootstrap resamples of the paired ratings (seed 20261028). These statistics describe the reviewed subset; they are not design-weighted estimates for the whole graph or measures of extraction accuracy, causal validity, or clinical efficacy.

Software Availability and Reproducibility

The project maintains a public GitHub repository [18] under the identifier MSI-HBP-knowledge-graph, retained from the original project name. The repository provides source code, data, and evaluation directories and is released under the Massachusetts Institute of Technology (MIT) license. The implementation supports JSON and Neo4j representations, entity recognition and synonym normalization, relation retrieval, and answer generation. The matched experiment used the JSON backend described above. The item-level evaluation records reported in this revision are provided as Multimedia Appendices 4-6.


Data Cleaning Pipeline Outcomes

Table 2 distinguishes candidate processing from the final curated resource. Raw extraction produced 1004 entity records representing 926 unique names and 1290 candidate triples. Fusion yielded 1002 entity records representing 924 unique names and 1144 triples; restricting predicates retained 1012 candidate triples. The final curated resource contained 997 term-type assignments over 956 unique terms and 312 relations. Because 274 final relations were absent from the extraction output, ratios of final to candidate relation counts were not interpreted as retention rates. All final relations used one of the 4 ontology predicates and had both endpoints represented in the entity index.

Table 2. Entity and relation counts at each stage of knowledge base construction.a
StageEntity recordsUnique namesTriples
Raw LLMb extraction10049261290
Knowledge fusion10029241144
Ontology restriction (4 core predicates)—c—c1012
Expert-curated final relation set997956312

aThe final row describes the curated resource, not another filtering step. Its entity count represents term-type assignments; 38 of its 312 relations occurred in the extraction output, and 274 did not.

bLLM: large language model.

cThis indicates an unreported stage-specific count.

Knowledge Graph Composition

The resource comprised an entity index of 956 unique terms, with 997 term-type assignments across 25 types, and a graph of 101 nodes with 312 directed relations (Table 1). Graph nodes were reported as herbs (52), formulas (18), symptoms (14), treatment methods (8), pathogeneses (8), and disease (1). Relations comprised TREATS (171/312, 54.8%), COMPOSED_OF (84/312, 26.9%), CAUSES (32/312, 10.3%), and USES (25/312, 8.0%). Both endpoints of all 312 relations resolved to indexed terms. Source category A included 171/312 (54.8%) relations linked to 46 identifiable publications in the corpus; category B included 84/312 (26.9%) relations attributed to the textbook; and category C included 57/312 (18.3%) relations attributed to theoretical sources (Table 3). The highest degree values were observed for hypertension (57), anxiety (50), depression (34), and insomnia (32). Together, these 4 nodes were the targets of 173 of 312 relations (55.4%). These summaries describe the stored knowledge structure and source attribution.

Table 3. Source categories of the 312 curated relations by predicate.a
Source categoryTREATSCOMPOSED_OFCAUSESUSESTotal
Ab171000171
Bc0840084
Cd00322557
Total171843225312

a These are source categories, not clinical evidence grades.

bA denotes attribution to a specific publication.

cB denotes attribution to the textbook Formulas of Chinese Medicine.

dC denotes attribution to traditional Chinese medicine theoretical sources.

Expert Confirmation of Curated Relations

Among the 80 reviewed relations present in release v2.0, the reviewers initially assigned identical labels to 77/80 (96.3%). Reviewer 1 classified 78 as confirmed, 2 as partial, and none as rejected; reviewer 2 classified 79 as confirmed, none as partial, and 1 as rejected. Quadratic-weighted Cohen kappa was -0.02, and Gwet AC1 was 0.96 (95% bootstrap CI 0.91‐1.00). The difference between these coefficients reflects their different chance-agreement corrections under the strongly concentrated rating distributions. After consensus, 79/80 relations were confirmed (98.8%, 95% Wilson CI 93.3%‐99.8%). Relation-specific confirmation was 47/47 for TREATS (100%, 95% CI 92.4%‐100%), 21/21 for COMPOSED_OF (100%, 95% CI 84.5%‐100%), 6/6 for USES (100%, 95% CI 61.0%‐100%), and 5/6 for CAUSES (83.3%, 95% CI 43.6%‐97.0%). Of the 3 initial disagreements, 1 differed by two rating categories and 2 by one; consensus classified 2 as confirmed and 1 as rejected. These results describe expert confirmation of the reviewed subset of released relations under the stated source-assessment procedure.

Independent Blinded Evaluation

In the initial 3-condition comparison, the complete system answered 65 of 73 questions (89%) and abstained on 8/73 (11%). Responses were fully correct for 5/73 questions (7%), partially correct for 24/73 (33%), and incorrect for 36/73 (49%). The correct-or-partially-correct rate was 29/73 (40%, 95% CI 29%‐51%). Retrieval alone yielded 0 fully correct, 5 partially correct, 60 incorrect, and 8 abstained responses; its correct-or-partially-correct rate was 5/73 (7%, 95% CI 3%‐15%). The model-only condition answered all 73 questions, with 0 fully correct, 13 partially correct, and 60 incorrect responses, giving a correct-or-partially-correct rate of 13/73 (18%, 95% CI 11%‐28%). Because 62/73 model-only responses were truncated by a chat-template artifact, this condition characterizes the configuration as run and does not estimate the unaided capability of Qwen2.5-7B-Instruct. Table 4 reports all rating categories. Initial interrater agreement was 186/219 (84.9%; Gwet AC1=0.82). For the complete-system versus retrieval-only comparison, 26 questions were correct or partially correct only with synthesis and 2 only with retrieval alone (McNemar P<.001). This contrast compared answers generated from retrieved relations with presentation of the relations alone. Six of the 8 formula-composition questions named formulas absent from both the entity index and the graph (Q013, Q014, Q038, Q039, Q062, and Q063). Q038 asked about Huanglian Wendan Tang; its partial string match to the indexed Wendan Tang did not establish coverage of the requested formula. A potential safety concern was recorded for Q012 in both the complete-system and retrieval-only conditions; safety flags were assessed separately from correctness.

Table 4. Initial 3-condition comparison on the 73 independently authored questions.a
OutcomesComplete system, n (%)Retrieval only, n (%)Model onlyb, n (%)
Correct5 (7)0 (0)0 (0)
Partially correct24 (33)5 (7)13 (18)
Incorrect36 (49)60 (82)60 (82)
Abstained8 (11)8 (11)0 (0)
Correct or partially correct29 (40)5 (7)13 (18)

aValues are n (%), with N=73 in each condition. Strict accuracy counts only the correct category; the combined category does not denote clinical acceptability. Percentages are rounded to whole numbers.

bIn the model-only condition, 62/73 responses were truncated by a chat-template artifact (Multimedia Appendix 4).

Comparison of Generation Models

In the separate generation-model comparison, both conditions used a 6000-token output limit. Qwen2.5-7B-Instruct produced 9/73 fully correct responses (12%, 95% CI 7%‐22%), 26 partially correct responses, 30 incorrect responses, and 8 abstentions. Seven of the 73 Qwen responses still contained a chat-template artifact despite the token limit, and one additional response (Q019) showed degenerate repetition. DeepSeek-V4-Pro produced 26/73 fully correct responses (36%, 95% CI 26%‐47%), 33 partially correct responses, 2 incorrect responses, and 12 abstentions (Table 5). The correct-or-partially-correct rates were 35/73 (48%, 95% CI 37%‐59%) and 59/73 (81%, 95% CI 70%‐88%), respectively. Twenty-five questions met this combined outcome only with DeepSeek and 1 only with Qwen (McNemar P<.001). Initial interrater agreement was 132/146 (90.4%) (Gwet AC1=0.87), and neither condition had a recorded fabrication flag. This comparison measured differences between the tested generation configurations; it did not isolate the contribution of graph retrieval. The Qwen response to Q012 carried a safety flag despite being rated fully correct, illustrating the distinction between the correctness category and the separate safety assessment.

Table 5. Generation-model comparison with a 6000-token output limit on the same 73 questions.a
OutcomesQwen2.5-7B-Instruct, n (%)DeepSeek-V4-Prob, n (%)
Correct9 (12)26 (36)
Partially correct26 (36)33 (45)
Incorrect30 (41)2 (3)
Abstained8 (11)12 (16)
Correct or partially correct35 (48)59 (81)

aValues are n (%), with N=73 in each condition. The graph, retrieval procedure, question set, prompt templates, and raters were held constant. Table 6 retains the original 6-configuration rating results for its A0 baseline. Neither table reports the additional matched experiment in Table 7.

bThe DeepSeek column reports a separate blinded reassessment of the 73 A0 answers in Table 6 by the same 2 physicians using the same rubric; no answers were regenerated.

Table 6. Retrieval configurations evaluated on the 73 questions.a
OutcomeA0b,cD1dD1.5eD2fD3gD4h
Correct, n (%)25 (34)24 (33)16 (22)16 (22)17 (23)14 (19)
Partially correct, n (%)22 (30)25 (34)20 (27)12 (16)18 (25)12 (16)
Incorrect, n (%)9 (12)11 (15)11 (15)3 (4)11 (15)4 (5)
Abstained, n (%)17 (23)13 (18)26 (36)42 (58)27 (37)43 (59)
Responses, n (%)56 (77)60 (82)47 (64)31 (42)46 (63)30 (41)
Correct or partial, n (%)47 (64)49 (67)36 (49)28 (38)35 (48)26 (36)
Correct or partial, % (95% CIi)53‐7456‐7738‐6128‐5037‐5926‐47
Conditional accuracyj, n/N (%)25/56 (45)24/60 (40)16/47 (34)16/31 (52)17/46 (37)14/30 (47)
Fabrication flagsk, n0 (0)0 (0)0 (0)0 (0)0 (0)0 (0)
Safety flagsk, n1 (1)1 (1)1 (1)0 (0)1 (1)0 (0)

aEach configuration includes 73 questions. Category counts were calculated from the reconstructed item-level rating archive. Percentages were rounded once from the underlying counts. Table 5 reports a separate blinded reassessment of the identical 73 answers using the same rubric and physicians; its ratings do not replace this baseline.

bA0: no hub suppression or predicate constraint.

cA0 uses the 6-configuration rating results.

dD1: soft hub suppression.

eD1.5: soft suppression plus predicate constraints.

fD2: hard suppression.

gD3: predicate constraints without hub suppression.

hD4: hard suppression plus predicate constraints and low-confidence abstention.

iCIs use the Wilson method.

jConditional accuracy is fully correct responses divided by substantive answers.

kFabrication and safety counts follow the archived flag summary.

Table 7. Additional matched DeepSeek comparison with and without graph retrieval.a
OutcomesGraph-assistedModel-only
Questions with consensus ratings, n (%)73 (100)73 (100)
Correct, n (%)50 (68)57 (78)
Partially correct, n (%)22 (30)15 (21)
Incorrect, n (%)1 (1)1 (1)
Abstained, n (%)0 (0)0 (0)
Correct or partially correct, n (%)72 (99)72 (99)
Strict accuracyb, % (95% CI)68 (57‐78)78 (67‐86)

aValues are n (%) unless otherwise specified, with N=73 in each condition. Safety flags are separate; blank safety cells are not interpreted as confirmed absence of concerns. The exact paired McNemar P value is .09.

bStrict accuracy counts only fully correct responses.

The same 73 DeepSeek answers received different final categories on 17/73 (23%) questions across the 2 blinded rating rounds. In the six-configuration round, A0 had 25 fully correct, 22 partially correct, 9 incorrect, and 17 abstained responses, giving a correct-or-partially-correct rate of 47/73 (64%) and a response rate of 56/73 (77%). In the generation-model round, the corresponding counts were 26, 33, 2, and 12, giving 59/73 (81%) and 61/73 (84%). These differences reflect different ratings of identical answers, not changes in generated output.

Retrieval Strategy Ablation

Six retrieval configurations were evaluated, including the unmodified baseline (Table 6). Configurations varied hub suppression, predicate constraints, and, in one combined configuration, abstention for low-confidence retrieval. The hub criterion was a node degree greater than 5 times the graph’s mean degree (mean 6.18, calculated as 2 × 312/101; threshold 30.9), selecting hypertension, anxiety, depression, and insomnia. Correct-or-partially-correct responses numbered 47/73 (64%) for A0, 49/73 (67%) for D1, 36/73 (49%) for D1.5, 28/73 (38%) for D2, 35/73 (48%) for D3, and 26/73 (36%) for D4. Hard suppression reduced the response rate from 56/73 (77%) to 31/73 (42%), while conditional accuracy increased from 25/56 (45%) to 16/31 (52%). Initial ratings agreed for 387/438 responses (88.4%), with 51 disagreements. No fabrication flags were recorded in any configuration. Potential safety concerns were recorded once each in A0, D1, D1.5, and D3 and not in D2 or D4. The highest combined-outcome point estimate was observed with soft suppression; these descriptive results do not establish a general absence of benefit from retrieval changes.

Failure Analysis

Relations were concentrated around 4 hub nodes: 173/312 (55.4%) terminated at hypertension, anxiety, depression, or insomnia. Of the 57 terms linked to these hubs, 53/57 (93%) were linked to at least two. All 49 linked terms classified as treatment methods, formulas, or herbs were connected to at least 2 hubs. The 4 terms connected to only one hub were phlegm-dampness, liver yang hyperactivity, qi deficiency, and blood stasis, each linked to hypertension. Thus, shared hub connectivity occurred for both broad treatment concepts and more specific formula associations. These observations characterize this graph; they do not establish that every structure-based ranking method would behave identically or fail.

Using the full 956-term index identified entities in 70 of 73 questions, compared with 69 when matching was restricted to the 101 connected terms. Only Q063 matched exclusively to terms without graph relations. Entity recognition and successful retrieval were treated as distinct steps: recognizing a term did not establish that relevant relations would be returned. Exact formula-name coverage was incomplete in both layers: 6 of the 8 formula-composition questions named formulas absent from both the index and the graph. One of these, Q038, asked about Huanglian Wendan Tang but could partially match Wendan Tang, illustrating that string recognition does not establish coverage of the requested formula.

Matched Comparison With and Without Graph Retrieval

All 73 questions had a response and consensus rating in each condition. The graph-assisted condition yielded 50/73 fully correct responses (68%, 95% CI 57%‐78%), 22/73 partially correct responses (30%), and 1/73 incorrect response (1%). The model-only condition yielded 57/73 fully correct responses (78%, 95% CI 67%‐86%), 15/73 partially correct responses (21%), and 1/73 incorrect response (1%). Neither condition had a response classified as abstained. Both conditions had 72/73 responses rated correct or partially correct (99%; Table 7).

Forty-seven question pairs were fully correct in both conditions, 3 only in the graph-assisted condition, 10 only in the model-only condition, and 13 in neither condition. The exact two-sided McNemar test for strict accuracy yielded P=.09. The comparison did not demonstrate improved strict accuracy with graph retrieval and did not establish equivalence. The physicians initially agreed on 134/146 ratings (91.8%). Q064 had a potential safety concern marked in both conditions; both responses were rated partially correct.

Exploratory Inspection of the Displayed Retrieval Contexts

The reconstructed context export contained nonempty lists for 65/73 questions (89%). There were 16 distinct ordered lists; the same 15-triple list occurred in 49/65 questions with nonempty retrieval (75%). All 13 pairs with discordant strict-correctness outcomes had this same displayed context in the graph-assisted condition. In 2 of the 3 pairs favoring the graph-assisted condition, the answer element identified in the rating note was absent from the displayed triples: Buyang Huanwu Tang in Q022 and longan aril in Q067. These observations do not identify the source of the answer differences or demonstrate a stable causal effect of graph context.

Illustrative Use Cases

Three representative use cases illustrate the principal query patterns supported by the system.

Composition Query

A composition query such as “What herbs compose Tianma Gouteng Decoction?” identifies the formula and retrieves its stored COMPOSED_OF relations. In the Neo4j implementation, the query matches the named Formula node and returns its connected Herb nodes. The output presents the constituents represented in the graph and any available source attribution. This illustrates a supported lookup operation; its completeness depends on the stored relations. Figure 4 distinguishes the displayed retrieved relations from the generated answer.

‎
Figure 4. Interface example for a Tianma Gouteng Decoction composition query. A denotes question input. B denotes generated response listing 11 herbs and a formula rationale. C denotes recognized terms and the retrieved relations displayed in the interface; 3 COMPOSED_OF relations are visible. D denotes resource statistics. The generated answer and the displayed retrieval evidence are separate outputs; this example does not establish that every generated statement is supported by the visible triples or that the answer is clinically suitable.
Treatment-Relation Query

A treatment-relation query such as “Which formulas treat hypertension?” retrieves formula nodes linked to hypertension by stored TREATS relations. The response organizes the associations represented in the resource. Such an output is not a complete inventory of treatment options and does not establish the clinical suitability of a formula for an individual patient.

Pathogenesis Relation Query

A pathogenesis-relation query such as “What symptoms does Liver Qi Stagnation cause?” follows stored CAUSES edges and returns the linked symptom terms. This illustrates retrieval of a represented TCM relation; traversal of a predicate labeled CAUSES does not independently validate a causal mechanism.


Principal Findings

This study produced a focused TCM knowledge resource for hypertension with emotional comorbidity and evaluated both its curated relations and its question-answering implementation. The resource includes an index of 956 terms and a graph of 101 nodes and 312 relations, assembled through LLM-assisted expert curation using 419 bibliographic records and supplementary textbook and theoretical sources. Experts confirmed 79/80 previously reviewed relations present in the released graph (98.8%). This subset confirmation rate supports the consistency of the assessed relations with the review criteria; it does not establish extraction accuracy, comprehensive domain coverage, or clinical efficacy.

The additional matched DeepSeek experiment provided the most direct assessment of the incremental effect of graph retrieval in the tested configuration. Strict accuracy was 50/73 (68%) with graph retrieval and 57/73 (78%) without it. Three paired outcomes favored the graph-assisted condition and 10 favored the model-only condition (exact McNemar P=.09). Thus, this experiment did not demonstrate an improvement in strict accuracy from adding the graph, and the observed difference favored the model-only condition. The result does not establish equivalence. Both conditions had 72/73 answers rated correct or partially correct (99%), illustrating how the combined category can conceal differences in fully correct responses.

The contribution is a domain-specific resource together with an empirical account of what its current implementation supports. The graph makes selected relations and their source categories available for structured inspection, while the evaluations distinguish that resource contribution from an unproven improvement in generated answers. The findings provide a concrete basis for further tests of coverage and retrieval relevance without assuming that a curated graph will necessarily improve a capable language model.

Contribution of the Curated Resource

The resource organizes terminology and selected associations among pathogeneses, treatment methods, formulas, and herbs within a defined literature-based scope. Publication attribution for 171 relations, textbook attribution for 84, and theoretical-source attribution for 57 allow users to inspect the type of source underlying a stored association. This organization is a tangible output: terms, relations, and sources can be examined together rather than only as unstructured records. However, source attribution identifies where an association came from, not the strength of evidence for treatment benefit. In particular, a TREATS relation represents a recorded association and should not be interpreted as an independently validated therapeutic recommendation.

Human curation was central to this output. Only 38 of the 312 final relations appeared in the extraction output; the other 274 did not. Accordingly, expert confirmation of the reviewed subset of released relations cannot validate the extraction performance of Qwen2.5-7B-Instruct. The construction experience documents the use of a small model within a human-led workflow, but it does not establish an efficient or cost-effective automatic extraction method: neither an annotated extraction benchmark nor a comparison of curation time and cost was available. Reporting candidate extraction and final curation separately makes the resource and the contribution of human judgment easier to assess.

Interpretation of the Comparative Evaluations

The earlier evaluations addressed different questions. The initial complete-system versus retrieval-only comparison evaluated the addition of answer generation to retrieved content; it did not isolate the benefit of adding a graph to the same model. The model-only condition of that round was largely truncated by generation artifacts, so the difference between the complete system and the model-only condition in Table 4 should not be read as the effect of graph access. In the generation-model comparison, fully correct answers numbered 9/73 (12%) with Qwen and 26/73 (36%) with DeepSeek. Correct-or-partially-correct answers numbered 35/73 (48%) and 59/73 (81%), respectively (paired P<.001 for this combined outcome). These results describe differences between model responses under the labels assigned in that rating round. The same DeepSeek answers received different ratings in the six-configuration round, so the absolute rates cannot be treated as stable properties of those answers across rating occasions. They do not identify generation as the principal bottleneck or show that the graph supplied the knowledge responsible for the difference. The later matched experiment is reported separately and is not interpreted as a longitudinal improvement over the earlier DeepSeek results.

The 6 retrieval configurations yielded response and correctness rates that varied across settings (Table 6). These descriptive comparisons do not establish a general absence of benefit from retrieval changes. Likewise, concentration of 173/312 relations (55.4%) around 4 target nodes describes the current graph but does not prove that topology alone caused the observed errors or that every structural ranking method must fail. Generation, question coverage, entity matching, retrieval relevance, and prompt wording can interact; these experiments do not isolate their individual contributions.

The reconstructed context export suggests a specific issue for further study. The same 15-triple list appeared for 49/65 questions with nonempty retrieval (75%), including all 13 pairs with discordant strict-correctness outcomes. Repeated context across different questions raises the possibility that retrieval was insufficiently specific to the information requested. However, the reconstruction is not an independently verified complete runtime prompt log, and this pattern does not establish why an answer changed. In 2 of the 3 pairs favoring graph assistance, the distinguishing answer element was absent from the displayed triples. Individual favorable cases therefore do not, by themselves, demonstrate direct transfer of the required knowledge from the graph.

Relation to Prior TCM Knowledge Graph Systems

Prior systems establish the broader context for this work (Table 8). T-Know combined structured knowledge with dialogue and interactive retrieval [9]. OpenTCM applied GraphRAG (graph retrieval-augmented generation) to a corpus of gynecological classics and evaluated ingredient retrieval and diagnostic questions with expert ratings [10]. TCMKG integrated a Xin’an case-derived graph with LLM generation and used automated and expert evaluation [11]. Duan et al [12] combined case-based graph construction with question answering and also reported human ratings against models without RAG. These studies preclude treating graph-assisted generation, expert curation, or model-only comparisons as novel in themselves.

Table 8. Selected TCMa knowledge graph systems and their reported evaluation designsb.
SystemKnowledge sourceConstruction/retrieval approachReported scaleEvaluation design
T-Know (2018) [9]Clinical records, guidelines, textbooks, classics, and publicationsNLPc extraction; dialogue and interactive retrieval10,000+nodes; 220,000 relationsSystem demonstration
OpenTCM (2025) [10]68 gynecological classicsLLMd extraction and GraphRAGe48,406 entities; 152,754 relations200 ingredient queries and 200 diagnostic questions, 5 expert raters, model comparisons
TCMKGf (2026) [11]Xin’an medical casesExpert-guided extraction prompts, Cypher retrieval and LLM generation37,192 entities; 130,030 relationsRAGASg and expert ratings; 20 questions for human evaluation; compared models; all used KGh retrieval
Case-record KG-LLM (2024) [12]679 cases from Wang Zhongqi, covering 41 diseasesLLM extraction with manual normalization, graph-assisted generation679 source casesRAGAS; human ratings on 20 questions, including comparison with models without RAGi
This work419 bibliographic records plus textbook and theory sourcesQwen-assisted candidate processing and expert curation956 indexed terms, 101 graph nodes, 312 relations73 independently authored questions, blinded ratings, retrieval-only and model-only controls, additional matched DeepSeek comparison

aTCM: traditional Chinese medicine.

bStudies are illustrative rather than exhaustive. Scale and evaluation design refer to the cited versions; scores are not directly comparable across different question sets and rating procedures.

cNLP: natural language processing.

dLLM: large language model.

eGraphRAG: graph retrieval-augmented generation.

fTCMKG: traditional Chinese medicine knowledge graph.

gRAGAS: retrieval-augmented generation assessment.

hKG: knowledge graph.

iRAG: retrieval-augmented generation.

The current study contributes a contemporary, narrowly scoped resource and an evaluation combining independently authored questions, blinded physician ratings, and a matched comparison with and without graph retrieval. This design makes the distinction between relation-level confirmation and downstream answer quality explicit. Table 8 describes differences in sources and evaluation designs; it does not rank systems by performance. Differences in question sets, reference answers, rating scales, and model configurations prevent direct comparison of their reported scores.

Potential Uses and Clinical Boundaries

The implemented queries demonstrate that stored formula, herb, and pathogenesis relations can be retrieved and inspected. This functionality provides a basis for research-oriented source checking and exploration of selected associations. Literature navigation is therefore a plausible application to evaluate, but this study did not measure whether the graph improves search time, source-finding completeness, user understanding, or decisions compared with conventional literature tools. The resource should be described as a prototype for these tasks, with its practical benefit still requiring direct assessment.

Clinical use would require a different level of evidence. Only 9 of the 35 formulas named in the independent question set were retrievable from the graph, and the representation does not explicitly encode the contextual fit between syndrome patterns and formulas. In addition, correctness and safety are distinct: a response can contain expected answer elements while also including a potentially unsafe statement. In the matched experiment, Q064 was rated partially correct and flagged for a potential safety concern in both conditions. Neither the combined correctness category nor the observed agreement between raters establishes clinical acceptability. No patient-level outcome evaluation or prospective clinical validation was performed, and the findings do not support deployment for diagnosis or prescribing.

Limitations

First, the source material consisted of titles, keywords, and abstracts, limiting the detail available for extraction and source checking. The search combined hypertension and anxiety; depression and insomnia were represented through overlap with that literature, and mental stress-induced hypertension was minimally represented. The resource therefore reflects its assembled corpus rather than comprehensive coverage of hypertension with emotional comorbidity. The gap between 956 indexed terms and 101 connected graph nodes further limits the relations available for retrieval. Without an independently annotated reference relation set, domain-level recall cannot be estimated.

Second, relation validation was restricted after review to the 80 relations shared by an earlier 100-relation sample and the released graph. This subset was not a new probability sample of the 312 released relations; its confirmation proportion therefore describes the reviewed subset and is not a design-weighted estimate of whole-graph precision. Of the 20 excluded relations, 17 had been confirmed and 3 rejected at consensus. Thus, 3 of the 4 originally rejected relations were excluded, and the higher confirmation proportion in the retained subset should not be interpreted as improved graph quality. Publication-linked, textbook-based, and theoretical relations also differed in the sources available to the reviewers. Expert confirmation does not establish causal validity or intervention efficacy, and the study did not validate a clinical evidence-grading system.

Third, the question set contained 73 items from 3 clinicians at 3 institutions in 1 province, and both raters came from one department. Independent question authorship reduces direct dependence on graph-derived questions, but the sample does not represent the full range of clinical information needs. The same questions were reused across evaluations; the matched experiment was an additional comparison on this set, not validation on a new cohort of questions. It used one generated response per condition per question and therefore did not quantify variation across repeated generations. In the initial comparison, most model-only responses and some complete-system responses were truncated or degenerate because no output-token limit had been set; those results describe the configuration as run rather than the capability of the generation model. Eight questions produced no retrieved context and received identical user messages in the 2 conditions. Keeping them in the primary analysis describes the complete implementation, while limiting what can be inferred about the effect of nonempty contexts. The comparison tested the graph-assisted retrieval-and-prompt configuration as a whole; it did not separate context content from the accompanying instruction. With only 13 discordant strict-correctness pairs, the comparison also leaves substantial uncertainty about the size and direction of an effect beyond these questions.

Repeated assessment by the same physicians also revealed variation between blinded rating rounds. Identical DeepSeek answers received different final categories on 17/73 questions (23%), with correct-or-partially-correct rates of 47/73 (64%) in the six-configuration round and 59/73 (81%) in the generation-model round. This limits confidence in the stability of the absolute rating-based estimates. These are differences in ratings of the same outputs; the study did not isolate their cause.

Finally, the correctness rubric and item-level safety flags do not constitute a validated assessment of clinical utility or risk. The exploratory inspection of retrieved contexts relied on a reconstructed export because the original archive retained only the first 10 triples per question. Its findings require confirmation against complete runtime records. These constraints limit mechanistic explanations of the observed differences. No inference about a generalization gap is based on the withdrawn internal evaluation, and comparisons across separate experimental rounds are not treated as controlled estimates of improvement.

Directions for Further Evaluation

The observed coverage gaps and repeated contexts motivate testable development questions. One is whether adding missing, question-relevant relations improves performance on newly authored questions. Another is whether explicit syndrome–formula context and more specific entity matching reduce irrelevant retrieval. Increasing edge count or density alone should not be assumed beneficial: any proposed additions should be assessed for relevance, source support, and their effect on downstream answers. Retrieval changes should be evaluated with the generation model, prompts, and question set otherwise held fixed, followed by confirmation on a new question set to reduce adaptation to the current evaluation.

Future comparisons should retain a matched model-only condition, preserve complete prompts and retrieved context at runtime, and report strict correctness, partial correctness, abstention, and safety separately. Repeated generations and prespecified paired analyses could assess stability, while relevance-matched or deliberately noninformative context controls could help distinguish the effects of supplied knowledge from those of context and prompting more generally. A separate user study could compare source-checking accuracy and time with conventional literature search. These studies would test the resource’s practical potential directly rather than infer it from graph size or answer scores.

Conclusions

HTN-EC-knowledge graph is a focused, human-curated TCM resource with LLM assistance, comprising 956 indexed terms, 101 graph nodes, and 312 relations with recorded source attribution. Its contribution is the organized resource and a transparent evaluation of the current question-answering implementation. Expert confirmation of 79 of the 80 reviewed relations present in the release supports assessment of this subset of curated content, whereas the matched DeepSeek comparison did not demonstrate improved strict answer accuracy from adding graph retrieval. Coverage gaps and repeated retrieved contexts identify specific questions for further testing. The resource provides a basis for structured inspection and further development; improvements in literature-navigation performance, clinical usefulness, and safety remain to be established.

Acknowledgments

The authors thank Drs Li Guochen and Zhang Feihu for their assistance with triple validation; Drs Li Xiaoliang, Zhao Chunxiao, and Kong Li for authoring the independent evaluation question set; and Dr Ji Jingkang for assistance with corpus assembly and topic annotation and with the coordination of the independent evaluation. The authors acknowledge the open-source software communities of Neo4j and its official Python driver, LangChain, Streamlit, NetworkX, pyvis, vis.js, and the Qwen project, on which this work depends. YW and GY are co-corresponding authors on this work, and the latter can be reached by email at ygx_sdu@163.com.

Generative AI Use

Qwen2.5-7B-Instruct, accessed through SiliconFlow, was used for candidate entity-relation extraction and answer generation. DeepSeek was used in the 6 retrieval configurations, the generation-model comparison, and the additional matched comparison with and without graph retrieval, as described in the Methods. During manuscript revision, OpenAI Codex was used to assist with organization, English-language drafting and editing, and checks of numerical consistency. The authors remain responsible for reviewing and verifying the text and analyses and for the integrity, accuracy, and originality of the submitted work.

Funding

This work was supported by the 2023 Jinan Clinical Medical Science and Technology Innovation Plan (No. 202328087); the 2025 Shandong Traditional Chinese Medicine Science and Technology General Project (No. M20251839); and the 2026 Joint TCM Science & Technology Projects of National Demonstration Zones for Comprehensive TCM Reform: Research on the Integration of Sepsis Diagnosis and Treatment Protocols and Mechanistic Exploration Based on the “Qi Movement Disorder” Theory of Lu School Emergency Medicine (No. GZY-KJS-SD-2026-059). The funders had no role in the design of the study; in the collection, analysis or interpretation of the data; in the writing of the article; or in the decision to publish the results.

Data Availability

The project repository is available on GitHub [18]. The repository version tagged v2.0.1 contains the source code, curated entity index and relation files, question set and rating rubric, item-level ratings for the initial and generation-model comparisons, and an MIT license. It also archives the corrected relation-review mapping (evaluation/relation_review_release_mapping.csv), statistical results (evaluation/relation_review_statistics.json), reproduction script (evaluation/recalculate_relation_review.py), and updated documentation. The graph data are identical to release v2.0 (commit 9866037). Multimedia Appendices 1-6 provide the entity-type definitions, prompts, source-record bibliography, relation-review worksheet, and question-level evaluation materials that accompany this report. Multimedia Appendix 4 preserves the original 100-relation review and identifies the 80 relations included in the released-graph analysis. The source-record file distributed with v2.0.1 provides bibliographic metadata without abstracts or full-text articles; access to source texts is subject to the applicable database terms.

Authors' Contributions

Conceptualization: YW, GY

Data curation: XS, XZ

Formal analysis: YW

Funding acquisition: YW

Investigation: YW

Methodology: YW

Resources: XZ

Software: XS

Supervision: YW, GY

Validation: XS

Visualization: XS

Writing – original draft: YW

Writing – review & editing: YW, XS, XZ, GY

Conflicts of Interest

None declared.

Multimedia Appendix 1

Bibliographic list and source-database accounting for the 419 input records.

DOCX File, 45 KB

Multimedia Appendix 2

Entity-index types, assignment counts, definitions, and correspondence with connected graph-node types.

DOCX File, 22 KB

Multimedia Appendix 3

Entity-recognition, structured extraction, and answer-synthesis templates, with their construction and question-answering uses.

DOCX File, 19 KB

Multimedia Appendix 4

Question-level original answers for the initial, generation-model, and matched comparisons; 73 reference-answer keys and scoring instructions; and matched-run configuration, exact prompts, recognized entities, and retrieved contexts identified as reconstructed. The six-configuration ratings are linked by question ID, with A0 linked to the identical DeepSeek answers in the generation-model comparison.

XLSX File, 183 KB

Multimedia Appendix 5

The original 100-relation review, source attribution, independent and consensus ratings, release-membership mapping, and analysis of the 80 relations present in the released graph.

XLSX File, 52 KB

Multimedia Appendix 6

Item-level independent and final physician ratings for the initial, generation-model, six-configuration, and matched comparisons; retained anonymization mappings; and a side-by-side record of the 2 rating rounds for the same 73 A0 answers.

XLSX File, 69 KB

  1. Walther LM, Wirtz PH. Physiological reactivity to acute mental stress in essential hypertension-a systematic review. Front Cardiovasc Med. 2023;10:1215710. [CrossRef] [Medline]
  2. Xiong XJ, Wang PQ, Yao KW, Hou JL. Review and prospect of traditional Chinese medicine in treatment of hypertension. Zhongguo Zhong Yao Za Zhi. Dec 2023;48(24):6592-6599. [CrossRef] [Medline]
  3. Wang J, Xiong X, Liu W. Traditional chinese medicine syndromes for essential hypertension: a literature analysis of 13,272 patients. Evid Based Complement Alternat Med. 2014;2014(1):418206. [CrossRef] [Medline]
  4. Weng H, Chen J, Ou A, Lao Y. Leveraging representation learning for the construction and application of a knowledge graph for traditional Chinese medicine: framework development study. JMIR Med Inform. Sep 2, 2022;10(9):e38414. [CrossRef] [Medline]
  5. Liu C, Li Z, Li J, et al. Research on traditional Chinese medicine: domain knowledge graph completion and quality evaluation. JMIR Med Inform. Aug 2, 2024;12:e55090. [CrossRef] [Medline]
  6. Li H, Xia C, Hou Y, Hu S, Liu Y, Jiang Q. TCMRD - KG: Innovative design and development of rheumatology knowledge graph in ancient Chinese literature assisted by large language models. Front Pharmacol. Feb 19, 2025;16:1535596. [CrossRef] [Medline]
  7. Zhao X, Wang Y, Li P, et al. The construction of a TCM knowledge graph and application of potential knowledge discovery in diabetic kidney disease by integrating diagnosis and treatment guidelines and real-world clinical data. Front Pharmacol. May 31, 2023;14:1147677. [CrossRef] [Medline]
  8. Yang R, Ye Q, Cheng C, Zhang S, Lan Y, Zou J. Decision-making system for the diagnosis of syndrome based on traditional Chinese medicine knowledge graph. Evid Based Complement Alternat Med. 2022;2022:8693937. [CrossRef] [Medline]
  9. Liu Z, Peng E, Yan S, Li G, Hao T. T-Know: a knowledge graph-based question answering and information retrieval system for traditional Chinese medicine. In: Proceedings of the 27th International Conference on Computational Linguistics: System Demonstrations. Association for Computational Linguistics; 2018:15-19. URL: https://aclanthology.org/C18-2004/ [Accessed 2026-11-19]
  10. He J, Guo Y, Lam LK, et al. OpenTCM: a GraphRAG-empowered LLM-based system for traditional Chinese medicine knowledge retrieval and diagnosis. arXiv. Preprint posted online on Jun 27, 2025. [CrossRef]
  11. Tang S, Xu Y, Teng Z, et al. TCMKG: Knowledge-grounded question answering in traditional Chinese medicine via dynamic prompt evolution framework. J King Saud Univ Comput Inf Sci. Apr 15, 2026;38:324. [CrossRef]
  12. Duan Y, Zhou Q, Li Y, et al. Research on a traditional Chinese medicine case-based question-answering system integrating large language models and knowledge graphs. Front Med (Lausanne). Jan 7, 2025;11:1512329. [CrossRef] [Medline]
  13. Yu W, Feihu Z, Xinyu W, Aoyan W, Jingkang J, Peng W. Visualization analysis of traditional Chinese medicine treatment for hypertension combined with anxiety. Chin J Behav Med Brain Sci. 2025;34(8):706-711. URL: https://www.yiigle.com/LinkIn.do?linkin_type=DOI&DOI=10.3760/cma.j.cn371468-20250615-00275 [Accessed 2026-11-17]
  14. Yang A, Yang B, Zhang B, et al. Qwen2.5 technical report. arXiv. Preprint posted online on Jan 3, 2025. [CrossRef]
  15. Create a chat completion. SiliconFlow. 2026. URL: https://docs.siliconflow.cn/docs/api/chat-completions-post [Accessed 2026-11-10]
  16. Cohen J. Weighted kappa: nominal scale agreement with provision for scaled disagreement or partial credit. Psychol Bull. Oct 1968;70(4):213-220. [CrossRef] [Medline]
  17. Gwet KL. Computing inter-rater reliability and its variance in the presence of high agreement. Br J Math Stat Psychol. May 2008;61(Pt 1):29-48. [CrossRef] [Medline]
  18. Su X, Zhao X, Yao G, Wang Y. MSI-HBP-Knowledge-Graph. GitHub. 2026. URL: https://github.com/wangyu1984-SDTCM/MSI-HBP-Knowledge-Graph [Accessed 2026-10-29]


‎
CNKI: China National Knowledge Infrastructure
HTN-EC: hypertension with emotional comorbidity
LLM: large language model
MIT: Massachusetts Institute of Technology
MSI–HBP: mental stress induced–high blood pressure
TCM: traditional Chinese medicine
TCMRD-KG: Traditional Chinese Medicine Rheumatic Disease Knowledge Graph
VIP: VIP Database for Chinese Technical Periodicals


Edited by Andrew Coristine, Arriel Benis; submitted 17.May.2026; peer-reviewed by Qingcheng Zeng, Zhou Zuojian; comments to author 10.Aug.2026; final revised version received 14.Oct.2026; accepted 29.Oct.2026; published 01.Dec.2026.

Copyright

© Xiangyu Su, Xiaoxia Zhao, Guixiang Yao, Yu Wang. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 1.Dec.2026.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.