An Effective Approach to Offline Arabic Handwriting Recognition

Jafaar Alabodi, Xue LiInternational Journal of Artificial Intelligence & Applications 2013

Abstract

Segmentation is the most challenging part of the Arabic handwriting recognition, due to the unique characteristics of Arabic writing that allows the same shape to denote different characters. In this paper, an off-line Arabic handwriting recognition system is proposed. The processing details are presented in three main stages. Firstly, the image is skeletonized to one pixel thin. Secondly, transfer each diagonally connected foreground pixel to the closest horizontal or vertical line. Finally, these orthogonal lines are coded as vectors of unique integer numbers; each vector represents one letter of the word. In order to evaluate the proposed techniques, the system has been tested on the IFN/ENIT database, and the experimental results show that our method is superior to those methods currently available.

1. Introduction

Arabic script presents a significant challenge for Optical Character Recognition (OCR) systems. Unlike Latin scripts, Arabic is inherently cursive, written from right to left, and features characters that change shape based on their position within a word. The primary bottleneck in recognition is "segmentation"—the process of isolating individual letters from a word.

2. The Segmentation Challenge

Traditional OCR systems often fail during the segmentation phase. Errors typically fall into three categories: misplaced segmentation, over-segmentation (splitting a single character into multiple parts), and under-segmentation (failing to separate connected characters). These errors propagate through the system, leading to poor final recognition rates.

Common segmentation errors in Arabic script: misplaced, over, and under segmentation.

3. Proposed System Architecture

To overcome these challenges, we propose a system that avoids traditional "cutting" methods. Instead, it focuses on the underlying geometric skeleton of the script, converting complex cursive strokes into a standardized "DNA-like" sequence of integers.

The proposed system architecture for offline Arabic handwriting recognition.

4. Methodology

The proposed pipeline consists of four critical stages:

4.1 Custom Binarization

We developed a robust binarization technique that samples pixel values from the four corners and the center of the image. This allows for a dynamic threshold that effectively filters out noise, even in documents with uneven backgrounds.

4.2 Skeletonization via 3x3 Coding

The text is thinned to a single-pixel width using a 3x3 sliding window. By assigning powers of two to neighboring pixels, we create 256 unique patterns to identify essential skeleton pixels while removing redundant edges.

4.3 Orthogonal Regression

This novel step converts all diagonal connections into purely horizontal or vertical lines. By "squaring off" the handwriting, we remove the noise of individual writing styles and create a canonical form that preserves the structural essence of the characters.

4.4 Vector Sequencing (The "DNA" Approach)

The resulting orthogonal lines are encoded into a sequence of unique integers. Much like DNA codons, specific sequences of these integers represent specific Arabic letters. This transforms recognition into a fast mathematical lookup process.

5. Experimental Results

The system was evaluated using the IFN/ENIT database, the gold standard for Arabic handwriting research. Our approach achieved a 93.3% accuracy rate, outperforming several state-of-the-art methods such as Dreuw et al. (92.86%) and Al-Hajj et al. (90.26%). Additionally, the system demonstrated versatility by achieving 93.1% accuracy on a dataset of English capital letters.

6. Limitations and Future Work

While the results are impressive, the system currently relies on a predefined table of vectors. As the vocabulary grows or more complex ligatures are introduced, this lookup table may need to be expanded. Future work will focus on the system's adaptability to connected Latin cursive and optimizing the computational efficiency of the skeletonization process.

7. Conclusion

By treating cursive handwriting as a sequence of discrete geometric codes, this approach effectively bypasses the traditional pitfalls of Arabic script segmentation. The results on benchmark datasets confirm that simplifying handwriting into a canonical orthogonal representation is a powerful strategy for high-accuracy offline recognition.

Summary updated

BibTeX
@article{alabodi2013effective,
  author = {Jafaar Alabodi and Xue Li},
  title = {{An Effective Approach to Offline Arabic Handwriting Recognition}},
  journal = {International Journal of Artificial Intelligence \& Applications},
  year = {2013},
  doi = {10.5121/ijaia.2013.4601},
}
Figure