Saved in:
Bibliographic Details
Main Authors: Hrishikesh, Ethari, Kumar, Amit, Bhardwaj, Meher, Agarwal, Sonali
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.18511
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916707667279872
author Hrishikesh, Ethari
Kumar, Amit
Bhardwaj, Meher
Agarwal, Sonali
author_facet Hrishikesh, Ethari
Kumar, Amit
Bhardwaj, Meher
Agarwal, Sonali
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2504_18511
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Co-Change Graph Entropy: A New Process Metric for Defect Prediction
Hrishikesh, Ethari
Kumar, Amit
Bhardwaj, Meher
Agarwal, Sonali
Software Engineering
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.
title Co-Change Graph Entropy: A New Process Metric for Defect Prediction
topic Software Engineering
url https://arxiv.org/abs/2504.18511