首页|期刊导航|中国医疗设备|基于大语言模型的电子病历文本结构化

基于大语言模型的电子病历文本结构化OA

Text Structuring of Electronic Medical Records Based on Large Language Model

中文摘要英文摘要

目的 利用大语言模型(Large Language Model,LLM)进行电子病历文本结构化,验证LLM在文本结构化方面的优越性.方法 采用百度的文心一言,依据优化后的提示语,通过Python调用LLM应用程序编程接口的方式进行电子病历文本结构化,从而得到结构化特征.将提取无误的特征数与提取出的所有特征数之比定为提取准确度,用以评价LLM进行文本结构化的性能.结果 对100份脑卒中患者的电子病历进行文本结构化,按病历统计,平均电子病历文本的每份提取准确度为98.7%,精准度为97.5%,召回率为98.9%;按特征词统计,所有特征词的平均提取准确度、精准度和召回率分别为98.7%、96.4%和98.6%;按特征大类统计,症状、既往史、用药和诊断结果的提取准确度分别为99.3%、98.0%、98.8%和100%.结论 利用LLM进行电子病历文本结构化具有可行性,百度的文心一言在电子病历文本结构化中具有优越性.

Objective To conduct text structuring of electronic medical records using a large language model(LLM)and verify the superiority of LLM in text structuring.Methods Baidu's ERNIE Bot was adopted.Based on the optimized prompt,the text of the electronic medical record was structured by calling the LLM application programming interface with Python,thereby obtaining structured features.The ratio of the number of accurately extracted features to all the extracted features was defined as the extraction accuracy,which was used to evaluate the performance of LLM in text structuring.Results Text structuring was performed on 100 electronic medical records of stroke patients.According to the statistics of the medical records,the average extraction accuracy of each electronic medical record text was 98.7%,the precision was 97.5%,and the recall rate was 98.9%.According to the statistics of feature words,the average extraction accuracy,precision,and recall of all feature words were 98.7%,96.4%,and 98.6%,respectively.According to the statistics of major characteristic categories,the extraction accuracies of symptoms,past medical history,medication use and diagnostic results were 99.3%,98.0%,98.8%and 100%respectively.Conclusion It is feasible to use LLM for the structuring of electronic medical record texts.Baidu's ERNIE Bot has superiority in the structuring of electronic medical record texts.

李佳林;郜斌宇;陈卉

首都医科大学 生物医学工程学院,北京 100069首都医科大学 生物医学工程学院,北京 100069首都医科大学 生物医学工程学院,北京 100069

医药卫生

大语言模型电子病历文本结构化提示语提取准确度文心一言

large language model(LLM)electronic medical recordtext structuringpromptextraction accuracy rateERNIE Bot

《中国医疗设备》 2025 (5)

42-46,52,6

国家自然科学基金(82372094).

10.3969/j.issn.1674-1633.20240857

评论