Cross-project smell-based defect prediction

被引:11
|
作者
Sotto-Mayor, Bruno [1 ]
Kalech, Meir [1 ]
机构
[1] Ben Gurion Univ Negev, Beer Sheva, Israel
关键词
Cross-project defect prediction; Defect prediction; Code smell; Mining software repositories; Software quality; Software engineering; CODE; METRICS;
D O I
10.1007/s00500-021-06254-7
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Defect prediction is a technique introduced to optimize the testing phase of the software development pipeline by predicting which components in the software may contain defects. Its methodology trains a classifier with data regarding a set of features measured on each component from the target software project to predict whether the component may be defective or not. However, suppose the defective information is not available in the training set. In that case, we need to rely on an alternate approach that uses the training set of external projects to train the classifier. This approached is called cross-project defect prediction. Bad code smells are a category of features that have been previously explored in defect prediction and have been shown to be a good predictor of defects. Code smells are patterns of poor development in the code and indicate flaws in its design and implementation. Although they have been previously studied in the context of defect prediction, they have not been studied as features for cross-project defect prediction. In our experiment, we train defect prediction models for 100 projects to evaluate the predictive performance of the bad code smells. We implemented four cross-project approaches known in the literature and compared the performance of 37 smells with 56 code metrics, commonly used for defect prediction. The results show that the cross-project defect prediction models trained with code smells significantly improved 6.50% on the ROC AUC compared against the code metrics.
引用
收藏
页码:14171 / 14181
页数:11
相关论文
共 50 条
  • [21] Discriminant Subspace Alignment for Cross-project Defect Prediction
    Li, Zhiqiang
    Qi, Chao
    Zhang, Li
    Ren, Jie
    2019 IEEE SMARTWORLD, UBIQUITOUS INTELLIGENCE & COMPUTING, ADVANCED & TRUSTED COMPUTING, SCALABLE COMPUTING & COMMUNICATIONS, CLOUD & BIG DATA COMPUTING, INTERNET OF PEOPLE AND SMART CITY INNOVATION (SMARTWORLD/SCALCOM/UIC/ATC/CBDCOM/IOP/SCI 2019), 2019, : 1728 - 1733
  • [22] Adversarial domain adaptation for cross-project defect prediction
    Song, Hengjie
    Wu, Guobin
    Ma, Le
    Pan, Yufei
    Huang, Qingan
    Jiang, Siyu
    EMPIRICAL SOFTWARE ENGINEERING, 2023, 28 (05)
  • [23] Cross-project Defect Prediction Using a Credibility Theory based Naive Bayes Classifier
    Poon, Wai Nam
    Bennin, Kwabena Ebo
    Huang, Jianglin
    Phannachitta, Passakorn
    Keung, Jacky Wai
    2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS), 2017, : 434 - 441
  • [24] Adversarial domain adaptation for cross-project defect prediction
    Hengjie Song
    Guobin Wu
    Le Ma
    Yufei Pan
    Qingan Huang
    Siyu Jiang
    Empirical Software Engineering, 2023, 28
  • [25] Assessing the Effect of Imbalanced Learning on Cross-project Software Defect Prediction
    Sohan, Md Fahimuzzman
    Jabiullah, Md Ismail
    Rahman, Sheikh Shah Mohammad Motiur
    Mahmud, S. M. Hasan
    2019 10TH INTERNATIONAL CONFERENCE ON COMPUTING, COMMUNICATION AND NETWORKING TECHNOLOGIES (ICCCNT), 2019,
  • [26] Which is More Important for Cross-Project Defect Prediction: Instance or Feature?
    Yu, Qiao
    Jiang, Shujuan
    Qian, Junyan
    2016 INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, TESTING AND EVOLUTION (SATE 2016), 2016, : 90 - 95
  • [27] Local modeling approach for cross-project defect prediction
    Bhat, Nayeem Ahmad
    Farooq, Sheikh Umar
    INTELLIGENT DECISION TECHNOLOGIES-NETHERLANDS, 2021, 15 (04): : 623 - 637
  • [28] 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
  • [29] An Abstract Syntax Tree Encoding Method for Cross-Project Defect Prediction
    Cai, Ziyi
    Lu, Lu
    Qiu, Shaojian
    IEEE ACCESS, 2019, 7 : 170844 - 170853
  • [30] An empirical evaluation of defect prediction approaches in within-project and cross-project context
    Bhat, Nayeem Ahmad
    Farooq, Sheikh Umar
    SOFTWARE QUALITY JOURNAL, 2023, 31 (03) : 917 - 946