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 条
  • [21] Method-Level Software Bug Localization Enhanced with File Information
    Bo L.-L.
    Zhu C.
    Li B.
    Sun X.-B.
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2023, 51 (03): : 613 - 621
  • [22] Performance Evaluation of Information Retrieval Models in Bug Localization on the Method Level
    Alduailij, Mai
    Al-Duailej, Mona
    PROCEEDINGS OF THE 2015 INTERNATIONAL CONFERENCE ON COLLABORATION TECHNOLOGIES AND SYSTEMS, 2015, : 305 - 313
  • [23] Fine-grained Software Bug Location Approach at Method Level
    Zhang W.
    Li Z.-Q.
    Du Y.-H.
    Yang Y.
    Ruan Jian Xue Bao/Journal of Software, 2019, 30 (02): : 195 - 210
  • [24] Comprehensive Study on Machine Learning Techniques for Software Bug Prediction
    Khleel, Nasraldeen Alnor Adam
    Nehez, Karoly
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2021, 12 (08) : 726 - 735
  • [25] Predicting Reassignments of Bug Reports - an Exploratory Investigation
    Lamkanfi, Ahmed
    Demeyer, Serge
    PROCEEDINGS OF THE 17TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR 2013), 2013, : 327 - 330
  • [26] A Study on Machine Learning Applied to Software Bug Priority Prediction
    Malhotra, Ruchika
    Dabas, Ajay
    Hariharasudhan, A. S.
    Pant, Manish
    2021 11TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING, DATA SCIENCE & ENGINEERING (CONFLUENCE 2021), 2021, : 965 - 970
  • [27] PREDICTION OF IMPROVEMENT IN GROUP THERAPY - AN EXPLORATORY STUDY
    YALOM, ID
    HOUTS, PS
    ZIMERBER.SM
    RAND, KH
    ARCHIVES OF GENERAL PSYCHIATRY, 1967, 17 (02) : 159 - +
  • [28] Prediction of racemate resolution: An exploratory study.
    Leusen, FJJ
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 2002, 223 : U667 - U667
  • [29] AN EXPLORATORY STUDY OF SOCIAL GUIDANCE AT THE COLLEGE LEVEL
    Aldrich, Margaret Glockler
    EDUCATIONAL AND PSYCHOLOGICAL MEASUREMENT, 1942, 2 (02) : 209 - 216
  • [30] AN EXPLORATORY STUDY OF SOCIAL GUIDANCE AT THE COLLEGE LEVEL
    Aldrich, Margaret Glockler
    EDUCATIONAL AND PSYCHOLOGICAL MEASUREMENT, 1941, 1 : 209 - 216