← Back to blog
TechnicalSeptember 20, 2026·6 min read

Your Model Is Confident. That Is the Problem.

Why accuracy is not enough when the stakes are medical, and what calibration actually measures.

Your Model Is Confident. That Is the Problem.

When confidence fails

Imagine a radiologist reviewing an AI tool's assessment of a chest scan. The model labels the scan normal with 94% confidence. The result contributes to a decision to discharge the patient, but three weeks later the diagnosis changes. The scan was not normal after all.

This is a hypothetical example, but it exposes a real distinction. Even if a model is correct on 94% of cases in an evaluation, that does not mean its individual confidence scores are trustworthy. In medicine, asking whether those scores are reliable is not optional.

The problem with accuracy

An accuracy score measures how often a model's prediction matches the correct label. Confidence is the probability score the model assigns to its prediction. These are different quantities. When a model gets a case wrong, its overall accuracy does not tell us how confident it was about that wrong answer.

Obermeyer and Emanuel (2016) discuss both the promise and the challenges of predictive machine learning in clinical medicine. A strong evaluation result is a starting point, not a substitute for examining how predictions will be used. As Jamal Hossain explains in Great on Training Data, Useless Everywhere Else, performance during development can differ sharply from performance in deployment. Miscalibration is another failure to check, even when accuracy remains high.

What calibration measures

Suppose a model makes 100 predictions, each with a confidence of 0.8. If it is well calibrated for that group, we expect about 80 of those predictions to be correct. This is a statement about groups of predictions, not a guarantee about any single case.

A model can be 90% accurate overall, yet be correct only 70% of the time among predictions assigned 95% confidence. In that confidence band, the model is overconfident. Calibration asks whether stated probabilities agree with observed frequencies (Guo et al., 2017).

Measuring the gap: ECE and reliability diagrams

Guo et al. (2017) found that the modern neural networks they studied were often less well calibrated than earlier architectures, despite achieving higher accuracy. Reliability diagrams make such discrepancies visible by grouping predictions into probability bins and comparing predicted probabilities with observed outcomes.

For predicted-label confidence, Expected Calibration Error (ECE) takes a weighted average of the absolute gaps between each bin's mean confidence and its accuracy. The weights reflect how many examples fall into each bin. A large ECE indicates substantial disagreement under that binning scheme; a small aggregate ECE can still hide problems in particular bins or patient groups.

I applied calibration evaluation to a medical classification example using the Breast Cancer Wisconsin dataset, which contains 569 records with measurements derived from breast-mass biopsy images and malignant or benign labels. In my logistic regression experiment, I obtained 97.7% accuracy and an ECE of 0.035, a weighted calibration gap of 3.5 percentage points under the chosen evaluation setup.

These values illustrate why accuracy and calibration should be examined together. They depend on the evaluation split and calibration calculation, and do not establish clinical readiness.

Reliability diagram for the breast cancer example. The model's blue curve departs from the dashed diagonal in several probability bins.
Figure 1. Reliability diagram for the Breast Cancer Wisconsin example. The dashed diagonal indicates perfect calibration. The blue curve compares mean predicted probability with the observed fraction of positive labels in each bin. This class-probability view differs from plotting predicted-label confidence against accuracy.

The plot's vertical axis is the fraction of positives, not the fraction of all predictions that are correct. That distinction matters when interpreting a binary calibration curve. Bin counts would also help show how much evidence supports each point.

The clinical stakes

Rajpurkar and Lungren (2023) examine the capabilities, limitations, and workflow implications of AI interpretation of medical images. A probability score becomes useful only when clinicians understand what it represents and how reliably it behaves in the setting where it is used.

A precise-looking score can create unwarranted confidence if it systematically overstates reliability. Good calibration helps make uncertainty more interpretable, but it does not replace clinical judgment, adequate validation, or an understanding of the consequences of different errors.

What can be done

Temperature scaling is one way to recalibrate a classifier's probabilities. A positive temperature parameter is fitted on a separate calibration set and applied to the logits before the softmax. It preserves the highest-scoring class, and therefore ordinary top-1 accuracy, while changing the probability scores. Guo et al. (2017) found it effective on many of the datasets they studied. It can soften overconfident predictions, but improvement on a calibration set does not guarantee reliable probabilities under a new distribution.

Conformal prediction addresses a related but different question. Instead of repairing a probability score, it constructs a set of possible labels with a specified marginal coverage target, such as 90%. Standard guarantees require the calibration and future examples to be exchangeable, as they are under independent sampling from the same distribution. They do not require a particular parametric distribution, but they are not assumption-free and do not automatically survive distribution shift (Angelopoulos and Bates, 2022).

A 90% marginal coverage guarantee also does not mean 90% coverage for every patient or every subgroup. Prediction-set size, subgroup performance, and the validity of the data assumptions remain important.

What we should demand

Returning to the hypothetical chest scan, calibration might reduce an overconfident score. The revised number must come from a fitted calibration procedure and be evaluated on appropriate unseen data; we cannot simply choose a lower number and call it the true probability.

We should ask how confidence was evaluated, which patients and settings the evidence covers, and how uncertainty will affect review decisions. Accuracy tells us how often the model is right. Calibration tells us whether its probability scores match observed outcomes. Both matter when those outputs inform consequential decisions.

For a companion piece on overfitting and distribution shift, read Jamal Hossain's Great on Training Data, Useless Everywhere Else.

References

  1. Angelopoulos, A. N., & Bates, S. (2022 revision). A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification. arXiv:2107.07511.
  2. Guo, C., Pleiss, G., Sun, Y., & Weinberger, K. Q. (2017). On Calibration of Modern Neural Networks. Proceedings of the 34th International Conference on Machine Learning, 70, 1321-1330.
  3. Obermeyer, Z., & Emanuel, E. J. (2016). Predicting the Future: Big Data, Machine Learning, and Clinical Medicine. New England Journal of Medicine, 375(13), 1216-1219.
  4. Rajpurkar, P., & Lungren, M. P. (2023). The Current and Future State of AI Interpretation of Medical Images. New England Journal of Medicine, 388(21), 1981-1990.

Want to share your own experience? Every member can write here: reach out and we'll help you publish your first post.