Home / Insights / AI in Practice
Intelligent Document Processing: From Paper to Data
Reading invoices, forms and contracts with AI, and building checks that keep records accurate.
Much business information arrives as documents rather than data. Retyping it is slow and error-prone.
Beyond optical character recognition
Optical character recognition turns images into text. Understanding a form also requires layout: a number means something different next to "subtotal" than next to "invoice no.". Models such as LayoutLM learn from text, position and image together. Large multimodal models can now be asked for specific fields directly.
Diagram by O&O Consulting.
Validation
Extraction is a prediction and will sometimes be wrong. Documents offer built-in checks:
- line items should add to the subtotal;
- tax should match the stated rate;
- dates should be plausible;
- supplier numbers should exist in your records;
- an invoice should not already have been paid.
Human review
Route low-confidence or rule-breaking cases to a person, showing the original beside the extracted values. Set the threshold by measuring error at different levels. A model's stated confidence may be poorly calibrated, so verify it against checked samples.
Measuring success
Count the share of documents processed with no human touch and, separately, the error rate among those. A high automation rate with undetected errors is worse than a lower rate that is trustworthy.
Fraud and security
Automated payment processes attract fraud. Verify changes to bank details through a separate channel, keep approval limits and log who approved what. Treat text within a document as data, never as instructions to the system.
Limitations and open questions
Handwriting, poor scans, unusual layouts and mixed languages remain harder. Generative models may "complete" a missing value with a plausible one, so require them to report absence, and check that they do. Personal information in documents must be stored and retained according to applicable law.
References
- Xu, Y. et al. (2019). "LayoutLM: Pre-training of Layout and Text for Document Image Understanding." arxiv.org/abs/1912.13318
- Guo, C. et al. (2017). "On Calibration of Modern Neural Networks." arxiv.org/abs/1706.04599
- Ji, Z. et al. (2023). "Survey of Hallucination in Natural Language Generation." ACM Computing Surveys. doi.org/10.1145/3571730
This article is general information, not financial, legal or investment advice. AI research and rules change quickly; check the cited sources for the current position.