Generalisable and Actionable Student Risk Prediction: An Integrated Framework Combining Cross-Course Transfer, Explanation Stability, and Counterfactual Intervention Archetypes

Authors

DOI:

https://doi.org/10.21015/vtse.v14i4.2443

Abstract

Early-warning models for at-risk students are usually built and tested within one course and explained through global feature importance. We ask whether a small course can borrow data from a larger course at the same school, whether the model's risk factors keep their order in other settings, and whether a prediction can become a feasible action for one student. We use the UCI Student Performance data (Portuguese as source, Mathematics as target, no period grades) with xAPI-Edu (Kalboard 360, n=480) as an out-of-context probe. Because 370 of the 395 Mathematics students also appear in the Portuguese file, each test fold's students are removed from the source. Under 5×10 repeated cross-validation, a gated warm-start CatBoost model reaches an RMSE of fGateRmse against fTORmse for a target-only model, a fGateRel% reduction (Bonferroni-corrected p=fPTOGate); pooling, warm-start and CORAL perform alike, and TrAdaBoost.R2 does not help. With a source of 275 students who take no Mathematics, only CORAL (dCoralRel%) and pooling keep a significant gain, and leaving the overlapping students in the source inflates the gain to uGateRel%. SHAP rank stability over eight shared risk concepts is moderate between the UCI courses (ρ=0.595, bootstrap 95% CI [ciPorMathLo, ciPorMathHi]) but weak or negative against xAPI (ρ=−0.119 and 0.238), where the transferred classifier performs at chance (AUC xAuc, 95% CI [xAucLo, xAucHi]). Monotonically constrained DiCE counterfactuals exist for about four in five at-risk students and are dominated by one recipe, fewer absences and less going out; the students without one all have prior failures. The workflow is offered as an auditable case study on a single benchmark, and its generality remains to be tested.

References

[1] R. S. Baker and K. Yacef, “The state of educational data mining in 2009: A review and future visions,” Journal of Educational Data Mining, vol. 1, no. 1, pp. 3–17, 2009, doi: 10.5281/zenodo.3554657.

[2] C. Romero and S. Ventura, “Educational data mining and learning analytics: An updated survey,” WIREs Data Mining and Knowledge Discovery, vol. 10, no. 3, p. e1355, 2020, doi: 10.1002/widm.1355. DOI: https://doi.org/10.1002/widm.1355

[3] K. E. Arnold and M. D. Pistilli, “Course signals at Purdue: Using learning analytics to increase student success,” in Proc. 2nd Int. Conf. Learning Analytics and Knowledge, 2012, pp. 267–270, doi: 10.1145/2330601.2330666. DOI: https://doi.org/10.1145/2330601.2330666

[4] S. M. Jayaprakash, E. W. Moody, E. J. M. Lauría, J. R. Regan, and J. D. Baron, “Early alert of academically at-risk students: An open source analytics initiative,” Journal of Learning Analytics, vol. 1, no. 1, pp. 6–47, 2014, doi: 10.18608/jla.2014.11.3. DOI: https://doi.org/10.18608/jla.2014.11.3

[5] L. P. Macfadyen and S. Dawson, “Mining LMS data to develop an ‘early warning system’ for educators: A proof of concept,” Computers & Education, vol. 54, no. 2, pp. 588–599, 2010, doi: 10.1016/j.compedu.2009.09.008. DOI: https://doi.org/10.1016/j.compedu.2009.09.008

[6] H. Khosravi, S. B. Shum, G. Chen, C. Conati, Y.-S. Tsai, J. Kay, S. Knight, R. Martinez-Maldonado, S. Sadiq, and D. Gašević, “Explainable artificial intelligence in education,” Computers and Education: Artificial Intelligence, vol. 3, p. 100074, 2022, doi: 10.1016/j.caeai.2022.100074. DOI: https://doi.org/10.1016/j.caeai.2022.100074

