Explainable Student Failure Prediction: Convergent Multi-Method Predictor Identification and SHAP, LIME and ALE Interpretation of a Hybrid Ensemble

20 Nov

Authors: Babandi Usman, Abdullahi Hassan Birnin Kudu, Salim Ahmad, Zahraddeen Sufyan

Abstract: Machine-learning models that predict student failure are often “black boxes”: they flag a student as at risk without telling lecturers or advisers which factors drove the decision, which limits trust, validation and targeted intervention. Predictor relevance is also frequently established with a single feature-selection technique, and explainability is typically limited to one method (SHAP or LIME). This study identifies and ranks the most influential predictors of student academic failure using three complementary feature-selection techniques, and combines three post-hoc explainable-AI (XAI) methods SHAP, LIME and Accumulated Local Effects (ALE) to provide global, local and feature-effect explanations of a Hybrid Weighted Ensemble (Random Forest, XGBoost and ANN) for failure prediction. An educational dataset of 5,000 student records and 25 variables (2,807 non-failure and 2,193 failure cases) was prepared by median imputation (eight numerical variables, each <6% missing), categorical encoding and a stratified 80:20 split. Random Forest feature importance (embedded), Recursive Feature Elimination (wrapper) and Mutual Information (filter) were applied and their outputs compared. Random Forest, XGBoost, an ANN and their weighted probability ensemble (0.40/0.40/0.20; 0.50 threshold) were evaluated on 1,000 held-out students. SHAP (global and local attribution), LIME (local surrogate explanations) and ALE (global feature effects robust to correlated predictors) formed the explanation layer. Previous GPA was the most influential predictor in all analyses (Random Forest importance 0.114), followed by Attendance Rate, CA Score, Entry Score, Study Hours, Failed Courses, Assignment Score, LMS Logins and Materials Accessed. RFE retained ten predictors (these nine plus Age), and Mutual Information gave the strongest dependency with failure to Previous GPA, Failed Courses, Attendance Rate, Entry Score and Study Hours; five predictors were thus supported by all three methods. The models that were explained achieved 68.4% accuracy/75.4% ROC-AUC (Random Forest), 67.4%/74.1% (XGBoost), 63.1%/67.3% (ANN) and 68.7%/75.8% (Hybrid Weighted Ensemble). The SHAP summary ranked the predictors in the same order as the importance analysis; the LIME explanation decomposed an individual high-risk prediction into contributions from low Previous GPA, low attendance, failed courses, weak assessment and limited study effort; and ALE curves showed predicted failure risk falling with higher Previous GPA, attendance and study hours and rising with the number of failed courses. Failure risk in this dataset is associated with a combination of academic history, current assessment, attendance, study behaviour and digital engagement, and this finding is robust to the choice of feature-selection method. Using SHAP, LIME and ALE together answer three distinct questions which features matter, why a given student is flagged, and how predicted risk changes as a feature change and turns a prediction-only model into an interpretable decision-support tool. The explanations describe model behaviour and are not evidence of causation.

DOI: https://doi.org/10.5281/zenodo.24392466