Evaluating Model Performance
Technical metrics for assessing how well an AI model performs its intended task. This section gives clinical researchers the vocabulary to critically evaluate published results and their own models.
Classification Metrics: Sensitivity, Specificity, and Beyond
Sensitivity and specificity describe the test and don't depend on disease prevalence. PPV and NPV describe what a result means in a particular population and depend heavily on it. Accuracy alone is misleading whenever the classes are imbalanced.
4.2The ROC Curve and AUC: What They Tell You and What They Hide
The ROC curve plots sensitivity against 1 - specificity across all thresholds, and AUC is the probability that the model ranks a random positive case above a random negative one. AUC hides calibration, prevalence effects and subgroup differences.
4.3Segmentation Metrics: Dice, IoU, and Volumetric Measures
Dice and IoU measure overlap and are functionally interchangeable, Hausdorff distance captures the worst boundary error, and volume error matters when volume is what's clinically actionable. Inter-annotator agreement sets the ceiling.
4.4Calibration: Does a 90% Confidence Score Really Mean 90%?
Calibration asks whether a model's 90% really means 90%, and it is independent of discrimination: a high AUC says nothing about it. Modern neural networks are typically overconfident, so expect to need post-hoc calibration on a held-out set.
4.5Statistical Significance, Confidence Intervals, and Sample Size for AI Studies
Report every performance metric with a 95% confidence interval. Precision for sensitivity and specificity depends on the number of positives and negatives, bootstrap works for almost any metric, and sample size should be calculated before the study.
4.6Cross-Validation Strategies for Medical Data
Cross-validation by patient (grouped K-fold) is the right default when patients contribute multiple measurements, because random K-fold leaks information. Leave-one-site-out is the closest thing to external validation without a separate dataset.
4.7Comparing Models: When Is One Model Truly Better Than Another?
Two models on the same test set are paired data, so use paired tests: DeLong for AUC and McNemar for binary outcomes. Pre-specify the comparison, and don't use the test set for model selection.