[Paper Review] LLMs-based Few-Shot Disease Predictions using EHR: A Novel Approach Combining Predictive Agent Reasoning and Critical Agent Instruction
This paper examines zero-shot and few-shot disease prediction from EHR data using LLMs, introducing a two-agent CoAgent framework (predictor and critic) to refine predictions through feedback-driven prompt enhancement.
Electronic health records (EHRs) contain valuable patient data for health-related prediction tasks, such as disease prediction. Traditional approaches rely on supervised learning methods that require large labeled datasets, which can be expensive and challenging to obtain. In this study, we investigate the feasibility of applying Large Language Models (LLMs) to convert structured patient visit data (e.g., diagnoses, labs, prescriptions) into natural language narratives. We evaluate the zero-shot and few-shot performance of LLMs using various EHR-prediction-oriented prompting strategies. Furthermore, we propose a novel approach that utilizes LLM agents with different roles: a predictor agent that makes predictions and generates reasoning processes and a critic agent that analyzes incorrect predictions and provides guidance for improving the reasoning of the predictor agent. Our results demonstrate that with the proposed approach, LLMs can achieve decent few-shot performance compared to traditional supervised learning methods in EHR-based disease predictions, suggesting its potential for health-oriented applications.
Motivation & Objective
- Assess the viability of transforming structured EHR visit data (diseases, meds, procedures) into natural language narratives for LLM-based prediction.
- Evaluate zero-shot and few-shot prompting strategies on EHR-derived tasks.
- Propose and evaluate a collaborative two-agent framework (predictor and critic) to improve few-shot diagnostic accuracy.
Proposed method
- Convert structured EHR visit records to unstructured narratives by mapping ICD codes to names and linking them with conjunctions.
- Evaluate zero-shot prompting strategies including chain-of-thought, factor interactions, and prevalence information.
- Evaluate few-shot prompting by inserting a small set of positive/negative exemplars into prompts.
- Introduce EHR-CoAgent with two LLMs: a predictor that makes predictions and generates reasoning, and a critic that analyzes incorrect predictions and provides instructional feedback.
- Critic feedback is summarized by GPT-4 into consolidated instructions and integrated into the predictor prompts (instruction-enhanced prompting).
- Compare against traditional ML baselines (Decision Tree, Logistic Regression, Random Forest) and single-agent LLMs (GPT-4, GPT-3.5) under zero-shot, few-shot, and fully supervised settings.
Experimental results
Research questions
- RQ1Can LLMs perform zero-shot and few-shot disease prediction from EHR-derived narratives?
- RQ2How do prompting strategies (CoT, factor interactions, prevalence) affect LLM-based EHR predictions?
- RQ3Does a collaborative predictor-critic LLM framework improve few-shot disease prediction compared to single-agent LLMs and traditional ML?
- RQ4What is the impact of critic-driven instruction on model accuracy and reasoning quality in EHR-based predictions?
Key findings
- EHR-CoAgent often surpasses baseline ML models and single-agent LLMs in few-shot scenarios, with GPT-4 generally outperforming GPT-3.5.
- On CRADLE, EHR-CoAgent achieves an F1 of 60.21%, outperforming all fully trained ML models.
- On MIMIC-III, EHR-CoAgent reaches an F1 of 73.88%, comparable to the fully trained Decision Tree and better than Logistic Regression and Random Forest.
- Zero-shot prompting provides modest gains with careful prompts (Zero-Shot+), but few-shot demonstrations typically boost performance.
- The critic agent identifies biases and errors in the predictor’s reasoning and generates instructional feedback that, when integrated into prompts, significantly improves accuracy.
- Compared to single LLM predictors, the feedback-enhanced EHR-CoAgent demonstrates consistent improvements across metrics.
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.