Abstract
This paper presents a hybrid approach for script and language identification across diverse modalities, including video-text, scene-text, and handwriting. By combining hand-crafted texture features (SRS-LBP) with a deep Multi-Layer Perceptron (MLP), the proposed method achieves high accuracy and demonstrates that internal network activations can serve as a generic metric for classifying unseen scripts.
1. Introduction
In globalized document analysis, identifying the script (e.g., Latin vs. Arabic) and language (e.g., French vs. German) is a critical first step. Text appears in varied forms: video-text (subtitles), scene-text (signs), and handwriting. While Convolutional Neural Networks (CNNs) are standard, they often struggle with varying aspect ratios and require extensive annotated data. This work explores an efficient, flexible alternative that treats script identification as a texture recognition problem.
2. Methodology
The proposed pipeline involves three stages: preprocessing, feature extraction, and classification via a deep MLP.
2.1 Preprocessing and Feature Extraction
To mitigate color and lighting variations, images are converted to a single channel using Principal Component Analysis (PCA). A color inversion step ensures a consistent "light text on dark background" format. For feature extraction, the authors utilize Sparse Radial Sampling Local Binary Patterns (SRS-LBP). Unlike CNNs that learn features from raw pixels, SRS-LBP captures the "feel" of writing through hand-crafted texture descriptors. This approach is inherently robust to word length variations because features are pooled globally.
2.2 Deep MLP and Metric Learning
The 9,216-dimensional LBP features are processed by a deep MLP with hidden layers of 1024 and 512 neurons. Beyond standard classification, the authors treat the activations of these hidden layers as a learned metric. By applying a k-Nearest Neighbor (k-NN) classifier to these internal activations, the system can identify scripts not present in the original training set.
3. Experimental Evaluation
The method was evaluated on three distinct datasets:
- CVSI 2015 (Video-text): 10 Indian languages superimposed on video.
- SIW-10 & SIW-13 (Scene-text): 10 to 13 scripts in natural environments.
- ICDAR 2011 (Handwritten): Greek, English, French, and German samples from 26 writers.
4. Results and Discussion
The system demonstrated strong performance across modalities. On the CVSI video-text dataset, it achieved 98.2% accuracy, nearly matching specialized CNN architectures. In handwriting identification, it reached 92.78% accuracy, effectively distinguishing languages even when written by different individuals. This suggests the model picks up on specific character frequencies and diacritics (like umlauts) as visual textures.
A key insight is the "genericity" of the network layers. The first hidden layer was found to be more domain-independent than deeper layers. When tested on a dataset different from the training set, the first layer's activations maintained a high performance of 94.8%, whereas deeper layers became too specialized to the training data. This suggests that the early stages of the MLP learn fundamental visual characteristics of scripts.
5. Conclusion
While highly effective for video-text and handwriting, the method faced challenges with unconstrained scene-text (13.4% error rate) due to extreme noise and occlusions. Future work will investigate Siamese networks to further refine metric learning and improve robustness in chaotic natural environments.
Summary updated