AlexU-Word: A New Dataset for Isolated-Word Closed-Vocabulary Offline Arabic Handwriting Recognition

Mohamed E. Hussein, Marwan Torki, Ahmed Elsallamy, Mahmoud FayyazarXiv 2014

Introduction

Arabic handwriting recognition presents a significant challenge in computer vision due to the script's cursive nature and the positional variability of its characters. Unlike Latin script, an Arabic letter's appearance can change drastically depending on whether it appears at the beginning, middle, or end of a word, or in isolation. This results in 112 possible letter-shape combinations for the 28-letter alphabet. Existing datasets often struggle with being either too large and unbalanced or focused solely on word-level recognition, which limits their utility for developing more granular, character-based systems.

To address these issues, researchers from Alexandria University have introduced AlexU-Word, a specialized dataset designed to provide comprehensive coverage of all Arabic letter shapes within a compact, manageable vocabulary.

The AlexU-Word Dataset

The AlexU-Word dataset consists of 25,114 offline handwritten word samples. Its core innovation lies in its vocabulary: 109 unique Arabic words carefully selected to encompass all 112 possible letter-shape variations. This targeted approach ensures that models trained on the dataset are exposed to the full morphological range of the script without the need for massive, redundant datasets.

Data was collected from 907 writers, primarily university students, ensuring a wide variety of handwriting styles. The collection process also captured metadata regarding the gender and handedness of the participants, providing additional dimensions for analysis.

Examples of filled forms from the AlexU-Word dataset showing different handwriting styles across four models.

Methodology

The researchers developed a robust pipeline for processing the handwritten samples:

  1. Data Acquisition and Preprocessing: Writers used blue pens on printed forms. By processing only the blue color channel, the researchers effectively isolated the handwriting from the form's black printed lines. To correct for scanning artifacts like rotation or translation, the forms featured rhombus-shaped markers at each corner. Harris corner detection was used to identify these markers, allowing for an automated canonical transformation of the images.
  2. Feature Extraction: The study compared two primary descriptors: Histogram of Oriented Gradients (HOG) and Scale Invariant Feature Transform (SIFT). Both were implemented using a "spatial pyramid" approach (HOG7 and SIFT7), where the word image is divided into seven overlapping sub-windows to capture both global and local spatial structures.
  3. Classification: Three machine learning models were evaluated: k-Nearest Neighbor (k-NN), Support Vector Machines (SVM), and Artificial Neural Networks (ANN).
A sample scanned form illustrating the layout and the handwritten entries collected for the dataset.

Results and Analysis

The experimental results established a strong baseline for closed-vocabulary recognition on the AlexU-Word dataset. The combination of SIFT7 features and an Artificial Neural Network (ANN) achieved the highest accuracy of 92.16%.

Key findings include:

  • SIFT Superiority: SIFT7 consistently outperformed HOG7 across all classifiers. This suggests that SIFT is better suited for capturing the complex, scale-invariant curves characteristic of Arabic script.
  • Classifier Performance: Both ANN and SVM showed high performance, while k-NN was significantly less effective, peaking at 79.73% accuracy.
  • Recognition Accuracy: Nine word classes were recognized with 100% accuracy. Errors typically occurred between words with nearly identical visual structures, often differing only by the placement or number of dots (diacritics).

Conclusion and Future Work

AlexU-Word provides a streamlined yet comprehensive resource for Arabic handwriting research. By prioritizing character-shape coverage over sheer volume, it offers an efficient path toward robust recognition systems. The authors' future plans involve manually segmenting these 25,000+ samples into individual characters. This effort will create a massive, balanced ground-truth database for character-level detection, moving the field away from error-prone segmentation heuristics toward more advanced object-detection-style recognition paradigms.

Summary updated

BibTeX
@misc{hussein2014alexu,
  author = {Mohamed E. Hussein and Marwan Torki and Ahmed Elsallamy and Mahmoud Fayyaz},
  title = {{AlexU-Word: A New Dataset for Isolated-Word Closed-Vocabulary Offline Arabic Handwriting Recognition}},
  year = {2014},
  eprint = {1411.4670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1411.4670},
}
Figure