Confidence Analysis for Multi-Class Object Recognition using the Intermediate Values from Machine Learning Algorithms

Toshihiko Yamasaki, Shinnosuke Ohshima, Kiyoharu AizawaThe Journal of The Institute of Image Information and Television Engineers 2015

Abstract

This paper presents a method for estimating the confidence of multi-class object recognition results by analyzing intermediate values produced by machine learning algorithms, such as class membership probabilities and signed distances from decision boundaries. By leveraging scores from multiple runner-up classes, we improve the ability to distinguish between correct and incorrect predictions. We propose two approaches: a numerical calculation method ($conf_{topmean}$) and a meta-learning approach using a secondary SVM ($conf_{SVM}$). Our experiments demonstrate that these methods enhance confidence estimation accuracy across several benchmark datasets (Caltech-101/256, Birds 200, CIFAR-10/100) and generalize effectively from traditional One-vs-All SVMs to modern Convolutional Neural Networks (CNNs).

Introduction

In practical object recognition systems, a model's ability to self-assess its certainty is vital. High-confidence predictions can be acted upon immediately, while low-confidence ones may require human intervention or alternative processing. Standard confidence metrics typically focus on the top-ranked class score or the margin between the first and second scores. However, these simple measures overlook the "confusion" reflected in the scores of lower-ranked classes. This research explores how utilizing these "intermediate values" can lead to more robust confidence estimation.

Methodology

We introduce two primary techniques to capture the information within the top $n$ class scores:

1. Numerical Calculation ($conf_{topmean}$)

Rather than a simple margin between the top two classes, this method calculates the difference between the top score and the average of the scores for the 2nd through $n$-th ranked classes. This "top-mean" approach provides a more stable reference point for how much the leading class truly distinguishes itself from the rest of the candidates.

2. Machine Learning Approach ($conf_{SVM}$)

This approach treats confidence estimation as a secondary classification task. The scores of the top $n$ classes are used as features for a binary SVM trained to predict whether the primary classifier's top choice is correct. This allows the system to learn complex patterns of class confusion that simple formulas might miss.

Experimental Results

The proposed methods were evaluated on both traditional SVM-based classifiers and deep CNNs. Performance was measured using the Matthews Correlation Coefficient (MCC), which indicates the quality of the binary classification (correct vs. incorrect) based on the estimated confidence.

Figure 1: Comparison of confidence estimation methods for a CNN classifier across five datasets. The proposed methods generally outperform the baseline top-1 and margin (diff) methods.

As shown in the results for CNNs, the proposed methods consistently provide higher MCC values compared to standard baselines. The improvement is particularly notable in challenging datasets like CIFAR-100 and Caltech-UCSD Birds 200, where the model often faces multiple similar-looking categories.

Figure 2: Significant improvement in confidence estimation for the CIFAR-100 dataset. The meta-learning approach and numerical averaging provide a substantial boost over the standard margin.

Discussion and Conclusion

The results confirm that the scores of lower-ranked classes contain valuable information about a model's internal uncertainty. By incorporating these intermediate values, we can more accurately identify when a classifier is likely to have made an error. The meta-classification approach ($conf_{SVM}$) is particularly powerful, as it can adapt to the specific "confusion patterns" of different models and datasets. While the optimal number of classes ($n$) to include varies, the general principle of looking beyond the top result proves universally beneficial.

Summary updated

BibTeX
@article{yamasaki2015confidence,
  author = {Toshihiko Yamasaki and Shinnosuke Ohshima and Kiyoharu Aizawa},
  title = {{Confidence Analysis for Multi-Class Object Recognition using the Intermediate Values from Machine Learning Algorithms}},
  journal = {The Journal of The Institute of Image Information and Television Engineers},
  year = {2015},
  doi = {10.3169/itej.69.j257},
}
Figure