Objective

This study set out to understand how learners with different programming backgrounds interact with generative AI-supported interactive video programming tasks. The researchers wanted to know if novices and experienced learners organize their actions and use support tools differently when solving coding problems in an interactive video setting. This matters because programming is hard for beginners, and timely, clear feedback can help. Generative AI tools, like ChatGPT, can give hints and explanations that may be easier to understand than standard compiler error messages. The study focused on five main questions:

  • What sequences of actions do learners follow during coding tasks?
  • What central patterns appear in their behavior networks?
  • How do these patterns differ between correct and incorrect answers?
  • How do patterns change with different levels of mental effort (cognitive load)?
  • How do mental effort, number of actions, and correctness change across tasks?

Key terms: Generative AI means an AI system that creates new content or feedback, here used to give coding hints. Sequence analysis is a way to study the order of actions over time. Transition network analysis looks at how often learners move from one action to another. Cognitive load is the mental effort needed to do a task.

Methods

The researchers used a process-oriented learning analytics approach, focusing on the order and structure of learners' actions during interactive programming tasks. They did not directly compare the two groups statistically but instead examined each group separately to see what patterns emerged.

Participants: There were 102 students from one university in Turkey. The novice group had 59 first-year Foreign Language Education students (52 female, 7 male, average age 20) with no programming experience. The experienced group had 43 third-year Software Engineering students (23 male, 20 female, average age 22) who had learned C and C# but not Python.

Setting and intervention: Both groups used an interactive video platform with embedded programming tasks. Each video paused for coding questions. Students wrote and ran Python code in a built-in editor. If their code was wrong, they could revise it, ask the AI assistant for a hint, or revisit the relevant video section. The AI assistant (using GPT-4o via OpenAI API) gave brief, hint-based feedback but never the full solution. The prompt for the AI was designed to only give a short explanation of the error and a hint, not the answer.

Novices watched four short videos (4–7 minutes each) on basic Python topics. Experienced students watched three videos on Python dictionaries, a topic new to them. Both groups completed 12 interactive coding tasks in total.

Data collection: The system logged every action (like running code, asking AI, reviewing video, or navigating away), along with timestamps. Only actions directly related to problem-solving were analyzed. After each task, students rated their mental effort (cognitive load) on a 1–9 scale. The final dataset included 6,835 complete interaction records after cleaning and removing incomplete or outlier data.

Analysis: The researchers used sequence analysis to study the order of actions, and transition network analysis to see how often learners moved between actions. They also used descriptive statistics and mixed-effects models to look at how cognitive load, action counts, and correctness changed across the 12 tasks. Chi-square tests and effect sizes were used for descriptive comparisons, but not for making strong claims about differences between groups.

Key Findings

The main results show that learners' backgrounds shaped how they used support and organized their problem-solving steps in the AI-supported interactive video environment.

Common starting patterns, but diverging paths

  • Both novice and experienced learners started tasks in similar ways, usually by running their code right after seeing the question.
  • The most common sequence for both was: see the question, run code, then continue. Some also asked the AI for help or tried running code more than once before moving on.

Novices: More AI help, shorter sequences

  • Novice learners used the AI assistant for hints more often than experienced learners. After running code, they were more likely to ask the AI for help. This was described as a prominent pattern in the novice group.
  • Novices rarely navigated to external pages or resources. Their support-seeking was focused on the in-system AI.
  • Novice learners' interaction sequences were generally shorter, with fewer repeated attempts or steps.
  • When novices got the answer correct, they had more transitions from running code to asking AI. Correct and incorrect answers had similar sequence lengths (about 5 actions).
  • Novices with higher cognitive load (more mental effort) were more likely to ask the AI for help repeatedly, while those with lower cognitive load returned to coding after AI hints more quickly.

Experienced learners: More exploration, external resources, longer paths

  • Experienced learners often navigated to external pages or resources, sometimes repeatedly, suggesting they looked for help outside the system.
  • They also tried running code multiple times, and their sequences were longer on average than novices.
  • When experienced learners got the answer correct, they ran code more often and had more direct transitions from question to running code. Incorrect answers involved more AI use and more repeated AI help cycles.
  • Experienced learners with high cognitive load had longer sequences (average 7.27 actions vs. 5.92 for low cognitive load) and more repeated code testing. High cognitive load was linked to more iterative problem-solving and delayed completion.

