DeepWriterID: An End-to-end Online Text-independent Writer Identification System

Weixin Yang, Lianwen Jin, Manfei Liu

Introduction

With the ubiquity of touchscreens and pen-enabled devices, identifying a person based on their handwriting has become increasingly valuable for digital forensics, mobile banking, and personal authentication. DeepWriterID is an end-to-end deep learning system designed for online text-independent writer identification—the task of identifying a writer based on their digital pen strokes, regardless of the content written.

Traditional systems often struggle with scarce training data, poor generalization across languages, and complex segmentation issues. DeepWriterID addresses these challenges through a combination of novel data augmentation and advanced feature extraction techniques.

The DeepWriterID Framework

The system employs a multi-stage pipeline that transforms raw pen-position data into a writer identification decision. The process begins with data acquisition and preprocessing, followed by a unique augmentation step, feature mapping, and classification via a Deep Convolutional Neural Network (DCNN).

The end-to-end pipeline of the DeepWriterID system, illustrating the flow from data acquisition to the final decision.

Core Innovations

DropSegment: Novel Data Augmentation

To combat the issue of limited training data, the authors introduced DropSegment. Inspired by the "Dropout" technique, DropSegment randomly removes segments of a handwritten character during training.

First, strokes are divided into segments using a corner-detection algorithm. A random number of these segments are then discarded, and the remaining fragments are treated as new, isolated strokes. This generates an exponential number of training samples from a single character. Crucially, it prevents the model from relying on the macro-structure (the shape of the character) and forces it to learn the writer's underlying micro-stylistic features, such as stroke curvature and pen speed.

Path-Signature Feature Maps

Rather than feeding raw coordinates or static images into the network, DeepWriterID utilizes path-signature feature maps derived from rough path theory. By calculating iterated integrals of the pen trajectory, the system extracts rich, multi-level sequential information.

These maps capture subtle kinematics—like displacement and curvature—that are often invisible in static offline images. This allows the model to differentiate between writers even when the visual output of their handwriting appears similar.

Deep CNN and Ensemble Decision

The system uses a 5-layer DCNN to process these multi-channel feature maps. At test time, the system leverages DropSegment to generate multiple variations of a single test sample. By averaging the network's predictions across these variations, the system achieves an "ensemble effect" that significantly boosts accuracy without the overhead of maintaining multiple models.

Evaluation and Results

DeepWriterID was evaluated on the NLPR handwriting database using only pen-position (x, y) coordinates, simulating the data available on standard consumer smartphones. Despite this data restriction, the system achieved state-of-the-art results:

  • Chinese Text (DB I): Achieved 95.72% accuracy, a 49.6% relative error reduction over previous benchmarks.
  • English Text (DB II): Achieved 98.51% accuracy, representing a 76.5% relative error reduction.

These results demonstrate that the system's focus on pen kinematics and micro-stylistic features allows it to outperform methods that rely on specialized hardware data like pen pressure or tilt.

Conclusion and Future Work

DeepWriterID proves that structure-independent features are highly effective for writer identification. While the current system operates under a closed-set assumption (where the writer must be in the training set), future work will focus on open-set identification. The authors suggest that analyzing CNN confidence measurements could help the system reject unknown writers and that incremental learning could allow for real-time registration of new users.

Summary updated

BibTeX
@article{yang2016deepwriterid,
  author = {Weixin Yang and Lianwen Jin and Manfei Liu},
  title = {{DeepWriterID: An End-to-end Online Text-independent Writer Identification System}},
  journal = {IEEE Intell. Syst.},
  year = {2016},
  doi = {10.1109/mis.2016.22},
}
Figure