Skip to main content
QUICK REVIEW

[Paper Review] Transformer based Urdu Handwritten Text Optical Character Reader

Mohammad Daniyal Shaiq, Musa Dildar Ahmed Cheema|arXiv (Cornell University)|Jun 9, 2022
Handwritten Text Recognition TechniquesComputer Science5 citations
TL;DR

This paper proposes a transformer-based architecture for Urdu handwritten text recognition, leveraging ResNet-18 for feature extraction and a custom transformer decoder to predict characters sequentially. Despite achieving a high character error rate (over 85%) due to limited training data, the work pioneers the use of transformers for low-resource Urdu handwriting OCR and establishes a foundation for future research in this underexplored domain.

ABSTRACT

Extracting Handwritten text is one of the most important components of digitizing information and making it available for large scale setting. Handwriting Optical Character Reader (OCR) is a research problem in computer vision and natural language processing computing, and a lot of work has been done for English, but unfortunately, very little work has been done for low resourced languages such as Urdu. Urdu language script is very difficult because of its cursive nature and change of shape of characters based on it's relative position, therefore, a need arises to propose a model which can understand complex features and generalize it for every kind of handwriting style. In this work, we propose a transformer based Urdu Handwritten text extraction model. As transformers have been very successful in Natural Language Understanding task, we explore them further to understand complex Urdu Handwriting.

Motivation & Objective

  • To develop a deep learning model capable of recognizing handwritten Urdu text, a low-resource language with complex cursive script.
  • To explore the effectiveness of transformer architectures in handling context-dependent, ligature-heavy Urdu handwriting.
  • To address the lack of publicly available, large-scale Urdu handwritten datasets and commercial OCR solutions for cursive Urdu.
  • To establish a baseline model for future research in Urdu handwriting recognition using attention-based sequence modeling.
  • To investigate the feasibility of end-to-end character-level sequence prediction using transformers without pretraining on large-scale language data.

Proposed method

  • Utilizes ResNet-18, pre-trained on ImageNet, to extract high-dimensional features from input handwritten Urdu images.
  • Processes the output of ResNet-18 through fully connected layers to generate sequence embeddings suitable for transformer input.
  • Employs a transformer decoder with causal self-attention to predict characters one-by-one, modeling long-range dependencies in the sequence.
  • Trains the model using masked language modeling, where ground-truth labels are masked during training to predict the correct character sequence.
  • Does not use pre-trained weights for the transformer, training it from scratch to adapt to the specific characteristics of Urdu handwriting.
  • Treats the OCR task as a sequence-to-sequence classification problem, with input images mapped to character sequences via learned representations.

Experimental results

Research questions

  • RQ1Can a transformer-based architecture effectively recognize handwritten Urdu text despite the language's complex cursive script and high ligature count?
  • RQ2How does the performance of a transformer model trained from scratch on limited Urdu handwriting data compare to existing approaches in low-resource settings?
  • RQ3To what extent can self-attention mechanisms in transformers capture contextual dependencies in Urdu handwriting, where character shapes vary significantly based on position?
  • RQ4Can end-to-end sequence modeling with a transformer eliminate the need for separate language models in Urdu handwriting recognition?
  • RQ5What are the key limitations of applying transformers to low-resource handwriting recognition when training data is scarce?

Key findings

  • The model achieved a character error rate (CER) exceeding 85%, indicating poor convergence and performance due to insufficient training data.
  • Despite the high error rate, the model successfully demonstrated the feasibility of applying transformer architectures to Urdu handwritten text recognition.
  • The lack of large-scale, diverse Urdu handwritten datasets severely hindered model convergence and generalization.
  • Training the transformer from scratch without pretraining on Urdu language data limited its ability to learn meaningful sequence representations.
  • The long output sequence length due to character-level prediction may have contributed to training instability and poor performance.
  • The work establishes a foundational framework for future research, particularly in fine-tuning pre-trained language models or using data augmentation to improve performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.