Identity and compliance

ID document fraud screening

Screens photographed South African IDs with Luhn check digits, embedded dates and barcode cross-checks. On a held-out set of 9,763 images: 99.2% true-positive rate, 0.5% false-positive rate, 177 ms median.

ID document fraud screening
Identity & compliance

ID document fraud screening

A decision you can defend line by line.

Vision extractionLuhn check digitBarcode cross-checkCalibrated scoringCI pipeline
The problem

Onboarding requires checking a photographed South African ID. Image-forensics approaches, does this look edited?, generate false positives on ordinary bad photographs, and you cannot explain a rejection to a real customer with "the model thought it looked wrong".

What it does

Extracts the fields from the document image, then tests the document's internal consistency rather than its appearance. A calibrated decision engine combines the vision read with the deterministic checks and returns a score with stated reasons.

The checks that carry the decision
  • Check digit. The 13-digit SA ID number (YYMMDD SSSS C A Z) carries a Luhn check digit. An invented or tampered number fails deterministically, no judgement involved.
  • Embedded date. The first six digits must be a real date and must agree with the date of birth printed elsewhere on the document.
  • Barcode cross-check. What the barcode encodes is compared against what the model read off the face of the card.
Why this design

Vision models are confident when they are wrong. Arithmetic is not. These checks carry far lower false-positive risk than any image-forensics signal, because they test facts about the document rather than opinions about the photograph, and every rejection comes with a reason a compliance officer can read.

Held-out benchmark

On a held-out set of 9,763 images: 99.2% true-positive rate, 0.5% false-positive rate, 177 ms median.

Those figures are from the vision and check-digit stack, measured on images the model was not trained on. Every rejection still carries a reason a compliance officer can read.

Want one of these?

Tell us the workflow. An engineer replies with what we would build and how long it would take.

Talk to an engineer