[Paper Review] Deep Template Matching for Offline Handwritten Chinese Character Recognition
This paper proposes a deep siamese neural network for offline handwritten Chinese character recognition that treats recognition as a template matching problem using learned similarity metrics. By training on paired images (same vs. different characters), the model generalizes to unseen characters without retraining, achieving strong zero-shot recognition performance on ICDAR-2013 and CASIA-HWDB datasets, with up to 80.06% accuracy on unseen characters.
Just like its remarkable achievements in many computer vision tasks, the convolutional neural networks (CNN) provide an end-to-end solution in handwritten Chinese character recognition (HCCR) with great success. However, the process of learning discriminative features for image recognition is difficult in cases where little data is available. In this paper, we propose a novel method for learning siamese neural network which employ a special structure to predict the similarity between handwritten Chinese characters and template images. The optimization of siamese neural network can be treated as a simple binary classification problem. When the training process has been finished, the powerful discriminative features help us to generalize the predictive power not just to new data, but to entirely new classes that never appear in the training set. Experiments performed on the ICDAR-2013 offline HCCR datasets have shown that the proposed method has a very promising generalization ability to the new classes that never appear in the training set.
Motivation & Objective
- To address the challenge of recognizing rare or unseen Chinese characters in real-world applications where labeled data is scarce.
- To overcome the limitations of traditional character-based classifiers that require extensive labeled data and cannot generalize to new classes.
- To develop a model that generalizes to entirely new character classes not present in the training set, enabling zero-shot recognition.
- To reduce model size and training data dependency by using a fixed-size siamese network instead of a multi-class classifier.
Proposed method
- A siamese neural network is trained to predict the similarity between an input handwritten character and a template image using a binary classification loss on paired samples.
- The network shares weights between two towers, each processing one image in a pair, and computes a similarity score via a metric function at the top layer.
- Positive pairs consist of the same character from different handwriting samples; negative pairs consist of different characters, with negative pairs sampled from all other classes.
- Training data is augmented by generating $nc^2$ pairs from $n$ samples per class across $c$ classes, increasing effective training data size.
- After training, the siamese network is fine-tuned by replacing the output layer with a 3755-way classifier for closed-set evaluation.
- Model performance is validated using a validation set of unseen characters ($\mathcal{D}_u^{train}$) to monitor generalization and guide hyperparameter tuning.
Experimental results
Research questions
- RQ1Can a siamese neural network trained on a subset of Chinese characters generalize to recognize characters not seen during training?
- RQ2How does the proposed template-matching approach compare to traditional character-based classifiers in terms of zero-shot recognition performance?
- RQ3What is the impact of training set size and sampling ratio on the generalization ability of the siamese network for unseen characters?
- RQ4Can the model achieve high recognition accuracy on unseen characters while maintaining a fixed model size regardless of the number of character classes?
Key findings
- The proposed method achieved 80.06% recognition accuracy on unseen characters ($\mathcal{D}_u|\mathcal{C}$) when training on 2000 characters with 20 samples per class, demonstrating strong zero-shot generalization.
- On the full 3755-character set, the template-matching classifier achieved 92.31% accuracy, which is lower than state-of-the-art methods (e.g., 97.09% for HCCR-CNN9), but the model generalizes to new classes without retraining.
- The model's performance on unseen characters improved with larger training sets: accuracy on $\mathcal{D}_u|\mathcal{C}$ rose from 48.44% (500 characters) to 80.06% (2000 characters).
- The failure cases primarily involved misclassification of visually similar characters, indicating that the model learns meaningful similarity metrics despite challenges in distinguishing subtle differences.
- The siamese network achieved 77.85% accuracy on unseen characters ($\mathcal{D}_u|\mathcal{C}_u$) when trained on 2000 characters with 20 samples per class, confirming robustness to distribution shift.
- The method reduces model size and data dependency by using a single-output similarity head instead of a multi-class classifier, enabling scalability to large or open-vocabulary settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.