liveBook · Manning

Duplicate check

As explained in Fight Fraud with Machine Learning

A duplicate check is a verification procedure that identifies whether the same person has registered more than once by comparing submitted identity evidence.

A duplicate check identifies whether one person has registered more than once by comparing two submitted selfies. In automated KYC, it is a selfie fraud check distinct from a selfie–ID face check, which compares a selfie with an identity document. section 7.1.3 section 7.4

Implement the check as a face-matching pipeline:

  • Detect and crop the face from each selfie with MTCNN. section 7.2.3
  • Generate a facial embedding for each cropped face with the pre-trained InceptionResnetV1 model. section 7.2.3
  • Compare the embeddings using cosine similarity; higher scores indicate a closer match and lower scores indicate a mismatch. section 7.2.3 section 7.4

Einstein selfie pairs

Two photographs of Albert Einstein produce a cosine similarity of 0.7652, while an Einstein–McCarthy pair scores lower. Identical photographs produce an abnormally high 100% score, which can itself signal suspicious reuse. section 7.2.3

Figure 7.9 Sequence of topics discussed in this section including understanding how face matching works, how the underlying model is trained, and building such a face-matching system for comparing faces across two selfies and across a selfie and an ID.

Follow the workflow from pairwise face matching and model training to constructing duplicate and selfie–ID checks. section 7.2

How Fight Fraud with Machine Learning covers it

How deep it goes
Builds the workflow through face detection, embedding generation, and cosine similarity, without specifying an operating threshold.
Examples
Uses Einstein photographs, different-person pairs, identical images, and a selfie–ID comparison to illustrate similarity outcomes.
What it assumes
Assumes basic Python setup and image handling while supplying the face-matching models and runnable notebook workflow.
What you can do after
Build it from scratch with PyTorch, facenet_pytorch, MTCNN, InceptionResnetV1, and cosine similarity.
How it connects
Connects automated KYC, face detection, face recognition, facial embeddings, cosine similarity, and biometric sign-in.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fight Fraud with Machine Learning. The section links point to the parts of the book it draws on.