A Hybrid Sampling and Multi-Objective Optimization Approach for Enhanced Software Defect Prediction

Jie Zhang, Dongcheng Li, W. Eric Wong, Shengrong WangarXiv 2024 · DOI

Abstract

Software Defect Prediction (SDP) is a critical component of software quality assurance, yet its effectiveness is often limited by class imbalance and high-dimensional feature noise. This paper introduces a robust framework that addresses these challenges through a multi-stage pipeline. By combining hybrid sampling (Borderline SMOTE and Tomek Links) with a parallel multi-objective optimization ensemble (NSGA-II, MOPSO, and MODE), the proposed method optimizes feature selection for both simplicity and predictive power. Evaluation across industry-standard NASA and PROMISE datasets demonstrates significant improvements in Area Under the ROC Curve (AUC) and model stability compared to baseline approaches.

Introduction

The primary goal of Software Defect Prediction (SDP) is to identify bug-prone modules early in the development lifecycle, thereby reducing maintenance costs and improving system reliability. However, practitioners face three significant hurdles:

  1. Class Imbalance: Defective modules are typically rare, causing standard classifiers to overlook them.
  2. High Dimensionality: Redundant or noisy software metrics can lead to the "curse of dimensionality."
  3. Optimization Bias: Single-objective approaches often fail to balance the inherent trade-off between model parsimony and accuracy.

Methodology

The proposed framework employs a sophisticated data cleaning and optimization strategy before classification.

Hybrid Sampling

To mitigate class imbalance, the authors utilize Borderline SMOTE to generate synthetic defective samples specifically near the decision boundary. This is followed by Tomek Links processing, which identifies and removes overlapping data points between classes. This "clean-up" step sharpens the boundary between defective and healthy modules, reducing the noise often introduced by standard oversampling techniques.

Multi-Objective Optimization (MOO) and Feature Fusion

Feature selection is treated as a dual-objective problem: minimizing the number of features while maximizing the AUC. The framework executes three algorithms in parallel—NSGA-II, MOPSO, and MODE—to identify optimal feature subsets.

The proposed multi-stage SDP framework, integrating data processing, model construction, and evaluation.

To improve generalization, the results from these three optimizers are combined using a Feature Fusion scheme. The authors explored both voting and weighting methods, finding that assigning weights based on selection frequency (Weight_BS and Weight_ST) provided superior stability and performance over simple binary voting.

Experimental Results

The framework was evaluated using 14 datasets from the NASA and PROMISE repositories. Key findings include:

  • Significant Performance Gains: On the NASA CM1 dataset, the hybrid approach boosted the AUC from approximately 0.70 to 0.92.
  • Optimal Feature Subsets: The multi-objective approach successfully identified that predictive performance typically plateaus or declines after selecting 7–15 key features, as shown in the Pareto front analysis.
  • Model Stability: The MOPSO_ST variant demonstrated the highest consistency across diverse datasets.
Pareto fronts showing the trade-off between the number of features and AUC across various NASA datasets.

Statistical validation using Friedman and Wilcoxon Signed Rank tests confirmed that these improvements are statistically significant, establishing the framework's efficacy over traditional single-objective or non-sampled models.

Conclusion

This research demonstrates that a combined approach of hybrid sampling and ensemble multi-objective optimization can significantly enhance the accuracy and reliability of software defect prediction. By effectively cleaning the data and balancing feature count against predictive power, the framework provides a more practical tool for software quality assurance. Future work will focus on extending the model to handle multi-class defect severity and automating hyperparameter tuning for the optimization algorithms.

Summary updated

BibTeX
@misc{zhang2024hybrid,
  author = {Jie Zhang and Dongcheng Li and W. Eric Wong and Shengrong Wang},
  title = {{A Hybrid Sampling and Multi-Objective Optimization Approach for Enhanced Software Defect Prediction}},
  year = {2024},
  eprint = {2410.10046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.10046},
}
Figure