Automated imbalanced classification via layered learning

Vítor Cerqueira, Luís Torgo, Paula Branco, Colin Bellinger

Introduction

In machine learning, imbalanced classification presents a significant challenge. This occurs when one class (the majority) vastly outnumbers the other (the minority), such as in fraud detection where legitimate transactions comprise the overwhelming majority of data. Standard algorithms often prioritize overall accuracy, leading them to predict the majority class by default and failing to identify rare but critical minority events.

Traditional solutions typically involve resampling—either under-sampling the majority or over-sampling the minority (e.g., SMOTE). However, these methods can discard vital information or introduce noise and overfitting. This paper introduces ICLL (Imbalanced Classification via Layered Learning), a framework that addresses these issues by decomposing the classification task into hierarchical stages without the need for synthetic data generation.

The ICLL Framework

ICLL utilizes a "Layered Learning" paradigm where the complexity of the decision boundary is managed through a sequence of simpler models. The core innovation lies in the automated definition of these layers using unsupervised hierarchical clustering.

Methodology Steps

  1. Unsupervised Clustering: The training data undergoes hierarchical clustering. An automatic heuristic determines the optimal "cut" in the cluster tree to group instances based on similarity.
  2. Group Assignment: Clusters are categorized into three types: Pure Majority (containing only majority class instances), Pure Minority (containing only minority class instances), or Mixed (containing both). Mixed clusters represent the "borderline" regions where classes overlap.
  3. Two-Layer Modeling:
    • Layer 1: A model is trained to distinguish "easy" majority cases (Pure Majority) from the rest of the data (Mixed + Pure Minority).
  4. Layer 2: A second model focuses exclusively on the "hard" cases. It discards the Pure Majority instances and learns to differentiate the minority class from the majority instances within the Mixed groups.
  5. Inference: For new data points, the final prediction is the product of probabilities from both layers. A point is classified as the minority class only if it successfully passes through both filters.
Hierarchical clustering and group assignment in the ICLL framework.

Experimental Evaluation

The researchers evaluated ICLL using 100 benchmark binary classification datasets from the KEEL repository. These datasets ranged from 92 to 5,472 instances, with imbalance ratios varying from 1.8 to 129.4. This diverse selection ensured the robustness of the results across various domains.

Key Results

ICLL was compared against state-of-the-art methods including SMOTE, ADASYN, and Balanced Random Forests. The findings include:

  • Superior Performance: ICLL variants occupied the top four spots in average rank across all 100 datasets.
  • Optimal Configuration: The ICLL+SMOTE(L2) variant, which applies SMOTE only in the second layer, emerged as the overall best-performing method.
  • Robustness on Difficult Tasks: On a subset of 29 "difficult" datasets (where standard Random Forests achieved < 0.9 AUC), ICLL’s performance advantage was even more pronounced.
  • Statistical Significance: Bayesian signed-rank tests confirmed that ICLL significantly outperforms standard resampling methods, particularly in scenarios with high class overlap.

Discussion and Insights

The success of ICLL stems from its "Divide and Conquer" approach. By filtering out "easy" majority instances in the first layer, the second layer encounters a much more balanced and focused dataset, making the decision boundary easier to map.

Furthermore, ICLL is largely parameter-free, leveraging the data's internal structure to define layers automatically. This eliminates the need for manual domain expertise or extensive hyperparameter tuning. The results also suggest that layered learning and traditional resampling are complementary; applying resampling specifically to the "hard" cases in the second layer yields the best results.

Limitations and Future Work

While effective on tabular data, the current study did not explore deep learning domains such as image or text classification. Additionally, the method's efficacy depends on the clustering algorithm's ability to identify Pure Majority groups. Future research will focus on extending ICLL to multi-class problems, one-class classification, and imbalanced regression tasks.

Summary updated

BibTeX
@article{cerqueira2023automated,
  author = {Vítor Cerqueira and Luís Torgo and Paula Branco and Colin Bellinger},
  title = {{Automated imbalanced classification via layered learning}},
  journal = {Machine Learning},
  year = {2023},
  doi = {10.1007/s10994-022-06282-w},
}
Figure