TCMLLM-PR: evaluation of large language models for prescription recommendation in traditional Chinese medicine

To develop and evaluate a fine-tuned large language model (LLM) for traditional Chinese medicine (TCM) prescription recommendation named TCMLLM-PR. First, we constructed an instruction-tuning dataset containing <styled-content style-type="number">68654</styled-content> samples (approximately 10 million tokens) by integrating data from eight sources, including four TCM textbooks, Pharmacopoeia of the People’s Republic of China 2020 (CHP), Chinese Medicine Clinical Cases (CMCC), and hospital clinical records covering lung disease, liver disease, stroke, diabetes, and splenic-stomach disease. Then, we trained TCMLLM-PR using ChatGLM-6B with P-Tuning v2 technology. The evaluation consisted of three aspects: (i) comparison with traditional prescription recommendation models (PTM, TCMPR, and PresRecST); (ii) comparison with TCM-specific LLMs (ShenNong, Huatuo, and HuatuoGPT) and general-domain ChatGPT; (iii) assessment of model migration capability across different disease datasets. We employed precision, recall, and F1 score as evaluation metrics. The experiments showed that TCMLLM-PR significantly outperformed baseline models on TCM textbooks and CHP datasets, with F1@10 improvements of 31.80% and 59.48%, respectively. In cross-dataset validation, the model performed best when migrating from TCM textbooks to liver disease dataset, achieving an F1@10 of 0.155 1. Analysis of real-world cases demonstrated that TCMLLM-PR's prescription recommendations most closely matched actual doctors’ prescriptions. This study integrated LLMs into TCM prescription recommendations, leveraging a tailored instruction-tuning dataset and developing TCMLLM-PR. This study will publicly release the best model parameters of TCMLLM-PR to promote the development of the decision-making process in TCM practices (<ext-link ext-link-type="uri" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://github.com/2020MEAI/TCMLLM"> https://github.com/2020MEAI/TCMLLM </ext-link>).

Authors

Publication Details

Journal
Digital Chinese Medicine
Published
2024-12-01
DOI
https://doi.org/10.1016/j.dcmed.2025.01.007
Citations
15
Primary Topic
Traditional Chinese Medicine Studies
Type
article
Field-Weighted Citation Impact
10.74
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TCMLLM-PR: evaluation of large language models for prescription recommendation in traditional Chinese medicine

Jian Yu, Yiming Liu, Kuo Yang, Qiang Zhu et al.
15 citations
Digital Chinese Medicine
Traditional Chinese Medicine Studies
10.74
article

TCMLLM-PR: evaluation of large language models for prescription recommendation in traditional Chinese medicine

Jian Yu, Yiming Liu, Kuo Yang, Qiang Zhu, Xuezhong Zhou, Chenxi Zhao, Hongyan Wang, Dong Xin, Lei Zhang, Tian Haoyu, Ye Mingwei, Hu Minjie
article en
15 citations

Abstract

To develop and evaluate a fine-tuned large language model (LLM) for traditional Chinese medicine (TCM) prescription recommendation named TCMLLM-PR. First, we constructed an instruction-tuning dataset containing <styled-content style-type="number">68654</styled-content> samples (approximately 10 million tokens) by integrating data from eight sources, including four TCM textbooks, Pharmacopoeia of the People’s Republic of China 2020 (CHP), Chinese Medicine Clinical Cases (CMCC), and hospital clinical records covering lung disease, liver disease, stroke, diabetes, and splenic-stomach disease. Then, we trained TCMLLM-PR using ChatGLM-6B with P-Tuning v2 technology. The evaluation consisted of three aspects: (i) comparison with traditional prescription recommendation models (PTM, TCMPR, and PresRecST); (ii) comparison with TCM-specific LLMs (ShenNong, Huatuo, and HuatuoGPT) and general-domain ChatGPT; (iii) assessment of model migration capability across different disease datasets. We employed precision, recall, and F1 score as evaluation metrics. The experiments showed that TCMLLM-PR significantly outperformed baseline models on TCM textbooks and CHP datasets, with F1@10 improvements of 31.80% and 59.48%, respectively. In cross-dataset validation, the model performed best when migrating from TCM textbooks to liver disease dataset, achieving an F1@10 of 0.155 1. Analysis of real-world cases demonstrated that TCMLLM-PR's prescription recommendations most closely matched actual doctors’ prescriptions. This study integrated LLMs into TCM prescription recommendations, leveraging a tailored instruction-tuning dataset and developing TCMLLM-PR. This study will publicly release the best model parameters of TCMLLM-PR to promote the development of the decision-making process in TCM practices (<ext-link ext-link-type="uri" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://github.com/2020MEAI/TCMLLM"> https://github.com/2020MEAI/TCMLLM </ext-link>).

Digital Chinese MedicineVol. 7(4)
Quality Education
Openalex Percentile: Top 1%
Traditional Chinese Medicine Studies
10.74
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.