Cross‐version defect prediction using threshold‐based active learning
- 2 April 2023
- journal article
- research article
- Published by Wiley in Journal of Software: Evolution and Process
- Vol. 36 (4)
Abstract
Because defects in software modules (e.g., classes) might lead to product failure and financial loss, software defect prediction enables us to better understand and control software quality. Software development is a dynamic evolutionary process that may result in data distributions (e.g., defect characteristics) varying from version to version. In this case, effective cross‐version defect prediction (CVDP) is not easy to achieve. In this paper, we aim to investigate whether the defect prediction method of the threshold‐based active learning (TAL) can tackle the problem of the different data distribution between successive versions. Our TAL method includes two stages. At the active learning stage, a committee of investigated metrics is constructed to vote on the unlabeled modules of the current version. We pick up the unlabeled module with the median of voting scores to domain experts. The domain experts test and label the selected unlabeled module. Then, we merge the selected labeled module and the remaining modules with pseudo‐labels from the current version into the labeled modules of the prior version to form enhanced training data. Based on the training data, we derive the metric thresholds used for the next iteration. At the defect prediction stage, the iterations stop when a predefined threshold is reached. Finally, we use the cutoff threshold of voting scores, that is, 50%, to predict the defect‐prone of the remaining unlabeled modules. We evaluate the TAL method on 31 versions of 10 projects with three prevalent performance indicators. The results show that TAL outperforms the baseline methods, including three variations methods, two common supervised methods, and the state‐of‐the‐art method Hybrid Active Learning and Kernel PCA (HALKP). The results indicate that TAL can effectively address the different data distribution between successive versions. Furthermore, to keep the cost of extensive testing low in practice, selecting 5% of candidate modules from the current version is sufficient for TAL to achieve a good performance of defect prediction.Keywords
Funding Information
- National Natural Science Foundation of China (62172205, 62072194)
This publication has 43 references indexed in Scilit:
- Negative samples reduction in cross-company software defects predictionInformation and Software Technology, 2015
- Improved Random Forest Algorithm for Software Defect Prediction through Data Mining TechniquesInternational Journal of Computer Applications, 2015
- An empirical study on software defect prediction with a simplified metric setInformation and Software Technology, 2015
- Are Slice-Based Cohesion Metrics Actually Useful in Effort-Aware Post-Release Fault-Proneness Prediction? An Empirical StudyIEEE Transactions on Software Engineering, 2014
- Active Learning by Querying Informative and Representative ExamplesIEEE Transactions on Pattern Analysis and Machine Intelligence, 2014
- An in-depth study of the potentially confounding effect of class size in fault predictionACM Transactions on Software Engineering and Methodology, 2014
- Identifying thresholds for object-oriented software metricsJournal of Systems and Software, 2012
- Active Learning for Software Defect PredictionIEICE Transactions on Information and Systems, 2012
- Finding software metrics threshold values using ROC curvesJournal of Software Maintenance and Evolution: Research and Practice, 2009
- 10.1162/153244302760185243Applied Physics Letters, 2000