Standard feature selection methods often fail on imbalanced datasets because they prioritize overall accuracy, which effectively ignores the minority class. This paper introduces Cost-Sensitive Feature Selection (CSFS), a framework that optimizes the F-measure—a metric that balances precision and recall—by decomposing the problem into a series of cost-sensitive sub-tasks to ensure the selected features represent all classes fairly.
The Challenge of Imbalanced Data
In many real-world scenarios, such as medical diagnosis or fraud detection, one class (the "minority") is much rarer than others. Traditional feature selection algorithms are "cost-blind": they treat every misclassification equally to maximize total accuracy. Consequently, they tend to select features that describe the majority class well while neglecting the minority class.
If a dataset is 95% "healthy" and 5% "diseased," a model can achieve 95% accuracy by simply guessing "healthy" every time. Cost-blind feature selection reinforces this bias. The authors address this by moving away from accuracy and toward the F-measure, which is far more robust for imbalanced data.
The CSFS Framework
The core challenge is that the F-measure is non-convex and difficult to optimize directly. The authors propose a novel framework called CSFS (Cost-Sensitive Feature Selection) that leverages the "pseudo-linear" property of F-measures to simplify the optimization process.
As illustrated in the pipeline above, the method follows these key steps:
- F-Measure Reduction: The complex F-measure optimization is decomposed into a series of simpler cost-sensitive classification problems by discretizing the F-measure interval $[0, 1]$ into a set of values ($r$).
- Cost Generation: For each $r$, specific costs are mathematically derived for false positives and false negatives.
- Regularized Regression: Standard embedded feature selection is modified to include these costs, using the $\ell_{2,1}$-norm as a regularizer to encourage "group sparsity" and force uninformative feature weights to zero.
- Iterative Optimization: An iterative algorithm is employed to reach a local minimum, typically converging within 40 iterations.
- Model Selection: The feature subset that yields the highest F-measure on a validation set is selected.
Experimental Results and Insights
The authors evaluated CSFS across diverse datasets, including synthetic data, imbalanced subsets of the USPS handwritten digit dataset (ratios from 1:1 to 1:10), and various multi-class and multi-label benchmarks.
Key Findings:
- Superiority in Imbalance: On the USPS 1:10 imbalanced subset, CSFS significantly outperformed standard methods like ReliefF, Information Gain, and mRMR in terms of F-measure while maintaining high accuracy.
- Robustness: As class imbalance became more extreme, the performance of traditional methods dropped sharply, whereas the CSFS performance remained relatively steady.
- Multi-label Success: In multi-label experiments, CSFS achieved a relative improvement of 2% to 10% in micro-F1 scores over state-of-the-art robust feature selection (RFS) methods.
- Theoretical Grounding: Unlike heuristic cost-sensitive methods, the costs in CSFS are derived directly from the definition of the F-measure, providing a rigorous link between the metric and the optimization process.
Conclusion and Future Work
CSFS demonstrates that for imbalanced data, accuracy is a misleading metric that can create a biased foundation for models. By explicitly assigning higher costs to minority class misclassifications, CSFS ensures critical features are retained. While the method requires solving multiple optimization sub-problems, its performance gains in imbalanced scenarios are significant. Future research may extend this logic to other non-linear metrics, such as the Area Under the Curve (AUC).
Summary updated