Skip to main content
QUICK REVIEW

[Paper Review] A Skew-Sensitive Evaluation Framework for Imbalanced Data Classification

Min Du, Nesime Tatbul|arXiv (Cornell University)|Oct 12, 2020
Imbalanced Data Classification TechniquesComputer Science5 citations
TL;DR

This paper proposes a skew-sensitive evaluation framework, Weighted Balanced Accuracy (WBA), that accounts for both class cardinality skew and arbitrary class importance in imbalanced multi-class classification. By incorporating customizable class weights—based on rarity or user-defined importance—it enables fairer classifier evaluation and improved model training, outperforming traditional metrics like Accuracy and Balanced Accuracy in real-world tasks such as log parsing, sentiment analysis, and URL classification.

ABSTRACT

Class distribution skews in imbalanced datasets may lead to models with prediction bias towards majority classes, making fair assessment of classifiers a challenging task. Metrics such as Balanced Accuracy are commonly used to evaluate a classifier's prediction performance under such scenarios. However, these metrics fall short when classes vary in importance. In this paper, we propose a simple and general-purpose evaluation framework for imbalanced data classification that is sensitive to arbitrary skews in class cardinalities and importances. Experiments with several state-of-the-art classifiers tested on real-world datasets from three different domains show the effectiveness of our framework - not only in evaluating and ranking classifiers, but also training them.

Motivation & Objective

  • To address the limitation of existing metrics in evaluating imbalanced multi-class classifiers when class importance does not align with class frequency.
  • To design a general-purpose evaluation framework that is both simple and extensible across diverse application domains.
  • To enable fair comparative assessment of classifiers by incorporating non-uniform class importance into performance metrics.
  • To demonstrate the framework's utility in both evaluating and actively improving model training through weighted loss functions.

Proposed method

  • Proposes Weighted Balanced Accuracy (WBA) as a scalar metric that generalizes Balanced Accuracy by incorporating customizable class weights.
  • Uses class weights derived from rarity (WBA_rarity) or user-defined importance (WBA_user) to reflect varying significance of classes.
  • Applies the WBA metric during both evaluation and training by adjusting loss functions with corresponding class weights.
  • Validates the framework across three real-world domains: system log parsing, sentiment analysis, and URL classification.
  • Maps classifier outputs to a shared category space to enable cross-vendor comparison in URL classification experiments.
  • Employs a modular design allowing extension to any number of classes and arbitrary importance criteria.

Experimental results

Research questions

  • RQ1How can classifier evaluation be made sensitive to both class cardinality skew and non-uniform class importance in multi-class imbalanced datasets?
  • RQ2Can a general-purpose evaluation metric outperform traditional metrics like Accuracy and Balanced Accuracy in ranking classifiers under skew mismatches?
  • RQ3To what extent can WBA improve model training when class weights are aligned with importance criteria?
  • RQ4How does WBA perform in real-world applications such as log parsing, sentiment analysis, and URL classification?

Key findings

  • WBA_rarity improved from 0.653 to 0.761 when training with rarity-based weights, demonstrating significant gains in handling rare but important classes.
  • WBA_user increased from 0.640 to 0.752 when user-defined weights prioritized the malware class, showing effective boosting of high-impact predictions.
  • Vanilla training without class weights achieved high benign class accuracy (0.99) but poor performance on rare classes (e.g., NSFW: 0.0), highlighting the need for weighted training.
  • Classifier A outperformed others in WBA_rarity, while D had the highest overall Accuracy but ranked lower in importance-sensitive metrics, revealing misranking by traditional metrics.
  • In URL classification, D had the highest Accuracy but B or A were superior under WBA_rarity, showing that standard metrics fail to reflect real-world importance.
  • The framework enables effective reweighting during training, with WBA-based loss functions significantly improving accuracy on underrepresented, high-impact classes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.