Problem
Sun Finance, an online lender in nine countries, sent about 60% of 80,000 monthly microloan applications in one market to manual review. About 80% of those cases came from mismatches between fields read from the ID and data typed by the customer, and 60% of the mismatches were OCR errors, not customer mistakes. The local language is underrepresented in OCR training data, and there are 7 ID types. Roughly 10% of daily requests were fraud, often selfies with reused backgrounds. Review took about 3 full-time staff and up to 20 hours.
Example from the article: the 2019 Rekognition and Textract pipeline reached 79.73% field accuracy on 585 ID images.
Solution in brief
Run a specialized OCR service first, then let an LLM only structure the extracted text into fixed fields, with a second OCR as fallback and format validation rules. Fraud is scored by two parallel checks: a vision LLM looks for screen photos and manipulation, and an embedding of the face-masked background is searched against known fraud images.
Questions this case answers
- How to extract structured fields from document images when a vision LLM refuses or misreads identifiers and plain OCR is weak on a low-resource language
- How to detect coordinated fraud when attackers reuse near-identical images across many applications and labeled fraud is rare
- How to extract ID document fields reliably when OCR fails on a local language and several ID layouts
- How to cut manual review of loan applications caused by OCR mismatches
Tools and methods
- Amazon Textract — primary OCR of ID images
- Amazon Rekognition — fallback OCR, face detection and face masking
- Claude Sonnet 4 (Amazon Bedrock) — structuring OCR text into JSON fields; screen-photo and manipulation detection
- Amazon Titan Multimodal Embeddings — 1024-dimensional vectors of masked backgrounds
- Amazon S3 Vectors — similarity search against confirmed fraud images
- AWS Step Functions, Lambda, Terraform — parallel serverless orchestration
Google or a one-time email code. No password.