An Explainable AI Framework for Bug Prediction and Pedagogical Feedback in Student Code

The traditional software bug prediction model is a black-box model which does not provide any clarity on the reason behind the predicted outcome. This proposed research work makes use of a state-of-the-art technology called Explainable Artificial Intelligence (XAI), which combines the machine learning model of bug predictions with the Self-Explainable Technique of SHapley Additive exPlanations (SHAP) to produce a model which helps in generating a clear and pedagogy-friendly result set for the student-written code. The model comprises a total of five different blocks. They are Code Acquisition, Radon library-based Code Characterization Metric set of 11 metrics, Bug Prediction model based on the XGBoost algorithm, Tree-based SHAP Technique-based Explanation model, and the result set generation model called the Pedagogy Feedback model. This proposed model helps to provide a real-time result explanation model incorporating all the necessary metrics like the Cyclomatic complexity, Halstead measures of Volume, Difficulty, Effort, Maintains the values of the code index, and code structure. This proposed model achieves a result of 84.7% accuracy with a correct explanation model value of 0.83. Preliminary findings demonstrate the effectiveness of the new approach in improving the efficiency of student debugging and understanding, making it an important improvement over defect prediction tools.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-06-09
DOI
https://doi.org/10.5281/zenodo.20609398
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Explainable AI Framework for Bug Prediction and Pedagogical Feedback in Student Code

Shivam Singh1, Kushagra Mani Tripathi2, Priyanshi Srivastava3, Akhilesh Kumar Singh4
Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
article

An Explainable AI Framework for Bug Prediction and Pedagogical Feedback in Student Code

Shivam Singh1, Kushagra Mani Tripathi2, Priyanshi Srivastava3, Akhilesh Kumar Singh4
article en

Abstract

The traditional software bug prediction model is a black-box model which does not provide any clarity on the reason behind the predicted outcome. This proposed research work makes use of a state-of-the-art technology called Explainable Artificial Intelligence (XAI), which combines the machine learning model of bug predictions with the Self-Explainable Technique of SHapley Additive exPlanations (SHAP) to produce a model which helps in generating a clear and pedagogy-friendly result set for the student-written code. The model comprises a total of five different blocks. They are Code Acquisition, Radon library-based Code Characterization Metric set of 11 metrics, Bug Prediction model based on the XGBoost algorithm, Tree-based SHAP Technique-based Explanation model, and the result set generation model called the Pedagogy Feedback model. This proposed model helps to provide a real-time result explanation model incorporating all the necessary metrics like the Cyclomatic complexity, Halstead measures of Volume, Difficulty, Effort, Maintains the values of the code index, and code structure. This proposed model achieves a result of 84.7% accuracy with a correct explanation model value of 0.83. Preliminary findings demonstrate the effectiveness of the new approach in improving the efficiency of student debugging and understanding, making it an important improvement over defect prediction tools.

Zenodo (CERN European Organization for Nuclear Research)
Quality Education
Openalex Percentile: Top 3%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

An Explainable AI Framework for Bug Prediction and Pedagogical Feedback in Student Code — Shivam Singh1, Kushagra Mani Tripathi2, Priyanshi Srivastava3, Akhilesh Kumar Singh4 · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS