---
title: "Discussion on \"Should you trust an object detector’s confidence?\" | Hashnode"
description: "Discussion on \"Should you trust an object detector’s confidence?\". Compare confidence calibration across five object detectors, understand expected calibration error, and see how Platt scaling improves YOLO26n scores."
url: "https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Should you trust an object detector’s confidence?](https://blog.olegserov.com/object-detection-confidence-calibration?utm_source=hashnode&utm_medium=feed)

Compare confidence calibration across five object detectors, understand expected calibration error, and see how Platt scaling improves YOLO26n scores.

Oct 7 · 6 min read · blog.olegserov.com  
Read the article

-   [#computer-vision](https://hashnode.com/tag/computer-vision)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#object-detection](https://hashnode.com/tag/object-detection)
-   [#model-calibration](https://hashnode.com/tag/model-calibration)
-   [#deep-learning](https://hashnode.com/tag/deep-learning)

## Written by

[Oleg Serov](https://hashnode.com/@sirserow)

@sirserow · Yokohama, Japan

  
[View profile](https://hashnode.com/@sirserow)

Sharing the results of my endless experiments.

## Responses 10

Markdown supported · ⌘↵ to post

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 9](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac88c0e611171301d1efed3)

Keeping the same 10,893 detections before and after correction makes the calibration improvement interpretable. There is an important population boundary in the threshold table: these detections were selected using original scores of at least 0.25, so a corrected-score threshold is being evaluated inside that already-filtered set.

If deployment applies Platt correction to lower original scores and admits some of them, the 1.31-point ECE does not yet validate that expanded population. I would report the original-score floor alongside each operational threshold, or repeat calibration evaluation over the actual deployed candidate set. That preserves the distinction between remapping existing detections and changing which detections reach users.

[Oleg Serov](https://hashnode.com/@sirserow)

[Oct 18](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac88c0e611171301d1efed3#reply-6ad424578bdbbc8157d2809a)

Thanks, Ahmet! Apologies for a delayed response.

That's an important point. The ECE applies only to the fixed set selected using original scores ≥0.25. It doesn’t validate lower-scoring detections that a deployment pipeline might admit after correction.

The correction was also fitted on that filtered population, so applying it below the original-score floor would need separate validation. Reporting that floor alongside each operational threshold would make the scope clearer. That's a great direction for the next step, thank you!

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Oct 20](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac88c0e611171301d1efed3#reply-6ad729f3526111b1e7b19f2b)

The fitting population matters as much as the evaluation population here. A correction fitted above 0.25 could look smooth below that point while being unsupported by any calibration examples.

For an extension, I would save candidates at a lower original-score floor first, then fit and test on separate images from that expanded set. Report retained true positives and false positives near the admission boundary alongside calibration. That would show whether the new population is useful operationally, while keeping the existing 10,893-detection result as a clearly defined baseline.

[Kartik N V J K](https://hashnode.com/@kartik-nvj)

[Oct 8](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac7ddf30a309763fa28d23e)

The 61.81% average confidence against 78.45% actually correct is a clean case of underconfidence, and temperature scaling fixing the scores without moving a single box is the neat part. It is the lesson I keep relearning on evals: a healthy-looking number can still be miscalibrated, the way a green CI run hides a live regression (I wrote that up here: [kartiknvjk.hashnode.dev/my-ci-evals-were-green-a-…](https://kartiknvjk.hashnode.dev/my-ci-evals-were-green-a-regression-still-paged-me-at-3-am) ). Did 15 equal-width ECE bins ever mask something that adaptive-width bins caught?

[Oleg Serov](https://hashnode.com/@sirserow)

[Oct 18](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac7ddf30a309763fa28d23e#reply-6ad422c08bdbbc8157d272f1)

Thanks, Kartik! Apologies for a long response. The CI analogy makes sense - one summary number can hide quite a lot.

In my experiment Platt scaling produced the large improvement, reducing ECE from 16.64 to 1.31 percentage points, however the temperature scaling only brought it down to 15.28. Both methods kept the boxes and rankings unchanged.

I haven’t tested adaptive-width bins in this experiment, so I can’t say they caught something the fixed bins missed. I did check 10, 15, and 20 equal-width bins: YOLO26n’s original ECE stayed at 16.64 points across all three. That confirms underconfidence finding, but still doesn’t really establish how sensitive the corrected result is to binning.

Thank you, comparing equal-count bins would be a useful follow-up, especially in the high-confidence region.

[Akhila Sharon N.](https://hashnode.com/@akhila-003)

[Oct 8](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac78ff44cbe3adc689cfac3)

Really neat findings Oleg. Modern models improving accuracy while regressing on score reliability is a classic trade off. The Platt correction results are impressive. Did you notice any major difference in performance between temperature scaling and Platt scaling on rarer classes?

[Oleg Serov](https://hashnode.com/@sirserow)

[Oct 8](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac78ff44cbe3adc689cfac3#reply-6ac7c21c0d393c5f216610b6)

Ahila, thank you for you comment, that's an interesting metric to check! To do this I defined rare classes as the 20 COCO classes with the fewest labeled objects in the calibration split. Together, they had 773 eligible test detections. On this subset the ECE value for Temperature was about 9.89 percentage points, while Platt gave 3.74 (lower is better). So Platt still showed better calibration on the rare classes, although individual class results varied and many had small sample sizes.

[Jam Yanh](https://hashnode.com/@danagua)

[Oct 7](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac641547f639fd37cd73ccf)

Keeping the same 10,893 detections before and after correction makes the result much easier to interpret. Would you consider adding precision and retained-detection counts at a few thresholds on the corrected scores? That would help readers choose an operating threshold without confusing better calibration with improved recall.

[Oleg Serov](https://hashnode.com/@sirserow)

[Oct 7](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac641547f639fd37cd73ccf#reply-6ac658cda2b74ab8ed82afc6)

Jam, thank you, that's a great point! I have the saved per-detection results, so it's possible report precision and retained counts at several corrected-score thresholds. I have added it to the article.

[Jam Yanh](https://hashnode.com/@danagua)

[Oct 10](https://hashnode.com/posts/object-detection-confidence-calibration/6ac5a141dd27d808f63b1dd3/comment/6ac641547f639fd37cd73ccf#reply-6aca0b55725822e0d51dcd85)

Thanks for adding the table, Oleg. Comparing the 0.90 and 0.95 rows makes the tradeoff much clearer: the extra precision comes with substantially fewer retained detections. That is much more useful for choosing a threshold than the ECE number alone.
