← Latest papers
📊 statistics

Expert-Guided g-computation with Large Language Models for Estimating Causal Effects on Timings: Applications to Hospital Quality Improvement

This paper proposes "egg-computation," an expert-guided g-computation framework enhanced by large language models that combines clinical reasoning with data-driven causal inference to accurately estimate and rank the time-saving effects of hospital quality improvement interventions, particularly for metrics like length of stay where traditional methods struggle with hypothetical scenarios or complex causal mechanisms.

Original authors: Patrick Vossler, Jialin Ouyang, F. Richard Guo, Anran Huang, Ali Shojaie, Lucas Zier, Fan Xia, Jean Feng

Published 2026-08-12
📖 4 min read☕ Coffee break read

Original authors: Patrick Vossler, Jialin Ouyang, F. Richard Guo, Anran Huang, Ali Shojaie, Lucas Zier, Fan Xia, Jean Feng

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to figure out why a traffic jam happened on your way to school. You could look at the cars and guess, "Oh, that red car was slow," but that's just guessing. Or, you could look at a map of every single car's route and the traffic lights they hit to see exactly how one slow car caused a chain reaction. This is the heart of causal inference: it's the science of figuring out not just what happened, but why it happened and what would have happened if we had changed just one thing. In the world of hospitals, this question is super important. Hospitals want to know how to get patients home faster (a metric called "Length of Stay" or LOS) because it saves money and helps patients feel better. But figuring out the "why" is tricky. You can't just run a test where you try a new rule on half the patients and see what happens, because the new rule hasn't been invented yet! So, doctors have to imagine the future, but their imaginations can be biased, and computer programs often get confused because they haven't seen the new rule before.

This paper introduces a clever new way to solve this puzzle called egg-computation (which stands for Expert-Guided g-computation). Think of a hospital stay like a giant, complex board game where a patient moves from square to square: admission, getting an X-ray, waiting for a doctor, getting a bed, and finally leaving. Usually, the squares are connected by rules: you can't leave until you get the doctor's note. The authors realized that if you draw this game as a Gantt chart (a timeline with bars showing how long each task takes), you can treat it like a map of cause-and-effect. The problem is, when you want to test a new rule (like "get the doctor to the patient 2 hours faster"), you don't have data on what happens next. The paper proposes a team-up: human experts use their brainpower to guess how the new rule changes the first few steps, and then a computer uses real data to predict how the rest of the game plays out. To make this fast enough to use on thousands of patients, they used a Large Language Model (LLM)—a super-smart AI that reads patient notes—to act like the expert. Instead of retraining the AI, they carefully designed specific instructions (prompts) to guide the AI through drawing these maps and guessing the changes.

The researchers tested this idea in two ways. First, they ran computer simulations where they knew the "true" answer. They found that when every patient had a different, messy path through the hospital, old methods that tried to use one simple map for everyone got it wrong by a lot (sometimes guessing the wrong time saved by over 14 hours!). But their new egg-computation method, which built a unique map for each patient, got the answer almost perfectly. Then, they tried it on real data from a big city hospital with 11 different ideas for improvement. They asked human experts to check the AI's work, and the AI was surprisingly good; it agreed with the experts on the structure of the hospital "game" about 90% of the time. When they calculated how much time each new idea would save, the AI's estimates were very close to what the human experts thought.

The most exciting part is what they discovered about the ideas themselves. Sometimes, a new rule looks great because it applies to lots of patients, but when you look at the actual cause-and-effect, it doesn't actually save much time. For example, one idea about speeding up imaging tests applied to many patients, but another idea about making sure doctors responded to consults faster was estimated to save more time per patient, even if fewer people qualified for it. The AI even helped doctors see why some ideas failed in the simulation: for instance, "early discharge planning" didn't work as well as hoped because the AI spotted that social workers couldn't fix medical problems that were actually the real reason patients were stuck. The paper suggests that this mix of human intuition and data-driven math, powered by AI, is a powerful new tool for hospitals to figure out which changes will actually work before they try them in the real world.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →