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 experience 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 efforts 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.
| Original language | English |
|---|---|
| Title of host publication | Proceedings - 4th International Workshop on Conducting Empirical Studies in Industry, CESI 2016 |
| Publisher | IEEE Computer Society |
| Pages | 14-20 |
| Number of pages | 7 |
| ISBN (Electronic) | 9781450341547 |
| DOIs | |
| Publication status | Published - 14 May 2016 |
| Externally published | Yes |
| Event | 4th International Workshop on Conducting Empirical Studies in Industry, CESI 2016 - 38th International Conference on Software Engineering, ICSE 2016 - Austin, United States Duration: 17 May 2016 → … |
Publication series
| Name | Proceedings - International Conference on Software Engineering |
|---|---|
| Volume | 17-May-2016 |
| ISSN (Print) | 0270-5257 |
Conference
| Conference | 4th International Workshop on Conducting Empirical Studies in Industry, CESI 2016 - 38th International Conference on Software Engineering, ICSE 2016 |
|---|---|
| Country/Territory | United States |
| City | Austin |
| Period | 17/05/16 → … |
Bibliographical note
Publisher Copyright:© 2016 ACM.
Keywords
- defect prediction
- experience report
- feature selection
- process metrics
- random forest