A triage workbench for evaluating an AI model against ground truth: pick the operating threshold, read the confusion matrix and ROC, find the subgroups where failures concentrate, and watch for drift between batches. Built around the workflow of taking clinical AI from model to monitored deployment.
Demo with synthetic sample data - heuristic analysis, not a clinical tool
No data loaded yet. Expected CSV columns: truth (0/1) and score (0-1), optional prediction (0/1), batch, and any subgroup columns (e.g. site, scanner, age_group).
Operating threshold
The product question behind every deployment: where do we set the bar? Slide the threshold and watch sensitivity, specificity and the failure list change. In triage products, the false-negative side of this tradeoff is usually the expensive one.
0.50
Confusion matrix at this threshold
Actually positiveActually negativeFlagged
-true positive
-false positive
Passed
-false negative
-true negative
ROC curve
Failure patterns by subgroup
Where do false negatives and false positives concentrate? A subgroup with sensitivity far below the model average is a candidate for dataset gap analysis or annotation review before any retraining.
Batch drift
Compares the earliest and latest batches in the file. A drop in sensitivity or a shift in score distribution between batches is the kind of signal post-deployment monitoring should catch.
Failure list
Every case the current threshold gets wrong, for ground-truthing follow-up. False negatives first.
How metrics are computed
Sensitivity = TP/(TP+FN). Specificity = TN/(TN+FP). Precision = TP/(TP+FP). FPR = FP/(FP+TN). When a score column exists, the slider re-derives predictions as score >= threshold; AUC is the rank-based (Mann-Whitney) estimate. All computed from the loaded rows only; no smoothing, no external benchmarks. This is a transparent heuristic workbench: it shows where to look, not whether a model is safe to deploy.