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 条
  • [31] Deep Learning-based Intelligent Spatio-Temporal Prediction of Full 3D Gas-solid Two-phase Flow
    Xie, Xinyu
    Wang, Xiaofang
    Hao, Yichen
    Zhao, Pu
    Xie, Rong
    Liu, Haitao
    Kung Cheng Je Wu Li Hsueh Pao/Journal of Engineering Thermophysics, 2024, 45 (02): : 446 - 452
  • [32] Deep Learning-based Delinquent Taxpayer Prediction: A Scientific Administrative Approach
    Lee, Yonghyun
    Kim, Eunchan
    KSII TRANSACTIONS ON INTERNET AND INFORMATION SYSTEMS, 2024, 18 (01): : 30 - 45
  • [33] A deep learning-based approach to material removal rate prediction in polishing
    Wang, Peng
    Gao, Robert X.
    Yan, Ruqiang
    CIRP ANNALS-MANUFACTURING TECHNOLOGY, 2017, 66 (01) : 429 - 432
  • [34] Deep learning-based approach for COVID-19 spread prediction
    Cumbane, Silvino Pedro
    Gidofalvi, Gyozo
    INTERNATIONAL JOURNAL OF DATA SCIENCE AND ANALYTICS, 2024,
  • [35] Deep learning-based approach for COVID-19 spread prediction
    Division of Geoinformatics, Department of Urban Planning and Environment, KTH Royal Institute of Technology, Teknikringen 10A, Stockholm
    114 28, Sweden
    不详
    3453, Mozambique
    Int. J. Data Sci. Anal.,
  • [36] Deep Learning-Based Approach for Civil Aircraft Hazard Identification and Prediction
    Zhou, Di
    Zhuang, Xiao
    Zuo, Hongfu
    Wang, Han
    Yan, Hongsheng
    IEEE ACCESS, 2020, 8 : 103665 - 103683
  • [37] A Deep Learning-Based Remaining Useful Life Prediction Approach for Bearings
    Cheng, Cheng
    Ma, Guijun
    Zhang, Yong
    Sun, Mingyang
    Teng, Fei
    Ding, Han
    Yuan, Ye
    IEEE-ASME TRANSACTIONS ON MECHATRONICS, 2020, 25 (03) : 1243 - 1254
  • [38] DL-2P-DDoSADF: Deep learning-based two-phase DDoS attack detection framework
    Mittal, Meenakshi
    Kumar, Krishan
    Behal, Sunny
    JOURNAL OF INFORMATION SECURITY AND APPLICATIONS, 2023, 78
  • [39] Improving Deep Learning-Based Defect Classification in Solar Cells using Conformal Prediction
    Thomsen, Vitus B.
    Mantel, Claire
    Benatto, Gisele A. dos Reis
    Engsig-Karup, Allan P.
    Forchhammer, Soren
    2023 IEEE 50TH PHOTOVOLTAIC SPECIALISTS CONFERENCE, PVSC, 2023,
  • [40] Deep Learning-Based Approach for Heat Transfer Efficiency Prediction with Deep Feature Extraction
    Shi, Yuanhao
    Li, Mengwei
    Wen, Jie
    Yang, Yanru
    Zeng, Jianchao
    ACS OMEGA, 2022, 7 (35): : 31013 - 31035