stat.MLApr 11, 2024

Robust performance metrics for imbalanced classification problems

Authors: Hajo Holzmann, Bernhard Klar

Organizations: Fachbereich Mathematik und Informatik, Philipps-Universität Marburg, Hans-Meerweinstr. 6, 35043 Marburg, Germany · Institut für Stochastik, Karlsruher Institut für Technologie (KIT)

Abstract

We show that established performance metrics in binary classification, such as Matthews' correlation coefficient (MCC), Cohen's κκ, the F-score or the Jaccard similarity coefficient are not robust to class imbalance in the sense that if the proportion of the minority class tends to 00, the true positive rate (TPR) of the Bayes classifier under these metrics {becomes very small or even tends to 00}. Thus, in imbalanced classification problems, these metrics favour classifiers which ignore the minority class. To alleviate this issue we introduce robustified modifications of the MCC, of Cohen's κκ and of the F-score with an additional tuning parameter which allows to adapt the amount of robustness against class imbalance. As theoretical guarantee we show that the Bayes-optimal classifier for these robustified performance metrics, when expressed in terms of the density ratio f1/f0f_1/f_0 of the class-conditional densities fif_i, has a threshold parameter which is upper-bounded in terms of the tuning parameters. Therefore, even in strongly imbalanced settings, the TPR associated to this classifier will be bounded away from 00{, provided that f1/f0f_1/f_0 exceeds this bound with positive probability under the positive class}. We numerically illustrate the behaviour of the various performance metrics and the effect of the tuning parameters in simulations as well as on a credit default data set. We also discuss connections to the receiver operating characteristic and precision-recall curves, which provide an alternative perspective on the proposed notion of robustness, and give recommendations on how to combine their usage with performance metrics.

Figures & tables

Appendix figures & tables17 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Imbalanced Classification under Capacity Constraints

    May 5, 2026Daniel Fraiman, Ricardo FraimanClass-Imbalanced LearningBinary Classification