Improving effort-aware defect prediction by directly learning to rank software modules

被引:6
|
作者
Yu, Xiao [1 ,2 ]
Rao, Jiqing [1 ]
Liu, Lei [1 ]
Lin, Guancheng [1 ]
Hu, Wenhua [1 ]
Keung, Jacky Wai [3 ]
Zhou, Junwei [1 ]
Xiang, Jianwen [1 ,2 ]
机构
[1] Wuhan Univ Technol, Sch Comp Sci & Artificial Intelligence, Hubei Key Lab Transportat Internet Things, Wuhan, Peoples R China
[2] Wuhan Univ Technol, Chongqing Res Inst, Chongqing, Peoples R China
[3] City Univ Hong Kong, Dept Comp Sci, Hong Kong, Peoples R China
基金
中国国家自然科学基金;
关键词
Software Defect Prediction; Effort aware; Genetic algorithm; PROGRAM DEPENDENCE GRAPH; MODELS; NUMBER;
D O I
10.1016/j.infsof.2023.107250
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Effort-Aware Defect Prediction (EADP) ranks software modules according to the defect density of software modules, which allows testers to find more bugs while reviewing a certain amount of Lines Of Code (LOC). Most existing methods regard the EADP task as a regression or classification problem. Optimizing the regression loss or classification accuracy might result in poor effort-aware performance. Objective: Therefore, we propose a method called EALTR to improve the EADP performance by directly maximizing the Proportion of the found Bugs (PofB@20%) value when inspecting the top 20% LOC. Method: EALTR uses the linear regression model to build the EADP model, and then employs the composite differential evolution algorithm to generate a set of coefficient vectors for the linear regression model. Finally, EALTR selects the coefficient vector that achieves the highest PofB@20% value on the training dataset to construct the EADP model. To further reduce the Initial False Alarms (IFA) value of EALTR, we propose a re-ranking strategy in the prediction phase. Results: Our experimental results on eleven project datasets with 41 releases show that EALTR can find 5.83%- 54.47% more bugs than the baseline methods whose IFA values are less than 10 and the re-ranking strategy significantly reduces the IFA value by 16.95%. Conclusion: Our study verifies the effectiveness of directly optimizing the effort-aware metric (i.e., PofB@20%) to build the EADP model. EALTR is recommended as an effective EADP method, since it can help software testers find more bugs.
引用
收藏
页数:16
相关论文
共 50 条
  • [1] Learning to rank software modules for effort-aware defect prediction
    Rao, Jiqing
    Yu, Xiao
    Zhang, Chen
    Zhou, Junwei
    Xiang, Jianwen
    [J]. 2021 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C 2021), 2021, : 372 - 380
  • [2] An Empirical Study of Learning to Rank Techniques for Effort-Aware Defect Prediction
    Yu, Xiao
    Bennin, Kwabena Ebo
    Liu, Jin
    Keung, Jacky Wai
    Yin, Xiaofei
    Xu, Zhou
    [J]. 2019 IEEE 26TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER), 2019, : 298 - 309
  • [3] Finding the best learning to rank algorithms for effort-aware defect prediction
    Yu, Xiao
    Dai, Heng
    Li, Li
    Gu, Xiaodong
    Keung, Jacky Wai
    Bennin, Kwabena Ebo
    Li, Fuyang
    Liu, Jin
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 157
  • [4] On effort-aware metrics for defect prediction
    Jonida Çarka
    Matteo Esposito
    Davide Falessi
    [J]. Empirical Software Engineering, 2022, 27
  • [5] On effort-aware metrics for defect prediction
    Carka, Jonida
    Esposito, Matteo
    Falessi, Davide
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2022, 27 (06)
  • [6] Effort-Aware Defect Prediction Models
    Mende, Thilo
    Koschke, Rainer
    [J]. 14TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR 2010), 2010, : 107 - 116
  • [7] Improving classifier-based effort-aware software defect prediction by reducing ranking errors
    Guo, Yuchen
    Shepperd, Martin
    Li, Ning
    [J]. PROCEEDINGS OF 2024 28TH INTERNATION CONFERENCE ON EVALUATION AND ASSESSMENT IN SOFTWARE ENGINEERING, EASE 2024, 2024, : 160 - 169
  • [8] A Novel Effort Measure Method for Effort-Aware Just-in-Time Software Defect Prediction
    Chen, Liqiong
    Song, Shilong
    Wang, Can
    [J]. INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2021, 31 (08) : 1145 - 1169
  • [9] MULTI: Multi-objective effort-aware just-in-time software defect prediction
    Chen, Xiang
    Zhao, Yingquan
    Wang, Qiuping
    Yuan, Zhidan
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2018, 93 : 1 - 13