IDEAS home Printed from https://ideas.repec.org/a/plo/pdig00/0001546.html

Large language models enable prognostic stratification of cancer patients using real-world clinical notes

Author

Listed:
  • Niklas Kiermeyer
  • Tim Lenfers
  • Amin Dada
  • Julian Friedrich
  • Sameh Khattab
  • Eric Knop
  • Jan Egger
  • Markus Pauly
  • Andreas Jung
  • Grégoire Montavon
  • Jens T Siveke
  • Marcel Wiesweg
  • Stefan Kasper
  • Ulf P Neumann
  • Frederick Klauschen
  • Sylvia Hartmann
  • Martin Schuler
  • Philipp Keyl
  • Jens Kleesiek
  • Julius Keyl

Abstract

In medical documentation, vast amounts of unstructured text are generated that are still underutilized in current prognostic models. We investigate the potential of self-hosted large language models (LLM) to extract clinically meaningful, patient-specific information from routine clinical notes for personalized risk stratification in cancer care. We collected real-world medical notes from 2,708 non-small cell lung cancer (NSCLC) patients and 814 colon cancer patients documented before treatment at a large comprehensive cancer center. LLMs extracted key prognostic indicators, including comorbidities, metastatic sites, and qualitative descriptors of patient condition, in a zero-shot manner without prior task-specific training. Integrating these LLM-derived features into machine learning models significantly improved the prediction of overall survival compared to TNM staging alone (C-Index: NSCLC, 0.72 vs 0.64; colon cancer, 0.70 vs 0.59), and surpassed models using text embeddings. Based on the LLM-informed risk scores, patients were stratified into four distinct risk groups, enabling reclassification of 61.4% of NSCLC and 68.3% of colon cancer patients. Analysis of model drivers revealed that LLM-derived factors, such as the physical condition, substantially modulated the prognostic impact of TNM stage. These findings highlight the potential of self-hosted LLM to derive prognostically relevant information from unstructured clinical documentation and support clinical decision-making.Author summary: In routine clinical care, medical staff document large amounts of patient information, but only a fraction is captured in structured electronic health records, while much remains in free-text clinical notes. However, most established scoring systems do not use this information and instead rely on a small set of structured variables, such as tumor stage. In this study, we investigated the use of large language models (LLMs) for the extraction of prognostic information from clinical notes without task-specific training. Applying LLMs to the medical records of more than 3,500 patients with lung and colon cancer, we extracted patient characteristics, including mobility impairment, pain, dyspnea, and comorbidities. These features were validated against structured EHR data and expert physician annotations. The LLM-extracted features substantially improved machine learning–based survival prediction and patient stratification beyond conventional measures such as tumor stage. Furthermore, allowing the LLM to derive its own summary score of patient condition provided strong predictors of patient outcome. These findings demonstrate that artificial intelligence can unlock prognostic information from clinical records at scale, supporting more informed and personalized clinical decision-making.

Suggested Citation

  • Niklas Kiermeyer & Tim Lenfers & Amin Dada & Julian Friedrich & Sameh Khattab & Eric Knop & Jan Egger & Markus Pauly & Andreas Jung & Grégoire Montavon & Jens T Siveke & Marcel Wiesweg & Stefan Kasper, 2026. "Large language models enable prognostic stratification of cancer patients using real-world clinical notes," PLOS Digital Health, Public Library of Science, vol. 5(7), pages 1-18, July.
  • Handle: RePEc:plo:pdig00:0001546
    DOI: 10.1371/journal.pdig.0001546
    as

    Download full text from publisher

    File URL: https://journals.plos.org/digitalhealth/article?id=10.1371/journal.pdig.0001546
    Download Restriction: no

    File URL: https://journals.plos.org/digitalhealth/article/file?id=10.1371/journal.pdig.0001546&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pdig.0001546?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pdig00:0001546. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: digitalhealth (email available below). General contact details of provider: https://journals.plos.org/digitalhealth .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.