TL;DR
This paper introduces a formal framework that transforms the traditionally manual, "fuzzy" process of hospital Quality Improvement (QI) into a scalable AI pipeline. By treating high-level problem specifications as natural-language hyperparameters, the system allows clinicians and LLMs to collaboratively co-optimize both the problem definition and the prompt design, matching human expert agreement while analyzing hundreds of charts in minutes.
What Problem Does This Paper Address?
Hospital Quality Improvement (QI) programs are vital for optimizing patient care and hospital efficiency (e.g., reducing length of stay or unplanned readmissions). A foundational step in QI is "factor discovery"—identifying the modifiable root causes of operational bottlenecks.
Currently, this is a slow, labor-intensive process relying on manual chart reviews, staff interviews, and Lean healthcare frameworks. It can take up to 100 person-hours just to review 25 patient journeys, making it highly unscalable and prone to subjective bias. Standard AI alignment techniques (like prompt tuning or fine-tuning) fail here because they assume the task is already well-defined with a fixed set of gold-standard labels. In reality, QI factor discovery is inherently exploratory; experts often don't know the exact problem specifications or constraints until they begin analyzing the data.
Methods
To bridge this gap, the authors propose Human-AI Spec-Solution Co-Optimization. They map the exploratory QI process onto three classical stages of AI/ML development:
- Problem Formalization (defining the objective, population, and labels)
- Model Learning (prompt tuning and model selection)
- Model Validation (determining what and how to validate)
Crucially, high-level natural language specifications at each stage are treated as tunable hyperparameters. Domain experts and AI agents work in an iterative loop to refine both these specifications and the underlying LLM prompts simultaneously.
To make this framework practical under strict clinical resource constraints, the authors implemented two key components:
- A PHI-Compliant Web Interface: A specialized UI that visualizes raw patient data as an abstracted Gantt chart timeline alongside AI-extracted modifiable gaps, complete with direct links to supporting and contrary evidence to mitigate automation bias.
- An Incremental Annotation Loop: Instead of gathering expensive expert labels upfront, the team used an online process that progressively escalated human expertise (from a single data scientist to a clinician, and finally to a full group review) as the pipeline matured.
Datasets
The framework was developed and evaluated retrospectively using electronic health record (EHR) data from Zuckerberg San Francisco General Hospital (ZSFG). The authors focused on two distinct case studies:
- Length of Stay (LOS): Adult inpatients across the top five Diagnosis-Related Groups (DRGs), such as Sepsis and Ischemic Stroke, with stays between 4 and 20 days.
- 30-Day Unplanned Readmissions: Patients within diagnosis groups highlighted by the Centers for Medicare & Medicaid Services (COPD, Heart Failure, AMI, and Pneumonia).
For both case studies, the final pipelines were rigorously evaluated on a disjoint, held-out validation dataset of 52 patients to ensure unbiased statistical inference before being scaled up to analyze 500 patients.
Key Insights and Ideas
- The "Gulf of Envisionment": The paper highlights that for complex, exploratory tasks, prompt engineering alone is insufficient. The breakthrough comes from co-evolving the problem definition alongside the AI solution.
- Patient Flow vs. Overall LOS: During the LOS case study, the team discovered that instructing the LLM to optimize for overall LOS caused it to struggle with complex, mathematically messy interactions between overlapping factors. Shifting the objective hyperparameter to "patient flow" (the efficiency of a patient's progression through individual workstreams) aligned much better with implicit human clinical judgment.
- Acuity vs. Inefficiency: Early iterations revealed that the LLM frequently conflated a patient's baseline illness severity (e.g., an unavoidable prolonged ICU stay due to poor clinical status) with operational delays. The authors resolved this by introducing explicit natural-language constraints and a 24-hour benchmark for consult/imaging completion into the problem formalization step.
Key Results
- Expert-Level Concordance: On the held-out validation data, the AI pipeline achieved $\ge 70\%$ concordance (within one Likert point) with expert annotations for both metrics, performing on par with human inter-rater agreement rates.
- Massive Scale and Speedup: While the hospital's prior manual Lean analysis spent roughly 100 person-hours reviewing 25 patients, the AI pipeline analyzed 500 patients in just 30 minutes of compute time.
- Enhanced Discovery Power: The AI pipeline independently recovered all 6 high-level categories previously identified by manual human audits (such as discharge planning and consult timeliness) while surfacing novel, actionable themes that humans had missed, including delayed goals-of-care discussions and fluid/electrolyte complications.
Limitations and Future Work
- Hypothesis Generation Only: The framework is designed for factor discovery and qualitative sense-making; it does not currently support quantifying the exact statistical or causal impact of the identified factors on hospital metrics.
- Documentation Dependency: The pipeline's efficacy is fundamentally bound by the quality, accuracy, and completeness of the clinical documentation within the EHR.
- Single-Center Evaluation: The case studies were conducted retrospectively at a single urban safety-net hospital. The authors plan to transition to prospective deployments and evaluate how well these natural-language prompts generalize to other hospital systems with different documentation styles.
Summary updated