Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR Formative Research

Date Submitted: Jul 19, 2024
Date Accepted: Jan 19, 2025

The final, peer-reviewed published version of this preprint can be found here:

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

Lee D, Vaid A, Menon KM, Freeman R, Matteson DS, Marin ML, Nadkarni GN

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

JMIR Form Res 2025;9:e64544

DOI: 10.2196/64544

PMID: 40194317

PMCID: 11996145

Using large language models to automate data extraction from surgical pathology reports: a retrospective cohort study

  • Denise Lee; 
  • Akhil Vaid; 
  • Kartikeya M Menon; 
  • Robert Freeman; 
  • David S Matteson; 
  • Michael L Marin; 
  • Girish N Nadkarni

ABSTRACT

Background:

Popularized by ChatGPT, large language models (LLM) are poised to transform the scalability of clinical natural language processing (NLP) downstream tasks such as medical question answering (MQA) and may enhance the ability to rapidly and accurately extract key information from clinical narrative reports. However, the use of LLMs in the healthcare setting is limited by cost, computing power and concern for patient privacy. In this study we evaluate the extraction performance of a privacy preserving LLM for automated MQA from surgical pathology reports.

Objective:

We propose a framework for a privacy-preserving large language model that avoids transferring medical data across the public domain.

Methods:

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 converted to embeddings. 12 medical questions for staging and recurrence risk data extraction were formulated and answered for each report. Time to respond and concordance of answers were evaluated.

Results:

Out of a total of 1008 questions answered, reviewers 1 and 2 had an average concordance rate of responses of 99.1% (SD: 1.0%). The LLM was concordant with reviewers 1 and 2 at an overall average rate of 88.86% (SD: 7.02%) and 89.56% (SD: 7.20%). The overall time to review and answer questions for all reports was 206.9, 124.04 and 19.56 minutes for Reviewers 1, 2 and LLM, respectively.

Conclusions:

A privacy preserving LLM may be used for MQA with considerable time-saving and an 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.


 Citation

Please cite as:

Lee D, Vaid A, Menon KM, Freeman R, Matteson DS, Marin ML, Nadkarni GN

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

JMIR Form Res 2025;9:e64544

DOI: 10.2196/64544

PMID: 40194317

PMCID: 11996145

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.