[Paper Review] Bad practices in evaluation methodology relevant to class-imbalanced problems
This paper identifies and critiques widespread bad practices in evaluating machine learning models for class-imbalanced problems, emphasizing that accuracy, standard AUC, and improperly sampled test sets lead to overly optimistic and misleading performance assessments. It advocates for using precision-recall curves, adjusted precision, and region-specific AUC to reflect real-world deployment conditions.
For research to go in the right direction, it is essential to be able to compare and quantify performance of different algorithms focused on the same problem. Choosing a suitable evaluation metric requires deep understanding of the pursued task along with all of its characteristics. We argue that in the case of applied machine learning, proper evaluation metric is the basic building block that should be in the spotlight and put under thorough examination. Here, we address tasks with class imbalance, in which the class of interest is the one with much lower number of samples. We encountered non-insignificant amount of recent papers, in which improper evaluation methods are used, borrowed mainly from the field of balanced problems. Such bad practices may heavily bias the results in favour of inappropriate algorithms and give false expectations of the state of the field.
Motivation & Objective
- To highlight the prevalence of flawed evaluation practices in recent machine learning papers dealing with class-imbalanced datasets.
- To demonstrate how common metrics like accuracy and standard AUC can mislead due to class imbalance and improper test set sampling.
- To argue that evaluation methodology must be rigorously scrutinized in peer review to ensure valid comparisons and realistic expectations of model performance.
- To propose practical, principled alternatives—such as adjusted precision and region-of-interest AUC—for more accurate and realistic performance assessment in real-world deployments.
Proposed method
- Proposes using Precision-Recall (PR) curves instead of ROC curves when the positive class is of primary interest and false positives are costly, as PR curves better reflect the trade-off relevant to end users.
- Introduces an adjusted precision formula that corrects for discrepancies between test set class priors and real-world class priors: adjusted_precision = (p_real/p_test * TP) / (p_real/p_test * TP + (1-p_real)/(1-p_test) * FP).
- Recommends computing AUC only over a defined region of interest—especially for high-imbalance scenarios—where false positive rates are practically relevant (e.g., FPR ≤ 10⁻⁴ in intrusion detection).
- Advocates for avoiding down-sampling of the majority class in test sets to preserve realistic class distribution and prevent overly optimistic precision estimates.
- Stresses the importance of reporting true class priors and discussing their impact on performance metrics, especially in applications like medical diagnosis or network security.
Experimental results
Research questions
- RQ1Why is accuracy a poor metric for evaluating models on class-imbalanced datasets, and what are the consequences of using it?
Key findings
- In a survey of 517 imbalanced classification papers, 38% used accuracy as the evaluation metric despite knowing the data was imbalanced, leading to misleading performance claims.
- A model with accuracy lower than the imbalance ratio (e.g., 97% accuracy on a 1:100 imbalance) would be outperformed by a trivial majority-class classifier predicting only the majority class.
- Using down-sampled test sets leads to overly optimistic precision estimates, as the number of false positives is underestimated relative to real-world conditions.
- Standard AUC over the full ROC curve can be dominated by irrelevant regions—e.g., 99.99% of the area may lie in regions with FPR > 10⁻³, which are impractical in high-imbalance domains like network intrusion detection.
- Adjusted precision, which accounts for real-world class priors, provides a more realistic estimate of model performance and should be reported when test set priors differ from real-world priors.
- Region-specific AUC computation—focusing only on the FPR range relevant to deployment (e.g., FPR ≤ 10⁻⁴)—can prevent misleading comparisons and better reflect practical utility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.