Scaling Clinician-Grade Feature Generation from Clinical Notes with Multi-Agent Language Models

Jiayi Wang, Jacqueline Vallon, Neil Panjwani, Xi Ling, Sushmita Vij, Sandy Srinivas, John T. Leppert, Mark K. Buyyounouski, Mohsen Bayati, Buyyounouski, Mark K., Bayati, Mohsen · DOI

Abstract

Developing accurate clinical prediction models is often bottlenecked by the difficulty of deriving meaningful structured features from unstructured EHR notes, a process that traditionally requires manual, unscalable clinical abstraction. In this study, we first established a rigorous patient-level Clinician Feature Generation (CFG) protocol, in which domain experts manually reviewed notes to define and extract nuanced features for a cohort of 147 patients with prostate cancer. As a high-fidelity ground truth, this labor-intensive process provided the blueprint for SNOW (Scalable Note-to-Outcome Workflow), a transparent multi-agent large language model (LLM) system designed to autonomously mimic the iterative reasoning and validation workflow of clinical experts. On 5-year cancer recurrence prediction, SNOW (AUC-ROC 0.767) achieved performance comparable to manual CFG (0.762) and outperformed structured baselines, clinician-guided LLM extraction, and six representational feature generation (RFG) approaches. Once configured, SNOW produced the full patient-level feature table in 12 hours with 5 hours of clinician oversight, reducing human expert effort by approximately 48-fold versus manual CFG. To test scalability where manual CFG is infeasible, we deployed SNOW on an external heart failure with preserved ejection fraction (HFpEF) cohort from MIMIC-IV (n=2,084); without task-specific tuning, SNOW generated prognostic features that outperformed baseline and RFG methods for 30-day (SNOW: 0.851) and 1-year (SNOW: 0.763) mortality prediction. These results demonstrate that a modular LLM agent-based system can scale expert-level feature generation from clinical notes, while enabling interpretable use of unstructured EHR text in outcome prediction and preserving generalizability across a variety of settings and conditions.

1. Introduction

Electronic Health Records (EHRs) are a cornerstone of modern clinical research, yet the most valuable prognostic information—such as symptom severity, disease progression, and nuanced pathology—is often locked within unstructured clinical notes. Historically, researchers have faced a trade-off between scalability and clinical fidelity. Representational Feature Generation (RFG) methods, such as dense embeddings, offer scalability but lack interpretability and are prone to capturing spurious correlations. Conversely, manual Clinician Feature Generation (CFG) provides high-fidelity, interpretable data but is prohibitively slow and expensive for large-scale cohorts.

2. The SNOW Framework

To address this bottleneck, we developed the Scalable Note-to-Outcome Workflow (SNOW), a transparent multi-agent LLM system. SNOW is designed to mimic the iterative reasoning and validation workflow of clinical experts, moving beyond simple single-prompt extraction to a collaborative agentic architecture.

The SNOW workflow compared to manual Clinician Feature Generation (CFG).

The SNOW architecture utilizes specialized agents to handle distinct phases of the abstraction process:

  • Feature Proposal and Alignment: A Proposal Agent suggests clinically relevant features based on note samples, while an Alignment Agent scans the wider corpus to refine these definitions based on actual documentation patterns.
  • Extract-Validate Loop: This core engine features an Extraction Agent that pulls values from notes and a Validation Agent that audits these extractions. If inconsistencies are found (e.g., unit mismatches or missed negations), the system autonomously updates its instructions and re-extracts the data.
  • Aggregation: A Code Generator Agent writes Python code to aggregate these features into a final structured table suitable for predictive modeling.

3. Experimental Evaluation

We evaluated SNOW's performance and generalizability across two distinct clinical domains:

  1. Prostate Cancer (Stanford): A cohort of 147 patients was used to benchmark SNOW against a year-long manual CFG effort for predicting 5-year biochemical recurrence.
  2. Heart Failure (MIMIC-IV): To test zero-shot scalability, SNOW was deployed on 2,084 patients with heart failure (HFpEF) from the public MIMIC-IV database to predict 30-day and 1-year mortality.
External validation of SNOW on the MIMIC-IV heart failure cohort.

4. Key Results and Discussion

SNOW achieved clinician-grade accuracy on the prostate cancer cohort (AUC-ROC 0.767), matching the manual gold standard (0.762) while reducing human effort by 48-fold (5 hours of oversight vs. 240 hours of manual labor). On the external MIMIC-IV dataset, SNOW outperformed all baseline and embedding-based approaches without any task-specific tuning, achieving AUC-ROCs of 0.851 and 0.763 for 30-day and 1-year mortality, respectively.

Key insights from our analysis include:

  • Agentic Self-Correction: The Extract-Validate loop successfully caught edge cases, such as biologically impossible outliers, that standard LLM prompts missed.
  • Feature Pruning: SNOW demonstrated the ability to distinguish between clinical relevance and data availability, autonomously dropping features with high missingness that would degrade model performance.
  • Interpretability: By providing granular, clinically grounded features, SNOW allowed predictive models to shift their reliance from noisy sociodemographic proxies to actual biological markers.

5. Conclusion

These results demonstrate that a modular, agent-based LLM system can scale expert-level feature generation from clinical notes. SNOW provides a path toward making unstructured EHR text a primary, interpretable driver of clinical outcome prediction across diverse medical conditions and institutions.

Summary updated

BibTeX
@misc{wang2025scaling,
  author = {Jiayi Wang and Jacqueline Vallon and Neil Panjwani and Xi Ling and Sushmita Vij and Sandy Srinivas and John T. Leppert and Mark K. Buyyounouski and Mohsen Bayati and Buyyounouski, Mark K. and Bayati, Mohsen},
  title = {{Scaling Clinician-Grade Feature Generation from Clinical Notes with Multi-Agent Language Models}},
  year = {2025},
  eprint = {2508.01956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01956},
}
Figure