Predicting student academic performance using TabPFN and SHAP: An interpretable machine learning approach
Predicting student academic performance is of significant importance for enabling timely educational interventions and improving educational outcomes in secondary education. However, existing predictive models in educational data mining often face the dual challenges of limited interpretability and suboptimal performance on small to medium-sized datasets. This study introduces the Prior-Data Fitted Network (TabPFN) combined with SHapley Additive exPlanations (SHAP) to construct an interpretable machine learning framework for predicting student achievement. Utilizing a publicly available dataset of 4,000 Spanish high school students (SAP-4000), we employed 10-fold cross-validation to train and compare eight machine learning models. The results demonstrate that TabPFN achieves superior predictive performance, with an RMSE of 4.8454, an R 2 of 0.9216, and an MAE of 3.7950, outperforming traditional models. Comparative analyses across varying data scales indicate that TabPFN maintains high accuracy even when sample sizes are reduced to 500 samples, achieving performance comparable to or better than what traditional models attained at 3,500 samples, exhibiting stronger robustness than commonly used ensemble learning methods such as XGBoost. SHAP analysis reveals that learning behavior and study habit features—specifically weekly study hours, attendance rate, and tutoring status—play a decisive role in predicting academic performance. The proposed framework combines strong predictive performance with interpretability, overcoming the “black-box” limitation prevalent in existing algorithms. It is well-suited for small to medium-scale data modeling tasks in the educational domain, providing technical support for personalized instruction and intervention, while also offering methodological references for future research. An additional case study on a distinct student performance dataset further confirms the model’s robustness and generalizability across different educational prediction tasks.
Authors
- Qiang Yin (ORCID: https://orcid.org/0000-0001-8212-8347)
Institutions
- Shandong Normal University (CN)
Publication Details
- Journal
- PLoS ONE
- Published
- 2026-09-24
- DOI
- https://doi.org/10.1371/journal.pone.0328634
- Primary Topic
- Online Learning and Analytics
- Type
- article
- Field-Weighted Citation Impact
- 0.00