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 条
  • [1] Feature Sets in Just-in-Time Defect Prediction: An Empirical Evaluation
    Bludau, Peter
    Pretschner, Alexander
    PROCEEDINGS OF THE 18TH INTERNATIONAL CONFERENCE ON PREDICTIVE MODELS AND DATA ANALYTICS IN SOFTWARE ENGINEERING, PROMISE 2022, 2022, : 22 - 31
  • [2] An empirical study of data sampling techniques for just-in-time software defect prediction
    Li, Zhiqiang
    Du, Qiannan
    Zhang, Hongyu
    Jing, Xiao-Yuan
    Wu, Fei
    AUTOMATED SOFTWARE ENGINEERING, 2024, 31 (02)
  • [3] A Replication Study: Just-In-Time Defect Prediction with Ensemble Learning
    Young, Steven
    Abdou, Tamer
    Bener, Ayse
    2018 IEEE/ACM 6TH INTERNATIONAL WORKSHOP ON REALIZING ARTIFICIAL INTELLIGENCE SYNERGIES IN SOFTWARE ENGINEERING (RAISE), 2018, : 42 - 47
  • [4] Just-in-time defect prediction for software hunks
    Zhu, Xiaoyan
    Yan, Chenyu
    Whitehead, E. James, Jr.
    Niu, Binbin
    Zhu, Lei
    Pan, Long
    SOFTWARE-PRACTICE & EXPERIENCE, 2022, 52 (01): : 130 - 153
  • [5] Deep Learning for Just-In-Time Defect Prediction
    Yang, Xinli
    Lo, David
    Xia, Xin
    Zhang, Yun
    Sun, Jianling
    2015 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE SECURITY AND RELIABILITY (QRS 2015), 2015, : 17 - 26
  • [6] Just-In-Time Defect Prediction on Java']JavaScript Projects: A Replication Study
    Ni, Chao
    Xia, Xin
    Lo, David
    Yang, Xiaohu
    Hassan, Ahmed E.
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2022, 31 (04)
  • [7] A Systematic Survey of Just-in-Time Software Defect Prediction
    Zhao, Yunhua
    Damevski, Kostadin
    Chen, Hui
    ACM COMPUTING SURVEYS, 2023, 55 (10)
  • [8] Just-in-time Software Defect Prediction: Literature Review
    Cai L.
    Fan Y.-R.
    Yan M.
    Xia X.
    Ruan Jian Xue Bao/Journal of Software, 2019, 30 (05): : 1288 - 1307
  • [9] Just-In-Time Defect Prediction for Intellignet Computing Frameworks
    Ge J.
    Yu H.-Q.
    Fan G.-S.
    Tang J.-H.
    Huang Z.-J.
    Ruan Jian Xue Bao/Journal of Software, 2023, 34 (09):
  • [10] ApacheJIT: A Large Dataset for Just-In-Time Defect Prediction
    Keshavarz, Hossein
    Nagappan, Meiyappan
    2022 MINING SOFTWARE REPOSITORIES CONFERENCE (MSR 2022), 2022, : 191 - 195