An Empirical Study on Just-in-time Conformal Defect Prediction

被引:0
|
作者
Shahini, Xhulja [1 ]
Metzger, Andreas [1 ]
Pohl, Klaus [1 ]
机构
[1] Paluno Univ Duisburg Essen, Essen, Germany
关键词
Defect prediction; quality assurance; conformal prediction; machine learning; deep learning; correctness guarantees; uncertainty;
D O I
10.1145/3643991.3644928
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Code changes can introduce defects that affect software quality and reliability. Just-in-time ( JIT) defect prediction techniques provide feedback at check-in time on whether a code change is likely to contain defects. This immediate feedback allows practitioners to make timely decisions regarding potential defects. However, a prediction model may deliver false predictions, that may negatively affect practitioners' decisions. False positive predictions lead to unnecessarily spending resources on investigating clean code changes, while false negative predictions may result in overlooking defective changes. Knowing how uncertain a defect prediction is, would help practitioners to avoid wrong decisions. Previous research in defect prediction explored different approaches to quantify prediction uncertainty for supporting decision-making activities. However, these approaches only offer a heuristic quantification of uncertainty and do not provide guarantees. In this study, we use conformal prediction (CP) as a rigorous uncertainty quantification approach on top of JIT defect predictors. We assess how often CP can provide guarantees for JIT defect predictions. We also assess how many false JIT defect predictions CP can filter out. We experiment with two state-of-the-art JIT defect prediction techniques (DeepJIT and CC2Vec) and two widely used datasets (Qt and OpenStack). Our experiments show that CP can ensure correctness with a 95% probability, for only 27% (for DeepJIT) and 9% (for CC2Vec) of the JIT defect predictions. Additionally, our experiments indicate that CP might be a valuable technique for filtering out the false predictions of JIT defect predictors. CP can filter out up to 100% of false negative predictions and 90% of false positives generated by CC2Vec, and up to 86% of false negative predictions and 83% of false positives generated by DeepJIT.
引用
下载
收藏
页码:88 / 99
页数:12
相关论文
共 50 条
  • [21] Temporal Convolutional Networks for Just-in-Time Software Defect Prediction
    Ardimento, Pasquale
    Aversano, Lerina
    Bernardi, Mario
    Cimitile, Marta
    ICSOFT: PROCEEDINGS OF THE 15TH INTERNATIONAL CONFERENCE ON SOFTWARE TECHNOLOGIES, 2020, : 384 - 393
  • [22] Deep Just-in-Time Defect Prediction: How Far Are We?
    Zeng, Zhengran
    Zhang, Yuqun
    Zhang, Haotian
    Zhang, Lingming
    ISSTA '21: PROCEEDINGS OF THE 30TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, 2021, : 427 - 438
  • [23] Just-in-time defect prediction based on AST change embedding
    Zhuang, Weiyuan
    Wang, Hao
    Zhang, Xiaofang
    KNOWLEDGE-BASED SYSTEMS, 2022, 248
  • [24] CfExplainer: Explainable just-in-time defect prediction based on counterfactuals
    Yang, Fengyu
    Zeng, Guangdong
    Zhong, Fa
    Xiao, Peng
    Zheng, Wei
    Qiu, Fuxing
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 218
  • [25] Effort-aware and just-in-time defect prediction with neural network
    Qiao, Lei
    Wang, Yan
    PLOS ONE, 2019, 14 (02):
  • [26] ClusterCommit: A Just-in-Time Defect Prediction Approach Using Clusters of Projects
    Shehab, Mohammed A.
    Hamou-Lhadj, Abdelwahab
    Alawneh, Luay
    2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2022), 2022, : 333 - 337
  • [27] A Preliminary Evaluation of CPDP Approaches on Just-in-Time Software Defect Prediction
    Amasaki, Sousuke
    Aman, Hirohisa
    Yokogawa, Tomoyuki
    2021 47TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA 2021), 2021, : 279 - 286
  • [28] Local versus Global Models for Just-In-Time Software Defect Prediction
    Yang, Xingguang
    Yu, Huiqun
    Fan, Guisheng
    Shi, Kai
    Chen, Liqiong
    SCIENTIFIC PROGRAMMING, 2019, 2019
  • [29] Deep Just-In-Time Defect Localization
    Qiu, Fangcheng
    Gao, Zhipeng
    Xia, Xin
    Lo, David
    Grundy, John
    Wang, Xinyu
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (12) : 5068 - 5086
  • [30] Cross-Project Online Just-In-Time Software Defect Prediction
    Tabassum, Sadia
    Minku, Leandro L.
    Feng, Danyi
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (01) : 268 - 287