
Predicting and understanding student engagement in online learning environments remains a critical challenge, particularly in African contexts where low-resource infrastructure limits the depth of available data. This paper introduces AfriLearn Lens, a machine learning pipeline that applies XGBoost classification and SHAP-based explainability to predict three-tier student engagement levels (Low, Medium, High) from Virtual Learning Environment (VLE) behavioural signals, using the Open University Learning Analytics Dataset (OULAD). The model achieves 80.78% accuracy on a held-out test set of 6,519 students. SHAP analysis reveals that temporal behavioural features — specifically active_days and unique_resources — are substantially stronger predictors of engagement than demographic variables. All code and results are available at https://github.com/Olameta/afrilearn-lens
learning analytics, educational data mining, SHAP, Africa, Machine learning, student engagement, Supervised Machine Learning, XGBoost, explainable AI, OULAD
learning analytics, educational data mining, SHAP, Africa, Machine learning, student engagement, Supervised Machine Learning, XGBoost, explainable AI, OULAD
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 0 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
