Bridging awareness and behavior: decoding implicit metacognitive behaviors in AI-assisted programming via fine-grained log analysis
The DOI matches its Crossref record; 14 of the 14 references it cites were found in a registry or an index.
Abstract
While generative artificial intelligence offers transformative potential for programming education, its impact on students' internal cognitive and behavioral patterns remains underexplored. This study aims to address this “black box” issue by investigating how AI-driven interventions influence metacognitive regulation and self-regulated learning. A randomized controlled trial was conducted with 122 Computer Science undergraduates (mean age = 19.6 years; 28.2% female) from a university in China. Participants were assigned to an AI-assisted intervention group ( n = 62) or a control group ( n = 60) within a Python programming course. Using a customized Jupyter environment, an integrated autonomous AI agent monitored real-time behavioral logs and triggered non-directive, process-oriented prompts based on specific algorithmic thresholds. Data collection integrated fine-grained log analysis with standardized assessments to quantify implicit planning, monitoring, and regulation processes. The AI intervention significantly optimized learning behaviors, facilitating a shift from impulsive “trial-and-error” approaches to deliberate planning and superior debugging precision. These behavioral improvements were accompanied by significant gains in both academic performance and subjective metacognitive awareness compared to the control group. The findings confirm that when designed as a process-oriented scaffold, AI functions as a catalyst for self-regulated learning rather than a passive crutch. This study highlights the role of AI as a psychological scaffold that supports metacognitive regulation, providing an evidence-based blueprint for the design of effective learning environments in educational psychology.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
ChatGPT for good? On opportunities and challenges of large language models for education
Kasneci, E., Sessler, K., Küchemann, S., Bannert, M., Dementieva, D., Fischer, F., Gasser, U., Groh, G., Günnemann, S., Hüllermeier, E., et al. (2023) · Learning and Individual Differences · doi:10.1016/j.lindif.2023.102274 · Cited by 15,365 · cited 1×
“However, unlike previous studies that predominantly relied on static academic scores or self-reported scales to evaluate GenAI tools, this research provides process-oriented evidence of behavioral transformation (Zhai et al., 2021; Kasneci et al., 2023).”
Metacognition and cognitive monitoring: A new area of cognitive–developmental inquiry
Flavell, J. H. (1979) · American Psychologist · doi:10.1037/0003-066x.34.10.906 · Cited by 11,282 · cited 2×
“Central to this are three core strategies: planning, monitoring, and regulation (Flavell, 1979; Kouhpayehzadeh Esfahani et al., 2022).”
Cognitive Load During Problem Solving: Effects on Learning
Sweller, J. (1988) · Cognitive Science · doi:10.1016/0364-0213(88)90023-7 · Cited by 11,048 · cited 1×
“This phenomenon aligns with cognitive load theory (Sweller, 1988; Kirschner, 2002).”
THE ROLE OF TUTORING IN PROBLEM SOLVING *
Wood, D., Bruner, J. S., & Ross, G. (1976) · Journal of Child Psychology and Psychiatry · doi:10.1111/j.1469-7610.1976.tb00381.x · Cited by 8,851 · cited 1×
“Scaffolding is defined as an instructional support mechanism where teachers or more experienced individuals provide support and guidance to learners who are unable to accomplish tasks independently, thereby enabling them to bridge the gap to autonomous mastery (Wood et al., 1976).”
A Review of Artificial Intelligence (AI) in Education from 2010 to 2020
Zhai, X., Chu, X., Chai, C. S., Jong, M. S. Y., Istenic, A., Spector, M., Liu, J.-B., Yuan, J., & Li, Y. (2021) · Complexity · doi:10.1155/2021/8812542 · Cited by 1,364 · cited 2×
“However, existing empirical studies on AI-supported learning environments predominantly evaluate intervention effectiveness through outcome-based indicators such as academic performance, while the underlying learning processes remain comparatively underexplored (Zhai et al., 2021).”
Efklides, A. (2011) · Educational Psychologist · doi:10.1080/00461520.2011.538645 · Cited by 1,211 · cited 1×
“As noted by researchers investigating the “cost of metacognitive,” this cognitive effort facilitates long-term schema construction but momentarily competes with the working memory required for immediate task execution (Efklides, 2011; Manasia, 2015).”
Cognitive load theory: implications of cognitive load theory on the design of learning
Kirschner, P. A. (2002) · Learning and Instruction · doi:10.1016/s0959-4752(01)00014-7 · Cited by 917 · cited 1×
“This phenomenon aligns with cognitive load theory (Sweller, 1988; Kirschner, 2002).”
A multi-national study of reading and tracing skills in novice programmers
Lister, R., Adams, E. S., Fitzgerald, S., Fone, W., Hamer, J., Lindholm, M., McCartney, R., Moström, J. E., Sanders, K., Seppälä, O., et al. (2004) · ACM SIGCSE Bulletin · doi:10.1145/1041624.1041673 · Cited by 575 · cited 1×
“Previous studies have shown that high-performing learners tend to spend a longer period on problem understanding and planning to construct a mental mode, whereas novices often skip this phase (Lister et al., 2004; Liew, 2005).”
A systematic literature review of automated feedback generation for programming exercises
Keuning, H., Jeuring, J., & Heeren, B. (2019) · ACM Transactions on Computing Education · doi:10.1145/3231711 · Cited by 370
Azevedo, R., & Gašević, D. (2019) · Computers in Human Behavior · doi:10.1016/j.chb.2019.03.025 · Cited by 345
Research works printed but not linked: 28
- An, 2014, Examining the effects of metacognitive scaffolding on students' design problem solving and metacognitive skills in an online environment, MERLOT J. Online Learn. Teach., 10, 552
- Bates, 2015, Fitting linear mixed-effects models using lme4, J. Stat. Softw., 67, 1, 10.18637/jss.v067.i01 · DOI · Paper page
- Beale, 2025, Computer science education in the age of generative AI, arXiv, 10.48550/arXiv.2507.02183 · DOI
- Bubnic, 2024, “Can metacognition predict your success in solving problems? An exploratory case study in programming,”, 1, 10.1145/3699538.3699593 · DOI
- Çakiroglu, 2023, A model to develop activities for teaching programming through metacognitive strategies, Think. Skills Creat., 48, 101279, 10.1016/j.tsc.2023.101279 · DOI
- Ewell, 2023, A comparison of study behaviors and metacognitive evaluation used by biology students, LSE, 22, ar36, 10.1187/cbe.22-11-0225 · DOI
- Gura, 2020, “Research on metacognitive skills of software testers: a problem statement,”
- Hong, 2024, “My grade is wrong!”: a contestable ai framework for interactive feedback in evaluating student essays, 10.48550/arXiv.2409.07453 · arXiv · doi:10.48550/arxiv.2409.07453
- Hou, 2026, An AI-assisted and teacher-regulated collaborative model of metacognitive scaffolding in programming education: construction and empirical study, China Inf. Technol. Educ., 6, 96
- Jadud, 2006, “Methods and tools for exploring novice compilation behaviour,”, 73, 10.1145/1151588.1151600 · DOI · Paper page
- Kouhpayehzadeh Esfahani, 2022, Promoting metacognitive awareness in writing assessment tasks through planning, monitoring, and evaluation: achievements and perceptions (research paper), Iran. J. Engl. Acad. Purp., 11, 50
- Liew, 2005, Teaching software development skills early in the curriculum through software engineering, SIGCSE Bull., 37, 133, 10.1145/1151954.1067484 · doi:10.1145/1151954.1067484
- Liu, 2026, Adaptive vs. planned metacognitive scaffolding for computational thinking: Evidence from generative AI-supported programming in elementary education, Comput. Educ., 241, 105473, 10.1016/j.compedu.2025.105473 · DOI
- Ma, 2025, Scaffolding metacognition in programming education: understanding student-AI interactions and design implications, arXiv, 10.48550/arXiv.2511.04144 · DOI
- Manasia, 2015, Cognition and metacognition in self-regulated learning. a positive learning patterns analysis, J. Innov. Psychol. Educ. Didactics, 19, 277
- Menon, 2025, Quantifying shortfalls in students? AI-supported programming practices, Issues Inf. Syst., 26, 458, 10.48009/1_iis_134 · DOI
- Musullulu, 2025, Cognitive control and metacognitive awareness: do they shape academic achievement in university students?, Front. Psychol., 16, 1633996, 10.3389/fpsyg.2025.1633996 · DOI
- Prasad, 2024, “A self-regulated learning framework using generative AI and its application in CS educational intervention design,”, 1070, 10.1145/3626252.3630828 · DOI · Paper page
- Schraw, 1994, Assessing Metacognitive Awareness, Contemp. Educ. Psychol., 19, 460, 10.1006/ceps.1994.1033 · DOI · Paper page
- Stephanou, 2017, Metacognitive knowledge and metacognitive regulation in self-regulatory learning style, and in its effects on performance expectation and subsequent performance across diverse school subjects, Psychology, 8, 1941, 10.4236/psych.2017.812125 · DOI
- Sweller, 2011, “Cognitive load theory,”, Psychology of Learning and Motivation, 37, 10.1016/B978-0-12-387691-1.00002-8 · DOI · Paper page
- Tikva, 2023, The effect of scaffolding programming games and attitudes towards programming on the development of Computational Thinking, Educ. Inf. Technol., 28, 6845, 10.1007/s10639-022-11465-y · DOI
- Tsakeni, 2025, Mapping the scaffolding of metacognition and learning by AI tools in STEM classrooms: a bibliometric–systematic review approach (2005–2025), J. Intell., 13, 148, 10.3390/jintelligence13110148 · DOI
- Tuononen, 2022, Metacognitive awareness in relation to university students' learning profiles, Metacogn. Learn., 18, 37, 10.1007/s11409-022-09314-x · DOI
- Veenman, 2015, “Teaching for metacognition,”, 89, 10.1016/B978-0-08-097086-8.92136-6 · DOI
- Vickers, 2001, Statistics notes: analysing controlled trials with baseline and follow up measurements, BMJ, 323, 1123, 10.1136/bmj.323.7321.1123 · DOI · Paper page
- Yu, 2025, Co-Learning: code learning for multi-agent reinforcement collaborative framework with conversational natural language interfaces, Front. Artif. Intell., 8, 1431003, 10.3389/frai.2025.1431003 · DOI
- Zimmerman, 2000, “Attaining self-regulation: a social cognitive perspective,”, Handbook of Self-Regulation, 13, 10.1016/B978-012109890-2/50031-7 · DOI · Paper page
Metadata
- Authors
- Hou, X., Liu, Z., Wang, G., & Shi, N.
- Venue
- Frontiers in Psychology
- Publisher
- Frontiers Media SA
- Published
- 2026-04-10
- Volume
- 17
- ISSN
- 1664-1078
- Cited by
- 5
- References
- 14
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Bridging awareness and behavior: decoding implicit metacognitive behaviors in AI-assisted programming via fine-grained log analysis. https://app.cochat.ai/papers/10.3389/fpsyg.2026.1790196
- The paper
- Hou, X., Liu, Z., Wang, G., & Shi, N. (2026). Bridging awareness and behavior: decoding implicit metacognitive behaviors in AI-assisted programming via fine-grained log analysis. Frontiers in Psychology. https://doi.org/10.3389/fpsyg.2026.1790196
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.