Introduction
Recognizing handwritten Chinese characters presents a unique challenge due to the sheer volume of character classes—often numbering in the tens of thousands. Traditional approaches typically treat each character as a monolithic category. This leads to significant data scarcity for rare characters and an "unseen wall" where models fail to recognize any character outside their specific training set, even if it is composed of familiar components.
The Trajectory-based Radical Analysis Network (TRAN) addresses these issues by leveraging the hierarchical nature of Chinese script. Most characters are composed of a small set of shared "radicals" arranged in specific spatial layouts. By shifting the focus from whole characters to these constituent parts, TRAN enables more efficient learning and the ability to recognize unseen characters through zero-shot learning.
Methodology: The TRAN Architecture
TRAN treats character recognition as a sequence-to-sequence task, similar to image captioning, but operates on pen-tip trajectories rather than static images.
The architecture consists of two primary components:
- RNN Encoder: A 4-layer bidirectional Gated Recurrent Unit (GRU) processes the "online" handwriting data—a sequence of (x, y) coordinates and pen states. This captures the temporal dynamics of the writing process, which is often more informative than a final static image.
- Attention-Based Decoder: A unidirectional GRU decodes the encoder's features into a "caption" string. This string describes the character's construction using radicals and 11 predefined spatial structures (e.g., left-to-right, top-to-bottom). For example, a character might be represented as
a { radical1 d { radical2 radical3 } }.
An essential feature of the decoder is the attention mechanism, which includes a "coverage" vector. This vector tracks which parts of the handwriting trajectory have already been processed, ensuring the model neither skips nor repeats radicals.
Datasets and Evaluation
The model was evaluated using the standard CASIA-OLHWDB (Online Handwriting Database), containing over 2.6 million training samples. To test the model's zero-shot capabilities, the authors designed a specific benchmark: training on 3,255 character classes and testing on 500 entirely "unseen" classes composed of known radicals.
Key Insights and Results
TRAN achieves state-of-the-art performance while offering unique interpretability. On the standard CASIA dataset, it reached 96.43% accuracy, a 10% relative error reduction over previous whole-character models.
The most significant breakthrough is in zero-shot learning. TRAN achieved 60.37% accuracy on unseen characters. While lower than the performance on seen characters, this is a massive leap from the 0% accuracy inherent in traditional classification models. Visualization of the attention weights (as seen above) confirms that the model mimics human-like analysis, focusing on specific strokes as it identifies radicals and structures in sequence.
Conclusion
By decomposing Chinese characters into a shared vocabulary of radicals, TRAN significantly reduces output complexity and enables the recognition of novel characters. While challenges remain in handling highly ambiguous or "sloppy" handwriting where radical boundaries blur, the transition from monolithic classification to structural analysis represents a major advancement in the field of handwriting recognition.
Summary updated