Software defects prediction by metaheuristics tuned extreme gradient boosting and analysis based on Shapley Additive Explanations

被引:28
作者
Zivkovic, Tamara [1 ]
Nikolic, Bosko [1 ]
Simic, Vladimir [2 ,3 ]
Pamucar, Dragan [4 ]
Bacanin, Nebojsa [5 ]
机构
[1] Univ Belgrade, Sch Elect Engn, Bulevar Kralja Aleksandra 73, Belgrade 11000, Serbia
[2] Univ Belgrade, Fac Transport & Traff Engn, Vojvode Stepe 305, Belgrade 11000, Serbia
[3] Yuan Ze Univ, Coll Engn, Dept Ind Engn & Management, Yuandong Rd, Taoyuan City 320315, Taiwan
[4] Univ Belgrade, Fac Org Sci, Dept Operat Res & Stat, Jove Ilica 154, Belgrade 11000, Serbia
[5] Singidunum Univ, Fac Informat & Comp, Danijelova 32, Belgrade 11000, Serbia
关键词
Software testing; Software defect prediction; XGBoost; Reptile search algorithm; Metaheuristics optimization;
D O I
10.1016/j.asoc.2023.110659
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Software testing represents a crucial component of software development, and it is usually making the difference between successful and failed projects. Although it is extremely important, due to the fast pace and short deadlines of contemporary projects it is often neglected or not detailed enough due to the lack of available time, leading to the potential loss of reputation, private users' data, money, and even lives in some circumstances. In such situations, it would be vital to have the option to predict what modules are error-prone according to the collection of software metrics, and to focus testing on them, and that task is a typical classification task. Machine learning models have been frequently employed within a wide range of classification problems with significant success, and this paper proposes eXtreme gradient boosting (XGBoost) model to execute the defect prediction task. A modified variant of the well-known reptile search optimization algorithm has been suggested to carry out the calibrating of the XGBoost hyperparameters. The enhanced algorithm was named HARSA and evaluated on the collection of challenging CEC2019 benchmark functions, where it exhibited excellent performance. Later, the introduced XGBoost model that uses the proposed algorithm has been evaluated on two benchmark software testing datasets, and the simulation outcomes have been compared to other powerful swarm intelligence metaheuristics that were used in the identical experimental environment, where the proposed approach attained superior classification accuracy on both datasets. Finally, Shapley Additive Explanations analysis was conducted to discover the impact of various software metrics on the classification results.<br />& COPY; 2023 Elsevier B.V. All rights reserved.
引用
收藏
页数:32
相关论文
共 106 条
  • [1] Abaei Golnoush., 2014, Vietnam Journal of Computer Science, V1, P79, DOI DOI 10.1007/S40595-013-0008-Z
  • [2] Fitness Dependent Optimizer: Inspired by the Bee Swarming Reproductive Process
    Abdullah, Jaza Mahmood
    Rashid, Tarik Ahmed
    [J]. IEEE ACCESS, 2019, 7 : 43473 - 43486
  • [3] Abraham A., 2006, SWARM INTELLIGENT SY, P3
  • [4] Reptile Search Algorithm (RSA): A nature-inspired meta-heuristic optimizer
    Abualigah, Laith
    Abd Elaziz, Mohamed
    Sumari, Putra
    Geem, Zong Woo
    Gandomi, Amir H.
    [J]. EXPERT SYSTEMS WITH APPLICATIONS, 2022, 191
  • [5] The Arithmetic Optimization Algorithm
    Abualigah, Laith
    Diabat, Ali
    Mirjalili, Seyedali
    Elaziz, Mohamed Abd
    Gandomi, Amir H.
    [J]. COMPUTER METHODS IN APPLIED MECHANICS AND ENGINEERING, 2021, 376
  • [6] Differential evolution: A recent review based on state-of-the-art works
    Ahmad, Mohamad Faiz
    Isa, Nor Ashidi Mat
    Lim, Wei Hong
    Ang, Koon Meng
    [J]. ALEXANDRIA ENGINEERING JOURNAL, 2022, 61 (05) : 3831 - 3872
  • [7] Ai, 2021, IEEE T RELIAB
  • [8] [Anonymous], 2011, The Economics of Software Quality
  • [9] [Anonymous], 2004, P WORKSH PRED SOFTW
  • [10] [Anonymous], 2015, J. Softw. Eng