AI-Powered Student Academic Performance Prediction: A Dual-Model Random Forest Approach for Risk Classification and Score Forecasting
The increasing availability of student data presents opportunities for educational institutions to identify learners at risk of poor academic outcomes; however, conventional monitoring practices remain largely manual, periodic, and reactive. This study developed and implemented an Artificial Intelligence (AI)-powered system for early academic risk identification and final examination score prediction. Using the UCI Student Performance Dataset, comprising 395 secondary school students and 32 demographic, family, academic, and lifestyle attributes, the study transformed the continuous final grade (G3) into three risk categories: Good, Monitor, and High Risk. A dual-output Random Forest architecture was subsequently developed, comprising a classifier for risk categorisation and a regressor for final score estimation. An 80:20 train-test split, involving 316 training and 79 testing records, was employed with a fixed random seed to support reproducibility. The classifier obtained 86.08% accuracy, a macro F1-score of 0.86, and 0.93 recall for High-Risk students, indicating strong potential for early intervention. The regression model produced a Mean Absolute Error of 1.11 points and an R² of 0.83. Feature analysis identified previous-period grades (G1 and G2) as the dominant predictors of final achievement. The models were integrated into a Flask RESTful API and browser-based educator dashboard providing real-time predictions, confidence estimates, and automated explanations. Overall, the findings demonstrate that the proposed dual-model architecture offers an accurate, interpretable, and deployable approach for proactive academic risk management.
Authors
- Taofik Abiodun Ahmed (ORCID: https://orcid.org/0009-0009-0315-8835)
- Aolat Olanike Giwa-Raheem (ORCID: https://orcid.org/0000-0003-3773-7578)
- Abdulbasit Olamide Hussein
Institutions
- Al-Hikmah University (NG)
- Kwara State University (NG)
Publication Details
- Journal
- FUDMA Journal of Sciences
- Published
- 2026-11-25
- DOI
- https://doi.org/10.33003/fjs-2026-1023-5393
- Primary Topic
- Online Learning and Analytics
- Type
- article
- Field-Weighted Citation Impact
- 0.00