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

Abir M’baya, Nejib Moalla

2022

Abstract

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 traditional 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 experimental 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.

Download


Paper Citation


in Harvard Style

M’baya A. and Moalla N. (2022). Deep Semantic and Strutural Features Learning based on Graph for Just-in-Time Defect Prediction. In Proceedings of the 17th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-758-568-5, pages 128-137. DOI: 10.5220/0011061800003176


in Bibtex Style

@conference{enase22,
author={Abir M’baya and Nejib Moalla},
title={Deep Semantic and Strutural Features Learning based on Graph for Just-in-Time Defect Prediction},
booktitle={Proceedings of the 17th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2022},
pages={128-137},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0011061800003176},
isbn={978-989-758-568-5},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 17th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - Deep Semantic and Strutural Features Learning based on Graph for Just-in-Time Defect Prediction
SN - 978-989-758-568-5
AU - M’baya A.
AU - Moalla N.
PY - 2022
SP - 128
EP - 137
DO - 10.5220/0011061800003176