Defect Prediction on a Legacy Industrial Software: A Case Study on Software with Few Defects

Yavuz Köroglu, A. Sen, Doruk Kutluay, Akin Bayraktar, Yalcin Tosun, Murat Çinar, Hasan Kaya
{"title":"Defect Prediction on a Legacy Industrial Software: A Case Study on Software with Few Defects","authors":"Yavuz Köroglu, A. Sen, Doruk Kutluay, Akin Bayraktar, Yalcin Tosun, Murat Çinar, Hasan Kaya","doi":"10.1145/2896839.2896843","DOIUrl":null,"url":null,"abstract":"Context: Building defect prediction models for software projects is helpful for reducing the effort in locating defects. In this paper, we share our experiences in building a defect prediction model for a large industrial software project. We extract product and process metrics to build models and show that we can build an accurate defect prediction model even when 4% of the software is defective. Objective: Our goal in this project is to integrate a defect predictor into the continuous integration (CI) cycle of a large software project and decrease the effort in testing. Method: We present our approach in the form of an experi- ence report. Specifically, we collected data from seven older versions of the software project and used additional features to predict defects of current versions. We compared several classification techniques including Naive Bayes, Decision Trees, and Random Forest and resampled our training data to present the company with the most accurate defect predictor. Results: Our results indicate that we can focus testing ef- forts by guiding the test team to only 8% of the software where 53% of actual defects can be found. Our model has 90% accuracy. Conclusion: We produce a defect prediction model with high accuracy for a software with defect rate of 4%. Our model uses Random Forest, that which we show has more predictive power than Naive Bayes, Logistic Regression and Decision Trees in our case.","PeriodicalId":386949,"journal":{"name":"2016 IEEE/ACM 4th International Workshop on Conducting Empirical Studies in Industry (CESI)","volume":"26 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-05-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"16","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 IEEE/ACM 4th International Workshop on Conducting Empirical Studies in Industry (CESI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2896839.2896843","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 16

Abstract

Context: Building defect prediction models for software projects is helpful for reducing the effort in locating defects. In this paper, we share our experiences in building a defect prediction model for a large industrial software project. We extract product and process metrics to build models and show that we can build an accurate defect prediction model even when 4% of the software is defective. Objective: Our goal in this project is to integrate a defect predictor into the continuous integration (CI) cycle of a large software project and decrease the effort in testing. Method: We present our approach in the form of an experi- ence report. Specifically, we collected data from seven older versions of the software project and used additional features to predict defects of current versions. We compared several classification techniques including Naive Bayes, Decision Trees, and Random Forest and resampled our training data to present the company with the most accurate defect predictor. Results: Our results indicate that we can focus testing ef- forts by guiding the test team to only 8% of the software where 53% of actual defects can be found. Our model has 90% accuracy. Conclusion: We produce a defect prediction model with high accuracy for a software with defect rate of 4%. Our model uses Random Forest, that which we show has more predictive power than Naive Bayes, Logistic Regression and Decision Trees in our case.
遗留工业软件的缺陷预测:以少缺陷软件为例
背景:为软件项目构建缺陷预测模型有助于减少定位缺陷的工作量。在本文中,我们分享了为大型工业软件项目构建缺陷预测模型的经验。我们提取产品和过程度量来构建模型,并表明即使在4%的软件有缺陷的情况下,我们也可以构建一个准确的缺陷预测模型。目标:我们在这个项目中的目标是将缺陷预测器集成到大型软件项目的持续集成(CI)周期中,并减少测试中的工作量。方法:我们以经验报告的形式提出我们的方法。具体地说,我们从软件项目的七个旧版本中收集数据,并使用附加的特性来预测当前版本的缺陷。我们比较了几种分类技术,包括朴素贝叶斯、决策树和随机森林,并重新采样了我们的训练数据,为公司提供了最准确的缺陷预测器。结果:我们的结果表明,我们可以通过引导测试团队只对软件的8%进行测试,从而集中测试工作,其中53%的实际缺陷可以被发现。我们的模型有90%的准确率。结论:我们为一个缺陷率为4%的软件建立了一个高精度的缺陷预测模型。我们的模型使用随机森林,在我们的案例中,我们证明它比朴素贝叶斯、逻辑回归和决策树具有更强的预测能力。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信