AST-MLEC: AST-Enhanced Multi-Label Error Classifier for Programming Education Support

Programming education has become a vital component of the modern STEM and STEAM curricula. Among the challenges that learners face, logical error codes that are syntactically correct but semantically incorrect are particularly difficult to identify and correct without guidance. To address this issue, we propose an abstract syntax tree (AST)-enhanced multi-label error classifier (AST-MLEC). This Transformer-based model performs fine-grained detection and classification of logical errors at the AST node level. The architecture integrates syntactic structures and token-level semantics through multi-stream encoding with tree positional encoding, enabling the model to capture both structural and contextual cues. Evaluations of submissions from the Aizu Online Judge demonstrated strong performance, achieving an F1-score of 0.6621 and exhibiting high precision in error localization and classification. In contrast to conventional token-based models, AST-MLEC provides interpretable feedback by identifying “where” an error occurs, “what” type it is, and “how” to fix it. By supporting automated, explainable feedback for novice programmers, our approach aligns with the goals of STEAM education, fostering more profound understanding, critical thinking, and self-directed learning in programming.

Authors

Institutions

Publication Details

Journal
Journal of Robotics and Mechatronics
Published
2026-02-19
DOI
https://doi.org/10.20965/jrm.2026.p0242
Primary Topic
Teaching and Learning Programming
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

AST-MLEC: AST-Enhanced Multi-Label Error Classifier for Programming Education Support

Editorial Office, Taku Matsumoto
Journal of Robotics and Mechatronics
Teaching and Learning Programming
article

AST-MLEC: AST-Enhanced Multi-Label Error Classifier for Programming Education Support

Editorial Office, Taku Matsumoto
article en

Abstract

Programming education has become a vital component of the modern STEM and STEAM curricula. Among the challenges that learners face, logical error codes that are syntactically correct but semantically incorrect are particularly difficult to identify and correct without guidance. To address this issue, we propose an abstract syntax tree (AST)-enhanced multi-label error classifier (AST-MLEC). This Transformer-based model performs fine-grained detection and classification of logical errors at the AST node level. The architecture integrates syntactic structures and token-level semantics through multi-stream encoding with tree positional encoding, enabling the model to capture both structural and contextual cues. Evaluations of submissions from the Aizu Online Judge demonstrated strong performance, achieving an F1-score of 0.6621 and exhibiting high precision in error localization and classification. In contrast to conventional token-based models, AST-MLEC provides interpretable feedback by identifying “where” an error occurs, “what” type it is, and “how” to fix it. By supporting automated, explainable feedback for novice programmers, our approach aligns with the goals of STEAM education, fostering more profound understanding, critical thinking, and self-directed learning in programming.

Journal of Robotics and MechatronicsVol. 38(1)
Hokkaido University of Science (JP)
Quality Education
Openalex Percentile: Top 58%
Teaching and Learning Programming
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.