arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2504.18511cs.SE
收藏

共变更图熵:一种用于缺陷预测的新过程度量

Co-Change Graph Entropy: A New Process Metric for Defect Prediction

Ethari Hrishikesh, Amit Kumar, Meher Bhardwaj, Sonali Agarwal

AI总结:

本文提出共变更图熵,一种将共变更建模为图的新过程度量,用于量化共变更分散度;在八个Apache项目上,该度量与文件级缺陷数显著相关,与变更熵结合时显著提升缺陷分类性能。

摘要:

过程度量因其语言无关性和易于收集的特点而受到重视,已被证明在缺陷预测中优于产品度量。其中,变更熵(Hassan,2009)在文件级别被广泛使用,并被证明非常有效。此外,过去的研究表明,共变更模式为软件质量提供了有价值的见解。基于这些发现,我们引入了共变更图熵,这是一种新颖的度量,将共变更建模为图以量化共变更的分散程度。在八个Apache项目上的实验显示,共变更熵与文件级别的缺陷数量之间存在显著相关性,Pearson相关系数高达0.54。在文件级别的缺陷分类中,用共变更熵替代变更熵,在40个实验设置(五个机器学习分类器和八个项目)中,AUROC在72.5%的情况下得到改善,MCC在62.5%的情况下得到改善,尽管这些改善在统计上并不显著。然而,当共变更熵与变更熵结合时,AUROC在82.5%的情况下得到改善,MCC在65%的情况下得到改善,并通过Friedman检验及随后的事后Nemenyi检验确认了统计显著性。这些结果表明,共变更熵补充了变更熵,显著提升了缺陷分类性能,并强调了其在缺陷预测中的实际重要性。

英文摘要:

Process metrics, valued for their language independence and ease of collection, have been shown to outperform product metrics in defect prediction. Among these, change entropy (Hassan, 2009) is widely used at the file level and has proven highly effective. Additionally, past research suggests that co-change patterns provide valuable insights into software quality. Building on these findings, we introduce Co-Change Graph Entropy, a novel metric that models co-changes as a graph to quantify co-change scattering. Experiments on eight Apache projects reveal a significant correlation between co-change entropy and defect counts at the file level, with a Pearson correlation coefficient of up to 0.54. In filelevel defect classification, replacing change entropy with co-change entropy improves AUROC in 72.5% of cases and MCC in 62.5% across 40 experimental settings (five machine learning classifiers and eight projects), though these improvements are not statistically significant. However, when co-change entropy is combined with change entropy, AUROC improves in 82.5% of cases and MCC in 65%, with statistically significant gains confirmed via the Friedman test followed by the post-hoc Nemenyi test. These results indicate that co-change entropy complements change entropy, significantly enhancing defect classification performance and underscoring its practical importance in defect prediction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