Objective

Researchers who study how students manage their own learning often ask students to think aloud while they work. This means saying their thoughts out loud while solving problems. These recordings show things like planning, checking understanding, and choosing strategies as they happen. This kind of learning is called self-regulated learning (SRL). The problem is that turning the recordings into data is slow. People must transcribe them, split them into small pieces, and label each piece using a detailed codebook.

This study asked whether large language models (LLMs, the AI systems behind chatbots) can do the labeling. The authors tested three models, GPT-4o, Claude 3.5 Sonnet and Gemini 1.5 Pro, on six types of learning behavior.

They had three questions:

  1. Does coding accuracy differ between a mathematics task and a biology task?
  2. How do different ways of writing the instructions, called prompts, change accuracy? These included giving examples (few-shot) or giving extra background about the task or course.
  3. Are some learning behaviors easier for the models to code than others?

Methods

This was a computational comparison. The authors measured how often each AI label matched labels made earlier by trained human coders. It shows how well the models agree with people on this data. It does not show whether the human labels are correct or whether the results hold for other courses.

The student data

The recordings came from 98 undergraduate students (49 in Introductory Biology and 49 in a Pre-calculus course) aged 17 to 26. Each took part in a 90-minute lab session on either biodiversity or ellipses, talking aloud through video lectures, homework problems and quizzes. The study had ethics approval. Three research assistants split the transcripts into small statements and coded them with a codebook of more than 50 detailed codes. This produced 6,591 statements for biology and 3,800 for math. Agreement between coders was substantial (Cohen's kappa of 0.65 for math and 0.66 for biology). Their final codes were treated as the correct answers.

The AI test

The authors picked six codes: setting a sub-goal, solving a math problem step by step, forming a new conclusion, ruling out answer choices, feeling that one understands, and feeling that one does not understand. For each code and each task, they randomly chose 50 statements, 25 with the code and 25 without. That made 600 statements. The models had to say yes or no to whether a code was present, using the five statements before it as context.

Each model was tested under six prompt types. The prompts differed in whether they gave examples and whether they added information about the task or the whole course. Results were analyzed with mixed-effects regression, which allows for the same statement being coded many times.

Key Findings

Overall, accuracy ranged from 49% to 90% across conditions. The models did well on some behaviors and badly on others, and the subject mattered a lot.

Math versus biology

  • Mathematics statements were coded correctly 78% of the time, against 56% for biology. The odds of a correct label were about 11 times higher for math.
  • The gap was biggest for statements about not understanding: 85% accuracy in math and 53% in biology. In biology, students often mixed several thoughts in one statement or used subject words together with tentative language.
  • Solving math problems step by step was the steadiest code across tasks (80% in math and 66% in biology, a gap of 0.13). It had the highest or near-highest accuracy overall (73%).

Which model

  • Claude 3.5 Sonnet was most accurate (71%), then GPT-4o (69%), then Gemini 1.5 Pro (62%). Claude scored significantly higher than both of the others.
  • The authors looked closely at one Claude test for statements about not understanding. In math it found 24 of the 25 statements that had the code, but in biology it found only 5 of 25. Math students often used clear phrases such as I am confused or I do not know, while biology students often mixed doubt with subject terms and guessing.
  • Gemini gave more false alarms, meaning it marked a code as present when humans had not. Its false positive rate was 17.7%, against 9.5% for GPT-4o and 8.1% for Claude.

Prompt choices

  • Giving examples did not help overall, and there was no significant average effect.
  • It did affect some codes. For statements about not understanding, examples raised accuracy from 85.9% to 90.1%, but this was not significant after correction (p = .054). For sub-goal setting, examples lowered accuracy from 81.6% to 71.2%, which was significant.
  • Adding task or course context made no significant difference (p = .719 and p = .102).

Context across tasks

  • The best results in math came from ruling out answers (83% to 90% across prompt types). The hardest code in math was forming new conclusions (66% to 71%).
  • In biology, the hardest code was sub-goal setting (49% to 55%), with particularly low results when examples were given.

By code

Average accuracy was 73% for problem solving, 72% for ruling out answers, 69% for not understanding, 66% for understanding, 62% for forming conclusions and 61% for sub-goals.

Implications

What the authors suggest

  • Researchers: LLMs show promise for coding some think-aloud behaviors, especially cognitive steps such as solving math problems. They could become part of learning analytics systems that detect self-regulation as it happens and support students.
  • Prompt design: a prompt that works for one behavior may hurt another, so prompts should be tuned by code and by subject. Metacognitive codes, such as judging one's own understanding, need task-specific approaches.
  • Model choice: Claude 3.5 Sonnet and GPT-4o were more cautious and made fewer false alarms than Gemini 1.5 Pro.

The authors also say LLM coding may one day replace or add to human coding, which could allow think-aloud studies at larger scale.

  • Learning analytics: the authors see automated coding as a step toward detecting weaknesses in planning or monitoring and then offering support to students, once it is reliable enough.

Our reading

Our reading (not the authors' recommendation): because accuracy for biology was only 56%, a team should compare AI labels with a human-coded sample for each new subject before relying on them.

Our reading (not the authors' recommendation): a teacher or school should not use these results to judge individual students, since the study tested coding of research recordings and not classroom decisions.

Our reading (not the authors' recommendation): a researcher choosing between models could weigh not only accuracy but also the kind of mistakes they make, since a model that over-labels behavior can distort counts.

Our reading (not the authors' recommendation): the models tested were 2024 versions, so newer ones may behave differently.

Limitations

The authors name a few limits. Current models struggle with long-range links between statements and have no specific training on thinking and self-monitoring. Collecting think-aloud data needs trained participants and a controlled lab, which makes it hard to scale to real classrooms.

The paper does not mention, but only six of the more than 50 codes were tested, so the results may not hold for the rest of the codebook.

The paper does not mention, but each test used a balanced set of 25 statements with the code and 25 without, which is not how the codes appear in real data. Real data may have far fewer positive cases, which could change how well the models perform.

The paper does not mention, but the human coders only moderately agreed with each other on spotting behaviors (positive agreement of 0.65 and 0.67). The AI was compared with these human labels, so some mismatches may reflect coder disagreement and not AI error.

The paper does not mention, but only two subjects were studied, at one university, with students who volunteered for a lab session.

The paper does not mention, but the three models were tested at one point in time and these systems change often.

Future Directions

The authors propose several next steps:

  • Try a step-by-step prompting method. The model would first sort a statement into a broad category such as monitoring, strategy use or planning, and then choose a specific code. This follows how learning theories describe self-regulation.
  • Combine think-aloud coding with other data, such as eye tracking, body measures and computer logs, which may be less affected by differences in how students speak across subjects.
  • Look for gentler ways to collect data than lab-based think-aloud, such as prompted self-explanation or reflection prompts built into the learning task.

Open questions include whether models can learn to code statements that mix several thoughts, as in the biology task, and whether the high accuracy for problem-solving statements holds in other subjects.

The bottom line: Three AI models were tested on 600 student think-aloud statements and agreed with human coders far more often in math (78%) than in biology (56%). Claude 3.5 Sonnet and GPT-4o beat Gemini 1.5 Pro, and extra background in the prompt made no clear difference. Examples helped on one code and hurt on another. This is a single study with six codes, two subjects and one group of students. The results suggest AI coding is promising for clear, step-by-step behaviors, but researchers should still check it against human coding before using it.