This study develops and evaluates a machine learning early warning system for mathematics performance that does not rely on early formative scores, and measures the predictive performance lost by omitting them. The study employs data on 395 students in a mathematics course at two secondary schools, with 30 demographic, family, social, and study-behavior predictors; a student is at risk when the final grade is below 10 on a 0–20 scale (32.9%). Five algorithms (elastic net logistic regression, decision tree, random forest, gradient boosting, and radial support vector machine) are compared across four predictor scenarios using 10-fold cross-validation repeated three times, with the threshold set to a minimum sensitivity of 0.80. The results show that, without first- and second-period grades, the selected model reaches a test AUC of 0.678 (95% CI 0.569–0.787), with a sensitivity of 0.872 and a specificity of 0.228. Adding the first-period grade raises the test AUC to 0.959, and adding both grades raises it to 0.990 (DeLong test, p < 0.001). The findings of this study suggest that, without early scores, the system discriminates at-risk students only weakly to moderately, and most of its signal comes from prior failures and absences.
Copyrights © 2026