[Paper Review] The Effect of Balancing Methods on Model Behavior in Imbalanced Classification Problems
This paper proposes a framework to evaluate balancing methods in imbalanced classification not just by performance, but by their impact on model behavior using Explainable AI (XAI) tools. It introduces the performance gain plot and a new metric (ASDD) to compare changes in partial dependence and accumulated local effect profiles, revealing that methods like Near Miss significantly alter model behavior despite performance gains, especially in tree-based models.
Imbalanced data poses a significant challenge in classification as model performance is affected by insufficient learning from minority classes. Balancing methods are often used to address this problem. However, such techniques can lead to problems such as overfitting or loss of information. This study addresses a more challenging aspect of balancing methods - their impact on model behavior. To capture these changes, Explainable Artificial Intelligence tools are used to compare models trained on datasets before and after balancing. In addition to the variable importance method, this study uses the partial dependence profile and accumulated local effects techniques. Real and simulated datasets are tested, and an open-source Python package edgaro is developed to facilitate this analysis. The results obtained show significant changes in model behavior due to balancing methods, which can lead to biased models toward a balanced distribution. These findings confirm that balancing analysis should go beyond model performance comparisons to achieve higher reliability of machine learning models. Therefore, we propose a new method performance gain plot for informed data balancing strategy to make an optimal selection of balancing method by analyzing the measure of change in model behavior versus performance gain.
Motivation & Objective
- To investigate how data balancing methods alter model behavior beyond just performance metrics.
- To address the gap in understanding how balancing techniques affect model interpretability and decision-making processes.
- To develop a systematic method for selecting balancing techniques that balance performance gains with minimal behavioral disruption.
- To create benchmark datasets and a unified workflow for evaluating balancing methods and XAI tools.
- To provide a transparent, reproducible framework for assessing trade-offs between model performance and behavior changes.
Proposed method
- Uses Explainable AI (XAI) tools—partial dependence profiles (PDP) and accumulated local effect (ALE) profiles—to analyze changes in model behavior pre- and post-balancing.
- Introduces a novel metric, SDD (Standardized Difference in Dependence), to quantify changes in model behavior across features.
- Employs the performance gain plot to visualize trade-offs between prediction performance (balanced accuracy) and model behavior change (ASDD values).
- Develops the open-source Python package 'edgaro' to unify data balancing, model training, and XAI analysis workflows.
- Conducts experiments on both simulated datasets (with known ground truth) and real-world imbalanced datasets to validate findings.
- Applies Wilcoxon signed-rank tests with FDR correction to assess statistical significance of observed changes in model behavior and performance.
Experimental results
Research questions
- RQ1How do different data balancing methods alter the behavior of machine learning models, as measured by changes in partial dependence and accumulated local effect profiles?
- RQ2To what extent do balancing techniques like Near Miss or Random Undersampling distort the learned relationships between features and predictions?
- RQ3Can a unified metric (ASDD) effectively quantify the magnitude of model behavior change due to data balancing?
- RQ4How do performance gains from balancing methods correlate with changes in model behavior across different algorithms (e.g., logistic regression, random forest, XGBoost)?
- RQ5Can the performance gain plot be used as a decision tool to select balancing methods that optimize both performance and behavioral stability?
Key findings
- Random Undersampling consistently yields the highest performance gain in terms of balanced accuracy across both simulated and real datasets.
- The Near Miss method causes the largest changes in model behavior, particularly in Random Forest and XGBoost models, as measured by ASDD values.
- Logistic Regression models show lower ASDD values (less behavioral change) than tree-based models, but still exhibit notable shifts in feature dependence profiles.
- Performance gain plots reveal that methods with high performance gains (e.g., Random Undersampling) often come with significant behavioral changes, especially in high-imbalance scenarios.
- The impact of balancing on model behavior increases with higher variance and imbalance ratios in the original data distribution.
- The performance gain plot effectively visualizes trade-offs, showing that Near Miss is riskier in terms of behavior change despite moderate performance improvements.
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.