Interpretable Software Defect Prediction from Project Effort and Static Code Metrics

被引:2
|
作者
Haldar, Susmita [1 ,2 ]
Capretz, Luiz Fernando [2 ]
机构
[1] Fanshawe Coll, Sch Informat Technol, London, ON N5Y 5R6, Canada
[2] Western Univ, Dept Elect & Comp Engn, London, ON N6A 3K7, Canada
关键词
defect prediction; explainable machine learning; software quality; interpretability; cross-project defect prediction; NEAREST-NEIGHBOR;
D O I
10.3390/computers13020052
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Software defect prediction models enable test managers to predict defect-prone modules and assist with delivering quality products. A test manager would be willing to identify the attributes that can influence defect prediction and should be able to trust the model outcomes. The objective of this research is to create software defect prediction models with a focus on interpretability. Additionally, it aims to investigate the impact of size, complexity, and other source code metrics on the prediction of software defects. This research also assesses the reliability of cross-project defect prediction. Well-known machine learning techniques, such as support vector machines, k-nearest neighbors, random forest classifiers, and artificial neural networks, were applied to publicly available PROMISE datasets. The interpretability of this approach was demonstrated by SHapley Additive exPlanations (SHAP) and local interpretable model-agnostic explanations (LIME) techniques. The developed interpretable software defect prediction models showed reliability on independent and cross-project data. Finally, the results demonstrate that static code metrics can contribute to the defect prediction models, and the inclusion of explainability assists in establishing trust in the developed models.
引用
收藏
页数:23
相关论文
共 50 条
  • [1] Software Defect Prediction Using Static Code Metrics Underestimates Defect-Proneness
    Gray, David
    Bowes, David
    Davey, Neil
    Sun, Yi
    Christianson, Bruce
    2010 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS IJCNN 2010, 2010,
  • [2] Mining Static Code Metrics for a Robust Prediction of Software Defect-Proneness
    Li, Lianfa
    Leung, Hareton
    2011 FIFTH INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING AND MEASUREMENT (ESEM 2011), 2011, : 207 - 214
  • [3] Using the Support Vector Machine as a Classification Method for Software Defect Prediction with Static Code Metrics
    Gray, David
    Bowes, David
    Davey, Neil
    Sun, Yi
    Christianson, Bruce
    ENGINEERING APPLICATIONS OF NEURAL NETWORKS, PROCEEDINGS, 2009, 43 : 223 - 234
  • [4] Software Defect Prediction Based on Source Code Metrics Time Series
    Pulawski, Lukasz
    TRANSACTIONS ON ROUGH SETS XIII, 2011, 6499 : 104 - 120
  • [5] Defect prediction model of static code features for cross-company and cross-project software
    Singh S.
    Singla R.
    International Journal of Information Technology, 2021, 13 (2) : 667 - 675
  • [6] A Comparative Analysis of the Efficiency of Change Metrics and Static Code Attributes for Defect Prediction
    Moser, Raimund
    Pedrycz, Witold
    Succi, Giancarlo
    ICSE'08 PROCEEDINGS OF THE THIRTIETH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 2008, : 181 - 190
  • [7] Cross-project software defect prediction based on the reduction and hybridization of software metrics
    Abdu, Ahmed
    Zhai, Zhengjun
    Abdo, Hakim A.
    Lee, Sungon
    Al-masni, Mohammed A.
    Gu, Yeong Hyeon
    Algabri, Redhwan
    ALEXANDRIA ENGINEERING JOURNAL, 2025, 112 : 161 - 176
  • [8] Cross -release code churn impact on effort -aware software defect prediction
    Miletic, M.
    Vukusic, M.
    Mausa, G.
    Grbac, T. Galinac
    2018 41ST INTERNATIONAL CONVENTION ON INFORMATION AND COMMUNICATION TECHNOLOGY, ELECTRONICS AND MICROELECTRONICS (MIPRO), 2018, : 1460 - 1466
  • [9] Analysing Bug Prediction Capabilities of Static Code Metrics in Open Source Software
    Ferzund, Javed
    Ahsan, Syed Nadeem
    Wotawa, Franz
    SOFTWARE PROCESS AND PRODUCT MEASUREMENT, 2008, 5338 : 331 - 343
  • [10] Deep Semantic Feature Learning with Embedded Static Metrics for Software Defect Prediction
    Fan, Guisheng
    Diao, Xuyang
    Yu, Huiqun
    Yang, Kang
    Chen, Liqiong
    2019 26TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC), 2019, : 244 - 251