Blog - Signature verification — telling genuine from forgery

Offline vs online signature verification: temporal features, DTW, embeddings, and decision thresholds.

Author
2code
Published
Tags
  • biometrics
  • signature
  • CV

Signature verification is a behavioral biometric. The practical split is offline (scanned image) vs online (tablet trajectory: x,y,tx,y,t, pressure).

Offline: signature as an image

From a bitmap we extract skeleton, contour, Hu moments, stroke-orientation histograms. It works, but static shape is easier to forge than dynamics.

Similarity of feature vectors u,vu,v is often cosine:

s(u,v)=uvuvs(u,v) = \frac{u^\top v}{\|u\|\,\|v\|}

Online: time and pressure

The signal is a sequence pk=(xk,yk,tk,pk)p_k = (x_k, y_k, t_k, p_k). Compare sequences with DTW or a Siamese/LSTM embedding.

DTW recurrence between sequences A,BA,B:

D(i,j)=d(ai,bj)+min{D(i1,j),D(i,j1),D(i1,j1)}D(i,j) = d(a_i,b_j) + \min\{D(i-1,j), D(i,j-1), D(i-1,j-1)\}

Smaller normalized D(A,B)D(|A|,|B|) means closer signatures.

Decision pipeline

What exposes a forger?

  1. Timing — unnaturally uniform speed.
  2. Pressure — missing natural drops on pen-ups.
  3. Stroke order — different motion topology with similar appearance.

That is why online verification usually beats offline FAR at the same UX budget.

Takeaway

Effective signature verification leans on dynamics, not shape alone. If you can capture online signals — do; the image is plan B.

Back to blog

Let's talk about your project