An empirical evaluation of defect prediction approaches in within-project and cross-project context

被引:5
|
作者
Bhat, Nayeem Ahmad [1 ]
Farooq, Sheikh Umar [1 ]
机构
[1] Univ Kashmir, Dept Comp Sci, North Campus, Srinagar, J&K, India
关键词
Cross-project defect prediction; Software quality assurance; Source code metrics; Process metrics; Churn of source code; Feature selection; Imbalance learning; STATIC CODE ATTRIBUTES; BORDERLINE-SMOTE; SOFTWARE; METRICS; FAULTS; VALIDATION; MODELS;
D O I
10.1007/s11219-023-09615-7
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The software defect prediction approaches are evaluated, in within-project context only, with only a few other approaches, according to distinct scenarios and performance indicators. So, we conduct various experiments to evaluate well-known defect prediction approaches using different performance indicators. The evaluations are performed in the scenario of ranking the entities - with and without considering the effort to review the entities and classifying entities in within-project as well as cross-project contexts. The effect of imbalanced datasets on the ranking of the approaches is also evaluated. Our results indicate that in within-project as well as cross-project context, process metrics, the churn of source code, and entropy of source code perform significantly better under the context of classification and ranking - with and without effort consideration. The previous defect metrics and other single metric approaches (like lines of code) perform worst. The ranking of the approaches is not changed by imbalanced datasets. We suggest using the process metrics, the churn of source code, and entropy of source code metrics as predictors in future defect prediction studies and taking care while using the single metric approaches as predictors. Moreover, different evaluation scenarios generate different ordering of approaches in within-project and cross-project contexts. Therefore, we conclude that each problem context has distinct characteristics, and conclusions of within-project studies should not be generalized to cross-project context and vice versa.
引用
收藏
页码:917 / 946
页数:30
相关论文
共 50 条
  • [1] An empirical evaluation of defect prediction approaches in within-project and cross-project context
    Nayeem Ahmad Bhat
    Sheikh Umar Farooq
    Software Quality Journal, 2023, 31 : 917 - 946
  • [2] A Novel Class-Imbalance Learning Approach for Both Within-Project and Cross-Project Defect Prediction
    Gong, Lina
    Jiang, Shujuan
    Bo, Lili
    Jiang, Li
    Qian, Junyan
    IEEE TRANSACTIONS ON RELIABILITY, 2020, 69 (01) : 40 - 54
  • [3] An Improved SDA Based Defect Prediction Framework for Both Within-Project and Cross-Project Class-Imbalance Problems
    Jing, Xiao-Yuan
    Wu, Fei
    Dong, Xiwei
    Xu, Baowen
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2017, 43 (04) : 321 - 339
  • [4] Within-Project and Cross-Project Software Defect Prediction Based on Improved Transfer Naive Bayes Algorithm
    Zhu, Kun
    Zhang, Nana
    Ying, Shi
    Wang, Xu
    CMC-COMPUTERS MATERIALS & CONTINUA, 2020, 63 (02): : 891 - 910
  • [5] Multi-Objective Cross-Project Defect Prediction
    Canfora, Gerardo
    De Lucia, Andrea
    Di Penta, Massimiliano
    Oliveto, Rocco
    Panichella, Annibale
    Panichella, Sebastiano
    2013 IEEE SIXTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST 2013), 2013, : 252 - 261
  • [6] An Evaluation of Cross-Project Defect Prediction Approaches on Cross-Personalized Defect Prediction
    Amasaki, Sousuke
    Aman, Hirohisa
    Yokogawa, Tomoyuki
    PRODUCT-FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROFES 2022, 2022, 13709 : 433 - 448
  • [7] Combined classifier for cross-project defect prediction: an extended empirical study
    Zhang, Yun
    Lo, David
    Xia, Xin
    Sun, Jianling
    FRONTIERS OF COMPUTER SCIENCE, 2018, 12 (02) : 280 - 296
  • [8] An Empirical Study on the Effectiveness of Feature Selection for Cross-Project Defect Prediction
    Yu, Qiao
    Qian, Junyan
    Jiang, Shujuan
    Wu, Zhenhua
    Zhang, Gongjie
    IEEE ACCESS, 2019, 7 : 35710 - 35718
  • [9] Cross-Version Defect Prediction using Cross-Project Defect Prediction Approaches: Does it work?
    Amasaki, Sousuke
    PROMISE'18: PROCEEDINGS OF THE 14TH INTERNATIONAL CONFERENCE ON PREDICTIVE MODELS AND DATA ANALYTICS IN SOFTWARE ENGINEERING, 2018, : 32 - 41
  • [10] An investigation on the feasibility of cross-project defect prediction
    He, Zhimin
    Shu, Fengdi
    Yang, Ye
    Li, Mingshu
    Wang, Qing
    AUTOMATED SOFTWARE ENGINEERING, 2012, 19 (02) : 167 - 199