Scanpath analysis of programming comprehension: A MultiMatch and clustering-based approach
In programming studies, inferring participants’ cognitive processing from eye movement behavior provides valuable insights into Performance Level (PL) and problem-solving strategies. This paper explores scanpath variation in eye-tracking data from 60 undergraduate students completing six multiple-choice programming tasks (MCPTs), each with multiple correct alternatives. Responses were categorized as Correct (C) or Partially Correct (P) and further grouped into High and Low Performance levels (PLs). Visual scanpaths were analyzed using the MultiMatch algorithm across five dimensions: Length, Position, Duration, Shape and Direction. Pairwise similarity scores were computed to reveal patterns of scanpath behavior, and K-means clustering with standard validity indices (Silhouette Score, Inertia, Davies–Bouldin Index) was applied to evaluate group-level differences. Results showed that Length and Position consistently reflected task structure, while Duration, Shape and especially Direction captured meaningful variation in attention allocation, scanpath geometry and sequencing. Ultimately, this study demonstrates that how students look, as reflected in temporal and directional scanpath features, is more informative for assessing cognitive strategies than where they look, offering practical opportunities to enhance adaptive learning technologies and real-time pedagogical support.
Authors
- Wudao Yang (ORCID: https://orcid.org/0000-0001-8411-1450)
- Wong Seng Yue (ORCID: https://orcid.org/0000-0001-9278-4348)
- M. A. Rasel (ORCID: https://orcid.org/0000-0002-2155-6070)
- Unaizah Obaidellah (ORCID: https://orcid.org/0000-0003-4822-2174)
Institutions
- Monash University Malaysia (MY)
- Minzu University of China (CN)
- University of Malaya (MY)
Publication Details
- Journal
- International Journal of Modern Physics C
- Published
- 2025-11-29
- DOI
- https://doi.org/10.1142/s0129183125420227
- Primary Topic
- Teaching and Learning Programming
- Type
- article
- Field-Weighted Citation Impact
- 0.00