A Hybrid Weighted Probability Ensemble of Random Forest, XGBoost and Artificial Neural Network for Student Academic Failure Prediction
Main Article Content
Abstract
Identifying students who are likely to fail before failure becomes irreversible is a central concern of higher education institutions. Conventional academic monitoring is largely retrospective, and many data-driven predictors rely on a single learning algorithm, ignore predictor redundancy, and are judged on accuracy alone. This study develops and evaluates a Hybrid Weighted Ensemble (HWE) that fuses the failure probabilities of three heterogeneous learners Random Forest (RF), Extreme Gradient Boosting (XGBoost) and an Artificial Neural Network (ANN) for binary prediction of student academic failure, and benchmarks it against each constituent learner. An integrated educational dataset of 5,000 student records and 25 variables (demographic, admission, institutional, academic-history, assessment, attendance, study-behaviour and learning-management-system engagement variables) was used; the target was failure status (2,807 non-failure, 2,193 failure). Preprocessing comprised data inspection, median imputation of eight numerical variables with fewer than 6% missing values, categorical encoding, predictor–target separation and a stratified 80:20 train/test split (4,000/1,000). Predictors were screened with Random Forest feature importance, Recursive Feature Elimination (RFE) and Mutual Information (MI). The base learners’ failure probabilities were combined as PHWE = 0.40·PRF + 0.40·PXGB + 0.20·PANN with a 0.50 decision threshold, and all models were evaluated on the same held-out set using accuracy, precision, recall, F1-score, ROC-AUC and confusion matrices. Random Forest achieved 68.4% accuracy, 66.5% precision, 56.5% recall, 61.1% F1 and 75.4% ROC-AUC; XGBoost 67.4% accuracy and 74.1% ROC-AUC; and the ANN 63.1% accuracy and 67.3% ROC-AUC. The HWE obtained the best scores on every reported metric: 68.7% accuracy, 66.9% precision, 56.7% recall, 61.4% F1 and 75.8% ROC-AUC (confusion matrix: 438 true negatives, 123 false positives, 190 false negatives, 249 true positives), i.e. gains of +0.3 pp accuracy and +0.4 pp ROC-AUC over Random Forest. Previous GPA was the most influential predictor (RF importance 0.114), and the three selection methods converged on Previous GPA, Attendance Rate, Failed Courses, Entry Score and Study Hours; RFE retained ten predictors. Probability-level fusion of heterogeneous learners yields a small but consistent improvement over the strongest single model, with the largest practical value lying in the integrated, reproducible pipeline (preprocessing, multi-method feature screening, weighted fusion and multi-metric evaluation) rather than in a large accuracy gain. Recall (≈57%) indicates that a considerable share of at-risk students is still missed, so the framework should be used as decision support alongside professional academic judgement.