返回
Software Defect Prediction Based on Deep Representation Learning of Source Code From Contextual Syntax and Semantic Graph
DOI:10.1109/TR.2024.3354965.png)
摘要
En 中文
Software defect prediction approaches play an essential role in the software development life cycle to help developers predict defects early, thus, preventing wasted time and effort. Defect prediction techniques based on semantic features have recently gained success over approaches based on traditional features. Existing semantic features-based defect prediction approaches use a single source code representation. Most studies focus on contextual syntax represented by abstract syntax trees, and some studies use a control flow graph to represent code graphs. However, a single representation is still limited for predicting defects that call multiple functions and have a high probability of false positives. To close the gap between source code representations on software defect prediction, we propose a defect prediction model based on multiple source code representations. The proposed model is a deep hierarchical convolutional neural network (DH-CNN). The syntax features extracted from abstract syntax trees using Word2vec are fed into syntax-level DH-CNN, and the semantic-graph features extracted from the control flow graph and data dependence graph using Node2vec are fed into semantic-level DH-CNN. In addition, the proposed model includes a gated merging mechanism that combines DH-CNN outputs to estimate the combination ratio of both types of features. Experimental results indicate that DH-CNN outperforms existing methods under cross-project and within-project scenarios.
Keyword:
Contextual representations
deep learning
graphical representations
hierarchical convolutional neural network
software defect prediction (SDP)
期刊
IF:
5.7
论文数:
2.8K
被引数:
8.5K
机构
引用论文
Machine Learning Investigation For Tri-Magnetized Sutterby Nanofluidic Model with Joule Heating In Agrivoltaics Technology
Nano
IF0
Crosstalk Between Autophagy and Apoptosis in RAW 264.7 Macrophages Infected With Ectromelia Orthopoxvirus感染正痘病毒的原始264.7巨噬细胞中自噬与凋亡之间的串扰
Simplified Deep Forest Model Based Just-in-Time Defect Prediction for Android Mobile Apps基于简化Deep Forest模型的Android移动应用及时缺陷预测
SLDeep: Statement-level software defect prediction using deep-learning model on static code featuresSLDeep: 使用静态代码特征的深度学习模型进行语句级软件缺陷预测