[7] S. Wachter, B. Mittelstadt, and C. Russell, “Counterfactual explanations without opening the black box: Automated decisions and the GDPR,” Harvard Journal of Law & Technology, vol. 31, no. 2, pp. 841–887, 2018, doi: 10.48550/arXiv.1711.00399. DOI: https://doi.org/10.2139/ssrn.3063289

[8] S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, p. 100804, 2023, doi: 10.1016/j.patter.2023.100804. DOI: https://doi.org/10.1016/j.patter.2023.100804

[9] D. Alvarez-Melis and T. S. Jaakkola, “On the robustness of interpretability methods,” in Proc. ICML Workshop on Human Interpretability in Machine Learning (WHI), 2018, doi: 10.48550/arXiv.1806.08049.

[10] S. Gunasekara and M. Saarela, “Explainable AI in education: Techniques and qualitative assessment,” Applied Sciences, vol. 15, no. 3, p. 1239, 2025, doi: 10.3390/app15031239. DOI: https://doi.org/10.3390/app15031239

[11] M. Çavuş and J. Kuzilek, “An effect analysis of the balancing techniques on the counterfactual explanations of student success prediction models,” Journal of Measurement and Evaluation in Education and Psychology, 2024, doi: 10.21031/epod.1526704. DOI: https://doi.org/10.21031/epod.1526704

[12] P. Buñay-Guisñan, J. A. Lara, and C. Romero, “Counterfactual explanations in education: A systematic review,” WIREs Data Mining and Knowledge Discovery, vol. 16, no. 1, p. e70060, 2026, doi: 10.1002/widm.70060. DOI: https://doi.org/10.1002/widm.70060

[13] P. Cortez and A. M. G. Silva, “Using data mining to predict secondary school student performance,” in Proc. 5th Annual Future Business Technology Conference, 2008, pp. 5–12. [Online]. Available: https://archive.ics.uci.edu/dataset/320/student+performance.

[14] P. Cortez, “Student performance,” 2008. [Dataset]. doi: 10.24432/C5TG7T.

[15] M. R. Apriyadi, Ermatita, and D. P. Rini, “Hyperparameter optimization of support vector regression algorithm using metaheuristic algorithm for student performance prediction,” International Journal of Advanced Computer Science and Applications, vol. 14, no. 2, 2023, doi: 10.14569/IJACSA.2023.0140218. DOI: https://doi.org/10.14569/IJACSA.2023.0140218

[16] R. Fang, T. Zhou, B. Yu, Z. Li, L. Ma, T. Luo, Y. Zhang, and X. Liu, “Prediction model of middle school student performance based on MBSO and MDBO-BP-Adaboost method,” Frontiers in Big Data, vol. 7, p. 1518939, 2025, doi: 10.3389/fdata.2024.1518939. DOI: https://doi.org/10.3389/fdata.2024.1518939

[17] V. Balachandar and K. Venkatesh, “A multi-dimensional student performance prediction model (MSPP): An advanced framework for accurate academic classification and analysis,” MethodsX, vol. 14, p. 103148, 2025, doi: 10.1016/j.mex.2024.103148. DOI: https://doi.org/10.1016/j.mex.2024.103148

[18] B. Alnasyan, M. Basheri, M. Alassafi, and K. Alnasyan, “Kanformer: An attention-enhanced deep learning model for predicting student performance in virtual learning environments,” Social Network Analysis and Mining, vol. 15, no. 1, 2025, doi: 10.1007/s13278-025-01446-7. DOI: https://doi.org/10.1007/s13278-025-01446-7

[19] J. A. Lagares Rodríguez, N. Díaz-Díaz, and C. D. Barranco González, “A comparative analysis of student performance prediction: Evaluating optimized deep learning ensembles against semi-supervised feature selection-based models,” Applied Sciences, vol. 15, no. 9, p. 4818, 2025, doi: 10.3390/app15094818. DOI: https://doi.org/10.3390/app15094818

[20] S. Boujmiraz, H. Darhmaoui, and A. Drissi el Maliani, “Predicting student performance: A comprehensive review of machine learning, deep learning, and explainable AI approaches,” Computers and Education: Artificial Intelligence, vol. 10, p. 100548, 2026, doi: 10.1016/j.caeai.2026.100548. DOI: https://doi.org/10.1016/j.caeai.2026.100548

