Advancing handwritten mathematical expression recognition using graph neural networks and tree-aware transformation

Handwritten Mathematical Expression Recognition (HMER) is a crucial research field that uses artificial intelligence and computer vision to convert handwritten mathematical materials into machine-readable formats containing LaTeX and digital text. Students and educators can write equations naturally on paper or digital devices, and HMER systems can instantly convert them into structured digital content for editing, sharing, or evaluation. HMER is challenging because mathematical expressions combine 2D symbol organisation with multiple handwriting styles and complex mathematical symbols. Mathematical expressions show different spatial relationships between their symbols, which include superscripts, and subscripts and fractional parts. Existing methods use convolutional neural networks to extract features, and then a Transformer-based model generates sequences from those features. The current work proposes a framework, which consists of three phases to solve the above-mentioned problem statement. The initial phase of the system uses Dense Convolutional Networks (DenseNets) to enable multi-scale feature learning through their dense connectivity system which improves gradient propagation across the complete network. The second phase uses a grid-based Graph Neural Network (GNN) to refine neighborhood spatial relationships, which enables the sequence modeling process while maintaining the local spatial structure of the data. The TAMER decoder has been designed in phase three to create models, which predict tokens and the tree loss learns the parent-child relationships that generate LaTeX sequences that maintain structural integrity. The proposed approach demonstrated effective performance during experimental evaluation with the CROHME benchmark datasets, which enabled the creation of semantically correct mathematical expressions that maintained their structural integrity. The model achieved expression recognition rate (ExpRate) of \(55.72 \pm 2.26\,\%\) , \(60.82 \pm 1.69\,\%\) , \(76.53 \pm 1.63\,\%\) , and \(82.93 \pm 1.31\,\%\) on CROHME2014, CROHME2016, CROHME2019, and CROHME2023 datasets respectively, demonstrating competitive performance gains. The model shows better performance on difficult datasets, which include CROHME2019 and CROHME2023, because it can generalize to new data while effectively processing advanced structured mathematical expressions. Further, the conducted ablation study was demonstrated the importance of the components’ integrity in the proposed framework.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-11-30
DOI
https://doi.org/10.1038/s41598-026-79928-7
Primary Topic
Handwritten Text Recognition Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Advancing handwritten mathematical expression recognition using graph neural networks and tree-aware transformation

Padmanaban Sriramakrishnan, Vinodkumar Arumugam, Vasantha Kamalee Sethu
Scientific Reports
Handwritten Text Recognition Techniques
article

Advancing handwritten mathematical expression recognition using graph neural networks and tree-aware transformation

Padmanaban Sriramakrishnan, Vinodkumar Arumugam, Vasantha Kamalee Sethu
article en

Abstract

Handwritten Mathematical Expression Recognition (HMER) is a crucial research field that uses artificial intelligence and computer vision to convert handwritten mathematical materials into machine-readable formats containing LaTeX and digital text. Students and educators can write equations naturally on paper or digital devices, and HMER systems can instantly convert them into structured digital content for editing, sharing, or evaluation. HMER is challenging because mathematical expressions combine 2D symbol organisation with multiple handwriting styles and complex mathematical symbols. Mathematical expressions show different spatial relationships between their symbols, which include superscripts, and subscripts and fractional parts. Existing methods use convolutional neural networks to extract features, and then a Transformer-based model generates sequences from those features. The current work proposes a framework, which consists of three phases to solve the above-mentioned problem statement. The initial phase of the system uses Dense Convolutional Networks (DenseNets) to enable multi-scale feature learning through their dense connectivity system which improves gradient propagation across the complete network. The second phase uses a grid-based Graph Neural Network (GNN) to refine neighborhood spatial relationships, which enables the sequence modeling process while maintaining the local spatial structure of the data. The TAMER decoder has been designed in phase three to create models, which predict tokens and the tree loss learns the parent-child relationships that generate LaTeX sequences that maintain structural integrity. The proposed approach demonstrated effective performance during experimental evaluation with the CROHME benchmark datasets, which enabled the creation of semantically correct mathematical expressions that maintained their structural integrity. The model achieved expression recognition rate (ExpRate) of \(55.72 \pm 2.26\,\%\) , \(60.82 \pm 1.69\,\%\) , \(76.53 \pm 1.63\,\%\) , and \(82.93 \pm 1.31\,\%\) on CROHME2014, CROHME2016, CROHME2019, and CROHME2023 datasets respectively, demonstrating competitive performance gains. The model shows better performance on difficult datasets, which include CROHME2019 and CROHME2023, because it can generalize to new data while effectively processing advanced structured mathematical expressions. Further, the conducted ablation study was demonstrated the importance of the components’ integrity in the proposed framework.

Scientific Reports
Amrita Vishwa Vidyapeetham (IN)
Handwritten Text Recognition Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon