Capturing More: Learning Multi-Domain Representations for Robust Online Handwriting Verification

Peirong Zhang, Kai Ding, Lianwen Jin · DOI

Introduction

Online Handwriting Verification (OHV) has emerged as a critical biometric technology, authenticating identity based on the dynamic process of writing—incorporating speed, pressure, and tilt—rather than just the static image of the result. While current state-of-the-art systems primarily rely on temporal modeling via Recurrent Neural Networks (RNNs) or Temporal Convolutional Networks (TCNs), these approaches often overlook the subtle rhythmic signatures inherent in an individual's writing style.

The core challenge in OHV lies in distinguishing genuine handwriting from skilled forgeries. While forgers can often replicate the visual path and velocity of a signature, they struggle to mimic the underlying frequency-domain characteristics. This paper introduces SPECTRUM (SPECtral-TempoRal Unified Model), a novel framework designed to integrate frequency-domain features as a primary component of the feature extraction process, thereby enhancing the robustness of handwriting verification.

The SPECTRUM Framework

The researchers propose a "micro-to-macro" integration strategy to unify temporal and spectral data. The architecture consists of three primary components:

1. Multi-scale Interactor (Micro-level)

This module decomposes the handwriting sequence into various sub-sequences to capture patterns at different granularities. It employs a dual-branch approach: one branch processes data in the temporal domain, while the other utilizes a 1D Fast Fourier Transform (FFT) to shift into the frequency domain. Within the spectral branch, learnable weights tune specific frequency bands before an Inverse FFT (IFFT) returns the data to the temporal domain. This multi-scale approach ensures that both fine-grained stroke details and broader writing patterns are captured.

2. Self-gated Fusion (Macro-level)

To effectively combine these domains, a macro-level gating mechanism is employed. This self-gated fusion dynamically weights the importance of global temporal versus frequency features. By "deciding" which domain is more reliable for a given sample, the model adapts to the specific characteristics of the input, whether it be a complex signature or a simple digit string.

3. Multi-domain Distance-based Verifier (MDV)

During the inference phase, SPECTRUM utilizes a hybrid verification score. It calculates a weighted combination of Dynamic Time Warping (DTW) distance for temporal features and Euclidean distance for frequency features. This dual-metric approach ensures that discrepancies in either the writing path or the rhythmic "flow" are detected.

Experimental Evaluation

The model was rigorously tested across three diverse benchmarks to evaluate its cross-language and cross-biometric performance:

  • MSDS-ChS: A large-scale dataset focused on Chinese signatures.
  • MSDS-TDS: A dataset involving "Token Digit Strings," an emerging biometric format.
  • DeepSignDB: A benchmark for Latin signatures, including samples captured via stylus and finger-input.

Key Insights and Results

The integration of frequency-domain analysis yielded several significant findings:

  • Frequency as a Forgery-Fighter: Spectral analysis revealed that forgers often exhibit "stuttering" or unnatural rhythms. These discrepancies, which are frequently invisible in time-domain plots, become highly apparent in the frequency response, making SPECTRUM particularly effective against skilled forgeries.
  • Discrete vs. Cursive Dynamics: The study found that discrete writing (e.g., Chinese characters or digits) relies heavily on temporal cues like stroke order. Conversely, cursive Latin signatures benefit more from frequency modeling, which captures the continuous harmonic components of the writing flow.
  • Performance Metrics: On the MSDS-ChS dataset, SPECTRUM achieved an Equal Error Rate (EER) of 5.30% for skilled forgeries, outperforming the previous state-of-the-art (DsDTW at 5.91%).
  • Efficiency for Real-Time Use: Despite its dual-domain complexity, the model remains lightweight with only 1.36 million parameters. With a processing time of approximately 6.97ms per sample, it is well-suited for deployment on mobile devices.

Conclusion

SPECTRUM demonstrates that moving beyond temporal-only modeling is essential for the next generation of biometric security. By treating frequency as a "first-class citizen," the framework captures the unique rhythmic signatures that forgers find nearly impossible to replicate. Future research will explore the integration of spatial (image-based) and video domains to create an even more comprehensive "multi-domain" verification system, further narrowing the gap between digital authentication and physical identity.

Summary updated

BibTeX
@inproceedings{zhang2025capturing,
  author = {Peirong Zhang and Kai Ding and Lianwen Jin},
  title = {{Capturing More: Learning Multi-Domain Representations for Robust Online Handwriting Verification}},
  booktitle = {ACM Multimedia},
  year = {2025},
  doi = {10.1145/3746027.3755200},
}
Figure