[21] R. Guevara-Reyes, I. Ortiz-Garcés, R. Andrade, F. Cox-Riquetti, and W. Villegas-Ch, “Machine learning models for academic performance prediction: Interpretability and application in educational decision-making,” Frontiers in Education, vol. 10, p. 1632315, 2025, doi: 10.3389/feduc.2025.1632315. DOI: https://doi.org/10.3389/feduc.2025.1632315

[22] L. Breiman, “Random forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, 2001, doi: 10.1023/A:1010933404324. DOI: https://doi.org/10.1023/A:1010933404324

[23] J. H. Friedman, “Greedy function approximation: A gradient boosting machine,” The Annals of Statistics, vol. 29, no. 5, pp. 1189–1232, 2001, doi: 10.1214/aos/1013203451. DOI: https://doi.org/10.1214/aos/1013203451

[24] S. O. Arik and T. Pfister, “TabNet: Attentive interpretable tabular learning,” in Proc. AAAI Conf. Artificial Intelligence, vol. 35, 2021, pp. 6679–6687, doi: 10.1609/aaai.v35i8.16826. DOI: https://doi.org/10.1609/aaai.v35i8.16826

[25] Y. Gorishniy, I. Rubachev, V. Khrulkov, and A. Babenko, “Revisiting deep learning models for tabular data,” in Advances in Neural Information Processing Systems, vol. 34, 2021, pp. 18932–18943, doi: 10.48550/arXiv.2106.11959.

[26] L. Grinsztajn, E. Oyallon, and G. Varoquaux, “Why do tree-based models still outperform deep learning on typical tabular data?,” in Advances in Neural Information Processing Systems, vol. 35, 2022, pp. 507–520, doi: 10.52202/068431-0037.

[27] V. Borisov, T. Leemann, K. Seßler, J. Haug, M. Pawelczyk, and G. Kasneci, “Deep neural networks and tabular data: A survey,” IEEE Transactions on Neural Networks and Learning Systems, vol. 35, no. 6, pp. 7499–7519, 2024, doi: 10.1109/TNNLS.2022.3229161. DOI: https://doi.org/10.1109/TNNLS.2022.3229161

[28] J. Luo and S. Xu, “NCART: Neural classification and regression tree for tabular data,” arXiv:2307.12198, 2023, doi: 10.48550/arXiv.2307.12198. DOI: https://doi.org/10.1016/j.patcog.2024.110578

[29] P. S. Rana, K. Kalpana, C. Chahat, S. K. Modi, A. L. Yadav, and S. Singla, “Comparative analysis of tree-based models and deep learning architectures for tabular data: Performance disparities and underlying factors,” in Proc. 2023 Int. Conf. Advanced Computing & Communication Technologies (ICACCTech), 2023, pp. 224–231, doi: 10.1109/ICACCTECH61146.2023.00044. DOI: https://doi.org/10.1109/ICACCTech61146.2023.00044

[30] A. Lazar, P. Pokhrel, and S. Das, “Beyond accuracy: A comprehensive comparative study of gradient boosting versus tabular deep learning and explainability techniques for mixed-type tabular data models using SHAP and LIME,” International Journal on Artificial Intelligence Tools, vol. 35, no. 2, p. 2640003, 2026, doi: 10.1142/S0218213026400038. DOI: https://doi.org/10.1142/S0218213026400038

[31] D. H. Wolpert, “Stacked generalization,” Neural Networks, vol. 5, no. 2, pp. 241–259, 1992, doi: 10.1016/S0893-6080(05)80023-1. DOI: https://doi.org/10.1016/S0893-6080(05)80023-1

[32] I. D. Mienye and Y. Sun, “A survey of ensemble learning: Concepts, algorithms, applications, and prospects,” IEEE Access, vol. 10, pp. 99129–99149, 2022, doi: 10.1109/ACCESS.2022.3207287. DOI: https://doi.org/10.1109/ACCESS.2022.3207287

