arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.07919cs.SE
收藏

跨项目软件缺陷预测中数据恢复方法有效性的实证研究

An Empirical Study on the Effectiveness of Data Resampling Approaches for Cross-Project Software Defect Prediction

Kwabena Ebo Bennin, Amjed Tahir, Stephen G. MacDonell, Jürgen Börstler

摘要:

跨项目缺陷预测(CPDP),其中来自不同的软件项目的数据被用来预测缺陷,已被提出作为一种方式来提供数据的软件项目,缺乏历史数据。最近的研究表明,使用最近邻(NN)滤波器方法对CPDP模型进行评估的结果很有希望。缺陷预测数据集的一个关键挑战是类不平衡,这是一个高度倾斜的数据集,其中非错误模块占主导地位的错误模块。在过去,数据恢复方法已被应用于项目内缺陷预测模型,以帮助减轻数据集中类不平衡的负面影响。为了解决CPDP中的类不平衡问题,作者评估了应用NN过滤器后数据恢复方法对CPDP模型的影响。研究了五种过采样方法(MAHAKIL,SMOTE,Borderline-SMOTE,Random Oversampling和ADASYN)和三种欠采样方法(Random Undersampling,Tomek Links和Onesided selection)对预测性能的影响,并将结果与没有数据恢复的方法进行了比较。作者在从PROMISE库中提取的34个数据集上检查了6个缺陷预测模型。作者的研究结果表明,有一个显着的积极影响,CPDP性能的数据恢复,这表明软件质量团队和研究人员应该考虑应用数据恢复方法,提高召回(PD)和g-测量预测性能。然而,如果目标是提高精度和减少虚警(pf),则应避免数据恢复方法。

英文摘要:

Crossp-roject defect prediction (CPDP), where data from different software projects are used to predict defects, has been proposed as a way to provide data for software projects that lack historical data. Evaluations of CPDP models using the Nearest Neighbour (NN) Filter approach have shown promising results in recent studies. A key challenge with defect-prediction datasets is class imbalance, that is highly skewed datasets where non buggy modules dominate the buggy modules. In the past, data resampling approaches have been applied to within-projects defect prediction models to help alleviate the negative effects of class imbalance in the datasets. To address the class imbalance issue in CPDP, the authors assess the impact of data resampling approaches on CPDP models after the NN Filter is applied. The impact on prediction performance of five oversampling approaches (MAHAKIL, SMOTE, Borderline-SMOTE, Random Oversampling, and ADASYN) and three undersampling approaches (Random Undersampling, Tomek Links, and Onesided selection) is investigated and results are compared to approaches without data resampling. The authors' examined six defect prediction models on 34 datasets extracted from the PROMISE repository. The authors results show that there is a significant positive effect of data resampling on CPDP performance, suggesting that software quality teams and researchers should consider applying data resampling approaches for improved recall (pd) and g-measure prediction performance. However if the goal is to improve precision and reduce false alarm (pf) then data resampling approaches should be avoided.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