arrow
Return

An explainable AI framework for enhanced software defect prediction using transformer-assisted boosting

delete2026-06-04
delete0
delete
OA
AI
Q
Qi Kun
Z
Zaffar Ahmed Shaikh
J
Jing Yang
G
Gyanendra Kumar *
H
Heba Abdelgader Mohammed
P
Por Lip Yee
DOI:10.1038/s41598-026-44202-3delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Accurate defect prediction is essential for better software quality to avoid cost overruns, schedule delays, and reduced system reliability due to software defects. This study presents a Transformer Assisted Boosting Framework (TABF) that combines XGBoost with the Transformer’s self-attention to achieve higher predictive accuracy and interpretability. The framework is evaluated using the NASA Metrics Data Program (MDP) and the Code4Code dataset, which comprises software metrics such as cyclomatic complexity, Halstead’s properties, and lines of code. Experimental results demonstrate that the performance of TABF, with AUC scores of 0.95 and ROC of 0.96, is superior to classical machine learning models, such as Random Forest and SVM, with accuracies of 92.5% and 94.3%, respectively. SHapley Additive exPlanations (SHAP) are used to explain feature importance, uncovering that lines of code and McCabe’s cyclomatic complexity are among the most important predictors of software defects. These insights are used for defect management and resource allocation, as well as to improve software reliability. TABF unifies high-performance predictive modeling with explainability and closes the gap between machine learning or deep learning-based defect prediction models and their use by software quality assurance practitioners in practice.
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Scientific Reports cover
Scientific Reports
IF:
3.9
Papers:
27.4W
Citations:
83.5W

Organization

K
king ‎khalid university
Scholars:
1.3K
Papers: 751
Citations: 0
M
Manipal University Jaipur
Scholars:
2.2K
Papers: 1.7K
Citations: 1.1K
S
Shenzhen Polytechnic University
Scholars:
2.8K
Papers: 2.6K
Citations: 68
E
epfl
Scholars:
734
Papers: 280
Citations: 0
B
benazir bhutto shaheed university
Scholars:
8
Papers: 10
Citations: 0
U
university of malaya
Scholars:
451
Papers: 248
Citations: 0
researcher View more organizations