Automated token-level AOIs using OCR for predicting novice programmers’ visual attention

This paper introduces Gaze2Code, a novel cognitive modeling framework designed to support novice programming comprehension through automated token-level Area of Interest (AOI) generation using Optical Character Recognition (OCR). By aligning OCR-processed code images with eye-tracking data, the framework achieves precise fixation-to-token mapping, enabling fine-grained analysis of visual attention. A robust OCR optimization pipeline incorporating adaptive thresholding, contrast normalization, and token confidence filtering significantly improves token detection accuracy, bounding box alignment, and semantic coverage. Empirical evaluations across multiple programming tasks demonstrate substantial gains in AOI quality and predictive performance, with optimized AOIs enhancing BiLSTM model fit in modeling gaze behavior. The framework not only advances high-resolution attention modeling but also enables the concrete identification of comprehension strategies, such as novice regressions to operators or repeated fixations on delimiters and loop constructs, thereby supporting the development of adaptive, gaze-sensitive learning environments. This work represents an important step toward scalable and intelligent tutoring systems that deliver real-time feedback in programming education.

Authors

Institutions

Publication Details

Journal
International Journal of Modern Physics C
Published
2025-11-29
DOI
https://doi.org/10.1142/s0129183125420239
Primary Topic
Gaze Tracking and Assistive Technology
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automated token-level AOIs using OCR for predicting novice programmers’ visual attention

Wudao Yang, Wong Seng Yue, Unaizah Obaidellah
International Journal of Modern Physics C
Gaze Tracking and Assistive Technology
article

Automated token-level AOIs using OCR for predicting novice programmers’ visual attention

Wudao Yang, Wong Seng Yue, Unaizah Obaidellah
article en

Abstract

This paper introduces Gaze2Code, a novel cognitive modeling framework designed to support novice programming comprehension through automated token-level Area of Interest (AOI) generation using Optical Character Recognition (OCR). By aligning OCR-processed code images with eye-tracking data, the framework achieves precise fixation-to-token mapping, enabling fine-grained analysis of visual attention. A robust OCR optimization pipeline incorporating adaptive thresholding, contrast normalization, and token confidence filtering significantly improves token detection accuracy, bounding box alignment, and semantic coverage. Empirical evaluations across multiple programming tasks demonstrate substantial gains in AOI quality and predictive performance, with optimized AOIs enhancing BiLSTM model fit in modeling gaze behavior. The framework not only advances high-resolution attention modeling but also enables the concrete identification of comprehension strategies, such as novice regressions to operators or repeated fixations on delimiters and loop constructs, thereby supporting the development of adaptive, gaze-sensitive learning environments. This work represents an important step toward scalable and intelligent tutoring systems that deliver real-time feedback in programming education.

International Journal of Modern Physics C
Minzu University of China (CN), University of Malaya (MY)
Openalex Percentile: Top 61%
Gaze Tracking and Assistive Technology
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.