Received: 28 April 2026; Revised: 01 June 2026; Accepted: 08 June 2026; Published Online: 10 June 2026.
J. Vis. Artif. Intell., 2026, 1(1), 26101 | Volume 1 Issue 1 (June 2026) | DOI: https://doi.org/10.64189/vai.26101
© The Author(s) 2026
This article is licensed under Creative Commons Attribution NonCommercial 4.0 International (CC-BY-NC 4.0)
Building a Knowledge Verification System Using AI
Gulmira Baenova,
1,*
Bakhtiyar Zharlykassov,
2,
Kalybek Maulenov
2,
and Aierke Syzdykova
1,
1
Department of Computer and Software Engineering, L.N. Gumilyov Eurasian National University, Astana, 010000, Kazakhstan
2
Department of Software, Akhmet Baitursynuly Kostanay Regional University, Kostanay, 110000, Kazakhstan
*Email: gulmmira@yandex.ru (Gulmira Baenova)
Abstract
A persistent problem in database education is that conventional learning management systems and simple SQL
autograders usually verify whether an answer is correct but do not diagnose the underlying subtopic-level
misconception or provide transparent remediation guidance. This paper presents an intelligent SQL learning
support system that integrates an educational ER schema, validator-based error typing, L1L6 markup,
explainable CART diagnostics, and a pilot multidimensional item-response modeling layer. The anonymized
pilot dataset contained 60 students, 30 SQL/database tasks, and 2,105 labeled attempts. Expert annotation
showed high agreement (Cohen's kappa = 0.833). Learning outcomes improved in both groups, but compared
with the control group, the experimental group using adaptive AI feedback improved more strongly: +17.80
percentage points versus +3.79 percentage points. The gain difference was 14.01 percentage points (Welch
t(47.30) = 13.86, p < 0.001, 95% CI [11.98; 16.05], Hedges g = 3.53). For error classification, CART achieved an
accuracy of 0.779, macro-F1 = 0.689, weighted-F1 = 0.793, and log-loss = 0.618 on the held-out test set (n =
317). Random forest and gradient boosting produced higher predictive scores, but CART was retained as the
primary diagnostic model because of its interpretability. The MIRT layer was calibrated on a 60 x 30 item-
response matrix and a six-dimensional Q-matrix. The results support the feasibility of explainable SQL
diagnostics while indicating that broader cross-institutional validation is required before generalization.
Keywords: SQL education; Automated assessment; Explainable feedback; CART; Knowledge tracing; Item response
theory; Multidimensional item response theory; Adaptive learning.
1. Introduction
Artificial intelligence (AI) is being increasingly used in education to personalize learning, automate feedback,
and support data-driven assessment. In database education, however, many digital learning environments still
provide only binary correctness checking for SQL answers. They can mark a query as correct or incorrect, but
they often do not explain whether the error concerns schema interpretation, JOIN logic, aggregation, keys and
constraints, normalization, or terminology.
Object-relational databases were selected as the application domain because SQL and relational modeling are
foundational competencies for software engineering, information systems, data analytics, cybersecurity, and
interdisciplinary IT programs. Students must learn schema design, normalization, constraints, joins, grouping,
subqueries, indexing, and transaction-related concepts. These topics are structurally connected, so a wrong
answer often reflects a specific hidden misconception rather than a random mistake.
The real research problem addressed in this study is the lack of transparent, subtopic-level diagnosis in SQL
learning environments.
[1]
Existing LMS-based assessments and many automated graders reduce the instructor
workload, but they rarely connect an error to a formal ER-schema element, explain the probable cause of the
error, and use this diagnosis to adapt to subsequent tasks.
[2]
As a result, students may focus on guessing or
copying answers rather than systematically eliminating causal gaps in understanding.
The purpose of this work is to present and validate a prototype of an intelligent SQL learning support system
that: (i) links tasks to formal elements of an educational ER schema; (ii) diagnoses errors by subtopic and error
type using validators and an interpretable CART model; (iii) generates explainable feedback and
recommendations for weak subtopics; (iv) benchmarks the diagnostic classifier against alternative models; and
(v) calibrates a pilot MIRT/Q-matrix layer for multidimensional competency analysis.
2. Literature review and positioning
2.1 Automated SQL assessment and intelligent tutoring systems
Early and established SQL learning systems demonstrate that automated feedback can support database