Deep transformer-based architecture for the recognition of mathematical equations from real-world math problems

Identifying mathematical equations from real-world math problems presents a unique and challenging task within the field of Natural Language Processing (NLP). It has a wide range of applications in various areas, such as academics, digital content design, and the development of automatic or interactive learning systems. However, the accurate understanding of these equations still needs to be enhanced due to the intrinsic complexity of mathematical symbols and various structural formats. Additionally, the unique syntax, diverse symbols, and complex structure of mathematical equations present significant obstacles that traditional NLP methods and Optical Character Recognition (OCR) systems need help to overcome. In this research, we utilize deep transformer architecture to recognize mathematical equations, and we have utilized our novel dataset with 3433 distinct observations. This dataset, which we have collected to include a diverse range of mathematical equations, is used to predict six ( <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>z</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mo>+</mml:mo> <mml:mi>y</mml:mi></mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>z</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mo>-</mml:mo> <mml:mi>y</mml:mi></mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>z</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mi>y</mml:mi></mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>z</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mo>/</mml:mo> <mml:mi>y</mml:mi></mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>y</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mo>!</mml:mo></mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>y</mml:mi> <mml:mo>=</mml:mo> <mml:msqrt><mml:mrow><mml:mi>x</mml:mi></mml:mrow> </mml:msqrt> </mml:math> ) basic mathematical equations. We applied different transformer-based architectures, such as BERT, ELECTRA, XLNet, RoBERTa, and DistilBERT, and BERT performs best with 99.80% accuracy. To the best of our knowledge, this is the first NLP work in any language where we recognize the equation from the mathematical text.

Authors

Institutions

Publication Details

Journal
Heliyon
Published
2024-10-01
DOI
https://doi.org/10.1016/j.heliyon.2024.e39089
Citations
5
Primary Topic
Neural Networks and Applications
Type
article
Field-Weighted Citation Impact
1.74
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Deep transformer-based architecture for the recognition of mathematical equations from real-world math problems

Md. Rawnak Saif Adib, Md Shoaib Ahmed, Farhana Islam, Tanjim Taharat Aurpa et al.
5 citations
Heliyon
Neural Networks and Applications
1.74
article

Deep transformer-based architecture for the recognition of mathematical equations from real-world math problems

Md. Rawnak Saif Adib, Md Shoaib Ahmed, Farhana Islam, Tanjim Taharat Aurpa, Samiha Maisha Jeba, Kawser Hossain, Farzana Akter, Kazi Noshin Fariha
article en
5 citations

Abstract

Identifying mathematical equations from real-world math problems presents a unique and challenging task within the field of Natural Language Processing (NLP). It has a wide range of applications in various areas, such as academics, digital content design, and the development of automatic or interactive learning systems. However, the accurate understanding of these equations still needs to be enhanced due to the intrinsic complexity of mathematical symbols and various structural formats. Additionally, the unique syntax, diverse symbols, and complex structure of mathematical equations present significant obstacles that traditional NLP methods and Optical Character Recognition (OCR) systems need help to overcome. In this research, we utilize deep transformer architecture to recognize mathematical equations, and we have utilized our novel dataset with 3433 distinct observations. This dataset, which we have collected to include a diverse range of mathematical equations, is used to predict six ( <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>z</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mo>+</mml:mo> <mml:mi>y</mml:mi></mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>z</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mo>-</mml:mo> <mml:mi>y</mml:mi></mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>z</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mi>y</mml:mi></mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>z</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mo>/</mml:mo> <mml:mi>y</mml:mi></mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>y</mml:mi> <mml:mo>=</mml:mo> <mml:mi>x</mml:mi> <mml:mo>!</mml:mo></mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>y</mml:mi> <mml:mo>=</mml:mo> <mml:msqrt><mml:mrow><mml:mi>x</mml:mi></mml:mrow> </mml:msqrt> </mml:math> ) basic mathematical equations. We applied different transformer-based architectures, such as BERT, ELECTRA, XLNet, RoBERTa, and DistilBERT, and BERT performs best with 99.80% accuracy. To the best of our knowledge, this is the first NLP work in any language where we recognize the equation from the mathematical text.

HeliyonVol. 10(20)
Boise State University (US), Gazipur Agricultural University (BD), International University of Business Agriculture and Technology (BD), University of Frontier Technology, Bangladesh (BD), Jahangirnagar University (BD)
Openalex Percentile: Top 13%
Neural Networks and Applications
1.74
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.