Clinician expertise and prompt engineering enhance cancer information extraction in electronic health records by small language models.

IF 7.4 Q1 MEDICINE, RESEARCH & EXPERIMENTAL
Federica Corso, Vittoria Peppoloni, Laura Mazzeo, Giuseppe Leone, Luana Passos, Vanja Mišković, Justin Armanini, Alberto Ferrarin, Isabella Catharina Wiest, Fabian Wolf, Giulia Montelatici, Rebecca Romanò, Paolo Ambrosini, Tommaso Capoccia, Stefano Natangelo, Simone Rota, Paola Andena, Marta De Ponti, Alessandra Russo, Giulia Stasi, Leonardo Provenzano, Andrea Spagnoletti, Marco Meazza Prina, Chiara Cavalli, Claudia Giani, Roberta Serino, Michele Borracino, Chiara Bonalume, Rosa Maria Di Mauro, Claudia Agosta, Andra Diana Dumitrascu, Giorgia Di Liberti, Giulia Corrao, Teresa Beninato, Monica Ganzinelli, Mario Occhipinti, Marta Brambilla, Claudia Proto, Jakob Nikolas Kather, Alessandra Laura Giulia Pedrocchi, Filippo De Braud, Giuseppe Lo Russo, Paolo Baili, Arsela Prelaj
{"title":"Clinician expertise and prompt engineering enhance cancer information extraction in electronic health records by small language models.","authors":"Federica Corso, Vittoria Peppoloni, Laura Mazzeo, Giuseppe Leone, Luana Passos, Vanja Mišković, Justin Armanini, Alberto Ferrarin, Isabella Catharina Wiest, Fabian Wolf, Giulia Montelatici, Rebecca Romanò, Paolo Ambrosini, Tommaso Capoccia, Stefano Natangelo, Simone Rota, Paola Andena, Marta De Ponti, Alessandra Russo, Giulia Stasi, Leonardo Provenzano, Andrea Spagnoletti, Marco Meazza Prina, Chiara Cavalli, Claudia Giani, Roberta Serino, Michele Borracino, Chiara Bonalume, Rosa Maria Di Mauro, Claudia Agosta, Andra Diana Dumitrascu, Giorgia Di Liberti, Giulia Corrao, Teresa Beninato, Monica Ganzinelli, Mario Occhipinti, Marta Brambilla, Claudia Proto, Jakob Nikolas Kather, Alessandra Laura Giulia Pedrocchi, Filippo De Braud, Giuseppe Lo Russo, Paolo Baili, Arsela Prelaj","doi":"10.1038/s43856-026-01790-5","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Real-world data (RWD) in unstructured electronic health records (EHRs) is crucial for understanding complex diseases like cancer, but extracting structured information is challenging due to linguistic variability, semantic complexity, and privacy concerns. This study evaluates the performance of four small, locally deployable language models for information extraction from Italian EHRs.</p><p><strong>Methods: </strong>We examine three prompting strategies (zero-shot, few-shot, and annotated few-shot) across English and Italian, involving clinicians with varying expertise to assess the impact of prompt design on accuracy. We evaluate the performance of four open-source small language models (SLMs) for clinical information extraction from Italian electronic health records (EHRs) in the APOLLO 11 trial on non-small cell lung cancer (NSCLC). The extraction protocol involves four steps: problem definition, data preprocessing, Large Language Model (LLM)-based information extraction, and output evaluation.</p><p><strong>Results: </strong>We show that general-purpose models (e.g., LLaMA 3.1 8B) outperform biomedical models in most tasks, particularly in extracting binary features. Multiclass variables such as TNM (Tumor, Node, Metastasis) staging, PD-L1 (Programmed death-ligand 1), and ECOG-PS (Eastern Cooperative Oncology Group-Performance Status) are more difficult due to implicit language and lack of standardization. Few-shot prompting and native-language inputs significantly improve performance and reduced hallucinations. Clinical expertise enhances consistency in the extraction, particularly among students using annotated examples.</p><p><strong>Conclusions: </strong>The study confirms that privacy-preserving SLMs can be deployed locally for efficient and secure cancer data extraction. Findings highlight the need for hybrid systems combining SLMs with expert input and underline the importance of aligning clinical documentation practices with SLM capabilities. This is the first study to benchmark SLMs on Italian EHRs and investigate the role of clinical expertise in prompt engineering, offering valuable insights for the future integration of SLMs into real-world clinical workflows.</p>","PeriodicalId":72646,"journal":{"name":"Communications medicine","volume":" ","pages":""},"PeriodicalIF":7.4000,"publicationDate":"2026-07-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Communications medicine","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1038/s43856-026-01790-5","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"MEDICINE, RESEARCH & EXPERIMENTAL","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Real-world data (RWD) in unstructured electronic health records (EHRs) is crucial for understanding complex diseases like cancer, but extracting structured information is challenging due to linguistic variability, semantic complexity, and privacy concerns. This study evaluates the performance of four small, locally deployable language models for information extraction from Italian EHRs.

Methods: We examine three prompting strategies (zero-shot, few-shot, and annotated few-shot) across English and Italian, involving clinicians with varying expertise to assess the impact of prompt design on accuracy. We evaluate the performance of four open-source small language models (SLMs) for clinical information extraction from Italian electronic health records (EHRs) in the APOLLO 11 trial on non-small cell lung cancer (NSCLC). The extraction protocol involves four steps: problem definition, data preprocessing, Large Language Model (LLM)-based information extraction, and output evaluation.

Results: We show that general-purpose models (e.g., LLaMA 3.1 8B) outperform biomedical models in most tasks, particularly in extracting binary features. Multiclass variables such as TNM (Tumor, Node, Metastasis) staging, PD-L1 (Programmed death-ligand 1), and ECOG-PS (Eastern Cooperative Oncology Group-Performance Status) are more difficult due to implicit language and lack of standardization. Few-shot prompting and native-language inputs significantly improve performance and reduced hallucinations. Clinical expertise enhances consistency in the extraction, particularly among students using annotated examples.

Conclusions: The study confirms that privacy-preserving SLMs can be deployed locally for efficient and secure cancer data extraction. Findings highlight the need for hybrid systems combining SLMs with expert input and underline the importance of aligning clinical documentation practices with SLM capabilities. This is the first study to benchmark SLMs on Italian EHRs and investigate the role of clinical expertise in prompt engineering, offering valuable insights for the future integration of SLMs into real-world clinical workflows.

临床医生的专业知识和快速工程通过小语言模型增强了电子健康记录中的癌症信息提取。
背景:非结构化电子健康记录(EHRs)中的真实世界数据(RWD)对于理解癌症等复杂疾病至关重要,但由于语言可变性、语义复杂性和隐私问题,提取结构化信息具有挑战性。本研究评估了四种小型的、本地可部署的语言模型的性能,用于从意大利电子病历中提取信息。方法:我们研究了英语和意大利语的三种提示策略(零提示、少提示和注释少提示),涉及不同专业的临床医生来评估提示设计对准确性的影响。在APOLLO 11非小细胞肺癌(NSCLC)试验中,我们评估了四个开源小语言模型(SLMs)从意大利电子健康记录(EHRs)中提取临床信息的性能。抽取协议包括四个步骤:问题定义、数据预处理、基于大语言模型(LLM)的信息抽取和输出评价。结果:我们发现通用模型(例如LLaMA 3.1 8B)在大多数任务中优于生物医学模型,特别是在提取二进制特征方面。多类别变量,如TNM(肿瘤、淋巴结、转移)分期、PD-L1(程序性死亡配体1)和ECOG-PS(东部肿瘤合作组绩效状态),由于隐含语言和缺乏标准化,更加困难。少量提示和母语输入显著提高了表现,减少了幻觉。临床专业知识提高了提取的一致性,特别是在使用注释示例的学生中。结论:该研究证实,保护隐私的slm可以在本地部署,以实现高效、安全的癌症数据提取。研究结果强调了将SLM与专家输入相结合的混合系统的必要性,并强调了将临床文档实践与SLM功能相结合的重要性。这是第一个在意大利电子病历上对slm进行基准测试的研究,并调查了临床专业知识在快速工程中的作用,为将来将slm集成到现实世界的临床工作流程中提供了有价值的见解。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
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学术官方微信
小红书