WHATSNet: a wavelet-guided hybrid attention token selector for handwritten mathematical expression recognition
Abstract
Handwritten mathematical expression recognition (HMER) is crucial for intelligent human–machine interaction systems but remains challenging due to large variations in handwriting styles and the ambiguity of similar symbols. To address these challenges, we introduce WHATSNet, a framework for offline HMER. This framework combines wavelet transform techniques with advanced feature selection strategies. Unlike traditional spatial-domain methods, WHATSNet utilizes multiscale wavelet decomposition to extract style-invariant structural patterns. The model mitigates handwriting artifacts, such as noise and inconsistent symbol shapes, using adaptive frequency filtering. A hybrid attention mechanism is introduced to capture both fine-grained details and the global structural context. This mechanism is enhanced by a dual-query coverage attention mechanism, which enhances sequential prediction efficiency by incorporating historical context. Extensive evaluations on the CROHME benchmark datasets (2014, 2016, and 2019) show that WHATSNet outperforms state-of-the-art methods. The model achieves recognition accuracy improvements of 5.02%, 4.58%, and 5.07%, respectively. These results confirm the effectiveness of combining wavelet-based feature extraction with hybrid attention mechanisms for improving HMER performance. The code will be released at https://github.com/runminwang/WHATSNet.
BibTeX
@article{yu2025whatsnet,
author = {C. Yu and Runmin Wang and Hanqiu Xu and X. Song and Shuai Ma and Juan Xu and Xiangbin Liu and Shengyou Qian},
title = {{WHATSNet: a wavelet-guided hybrid attention token selector for handwritten mathematical expression recognition}},
journal = {Journal of Electronic Imaging},
year = {2025},
doi = {10.1117/1.jei.34.4.043031},
}Ask Althea to put this paper to the test.
Loading related content...