LineFlowDP: A Deep Learning-Based Two-Phase Approach for Line-Level Defect Prediction

被引:0
|
作者
Yang, Fengyu [1 ,2 ]
Zhong, Fa [1 ,2 ]
Zeng, Guangdong [1 ,2 ]
Xiao, Peng [1 ,2 ]
Zheng, Wei [1 ,2 ]
机构
[1] Nanchang Hangkong Univ, Sch Software, Nanchang 330063, Peoples R China
[2] Nanchang Hangkong Univ, Software Testing & Evaluat Ctr, Nanchang 330063, Peoples R China
关键词
Software quality assurance; Line-level software defect prediction; Graph neural network; Social network analysis; PROGRAM DEPENDENCE GRAPH; CENTRALITY;
D O I
10.1007/s10664-023-10439-z
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software defect prediction plays a key role in guiding resource allocation for software testing. However, previous defect prediction studies still have some limitations: (1) the granularity of defect prediction is still coarse, so high-risk code statements cannot be accurately located; (2) in fine-grained defect prediction, the semantic and structural information available in a single line of code is limited, and the content of code semantic information is not sufficient to achieve semantic differentiation. To address the above problems, we propose a two-phase line-level defect prediction method based on deep learning called LineFlowDP. We first extract the program dependency graph (PDG) of the source files. The lines of code corresponding to the nodes in the PDG are extended semantically with data flow and control flow information and embedded as nodes, and the model is further trained using an relational graph convolutional network. Finally, a graph interpreter GNNExplainer and a social network analysis method are used to rank the lines of code in the defective file according to risk. On 32 datasets from 9 projects, the experimental results show that LineFlowDP is 13%-404% more cost-effective than four state-of-the-art line-level defect prediction methods. The effectiveness of the flow information extension and code line risk ranking methods was also verified via ablation experiments.
引用
收藏
页数:49
相关论文
共 50 条
  • [21] A two-phase transfer learning model for cross-project defect prediction
    Liu, Chao
    Yang, Dan
    Xia, Xin
    Yan, Meng
    Zhang, Xiaohong
    INFORMATION AND SOFTWARE TECHNOLOGY, 2019, 107 : 125 - 136
  • [22] Deep learning-based automated and universal bubble detection and mask extraction in complex two-phase flows
    Kim, Yewon
    Park, Hyungmin
    SCIENTIFIC REPORTS, 2021, 11 (01) : 8940
  • [23] Deep-Learning Approach with DeepXplore for Software Defect Severity Level Prediction
    Kumar, Lov
    Dastidar, Triyasha Ghosh
    Neti, Lalitha Bhanu Murthy
    Satapathy, Shashank Mouli
    Misra, Sanjay
    Kocher, Vipul
    Padmanabhuni, Srinivas
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS, ICCSA 2021, PT VII, 2021, 12955 : 398 - 410
  • [24] Deep learning-based automated and universal bubble detection and mask extraction in complex two-phase flows
    Yewon Kim
    Hyungmin Park
    Scientific Reports, 11
  • [25] A Deep Learning-based Approach to Line Crossing Prediction for Lane Change Maneuver of Adjacent Target Vehicles
    Liu, Xulei
    Jin, Ge
    Wang, Yafei
    Yin, Chengliang
    2021 IEEE INTERNATIONAL CONFERENCE ON MECHATRONICS (ICM), 2021,
  • [26] A deep learning-based approach to line crossing prediction for lane change maneuver of adjacent target vehicles
    Liu, Xulei
    Jin, Ge
    Wang, Yafei
    Yin, Chengliang
    2021 IEEE International Conference on Mechatronics, ICM 2021, 2021,
  • [27] Two-Phase Approach to Link Prediction
    Virinchi, Srinivas
    Mitra, Pabitra
    NEURAL INFORMATION PROCESSING (ICONIP 2014), PT II, 2014, 8835 : 413 - 420
  • [28] A machine learning-based classification approach for phase diagram prediction
    Deffrennes, Guillaume
    Terayama, Kei
    Abe, Taichi
    Tamura, Ryo
    MATERIALS & DESIGN, 2022, 215
  • [29] The two-phase scheduling based on deep learning in the Internet of Things
    Shadroo, Shabnam
    Rahmani, Amir Masoud
    Rezaee, Ali
    COMPUTER NETWORKS, 2021, 185
  • [30] Prediction of two-phase flow patterns based on machine learning
    Huang, Zili
    Duo, Yihua
    Xu, Hong
    NUCLEAR ENGINEERING AND DESIGN, 2024, 421