BugPre: an intelligent software version-to-version bug prediction system using graph convolutional neural networks
Open Access
- 27 August 2022
- journal article
- research article
- Published by Springer Nature in Complex & Intelligent Systems
- Vol. 9 (4) , 3835-3855
Abstract
Since defects in software may cause product fault and financial loss, it is essential to conduct software defect prediction (SDP) to identify the potentially defective modules, especially in the early stage of the software development lifecycle. Recently, cross-version defect prediction (CVDP) began to draw increasing research interests, employing the labeled defect data of the prior version within the same project to predict defects in the current version. As software development is a dynamic process, the data distribution (such as defects) during version change may get changed. Recent studies utilize machine learning (ML) techniques to detect software defects. However, due to the close dependencies between the updated and unchanged code, prior ML-based methods fail to model the long and deep dependencies, causing a high false positive. Furthermore, traditional defect detection is performed on the entire project, and the detection efficiency is relatively low, especially on large-scale software projects. To this end, we proposeBugPre, a CVDP approach to address these two issues.BugPreis a novel framework that only conducts efficient defect prediction on changed modules in the current version.BugPreutilizes variable propagation tree-based associated analysis method to obtain the changed modules in the current version. Besides,BugPreconstructs graph leveraging code context dependences and uses a graph convolutional neural network to learn representative characteristics of code, thereby improving defect prediction capability when version changes occur. Through extensive experiments on open-source Apache projects, the experimental results indicate that ourBugPreoutperforms three state-of-the-art defect detection approaches, and the F1-score has increased by higher than 16%.Keywords
This publication has 50 references indexed in Scilit:
- Software defect prediction model based on improved LLE-SVM2015
- A novel defect prediction method for web pages using k-means++Expert Systems with Applications, 2015
- Evaluating the usefulness of IR-based fault localization techniques2015
- LINE2015
- Fine-grained and accurate source code differencing2014
- FCA–CIA: An approach of using FCA to support cross-level change impact analysis for object oriented Java programsInformation and Software Technology, 2013
- A survey of code‐based change impact analysis techniquesSoftware Testing, Verification and Reliability, 2012
- Defect prediction from static code features: current results, limitations, new approachesAutomated Software Engineering, 2010
- Reweighted Random Walks for Graph Matching2010
- Integrating Influence Mechanisms into Impact Analysis for Increased Precision2006