StrokeNet: Unveiling How to Learn Fine-Grained Interactions in Online Handwritten Stroke Classification
Online handwritten stroke classification faces challenges in modeling fine-grained semantic relationships due to high variability in writing styles, ambiguous content, and dynamic spatial positioning. To address the limitation of existing methods in capturing local stroke interactions, this paper proposes a reference-point sequence coupling representation and an Inline Sequence Attention module, incorporating a Cross-Ellipse Query mechanism for multi-scale spatial feature aggregation. A joint optimization framework is introduced to simultaneously predict stroke categories and semantic transition relations. The method integrates dynamic reference-point selection, sequential modeling, spatial query clustering, and multi-task learning (primary classification + regression + auxiliary branch), enabling end-to-end training. Evaluated on public benchmarks including CASIA-onDo, it achieves state-of-the-art performance—improving accuracy from 93.81% to 95.54%—with significantly enhanced robustness and generalization capability.