Explainer 6 min read

Intelligent document processing: how IDP works and where it fits

By AKINO Labs · Updated

The short answer

Intelligent document processing (IDP) is software that turns documents such as invoices, contracts and forms into checked, structured data. It combines OCR to read the text with models that classify the document, extract the fields, validate them against rules and send low-confidence results to a person before export to the system of record.

Key takeaways

  • OCR turns an image into text; IDP turns a document into checked fields that another system can use.
  • A working pipeline has five stages: classify, extract, validate, human review and export.
  • Confidence thresholds decide what is accepted automatically and what a person checks, and they should be set per field, not per document.
  • Measure accuracy field by field on a labelled sample of real documents, including the bad scans.
  • Language models handle varied layouts and free text well; deterministic rules still win for arithmetic, formats and business checks.

What is intelligent document processing?

Intelligent document processing is the automated reading of business documents into structured, validated data. A supplier invoice arrives as a PDF; IDP returns the supplier, invoice number, dates, line items and totals as fields, checked and ready to post.

It sits between two older approaches. Manual data entry is accurate when people are careful, but slow and expensive at volume. Template-based capture reads fixed positions on a page, which works until a supplier changes its layout. IDP uses trained models to find the fields wherever they appear, then applies the same kind of checks a careful clerk would.

The output matters more than the reading. A document that has been read but not validated has only moved the error from the page into the system.

What is the difference between OCR and IDP?

Optical character recognition converts an image of text into machine-readable text. IDP uses OCR as its first step, then works out what the text means: which document this is, which number is the total, and whether the values agree with each other.

Cloud document platforms reflect this split. Google Cloud's Document AI, for example, groups its processors into digitising (OCR), extracting (form and layout parsers, custom extractors) and classifying (custom classifiers and splitters that separate a bundle into its documents).

OCR and intelligent document processing compared
OCRIntelligent document processing
OutputText, usually with positions on the pageNamed fields and tables, validated and ready to export
Understands document typeNoYes, through a classification step
Handles new layoutsReads the text, but cannot say which value is whichFinds fields by meaning rather than fixed position
Checks the resultNoValidates against rules and reference data
Human involvementSomeone still keys or checks every valueA person reviews only low-confidence or failed fields
Best forMaking scans searchableInvoices, forms, claims, contracts and other documents that feed a process

How does an IDP pipeline work?

An IDP pipeline moves each document through five stages, and each stage can stop it and ask for help.

Classify

Work out what arrived. An email may carry an invoice, a delivery note and a covering letter in one PDF, so classification often includes splitting the bundle. The document type decides which extraction model and which rules apply next.

Extract

Pull the fields that type needs, with a confidence score and the location on the page for each value. Keeping the location matters: it lets a reviewer see the evidence at a glance.

Validate

Check the values against each other and against reference data. Line items should add up to the subtotal, the tax should match the rate, the supplier should exist in the vendor master, and the purchase order number should be open.

Human review

Send anything below its confidence threshold, or anything that failed validation, to a person who sees the page and the extracted value side by side and corrects only what is wrong.

Export

Post the validated data to the ERP, claims system or contract repository, with a link back to the source document and a record of who or what approved each value.

How do confidence thresholds and human review work?

A confidence threshold is the score above which an extracted value is accepted without a person looking at it. Values below it go to a reviewer. Amazon's documentation for its human review service describes the same pattern: route low-confidence predictions, or a random sample, to people, giving scanned forms with poor image quality or handwriting as an example of where review is needed.

Three practices make thresholds work:

  • Set them per field. A wrong bank account number costs far more than a wrong reference line. High-risk fields deserve higher thresholds, or review every time.
  • Calibrate on your own documents. A model's confidence score is not a probability you can trust out of the box. Check, on a labelled sample, how often values at each score were actually right, then set the threshold from that.
  • Keep sampling. Send a small random share of high-confidence documents to review as well, so silent errors are caught and the threshold can be adjusted over time.

Review is also where the training data comes from. Each correction is a labelled example of a case the model found hard; keep them and use them to retest the next model version. This is human-in-the-loop design applied to documents.

Which documents suit intelligent document processing?

IDP suits documents that arrive often, carry the same kind of information each time, and feed a process with clear rules. The layout can vary; the purpose should not.

  • Strong fits. Supplier invoices, purchase orders, delivery notes, bank statements, claim forms, onboarding forms, identity and address documents, and the key terms of contracts such as parties, dates, renewal and notice periods.
  • Workable with more effort. Long contracts where the answer depends on reading several clauses together, handwritten forms, and multi-language document sets. Expect more review and a longer tuning period.
  • Poor fits. One-off documents, low volumes where manual entry is cheaper than building and checking a pipeline, and documents where the value lies in judgement rather than in fields.

