kirancodes.me
To Proof Maintenance & Beyond!

Topic-based defect prediction

Tung Thanh Nguyen, Tien N. Nguyen, Tu Minh Phuong

Abstract

Defects are unavoidable in software development and fixing them is costly and resource-intensive. To build defect prediction models, researchers have investigated a number of factors related to the defect-proneness of source code, such as code complexity, change complexity, or socio-technical factors. In this paper, we propose a new approach that emphasizes on technical concerns/functionality of a system. In our approach, a software system is viewed as a collection of software artifacts that describe different technical concerns/-aspects. Those concerns are assumed to have different levels of defect-proneness, thus, cause different levels of defectproneness to the relevant software artifacts. We use topic modeling to measure the concerns in source code, and use them as the input for machine learning-based defect prediction models. Preliminary result on Eclipse JDT shows that the topic-based metrics have high correlation to the number of bugs (defect-proneness), and our topic-based defect prediction has better predictive performance than existing state-of-the-art approaches.

BibTeX
@inproceedings{Nguyen-al:ICSE11,
  author    = {Tung Thanh Nguyen and
               Tien N. Nguyen and
               Tu Minh Phuong},
  title     = {Topic-based defect prediction},
  booktitle = {ICSE},
  pages     = {932--935},
  publisher = {{ACM}},
  year      = {2011},
}

Related papers