vix.ing · top · new · best · stats

Source Code Metrics for Software Defects Prediction

2023/01/19 by Dominik Arne Rebro, Rebro, Dominik Arne, Bruno Rossi +3 · 2 citations
Computer Science · #FOS: Computer and information sciences #Software Engineering (cs.SE) #Software Engineering Research #Software Reliability and Analysis Research #Software System Performance and Reliability

paper · pdf · doi:10.48550/arxiv.2301.08022

openalex publication_date 2023/01/19 · openalex created_date 2025/10/10 · openalex updated_date 2026/08/01

Abstract

In current research, there are contrasting results about the applicability of software source code metrics as features for defect prediction models. The goal of the paper is to evaluate the adoption of software metrics in models for software defect prediction, identifying the impact of individual source code metrics. With an empirical study on 275 release versions of 39 Java projects mined from GitHub, we compute 12 software metrics and collect software defect information. We train and compare three defect classification models. The results across all projects indicate that Decision Tree (DT) and Random Forest (RF) classifiers show the best results. Among the highest-performing individual metrics are NOC, NPA, DIT, and LCOM5. While other metrics, such as CBO, do not bring significant improvements to the models.

Cited by

Related