File-level defect prediction: Unsupervised vs. supervised models
Conference Proceeding Article
Background: Software defect models can help software quality assurance teams to allocate testing or code review resources. A variety of techniques have been used to build defect prediction models, including supervised and unsupervised methods. Recently, Yang et al.  surprisingly find that unsupervised models can perform statistically significantly better than supervised models in effort-aware change-level defect prediction. However, little is known about relative performance of unsupervised and supervised models for effort-aware file-level defect prediction. Goal: Inspired by their work, we aim to investigate whether a similar finding holds in effort-aware file-level defect prediction. Method: We replicate Yang et al.'s study on PROMISE dataset with totally ten projects. We compare the effectiveness of unsupervised and supervised prediction models for effort-aware file-level defect prediction. Results: We find that the conclusion of Yang et al.  does not hold under within-project but holds under cross-project setting for file-level defect prediction. In addition, following the recommendations given by the best unsupervised model, developers needs to inspect statistically significantly more files than that of supervised models considering the same inspection effort (i.e., LOC). Conclusions: (a) Unsupervised models do not perform statistically significantly better than state-of-art supervised model under within-project setting, (b) Unsupervised models can perform statistically significantly better than state-ofart supervised model under cross-project setting, (c) We suggest that not only LOC but also number of files needed to be inspected should be considered when evaluating effort-aware filelevel defect prediction models.
Software Engineering | Theory and Algorithms
Intelligent Systems and Decision Analytics
Proceedings of ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM 2017)
City or Country
YAN, Meng; FANG, Yicheng; LO, David; XIA, Xin; and ZHANG, Xiaohong.
File-level defect prediction: Unsupervised vs. supervised models. (2017). Proceedings of ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM 2017). Research Collection School Of Information Systems.
Available at: http://ink.library.smu.edu.sg/sis_research/3923