ScholarMate
English简体中文繁體中文
客服热线:400-1616-289
登录注册
期刊论文

An exploratory study of bug prediction at the method level

Mo, Ran; Wei, Shaozhi; Feng, Qiong*; Li, Zengyang南京理工大学
INFORMATION AND SOFTWARE TECHNOLOGY2022-4DOI: 10.1016/j.infsof.2021.106794
6被引7阅读
引用收藏
分享

摘要

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.

学科与关键词

关键词
Method-level bug predictionCode metricsHistory measures
相关
加载中…
  • Formal Definition and Automatic Generation of Semantic Metrics: An Empirical Study on Bug Prediction
    Hu, Ting; Mo, Ran*; Xiong, Pu; Li, Zengyang; Feng, Qiong21st IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM), ELECTR NETWORK, 2021-09-27 To 2021.
  • Dynamic Selection of Classifiers in Bug Prediction: An Adaptive Method
    Di Nucci, Dario*; Palomba, Fabio; Oliveto, Rocco; De Lucia, AndreaIEEE TRANSACTIONS ON EMERGING TOPICS IN COMPUTATIONAL INTELLIGENCE, 2017, 1(3): 202-212.被引 56
  • A Method-Level Defect Prediction Approach Based on Structural Features of Method-Calling Network
    Yang, Fengyu; Xu, Haoming*; Xiao, Peng; Zhong, Fa; Zeng, GuangdongIEEE Access, 2023, 11: 7933-7946.被引 1
查看全部 →

发表信息

论文状态
公开发表
期刊
INFORMATION AND SOFTWARE TECHNOLOGY
发表日期
2022-04
卷期
第 144 卷
页码
106794
DOI
10.1016/j.infsof.2021.106794
语言
ENGLISH
期刊等级
2区
成果收录
SCIE
资助标注
National Natural Science Foundation of China [62002129]; Hubei Provincial Natural Science Foundation of China [2020CFB473]; Fundamental Research Funds for the Central Universities, China [CCNU19TD003]

作者

  • M

    Mo, Ran (第一作者)

    cent china normal univ

  • W

    Wei, Shaozhi

    cent china normal univ

查看全部 4 位作者收起作者
  • F

    Feng, Qiong (通讯)

    cent china normal univ · nanjing univ sci & technol

  • L

    Li, Zengyang

    cent china normal univ

登录解锁更多功能

  • 收藏这篇,随时在“我的 · 收藏”找回
  • 认领你的成果,生成推广素材
  • 关注作者获取最新成果
  • 加入项目组、协同写作
注册 / 登录

产品服务

  • 科研之友
  • 创新城
  • 科创云

服务支持

  • 帮助中心
  • 隐私政策
  • 服务条款

联系方式

在线客服:【】
客服热线:400-1616-289
电子邮箱:support@scholarmate.com

关注或下载科研之友

微信二维码
微信公众号
客户端下载二维码
下载客户端
科研成果科研人员科研机构科研动态爱瑞思软件

©2026 深圳市科研之友网络服务有限公司

公安备案图标粤公网安备 44030502000213
粤ICP备 16046710 号粤B2-20110417