{"title":"Software Defect Prediction evaluation: New metrics based on the ROC curve","authors":"Luigi Lavazza, Sandro Morasca, 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 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 can be seen as a property of the ROC curve and fault-proneness model under evaluation.
Results:
There is an S-shaped relationship between 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.
期刊介绍:
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.