Task demands and changing patterns

  • Cognitive load, number of actions, and correctness changed across the 12 tasks for both groups, but in different ways.
  • Experienced learners had stable performance and lower cognitive load for the first 8 tasks, but around tasks 9–10, their cognitive load and actions increased while correctness dropped, suggesting those tasks were harder.
  • Novices showed more ups and downs in cognitive load, actions, and correctness across tasks, with less clear coordination between these factors.

Support-seeking linked to success, but context matters

  • For novices, using the AI assistant after running code was linked to correct answers. For experienced learners, successful problem-solving was more about repeated code testing, while more AI use was linked to incorrect answers.

Implications

For teachers and course designers: The results suggest that interactive video programming tools with AI support should adapt to learners' backgrounds. Novices may benefit from more structured, timely AI hints, but too much help could lead to over-reliance. For experienced learners, allowing or even encouraging the use of external resources may support deeper exploration and self-regulation.

For developers: Design AI feedback that encourages students to reflect, try again, and not just depend on hints. Consider features that help learners know when to seek help, when to try again, and when to move on. Allow for flexible pathways, especially for experienced learners who may want to use outside resources.

For policymakers and researchers: The study shows that looking at the order and structure of actions (not just how often something is done) gives a better picture of how students learn and use support. Sequence-based analytics can help improve learning environments and feedback systems.

Our reading (not the authors' recommendation): Teachers and designers should be cautious about assuming all students use AI help in the same way. Support tools should be flexible and responsive to both the learner's experience and the demands of each task. Monitoring how students interact with support tools can help identify when extra guidance or encouragement is needed.

The authors recommend more adaptive scaffolding that responds to both prior experience and changing task demands, especially for novices who may need clearer guidance on when and how to use AI help.

Limitations

The study has several important limitations:

  • The two groups differed not only in programming experience but also in their academic disciplines (Foreign Language Education vs. Software Engineering). This means differences in behavior may reflect both experience and disciplinary culture.
  • Gender balance was uneven: the novice group was mostly female, while the experienced group was more balanced. The study did not analyze gender effects, so some patterns could be related to gender as well as experience.
  • The number and content of videos differed between groups (novices had four videos, experienced had three), though both completed 12 coding tasks. This could affect pacing or engagement.
  • Participation was voluntary and not tied to grades, so motivation may have varied from a typical course setting.
  • Cognitive load was measured with a single self-report question after each task. This does not separate different types of mental effort or capture moment-to-moment changes.
  • The study took place at one institution and over a limited time, so results may not generalize to other settings, topics, or longer-term learning.
  • The paper does not mention, but the AI assistant's effectiveness may depend on the quality of its hints and how students interpret them, which was not directly measured.

Future Directions

The authors suggest several areas for future research:

  • Study similar AI-supported interactive video environments in settings where learners have more comparable disciplinary backgrounds, to better isolate the effects of programming experience.
  • Use larger samples and more balanced gender distributions, or analyze gender as a variable, to see how it may influence support-seeking and problem-solving behaviors.
  • Employ more detailed measures of cognitive load that can distinguish between types of mental effort and track changes within tasks.
  • Investigate these environments over longer periods and with different programming topics to see if the patterns hold.
  • Combine behavioral sequence data with qualitative methods (like interviews) to better understand the reasons behind learners' choices and the role of AI feedback.
  • Future studies could also explore how embedding these interactive video activities within formal, graded courses (rather than voluntary participation) might affect engagement and support-seeking behaviors, as the current study was conducted in an extracurricular setting.

The bottom line: Learners with different programming backgrounds used support tools in distinct ways during AI-supported interactive coding videos. Novices relied more on AI hints and had shorter problem-solving steps, while experienced learners explored more, used outside resources, and took longer paths. These patterns suggest that support should be tailored to learners' experience and needs, not just provided in the same way for everyone. However, the study's results are limited to two groups at one university, with differences in discipline and gender, so caution is needed in applying the findings more widely.