Title | Deep learning in static, metric-based bug prediction |
Publication Type | Journal Article |
Year of Publication | 2020 |
Authors | Ferenc R, Bán D, Grósz T, Gyimóthy T |
Journal | ARRAY |
Volume | 6 |
ISSN | 2590-0056 |
Keywords | Bug prediction, Code metrics, Deep learning, NEURAL NETWORKS |
Abstract | Our increasing reliance on software products and the amount of money we spend on creating and maintaining them makes it crucial to find bugs as early and as easily as possible. At the same time, it is not enough to know that we should be paying more attention to bugs; finding them must become a quick and seamless process in order to be actually used by developers. Our proposal is to revitalize static source code metrics – among the most easily calculable, while still meaningful predictors – and combine them with deep learning – among the most promising and generalizable prediction techniques – to flag suspicious code segments at the class level. In this paper, we show a detailed methodology of how we adapted deep neural networks to bug prediction, applied them to a large bug dataset (containing 8780 bugged and 38,838 not bugged Java classes), and compared them to multiple “traditional” algorithms. We demonstrate that deep learning with static metrics can indeed boost prediction accuracies. Our best model has an F-measure of 53.59%, which increases to 55.27% for the best ensemble model containing a deep learning component. Additionally, another experiment suggests that these values could improve even further with more data points. We also open-source our experimental Python framework to help other researchers replicate our findings. |
URL | https://m2.mtmt.hu/api/publication/31818418 |
DOI | 10.1016/j.array.2020.100021 |
Deep learning in static, metric-based bug prediction
Page last modified: July 8, 2024