Plan More, Debug Less: Applying Metacognitive Theory to AI-Assisted Programming Education
By: Tung Phung , Heeryung Choi , Mengyan Wu and more
Potential Business Impact:
AI helps students learn coding better.
The growing adoption of generative AI in education highlights the need to integrate established pedagogical principles into AI-assisted learning environments. This study investigates the potential of metacognitive theory to inform AI-assisted programming education through a hint system designed around the metacognitive phases of planning, monitoring, and evaluation. Upon request, the system can provide three types of AI-generated hints--planning, debugging, and optimization--to guide students at different stages of problem-solving. Through a study with 102 students in an introductory data science programming course, we find that students perceive and engage with planning hints most highly, whereas optimization hints are rarely requested. We observe a consistent association between requesting planning hints and achieving higher grades across question difficulty and student competency. However, when facing harder tasks, students seek additional debugging but not more planning support. These insights contribute to the growing field of AI-assisted programming education by providing empirical evidence on the importance of pedagogical principles in AI-assisted learning.
Similar Papers
Scaffolding Metacognition in Programming Education: Understanding Student-AI Interactions and Design Implications
Human-Computer Interaction
Helps AI teach students to code better.
Exploring the Potential of Metacognitive Support Agents for Human-AI Co-Creation
Human-Computer Interaction
Helps designers make better ideas with AI.
Directive, Metacognitive or a Blend of Both? A Comparison of AI-Generated Feedback Types on Student Engagement, Confidence, and Outcomes
Human-Computer Interaction
AI helps students learn better by guiding them.