Deep Semantic and Strutural Features Learning based on Graph for Just-in-Time Defect Prediction - Archive ouverte HAL
Communication Dans Un Congrès Année : 2022

Deep Semantic and Strutural Features Learning based on Graph for Just-in-Time Defect Prediction

Résumé

Change-level defect prediction which is also known as just-in-time defect prediction, will not only improve the software quality and reduce costs, but also give more accurate and earlier feedback to developers than tra ditional file-level defect prediction. To build just-in-time defect prediction models, most existing approaches focused on using manually traditional features (metrics of code change), and exploited different machine learning. However, those approaches fail to capture the semantic differences between code changes and the dependency information within programs; and consequently do not cover all types of bugs. Such information has an important role to play in improving the accuracy of the defect prediction model. In this paper, to bridge this research gap, we propose an end to end deep learning framework that extracts features from the code change automatically. To this purpose, we present the code change by code property sub-graphs (CP-SG) extracted from code property graphs (CPG) that merges existing concepts of classic program analysis, namely abstract syntax tree (AST), control flow graphs (CFG) and program dependence graphs (PDG). Then, we apply a deep graph convolutional neural network (DGCNN) that takes as input the selected features. The experi mental results prove that our approach can significantly improve the baseline method DBN-based features by an average of 20.86 percentage points for within-project and 32.85 percentage points for cross-project.

Dates et versions

hal-03874611 , version 1 (28-11-2022)

Identifiants

Citer

Abir M’baya, Néjib Moalla. Deep Semantic and Strutural Features Learning based on Graph for Just-in-Time Defect Prediction. 17th International Conference on Evaluation of Novel Approaches to Software Engineering, Apr 2022, Online Streaming, Portugal. pp.128-137, ⟨10.5220/0011061800003176⟩. ⟨hal-03874611⟩
54 Consultations
0 Téléchargements

Altmetric

Partager

More