ICDAR 2023 CROHME: Competition on Recognition of Handwritten Mathematical Expressions

Yejing Xie, Harold Mouchère, Foteini Simistira Liwicki, Sumit Rakesh, Rajkumar Saini, Masaki Nakagawa, Cuong Tuan Nguyen, Thanh-Nghia TruongICDAR 2023

Abstract

The 7th edition of the Competition on Recognition of Handwritten Mathematical Expressions (CROHME), held at ICDAR 2023, represents a significant milestone in the field of document analysis. For the first time, the competition provided a unified dataset and evaluation framework allowing for a direct "apples-to-apples" comparison between on-line (stroke-based), off-line (image-based), and bi-modal recognition systems. This paper summarizes the competition's methodology, the introduction of a new challenging dataset of 3,905 equations, and the performance of participating systems. The results demonstrate that while on-line systems generally outperform off-line ones, bi-modal approaches leveraging both temporal and spatial information currently offer the highest accuracy in recognizing complex mathematical structures.

Introduction

Since its inception in 2011, the CROHME series has been the primary benchmark for Handwritten Mathematical Expression (HME) recognition. HME recognition is inherently more complex than standard optical character recognition (OCR) due to the two-dimensional nature of mathematical notation. Recognizing an equation requires not just identifying individual characters, but understanding a non-linear structure involving superscripts, subscripts, fractions, and nested radicals. The 2023 edition aimed to bridge the gap between researchers working on temporal stroke data and those working on static images by providing a common ground for evaluation.

Modalities in Mathematical Recognition

Research in HME recognition has traditionally been divided into two distinct silos based on the input data:

  1. On-line Recognition: This approach utilizes temporal information, such as the sequence of $x,y$ coordinates captured by a stylus or digital pen. This data provides rich cues about the writer's intent and the order of symbol construction, which can simplify structural parsing.
  2. Off-line Recognition: This approach relies on static images, such as scans or photographs. It lacks temporal information and must deal with variations in ink texture, background noise, and image quality.
An example of an on-line handwritten mathematical expression, where the recognition system processes the sequence of strokes.

The 2023 competition also introduced a bi-modal task, where systems had access to both the stroke data (InkML) and the rendered image (PNG), allowing models to leverage both spatial and temporal features simultaneously.

Methodology and Unified Evaluation

To facilitate a fair comparison across modalities, the competition employed the Symbol Label Graph (SymLG) representation. SymLG provides a standardized way to describe the ground truth of an expression, including symbol identities and their structural relationships (e.g., "above", "below", "inside"). This allows any system—regardless of whether it processes strokes or pixels—to be evaluated against the same standard.

Participating teams predominantly used deep learning architectures, specifically:

  • Encoder-Decoder Models: Utilizing CNNs or DenseNets as encoders to extract features and LSTMs or Transformers as decoders to generate LaTeX or SymLG outputs.
  • Attention Mechanisms: Helping models focus on specific parts of the input sequence or image during the decoding process.
  • Structural Constraints: Some systems integrated LL(1) or Context-Free Grammar (CFG) parsers to ensure that the recognized expressions followed valid mathematical syntax.
An example of an off-line handwritten mathematical expression, processed as a static image without temporal stroke information.

Dataset and Results

The competition utilized a massive training pool and a challenging new test set. A total of 3,905 new handwritten equations were collected from 150 participants across France, Japan, and Sweden. The 2023 Test Set comprised 2,300 of these new samples, provided in both InkML and PNG formats.

The results underscored the advantage of multi-modal data. The team Sunia swept the competition, winning all three tasks. Their performance on the 2023 Test Set was:

  • Task 1 (On-line): 82.34% Correct Expression Rate.
  • Task 2 (Off-line): 70.81% Correct Expression Rate.
  • Task 3 (Bi-modal): 84.12% Correct Expression Rate.

While full expression recognition remains difficult, structure recognition (correctly identifying the layout even if a symbol is misclassified) reached over 94% for the top bi-modal system. Interestingly, recognition rates were lower on the 2023 set compared to the 2019 set, suggesting that the new data—which includes real-world scans and unconstrained writing—is more representative of the "noise" found in practical applications.

Conclusion and Future Work

ICDAR 2023 CROHME has demonstrated that while deep learning has significantly advanced HME recognition, a significant gap remains for purely off-line systems, which lag nearly 12% behind on-line methods. Common failure points include simple symbols like '1', '2', and '-', which are easily confused with structural elements like fraction bars.

Future directions include exploring unsupervised or weakly supervised learning to leverage large amounts of unlabeled mathematical data and developing more cost-effective annotation methods. The success of bi-modal systems suggests that integrating multiple perspectives is the most promising path toward robust, human-level recognition of handwritten mathematics.

Summary updated

BibTeX
@inproceedings{xie2023icdar,
  author = {Yejing Xie and Harold Mouchère and Foteini Simistira Liwicki and Sumit Rakesh and Rajkumar Saini and Masaki Nakagawa and Cuong Tuan Nguyen and Thanh-Nghia Truong},
  title = {{ICDAR 2023 CROHME: Competition on Recognition of Handwritten Mathematical Expressions}},
  booktitle = {ICDAR},
  year = {2023},
  doi = {10.1007/978-3-031-41679-8\_33},
}
Figure