Benchmarking information extraction of physical activity from electronic health record with large language models: an natural language processing pipeline and comparative evaluation.

IF 7.1 2区 医学 Q1 COMPUTER SCIENCE, INFORMATION SYSTEMS
Han Yang, Zhongran Niu, Mingchen Li, Huixue Zhou, Yongkang Xiao, Sicheng Zhou, Zaifu Zhan, Ying Liu, Shiqin Liu, Christopher J Tignanelli, Genevieve B Melton, Rui Zhang
{"title":"Benchmarking information extraction of physical activity from electronic health record with large language models: an natural language processing pipeline and comparative evaluation.","authors":"Han Yang, Zhongran Niu, Mingchen Li, Huixue Zhou, Yongkang Xiao, Sicheng Zhou, Zaifu Zhan, Ying Liu, Shiqin Liu, Christopher J Tignanelli, Genevieve B Melton, Rui Zhang","doi":"10.1093/jamia/ocag101","DOIUrl":null,"url":null,"abstract":"<p><strong>Objectives: </strong>We aimed to develop a data model and a natural language processing (NLP) pipeline for representing physical activity (PA) in Electronic Health Records (EHRs), and to evaluate transformer- and Large Language Model (LLM)-based classifiers for sentence-level PA attribute classification.</p><p><strong>Materials and methods: </strong>We analyzed PA documentation across three patient cohorts (cancer, COVID, and Alzheimer's disease) using structured and unstructured EHR data. A conceptual schema was developed to represent PA and its linguistic attributes. Five BERT models and three modern LLMs (Llama3-8B, MedAlpaca-13B, and PMC-Llama-13B) were evaluated for classifying PA attributes (binary status, negation, exclusion, and an eleven-class Category) on pre-extracted PA-related sentences.</p><p><strong>Results: </strong>Clinical notes were a richer source of PA information than structured ICD or SDoH data. On binary tasks, the best BERT model reached F1 0.619 (Exclusion); with Supervised Fine-Tuning (SFT), Llama3-8B reached F1 0.689 (Exclusion). On the 11-class Category task, performance was modest (best macro-F1 0.262, ROC-AUC 0.803, by Llama3-8B).</p><p><strong>Discussion: </strong>In-Context Learning (ICL) was highly variable: while Llama3-8B-ICL achieved the best ROC-AUC on Category, the domain-specific MedAlpaca-13B and PMC-LLaMA-13B essentially failed. These results, together with sparsely represented PA elements (Amount, Frequency, Assessment) and the absence of a downstream evaluation, position this work as an initial proof of feasibility, with supervised domain adaptation still required for reliable clinical PA extraction.</p><p><strong>Conclusion: </strong>We contribute a PA data model, annotation schema, and a working NLP pipeline with a BERT/LLM benchmark for sentence-level PA attribute classification. The pipeline supports future end-to-end PA extraction and downstream applications such as phenotyping, risk prediction, and cohort identification.</p>","PeriodicalId":50016,"journal":{"name":"Journal of the American Medical Informatics Association","volume":" ","pages":"1875-1887"},"PeriodicalIF":7.1000,"publicationDate":"2026-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13630298/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of the American Medical Informatics Association","FirstCategoryId":"91","ListUrlMain":"https://doi.org/10.1093/jamia/ocag101","RegionNum":2,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0

Abstract

Objectives: We aimed to develop a data model and a natural language processing (NLP) pipeline for representing physical activity (PA) in Electronic Health Records (EHRs), and to evaluate transformer- and Large Language Model (LLM)-based classifiers for sentence-level PA attribute classification.

Materials and methods: We analyzed PA documentation across three patient cohorts (cancer, COVID, and Alzheimer's disease) using structured and unstructured EHR data. A conceptual schema was developed to represent PA and its linguistic attributes. Five BERT models and three modern LLMs (Llama3-8B, MedAlpaca-13B, and PMC-Llama-13B) were evaluated for classifying PA attributes (binary status, negation, exclusion, and an eleven-class Category) on pre-extracted PA-related sentences.

Results: Clinical notes were a richer source of PA information than structured ICD or SDoH data. On binary tasks, the best BERT model reached F1 0.619 (Exclusion); with Supervised Fine-Tuning (SFT), Llama3-8B reached F1 0.689 (Exclusion). On the 11-class Category task, performance was modest (best macro-F1 0.262, ROC-AUC 0.803, by Llama3-8B).

Discussion: In-Context Learning (ICL) was highly variable: while Llama3-8B-ICL achieved the best ROC-AUC on Category, the domain-specific MedAlpaca-13B and PMC-LLaMA-13B essentially failed. These results, together with sparsely represented PA elements (Amount, Frequency, Assessment) and the absence of a downstream evaluation, position this work as an initial proof of feasibility, with supervised domain adaptation still required for reliable clinical PA extraction.

Conclusion: We contribute a PA data model, annotation schema, and a working NLP pipeline with a BERT/LLM benchmark for sentence-level PA attribute classification. The pipeline supports future end-to-end PA extraction and downstream applications such as phenotyping, risk prediction, and cohort identification.

利用大型语言模型对电子健康记录中身体活动信息的提取进行基准测试:自然语言处理管道和比较评估。
目的:我们旨在开发一个数据模型和自然语言处理(NLP)管道来表示电子健康记录(EHRs)中的身体活动(PA),并评估基于变压器和大语言模型(LLM)的分类器用于句子级PA属性分类。材料和方法:我们使用结构化和非结构化电子病历数据分析了三个患者队列(癌症、COVID和阿尔茨海默病)的PA文档。提出了一种概念图式来表示PA及其语言属性。利用5个BERT模型和3个现代llm (Llama3-8B、MedAlpaca-13B和PMC-Llama-13B)对预提取的PA相关句子的PA属性(二元状态、否定、排除和11类类别)进行分类。结果:临床记录是比结构化ICD或SDoH数据更丰富的PA信息来源。在二值任务上,最佳BERT模型达到F1 0.619 (Exclusion);经监督微调(SFT), Llama3-8B达到F1 0.689(排除)。在11级类别任务上,性能一般(最佳宏观f1为0.262,ROC-AUC为0.803,由Llama3-8B完成)。讨论:In-Context Learning (ICL)是高度可变的:虽然Llama3-8B-ICL在Category上达到了最好的ROC-AUC,但特定领域的MedAlpaca-13B和PMC-LLaMA-13B基本上失败了。这些结果,加上稀疏表示的PA元素(Amount, Frequency, Assessment)和缺乏下游评估,将这项工作定位为可行性的初步证明,可靠的临床PA提取仍然需要有监督的领域适应。结论:我们提供了一个PA数据模型、注释模式和一个具有BERT/LLM基准的句子级PA属性分类的工作NLP管道。该管道支持未来端到端PA提取和下游应用,如表型、风险预测和队列识别。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of the American Medical Informatics Association
Journal of the American Medical Informatics Association 医学-计算机:跨学科应用
CiteScore
14.50
自引率
7.80%
发文量
230
审稿时长
3-8 weeks
期刊介绍: JAMIA is AMIA''s premier peer-reviewed journal for biomedical and health informatics. Covering the full spectrum of activities in the field, JAMIA includes informatics articles in the areas of clinical care, clinical research, translational science, implementation science, imaging, education, consumer health, public health, and policy. JAMIA''s articles describe innovative informatics research and systems that help to advance biomedical science and to promote health. Case reports, perspectives and reviews also help readers stay connected with the most important informatics developments in implementation, policy and education.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书