Explainable artificial intelligence in LSTM transformer models for student performance analysis

Accurate prediction of student performance is essential for facilitating early interventions and enhancing academic results. However, interpretability is lacking in traditional machine learning approaches, which frequently struggle to capture implicit behavioural and learning dependencies within educational data. The study utilizes a publicly available dataset from the Kaggle repository, containing student records withfeatures related to academic, demographic, and behavioural attributes. The dataset was standardized using z-score normalization. Four deep learning models were developed based on their effectiveness in processing sequential data: LSTM, CNN, RNN, and a hybrid model combining LSTM and Transformer architectures (LSTM-Transformer). To ensure model transparency, we integrated Explainable Artificial Intelligence (XAI) techniques such as SHapley Additive exPlanations (SHAP) and Transformer attention mechanisms. The hybrid LSTM–Transformer model consistently achieved the best performance, with the lowest MSE and MAE and highest R2 across most runs. Statistical tests confirmed significant differences among models (Friedman p < 0.0001), with the hybrid outperforming CNN (p = 0.0286) and RNN (p < 0.0001). While LSTM and the hybrid showed comparable accuracy (p > 0.05). The hybrid model’s interpretability and performance make it a strong candidate for future real-world deployment; however, further work is needed to assess integration into educational systems, computational feasibility, and stakeholder acceptance. According to SHAP and attention studies, absenteeism, study time, and parental support were identified as the most influential predictors of performance, while gender and parents' level of education had little bearing. This research presents a balanced framework that advances both accuracy and interpretability in student performance modelling.

Institutions

Publication Details

Journal
Discover Computing
Published
2025-12-19
DOI
https://doi.org/10.1007/s10791-025-09814-9
Primary Topic
Online Learning and Analytics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Explainable artificial intelligence in LSTM transformer models for student performance analysis

Discover Computing
Online Learning and Analytics
article

Explainable artificial intelligence in LSTM transformer models for student performance analysis

article en

Abstract

Accurate prediction of student performance is essential for facilitating early interventions and enhancing academic results. However, interpretability is lacking in traditional machine learning approaches, which frequently struggle to capture implicit behavioural and learning dependencies within educational data. The study utilizes a publicly available dataset from the Kaggle repository, containing student records withfeatures related to academic, demographic, and behavioural attributes. The dataset was standardized using z-score normalization. Four deep learning models were developed based on their effectiveness in processing sequential data: LSTM, CNN, RNN, and a hybrid model combining LSTM and Transformer architectures (LSTM-Transformer). To ensure model transparency, we integrated Explainable Artificial Intelligence (XAI) techniques such as SHapley Additive exPlanations (SHAP) and Transformer attention mechanisms. The hybrid LSTM–Transformer model consistently achieved the best performance, with the lowest MSE and MAE and highest R2 across most runs. Statistical tests confirmed significant differences among models (Friedman p < 0.0001), with the hybrid outperforming CNN (p = 0.0286) and RNN (p < 0.0001). While LSTM and the hybrid showed comparable accuracy (p > 0.05). The hybrid model’s interpretability and performance make it a strong candidate for future real-world deployment; however, further work is needed to assess integration into educational systems, computational feasibility, and stakeholder acceptance. According to SHAP and attention studies, absenteeism, study time, and parental support were identified as the most influential predictors of performance, while gender and parents' level of education had little bearing. This research presents a balanced framework that advances both accuracy and interpretability in student performance modelling.

Discover ComputingVol. 28(1)
University of Education, Winneba (GH)
Quality Education
Openalex Percentile: Top 30%
Online Learning and Analytics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.