Explainable educational assistant integrated in Moodle: automated semantic assessment and adaptive tutoring based on NLP and XAI
William Villegas-Ch, Rommel Gutierrez, Joselin García-Ortiz, Vanessa Guevara
Abstract
Current automated evaluation systems in virtual learning environments often operate as isolated modules with limited semantic understanding, no explanatory capabilities, and poor integration with adaptive tutoring mechanisms. These limitations hinder their ability to provide actionable and interpretable feedback to students within real-world educational platforms, such as Moodle. In response to this gap, we developed and validated an explainable natural language processing (NLP)-based educational assistant that integrates semantic analysis, justification of evaluations, and adaptive tutoring into a unified, modular architecture embedded in Moodle. The system utilizes transformer-based models (BERT and CodeBERT) to analyze academic submissions, generates traceable feedback using explainable AI techniques (LIME and SHAP), and activates personalized tutoring actions based on a dynamic adaptive index (Ai). Experimental validation was conducted with 90 students, using real academic submissions and rubrics. Results show a mean absolute error of 0.34 and a Cohen’s Kappa of 0.78 in semantic evaluation. The system achieved a semantic explanation coverage index (Ce) of 0.85, with 91% of tutoring activations deemed appropriate for explanation. The mean system response time was 2.78 s across all modules, with 93.4% of actions executed within predefined technical thresholds. The global integrity index $$\Omega $$ , synthesizing performance across all modules, reached 0.806. This work demonstrates that it is technically feasible to implement a fully explainable, adaptive, and efficient educational assistant for real-time operation within institutional Learning Management Systems (LMS). The proposed architecture advances the integration of NLP and XAI in educational automation by combining semantic precision, traceability, and adaptive responsiveness in a single validated system.