[Paper Review] Prompting Large Language Models for Zero-Shot Clinical Prediction with Structured Longitudinal Electronic Health Record Data
The paper shows that with a specially designed prompting framework, GPT-4 and other LLMs can perform zero-shot predictions on structured longitudinal EHR data, improving mortality, length-of-stay, and 30-day readmission predictions by about 35% compared to baselines in few-shot settings.
The inherent complexity of structured longitudinal Electronic Health Records (EHR) data poses a significant challenge when integrated with Large Language Models (LLMs), which are traditionally tailored for natural language processing. Motivated by the urgent need for swift decision-making during new disease outbreaks, where traditional predictive models often fail due to a lack of historical data, this research investigates the adaptability of LLMs, like GPT-4, to EHR data. We particularly focus on their zero-shot capabilities, which enable them to make predictions in scenarios in which they haven't been explicitly trained. In response to the longitudinal, sparse, and knowledge-infused nature of EHR data, our prompting approach involves taking into account specific EHR characteristics such as units and reference ranges, and employing an in-context learning strategy that aligns with clinical contexts. Our comprehensive experiments on the MIMIC-IV and TJH datasets demonstrate that with our elaborately designed prompting framework, LLMs can improve prediction performance in key tasks such as mortality, length-of-stay, and 30-day readmission by about 35\%, surpassing ML models in few-shot settings. Our research underscores the potential of LLMs in enhancing clinical decision-making, especially in urgent healthcare situations like the outbreak of emerging diseases with no labeled data. The code is publicly available at https://github.com/yhzhu99/llm4healthcare for reproducibility.
Motivation & Objective
- Bridge the gap between structured longitudinal EHR data and unstructured LLM prompts by designing clinically informed prompts.
- Evaluate zero-shot predictive capabilities of LLMs on mortality, length-of-stay, and readmission tasks with real-world EHR datasets.
- Assess data-level, task-level, and model-level factors influencing LLM performance in clinical prediction.
- Demonstrate practicality and reproducibility with public code and real datasets to support rapid decision-making in emerging disease scenarios.
Proposed method
- Propose a prompt template with five elements: role, instruction, clinical context, input data, and output indicator to guide LLMs.
- Convert structured longitudinal EHR data into natural language using two input formats: feature-wise and visit-wise; compare their effectiveness.
- Investigate sparsity handling by comparing missing-value representations (nan) versus LOCF imputation.
- Incorporate knowledge-infused contexts by including units and reference ranges in prompts and using in-context examples to anchor predictions.
- Evaluate across tasks (mortality, 30-day readmission, length-of-stay) and time spans, and benchmark zero-shot LLMs against few-shot ML/DL baselines.
Experimental results
Research questions
- RQ1RQ1: What constitutes an effective EHR data prompt for LLMs considering longitudinality, sparsity, and knowledge infusion?
- RQ2RQ2: Can LLMs handle diverse clinical prediction tasks across different time spans, and how do prompts influence temporal sensitivity?
- RQ3RQ3: How do zero-shot LLMs compare to traditional ML/DL models in few-shot settings across tasks and datasets?
Key findings
- Feature-wise input formats yield better AUROC and AUPRC than visit-wise formats for in-hospital mortality prediction.
- Imputation improves LLM performance, but omitting imputation (using NaN) can still be effective, with varying impact by dataset.
- Adding units and reference ranges in prompts significantly boosts AUROC (best with both) and reduces missing predictions.
- One or two in-context examples notably improve performance; too many examples can cause degradation due to prompt length and forgetting.
- GPT-4 outperforms other models in zero-shot mortality prediction, with relative AUROC improvements around 35% on TJH and 25% on MIMIC-IV; in some cases, approaching performance of fully trained baselines.
- GPT-4 demonstrates strong zero-shot performance across tasks, often surpassing certain ML/DL baselines in low-data settings; however multi-task scenarios can slightly reduce performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.