Comparison of Random Forest and XGBoost Algorithms for Predicting On-Time Graduation of Scholarship Recipients at STMIK PN

Authors

  • Yulianus Zai Universitas Pembangunan Panca Budi
  • Andysah Putera Utama Siahaan Universitas Pembangunan Panca Budi

Keywords:

Random Forest, XGBoost, Graduation Prediction, Scholarship Recipients, Early Warning System, SHAP, SDG 4.

Abstract

On-time graduation of scholarship recipients is a critical indicator for evaluating the efficacy of higher education financial aid and achieving the Sustainable Development Goals (SDG 4: Quality Education). This study compares the predictive performance of Random Forest and Extreme Gradient Boosting (XGBoost) for an early warning system based on institutional academic records at the end of the sixth semester. The training dataset comprises 71 scholarship recipients (KIP-Kuliah and Foundation Scholarship) from the 2019–2022 cohorts at STMIK PN, of whom 50 graduated on time (70.4%) and 21 did not (29.6%). Nine academic features measured up to the end of the sixth semester were used: semester GPAs (Semesters 1 to 6), cumulative GPA, credits passed, and the number of courses graded D/E. Class imbalance was handled with SMOTE applied to the training folds, and performance was evaluated using Repeated Stratified 5-Fold Cross-Validation (10 repetitions). Random Forest achieved an Accuracy of 85.46%, Precision of 77.35%, F1-Score of 75.71%, and AUC-ROC of 0.9405, whereas XGBoost attained the highest Recall (80.30%) with an F1-Score of 74.51% and AUC-ROC of 0.9041. The corrected resampled t-test showed no statistically significant differences between the models, including against the Decision Tree baseline (p > 0.05). Tree SHAP analysis revealed that the sixth-semester cumulative GPA is the dominant predictor, followed by the GPAs of Semesters 3 to 5. Deployment on 21 active scholarship recipients from the 2023 cohort flagged 1 high-risk student (98.3% risk probability on XGBoost and 88.9% on Random Forest), enabling academic intervention before the final academic year.

References

M. Chankseliani and T. McCowan, “Higher education and the Sustainable Development Goals,” High. Educ., vol. 81, no. 1, pp. 1–8, 2021, doi: 10.1007/s10734-020-00652-w.

E. Herbaut and K. Geven, “What Works to Reduce Inequalities in Higher Education? A Systematic Review of the (Quasi-) Experimental Literature on Outreach and Financial Aid,” Res. Soc. Stratif. Mobil., vol. 65, no. 100442, 2020, doi: 10.1016/j.rssm.2019.100442.

T. Mulyaningsih, S. Dong, R. Miranti, A. Daly, and Y. Purwaningsih, “Targeted scholarship for higher education and academic performance: Evidence from Indonesia,” Int. J. Educ. Dev., vol. 88, no. 102510, 2022, doi: 10.1016/j.ijedudev.2021.102510.

P. T. de F. e Silva and L. M. B. Sampaio, “Does student aid make a degree more likely? Evidence of the permanence scholarship program from survival models,” Int. J. Educ. Dev., vol. 96, p. 102697, 2023, doi: 10.1016/j.ijedudev.2022.102697.

S. Romero and X. Liao, “Statistical and machine learning models for predicting university dropout and scholarship impact,” PLoS One, vol. 20, no. 6, pp. 1–19, 2025, doi: 10.1371/journal.pone.0325047.

S. Imron, A. Faizah, and Sugianto, “Prediksi Kelulusan Mahasiswa Menggunakan Algoritma XGBoost,” SKANIKA Sist. Komput. dan Tek. Inform., vol. 9, no. 1, pp. 76–86, 2026, doi: 10.36080/skanika.v9i1.3647.

J. M. Aiken, R. De Bin, M. Hjorth-Jensen, and M. D. Caballero, “Predicting time to graduation at a large enrollment American university,” PLoS One, vol. 15, no. 11, pp. 1–28, 2020, doi: 10.1371/journal.pone.0242334.

S. L. M. Sitio, Darmawati, and Y. Samudra, “Comparative analysis of bagging and boosting models in ensemble learning for graduation prediction,” JITK (Jurnal Ilmu Pengetah. dan Teknol. Komputer), vol. 11, no. 3, pp. 979–986, 2026, doi: 10.33480/jitk.v11i3.7579.

I. Nirmala, H. Wijayanto, and K. A. Notodiputro, “Prediction of Undergraduate Student’s Study Completion Status Using MissForest Imputation in Random Forest and XGBoost Models,” ComTech Comput. Math. Eng. Appl., vol. 13, no. 1, pp. 53–62, 2022, doi: 10.21512/comtech.v13i1.7388.

F. E. Arévalo-Cordovilla and M. Peña, “Evaluating ensemble models for fair and interpretable prediction in higher education using multimodal data,” Sci. Rep., vol. 15, pp. 1–14, 2025, doi: 10.1038/s41598-025-15388-9.

A. J. Fernández-García, J. C. Preciado, F. Melchor, R. Rodriguez-Echeverria, J. M. Conejero, and F. Sánchez-Figueroa, “A Real-Life Machine Learning Experience for Predicting University Dropout at Different Stages Using Academic Data,” IEEE Access, vol. 9, pp. 133076–133090, 2021, doi: 10.1109/ACCESS.2021.3115851.

B. Daniawan, Suwitno, A. Wijaya, A. R. K. Maranto, and Junaedi, “Machine Learning Based Early Warning Model for Delayed Student Graduation: A Sixth-Semester Prediction Approach,” JUITA J. Inform., vol. 14, no. 2, pp. 394–402, 2026, doi: 10.30595/juita.v14i2.30186.

N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: Synthetic minority over-sampling technique,” J. Artif. Intell. Res., vol. 16, pp. 321–357, 2002, doi: 10.1613/jair.953.

S. M. Lundberg et al., “From Local Explanations to Global Understanding with explainable AI for trees,” Nat. Mach. Intell., vol. 2, no. 1, pp. 1–72, 2020, doi: 10.1038/s42256-019-0138-9.

L. Breiman, “Random forests,” Mach. Learn., vol. 45, no. 1, pp. 5–32, 2001, doi: 10.1023/A:1010933404324.

T. Chen and C. Guestrin, “XGBoost: A Scalable Tree Boosting System,” Proc. 22nd ACM SIGKDD Int. Conf. Knowl. Discov. Data Min., pp. 785–794, 2016, doi: 10.1145/2939672.2939785.

V. Flores, S. Heras, and V. Julian, “Comparison of Predictive Models with Balanced Classes Using the SMOTE Method for the Forecast of Student Dropout in Higher Education,” Electronics, vol. 11, no. 3, p. 457, 2022, doi: 10.3390/electronics11030457.

H. Sahlaoui, A. E. L. A. Alaoui, A. Nayyar, S. Agoujil, and M. M. Jaber, “Predicting and Interpreting Student Performance Using Ensemble Models and Shapley Additive Explanations,” IEEE Access, vol. 9, pp. 152688–152703, 2021, doi: 10.1109/ACCESS.2021.3124270.

C. Nadeau and Y. Bengio, “Inference for the Generalization Error,” Mach. Learn., vol. 52, no. 3, pp. 307–313, 2020, doi: 10.1023/A:1024068626366.

T. Saito and M. Rehmsmeier, “The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets,” PLoS One, vol. 10, no. 3, p. e0118432, 2015, doi: 10.1371/journal.pone.0118432.

Downloads

Published

2025-10-27