TL;DR
The paper introduces DeepWriterID, an end-to-end deep learning system for online, text-independent writer identification. By combining a novel data augmentation technique called "DropSegment" with path-signature feature maps, the system achieves state-of-the-art accuracy on both Chinese and English handwriting datasets, remarkably using only basic pen-position data.
What Problem Does This Paper Address?
With the ubiquity of touchscreens and pen-enabled devices, identifying a person based on their handwriting is increasingly valuable for digital forensics, mobile banking, and personal authentication. The authors tackle online text-independent writer identification—figuring out who wrote a piece of text on a digital screen, regardless of what the text actually says.
Building a robust system for this is notoriously difficult due to three main challenges:
- Scarce Training Data: Collecting massive amounts of handwriting from individual users is tedious and impractical.
- Poor Generalization: Models often overfit to specific stroke structures or languages (e.g., Chinese characters vs. English cursive), failing to generalize across different writing styles.
- Segmentation Issues: Accurately splitting handwriting into consistent basic units (like individual characters or words) is messy, especially across multiple languages.
Methods
To overcome these hurdles, the authors propose an end-to-end Deep Convolutional Neural Network (DCNN) pipeline featuring two major innovations:
- DropSegment (Novel Data Augmentation): Inspired by the "Dropout" technique used in neural networks, DropSegment randomly drops segments of a handwritten character during training. First, strokes are divided into segments using a corner-detection algorithm. Then, a random number of these segments are removed, and the remaining pieces are treated as new, isolated strokes. This generates an exponential number of training samples from a single character. More importantly, it prevents the model from relying on the macro-structure of the character, forcing it to learn the writer's underlying micro-stylistic features.
- Path-Signature Feature Maps (Novel Application): Instead of just feeding raw coordinates or static images into the CNN, the authors use "path signatures" derived from rough path theory. By calculating iterated integrals of the pen trajectory, they extract rich, multi-level sequential information (like displacement and curvature) that captures the subtle kinematics of how a person writes.
- Deep CNN: A 5-layer CNN processes these multi-channel path-signature feature maps to classify the writer.
Datasets
The system was trained and evaluated on the NLPR handwriting database, specifically two subsets:
- Dataset I (DB I): Chinese text contributed by 187 writers.
- Dataset II (DB II): English text contributed by 134 writers.
Notably, while the dataset contains rich hardware data (pressure, altitude, azimuth), the authors deliberately restricted their model to use only pen-position (x, y coordinates) in the pen-down state. This simulates the limited data available on standard consumer touchscreens (like basic smartphones), making the benchmark much more realistic for everyday applications.
Key Insights and Ideas
- Structure can be a distraction: Relying on the complete structural shape of a character actually hurts a model's ability to generalize across different languages or messy handwriting. By fragmenting the characters, DropSegment forces the network to focus on the way the pen moves rather than the shape it draws.
- Ensemble performance for free: At test time, DropSegment can be used to randomly generate multiple variations of a single test sample. Averaging the network's predictions across these variations significantly boosts accuracy without the memory overhead of storing multiple ensemble models.
- Path signatures reveal the invisible: Higher-level path signatures capture subtle, high-dimensional kinematic differences between writers that are entirely invisible in a static, offline bitmap image.
Key Results
DeepWriterID shattered previous state-of-the-art benchmarks on the NLPR database:
- Chinese Text (DB I): Achieved 95.72% accuracy (up from the previous best of 91.50%), representing a relative error reduction of 49.6%.
- English Text (DB II): Achieved 98.51% accuracy (up from the previous best of 93.60%), representing a massive relative error reduction of 76.5%.
- These results are particularly impressive because previous state-of-the-art methods relied heavily on specialized hardware data (pen pressure, tilt, velocity), whereas DeepWriterID achieved superior results using only basic x, y trajectory coordinates.
Limitations and Future Work
- Closed-Set Assumption: The current system assumes the writer being tested is already present in the training database. It does not have a built-in mechanism to reject an "unknown" writer (open-set identification), which is critical for real-world security applications.
- Future Directions: The authors suggest that analyzing the confidence measurements output by the CNN could be a viable way to reject unknown writers. They also highlight the need to explore online or incremental learning, which would allow the system to register new writers on the fly without needing to retrain the entire network from scratch.
Summary updated