CoChat

Bridging awareness and behavior: decoding implicit metacognitive behaviors in AI-assisted programming via fine-grained log analysis

Hou, Xiaojing, Liu, Zhichun, Wang, Guoqiang, Shi, Nianfeng · 2026 · Frontiers in Psychology
Cited by 5

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.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.3389/fpsyg.2026.1790196

Cites

14 of 14 references verified0 citation errors · 0 not checkable

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.

A few free checks a day · papers already verified open instantly · results are public

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

Show all 14 references

Research works printed but not linked: 28

  1. 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
  2. Bates, 2015, Fitting linear mixed-effects models using lme4, J. Stat. Softw., 67, 1, 10.18637/jss.v067.i01 · DOI · Paper page
  3. Beale, 2025, Computer science education in the age of generative AI, arXiv, 10.48550/arXiv.2507.02183 · DOI
  4. Bubnic, 2024, “Can metacognition predict your success in solving problems? An exploratory case study in programming,”, 1, 10.1145/3699538.3699593 · DOI
  5. Ç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
  6. Ewell, 2023, A comparison of study behaviors and metacognitive evaluation used by biology students, LSE, 22, ar36, 10.1187/cbe.22-11-0225 · DOI
  7. Gura, 2020, “Research on metacognitive skills of software testers: a problem statement,”
  8. 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
  9. 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
  10. Jadud, 2006, “Methods and tools for exploring novice compilation behaviour,”, 73, 10.1145/1151588.1151600 · DOI · Paper page
  11. 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
  12. 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
  13. 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
  14. Ma, 2025, Scaffolding metacognition in programming education: understanding student-AI interactions and design implications, arXiv, 10.48550/arXiv.2511.04144 · DOI
  15. Manasia, 2015, Cognition and metacognition in self-regulated learning. a positive learning patterns analysis, J. Innov. Psychol. Educ. Didactics, 19, 277
  16. Menon, 2025, Quantifying shortfalls in students? AI-supported programming practices, Issues Inf. Syst., 26, 458, 10.48009/1_iis_134 · DOI
  17. 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
  18. 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
  19. Schraw, 1994, Assessing Metacognitive Awareness, Contemp. Educ. Psychol., 19, 460, 10.1006/ceps.1994.1033 · DOI · Paper page
  20. 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
  21. Sweller, 2011, “Cognitive load theory,”, Psychology of Learning and Motivation, 37, 10.1016/B978-0-12-387691-1.00002-8 · DOI · Paper page
  22. 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
  23. 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
  24. Tuononen, 2022, Metacognitive awareness in relation to university students' learning profiles, Metacogn. Learn., 18, 37, 10.1007/s11409-022-09314-x · DOI
  25. Veenman, 2015, “Teaching for metacognition,”, 89, 10.1016/B978-0-08-097086-8.92136-6 · DOI
  26. 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
  27. 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
  28. 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
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.