MIT Critical Data · Laboratory for Computational Physiology

Is your model learning medicine, or just reading the answer?

SAIL finds the hidden shortcuts that make clinical AI look better in testing than it will be on a new patient. It is not about a bad model: a widely used clinical score was never designed to be a machine-learning input, and quietly carries the treatment decision.

Try the checksStart learning

The core finding

AUROC for predicting the next action falls as the decision moves further from the stateAUROC at offsets 0, 1, 2, 4 and 8 steps: 0.882, 0.852, 0.827, 0.785, 0.714. 0.650.700.750.800.850.900.88200.85210.82720.78540.7148Steps (offset) between the state and the decision

Hover or focus a point to read it.

AUROC for predicting the next treatment decision, by how many steps separate the state from the decision. Every offset uses all available rows (so the row count shrinks with distance). The pre-registered paired test uses the 93,629 rows common to offsets 0 and 8 and finds a drop of 0.147 (95% CI 0.140 to 0.154). Source: results/experiment5_h3_paired_bootstrap_bins.json, 13,192 stays.

0.147AUROC lost between offset 0 and offset 8 (95% CI 0.140 to 0.154)
5plain-language checks in the open-source package
13,192ICU stays in the primary cohort (11,354 under the published Sepsis-3 table)
0rows of your data leave your computer

Everything in one place

Six ways in, depending on who you are

How it works

1

Pick your dataset

A CSV or Parquet file from your workspace, or try the example data first — no setup beyond having sail-leakage installed.

2

Confirm the columns

SAIL auto-detects the patient ID, time step, treatment and outcome fields from typical column names — you just confirm or correct them.

3

Read the report

Five checks, each explained in plain language: what it checks, what SAIL found, and what to do about it. Everything runs on your computer.

See it in two minutes

A two-minute annotated tour of SAIL on synthetic data.

Read the video as text
  • Two synthetic patient windows can have very different blood pressure — 78 and 52 mmHg — but the identical SOFA cardiovascular score, 3. Once a vasopressor dose is running, the dose sets the score, not blood pressure.
  • That's why validation can look excellent: the input already carries the dose, so the model can read it off. A running infusion is also something a clinician knows at the bedside, so we measure how much of the score is that shortcut. With no infusion running, the gap between near and far state windows shrinks from 0.147 to 0.039 AUROC (13,192-stay cohort).
  • The extension's three steps: choose your data, run the checks — everything runs locally, on your own computer — and read the report.
  • SAIL runs five checks, each asking a plain question about how the data was built: construction, reconstruction, temporal overlap, timing violation, persistence dominance.
  • A flag means your validation numbers may overstate what the model will do on new patients, with a specific fix per card. When a check lacks what it needs, SAIL says which specification is missing — "not run" is an honest answer too, not a guess.

What it checks

Five categories, each a generalization of a mathematically proven mechanism from the underlying research — not a heuristic guess.

Construction leakage

Is a treatment dose built into one of the patient-state scores?

Reconstruction leakage

Can a hidden score be rebuilt from the scores the model can see?

Temporal overlap

Does the treatment period overlap the time window the state describes?

Timing violation

Is any state value measured after the treatment it should come before?

Persistence dominance

Would simply repeating the last treatment beat your model?

Install it

pip install sail-leakage

Also available as a VS Code extension (setup wizard, plain-language results, no Python typing required). It isn't on the Marketplace yet — build the .vsix from source: see the extension's README.

SAIL is open source (MIT licence) and built in the open: code, results and decisions are reviewed in public pull requests.