Accepted for/Published in: JMIR Medical Informatics
Date Submitted: Sep 30, 2024
Date Accepted: Dec 3, 2024
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
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
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© 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.