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 条
  • [41] Development of a Deep Learning-Based Prediction Model for Water Consumption at the Household Level
    Kim, Jongsung
    Lee, Haneul
    Lee, Myungjin
    Han, Heechan
    Kim, Donghyun
    Kim, Hung Soo
    WATER, 2022, 14 (09)
  • [42] Software Defect Prediction Based on Machine Learning and Deep Learning Techniques: An Empirical Approach
    Albattah, Waleed
    Alzahrani, Musaad
    AI, 2024, 5 (04) : 1743 - 1758
  • [43] A Two-Phase Learning-Based Swarm Optimizer for Large-Scale Optimization
    Lan, Rushi
    Zhu, Yu
    Lu, Huimin
    Liu, Zhenbing
    Luo, Xiaonan
    IEEE TRANSACTIONS ON CYBERNETICS, 2021, 51 (12) : 6284 - 6293
  • [44] A Learning-Based Thermal Simulation Framework for Emerging Two-Phase Cooling Technologies
    Yuan, Zihao
    Vaartstra, Geoffrey
    Shukla, Prachi
    Lu, Zhengmao
    Wang, Evelyn
    Reda, Sherief
    Coskun, Ayse K.
    PROCEEDINGS OF THE 2020 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE 2020), 2020, : 400 - 405
  • [45] A deep learning approach for solving the stationary compositional two-phase equilibrium problems
    Vu, Duc Thach Son
    Ren, Weiqing
    COMMUNICATIONS IN NONLINEAR SCIENCE AND NUMERICAL SIMULATION, 2024, 138
  • [46] Deep learning-based fabric defect detection: A review
    Kahraman, Yavuz
    Durmusoglu, Alptekin
    TEXTILE RESEARCH JOURNAL, 2023, 93 (5-6) : 1485 - 1503
  • [47] Deep Learning-Based Algorithm for Road Defect Detection
    Li, Shaoxiang
    Zhang, Dexiang
    SENSORS, 2025, 25 (05)
  • [48] Deep learning-based solder joint defect detector
    Iñigo Mendizabal-Arrieta
    Hugo Álvarez
    Daniel Aguinaga
    Asier Pellicer
    Jairo R. Sánchez
    Fernando Torres
    The International Journal of Advanced Manufacturing Technology, 2025, 137 (9) : 5133 - 5147
  • [49] FDD: a deep learning-based steel defect detectors
    Akhyar, Fityanul
    Liu, Ying
    Hsu, Chao-Yung
    Shih, Timothy K.
    Lin, Chih-Yang
    INTERNATIONAL JOURNAL OF ADVANCED MANUFACTURING TECHNOLOGY, 2023, 126 (3-4): : 1093 - 1107
  • [50] Deep learning-based container throughput forecasting: a triple bottom line approach
    Shankar, Sonali
    Punia, Sushil
    Ilavarasan, P. Vigneswara
    INDUSTRIAL MANAGEMENT & DATA SYSTEMS, 2021, 121 (10) : 2100 - 2117