ET-SDP: Enhancing Code Embeddings with Effort-Related and Test Coverage Metrics for Improved Software Defect Prediction
Open Access
- 24 August 2026
- journal article
- research article
- Published by Springer Nature in Acta Universitatis Sapientiae, Informatica
- Vol. 18 (1) , 24
Abstract
Software defect prediction (SDP) aims to identify defect-prone code modules in order to optimize testing resources and improve software quality. While traditional approaches rely on software metrics derived from code structure, this paper proposes , an approach that enhances code embeddings using effort-related and test coverage metrics. We introduce three feature sets: the top-30 software metrics selected through clustering relevance ranking, 170 effort-related metrics capturing development process characteristics, and five test coverage metrics derived from unit tests. Our evaluation on 15 releases of Apache Calcite and 6 releases of Apache Ant-Ivy demonstrates that effort-related and test coverage metrics provide better defect prediction performance with far fewer features than traditional software metrics. In unsupervised clustering experiments, effort-based embeddings achieve better alignment with defect labels. In supervised classification, effort-related features achieve an AUC of 0.932 on Calcite and 0.883 on Ant-Ivy, outperforming the top-30 software metrics at comparable feature count (AUC of 0.632 and 0.587, respectively). Feature importance analysis reveals that test coverage metrics are the strongest predictors of defect proneness. These findings suggest that process-oriented metrics, particularly those related to code testing and development history, capture defect patterns more effectively per feature than static code structure metrics, offering practical guidance for software quality assurance.Keywords
Funding Information
- Universitatea Babeș-Bolyai (SMIS 351416)
This publication has 24 references indexed in Scilit:
- Deep Learning-Driven Multi-Objective Clustering for Neuroblastoma Omics Data with NSGA-IIActa Universitatis Sapientiae, Informatica, 2025
- A study on the relevance of semantic features extracted using BERT-based language models for enhancing the performance of software defect classifiersProcedia Computer Science, 2023
- An in-Depth Analysis of the Software Features’ Impact on the Performance of Deep Learning-Based Software Defect PredictorsIEEE Access, 2022
- Problems with SZZ and features: An empirical study of the state of practice of defect prediction data collectionEmpirical Software Engineering, 2022
- DBSCAN: Past, present and future2014
- Evaluating defect prediction approaches: a benchmark and an extensive comparisonEmpirical Software Engineering, 2011
- Predicting faults using the complexity of code changes2009
- Guidelines for conducting and reporting case study research in software engineeringEmpirical Software Engineering, 2008
- Experiments on the effectiveness of dataflow- and control-flow-based test adequacy criteria2002
- An experimental comparison of the effectiveness of branch testing and data flow testingIEEE Transactions on Software Engineering, 1993