TL;DR
This paper introduces SIW-10, a large-scale dataset for identifying 10 different scripts in natural scene images, and proposes the Multi-stage Spatially-sensitive Pooling Network (MSPN). By using a novel pooling layer that handles arbitrary text lengths and captures hierarchical features, the authors significantly outperform traditional patch-based CNNs and hand-crafted feature methods.
What Problem Does This Paper Address?
While script identification (determining the language/alphabet of a text) is well-studied for scanned documents, doing so "in the wild"—on street signs, storefronts, and billboards—is much harder. The authors identify four primary challenges:
- High Variability: Scene text varies wildly in font, color, and layout.
- Complex Backgrounds: Clutter and noise make feature extraction difficult.
- Shared Alphabets: Many languages share characters (e.g., 'A', 'B', and 'E' appear in English, Greek, and Russian), meaning identification must rely on unique, often subtle, script-specific features.
- Arbitrary Lengths: Unlike standard image classification, text lines have varying aspect ratios, which standard Convolutional Neural Networks (CNNs) struggle to process without distorting the image.
Methods
The core contribution is the Multi-stage Spatially-sensitive Pooling Network (MSPN).
Spatially-Sensitive Pooling (SSP)
Standard CNNs require fixed-size inputs because their fully-connected layers have a fixed number of weights. To bypass this, the authors developed the SSP layer. It takes feature maps of arbitrary width (but fixed height) and pools along each row. This produces a fixed-length output vector regardless of how long the original word was. Crucially, it preserves vertical spatial information (which is vital for script structure) while providing horizontal translation invariance.
Multi-stage Architecture
The MSPN doesn't just pool from the final convolutional layer. It extracts features from multiple stages (conv2, conv3, and conv4) and concatenates them. This allows the network to "see" both low-level textures and high-level character components simultaneously.
Datasets
The authors introduce the Script Identification in the Wild 10 Classes (SIW-10) dataset:
- Source: 7,700 images harvested from Google Street View.
- Content: 13,045 cropped word/line images.
- Languages: Arabic, Chinese, English, Greek, Hebrew, Japanese, Korean, Russian, Thai, and Tibetan.
- Split: 8,045 images for training and 5,000 for testing (500 per class).
Key Insights and Ideas
- Vertical vs. Horizontal: In script identification, the horizontal position of a character is often irrelevant, but its vertical structure (ascenders, descenders, mid-line height) is a defining characteristic of the script. The SSP layer exploits this observation.
- Hierarchical Features: By combining features from different layers, the model can distinguish between scripts that might look similar at a high level but have different low-level stroke patterns.
- End-to-End Learning: Unlike "CNN-Simple" baselines that classify small patches and average the results, MSPN is trained on entire words/lines, allowing it to learn more discriminative, context-aware features.
Key Results
MSPN achieved an average error rate of 5.6% on the SIW-10 dataset, significantly outperforming:
- LLC (Locality-constrained Linear Coding): A popular hand-crafted feature method.
- CNN-Simple: A standard CNN that uses a patch-sampling workaround to handle variable sizes.
The confusion matrix reveals that most errors occur between scripts with shared characters, such as Chinese and Japanese (which shares Kanji/Hanzi characters).
Limitations and Future Work
- Semantic Ambiguity: The model struggles when a word is written entirely using characters shared by two languages (e.g., a Japanese word written only in Kanji). The authors note that semantic context would be needed to solve this.
- Cropped vs. Full Images: Currently, the system operates on pre-cropped word/line images. The authors aim to extend this to full-image script identification, where the system must detect and identify script regions simultaneously.
- Layout Sensitivity: The method can fail on unusual layouts or extremely blurry text where fine-grained script features are lost.
Summary updated