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.
Abstract
Accurate software quality prediction is critical for early defect identification and effective allocation of testing resources. Although machine learning (ML) and deep learning (DL) models have significantly improved defect prediction performance, their opaque nature limits transparency, interpretability, and practitioner trust. This study presents an Explainable Artificial Intelligence (XAI) driven framework for developing composite, transparent software quality metrics that integrate predictive accuracy with multi-level interpretability. The framework has been implemented and empirically validated using multiple real-world datasets. The framework combines static code metrics, process metrics, and developer activity metrics to construct robust defect prediction models using Random Forest, Gradient Boosted Trees (e.g., via the XGBoost implementation), Support Vector Machines (SVM), Logistic Regression, and attention-based Neural Networks. To enhance transparency, model agnostic explanation techniques, including SHAP and LIME, are integrated with in-model attention mechanisms to provide global and local explanations of predictions. Experiments conducted on PROMISE, open-source, and industrial datasets demonstrate that the proposed composite explainable metric achieves superior performance on the PROMISE (NASA-JM1) dataset, with the Gradient Boosted Trees model reaching an Accuracy of 0.85 and an AUC of 0.88, and consistently outperforms traditional and opaque baselines across the Eclipse JDT, Apache Commons, and Industrial datasets. Quantitative faithfulness analysis shows strong alignment between SHAP explanations and model behavior (Pearson’s r= 0.81). A controlled user study involving software developers reports a 14% improvement in decision accuracy and significantly higher confidence levels (p< 0.01) when using explainable metrics. The framework further incorporates interactive visual dashboards and textual summaries to support actionable decision-making during quality assurance processes. By bridging the gap between predictive performance and interpretability, this research demonstrates that explainability not only enhances trust but also improves the effectiveness of practical defect triage. The methodology provides a scalable and extensible foundation for transparent AI-driven software engineering tools.
This research proposes an Explainable Machine Learning (XML)–based framework to assess software quality by integrating code metrics, defect datasets, and advanced interpretability methods such as SHAP, LIME, and permutation importance.
Nandhini Ravi· International Journal of Mac...· 0 citations
The results indicate that traditional ML models, especially random forest and extra trees, are still very effective for metric-based defect prediction, while DL and multi-modal approaches need to be fed with richer software artifacts to reach their full potential.
Amro Mohammad Abed Alfattah Abdin, Mohanad Alayedi, Ahmad M. Jaradat· Journal of Supercomputing· 0 citations
Overall, the findings indicate that integrating principled feature selection with a boosting-based stacking ensemble can improve software fault prediction performance while providing greater transparency for software quality management.
Harsimran Kaur, Hardeep Singh, Amitpal Singh Sohal et al.· International journal of com...· 0 citations
An intelligent machine learning-based bug prediction framework that uses SMOTE for dataset balancing and feature selection to identify the most relevant software metrics and uses advanced ensemble learning techniques, such as CatBoost, LightGBM, and the Stacking Ensemble model, to improve prediction accuracy.
Bhukya Yashaswini· International Journal of Eng...· 0 citations
Software reliability remains a major concern in modern software engineering due to the increasing complexity of software systems and the rapid pace of development. Software Failure Prediction (SFP) aims to identify fault-prone modules before deployment, enabling organizations to reduce maintenance costs and improve system quality. Artificial Intelligence (AI) and Machine Learning (ML) techniques provide data-driven approaches for analyzing software metrics, defect repositories, and execution logs to predict failures. This review examines AI/ML-based approaches for software failure prediction and efficiency optimization, with explicit attention to benchmark datasets, dataset quality, preprocessing, class imbalance, feature selection, model families, validation strategies, and evaluation measures. Representative NASA and PROMISE/Jureczko datasets are characterized in terms of software-unit type, metric families, binary defect labels, and imbalance. The review emphasizes Precision, Recall, F1-score, ROC-AUC, and MCC in addition to accuracy and compares traditional ML, ensemble, and deep-learning approaches. It further discusses missing data, concept drift, and cross-project prediction as key factors affecting real-world generalization. The analysis indicates that no single model is universally optimal; robust software failure prediction requires dataset-aware preprocessing, leakage-safe validation, imbalance-aware evaluation, and an explicit trade-off among predictive performance, computational efficiency, and interpretability.
Prasad Mathapati, S. G. Gollagi, Zebashireen Fahim Shaikh· International journal of res...· 0 citations
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· International Conference on...· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.