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.
The core finding
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.
Everything in one place
Six ways in, depending on who you are
Learn
Short, plain-language lessons on leakage, from first idea to formal proof.
Tool
Run the five checks on your own data, locally. Nothing leaves your machine.
Research
Proofs, the audit, the pre-registered test and everything needed to replicate it.
Library
A shared, evidence-coded catalogue of leakage patterns in published clinical models.
Workshops
A live teaching series. Dates and hosts are announced here once confirmed.
Community
How to join, contribute and be credited.
How it works
Pick your dataset
A CSV or Parquet file from your workspace, or try the
example data first — no setup beyond having sail-leakage installed.
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.
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.
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.