数字中医药(英文)2026,Vol.9Issue(1):13-30,18.DOI:10.1016/j.dcmed.2026.02.003
基于大语言模型的中医泄泻临床决策与处方生成研究
Clinical decision and prescription generation for diarrhea in traditional Chinese medicine based on large language model
摘要
Abstract
Objective To develop a clinical decision and prescription generation system(CDPGS)specif-ically for diarrhea in traditional Chinese medicine(TCM),utilizing a specialized large lan-guage model(LLM),Qwen-TCM-Dia,to standardize diagnostic processes and prescription generation. Methods Two primary datasets were constructed:an evaluation benchmark and a fine-tun-ing dataset consisting of fundamental diarrhea knowledge,medical records,and chain-of-thought(CoT)reasoning datasets.After an initial evaluation of 16 open-source LLMs across inference time,accuracy,and output quality,Qwen2.5 was selected as the base model due to its superior overall performance.We then employed a two-stage low-rank adaptation(LoRA)fine-tuning strategy,integrating continued pre-training on domain-specific knowledge with instruction fine-tuning using CoT-enriched medical records.This approach was designed to embed the clinical logic(symptoms → pathogenesis → therapeutic principles → prescrip-tions)into the model's reasoning capabilities.The resulting fine-tuned model,specialized for TCM diarrhea,was designated as Qwen-TCM-Dia.Model performance was evaluated for dis-ease diagnosis and syndrome type differentiation using accuracy,precision,recall,and F1-score.Furthermore,the quality of the generated prescriptions was compared with that of es-tablished open-source TCM LLMs. Results Qwen-TCM-Dia achieved peak performance compared to both the base Qwen2.5 model and five other open-source TCM LLMs.It achieved 97.05%accuracy and 91.48%F1-score in disease diagnosis,and 74.54%accuracy and 74.21%F1-score in syndrome type differ-entiation.Compared with existing open-source TCM LLMs(BianCang,HuangDi,LingDan,TCMLLM-PR,and ZhongJing),Qwen-TCM-Dia exhibited higher fidelity in reconstructing the"symptoms → pathogenesis → therapeutic principles → prescriptions"logic chain.It provid-ed complete prescriptions,whereas other models often omitted dosages or generated mis-matched prescriptions. Conclusion By integrating continued pre-training,CoT reasoning,and a two-stage fine-tun-ing strategy,this study establishes a CDPGS for diarrhea in TCM.The results demonstrate the synergistic effect of strengthening domain representation through pre-training and activating logical reasoning via CoT.This research not only provides critical technical support for the standardized diagnosis and treatment of diarrhea but also offers a scalable paradigm for the digital inheritance of expert TCM experience and the intelligent transformation of TCM.关键词
泄泻/中医药/大语言模型/临床决策与处方生成/自然语言处理Key words
Diarrhea/Traditional Chinese medicine/Large language model/Clinical decision and prescription gen-eration/Natural language processing引用本文复制引用
吴佳泽,梁昊,戴浩然,芮宏亮,刘宝利..基于大语言模型的中医泄泻临床决策与处方生成研究[J].数字中医药(英文),2026,9(1):13-30,18.基金项目
National Key Research and Development Program of China(2024YFC3505400),Capital Clinical Project of Beijing Municipal Science&Technology Commission(Z221100007422092),and Capital's Funds for Health Im-provement and Research(2024-1-2231). (2024YFC3505400)