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 Medical Informatics

Date Submitted: Sep 30, 2024
Date Accepted: Dec 3, 2024

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

Automated Pathologic TN Classification Prediction and Rationale Generation From Lung Cancer Surgical Pathology Reports Using a Large Language Model Fine-Tuned With Chain-of-Thought: Algorithm Development and Validation Study

Yoo S, Jang S, Kim B, Sunwoo L, Kim S, Chung JH, Nam S, Cho H, Lee D, Lee D

Automated Pathologic TN Classification Prediction and Rationale Generation From Lung Cancer Surgical Pathology Reports Using a Large Language Model Fine-Tuned With Chain-of-Thought: Algorithm Development and Validation Study

JMIR Med Inform 2024;12:e67056

DOI: 10.2196/67056

PMID: 39705675

PMCID: 11699504

Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.

Automated Pathologic TN Classification Prediction and Rationale Generation from Lung Cancer Surgical Pathology Reports using a Large Language Model Fine-Tuned with Chain-of-Thought

  • Sooyoung Yoo; 
  • Sowon Jang; 
  • Borham Kim; 
  • Leonard Sunwoo; 
  • Seok Kim; 
  • Jin-Haeng Chung; 
  • Sejin Nam; 
  • Hyeongmin Cho; 
  • Donghyoung Lee; 
  • Donghyoung Lee

ABSTRACT

Background:

Traditional rule-based natural language processing approaches in electronic health record systems are effective but time-consuming when utilizing unstructured data. These approaches require substantial efforts to parse and extract information. However, recent advancements in large language model (LLM) technology provide opportunities to automatically understand context, infer pathologic staging, and provide clear justifications for classification.

Objective:

To evaluate the applicability and performance of generative language models to automatically infer pathologic TN classifications and extract the rationale for these classifications from lung cancer surgical pathology reports.

Methods:

We fine-tuned and evaluated open-source LLMs using 3,216 lung cancer surgical pathology reports from a tertiary hospital. Considering the limited computing resources, we selected and compared six lightweight language models. Generative language models were fine-tuned to simultaneously extract and produce pathologic TN classification predictions and rationale.

Results:

Generative language models that were fine-tuned to diagnose pathologic TN stages accurately predicted TN classification and generated rationale. The highest performing model achieved an exact match ratio of 0.934 for TN classification and a semantic match ratio of 0.866 for rationale. The semantic match ratio for both predicting TN classification and presenting rationale was 0.864.

Conclusions:

This study demonstrated that fine-tuned generative language models can accurately predict TN classification and automatically extract rationale from lung cancer surgical pathology reports. These models can enhance efficiency, reduce human error, and improve accuracy in TN classification of lung cancer, thereby aiding clinical and research fields.


 Citation

Please cite as:

Yoo S, Jang S, Kim B, Sunwoo L, Kim S, Chung JH, Nam S, Cho H, Lee D, Lee D

Automated Pathologic TN Classification Prediction and Rationale Generation From Lung Cancer Surgical Pathology Reports Using a Large Language Model Fine-Tuned With Chain-of-Thought: Algorithm Development and Validation Study

JMIR Med Inform 2024;12:e67056

DOI: 10.2196/67056

PMID: 39705675

PMCID: 11699504

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.