L3 · Live demo · Chest X-ray safety audit

SecondSite: can this X-ray model be trusted here?

A 5-model ResNet18 ensemble trained on children's X-rays from one hospital. ROC-AUC 0.99 at home, about 0.70 on adult NIH X-rays. Next to each prediction it runs the project's frozen safety checks: ensemble uncertainty, a new-source detector and a Grad-CAM attention check. Compare an example from each source.

Input

Loading…

Model output

Waiting for the model…

Audit flags

    A clear result is not reassurance. In testing, images with the attention flag were not wrong noticeably more often than images without it, and 37% of the other source's images raised no new-source warning.

    What the model sees

    Input: 128 × 128 greyscale, centre square crop
    Grad-CAM averaged over the 5 models (coarse, 4 × 4 cells). Green: widened lung mask (examples only)

    All five ensemble members run in your browser in one ONNX graph. Their weights are stored as 8-bit integers per channel (56 MB instead of 224 MB) and expanded to 32-bit floats on your device; VERIFY.md shows the decisions match the full-precision models. Lung masks come from a separate segmenter that is not part of this demo, so the attention check runs on the examples only.