Software Defect Prediction Model Based on Syntactic Semantics and Flow Information Features

Using deep learning to determine whether a source code file contains defects has become an important research topic. In the past, many researchers have tended to convert code into Abstract Syntax Tree and use deep neural networks to learn the underlying syntactic and semantic information. However, this approach often overlooks the rich flow information embedded in the code, such as control flow. To address this issue, this paper proposes a RGCN_CNN model and applies it to software defect prediction. Specifically, we convert the source code into an Abstract Syntax Tree and a Code Property Graph. Then, we use Convolutional Neural Networks and Relational Graph Convolutional Networks to learn syntactic-semantic features and flow information features from the AST and CPG, respectively. Finally, the two learned features are concatenated and used to train a defect classifier. Experimental results show that the RGCN_CNN model can effectively identify defect files in software projects.

Authors

Institutions

Publication Details

Published
2024-11-02
DOI
https://doi.org/10.1109/dsa63982.2024.00013
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Software Defect Prediction Model Based on Syntactic Semantics and Flow Information Features

Yi Qing Zhu, Yi� Ding, Chongyang Huang, Guosheng Hao et al.
Software Engineering Research
article

Software Defect Prediction Model Based on Syntactic Semantics and Flow Information Features

Yi Qing Zhu, Yi� Ding, Chongyang Huang, Guosheng Hao, Yu Qiao
article en

Abstract

Using deep learning to determine whether a source code file contains defects has become an important research topic. In the past, many researchers have tended to convert code into Abstract Syntax Tree and use deep neural networks to learn the underlying syntactic and semantic information. However, this approach often overlooks the rich flow information embedded in the code, such as control flow. To address this issue, this paper proposes a RGCN_CNN model and applies it to software defect prediction. Specifically, we convert the source code into an Abstract Syntax Tree and a Code Property Graph. Then, we use Convolutional Neural Networks and Relational Graph Convolutional Networks to learn syntactic-semantic features and flow information features from the AST and CPG, respectively. Finally, the two learned features are concatenated and used to train a defect classifier. Experimental results show that the RGCN_CNN model can effectively identify defect files in software projects.

Jiangsu Normal University (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 61%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.