Enabling national identification of lung cancer screening eligibility with large language models.
e13613 Background: Lung cancer (LC) is the leading cause of cancer-related death, yet screening uptake among eligible individuals is under 20%. Incomplete or inaccessible smoking history documentation, needed for determining eligibility, is a major barrier. Automating smoking history extraction in health records with natural language processing (NLP) could improve eligibility identification. However, traditional NLP systems struggle with generalizability across practice settings, limiting their effectiveness. Large language models (LLMs) show promise for overcoming these challenges in publicly available datasets, but their application to real-world, protected data remains untested, especially in large, diverse settings like the national Veterans Affairs (VA) system. Methods: LLM generalizability for smoking history extraction was assessed using protected clinical notes from over 100 VA sites (years 2008–2023) and the public non-VA MIMIC-III dataset (2001–2008). NLP tasks included status, duration, intensity, quit year, and pack-years. Using the open-source LLM Mixtral 8x22B, zero-shot prompts was compared to adapted prompts designed to address errors, measuring task-specific performance by F1. Institution generalizability was defined as the absolute per-task F1 score difference between the VA (training) and MIMIC (validation) datasets. To identify institutional factors influencing performance, we categorized errors using the concept of a hazard framework, distinguishing errors (or “hazards”) caused by LLM generalization limitations vs. those due to institution-specific differences. The effectiveness of identifying LC screening eligibility was compared to existing VA tools. Results: Adapted prompts improved generalizability across institutions, reducing the median F1 difference between VA and MIMIC datasets from 0.09 (interquartile range [IQR]: 0.08–0.14) with zero-shot prompts to 0.04 (IQR: 0.02–0.07). Overall accuracy with adapted prompts was similar across datasets (macro-F1: 0.86 in VA, 0.85 in MIMIC), but hazard distributions differed significantly (i.e., templated information was more prevalent in the VA dataset [p=0.004)]. Performance differed when task-specific requirements conflicted with pre-trained model behavior (p=0.007). Using LLM, we identified LC screening eligibility in 59% of Veterans who later developed LC, a 6.4-fold improvement over current VA tools, which identified only 8%. Conclusions: Adapted LLM prompts improve generalizability across diverse datasets, addressing longstanding challenges in clinical NLP. Using an open-source model deployable in protected healthcare settings, the robust LLM system maintained performance across years of data, allowing automated extraction of smoking history. This increased LC screening eligibility identification and can enable earlier detection to benefit over a million additional Veterans. The views expressed in this research study do not represent the view of the Department of Veterans Affairs or the United States Government.
Authors
- June K. Corrigan (ORCID: https://orcid.org/0000-0002-7514-0177)
- Nhan Do (ORCID: https://orcid.org/0000-0001-6868-7011)
- Alex H. S. Harris (ORCID: https://orcid.org/0000-0001-7267-3077)
- Julie Wu (ORCID: https://orcid.org/0000-0003-2388-1827)
- Michael J. Kelley (ORCID: https://orcid.org/0000-0001-9523-6080)
- Westyn Branch‐Elliman (ORCID: https://orcid.org/0000-0002-9658-5124)
- Nathanael R. Fillmore (ORCID: https://orcid.org/0000-0002-8058-3423)
- Summer S. Han (ORCID: https://orcid.org/0000-0002-2013-6883)
- Shipra Arya (ORCID: https://orcid.org/0000-0002-0404-9325)
- Curtis P. Langlotz (ORCID: https://orcid.org/0000-0002-8972-8051)
- Renda Soylemez Wiener (ORCID: https://orcid.org/0000-0001-7712-2135)
- Yuhan Liu (ORCID: https://orcid.org/0000-0001-5619-9299)
- Chloe Su
- John Culnan
- Sydney Conover
Institutions
- Boston University (US)
- Palo Alto University (US)
- VA Palo Alto Health Care System (US)
- UCLA Health (US)
- VA Boston Healthcare System (US)
- Stanford University (US)
Publication Details
- Journal
- Journal of Clinical Oncology
- Published
- 2025-05-28
- DOI
- https://doi.org/10.1200/jco.2025.43.16_suppl.e13613
- Primary Topic
- Lung Cancer Diagnosis and Treatment
- Type
- article
- Field-Weighted Citation Impact
- 0.00