Introduction
In the deployment of artificial intelligence for clinical decision support, the reliability of a model's confidence is as critical as its raw accuracy. A well-calibrated model ensures that a predicted probability—for instance, an 80% chance of malignancy—corresponds to the actual frequency of the event in the real world. However, as medical AI moves toward rigorous fairness auditing, a significant methodological challenge has emerged: the metrics used to measure calibration may themselves be biased by the size of the dataset.
This paper investigates whether common calibration metrics, such as Expected Calibration Error (ECE), inadvertently penalize minority groups due to their smaller sample sizes in medical datasets. By "unraveling" these biases, the researchers demonstrate that what often appears to be algorithmic unfairness toward minority populations may, in fact, be a statistical artifact of the evaluation metrics.
The Problem: Imbalance and Metric Sensitivity
Medical datasets are frequently imbalanced, with minority groups (e.g., patients with darker skin tones in dermatological data) often represented by significantly fewer samples than the majority. If a calibration metric is sensitive to the number of samples ($N$), a model evaluated on a small minority group might appear poorly calibrated simply because the evaluation set is small, not because the model’s performance actually differs across groups. This raises a fundamental question for fairness audits: Are our tools for measuring equity themselves equitable?
Methodology
The researchers employed a multi-faceted approach to isolate the effects of sample size on calibration metrics:
- Clinical Audit: A VGG-19 deep learning architecture was trained to classify skin lesions as benign or malignant using the PAD-UFES-20 dataset. Calibration was evaluated across different skin tones using the Fitzpatrick scale.
- Subsampling Experiments: To test the impact of $N$, the authors compared the calibration of the majority group (light-skinned) using its full sample set against a subsampled version that matched the small size of the minority group (dark-skinned).
- Synthetic Simulations: Using a controlled environment with one million samples and beta distributions, the researchers simulated varying levels of "de-calibration." This allowed them to hold the underlying calibration constant while varying the sample size to observe how metrics like ECE, MCE, and AdaECE fluctuated.
The study evaluated several metrics, including Expected Calibration Error (ECE), Maximum Calibration Error (MCE), Adaptive ECE (AdaECE), and the calibration components of Proper Scoring Rules (PSR), specifically Delta-CE and Delta-Brier.
Key Insights
The "Spurious Bias" Trap
A "naive" fairness audit of the skin lesion model initially suggested that the model was significantly less calibrated for dark-skinned patients. However, when the researchers controlled for sample size by subsampling the light-skinned group to match the minority group's size, the discrepancy vanished. The perceived bias was a "statistical ghost" caused by the sensitivity of the ECE metric to small sample sizes.
Metric Sensitivity and the Paradox of Better Models
The study found that popular bin-based metrics (ECE, MCE, AdaECE) are highly sensitive to $N$. As the number of samples decreases, these metrics tend to systematically overestimate calibration error. Interestingly, this "finite size effect" becomes more pronounced as models become better calibrated. In perfectly calibrated synthetic scenarios, the ECE was almost entirely driven by sample size rather than actual model performance.
Robust Alternatives
While bin-based metrics faltered, the authors identified more reliable alternatives. Delta-Brier and Delta-CE—derived from the decomposition of Brier and Cross-Entropy scores—proved to be much more robust to variations in sample size. These metrics provide a more stable foundation for fairness audits in the context of imbalanced medical data.
Results and Discussion
The experimental results showed no significant difference in discrimination (AUC/Accuracy) between skin tone groups. In the naive calibration test, the ECE for the dark-skinned group was significantly higher than for the light-skinned group ($p < 0.001$). However, after matching sample sizes, the difference became statistically non-significant ($p > 0.05$).
Synthetic confirmation further solidified these findings: in a perfectly calibrated scenario, reducing the sample size from 100% to 10% caused the ECE to jump from approximately 0.003 to 0.008, despite the underlying calibration remaining identical.
Conclusion and Future Directions
The findings emphasize that researchers must be cautious when interpreting calibration differences in imbalanced datasets. The "bias" found in minority groups may often be an artifact of the metric's sensitivity to small $N$.
While this study focused on binary classification in dermatology, the implications are broad. There is an urgent need for more inclusive medical imaging databases to mitigate data scarcity. Furthermore, as post-hoc calibration (e.g., Platt Scaling) becomes standard practice, the risk of sample-size-induced metric bias increases, as these refined models are where the finite size effect is most visible. Future work should extend this analysis to multi-class problems and other imaging modalities like MRI and X-ray to ensure that the pursuit of fairness in medical AI is built on a statistically sound foundation.
Summary updated