Neil K Jairath, Vartan Pahalyants, Shayan Cheraghlou, Derek Maas, Nayoung Lee, Maressa C Criscito, Mary L Stevenson, Apoorva Mehta, Zachary Leibovit-Reiben, Alyssa Stockard, Nicole Doudican, Aaron Mangold, John A Carucci
{"title":"Retrieval Augmented Generation-Enabled Large Language Model for Risk Stratification of Cutaneous Squamous Cell Carcinoma.","authors":"Neil K Jairath, Vartan Pahalyants, Shayan Cheraghlou, Derek Maas, Nayoung Lee, Maressa C Criscito, Mary L Stevenson, Apoorva Mehta, Zachary Leibovit-Reiben, Alyssa Stockard, Nicole Doudican, Aaron Mangold, John A Carucci","doi":"10.1001/jamadermatol.2025.1614","DOIUrl":null,"url":null,"abstract":"<p><strong>Importance: </strong>There exists substantial heterogeneity in outcomes within T stages for patients with cutaneous squamous cell carcinoma (cSCC).</p><p><strong>Objective: </strong>To determine whether a customized generative pretrained transformer model, trained on a comprehensive dataset with more than 1 trillion parameters and equipped with relevant focused context and retrieval augmented generation (RAG), could excel in aggregating and interpreting vast quantities of data to develop a novel class-based risk stratification system that outperforms the current standards.</p><p><strong>Design, setting, and participants: </strong>To build the RAG knowledge base, a systematic review of the literature was conducted that addressed risk factors for poor outcomes in cSCC. Using the RAG-enabled generative pretrained transformer (GPT) model, we developed a novel class-based risk stratification system that assigned point values for risk factors, culminating in a GPT-based prognostication system called the artificial intelligence-derived risk score (AIRIS). The system's performance was validated on a combined prospective and retrospective cohort of 2379 primary cSCC tumors (1996-2023) with at least 36 months of follow-up, against Brigham and Women's Hospital (BWH) and American Joint Committee on Cancer Staging Manual, eighth edition (AJCC8) systems in stratifying risk for locoregional recurrence (LR), nodal metastasis (NM), distant metastasis (DM), and disease-specific death (DSD).</p><p><strong>Main outcomes and measures: </strong>Performance metrics evaluated included distinctiveness, homogeneity, and monotonicity, as defined by the AJCC8, as well as sensitivity, specificity, positive predictive value, negative predictive value, accuracy, the area under the receiver operating characteristic curve, and concordance.</p><p><strong>Results: </strong>The median age at diagnosis was 73 (IQR, 64-81) years, with 38.5% female patients and 61.5% male patients. The AIRIS prognostication system demonstrated superior sensitivity across all outcomes (LR, 49.1%; NM, 73.7%; DM, 82.5%; and DSD, 72.2%) and the highest area under the receiver operating characteristic curve values (LR, 0.69; NM, 0.81; DM, 0.85; and DSD, 0.80), indicating significantly enhanced discriminative capability compared with the BWH and AJCC8 systems. While all systems were comparably distinctive, the AIRIS prognostication system consistently demonstrated the lowest proportion of tumors exhibiting poor outcomes in low-risk categories, suggesting its improved homogeneity and monotonicity.</p><p><strong>Conclusions and relevance: </strong>The results of this diagnostic study suggest that the AIRIS system outperforms the existing BWH and AJCC8 prognostication systems, potentially providing a more effective tool for predicting poor outcomes in cSCC. This study illustrates the potential of large language models in refining prognostic tools, offering implications for treating patients with cancer.</p>","PeriodicalId":14734,"journal":{"name":"JAMA dermatology","volume":" ","pages":"796-804"},"PeriodicalIF":11.0000,"publicationDate":"2025-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12159850/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"JAMA dermatology","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1001/jamadermatol.2025.1614","RegionNum":1,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"DERMATOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
Importance: There exists substantial heterogeneity in outcomes within T stages for patients with cutaneous squamous cell carcinoma (cSCC).
Objective: To determine whether a customized generative pretrained transformer model, trained on a comprehensive dataset with more than 1 trillion parameters and equipped with relevant focused context and retrieval augmented generation (RAG), could excel in aggregating and interpreting vast quantities of data to develop a novel class-based risk stratification system that outperforms the current standards.
Design, setting, and participants: To build the RAG knowledge base, a systematic review of the literature was conducted that addressed risk factors for poor outcomes in cSCC. Using the RAG-enabled generative pretrained transformer (GPT) model, we developed a novel class-based risk stratification system that assigned point values for risk factors, culminating in a GPT-based prognostication system called the artificial intelligence-derived risk score (AIRIS). The system's performance was validated on a combined prospective and retrospective cohort of 2379 primary cSCC tumors (1996-2023) with at least 36 months of follow-up, against Brigham and Women's Hospital (BWH) and American Joint Committee on Cancer Staging Manual, eighth edition (AJCC8) systems in stratifying risk for locoregional recurrence (LR), nodal metastasis (NM), distant metastasis (DM), and disease-specific death (DSD).
Main outcomes and measures: Performance metrics evaluated included distinctiveness, homogeneity, and monotonicity, as defined by the AJCC8, as well as sensitivity, specificity, positive predictive value, negative predictive value, accuracy, the area under the receiver operating characteristic curve, and concordance.
Results: The median age at diagnosis was 73 (IQR, 64-81) years, with 38.5% female patients and 61.5% male patients. The AIRIS prognostication system demonstrated superior sensitivity across all outcomes (LR, 49.1%; NM, 73.7%; DM, 82.5%; and DSD, 72.2%) and the highest area under the receiver operating characteristic curve values (LR, 0.69; NM, 0.81; DM, 0.85; and DSD, 0.80), indicating significantly enhanced discriminative capability compared with the BWH and AJCC8 systems. While all systems were comparably distinctive, the AIRIS prognostication system consistently demonstrated the lowest proportion of tumors exhibiting poor outcomes in low-risk categories, suggesting its improved homogeneity and monotonicity.
Conclusions and relevance: The results of this diagnostic study suggest that the AIRIS system outperforms the existing BWH and AJCC8 prognostication systems, potentially providing a more effective tool for predicting poor outcomes in cSCC. This study illustrates the potential of large language models in refining prognostic tools, offering implications for treating patients with cancer.
期刊介绍:
JAMA Dermatology is an international peer-reviewed journal that has been in continuous publication since 1882. It began publication by the American Medical Association in 1920 as Archives of Dermatology and Syphilology. The journal publishes material that helps in the development and testing of the effectiveness of diagnosis and treatment in medical and surgical dermatology, pediatric and geriatric dermatology, and oncologic and aesthetic dermatologic surgery.
JAMA Dermatology is a member of the JAMA Network, a consortium of peer-reviewed, general medical and specialty publications. It is published online weekly, every Wednesday, and in 12 print/online issues a year. The mission of the journal is to elevate the art and science of health and diseases of skin, hair, nails, and mucous membranes, and their treatment, with the aim of enabling dermatologists to deliver evidence-based, high-value medical and surgical dermatologic care.
The journal publishes a broad range of innovative studies and trials that shift research and clinical practice paradigms, expand the understanding of the burden of dermatologic diseases and key outcomes, improve the practice of dermatology, and ensure equitable care to all patients. It also features research and opinion examining ethical, moral, socioeconomic, educational, and political issues relevant to dermatologists, aiming to enable ongoing improvement to the workforce, scope of practice, and the training of future dermatologists.
JAMA Dermatology aims to be a leader in developing initiatives to improve diversity, equity, and inclusion within the specialty and within dermatology medical publishing.