Improving Handwritten Mathematical Expression Recognition via Integrating Convolutional Neural Network With Transformer and Diffusion-Based Data Augmentation

被引:0
作者
Zhang, Yibo [1 ]
Li, Gaoxu [2 ]
机构
[1] Beijing Jiaotong Univ, Sch Phys Sci & Engn, Beijing 100044, Peoples R China
[2] Xian Jiaotong Liverpool Univ, Sch Adv Technol, Suzhou 215123, Jiangsu, Peoples R China
来源
IEEE ACCESS | 2024年 / 12卷
基金
中国国家自然科学基金;
关键词
CNN; data augmentation; denoising diffusion probabilistic model; DDPM; handwritten mathematical expression recognition; HMER; Transformer;
D O I
10.1109/ACCESS.2024.3399919
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Handwritten mathematical expression recognition (HMER) poses a formidable challenge due to the intricate two-dimensional structures and diverse handwriting styles. This paper introduces a novel approach to improve HMER accuracy by employing an integrated, high-capacity architecture that combines Transformer and Convolutional Neural Network (CNN) models, along with a denoising diffusion probabilistic model (DDPM)-based data augmentation technique. We explore three combination strategies for an attention-based encoder-decoder (AED) HMER model: 1) The "Tandem" strategy, which harnesses CNN features within a Transformer encoder to capture global interdependencies; 2) The "Parallel" strategy, which integrates Transformer encoder outputs with CNN outputs to achieve comprehensive feature fusion; 3) The "Mixing" strategy, which introduces multi-head self-attention (MHSA) at the final stage of the CNN. We evaluate these methods using the CROHME benchmark dataset and conduct a detailed comparative analysis. All three approaches significantly enhance model performance. Notably, the "Tandem" approach achieves expression recognition rates (ExpRate) of 54.85% and 58.56% on the CROHME 2016 and 2019 test sets, respectively, while the "Parallel" method attains 55.63% and 57.39% on the same test sets. Furthermore, we introduce an innovative data augmentation approach that utilizes DDPM to generate synthetic training samples. The DDPM, conditioned on LaTeX-rendered images, bridges the gap between printed and handwritten expressions, enabling the creation of realistic, stylistically diverse handwriting samples. This augmentation boosts the ExpRates of all strategies on both CROHME 2016 and 2019 test sets, yielding improvements of 1.6-4.6% relative to the unaugmented dataset.
引用
收藏
页码:67945 / 67956
页数:12
相关论文
共 53 条
  • [31] Image to LaTeX with Graph Neural Network for Mathematical Formula Recognition
    Peng, Shuai
    Gao, Liangcai
    Yuan, Ke
    Tang, Zhi
    [J]. DOCUMENT ANALYSIS AND RECOGNITION - ICDAR 2021, PT II, 2021, 12822 : 648 - 663
  • [32] Perez E, 2018, AAAI CONF ARTIF INTE, P3942
  • [33] Ramesh A., 2022, arXiv
  • [34] Saharia C, 2022, Arxiv, DOI [arXiv:2205.11487, 10.48550/]
  • [35] Song Yang, 2021, P INT C LEARN REPR I
  • [36] Bottleneck Transformers for Visual Recognition
    Srinivas, Aravind
    Lin, Tsung-Yi
    Parmar, Niki
    Shlens, Jonathon
    Abbeel, Pieter
    Vaswani, Ashish
    [J]. 2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR 2021, 2021, : 16514 - 16524
  • [37] Improvement of End-to-End Offline Handwritten Mathematical Expression Recognition by Weakly Supervised Learning
    Thanh-Nghia Truong
    Cuong Tuan Nguyen
    Khanh Minh Phan
    Nakagawa, Masaki
    [J]. 2020 17TH INTERNATIONAL CONFERENCE ON FRONTIERS IN HANDWRITING RECOGNITION (ICFHR 2020), 2020, : 181 - 186
  • [38] A survey on handwritten mathematical expression recognition: The rise of encoder-decoder and GNN models
    Truong, Thanh-Nghia
    Nguyen, Cuong Tuan
    Zanibbi, Richard
    Mouchere, Harold
    Nakagawa, Masaki
    [J]. PATTERN RECOGNITION, 2024, 153
  • [39] Ulyanov D, 2017, Arxiv, DOI [arXiv:1607.08022, 10.48550/arXiv.1607.08022]
  • [40] Vaswani A, 2017, ADV NEUR IN, V30