Using Cost-Sensitive Learning and Feature Selection Algorithms to Improve the Performance of Imbalanced Classification

Fang Feng, Kuan-Ching Li, Jun Shen, Qingguo Zhou, Xuhui Yang

Introduction

In real-world machine learning applications, data is rarely distributed evenly across classes. Whether detecting credit card fraud, identifying rare medical conditions, or predicting equipment failure, the "target" events often represent a tiny fraction (e.g., 1%) of the total dataset. This phenomenon, known as class imbalance, poses a significant challenge for traditional classification algorithms.

Standard models are typically "accuracy-hungry," aiming to maximize the total number of correct predictions. In an imbalanced scenario, a model can achieve 99% accuracy by simply predicting the majority class every time, failing entirely to identify the critical minority cases. This research introduces a hybrid algorithm, CFGVM (Cost-sensitive Feature selection General Vector Machine), designed to overcome this bias by integrating cost-sensitive learning with nature-inspired optimization.

The CFGVM Framework

The proposed solution builds upon the General Vector Machine (GVM), a model known for its strong generalization capabilities. However, standard GVMs are susceptible to the same accuracy bias as other classifiers when faced with imbalanced data.

The architecture of the General Vector Machine (GVM) used as the foundation for the CFGVM model.

To address this, the researchers developed a two-stage hybrid approach:

  1. Cost-Sensitive Learning (CGVM): The standard GVM loss function was modified to include "cost weights." By applying a higher penalty ($C_{ij}$) to misclassifications of the minority class, the model is forced to prioritize these rare but critical samples.
  2. Binary Ant Lion Optimizer (BALO): To automate the tuning of these weights and the selection of relevant data, the authors employed BALO—a metaheuristic algorithm inspired by the hunting behavior of antlions.

Optimization and Feature Selection

The BALO component serves a dual purpose within the CFGVM architecture. First, it performs Weight Optimization, searching for the ideal cost weights to apply to the minority class. Second, it handles Feature Selection, acting as a filter to identify which input variables are truly informative and which are merely "noise" that could lead to overfitting.

Crucially, the researchers tested three versions of the algorithm (CFGVM1, 2, and 3) using different fitness metrics: Accuracy, F-measure, and G-mean. Their findings confirmed that G-mean—the geometric mean of success rates for both classes—is the superior metric for guiding the optimizer in imbalanced scenarios, as it prevents the majority class from dominating the learning process.

Experimental Results

The algorithm was rigorously tested against 11 imbalanced datasets spanning medical (e.g., heart disease, liver disorders), biological, and technical domains. The results for CFGVM3 (the G-mean optimized version) were definitive:

  • Performance Superiority: CFGVM3 outperformed eight state-of-the-art algorithms, including SMOTE-IPF and various ensemble methods.
  • High Precision: On datasets such as glass6 and shuttlec2vsc4, the model achieved perfect scores (1.0) in Accuracy, True Positive Rate (TPR), and G-mean.
  • Significant Gains: In the cleveland heart disease dataset, CFGVM3 showed a performance improvement of over 35% in Area Under the Curve (AUC) compared to the SMOTE-IPF algorithm.
  • Efficiency: The model successfully reduced the feature set while improving results, proving that the BALO-based selection effectively removed redundant data.

Conclusion and Future Work

The CFGVM model demonstrates that simultaneously optimizing misclassification costs and feature subsets creates a synergistic effect that traditional single-pronged approaches lack. While highly effective on the tested datasets, future research will focus on scaling the algorithm for "big data" environments with massive dimensionality and incorporating online learning to handle "concept drift," where data patterns change over time. By moving beyond simple accuracy, CFGVM provides a robust framework for high-stakes classification where missing a single rare event can have significant consequences.

Summary updated

BibTeX
@article{feng2020using,
  author = {Fang Feng and Kuan-Ching Li and Jun Shen and Qingguo Zhou and Xuhui Yang},
  title = {{Using Cost-Sensitive Learning and Feature Selection Algorithms to Improve the Performance of Imbalanced Classification}},
  journal = {IEEE Access},
  year = {2020},
  doi = {10.1109/access.2020.2987364},
}
Figure