Skip to main content
QUICK REVIEW

[Paper Review] Narrative Feature or Structured Feature? A Study of Large Language Models to Identify Cancer Patients at Risk of Heart Failure

Ziyi Chen, Mengyuan Zhang|PubMed|Mar 18, 2024
Machine Learning in HealthcareComputer Science3 citations
TL;DR

This study evaluates large language models (LLMs) for predicting heart failure (HF) in cancer patients using electronic health records (EHRs), introducing novel narrative features derived from structured medical codes. The GatorTron-3.9B LLM achieved the highest F1 score, outperforming traditional ML, T-LSTM, and BERT models by 39%, 7%, and 5.6%, respectively, demonstrating that narrative features significantly enhance predictive performance.

ABSTRACT

Cancer treatments are known to introduce cardiotoxicity, negatively impacting outcomes and survivorship. Identifying cancer patients at risk of heart failure (HF) is critical to improving cancer treatment outcomes and safety. This study examined machine learning (ML) models to identify cancer patients at risk of HF using electronic health records (EHRs), including traditional ML, Time-Aware long short-term memory (T-LSTM), and large language models (LLMs) using novel narrative features derived from the structured medical codes. We identified a cancer cohort of 12,806 patients from the University of Florida Health, diagnosed with lung, breast, and colorectal cancers, among which 1,602 individuals developed HF after cancer. The LLM, GatorTron-3.9B, achieved the best F1 scores, outperforming the traditional support vector machines by 39%, the T-LSTM deep learning model by 7%, and a widely used transformer model, BERT, by 5.6%. The analysis shows that the proposed narrative features remarkably increased feature density and improved performance.

Motivation & Objective

  • To improve early identification of cancer patients at risk of heart failure (HF) post-treatment.
  • To evaluate the effectiveness of large language models (LLMs) compared to traditional machine learning and deep learning models in HF risk prediction.
  • To investigate whether narrative features derived from structured EHR codes enhance model performance.
  • To assess the impact of feature engineering—specifically, narrative feature construction—on predictive accuracy in clinical risk modeling.

Proposed method

  • The study constructs narrative features by transforming structured medical codes (e.g., ICD-10, CPT) into natural language sequences using clinical terminology mapping.
  • A fine-tuned LLM, GatorTron-3.9B, is trained on these narrative features to capture temporal and semantic patterns in EHRs.
  • The model is compared against traditional machine learning (SVM), time-aware RNN (T-LSTM), and a standard BERT model on the same dataset.
  • Feature density is quantitatively measured and shown to correlate with improved model performance.
  • The EHR cohort includes 12,806 cancer patients (lung, breast, colorectal) with 1,602 HF cases post-diagnosis.
  • Model performance is evaluated using F1 score, with cross-validation and standard metrics applied across all baselines.

Experimental results

Research questions

  • RQ1Does the use of narrative features derived from structured EHR codes improve the performance of LLMs in predicting heart failure among cancer patients?
  • RQ2How does a fine-tuned LLM like GatorTron-3.9B compare to traditional ML and deep learning models (e.g., SVM, T-LSTM, BERT) in HF risk prediction?
  • RQ3To what extent does increased feature density from narrative representation enhance model generalization and predictive accuracy?
  • RQ4Can LLMs effectively leverage clinical narrative patterns extracted from coded EHR data to detect subtle cardiotoxicity signals?

Key findings

  • The GatorTron-3.9B LLM achieved the highest F1 score among all models tested, outperforming traditional SVMs by 39 percentage points.
  • The LLM model improved F1 scores by 7% over the T-LSTM model and by 5.6% over the BERT model.
  • The proposed narrative feature engineering significantly increased feature density, which was directly linked to improved model performance.
  • The study demonstrates that LLMs trained on narrative features derived from structured codes can effectively capture complex clinical patterns predictive of heart failure.
  • The results suggest that narrative representation of EHR codes enhances model interpretability and predictive power in clinical risk modeling.
  • The model’s superior performance indicates that LLMs are well-suited for integrating heterogeneous clinical data in oncology outcomes prediction.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.