Abstract
DeepWriter is a multi-stream Convolutional Neural Network (CNN) designed for text-independent writer identification. By analyzing local patches of scanned handwriting and leveraging the spatial relationships between them, the system achieves over 99% accuracy on English text and can identify a writer from as little as a single Chinese character or four English letters.
Introduction
Writer identification is a branch of behavioral biometrics—identifying a person based on how they write rather than what they write. This is categorized into two types: text-dependent (where the person writes a specific phrase) and text-independent (where the content can be anything).
The latter is significantly more difficult because the "signal" of the writer's style is often drowned out by the "noise" of the characters being formed. Traditional methods relied on handcrafted features (like stroke direction or gradient histograms), which often struggle to separate personal habits from the standard shapes of letters. DeepWriter aims to solve this by using deep learning to automatically extract "writer-sensitive" features that are robust across different languages and text lengths.
Methodology
The authors propose an architecture called DeepWriter, which is built on a modified AlexNet-style backbone. Key innovations include:
Multi-Stream Architecture
While a standard CNN might look at one patch of text at a time, DeepWriter uses two parallel "streams" that share parameters. It takes a pair of adjacent $113 \times 113$ pixel patches as input. The features from both patches are merged via element-wise summation before the final classification. This allows the model to capture the spatial relationship and "flow" between neighboring parts of a word.
Fine-Grained Feature Extraction
Unlike standard image recognition models that use large $11 \times 11$ kernels, DeepWriter uses smaller kernels ($5 \times 5$ and $3 \times 3$) and smaller strides in its early layers. This is crucial for capturing the fine details of pen strokes and ink variations.
Patch Scanning Strategy
To handle varying lengths of text, the system resizes images to a fixed height and crops them into overlapping patches. During testing, the scores from all patches are averaged to produce a final identification.
Joint Language Training
The authors discovered that handwriting features are somewhat universal. They used a "pre-training and fine-tuning" approach, showing that a model trained on Chinese characters can be successfully adapted to identify English writers, and vice versa.
Experimental Results
The model was evaluated on two major benchmarks: the IAM Dataset (English handwriting from 657 writers) and the HWDB1.1 Dataset (Chinese handwriting from 300 writers).
DeepWriter set new state-of-the-art benchmarks at the time of publication:
- English (IAM): Achieved 99.01% accuracy for 301 writers and 97.03% for 657 writers using a single sentence.
- Minimal Input: Even with only 4 English characters, the model maintained 98.01% accuracy.
- Chinese (HWDB): Achieved 93.85% accuracy using only one Chinese character as input.
It significantly outperformed traditional methods (like those using K-adjacent segments or PDF-based features), which typically hovered around 89-93% accuracy on similar tasks.
Discussion and Key Insights
- Spatial Context Matters: The "multi-stream" approach consistently outperformed the "single-stream" version. This suggests that the way a writer transitions between characters is a vital biometric signature.
- Cross-Language Transferability: English and Chinese handwriting share common "low-level" features. Joint training across languages yielded better performance than training on a single language alone, suggesting the model is learning fundamental motor-control habits rather than just character shapes.
- Efficiency in Data: The model is remarkably "data-efficient" at inference time. It doesn't need a full page of text; it reaches high accuracy with just a few words or even a single complex character.
Limitations and Future Work
While highly effective, the paper notes a few areas for growth. Future work should investigate writer verification (confirming if two samples are by the same person), which is a more common requirement in forensic science. Additionally, the authors suggest exploring multi-task learning to simultaneously identify the writer and recognize the text being written, which could further improve feature discrimination.
Summary updated