English

Automated Classification of Source Code Changes Based on Metrics Clustering in the Software Development Process

Software Engineering 2026-02-17 v1 Artificial Intelligence

Abstract

This paper presents an automated method for classifying source code changes during the software development process based on clustering of change metrics. The method consists of two steps: clustering of metric vectors computed for each code change, followed by expert mapping of the resulting clusters to predefined change classes. The distribution of changes into clusters is performed automatically, while the mapping of clusters to classes is carried out by an expert. Automation of the distribution step substantially reduces the time required for code change review. The k-means algorithm with a cosine similarity measure between metric vectors is used for clustering. Eleven source code metrics are employed, covering lines of code, cyclomatic complexity, file counts, interface changes, and structural changes. The method was validated on five software systems, including two open-source projects (Subversion and NHibernate), and demonstrated classification purity of P_C = 0.75 +/- 0.05 and entropy of E_C = 0.37 +/- 0.06 at a significance level of 0.05.

Keywords

Cite

@article{arxiv.2602.14591,
  title  = {Automated Classification of Source Code Changes Based on Metrics Clustering in the Software Development Process},
  author = {Evgenii Kniazev},
  journal= {arXiv preprint arXiv:2602.14591},
  year   = {2026}
}

Comments

This is an English translation of the author's Ph.D. dissertation abstract, originally defended in Russian at ITMO University (2009) under the supervision of Prof. A.A. Shalyto. The original research was co-authored with D.G. Shopyrin. Original available at https://is.ifmo.ru/disser/knyazev_autorefer.pdf

R2 v1 2026-07-01T10:38:13.604Z