Explainable artificial intelligence in LSTM transformer models for student performance analysis
Elijah Ofori, Delali Kwasi Dake
University of Education, Winneba
Key points
From the paper's conclusion- To ensure model transparency, we integrated Explainable Artificial Intelligence (XAI) techniques such as SHapley Additive exPlanations (SHAP) and Transformer attention mechanisms.
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 R 2 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Predicting student performance: A comprehensive review of machine learning, deep learning, and explainable AI approachesComputers and Education Artificial Intelligence · 2026
- Artificial intelligence in student management systems to enhance academic performance monitoring and interventionScientific Reports · 2025
- Analysis of Student Performance Prediction Using the Bi‐LSTM Technique Focused on the Indian Higher Education Context Using a Synthetic DatasetEngineering Reports · 2026
- Explainable AI in educational data mining: LightGBM and SHAP for enhancing learner performance prediction.Frontiers in artificial intelligence · 2026
- Early Prediction of Academic Outcomes in Virtual Learning Environments via a Hybrid Transformer–XGBoost ModelDigital · 2026
- Multimodal Performance Prediction in Online Learning Using Bi-LSTM and Mixture of Experts.Sensors (Basel, Switzerland) · 2026