Over $30,000 a month in vendor fees, on the way to zero
Identity checks, moved onto the customer's phone
Every identity check at customer onboarding was a paid vendor service, from reading the document to matching the face. All but one now run on the customer's own phone, and face matching runs on the company's own servers.
2025 to 2026. Kartik Vij.
Tell me about your problem
Three or four lines are enough: the process, who works on it, and roughly how many hours a week it takes. I reply within two working days.
The problem
Every new customer uploads identity documents and a selfie. Before anything is stored, a chain of checks runs: is the image usable, what does it say, which parts must be hidden before storage, is the person in the selfie real and present, and is it the same person as on the document. When I arrived, each link in that chain was a separate vendor service. Each one charged per use, so the cost of onboarding grew in step with every new customer. Added together, the chain was a recurring bill large enough to be noticed on its own.
The constraints
The cheapest phones in the customer base set the limit. Anything that ran on the device had to run on an entry-level handset, which ruled out heavy models and meant every component had to be small.
Identity numbers carry rules about which digits may be stored, so masking had to be exact and verifiable rather than a best effort. The stored photo also had to be consistent: a face on a plain background, captured at the right moment.
And the vendor was the benchmark. Nothing could be switched off until the replacement was at least as accurate on the same documents, measured rather than assumed.
What I built
Most of the chain now runs on the phone, inside the onboarding app. A blur check rejects an unusable photo before it is uploaded, which also saves the round trip to the server. Text recognition and a small classification model tell one document type from another and read the fields that matter, with a second small model trained to pick out the handful of fields the lender actually needs, such as the name and the document number. Masking follows from recognition: once the digits and codes that must not be kept have been located, covering them is exact. Watermarking marks the digits that are kept. Background removal replaces the selfie's background with plain white, so the photo on file is uniform.
The check that a live person is present was rebuilt rather than bought. Instead of a passive check that looks at one frame for signs of a screen or a printout, the app issues random instructions, such as turn left, turn right or blink, with clear prompts, and captures the frame at the moment the person has just complied. This is harder to fake, needs no model, and produces a better photo for the next step.
Face matching is the one step that stayed on a server, because it genuinely needs a model that a low-end phone cannot run well. It uses a face-matching model tuned for the kinds of documents and selfies the lender actually sees, hosted on the company's own servers. The cost of a match is the server, which does not change when the hundredth customer becomes the thousandth.
The result
The vendor chain, covering blur detection, text recognition, masking, watermarking, the live-person check and background removal, was costing more than $30,000 a month (₹25 lakh and more) in per-call fees. Those checks now run on the phone at no cost per use, and face matching costs a server rather than a vendor fee. The chain is being switched off one link at a time, as each on-device component proves itself against the vendor with real customers, with the saving recorded before each switch.
What I would do differently
I would measure accuracy against the vendor from the first week, on the same test set, so that each component carries its own proof on the day it is proposed. The comparison was added later than it should have been, and switching a vendor off is a decision that should be backed by evidence.
If your business has a problem like this
Somewhere in most businesses there is a process that takes far too long, or a bill that nobody can explain. Write to me with the details. Within two working days I will tell you whether it is worth fixing, and what the smallest system to fix it would be.
