Studying just-in-time defect prediction using cross-project models

Authors: Yasutaka Kamei Takafumi Fukushima Shane McIntosh Kazuhiro Yamashita Naoyasu Ubayashi Ahmed E. Hassan

Venue: EMSE   Empirical Software Engineering, Vol. 21, No. 5, pp. 2072–2106, 2016

Year: 2016

Abstract: Unlike traditional defect prediction models that identify defect-prone modules, Just-In-Time (JIT) defect prediction models identify defect-inducing changes. As such, JIT defect models can provide earlier feedback for developers, while design decisions are still fresh in their minds. Unfortunately, similar to traditional defect models, JIT models require a large amount of training data, which is not available when projects are in initial development phases. To address this limitation in traditional defect prediction, prior work has proposed cross-project models, i.e., models learned from other projects with sufficient history. However, cross-project models have not yet been explored in the context of JIT prediction. Therefore, in this study, we empirically evaluate the performance of JIT models in a cross-project context. Through an empirical study on 11 open source projects, we find that while JIT models rarely perform well in a cross-project context, their performance tends to improve when using approaches that: (1) select models trained using other projects that are similar to the testing project, (2) combine the data of several other projects to produce a larger pool of training data, and (3) combine the models of several other projects to produce an ensemble model. Our findings empirically confirm that JIT models learned using other projects are a viable solution for projects with limited historical data. However, JIT models tend to perform best in a cross-project context when the data used to learn them are carefully selected.

BibTeX:

@article{yasutakakamei2016sjdpucm,
    author = "Yasutaka Kamei and Takafumi Fukushima and Shane McIntosh and Kazuhiro Yamashita and Naoyasu Ubayashi and Ahmed E. Hassan",
    title = "Studying just-in-time defect prediction using cross-project models",
    year = "2016",
    pages = "2072–2106",
    journal = "Empirical Software Engineering",
    volume = "21",
    number = "5"
}

Plain Text:

Yasutaka Kamei, Takafumi Fukushima, Shane McIntosh, Kazuhiro Yamashita, Naoyasu Ubayashi, and Ahmed E. Hassan, "Studying just-in-time defect prediction using cross-project models," Empirical Software Engineering, pp. 2072–2106