Effort-aware and just-in-time defect prediction with neural network.

Effort-aware just-in-time (JIT) defect prediction is to rank source code changes based on the likelihood of detects as well as the effort to inspect such changes. Accurate defect prediction algorithms help to find more defects with limited effort. To improve the accuracy of defect prediction, in thi...

Full description

Bibliographic Details
Main Authors: Lei Qiao, Yan Wang
Format: Article
Language:English
Published: Public Library of Science (PLoS) 2019-01-01
Series:PLoS ONE
Online Access:https://doi.org/10.1371/journal.pone.0211359
id doaj-c21765f51e5c45068519cf6654362b77
record_format Article
spelling doaj-c21765f51e5c45068519cf6654362b772021-03-03T20:55:03ZengPublic Library of Science (PLoS)PLoS ONE1932-62032019-01-01142e021135910.1371/journal.pone.0211359Effort-aware and just-in-time defect prediction with neural network.Lei QiaoYan WangEffort-aware just-in-time (JIT) defect prediction is to rank source code changes based on the likelihood of detects as well as the effort to inspect such changes. Accurate defect prediction algorithms help to find more defects with limited effort. To improve the accuracy of defect prediction, in this paper, we propose a deep learning based approach for effort-aware just-in-time defect prediction. The key idea of the proposed approach is that neural network and deep learning could be exploited to select useful features for defect prediction because they have been proved excellent at selecting useful features for classification and regression. First, we preprocess ten numerical metrics of code changes, and then feed them to a neural network whose output indicates how likely the code change under test contains bugs. Second, we compute the benefit cost ratio for each code change by dividing the likelihood by its size. Finally, we rank code changes according to their benefit cost ratio. Evaluation results on a well-known data set suggest that the proposed approach outperforms the state-of-the-art approaches on each of the subject projects. It improves the average recall and popt by 15.6% and 8.1%, respectively.https://doi.org/10.1371/journal.pone.0211359
collection DOAJ
language English
format Article
sources DOAJ
author Lei Qiao
Yan Wang
spellingShingle Lei Qiao
Yan Wang
Effort-aware and just-in-time defect prediction with neural network.
PLoS ONE
author_facet Lei Qiao
Yan Wang
author_sort Lei Qiao
title Effort-aware and just-in-time defect prediction with neural network.
title_short Effort-aware and just-in-time defect prediction with neural network.
title_full Effort-aware and just-in-time defect prediction with neural network.
title_fullStr Effort-aware and just-in-time defect prediction with neural network.
title_full_unstemmed Effort-aware and just-in-time defect prediction with neural network.
title_sort effort-aware and just-in-time defect prediction with neural network.
publisher Public Library of Science (PLoS)
series PLoS ONE
issn 1932-6203
publishDate 2019-01-01
description Effort-aware just-in-time (JIT) defect prediction is to rank source code changes based on the likelihood of detects as well as the effort to inspect such changes. Accurate defect prediction algorithms help to find more defects with limited effort. To improve the accuracy of defect prediction, in this paper, we propose a deep learning based approach for effort-aware just-in-time defect prediction. The key idea of the proposed approach is that neural network and deep learning could be exploited to select useful features for defect prediction because they have been proved excellent at selecting useful features for classification and regression. First, we preprocess ten numerical metrics of code changes, and then feed them to a neural network whose output indicates how likely the code change under test contains bugs. Second, we compute the benefit cost ratio for each code change by dividing the likelihood by its size. Finally, we rank code changes according to their benefit cost ratio. Evaluation results on a well-known data set suggest that the proposed approach outperforms the state-of-the-art approaches on each of the subject projects. It improves the average recall and popt by 15.6% and 8.1%, respectively.
url https://doi.org/10.1371/journal.pone.0211359
work_keys_str_mv AT leiqiao effortawareandjustintimedefectpredictionwithneuralnetwork
AT yanwang effortawareandjustintimedefectpredictionwithneuralnetwork
_version_ 1714819815553630208