Programming-Construct-Level Change Entropy for Software Bug Prediction: An Empirical Comparison with File-Level Entropy
Entropy · 12.11.2026 · 28 (11) · 1251
DOI: 10.3390/e28111251 ↗Kurz gefasst
Fachartikel in der Zeitschrift Entropy, online erschienen am 12.11.2026. Verfasst von Kumari Seema Rani und 2 weiteren Autor:innen. Die Arbeit nennt 43 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Changing business requirements and the need to improve user satisfaction mean that software source code must be modified frequently to implement new features, enhancements, and bug fixes. These frequent code changes introduce uncertainty and complexity, which is quantified by entropy-based measures. Previous studies have used entropy-based measures for bug prediction by analyzing the distribution of changes across different source code files. However, such approaches do not capture the syntactic and semantic features of different programming-construct-based code changes. In this study, we identify 11 new programming-construct-based code change subcategories, in addition to those in the existing study. The different programming constructs are IF Statement (IF), Method Call (MC), Method Declaration (MD), Loop (LP), Sequence (SQ), Class Field (CF), Class (C), Try (TY), Assignment (AS), Switch (SW), and Finally (F). We use historical code change data from the Eclipse Java project’s Core, UI, and Debug components to quantify change complexity at the file and programming-construct levels and to propose an entropy-based bug prediction model using these metrics. The study examines relationships between programming-construct-based subcategories and bugs, their contribution to prediction performance, their consistency across components, and the effect of Shannon entropy transformation. This study proposes three bug prediction models based on entropy measures: two models use programming-construct-level change entropy, including individual and aggregated programming construct entropy, while the third model uses file-level change entropy. Experimental results across several regression techniques demonstrate that the programming-construct-level change entropy-based models achieve higher prediction performance than file-level change entropy-based models. The findings indicate that bug prediction using programming-construct-level change entropy provides better performance than file-level change entropy. The proposed study supports developers and managers in understanding software complexity and improving code maintainability.
Zitieren
APA
Rani, K. S., Sharma, M., & Singh, V. B. (2026). Programming-Construct-Level Change Entropy for Software Bug Prediction: An Empirical Comparison with File-Level Entropy. Entropy, 28(11), 1251. https://doi.org/10.3390/e28111251
Vancouver
Rani KS, Sharma M, Singh VB. Programming-Construct-Level Change Entropy for Software Bug Prediction: An Empirical Comparison with File-Level Entropy. Entropy. 2026;28(11):1251. doi:10.3390/e28111251
BibTeX
@article{Rani2026,
author = {Rani, Kumari Seema and Sharma, Meera and Singh, V. B.},
title = {Programming-Construct-Level Change Entropy for Software Bug Prediction: An Empirical Comparison with File-Level Entropy},
journal = {Entropy},
year = {2026},
volume = {28},
number = {11},
pages = {1251},
doi = {10.3390/e28111251}
}
EUVIMED