Skip to content
Open access

Transformer Framework with Dynamic Learning Rate Optimisation for Offline Devanagari Character Recognition

Aug 2026 · African Journal Of Applied Research · 0 citations · 12 references

TL;DR

A unified multi-attention framework was developed that explicitly optimises structural handwritten character script recognition through an adaptive multi-phase learning-rate schedule, incorporating global and hierarchical local transformer operations (ViT and Swin Transformer), respectively.

Abstract

Purpose: In this study, we explored the effect of multi-scale hybrid deep learning architectures and adaptive optimisation on offline Devanagari handwritten character recognition (HWCR) performance. CNNs are local networks that have been shown to excel at extracting local features but are unable to process the context of complex character configurations. Design/Methodology/Approach: This paper introduces a unified hybrid multi-attention deep learning framework which systematically combines the complementary merits of CNN layers, the Vision Transformer (ViT), and the Swin Transformer. In conjunction with a sequence-modelling layer based on Bidirectional Long Short-Term Memory (BiLSTM) and a Connectionist Temporal Classification (CTC)- based decoding layer, this visual extraction pipeline eliminates the need for explicit character segmentation. The handwritten Devanagari character dataset from Kaggle was used, but images were resized to 64 x 256 to define the features of input images and define the evaluation benchmarks. To prevent premature changes in the parameters and to pass through plateaus more gracefully, we adopted a dynamic learning rate optimisation scheme based on linear warm-up, cosine annealing, and validation loss. Research Limitation: Misclassification issues remain for localised areas with highly stylised writing, overlapping strokes, or partially faded handwriting lines. Findings: The baseline CNN + BiLSTM architecture achieves an accuracy of 93.18%. Incorporating global attention via the Vision Transformer improves accuracy to 95.02%, and adding hierarchical localised window attention through the Swin Transformer increases performance to 96.41%. Introducing the adaptive learning rate strategy yields the final proposed model pipeline, which outperforms all standalone and baseline configurations, achieving a peak classification accuracy of 97.86%, a weighted precision of 0.9829, and a weighted F1-score of 0.9783. Practical Implication: For the practical implementation and evaluation of the end-to-end framework, we have used the PyTorch deep learning library in a GPU-enabled computing environment. Social Implication: This research will contribute to improving automated document indexing, archival digitisation, and language accessibility services for widely used scripts in Indian languages. Originality/Value: A unified multi-attention framework was developed that explicitly optimises structural handwritten character script recognition through an adaptive multi-phase learning-rate schedule, incorporating global and hierarchical local transformer operations (ViT and Swin Transformer), respectively.  

Read PDF

Similar papers

Open access Aug 2026

Improved recognition of Telugu handwritten characters through synthetic data generation and attention-based modeling

The proposed system outperforms several current CNN-, RNN-, and heuristic-based techniques, achieving character recognition accuracy of 97.89% and word recognition accuracy of 97.34%, and confirms the efficacy of integrating transformer-based learning with generative AI.

Padmavathi Pragada, D. Ch · 0 citations
Open access Jul 2026

A Hybrid Vision Mamba and Transformer Architecture for Offline Recognition of Handwritten Marathi Characters

A Hybrid Vision Mamba and Transformer (HVMT), framework for stronger offline handwritten Marathi character recognition and a good fit for things like intelligent document analysis, handwritten document digitization, archival preservation, and several other Indic script recognition tasks and more.

S. Khandakhani, Sachikanta Dash, Sasmita Padhy et al. · 0 citations
Open access 2026

Multi-Scale Transformer-Based Lexicon-Guided Handwritten Text Recognition Using Adaptive Feature Fusion

This paper proposes a Multi-Scale Transformer-Based Lexicon-Guided HTR framework built around an Adaptive Feature Fusion (AFF) mechanism, which trains a Transformer encoder with multi-head self-attention that models long-range context far more effectively than bidirectional recurrent layers.

Lalita Kumari · 0 citations
Preprint Aug 2026

NepScript Genesis: Neural Architecture Search for Handwritten Devanagari Digit Synthesis

NepScript Genesis, a Neural Architecture Search framework for automated Generative Adversarial Network (GAN) discovery, applied to conditional Devanagari handwritten digit synthesis is introduced, demonstrating that NAS-optimized synthesis produces digits of sufficient quality to benefit practical recognition pipelines...

Mausam Gurung, Prabin Neupane, S. Acharya · 0 citations
Conference Jul 2026

Comparative Performance Analysis of Vision Transformer (ViT) and Convolutional Neural Network (CNN) Architectures for Semarang Batik Motif Classification

Vision Transformers (ViT) capture global image context through self-attention but are data-hungry, typically underperforming Convolutional Neural Networks (CNNs) on the small datasets common in fine-grained tasks such as batik motif recognition. This study investigates whether a ViT, trained via knowledge distillation...

Rafi Alifa Bagja, B. Purnama · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.