Idea · Aug 8, 2026

From Pen-and-Paper Traces to Targeted Hints: An LLM Misconception Classifier for Control-Flow Errors

Digitize the six-artefact pen-and-paper control-flow tracing protocol from ITiCSE 2025, build a validated taxonomy of student trace errors from a collected corpus, then train an LLM prompt-based classifier to categorize new submissions and generate taxonomy-targeted remediation hints — closing the feedback loop that the original paper left open.

What it would do

A 2025 ITiCSE paper introduced a scaffolded suite of pen-and-paper activities in which CS1 students construct six hand-drawn artefacts capturing the static and dynamic aspects of a Python program's control flow. The preliminary study found that most students correctly understood the artefact structure, but exhibited specific, recurring misconceptions about control flow — for example, difficulty identifying the boundary of conditional branches and the re-entry point of loop bodies. Crucially, the paper deployed this as a one-time diagnostic: instructors manually reviewed hand-drawn artefacts to infer misconceptions, but students received no automated, targeted feedback. This research proposes a three-phase project that closes that feedback loop. Phase 1 (IRB-free): digitize the six-artefact submission protocol as a structured web form (students draw artefacts on a canvas element or fill structured fields for each of the six artefact types); deploy in an existing CS1 course to collect a corpus of 300 or more digitized submissions across multiple problem types (sequential, conditional, loop, and first-order procedural programs); build a validated misconception taxonomy using affinity diagramming on the collected corpus, coded independently by two researchers. Phase 2 (LLM classifier): prompt Claude to classify new trace submissions against the validated taxonomy, compare classifier output to human expert coding on a held-out 100-submission test set, and measure agreement (Cohen kappa); iterate on the classification prompt using few-shot examples from the taxonomy until kappa exceeds 0.7. Phase 3 (hint generation + A/B study): generate taxonomy-targeted natural-language hints for each misconception category; run a controlled within-subjects study in which students who make a classified error receive either (A) a taxonomy-targeted hint or (B) a generic 'your answer is incorrect' message, then attempt an isomorphic follow-up problem; measure whether targeted hints improve follow-up performance. Primary research question: can an LLM reliably classify student control-flow trace errors into a domain-specific misconception taxonomy, and does receiving taxonomy-targeted hints improve performance on a subsequent isomorphic trace problem compared to generic 'incorrect' feedback?

More in Assessment & Grading

Longitudinal CS Concept Retention in Interview-Prep Aligned Curricula: Tracing CSS 342/343 Students Through Degree Completion

Extends a large-scale retrospective evaluation of technical interview preparation activities by applying its methodology to UW Bothell's CSS 342/343 interview-aligned curriculum, using de-identified transcript and grade records to test whether interview-prep-focused courses produce deeper CS concept retention or interview-optimized surface skill.

Assessment & GradingResearch directionResearchAug 12, 2026

All 132 ideas in Assessment & Grading →