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

基于生成对抗网络的跨项目故障预测

Generative Adversarial Network-based Cross-Project Fault Prediction

Sourabh Pal

摘要:

背景:在软件开发生存周期的早期阶段进行缺陷预测,可以减少测试工作量,保证软件质量。由于缺乏同一项目内的历史数据,跨项目缺陷预测(CPDP)已成为研究人员的热门研究课题。CPDP训练的分类器基于一个项目的标记数据集来预测另一个项目中的故障。目标:软件缺陷预测(SDP)数据集由手动设计的静态特征组成,这些特征是软件度量。在CPDP中,源项目和目标项目数据的差异是实现高性能的主要挑战。在本文中,我们提出了一种基于生成对抗网络(GAN)的数据转换,以减少源项目和目标项目之间的数据分歧。方法:我们采用生成对抗方法,其中标签数据集被选择为真实数据,而目标数据集被选择为假数据。判别器试图通过损失函数来衡量领域自适应的完善程度。通过生成器,目标数据集尝试适应源项目域,并且最后应用机器学习分类器(即,Naive Bayes)来对错误模块进行分类。结果:我们的研究结果表明,它是可能的预测缺陷的基础上生成的对抗方法。当我们选择JDT作为目标数据集时,我们的模型在跨项目环境中表现得很好。然而,所有选择的数据集都面临着一个大的类不平衡问题,这影响了我们的模型的性能。

英文摘要:

Background: The early stage of defect prediction in the software development life cycle can reduce testing effort and ensure the quality of software. Due to the lack of historical data within the same project, Cross-Project Defect Prediction (CPDP) has become a popular research topic among researchers. CPDP trained classifiers based on labeled data sets of one project to predict fault in another project. Goals: Software Defect Prediction (SDP) data sets consist of manually designed static features, which are software metrics. In CPDP, source and target project data divergence is the major challenge in achieving high performance. In this paper, we propose a Generative Adversarial Network (GAN)-based data transformation to reduce data divergence between source and target projects. Method: We apply the Generative Adversarial Method where label data sets are choosing as real data, while target data sets are choosing as fake data. The Discriminator tries to measure the perfection of domain adaptation through loss function. Through the generator, target data sets try to adapt the source project domain and, finally, apply machine learning classifier (i.e., Naive Bayes) to classify faulty modules. Results: Our result shows that it is possible to predict defects based on the Generative Adversarial Method. Our model performs quite well in a cross-project environment when we choose JDT as a target data sets. However, all chosen data sets are facing a large class imbalance problem which affects the performance of our model.

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

↑