Contracts sit at the boundary. Extracting a renewal date is document processing; deciding whether a liability clause is acceptable is review. Contract lifecycle management covers how extracted terms feed renewals and obligations.

How do you measure IDP accuracy?

Measure accuracy field by field on a labelled sample of real documents, not as one figure per document. A document with one wrong field is not nearly right if the wrong field is the amount.

  1. Build a test set from real intake. Include every supplier or form variant you can, poor scans, rotated pages, stamps and handwriting. Clean samples flatter every product.
  2. Label the expected value for each field. Have the people who do the work today agree the correct answer, including what should happen when a field is genuinely missing.
  3. Score per field. Exact match for identifiers and amounts; normalised match for dates and names.
  4. Measure straight-through processing. The share of documents that pass every threshold and check with no person involved, and the error rate among those. Both matter.
  5. Measure review effort. Time per reviewed document, and how often the reviewer had to change a value.
  6. Rerun on every change. A new model, prompt or rule is an improvement only if the per-field scores say so. LLM evaluation sets out the method in more detail.

Where do LLMs help, and where do rules still win?

Large language models are good at reading documents whose layout and wording vary; deterministic rules are better at anything that can be checked exactly. A sound pipeline uses both. Cloud platforms now build generative models into their document services, Google's Document AI among them, but the validation step is still yours to design.

Where language models help:

  • Documents from many senders with no common template
  • Free-text fields such as delivery instructions or claim descriptions
  • Contract terms written in different ways by different counterparties
  • Classifying unusual documents that a fixed classifier has not seen

Where rules still win:

  • Arithmetic: totals, tax and line-item sums
  • Formats: dates, tax identifiers, bank details, postcodes
  • Lookups: does this supplier, purchase order or policy number exist?
  • Business policy: approval limits, duplicate checks, tolerances

Language models can also produce a plausible value that is not on the page. Ask for the location of each value, check that the text at that location supports it, and treat a value with no evidence as a failed extraction. For question answering over the same documents, rather than field extraction, see RAG vs fine-tuning.

How AKINO Labs approaches document intelligence

Document intelligence is one of the capabilities of the AI agents and automation practice at AKINO Labs: contracts, invoices, policies and correspondence read at volume, with dates, obligations, totals and risk extracted and monitored rather than filed and forgotten. The practice uses span-labelled extraction for contracts and invoices, logs every run so an auditor can follow it, and puts human review on the decisions that warrant it.

For contracts specifically, ContractPro reads every agreement and surfaces the dates, obligations and risky clauses. Renewals and expiries alert weeks in advance with the clause, the counterparty and the deadline attached, obligations are extracted and monitored, and risky clauses are flagged during review rather than found after signing.

Questions people ask

Is IDP the same as OCR?

No. OCR converts an image of text into text. Intelligent document processing uses OCR as a first step, then classifies the document, extracts named fields, validates them and routes doubtful values to a person.

Can AI extract data from scanned PDFs?

Yes, once OCR has read the page, though poor scans, stamps and handwriting lower confidence. Those documents should fall below the confidence threshold and go to human review rather than straight into a system.

What is straight-through processing in IDP?

It is the share of documents that pass every confidence threshold and validation check with no person involved. It should always be reported alongside the error rate among those documents.

Do you need templates for intelligent document processing?

Not usually. Modern extraction models find fields by meaning rather than fixed position, so new layouts from the same document type can be read without a new template, though accuracy should still be tested on them.

Should a language model do all of the extraction?

It is better used for the reading and left to rules for the checking. Arithmetic, formats, lookups and approval limits are more reliable as deterministic rules than as model output.

Sources

  1. Document AI overview. Google Cloud. Groups Document AI processors into digitise (OCR), extract (custom extractor, form parser, layout parser, pretrained parsers) and classify (custom classifier and splitter), and says the service is built on Vertex AI products with generative AI.
  2. Using Amazon Augmented AI for human review. Amazon Web Services. Describes sending low-confidence predictions or random samples to human reviewers, including for document text extraction, and gives low-quality scans and poor handwriting on forms as reasons review is needed.
Talk to an expert

Want this worked through on your own operation?

Send one sentence on what you are trying to fix. A practitioner replies with a straight view of what to build, what to buy and what to leave alone.

  • A reply from a practitioner, not a sales script.
  • A prioritised view of what to build, what to buy, and what to leave alone.
  • No obligation. If we are not the right fit, we will say so.
Kinjal DesaiFarhad WadiaHemang ShahMonesh ShahaniA principal replies within one business day.
Or use the full contact form

A quick “I'm not a robot” check appears here when you start.

Used only to reply to you. Privacy policy

Looking for a job? Introduce yourself to the hiring team.