Estimating the impact of a process change before it happens is a classic "what-if" problem. In hospital Quality Improvement (QI), teams often want to know how much time a new policy—like prioritizing certain imaging tests—will save on a patient's total Length of Stay (LOS). Traditional methods either rely on subjective expert hunches (prone to bias) or purely data-driven models (which fail when there is no historical data for the new policy).
A new paper by Vossler et al. introduces expert-guided g-computation, or egg-computation, a framework that bridges the gap between qualitative clinical reasoning and rigorous statistical causal inference. By leveraging Large Language Models (LLMs) to scale expert judgment, the authors provide a way to rank hypothetical interventions based on their predicted causal impact.
TL;DR
The authors propose "egg-computation," a method that maps clinical Gantt charts to causal Directed Acyclic Graphs (DAGs) to estimate time saved by hypothetical hospital interventions. By using a multi-step LLM pipeline to extract these causal structures from unstructured clinical notes, they can reliably predict the impact of new policies even when no historical data exists.
What Problem Does This Paper Address?
Hospital efficiency is often measured by Length of Stay (LOS). Reducing LOS improves patient outcomes and hospital throughput. However, prioritizing which QI intervention to implement is difficult.
- Qualitative Gap: Clinicians use Gantt charts to map patient journeys, but these lack formal probabilistic semantics and are hard to scale.
- Quantitative Gap: Standard regression models struggle with "positivity" (you can't model a policy that has never been implemented) and "confounding" (clinical notes contain vital context that tabular data misses).
- Heterogeneity: Every patient's path through a hospital is different. A single, population-level causal graph is often too simplistic to capture the diverse dependencies in individual patient trajectories.
Methods
The core innovation is egg-computation, which treats the Gantt chart as a Directed Acyclic Graph (DAG) where nodes represent event timings.
The framework classifies events into three types to determine how to simulate a "counterfactual" (what would have happened under the new policy):
- Type I (Unaffected): Events that occur before or are independent of the intervention. Their timings are copied directly from the factual data.
- Type II (Downstream): Events whose timing depends on the intervention but aren't the direct target. These are predicted using statistical models (like ridge regression or LLM-based in-context learning) trained on observational data.
- Type III (Intervention Targets): The specific events the new policy changes. Since these have never been observed, their timings are supplied by an expert (or an LLM mimicking an expert).
To scale this, the authors developed a five-step LLM pipeline (using GPT-5 and GPT-5-mini) that reads unstructured clinical notes to extract nodes, identify dependencies, and formalize the patient-specific DAG.
Datasets
The researchers evaluated their framework using two primary sources:
- Simulation Study: A synthetic dataset of 4,000 patients with varying causal dependencies between imaging (CT/MRI) and clinical decisions. This was used to benchmark egg-computation against standard "Single-DAG" causal methods.
- Real-World Hospital Data: 2,193 inpatient timelines from Zuckerberg San Francisco General Hospital (ZSFG), covering five common diagnoses. The LLM pipeline was used to evaluate 11 candidate QI interventions, such as "Consult response escalation" and "Discharge before noon."
Key Insights and Ideas
- Gantt Charts are DAGs: The paper formalizes the intuition that the arrows in a project management Gantt chart represent causal dependencies. This allows researchers to apply the "g-computation" formula—a staple of causal inference—to time-ordered processes.
- LLMs as Scalable Experts: Constructing a causal graph for every single patient is impossible for humans. The authors show that LLMs can perform "clinical reasoning" by extracting latent dependencies from notes (e.g., "starting antibiotics because of the MRI result") that are invisible to standard databases.
- Prevalence $\neq$ Impact: A key finding was that the most "common" bottleneck isn't always the most impactful to fix. Some interventions apply to many patients but save little time because other downstream dependencies (like waiting for a specialized facility bed) still block discharge.
Key Results
- Accuracy: In simulations, egg-computation achieved zero bias when the patient-specific DAG was correctly identified, whereas standard methods that assumed a single population-wide DAG incurred biases of up to 14 hours.
- Human-LLM Concordance: In a study of 24 patient cases, LLM-generated DAGs showed high specificity (>96%) and precision (>91%) compared to human expert annotations.
- Intervention Ranking: The pipeline successfully ranked 11 interventions. "Consult response escalation" was identified as the highest impact, saving an estimated 18.9 hours per screened stay, a result that aligned with clinical intuition better than simple eligibility-based rankings.
Limitations and Future Work
- Resource Constraints: The model assumes "SUTVA" (no interference), meaning one patient’s speed-up doesn't affect another. In reality, hospital resources are shared, and speeding up one patient might create a bottleneck for another.
- Prompt Sensitivity: The accuracy of Type III (intervention) timings relies heavily on the detail and quality of the LLM prompts.
- Future Directions: The authors suggest extending the framework to handle "batches" of patients to account for shared resource constraints and applying the method to other fields like manufacturing or software development planning.
Summary updated