arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2202.12074cs.SEcs.AIcs.LG
收藏

单类支持向量机在不同缺陷预测场景中的有效性研究

On The Effectiveness of One-Class Support Vector Machine in Different Defect Prediction Scenarios

University College London (UCL)(伦敦大学学院(UCL));Lebanese American University(黎巴嫩美国大学)

Rebecca Moussa, Danielle Azar, Federica Sarro

AI总结:

本文研究了单类支持向量机(OCSVM)在跨版本和跨项目缺陷预测中的有效性,发现其性能虽不及随机森林,但优于两类SVM等分类器,更适合处理异构数据,为缺陷数据稀缺场景提供了替代方案。

摘要:

缺陷预测旨在识别在软件提供给最终用户之前可能引发故障的软件组件。迄今为止,该任务被建模为两类分类问题,然而其性质也允许将其表述为单类分类任务。先前的研究表明,单类支持向量机(OCSVM)在项目内缺陷预测中可以优于两类分类器,但在更细粒度(即提交级别缺陷预测)下使用时效果不佳。在本文中,我们进一步调查在另外两种不同场景(即粒度)下,仅从单类中学习是否足以产生有效的缺陷预测模型,即跨版本和跨项目缺陷预测模型,并为完整性在项目内粒度上复现先前的工作。我们的实证结果证实,OCSVM的性能在不同粒度水平上保持较低水平,即在跨版本和跨项目缺陷预测中均被两类随机森林(RF)分类器超越。虽然我们不能断定OCSVM是最佳分类器,但我们的结果仍显示出有趣的发现。尽管OCSVM未能超越RF,但其性能仍优于其两类对应模型(即SVM)以及本文研究的其他两类分类器。我们还观察到,OCSVM更适合跨版本和跨项目缺陷预测,而非项目内缺陷预测,从而表明它在异构数据上表现更好。我们鼓励进一步研究用于缺陷预测的单类分类器,因为这些技术可以在缺陷模块数据稀缺或不可用时作为替代方案。

英文摘要:

Defect prediction aims at identifying software components that are likely to cause faults before a software is made available to the end-user. To date, this task has been modeled as a two-class classification problem, however its nature also allows it to be formulated as a one-class classification task. Previous studies show that One-Class Support Vector Machine (OCSVM) can outperform two-class classifiers for within-project defect prediction, however it is not effective when employed at a finer granularity (i.e., commit-level defect prediction). In this paper, we further investigate whether learning from one class only is sufficient to produce effective defect prediction model in two other different scenarios (i.e., granularity), namely cross-version and cross-project defect prediction models, as well as replicate the previous work at within-project granularity for completeness. Our empirical results confirm that OCSVM performance remain low at different granularity levels, that is, it is outperformed by the two-class Random Forest (RF) classifier for both cross-version and cross-project defect prediction. While, we cannot conclude that OCSVM is the best classifier, our results still show interesting findings. While OCSVM does not outperform RF, it still achieves performance superior to its two-class counterpart (i.e., SVM) as well as other two-class classifiers studied herein. We also observe that OCSVM is more suitable for both cross-version and cross-project defect prediction, rather than for within-project defect prediction, thus suggesting it performs better with heterogeneous data. We encourage further research on one-class classifiers for defect prediction as these techniques may serve as an alternative when data about defective modules is scarce or not available.

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

↑