An exploratory study of bug prediction at the method level

被引:14
|
作者
Mo, Ran [1 ]
Wei, Shaozhi [1 ]
Feng, Qiong [2 ]
Li, Zengyang [1 ]
机构
[1] Cent China Normal Univ, Hubei Prov Key Lab Artificial Intelligence & Smar, Wuhan, Hubei, Peoples R China
[2] Cent China Normal Univ, Sch Comp, Wuhan, Hubei, Peoples R China
基金
中国国家自然科学基金;
关键词
Method-level bug prediction; Code metrics; History measures; QUANTITATIVE-ANALYSIS; EMPIRICAL-ANALYSIS; SOFTWARE; FAULTS; METRICS;
D O I
10.1016/j.infsof.2021.106794
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: During the past decades, researchers have proposed numerous studies to predict bugs at different granularity levels, such as the file level, package level, module level, etc. However, the prediction models at the method level are rarely investigated. Objective: In this paper, we investigate to predict bug-prone methods based on method-level code metrics or history measures, and analyze the prediction importance of each metric. Method: To proceed our study, we first propose a series of code metrics and history measures for conducting method-level bug predictions. Next, we compare the performance of different types of prediction models. Finally, we conduct analyses about the prediction power of each metric, based on which, we further analyze whether we can simplify the prediction models. Results: Through our evaluation on eighteen large-scale projects, we have presented: (1) conducting method level bug prediction has potentials of saving a large portion of effort on code reviews and inspections; (2) models using the proposed code metrics or history measures could achieve a good prediction performance; (3) the prediction importance of each metric distributes differently; (4) a highly simplified prediction model could be derived by just using a few important metrics. Conclusion: This study presents how to systematically build models for predicting bug-prone methods, and provides empirical evidence for developers to best select metrics to build method-level bug prediction models.
引用
收藏
页数:12
相关论文
共 50 条
  • [41] Salivary Microbiota for Gastric Cancer Prediction: An Exploratory Study
    Huang, Kun
    Gao, Xuefeng
    Wu, Lili
    Yan, Bin
    Wang, Zikai
    Zhang, Xiaomei
    Peng, Lihua
    Yu, Jiufei
    Sun, Gang
    Yang, Yunsheng
    FRONTIERS IN CELLULAR AND INFECTION MICROBIOLOGY, 2021, 11
  • [42] International shopfloor level productivity differences: an exploratory study
    Steenhuis, Harm-Jan
    de Bruijn, Erik J.
    JOURNAL OF MANUFACTURING TECHNOLOGY MANAGEMENT, 2006, 17 (01) : 42 - +
  • [43] Dropping out of school at secondary level: an exploratory study
    Mayadunne, Geetha
    Kariyasekera, Kalana
    SRI LANKA JOURNAL OF SOCIAL SCIENCES, 2021, 44 (02) : 199 - 212
  • [44] M-Governments in the local level: An exploratory study
    Lev-On, Azi
    Rosenberg, Hananel
    2017 8TH INTERNATIONAL CONFERENCE ON INFORMATION, INTELLIGENCE, SYSTEMS & APPLICATIONS (IISA), 2017, : 308 - 310
  • [45] On Smartphone Indispensability: A Country-level Exploratory Study
    Cheng, Zhi
    AMCIS 2015 PROCEEDINGS, 2015,
  • [46] It's Not a Bug, It's a Feature: How Misclassification Impacts Bug Prediction
    Herzig, Kim
    Just, Sascha
    Zeller, Andreas
    PROCEEDINGS OF THE 35TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2013), 2013, : 392 - 401
  • [47] Correction to: On the feasibility of automated prediction of bug and non-bug issues
    Steffen Herbold
    Alexander Trautsch
    Fabian Trautsch
    Empirical Software Engineering, 2020, 25 : 5370 - 5373
  • [48] An automatically created novel bug dataset and its validation in bug prediction
    Ferenc, Rudolf
    Gyimesi, Peter
    Gyimesi, Gabor
    Toth, Zoltan
    Gyimothy, Tibor
    JOURNAL OF SYSTEMS AND SOFTWARE, 2020, 169
  • [49] A Public Bug Database of GitHub Projects and Its Application in Bug Prediction
    Toth, Zoltan
    Gyimesi, Peter
    Ferenc, Rudolf
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2016, PT IV, 2016, 9789 : 625 - 638
  • [50] Influences on physiotherapists when deciding to study at Masters level: An exploratory study
    Glover, Peter
    Bulley, C.
    Howden, S.
    EUROPEAN JOURNAL OF PHYSIOTHERAPY, 2008, 10 (01) : 14 - 20