Skip to content
#software testing Open access

ET-SDP: Enhancing Code Embeddings with Effort-Related and Test Coverage Metrics for Improved Software Defect Prediction

Aug 2026 · Acta Universitatis Sapientiae: Informatica · Vol 18 · 0 citations · 33 references

TL;DR

It is suggested 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.

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 ET-SDP, 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.

Read PDF

Similar papers

Jul 2026

Introducing dependency, exception and encapsulation metrics for object-oriented defect prediction: Complementarity with CK/MOOD metrics through empirical machine learning and statistical validation

A set of ten novel object-oriented metrics designed to enrich existing datasets and enhance prediction performance are proposed, demonstrating that the proposed metrics capture complementary aspects of software quality not fully represented by traditional metrics, leading to more accurate and robust defect prediction m...

F. Mekahlia, Mohamed Ilyes Bouguerri, Zineddine Djama et al. · 0 citations
Open access Jul 2026

From Bug Reports to Code Quality: A Transformer-Based Classification Approach Using CodeBERT

A transformer-based classification framework that fine-tunes CodeBERT on a balanced dataset of 25,000+ bug-report segments drawn from four Apache projects is proposed and CodeBERT is the best-performing transformer in this comparison.

Kanwal Naz, Imran Shafi, M. Z. Mehmood et al. · 0 citations
Open access Jul 2026

Intelligent Bug Triaging Using CodeBERT, Graph Attention Networks, FAISS, and Explainable Machine Learning

By combining semantic understanding, graph learning, similarity retrieval, and explainable artificial intelligence, the proposed system improves the efficiency, accuracy, and interpretability of automated bug triaging, making it suitable for large-scale software maintenance environments.

Pogiri Pujitha, Gangadhar Doma · 0 citations
Open access Aug 2026

Do Pre-Trained Code Models Add Value Beyond Software Metrics in Class-Level Defect Prediction? An Empirical Study of Input Coverage, Long-Code Aggregation, and Cross-Version Generalization

Findings indicate that pre-trained code models should be evaluated with explicit input-coverage reporting, chronological validation, strong metric baselines, and incremental-value testing.

Musaad Alzahrani · 0 citations
Open access 2026

Explainable AI-Driven Metrics for Transparent Software Quality Prediction

An Explainable Artificial Intelligence (XAI) driven framework for developing composite, transparent software quality metrics that integrate predictive accuracy with multi-level interpretability and provides a scalable and extensible foundation for transparent AI-driven software engineering tools.

Abdulaziz Attaallah, Khalil Al Sulbi · 0 citations
Open access Jul 2026

Actionable insights from developer behavior: a practical approach to software defect prediction

These findings validate cognitive theory for explainable, actionable, and interpretable safety-critical defect prediction, laying empirical groundwork to evaluate analogous issues in LLM-generated code through the behavioral study of AI.

Carlos Andrés Ramírez Cataño, Makoto Itoh · 0 citations

Related blog posts

Microsoft Research Blog Oct 12, 2026

Simulating student learning for better AI tutoring

StudentSim is a research system for evaluating and improving AI tutoring tools before they are tested with learners. It models how individuals may engage with tutors, giving feedback to improve tutor performance across subjects like chess, writing, and mathematics. The post Simulating student learning for better AI tutoring appeared first on Microsoft Research.

MIT News · Artificial Intelligence Oct 2, 2026

Documenting the tech worker movement

Writing as a participant and researcher, PhD student JS Tan SM ’22 has co-authored a new book about the rise of tech worker protests and the employer backlash that followed.

MIT News · Artificial Intelligence Oct 2, 2026

Documenting the tech worker movement

Writing as a participant and researcher, PhD student JS Tan SM ’22 has co-authored a new book about the rise of tech worker protests and the employer backlash that followed.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.