[33] S. Ben-David, J. Blitzer, K. Crammer, A. Kulesza, F. Pereira, and J. W. Vaughan, “A theory of learning from different domains,” Machine Learning, vol. 79, no. 1–2, pp. 151–175, 2010, doi: 10.1007/s10994-009-5152-4. DOI: https://doi.org/10.1007/s10994-009-5152-4

[34] K. Weiss, T. M. Khoshgoftaar, and D. D. Wang, “A survey of transfer learning,” Journal of Big Data, vol. 3, no. 1, p. 9, 2016, doi: 10.1186/s40537-016-0043-6. DOI: https://doi.org/10.1186/s40537-016-0043-6

[35] M. Tsiakmaki, G. Kostopoulos, S. Kotsiantis, and O. Ragos, “Transfer learning from deep neural networks for predicting student performance,” Applied Sciences, vol. 10, no. 6, p. 2145, 2020, doi: 10.3390/app10062145. DOI: https://doi.org/10.3390/app10062145

[36] J. López-Zambrano, J. A. Lara, and C. Romero, “Towards portability of models for predicting students’ final performance in university courses starting from Moodle logs,” Applied Sciences, vol. 10, no. 1, p. 354, 2020, doi: 10.3390/app10010354. DOI: https://doi.org/10.3390/app10010354

[37] D. Pardoe and P. Stone, “Boosting for regression transfer,” in Proc. 27th Int. Conf. Machine Learning (ICML), 2010, pp. 863–870.

[38] B. Sun, J. Feng, and K. Saenko, “Return of frustratingly easy domain adaptation,” in Proc. AAAI Conf. Artificial Intelligence, vol. 30, 2016, doi: 10.1609/aaai.v30i1.10306. DOI: https://doi.org/10.1609/aaai.v30i1.10306

[39] Y. Shao, S. Wang, and W. Zhao, “A causality-aware perspective on domain generalization via domain intervention,” Electronics, vol. 13, no. 10, p. 1891, 2024, doi: 10.3390/electronics13101891. DOI: https://doi.org/10.3390/electronics13101891

[40] S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems, vol. 30, 2017, pp. 4766–4777, doi: 10.48550/arXiv.1705.07874.

[41] S. M. Lundberg, G. Erion, H. Chen, A. DeGrave, J. M. Prutkin, B. Nair, R. Katz, J. Himmelfarb, N. Bansal, and S.-I. Lee, “From local explanations to global understanding with explainable AI for trees,” Nature Machine Intelligence, vol. 2, no. 1, pp. 56–67, 2020, doi: 10.1038/s42256-019-0138-9. DOI: https://doi.org/10.1038/s42256-019-0138-9

[42] H. O’Brien Quinn, M. Sedky, J. Francis, and M. Streeton, “A literature review of explainable tabular data,” Preprints.org, 2024, doi: 10.20944/preprints202408.0556.v1. DOI: https://doi.org/10.20944/preprints202408.0556.v1

[43] G. Raftopoulos, G. Davrazos, and S. Kotsiantis, “Fair and transparent student admission prediction using machine learning models,” Algorithms, vol. 17, no. 12, p. 572, 2024, doi: 10.3390/a17120572. DOI: https://doi.org/10.3390/a17120572

[44] R. K. Mothilal, A. Sharma, and C. Tan, “Explaining machine learning classifiers through diverse counterfactual explanations,” in Proc. 2020 Conf. Fairness, Accountability, and Transparency (FAT)*, 2020, pp. 607–617, doi: 10.1145/3351095.3372850. DOI: https://doi.org/10.1145/3351095.3372850

[45] S. Verma, V. Boonsanong, M. Hoang, K. Hines, J. Dickerson, and C. Shah, “Counterfactual explanations and algorithmic recourses for machine learning: A review,” ACM Computing Surveys, vol. 56, no. 12, pp. 1–42, 2024, doi: 10.1145/3677119. DOI: https://doi.org/10.1145/3677119

