Spatial Attention and Syntax Rule Enhanced Tree Decoder for Offine Handwritten Mathematical Expression Recognition
Preprint
Abstract
Offline Handwritten Mathematical Expression Recognition (HMER) has been dramatically advanced recently by employing tree decoders as part of the encoder-decoder method. Despite the tree decoder-based methods regard the expressions as a tree and parse 2D spatial structure to the tree nodes sequence, the performance of existing works is still poor due to the inevitable tree nodes prediction errors. Besides, they lack syntax rules to regulate the output of expressions. In this paper, we propose a novel model called Spatial Attention and Syntax Rule Enhanced Tree Decoder (SS-TD), which is equipped with spatial attention mechanism to alleviate the prediction error of tree structure and use syntax masks (obtained from the transformation of syntax rules) to constrain the occurrence of ungrammatical mathematical expression. In this way, our model can effectively describe tree structure and increase the accuracy of output expression. Experiments show that SS-TD achieves better recognition performance than prior models on CROHME 14/16/19 datasets, demonstrating the effectiveness of our model.Keywords
All Related Versions
This publication has 21 references indexed in Scilit:
- Relation-Based Representation for Handwritten Mathematical Expression Recognition2021
- An Encoder-Decoder Approach to Handwritten Mathematical Expression Recognition with Multi-head Attention and Stacked Decoder2021
- Handwritten Mathematical Expression Recognition via Paired Adversarial LearningInternational Journal of Computer Vision, 2020
- Pattern generation strategies for improving recognition of Handwritten Mathematical ExpressionsPattern Recognition Letters, 2019
- Image To Latex with DenseNet Encoder and Joint AttentionProcedia Computer Science, 2019
- Watch, attend and parse: An end-to-end neural network based approach to handwritten mathematical expression recognitionPattern Recognition, 2017
- Advancing the state of the art for handwritten math recognition: the CROHME competitions, 2011–2014International Journal on Document Analysis and Recognition (IJDAR), 2016
- An integrated grammar-based approach for mathematical expression recognitionPattern Recognition, 2016
- A global learning approach for an online handwritten mathematical expression recognition systemPattern Recognition Letters, 2014
- Optimal edge detection in two-dimensional imagesIEEE Transactions on Image Processing, 1996