Case study · Digio
Selfie and liveness KYC — holding the line between fraud and friction.
A liveness check has two ways to fail: let a fraudster through, or turn away a real customer. I owned the line between them.
View the interactive case study ↗2 lakh selfies a day. A fraudster hides in one of them.
Open a bank account, take out a loan, or sign up for a payments wallet, and at some point the app asks you to take a selfie. That selfie is how the system checks you're a real, live person — not someone using stolen details. But a camera is easy to fool: a printed photo, a replayed selfie, a silicone mask, an AI-generated face piped into a webcam — all show a face; none is a live person.




One service. Any device, any room, any hour.
No one takes their KYC selfie in a studio. It's a crowded branch under fluorescent glare, the sofa at nine at night, or a field with one bar of signal. And it can't only work on a flagship phone in good light — it has to hold on a ₹8,000 Android in a dim kitchen, on a patchy network, across every skin tone and camera the country can throw at it. We don't control any of that. One capture layer — native and web — has to, and it still has to hand liveness a frame worth checking.
Whatever it runs on.
Whatever light it's in.
Whatever signal it gets.
Whatever it captures.
Stop the spoof before the camera turns on.
A whole class of attackers don't bother holding up a photo. They install software that pretends to be a camera and pipes whatever they want into the browser or the app. The Selfie SDK detects this at the very first moment of the session — before a single frame is even captured.
Real-time guidance. In their language. At their speed.
The frontend talks to the user in real time. It tells them which way to turn, when to come closer, when the lighting won't do — in the language they actually read. And it tunes how many checks to run based on the internet connection they actually have, so a 4G user in a Tier-3 town doesn't get the same heavy pipeline as a fibre user in a metro.


Too far is suspicious. Too close is too.
A face the right size in the frame is a face we can analyse. Too small means we're looking at a room, not a person — and rooms are where spoofing devices hide. Too close means we lose the geometry we need to verify pose, alignment, and the boundary between the user and what's behind them.


Face drifted off-axis — we nudge the user to move right before capture.


The acceptable band — balanced, analysable, ready to capture.

Face fills the frame — we ask the user to ease back so the edges return.
We see more than the user thinks we see.
The user only sees their own face, neatly framed inside the circular viewport. Behind that small circle, the SDK is quietly capturing a wider frame and a short video. A genuine user doesn't care. A fraudster does — because the wider frame and the post-capture video catch the things they thought they had hidden: the phone bezel beside the face, the fingers gripping the spoofing device, the bedroom wall they didn't expect us to record.


Plus a 1-second video — multiple frames sampled where networks are fast and fraud is common.
Many checks. One verdict.
Once the selfie reaches the backend, it doesn't face a single magic model that says "yes" or "no". It enters a sequence of independent checks — each one looking for a different kind of failure or fraud. We start with the cheapest, most common reasons a selfie should be rejected — no face, blurred, partial — and only spend compute on the deeper attack-detection models on submissions that have already cleared those gates.
Every spoof leaves a fingerprint.
Each kind of attack betrays itself in a slightly different way. A printed photo has paper edges and ink halftones. A phone-replay has a bezel and a pixel grid. A deepfake has telltale morphing artifacts. An AI-generated face has the wrong kind of perfection.
An attacker rarely needs a perfect forgery. Blend a leaked ID photo with a cooperative live face and search the mix until the synthetic frame clears the match gate.



Before we judge a face, we find its parts.
Underneath the whole pipeline sits a localization model. It doesn't just say “a face is here” — it locates the face and each region inside it: the eyes, the nose, the mouth, the chin. Every box is a model output with its own confidence. This map is what powers the rest: it tells check_eyes where the eyes are, tells occlusion which region to inspect, and tells the cropper exactly where to cut.







Every attempt leaves an audit report.
Every capture is logged — the timestamped attempt, its verdict, and the frames behind the decision. The accepted frame is stored with a full chain of custody: who authorised it, when, and where — down to GPS coordinates — so any attempt can be reconstructed and defended when the regulator asks.

Your rules. Your language. Your risk.
The same product runs inside a Tier-1 NBFC with a low risk appetite and inside a Tier-3 lender that needs to ship fast. We don't ship one fixed pipeline. Every check is independently configurable, every guidance message can be reworded or translated, every retry policy is yours to set.