通过特征选择与参数调优结合,提升软件缺陷预测准确率至88.4%。
A Feature-Driven Framework for Software Fault Prediction

- 融合特征选择与遗传算法优化模型参数,提升预测性能。
- 使用CFS与GA组合使随机森林准确率达88.4%,比基线高18%。
- 方法稳定高效,跨验证波动小,适合工业级缺陷预测场景。
软件缺陷预测(SFP)是软件工程中的关键任务,有助于早期识别模块缺陷以提升质量并降低维护成本。本研究考察了特征选择与参数调优对机器学习(ML)模型在SFP中性能的联合影响。评估了相关性特征选择(CFS)、递归特征消除(RFE)、互信息(MI)和L1正则化等特征选择方法,结合网格搜索、随机搜索和遗传算法(GA)进行超参数优化,应用于随机森林(RF)、逻辑回归(LR)和支持向量机(SVM)。CFS与GA联合应用在RF上达到最高准确率88.40%,较无特征选择或调优的基线模型提升18%。特征选择降低了维度,并识别出关键属性如加权方法数(WMC)和类间耦合度(CBO);迭代参数调优使模型更适配所选特征集。该方法表现出强鲁棒性(交叉验证波动±1.0%)和效率优势,尤其在单变量方法如L1正则化中显著缩短训练时间。
原文摘要 · Abstract (English)
Software fault prediction (SFP) is a critical task in software engineering, enabling early identification of faults in modules to improve software quality and reduce maintenance costs. This research investigates the combined effects of feature selection and parameter tuning on the performance of machine learning (ML) models for SFP. This study evaluates the interaction between feature selection methods, including correlation-based feature selection (CFS), recursive feature elimination (RFE), mutual information (MI), and L1 regularization, where hyperparameter tuning techniques such as grid search, randomized search, and genetic algorithm (GA) are used for optimization of ML algorithms, including random forest (RF), logistic regression (LR), and support vector machines (SVM) for optimized fault prediction performance. The combined application of CFS and GA yielded the highest accuracy, achieving 88.40% with RF, representing an improvement of 18% over baseline models without feature selection or tuning. Feature selection reduced dimensionality and identified critical attributes such as weighted methods per Class (WMC) and coupling between objects (CBO), while iterative parameter tuning optimized model alignment to these feature sets. Notably, the proposed methods demonstrated robustness, with minimal cross-validation variability (+-1.0%), and efficiency, reducing training times in univariate methods such as L1 regularization.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。