Document intelligence
Reading national ID cards and banking forms automatically at ISC. I benchmarked more than ten models, fine-tuned the best ones into an ensemble, and raised field-level accuracy from 80% to 96% on a held-out set. Manual data entry dropped by 70%.
- Role
- Machine Learning Engineer
- When
- Nov 2025 to present
- Stack
- Python · OCR · vision-language models · fine-tuning · service API
- Result
- 80% → 96% field accuracy · −70% manual entry
Reading bank documents so people do not have to
Since November 2025 I have worked as a machine learning engineer at Informatics Services Corporation (ISC), the same company behind BankID and Hamoon. My work is document intelligence for banking: taking photos of national ID cards and bank forms and turning them into clean, structured data.
Before this, a lot of that data was typed in by hand. The goal was simple to say and hard to do well: read the documents automatically, know when the machine is unsure, and send only those cases to a person.
This is internal banking work, so the details here are kept general. The numbers come from a held-out evaluation set, explained below.
Measure first, then choose
The temptation with OCR is to pick the newest model and hope. I did the opposite and built the evaluation before choosing anything.
I wrote a Python evaluation harness that covers eight document types and different capture conditions: good light, bad light, glare, angles, blur. Then I benchmarked more than ten candidate models, including Qwen-VL and PaddleOCR, on a held-out set of 12,000 images. Each model was scored on field-level accuracy, on latency, and on how it failed, because a model that fails loudly is much easier to live with than one that is quietly wrong.
What shipped
- Domain models fine-tuned on our document types, combined into a production ensemble.
- Extraction of 12 structured fields per document.
- Confidence thresholds on every field. Low-confidence results go to a human reviewer instead of straight into the system.
- Inference packaged behind a service API with retries and failure logging, so problems in production are visible instead of silent.
The confidence routing matters as much as the accuracy. In Release It!, Michael Nygard argues that a system should be designed for how it fails, not only for how it works. For OCR that means a wrong field should never look the same as a right one.
On the held-out set
What I would keep doing
- Build the evaluation harness before the model. Without it, every comparison is an opinion.
- Measure failure modes, not only accuracy. Two models with the same accuracy can be very different to operate.
- Design the human step on purpose. Routing low-confidence results to a reviewer is what made high automation safe.