Using Large Language Models to Automate Data Extraction From Surgical Pathology Reports: Retrospective Cohort Study.

IF 2 Q3 HEALTH CARE SCIENCES & SERVICES JMIR Formative Research Pub Date : 2025-04-07 DOI:10.2196/64544
Denise Lee, Akhil Vaid, Kartikeya M Menon, Robert Freeman, David S Matteson, Michael L Marin, Girish N Nadkarni
{"title":"Using Large Language Models to Automate Data Extraction From Surgical Pathology Reports: Retrospective Cohort Study.","authors":"Denise Lee, Akhil Vaid, Kartikeya M Menon, Robert Freeman, David S Matteson, Michael L Marin, Girish N Nadkarni","doi":"10.2196/64544","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Popularized by ChatGPT, large language models (LLMs) are poised to transform the scalability of clinical natural language processing (NLP) downstream tasks such as medical question answering (MQA) and automated data extraction from clinical narrative reports. However, the use of LLMs in the health care setting is limited by cost, computing power, and patient privacy concerns. Specifically, as interest in LLM-based clinical applications grows, regulatory safeguards must be established to avoid exposure of patient data through the public domain. The use of open-source LLMs deployed behind institutional firewalls may ensure the protection of private patient data. In this study, we evaluated the extraction performance of a locally deployed LLM for automated MQA from surgical pathology reports.</p><p><strong>Objective: </strong>We compared the performance of human reviewers and a locally deployed LLM tasked with extracting key histologic and staging information from surgical pathology reports.</p><p><strong>Methods: </strong>A total of 84 thyroid cancer surgical pathology reports were assessed by two independent reviewers and the open-source FastChat-T5 3B-parameter LLM using institutional computing resources. Longer text reports were split into 1200-character-long segments, followed by conversion to embeddings. Three segments with the highest similarity scores were integrated to create the final context for the LLM. The context was then made part of the question it was directed to answer. Twelve medical questions for staging and thyroid cancer recurrence risk data extraction were formulated and answered for each report. The time to respond and concordance of answers were evaluated. The concordance rate for each pairwise comparison (human-LLM and human-human) was calculated as the total number of concordant answers divided by the total number of answers for each of the 12 questions. The average concordance rate and associated error of all questions were tabulated for each pairwise comparison and evaluated with two-sided t tests.</p><p><strong>Results: </strong>Out of a total of 1008 questions answered, reviewers 1 and 2 had an average (SD) concordance rate of responses of 99% (1%; 999/1008 responses). The LLM was concordant with reviewers 1 and 2 at an overall average (SD) rate of 89% (7%; 896/1008 responses) and 89% (7.2%; 903/1008 responses). The overall time to review and answer questions for all reports was 170.7, 115, and 19.56 minutes for Reviewers 1, 2, and the LLM, respectively.</p><p><strong>Conclusions: </strong>The locally deployed LLM can be used for MQA with considerable time-saving and acceptable accuracy in responses. Prompt engineering and fine-tuning may further augment automated data extraction from clinical narratives for the provision of real-time, essential clinical insights.</p>","PeriodicalId":14841,"journal":{"name":"JMIR Formative Research","volume":"9 ","pages":"e64544"},"PeriodicalIF":2.0000,"publicationDate":"2025-04-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11996145/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"JMIR Formative Research","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.2196/64544","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"HEALTH CARE SCIENCES & SERVICES","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Popularized by ChatGPT, large language models (LLMs) are poised to transform the scalability of clinical natural language processing (NLP) downstream tasks such as medical question answering (MQA) and automated data extraction from clinical narrative reports. However, the use of LLMs in the health care setting is limited by cost, computing power, and patient privacy concerns. Specifically, as interest in LLM-based clinical applications grows, regulatory safeguards must be established to avoid exposure of patient data through the public domain. The use of open-source LLMs deployed behind institutional firewalls may ensure the protection of private patient data. In this study, we evaluated the extraction performance of a locally deployed LLM for automated MQA from surgical pathology reports.

Objective: We compared the performance of human reviewers and a locally deployed LLM tasked with extracting key histologic and staging information from surgical pathology reports.

Methods: A total of 84 thyroid cancer surgical pathology reports were assessed by two independent reviewers and the open-source FastChat-T5 3B-parameter LLM using institutional computing resources. Longer text reports were split into 1200-character-long segments, followed by conversion to embeddings. Three segments with the highest similarity scores were integrated to create the final context for the LLM. The context was then made part of the question it was directed to answer. Twelve medical questions for staging and thyroid cancer recurrence risk data extraction were formulated and answered for each report. The time to respond and concordance of answers were evaluated. The concordance rate for each pairwise comparison (human-LLM and human-human) was calculated as the total number of concordant answers divided by the total number of answers for each of the 12 questions. The average concordance rate and associated error of all questions were tabulated for each pairwise comparison and evaluated with two-sided t tests.

Results: Out of a total of 1008 questions answered, reviewers 1 and 2 had an average (SD) concordance rate of responses of 99% (1%; 999/1008 responses). The LLM was concordant with reviewers 1 and 2 at an overall average (SD) rate of 89% (7%; 896/1008 responses) and 89% (7.2%; 903/1008 responses). The overall time to review and answer questions for all reports was 170.7, 115, and 19.56 minutes for Reviewers 1, 2, and the LLM, respectively.

Conclusions: The locally deployed LLM can be used for MQA with considerable time-saving and acceptable accuracy in responses. Prompt engineering and fine-tuning may further augment automated data extraction from clinical narratives for the provision of real-time, essential clinical insights.

Abstract Image

Abstract Image

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
使用大型语言模型自动从外科病理报告中提取数据:回顾性队列研究。
背景:在ChatGPT的推广下,大型语言模型(llm)有望改变临床自然语言处理(NLP)下游任务的可扩展性,如医疗问答(MQA)和临床叙述性报告的自动数据提取。然而,法学硕士在医疗保健环境中的使用受到成本、计算能力和患者隐私问题的限制。具体来说,随着人们对法学硕士临床应用的兴趣日益增长,必须建立监管保障措施,以避免患者数据通过公共领域暴露。使用部署在机构防火墙后面的开源法学硕士可以确保对私人患者数据的保护。在这项研究中,我们从外科病理报告中评估了本地部署的LLM用于自动MQA的提取性能。目的:我们比较了人类审查员和本地部署的LLM的表现,LLM的任务是从外科病理报告中提取关键的组织学和分期信息。方法:采用机构计算资源,由两名独立审稿人和开源的FastChat-T5 3B-parameter LLM对84例甲状腺癌手术病理报告进行评估。较长的文本报告被分成1200个字符长的片段,然后转换为嵌入。具有最高相似分数的三个片段被整合为LLM的最终上下文。然后上下文就成为它要回答的问题的一部分。为每一份报告制定并回答12个关于分期和甲状腺癌复发风险数据提取的医学问题。对回答时间和答案的一致性进行了评估。每个两两比较(human-LLM和human-human)的一致性率计算为一致答案的总数除以12个问题中每个问题的答案总数。所有问题的平均一致性率和相关错误率均为两两比较表,并采用双侧t检验进行评估。结果:在所回答的1008个问题中,审稿人1和2的平均(SD)一致性率为99% (1%;999/1008回复)。LLM与评论者1和评论者2的总体平均(SD)率为89% (7%;896/1008份回复)和89% (7.2%;903/1008回复)。审阅者1、2和法学硕士审阅和回答所有报告问题的总时间分别为170.7分钟、115分钟和19.56分钟。结论:本地部署的LLM可用于MQA,可节省大量时间并具有可接受的响应准确性。及时的工程和微调可以进一步增强从临床叙述中自动提取数据的能力,从而提供实时的、必要的临床见解。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
JMIR Formative Research
JMIR Formative Research Medicine-Medicine (miscellaneous)
CiteScore
2.70
自引率
9.10%
发文量
579
审稿时长
12 weeks
期刊最新文献
Early Prediction of Cardiac Arrest Based on Time-Series Vital Signs Using Deep Learning: Retrospective Study. Using a Transdisciplinary Approach in Learning Communities for Designing Wearable Stress Management for Vulnerable Populations: Development and Usability Study. Community Experiences of Social and Nonmedical Gender-Affirming Care: Interview Study Among Transgender and/or Nonbinary Persons. Development and Initial Validation of a Brief, Online Version of the Center for Epidemiological Studies Depression Scale (CES-D): Psychometric Study. Linking Patient-Reported and Clinician-Assessed Wound Status via Chatbot-Based Digital Surveillance for Wound Infection: Retrospective Observational Study.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1