Software Defect Prediction evaluation: New metrics based on the ROC curve

IF 4.3 2区 计算机科学 Q2 COMPUTER SCIENCE, INFORMATION SYSTEMS
Luigi Lavazza, Sandro Morasca, Gabriele Rotoloni
{"title":"Software Defect Prediction evaluation: New metrics based on the ROC curve","authors":"Luigi Lavazza,&nbsp;Sandro Morasca,&nbsp;Gabriele Rotoloni","doi":"10.1016/j.infsof.2025.107865","DOIUrl":null,"url":null,"abstract":"<div><h3>Context:</h3><div>ROC (Receiver Operating Characteristic) curves are widely used to represent how well fault-proneness models (e.g., probability models) classify software modules as faulty or non-faulty. <em>AUC</em>, the Area Under the ROC Curve, is usually used to quantify the overall discriminating power of a fault-proneness model. Alternative indicators proposed, e.g., <em>RRA</em> (Ratio of Relevant Areas), consider the area under a portion of a ROC curve. Each point of a ROC curve represents a binary classifier, obtained by setting a specified threshold on the fault-proneness model. Several performance metrics (Precision, Recall, the F-score, etc.) are used to assess a binary classifier.</div></div><div><h3>Objectives:</h3><div>We investigate the relationships linking “under the ROC curve area” indicators such as <em>AUC</em> and <em>RRA</em> to performance metrics.</div></div><div><h3>Methods:</h3><div>We study these relationships analytically. We introduce iso-PM ROC curves, whose points have the same value <span><math><mover><mrow><mi>P</mi><mi>M</mi></mrow><mo>¯</mo></mover></math></span> for a given performance metric PM. When evaluating a ROC curve, we identify the iso-PM curve with the same value of <em>AUC</em> or <em>RRA</em>. Its <span><math><mover><mrow><mi>P</mi><mi>M</mi></mrow><mo>¯</mo></mover></math></span> can be seen as a property of the ROC curve and fault-proneness model under evaluation.</div></div><div><h3>Results:</h3><div>There is an S-shaped relationship between <span><math><mover><mrow><mi>P</mi><mi>M</mi></mrow><mo>¯</mo></mover></math></span> and <em>AUC</em> for performance metrics that do not depend on the proportion <span><math><mi>ρ</mi></math></span> of faulty modules, i.e., dataset balancedness. <span><math><mi>ϕ</mi></math></span> (Matthews Correlation Coefficient) depends on <span><math><mi>ρ</mi></math></span>: with very imbalanced datasets, <em>AUC</em> appears over-optimistic and <span><math><mi>ϕ</mi></math></span> over-pessimistic. <em>RRA</em> defines the region of interest in terms of <span><math><mi>ρ</mi></math></span>, so all performance metrics depend on <span><math><mi>ρ</mi></math></span>. <em>RRA</em> is related to performance metrics via S-shaped curves.</div></div><div><h3>Conclusion:</h3><div>Our proposal helps gain a better quantitative understanding of the goodness of a ROC curve, especially in practically relevant regions of interest. Also, showing a ROC curve and iso-PM curves provides an intuitive perception of the goodness of a fault-proneness model.</div></div>","PeriodicalId":54983,"journal":{"name":"Information and Software Technology","volume":"187 ","pages":"Article 107865"},"PeriodicalIF":4.3000,"publicationDate":"2025-08-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Information and Software Technology","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0950584925002046","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0

Abstract

Context:

ROC (Receiver Operating Characteristic) curves are widely used to represent how well fault-proneness models (e.g., probability models) classify software modules as faulty or non-faulty. AUC, the Area Under the ROC Curve, is usually used to quantify the overall discriminating power of a fault-proneness model. Alternative indicators proposed, e.g., RRA (Ratio of Relevant Areas), consider the area under a portion of a ROC curve. Each point of a ROC curve represents a binary classifier, obtained by setting a specified threshold on the fault-proneness model. Several performance metrics (Precision, Recall, the F-score, etc.) are used to assess a binary classifier.

Objectives:

We investigate the relationships linking “under the ROC curve area” indicators such as AUC and RRA to performance metrics.

Methods:

We study these relationships analytically. We introduce iso-PM ROC curves, whose points have the same value PM¯ for a given performance metric PM. When evaluating a ROC curve, we identify the iso-PM curve with the same value of AUC or RRA. Its PM¯ can be seen as a property of the ROC curve and fault-proneness model under evaluation.

Results:

There is an S-shaped relationship between PM¯ and AUC for performance metrics that do not depend on the proportion ρ of faulty modules, i.e., dataset balancedness. ϕ (Matthews Correlation Coefficient) depends on ρ: with very imbalanced datasets, AUC appears over-optimistic and ϕ over-pessimistic. RRA defines the region of interest in terms of ρ, so all performance metrics depend on ρ. RRA is related to performance metrics via S-shaped curves.

Conclusion:

Our proposal helps gain a better quantitative understanding of the goodness of a ROC curve, especially in practically relevant regions of interest. Also, showing a ROC curve and iso-PM curves provides an intuitive perception of the goodness of a fault-proneness model.
软件缺陷预测评估:基于ROC曲线的新度量
背景:ROC(接受者工作特征)曲线被广泛用于表示故障倾向模型(例如,概率模型)将软件模块分类为故障或非故障的程度。AUC,即ROC曲线下的面积,通常用于量化断层倾向模型的整体判别能力。提出的替代指标,例如RRA(相关面积比),考虑ROC曲线一部分下的面积。ROC曲线的每个点代表一个二元分类器,通过在故障倾向模型上设置指定的阈值获得。几个性能指标(Precision, Recall, F-score等)被用来评估一个二元分类器。目的:研究“ROC曲线下面积”指标(如AUC和RRA)与绩效指标之间的关系。方法:对这些关系进行分析研究。我们引入了iso-PM ROC曲线,对于给定的性能度量PM,其点具有相同的值PM¯。在评估ROC曲线时,我们将AUC或RRA值相同的等pm曲线识别出来。它的PM¯可以看作是被评价的ROC曲线和断层倾向模型的一个属性。结果:性能指标的PM¯和AUC之间存在s形关系,不依赖于故障模块的比例ρ,即数据集平衡性。φ(马修斯相关系数)取决于ρ:对于非常不平衡的数据集,AUC显得过于乐观,φ显得过于悲观。RRA用ρ来定义感兴趣的区域,所以所有的性能指标都依赖于ρ。RRA通过s形曲线与性能指标相关。结论:我们的建议有助于更好地定量理解ROC曲线的优点,特别是在实际相关的兴趣区域。此外,显示ROC曲线和等pm曲线提供了对故障倾向模型的良好性的直观感知。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Information and Software Technology
Information and Software Technology 工程技术-计算机:软件工程
CiteScore
9.10
自引率
7.70%
发文量
164
审稿时长
9.6 weeks
期刊介绍: Information and Software Technology is the international archival journal focusing on research and experience that contributes to the improvement of software development practices. The journal''s scope includes methods and techniques to better engineer software and manage its development. Articles submitted for review should have a clear component of software engineering or address ways to improve the engineering and management of software development. Areas covered by the journal include: • Software management, quality and metrics, • Software processes, • Software architecture, modelling, specification, design and programming • Functional and non-functional software requirements • Software testing and verification & validation • Empirical studies of all aspects of engineering and managing software development Short Communications is a new section dedicated to short papers addressing new ideas, controversial opinions, "Negative" results and much more. Read the Guide for authors for more information. The journal encourages and welcomes submissions of systematic literature studies (reviews and maps) within the scope of the journal. Information and Software Technology is the premiere outlet for systematic literature studies in software engineering.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信