IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0328634.html

Predicting student academic performance using TabPFN and SHAP: An interpretable machine learning approach

Author

Listed:
  • Qiang Yin

Abstract

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 R2 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.

Suggested Citation

  • Qiang Yin, 2026. "Predicting student academic performance using TabPFN and SHAP: An interpretable machine learning approach," PLOS ONE, Public Library of Science, vol. 21(9), pages 1-23, September.
  • Handle: RePEc:plo:pone00:0328634
    DOI: 10.1371/journal.pone.0328634
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0328634
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0328634&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0328634?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0328634. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.