Cost-Sensitive Feature Selection by Optimizing F-Measures

Meng Liu, Chang Xu, Yong Luo, Chao Xu, Yonggang Wen, Dacheng Tao

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.

The four-step CSFS pipeline: (1) Discretizing the F-measure interval, (2) Training cost-sensitive classifiers, (3) Selecting the optimal classifier via cost optimization, and (4) Final feature selection using the optimal weight matrix.

As illustrated in the pipeline above, the method follows these key steps:

  1. 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$).
  2. Cost Generation: For each $r$, specific costs are mathematically derived for false positives and false negatives.
  3. 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.
  4. Iterative Optimization: An iterative algorithm is employed to reach a local minimum, typically converging within 40 iterations.
  5. 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.

Performance comparison (F1-measure and accuracy) across varying class proportions. CSFS (solid blue line) consistently maintains higher F1-measures than traditional methods like ReliefF, IG, and mRMR as imbalance increases.

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

BibTeX
@article{liu2018cost,
  author = {Meng Liu and Chang Xu and Yong Luo and Chao Xu and Yonggang Wen and Dacheng Tao},
  title = {{Cost-Sensitive Feature Selection by Optimizing F-Measures}},
  journal = {IEEE Trans. Image Process.},
  year = {2018},
  url = {https://openreview.net/forum?id=1kYkMSAR9Z-H},
}
Figure