[Paper Review] Class-Weighted Evaluation Metrics for Imbalanced Data Classification
This paper proposes a class-weighted evaluation framework that extends Balanced Accuracy by incorporating class-specific importance weights, enabling fairer assessment of classifiers on imbalanced datasets where class cardinalities and importances are skewed differently. Experiments show it outperforms Balanced Accuracy in both model evaluation and training across real-world benchmarks in two domains.
Class distribution skews in imbalanced datasets may lead to models with prediction bias towards majority classes, making fair assessment of classifiers a challenging task. Balanced Accuracy is a popular metric used to evaluate a classifier’s prediction performance under such scenarios. However, this metric falls short when classes vary in importance, especially when class importance is skewed differently from class cardinality distributions. 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 and benchmarks from two different domains show that our new framework is more effective than Balanced Accuracy –- not only in evaluating and ranking model predictions, but also in training the models themselves.
Motivation & Objective
- To address the limitation of Balanced Accuracy in scenarios where class importance is skewed differently from class cardinality distributions.
- To develop a general-purpose evaluation framework sensitive to arbitrary skews in both class cardinalities and class importances.
- To enable more accurate model ranking and selection in imbalanced data classification tasks.
Proposed method
- The framework introduces class-weighted metrics that adjust for both the frequency (cardinality) and the relative importance of each class.
- It extends traditional evaluation metrics by applying class-specific weights that reflect both imbalance and domain-specific importance.
- The method uses a weighted F1-score and weighted accuracy formulations that incorporate importance weights proportional to class significance.
- The framework is designed to be plug-and-play with existing classifiers, enabling direct use in training and evaluation pipelines.
- It supports both evaluation and hyperparameter tuning by integrating importance-aware metrics into model selection processes.
- The approach is general and applicable to any classifier, making it suitable for diverse real-world applications.
Experimental results
Research questions
- RQ1How does the proposed class-weighted framework compare to Balanced Accuracy in evaluating model performance on imbalanced datasets with skewed class importances?
- RQ2Can the framework improve model training by guiding hyperparameter optimization using importance-aware metrics?
- RQ3Does the framework maintain robustness across different domains and real-world datasets with varying degrees of class imbalance and importance skew?
Key findings
- The proposed framework significantly outperforms Balanced Accuracy in ranking model predictions across multiple state-of-the-art classifiers on real-world datasets.
- The framework enables better model selection during hyperparameter tuning, leading to improved generalization on imbalanced data.
- Experiments across two distinct domains demonstrate consistent superiority of the class-weighted metrics in both evaluation and training phases.
- The framework effectively handles cases where class importance is skewed in a way that diverges from class cardinality distributions.
- Results show that models trained with importance-aware metrics achieve higher predictive fairness and performance on minority classes.
- The method is robust and generalizable, delivering consistent improvements across diverse benchmark datasets and classifier types.
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.