[46] R. Guidotti, “Counterfactual explanations and how to find them: Literature review and benchmarking,” Data Mining and Knowledge Discovery, vol. 38, no. 5, pp. 2770–2824, 2024, doi: 10.1007/s10618-022-00831-6. DOI: https://doi.org/10.1007/s10618-022-00831-6

[47] T. T. Y. Hsu, B. Flanagan, and O. H. T. Lu, “Methods of balancing model explainability and performance in identifying at-risk students,” in Proc. Int. Conf. Computers in Education, 2024, doi: 10.58459/icce.2024.4972. DOI: https://doi.org/10.58459/icce.2024.4972

[48] H. Liu, M. Mao, and X. Li, “Model interpretability on private-safe oriented student dropout prediction,” PLOS ONE, vol. 20, no. 3, p. e0317726, 2025, doi: 10.1371/journal.pone.0317726. DOI: https://doi.org/10.1371/journal.pone.0317726

[49] Y. Lu, S. Yeom, J. Maktoubian, M. M. Rahman, and S.-H. Kim, “Improve student risk prediction with clustering techniques: A systematic review in education data mining,” Education Sciences, vol. 15, no. 12, p. 1695, 2025, doi: 10.3390/educsci15121695. DOI: https://doi.org/10.3390/educsci15121695

[50] N. T. Mai, W. Cao, and W. Liu, “Interpretable knowledge tracing via transformer-bayesian hybrid networks: Learning temporal dependencies and causal structures in educational data,” Applied Sciences, vol. 15, no. 17, p. 9605, 2025, doi: 10.3390/app15179605. DOI: https://doi.org/10.3390/app15179605

[51] M. Hameed, N. Akhtar, and M. S. Missen, “Role based multi-agent system for E-Learning (MASeL),” International Journal of Advanced Computer Science and Applications, vol. 7, no. 3, pp. 194–200, 2016, doi: 10.14569/IJACSA.2016.070327. DOI: https://doi.org/10.14569/IJACSA.2016.070327

[52] M. Nauman, N. Akhtar, A. Alhudhaif, and A. Alothaim, “Guaranteeing correctness of machine learning based decision making at higher educational institutions,” IEEE Access, vol. 9, pp. 92864–92880, 2021, doi: 10.1109/ACCESS.2021.3088901. DOI: https://doi.org/10.1109/ACCESS.2021.3088901

[53] J. Romano, J. D. Kromrey, J. Coraggio, and J. Skowronek, “Appropriate statistics for ordinal level data: Should we really be using t-test and Cohen’s d for evaluating group differences on the NSSE and other surveys?,” in Annual Meeting of the Florida Association of Institutional Research, 2006.

[54] C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger, “On calibration of modern neural networks,” in Proc. 34th Int. Conf. Machine Learning (ICML), 2017, pp. 1321–1330, doi: 10.48550/arXiv.1706.04599.

[55] M. Hardt, E. Price, and N. Srebro, “Equality of opportunity in supervised learning,” in Advances in Neural Information Processing Systems (NeurIPS), 2016, pp. 3323–3331, doi: 10.48550/arXiv.1610.02413.

[56] G. Pleiss, M. Raghavan, F. Wu, J. Kleinberg, and K. Q. Weinberger, “On fairness and calibration,” in Advances in Neural Information Processing Systems (NeurIPS), 2017, pp. 5680–5689, doi: 10.48550/arXiv.1709.02012.

[57] N. Mehrabi, F. Morstatter, N. Saxena, K. Lerman, and A. Galstyan, “A survey on bias and fairness in machine learning,” ACM Computing Surveys, vol. 54, no. 6, pp. 1–35, 2021, doi: 10.1145/3457607. DOI: https://doi.org/10.1145/3457607

Downloads

Published

2026-10-23

How to Cite

Karim, M., Hameed, M., Khan, N., Fida, A., Nauman, M., & Jalal, S. (2026). Generalisable and Actionable Student Risk Prediction: An Integrated Framework Combining Cross-Course Transfer, Explanation Stability, and Counterfactual Intervention Archetypes. VFAST Transactions on Software Engineering, 14(4), 41–61. https://doi.org/10.21015/vtse.v14i4.2443