Dynamic Grade Prediction in Programming Education Using Time-Series XGBoost and SHAP Analysis
This study presents a time-series-based machine learning approach to predict final grades in a C programming course, leveraging temporal and behavioral features to support early intervention. We evaluated classification and regression models using three-class (Needs Improvement, Average, Excellent) and five-class (Fail, Poor, Average, Good, Excellent) grading schemes, addressing class imbalance with RandomOverSampler, SMOTE and ADASYN. Advanced sampling strategies, particularly SMOTE, enhanced minority class prediction in the three-class scheme, with XGBoost achieving superior performance. The five-class scheme offered finer granularity, revealing nuanced patterns in mid-tier performance through practice-related features, but faced challenges from increased class imbalance. Regression models, while suitable for continuous prediction, underperformed due to thresholding biases. SHAP analysis identified historical average score and difficulty-adjusted score as key predictors, providing actionable insights for educators. These findings highlight the trade-offs between broad and fine-grained prediction, with the three-class scheme supporting robust interventions and the five-class scheme enabling nuanced feedback. Future work includes incorporating qualitative features and hybrid approaches to improve fine-grained prediction and generalizability across educational contexts.
Authors
- Jing Qiu (ORCID: https://orcid.org/0000-0003-3264-1681)
- Chunmei Shi (ORCID: https://orcid.org/0000-0002-6155-6147)
Institutions
- Zhejiang A & F University (CN)
Publication Details
- Journal
- International Journal of Software Engineering and Knowledge Engineering
- Published
- 2025-09-04
- DOI
- https://doi.org/10.1142/s0218194025500548
- Primary Topic
- Online Learning and Analytics
- Type
- article
- Field-Weighted Citation Impact
- 0.00