A Transformer Architecture for Online Gesture Recognition of Mathematical Expressions
Ramo, Mirco, Silvestre, Guénolé C. M.
–arXiv.org Artificial Intelligence
The Transformer architecture is shown to provide a powerful framework as an end-to-end model for building expression trees from online handwritten gestures corresponding to glyph strokes. In particular, the attention mechanism was successfully used to encode, learn and enforce the underlying syntax of expressions creating latent representations that are correctly decoded to the exact mathematical expression tree, providing robustness to ablated inputs and unseen glyphs. For the first time, the encoder is fed with spatio-temporal data tokens potentially forming an infinitely large vocabulary, which finds applications beyond that of online gesture recognition. A new supervised dataset of online handwriting gestures is provided for training models on generic handwriting recognition tasks and a new metric is proposed for the evaluation of the syntactic correctness of the output expression trees. A small Transformer model suitable for edge inference was successfully trained to an average normalised Levenshtein accuracy of 94%, resulting in valid postfix RPN tree representation for 94% of predictions.
arXiv.org Artificial Intelligence
Nov-4-2022
- Country:
- North America > United States
- New York (0.04)
- Europe
- Italy > Tuscany
- Pisa Province > Pisa (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Italy > Tuscany
- Asia > Bangladesh
- Dhaka Division > Dhaka District > Dhaka (0.04)
- North America > United States
- Genre:
- Research Report (0.64)
- Overview (0.46)
- Technology:
- Information Technology > Artificial Intelligence
- Vision (1.00)
- Natural Language (1.00)
- Machine Learning
- Pattern Recognition (1.00)
- Neural Networks > Deep Learning (1.00)
- Information Technology > Artificial Intelligence