Solving imbalanced learning with outlier detection and features reduction

Salvatore Lusito, Andrea Pugnana, Riccardo GuidottiMachine Learning 2024 · DOI

Abstract

Traditional imbalanced learning relies heavily on resampling techniques like SMOTE to balance class distributions. However, these methods often introduce synthetic noise and fail to address the underlying quality of data representation. This paper introduces FROID (Features Reduction and OutlIer D**etection), a framework that shifts the focus from data augmentation to representation learning. By treating minority instances as outliers and generating a high-dimensional feature space through unsupervised methods, FROID enables classifiers to better distinguish rare classes without synthetic data. Evaluation across 64 datasets and two real-world case studies demonstrates that FROID significantly outperforms state-of-the-art methods in critical metrics like Precision-Recall Area Under Curve (PRA).

Introduction

In domains such as fraud detection, medical diagnostics, and tax evasion, the "class imbalance" problem remains a significant hurdle. Standard machine learning models are typically designed to maximize overall accuracy, which often leads them to ignore the rare "minority" class in favor of the "majority" class. For decades, the primary solution has been resampling—either undersampling the majority or oversampling the minority using algorithms like SMOTE.

However, resampling has reached a plateau. Synthetic data is often implausible, and these methods focus on the quantity of instances rather than the quality of the features describing them. FROID proposes a different approach: instead of needing more data, we need a better way to look at the data we already have.

The FROID Methodology

The FROID framework operates as a pre-processing pipeline that treats minority instances as "outliers" to be highlighted rather than "gaps" to be filled. The workflow is divided into three distinct phases:

  1. Initial Transformation: The dataset is processed through 14 different Outlier Detection (OD) methods (e.g., Isolation Forest, Local Outlier Factor) and 8 Feature Reduction (FR) methods (e.g., PCA, t-SNE).
  2. The "Inception" Phase: This novel meta-step applies OD and FR methods to the results of the first phase. For instance, it might calculate the "outlierness" of a record based on its coordinates in a 2D PCA projection.
  3. Concatenation and Selection: These new features (averaging over 500 per dataset) are combined with the original data. To mitigate the "curse of dimensionality," a feature selection step using LightGBM importance is employed to retain only the most discriminative attributes.

The final enriched dataset is then processed by a standard classifier, with LightGBM identified as the most effective model for this architecture.

Experimental Evaluation

The authors conducted an extensive evaluation using 64 benchmarking datasets from UCI, Kaggle, and KEEL repositories. Additionally, the framework was tested on three supervised outlier detection datasets (ecoli, glass, satellite) and two real-world case studies:

  • diva: A private tax evasion dataset from the Italian Ministry of Economics.
  • hospital: A dataset tracking patient discharges.

Key Results

  • Performance Gains: FROID + LightGBM outperformed 10 state-of-the-art competitors, including SMOTE, ADASYN, and XGBOD. It showed particular strength in PRA, the most critical metric for imbalanced tasks where the cost of missing a minority instance is high.
  • Real-World Impact: In the tax evasion study, FROID improved the GINI coefficient by 7.78% over the original data. In the hospital study, it boosted PRA by 12.5%.
  • Versatility: The framework proved equally effective for supervised outlier detection, achieving top performance on the satellite dataset.

Discussion and Insights

The core innovation of FROID is the realization that in imbalanced settings, the minority class is functionally equivalent to an outlier. Unsupervised outlier detection creates a powerful signal that explicitly measures how much a record deviates from the norm. Furthermore, dimensionality reduction often forces rare instances into distinct regions of low-dimensional space, unveiling separations hidden in the raw high-dimensional data.

Unlike SMOTE, FROID avoids the risk of generating erroneous data points that could confuse the decision boundary. However, this comes with a computational cost. Pre-processing can take significantly longer than standard resampling due to the iterative application of complex algorithms like t-SNE. Additionally, the resulting features (e.g., a manifold learning component applied to a kNN distance score) are difficult for human experts to interpret.

Conclusion

FROID demonstrates that better features can overcome the limitations of imbalanced data more effectively than synthetic data generation. While the framework introduces trade-offs in computation and interpretability, its superior predictive power makes it a compelling choice for high-stakes classification tasks. Future work will focus on optimizing execution speed and extending the framework to multi-class and non-tabular data.

Summary updated

BibTeX
@article{lusito2024solving,
  author = {Salvatore Lusito and Andrea Pugnana and Riccardo Guidotti},
  title = {{Solving imbalanced learning with outlier detection and features reduction}},
  journal = {Machine Learning},
  year = {2024},
  doi = {10.1007/s10994-023-06448-0},
}
Figure