How AI Detects Student Knowledge Gaps
AI traces patterns in answers and questions to diagnose where learning actually broke down.

This piece is about how AI finds the gaps in a student's understanding that a simple grade can't show, and the layered methods it uses to do that: tracking mastery over time, mapping how concepts depend on each other, and even reading the questions students ask instead of just the answers they give.
Why right/wrong scoring hides most of a student's knowledge
A wrong answer tells you almost nothing by itself. A student can miss a question because they never learned the concept, because they mixed it up with something similar, or because they rushed and made a careless slip. Those are three completely different problems, and each one needs a different fix. Assuming a careless mistake when the real issue is a concept the student never grasped in the first place creates the same problem.
A single score can't tell these apart. What it can't do is show you the mastery sitting underneath that answer, because mastery isn't something you can read off a test directly. It has to be pieced together from patterns across many answers over time.
This matters most in subjects that build on themselves. AP courses and SAT math are structured so that an early gap quietly undermines everything that comes after it. Finding that kind of gap requires something closer to a diagnosis than a grade.
How knowledge tracing infers hidden mastery
The method behind most AI gap detection is called knowledge tracing, and the idea is simpler than the name suggests. It treats a student's real mastery of a skill as something that can never be observed directly. It can only be inferred from what you can see: a string of correct and incorrect answers across many interactions over time.
That's what "hidden" or "latent" means here. You can't read mastery off a dashboard like a number waiting to be checked. It's a guess, continuously updated, built from the pattern of a student's behavior rather than any single data point.
The earliest version of this, Bayesian Knowledge Tracing, used probability to estimate mastery for each individual skill, built from structured responses to individual items. Deep Knowledge Tracing came later and swapped out that structure for deep neural networks. Instead of scoring one answer at a time, it looks at a student's entire sequence of interactions, models how their knowledge state shifts as they keep practicing, and estimates the probability of mastery on a given skill at any point going forward, not just based on the last question they answered.
Picture two students who just answered questions on the same concept, and both got the last three right. Knowledge tracing does not. It reads the first student's recent correct answers as a possible fluke, a shallow pattern-match rather than real understanding, because the history leading up to it suggests the concept hadn't settled yet. The AI can flag that student as still weak on the concept even though their most recent answers were correct. That is the entire value of tracing mastery as something hidden and inferred rather than something read straight off the last answer.
Concept Maps and Prerequisite Graphs
Knowledge tracing solves one problem well: it can tell you a student is struggling with a topic. What it can't tell you is whether that struggle actually starts there, or whether it's really the downstream symptom of a gap in something the student should have learned earlier and never fully did.
That's where graph-based models come in. Graph Neural Networks map out how different concepts in a curriculum relate to each other, and how mastery of one concept shapes mastery of the next. Instead of just tracking one student's personal history, the model captures the shape of the curriculum itself, the dependency structure that exists whether or not any particular student has gotten there yet.
A concrete version of this showed up in a pipeline Georgia Tech researchers built, published by Medhat and colleagues at EDM 2026. They used GPT-4 to extract a prerequisite knowledge graph for a graduate-level AI course, a map of course topics connected by 47 directed edges, each one encoding which concept has to be understood before another can be. Because those edges point in a direction, upstream to downstream, the graph can be used to trace a struggle on one topic back to a smaller set of candidate root causes earlier in the sequence. That's a meaningfully different kind of output than "the student is weak on topic X." It's closer to "the student is weak on topic X because they never fully consolidated topic B, which sits two steps upstream."
That distinction changes what an instructor should actually do about it. Re-teaching the topic where the wrong answer showed up might feel like the obvious response, but if the real root cause sits further back in the graph, that re-teaching misses the problem entirely. The fix has to happen at the level where the gap actually started, not at the level where it became visible.
AP and SAT content is built the same way. A shaky grip on basic algebra doesn't just cost points on algebra questions, it resurfaces as errors throughout SAT advanced math. The curriculum has a shape, and gap detection only becomes genuinely diagnostic once it follows that shape instead of treating each topic as its own island.
Mining what students ask (a second diagnostic signal alongside what they answer)
So far, every mechanism described here depends on a student answering questions, whether on a quiz, a problem set, or inside a practice tool. But answers aren't the only trace a struggling student leaves behind. Questions are too.
That signal has sat mostly untouched in course logs until recently.
The same Georgia Tech pipeline shows what it looks like to actually use it at scale. A few-shot text classifier took student questions and mapped them onto curriculum topics, and it hit 80.0% accuracy across a label set covering the course's topics plus a catch-all abstention category, tested against a large sample of question events from the course. That's a workable level of accuracy for turning a flood of informal questions into structured, topic-level data a teacher could actually use.
A separate study, published in 2026 in Computers and Education: Artificial Intelligence, mines a different kind of behavior entirely. It introduces an approach called KG2M, short for Knowledge Gaps to Mastery, and this uses large language models and retrieval-augmented generation to spot class-wide knowledge gaps from student discussion forum posts, then automatically generates learning activities aimed at those gaps. It was evaluated across three computer science courses, with five instructors assessing how pedagogically useful the generated activities actually were.
These two projects are reading different raw material, conversational questions in one case, forum posts in the other, but they're built on the same insight. Gap detection doesn't require a formal test at all. None of this replaces knowledge tracing. It runs alongside it, as a second, independent stream of evidence pointing at the same hidden mastery state.
What AI grading contributes to gap detection
Everything described above runs mostly in the background. AI grading is the part students and teachers actually see and interact with day to day, and "AI grading" isn't one single function.
In the modes it's suited for, AI grading earns its keep. It handles first-pass scoring on objective items well, which frees up a teacher's time for the kind of review that actually requires judgment. It can generate rubric-aligned comments on short responses, and it does this especially well when the rubric itself is tightly specified, which AP rubrics generally are. At the class level, it can flag a skill gap that appears repeatedly across dozens or hundreds of students, aggregated in a way no individual teacher could manage by hand across multiple sections.
Where it runs into trouble is just as important, and this is the point where the piece needs to slow down rather than rush past it. Work that depends on a student's own voice, unconventional reasoning, cultural context, or a teacher's personal knowledge of how a specific student tends to think, is work current AI grading handles poorly. AI grading systems have produced measurable score discrepancies for English language learners compared to native speakers producing work of equivalent quality, with one 2025 study finding high-proficiency ESL essays scored 10.3% lower than equivalently rated native-speaker essays. The cause isn't mysterious: training data reflects dominant language patterns, so the system reads linguistic variation as a mistake rather than a different, equally valid way of expressing the same understanding. The same structural problem produces racial bias too, with AI systems underperforming on work written by speakers of African American Vernacular English.
This isn't a cosmetic flaw that a patch fixes. It goes straight to the core claim gap detection is making. Treating every flagged gap as equally reliable, regardless of who the student is, means some students get a real diagnosis and others get a false one dressed up to look identical.
The practical rule educators have settled on reflects that risk directly: let AI take the first pass on routine, lower-stakes cases, and keep a teacher in the loop for anything borderline, high-stakes, or contested.
A known flaw in the most widely used gap-detection model, and the honest limits of LLMs as replacements
It's tempting to assume that more AI-detected gap data automatically means better teaching and better outcomes. That assumption rests on models that have real, documented weak spots.
Start with DKT itself, since it's the dominant model behind most of what's described above. Its core limitation is baked into the architecture: it assumes mastery is binary, that a student has either mastered a skill or hasn't. It's gradual and continuous, full of partial understanding and backsliding, and a model built on a hard yes/no split is going to misrepresent that reality no matter how much data it's fed.
A natural question follows: can large language models just replace this and do better? The honest answer, based on current evidence, is that purpose-built architectures still outperform them for this specific task. Architectures built specifically for sequential learner data still outperform general-purpose language models at the core job of tracing mastery over time. LLMs are powerful at language tasks, like classifying what topic a question is about, but tracking a hidden mastery variable across a sequence of interactions is a narrower, more specialized job, and purpose-built models still do it better.
There's also a gap between what gets published and what students actually encounter. DKT shows up constantly in research papers, but full knowledge tracing pipelines remain rare inside the classroom tools students and teachers actually use day to day. The distance between the research frontier and the typical classroom experience is still wide.
The validity threat that no technical improvement can fix on its own
Every mechanism in this piece depends on one assumption: that the behavioral signal feeding the model, the answers, the questions, the timing, the hesitation, actually comes from the student. If that signal is corrupted, nothing downstream works, no matter how sophisticated the model reading it is.
Professor Rose Luckin, writing in March 2026, named the exact way that signal is now at risk. Agentic AI tools can attend courses, complete assignments, and sit online assessments autonomously on a student's behalf. Anthology and Blackboard have both confirmed that reliably detecting when this is happening isn't currently possible.
Follow that logic through to gap detection specifically. If an AI agent is the one producing the answers, the questions, and the interaction patterns that a diagnostic model is reading, the model isn't measuring the student's knowledge state at all. Any gap the system detects, or fails to detect, is an artifact of how the agent performed, reflecting the agent's capabilities rather than what the student actually understands.
Luckin's proposed fix is a structural one: build an accountability moment into every program, a point where a student has to demonstrate understanding live, in a form an agent can't perform on their behalf, an oral defense, a live demonstration, an in-person exam. You can't make AI gap detection trustworthy just by refining the algorithms. It requires assessment design that guarantees the signal those algorithms read actually originated with the student in the first place.
What students and teachers should expect from AI gap detection tools today
Knowing how a tool actually works tells you where to lean on it and where to double-check it yourself, which is the only honest way to use any of this at the current stage of the technology.
If you're a student prepping for AP exams or the SAT, a few concrete distinctions matter. A tool that gives rubric-based, concept-level feedback is doing something genuinely different from a plain practice test with a score at the end, because it's attempting to locate where understanding broke down rather than just confirming whether the final answer matched. A personalized study plan is only as good as the gap detection feeding it, so a student should be able to see which specific concepts got flagged and why, rather than accepting a vague "focus on this topic" with no reasoning attached.
For teachers, the same logic applies in reverse. AI grading tools can be trusted for first-pass scoring on objective items and for flagging patterns across a whole class, but should be double-checked anywhere a student's language, reasoning style, or background might not match what the training data treats as standard. None of the mechanisms in this piece, knowledge tracing, prerequisite graphs, question mining, replace a teacher's judgment. They narrow down where that judgment needs to be spent, which, given how invisible most of a student's actual knowledge state has always been, is still a real improvement on grading by right and wrong alone.
Sources
- Detecting Knowledge Gaps from Conversational AI Interactions Using Curriculum Prerequisite Graphs
- The Skinny on AI for Education #26 March 2026
- From knowledge gaps to learning opportunities: Leveraging student questions and dual use of generative AI to support student learning at scale - ScienceDirect


