Contrastive Masked Autoencoders for Character-Level Open-Set Writer Identification
Xiaowei Jiang, Wenhao Ma, Yiqun Duan, Thomas Do, Chin-Teng Lin
TL;DR
This work tackles open-set writer identification for online handwriting by introducing CMAE, a framework that fuses masked autoencoding with supervised contrastive learning to learn discriminative, trajectory-based representations from single characters. The CMAE encoder processes masked trajectory patches, the reconstruction decoder restores masked parts, and the contrastive module enforces writer-discriminative embeddings, all regulated by a discriminator for pairwise writer prediction. Key contributions include the single-character open-set formulation, integration of MAE and CL, and state-of-the-art results on CASIA-OLHWDB (89.7% precision with a 0.15 mask ratio), along with thorough ablations on mask effects, pretraining, and trajectory length. This approach advances forensic handwriting analysis by delivering robust, generalizable representations suitable for real-world open-set scenarios and diverse scripts.
Abstract
In the realm of digital forensics and document authentication, writer identification plays a crucial role in determining the authors of documents based on handwriting styles. The primary challenge in writer-id is the "open-set scenario", where the goal is accurately recognizing writers unseen during the model training. To overcome this challenge, representation learning is the key. This method can capture unique handwriting features, enabling it to recognize styles not previously encountered during training. Building on this concept, this paper introduces the Contrastive Masked Auto-Encoders (CMAE) for Character-level Open-Set Writer Identification. We merge Masked Auto-Encoders (MAE) with Contrastive Learning (CL) to simultaneously and respectively capture sequential information and distinguish diverse handwriting styles. Demonstrating its effectiveness, our model achieves state-of-the-art (SOTA) results on the CASIA online handwriting dataset, reaching an impressive precision rate of 89.7%. Our study advances universal writer-id with a sophisticated representation learning approach, contributing substantially to the ever-evolving landscape of digital handwriting analysis, and catering to the demands of an increasingly interconnected world.
