Abstract
In medical imaging AI, reporting performance metrics like the Dice Similarity Coefficient (DSC) is standard, but regulatory bodies increasingly require measures of uncertainty, typically expressed as confidence intervals (CIs). This study investigates the reliability of common CI calculation methods—including the default BCa bootstrap in SciPy—across 228 benchmarking instances from the Medical Segmentation Decathlon. We find that while most methods are reliable for the mean at sufficient sample sizes, the BCa and Basic bootstrap methods fail catastrophically when applied to the median, a common summary statistic for skewed segmentation data. We recommend the Percentile Bootstrap as a robust alternative for median-based uncertainty reporting.
Introduction
As medical AI models move from research to clinical deployment, the demand for rigorous uncertainty quantification has grown. The FDA and other regulatory bodies now expect more than just point estimates of performance; they require confidence intervals (CIs) to assess the reliability of reported results. However, the methodology used to calculate these intervals is often treated as a "black box," with many researchers relying on default settings in statistical software. This paper demonstrates that these defaults can be dangerously misleading when applied to the non-Gaussian distributions typical of medical image segmentation metrics.
Methodology: Simulating Real-World Distributions
To evaluate the robustness of CI methods, the authors moved beyond simple mathematical models and utilized real-world performance data from the Medical Segmentation Decathlon (MSD). By analyzing 19 different models across 12 diverse segmentation tasks, they generated 228 benchmarking instances.
Using Kernel Density Estimation (KDE), the researchers created realistic "ground truth" distributions for each instance. They then performed 10,000 simulations per instance to test five common CI methods:
- Parametric z: Assumes a normal distribution with known variance.
- Parametric t: Assumes a normal distribution with estimated variance.
- Percentile Bootstrap: A non-parametric resampling method.
- Basic Bootstrap: Also known as the "reverse percentile" method.
- BCa (Bias-Corrected and Accelerated) Bootstrap: An advanced method designed to handle skewness, and the default in SciPy's
bootstrapfunction.
Results: Estimating the Mean
The study first examined the coverage of CIs for the mean performance. Coverage refers to the percentage of times the calculated 95% CI actually contains the true population mean. Ideally, this should be exactly 95%.
As shown in the figure above, for sample sizes greater than 50, most methods (t, z, BCa, and Percentile) provide acceptable coverage for the mean. Interestingly, despite the fact that the Gaussian distribution was rejected in the vast majority of cases (78% for DSC and 86% for NSD), parametric methods like the t-test performed surprisingly well for the mean, likely due to the Central Limit Theorem.
The Median Trap: Why Defaults Fail
The most significant finding of the paper concerns the estimation of CIs for the median. In medical imaging, the median is often preferred over the mean because it is less sensitive to outliers (e.g., cases where the model fails completely, resulting in a Dice score of 0).
As illustrated in the results for the median, the BCa bootstrap—the default in many libraries—performs catastrophically. Its coverage often falls far below 95%, meaning it produces intervals that are too narrow and overconfident. The technical reason for this failure lies in the BCa method's reliance on "jackknife" estimates. Because the median is a discrete, step-like statistic, the jackknife estimate can become unstable or zero, breaking the mathematical corrections that BCa is supposed to provide.
In contrast, the Percentile Bootstrap, often considered a simpler method, was the only technique that remained reliable across all 228 experiments and all sample sizes for the median.
Discussion and Practical Recommendations
This research highlights a critical "hidden trap" in medical imaging statistics. Researchers should not assume that advanced or default methods are always superior.
Key recommendations include:
- For the Mean: Most methods are safe if the sample size is n > 50. For smaller samples, the Parametric t or BCa methods are generally preferred over the Basic bootstrap.
- For the Median: Use the Percentile Bootstrap. Avoid the BCa and Basic bootstrap methods, as they consistently underestimate uncertainty.
- Sample Size Matters: Regardless of the method, very small sample sizes (n < 25) frequently lead to poor coverage and unreliable intervals.
Limitations
While comprehensive, this study focused on coverage rather than interval width. A method that always produces an interval from 0 to 1 would have 100% coverage but would be useless for evaluation. Future work should investigate the trade-off between coverage and precision (width). Additionally, the findings are specific to segmentation metrics like DSC and NSD; other metrics with different statistical properties may require further investigation.
Summary updated