Introduction
Script identification—the process of determining the script (e.g., Latin, Chinese, Arabic) of a text segment—is a foundational step in multilingual Optical Character Recognition (OCR) systems. In "in the wild" scene text, this task is complicated by complex backgrounds, diverse fonts, and varying aspect ratios. A significant challenge is fine-grained classification: many scripts share character sets. For instance, Latin and Cyrillic share several glyphs, and Japanese Kanji is largely derived from Chinese characters.
Traditional methods often rely on Global Average Pooling (GAP), which can dilute the signal of unique, discriminative characters by averaging them with shared, non-informative ones. This paper introduces a Patch Aggregator (PA) module designed to identify "smoking gun" characters that uniquely define a script.
Methodology
The proposed architecture utilizes a dual-branch convolutional neural network (CNN) to capture both holistic and local features.
Global Squeezer (GS)
The GS branch employs standard Global Average Pooling to capture the overall "look and feel" of a text line. This provides a stable baseline for script identification based on global stylistic features.
Patch Aggregator (PA)
The PA module is the core innovation. Unlike the GS branch, it applies Global Max Pooling (GMP) to patch-level prediction scores. By selecting the maximum score across patches, the model ensures that the presence of even a single highly certain, script-specific character dominates the final classification, preventing it from being "washed out" by ambiguous shared characters.
Softermax Loss
Local patches are often inherently ambiguous (e.g., a patch containing only the letter 'A' could be Latin or Cyrillic). To address this, the authors introduced Softermax loss. Instead of forcing a single hard label on every patch, Softermax encourages high probabilities for the top-$k$ candidate scripts. This weak supervision prevents the model from becoming overconfident on ambiguous local features during training.
Dynamic Fusion
The outputs from the GS and PA branches are combined using a learnable weight ($\gamma$). This dynamic fusion allows the model to adaptively weight the global versus local perspectives based on the specific characteristics of the input image.
Experimental Results
The model was evaluated on three major benchmarks: SIW-13, CVSI 2015, and RRC-MLT 2017. The results demonstrate state-of-the-art performance across all datasets, achieving 97.3% accuracy on SIW-13 and 98.6% on CVSI 2015. Notably, the model is highly efficient, with an inference time of approximately 2.5ms per image on a standard GPU, making it suitable for real-time industrial applications. Qualitative analysis confirms that the PA module successfully focuses on discriminative characters, such as identifying Russian text by isolating Cyrillic-specific letters like 'Б' or 'П'.
Conclusion
The Patch Aggregator module significantly advances scene text script identification by prioritizing local discriminative features over global averages. By combining this with a novel Softermax loss and dynamic fusion, the researchers achieved superior accuracy and efficiency. Future work may involve integrating this module into end-to-end text detection and recognition pipelines.
Summary updated