MSDS: A Large-Scale Chinese Signature and Token Digit String Dataset for Handwriting Verification

Peirong Zhang, Jiajia Jiang, Yuliang Liu, Lianwen Jin

TL;DR

Researchers have introduced MSDS, a massive new dataset for handwriting verification that is eight times larger than previous Chinese signature benchmarks. The study reveals a surprising twist: handwritten "Token Digit Strings" (like your phone number) are actually a more reliable biometric for identity verification than traditional signatures.

What Problem Does This Paper Address?

Handwriting verification—the process of confirming a person's identity based on how they write—is a classic biometric challenge. While Western signature datasets have grown quite large (e.g., DeepSignDB with over 1,500 users), Chinese signature datasets have remained stubbornly small, often limited to fewer than 50 users. This lack of data hinders the development of robust deep-learning models.

Furthermore, the field has focused almost exclusively on signatures. However, signatures can have massive intra-writer variance (how much your own signature changes day-to-day), making them easy to forge or difficult for systems to verify consistently. The authors investigate whether other types of handwriting, specifically familiar digit strings, might serve as a better biometric medium.

Methods

The authors evaluated several state-of-the-art (SOTA) verification systems on their new dataset:

  • Dynamic Time Warping (DTW): A classic algorithm for measuring similarity between two temporal sequences.
  • Sig2Vec: A 1D CNN-based model using multi-head attention.
  • TA-RNNs: A Siamese network architecture that aligns sequences using DTW before processing them with a BiLSTM.
  • DsDTW: The current SOTA, which uses a "differentiable" version of DTW to allow for end-to-end deep learning.
  • DCNN: A standard CNN used to extract features from static (offline) images of the handwriting.

A key technical contribution is their modality fusion approach, where they combine "online" data (the x, y coordinates, pressure, and timing recorded by a stylus) with "offline" data (the final rendered image) to create a more comprehensive feature set.

Datasets

The paper introduces the Multimodal Signature and Digit String (MSDS) dataset, which includes:

  • MSDS-ChS: 8,040 genuine and 8,040 skilled forged Chinese signatures from 402 users.
  • MSDS-TDS: 8,040 genuine and 8,040 skilled forged Token Digit Strings (TDS)—specifically, the users' actual phone numbers.
Figure 3: Signature and TDS samples from two different sessions. The left samples are genuine, while the right are skilled forgeries.

Crucially, the data was collected in two sessions at least 21 days apart. This allows researchers to account for inter-session variation, simulating real-world scenarios where a user's handwriting might drift over time.

Key Insights and Ideas

  • TDS > Signatures: The most significant finding is that models consistently performed better on Token Digit Strings (phone numbers) than on Chinese signatures. The authors hypothesize that because digit strings have a "sparser spatial architecture," their unique patterns (like specific spacing and skew) are easier for models to learn and harder for humans to forge convincingly.
  • The "Time Gap" Challenge: Performance drops significantly when testing across different sessions. This highlights that intra-class variance—the natural changes in your own handwriting over a few weeks—is a major hurdle for real-world deployment.
  • Fusion is Key: Adding offline image data to online temporal data consistently improved accuracy. Static images capture global spatial relationships (like the overall layout of strokes) that dynamic time-series data might miss.
Figure 1: The intra-class variance of handwriting, including English signatures from DeepSignDB [40], Chinese signatures from MSDS-ChS, and Token Digit Strings from MSDS-TDS. The ones marked in red and blue are the same genuine samples of the specific user, and the ones marked in gray are the other samples. The left column denotes the intra-class variance of all genuine samples, whereas the right column denotes the intra-class variance of all skilled forgeries.

Key Results

  • Top Performer: The DsDTW model achieved the best results against skilled forgeries. On the MSDS-TDS subset (single session), it reached an Equal Error Rate (EER) as low as 0.72% (global threshold) and 0.00% (user-specific threshold).
  • TDS Superiority: In almost every test case, the EER for TDS was lower than for Chinese signatures. For example, using the Sig2Vec model in Session 1, the EER for signatures was 1.33%, while for TDS it was only 0.96%.
  • Cross-Dataset Validation: The authors proved that models trained on Western signatures (DeepSignDB) perform poorly on Chinese signatures, justifying the need for this specific large-scale Chinese dataset.
Figure 4: Examples of failure analysis, showing samples that were falsely accepted (forgeries that looked too real) or falsely rejected (genuine samples that varied too much from the template).

Limitations and Future Work

The primary limitation acknowledged is that the "offline" images in the dataset are digitally rendered from the stylus data, rather than being scanned from physical paper. This means the images lack the natural "noise" (ink bleed, paper texture, varying pen tips) found in traditional offline verification tasks.

For future work, the authors suggest exploring "cross-modality" models that exploit signatures and digit strings simultaneously. They also plan to expand the dataset to include more diverse age groups and regions to further improve the generalizability of handwriting verification systems.

Summary updated

Abstract

Although online handwriting verification has made great progress recently, the verification performances are still far behind the real usage owing to the small scale of the datasets as well as the limited biometric mediums. Therefore, this paper proposes a new handwriting verification benchmark dataset named Multimodal Signature and Digit String (MSDS), which consists of two subsets: MSDS-ChS (Chinese Signatures) and MSDS-TDS (Token Digit Strings), contributed by 402 users, with 20 genuine samples and 20 skilled forgeries per user per subset. MSDS-ChS consists of handwritten Chinese signatures, which, to the best of our knowledge, is the largest publicly available Chinese signature dataset for handwriting verification, at least eight times larger than existing online datasets. Meanwhile, MSDS-TDS consists of handwritten Token Digit Strings, i.e, the actual phone numbers of users, which have not been explored yet. Extensive experiments with different baselines are respectively conducted for MSDS-ChS and MSDS-TDS. Surprisingly, verification performances of state-of-the-art methods on MSDS-TDS are generally better than those on MSDS-ChS, which indicates that the handwritten Token Digit String could be a more effective biometric than handwritten Chinese signature. This is a promising discovery that could inspire us to explore new biometric traits. The MSDS dataset is available at https://github.com/HCIILAB/MSDS.
BibTeX
@inproceedings{zhang2022msds,
  author = {Peirong Zhang and Jiajia Jiang and Yuliang Liu and Lianwen Jin},
  title = {{MSDS: A Large-Scale Chinese Signature and Token Digit String Dataset for Handwriting Verification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=nta7DBdFu4},
}
Figure