Graph Neural Network for Source Code Defect Prediction

被引:0
|
作者
Sikic, Lucija [1 ]
Kurdija, Adrian Satja [1 ]
Vladimir, Klemo [1 ]
Silic, Marin [1 ]
机构
[1] Univ Zagreb, Fac Elect Engn & Comp, Zagreb 10000, Croatia
来源
IEEE ACCESS | 2022年 / 10卷
关键词
Codes; Software; Predictive models; Feature extraction; Task analysis; Graph neural networks; Data models; Software defect prediction; deep learning; graph neural network; FAULT PREDICTION; METRICS; DESIGN; MODELS;
D O I
10.1109/ACCESS.2022.3144598
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Predicting defective software modules before testing is a useful operation that ensures that the time and cost of software testing can be reduced. In recent years, several models have been proposed for this purpose, most of which are built using deep learning-based methods. However, most of these models do not take full advantage of a source code as they ignore its tree structure or they focus only on a small part of a code. To investigate whether and to what extent information from this structure can be beneficial in predicting defective source code, we developed an end-to-end model based on a convolutional graph neural network (GCNN) for defect prediction, whose architecture can be adapted to the analyzed software, so that projects of different sizes can be processed with the same level of detail. The model processes the information of the nodes and edges from the abstract syntax tree (AST) of the source code of a software module and classifies the module as defective or not defective based on this information. Experiments on open source projects written in Java have shown that the proposed model performs significantly better than traditional defect prediction models in terms of AUC and F-score. Based on the F-scores of the existing state-of-the-art models, the model has shown comparable predictive capabilities for the analyzed projects.
引用
收藏
页码:10402 / 10415
页数:14
相关论文
共 50 条
  • [21] Code comment generation based on graph neural network enhanced transformer model for code understanding in open-source software ecosystems
    Kuang, Li
    Zhou, Cong
    Yang, Xiaoxian
    [J]. AUTOMATED SOFTWARE ENGINEERING, 2022, 29 (02)
  • [22] Code comment generation based on graph neural network enhanced transformer model for code understanding in open-source software ecosystems
    Li Kuang
    Cong Zhou
    Xiaoxian Yang
    [J]. Automated Software Engineering, 2022, 29
  • [23] An Invertible Graph Diffusion Neural Network for Source Localization
    Wang, Junxiang
    Jiang, Junji
    Zhao, Liang
    [J]. PROCEEDINGS OF THE ACM WEB CONFERENCE 2022 (WWW'22), 2022, : 1058 - 1069
  • [24] Function Call Graph Context Encoding for Neural Source Code Summarization
    Bansal, Aakash
    Eberhart, Zachary
    Karas, Zachary
    Huang, Yu
    Mcmillan, Collin
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (09) : 4268 - 4281
  • [25] A Graph Guided Convolutional Neural Network for Surface Defect Recognition
    Wang, Yucheng
    Gao, Liang
    Gao, Yiping
    Li, Xinyu
    [J]. IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING, 2022, 19 (03) : 1392 - 1404
  • [26] Unsupervised Classifying of Software Source Code Using Graph Neural Networks
    Vytovtov, Petr
    Chuvilin, Kirill
    [J]. PROCEEDINGS OF THE 24TH CONFERENCE OF OPEN INNOVATIONS ASSOCIATION (FRUCT), 2019, : 518 - 524
  • [27] ACGDP: An Augmented Code Graph-Based System for Software Defect Prediction
    Xu, Jiaxi
    Ai, Jun
    Liu, Jingyu
    Shi, Tao
    [J]. IEEE TRANSACTIONS ON RELIABILITY, 2022, 71 (02) : 850 - 864
  • [28] Source code defect detection using deep convolutional neural networks
    Wang, Xiaomeng
    Guan, Zhibin
    Xin, Wei
    Wang, Jiajie
    [J]. Qinghua Daxue Xuebao/Journal of Tsinghua University, 2021, 61 (11): : 1267 - 1272
  • [29] Software Defect Prediction Based on Source Code Metrics Time Series
    Pulawski, Lukasz
    [J]. TRANSACTIONS ON ROUGH SETS XIII, 2011, 6499 : 104 - 120
  • [30] Heterogeneous Fusion Graph Neural Network for Traffic Prediction
    Zang, Di
    Lei, Juntao
    [J]. SEVENTH INTERNATIONAL CONFERENCE ON TRAFFIC ENGINEERING AND TRANSPORTATION SYSTEM, ICTETS 2023, 2024, 13064