Business process transformation

Intelligent document processing

Documents turned into reliable data, with a person checking the fields the system is unsure of.

How we do it

Overview

Much of the information a business depends on still arrives as documents, such as invoices, claim forms, contracts, bills of lading, identity papers and lab reports, and in many organizations someone reads each one and types its contents into a system. Extraction software has been able to read the clean documents for years. The difficulty lies with the others, for example a scan taken at an angle on a phone, a supplier whose layout has changed, a handwritten correction in the margin or a table that runs across two pages, and a demo on ten tidy samples tells you nothing about how those will go.

Two things make document processing usable. The first is a confidence score for every extracted field, as opposed to a single score for the whole document, together with a threshold set for each field. Values above the threshold go straight through, while for values below it a person sees the field next to the image of the page and confirms or corrects it. An invoice total usually warrants a stricter threshold than a reference note. The second is measurement, so before anyone relies on the system it is run on a labeled sample of your own documents and accuracy is reported for each field and each document type.

Newer models can read documents that template tools could not handle, although they also fail in a new way, since a language model can return a plausible value that does not appear anywhere on the page. We therefore check every extracted value against the page it came from, against arithmetic and against your master data. We also test the confidence that a model reports, because a score is only useful if the values it rates highly turn out to be right most of the time.

Challenges we address

The failures we are usually called in to fix
  1. The pilot used clean documents

    The pilot read ten sample invoices without error, but production brings skewed phone photos, faxed copies, stamps across the totals and tables that span several pages. Because accuracy on the real mix was never measured, the share of documents that needs a person only becomes clear when the backlog builds up.

  2. One accuracy figure for everything

    The vendor quotes a single accuracy number that averages a date field, which is almost always right, with line items that are often wrong. That figure tells you nothing about the one field your payment run depends on, which is the field you most need to know about.

  3. Confidence scores that were never tested

    Every value above a default threshold goes straight through, yet nobody has tested whether high-confidence values are actually correct on these particular documents. Wrong values therefore pass with a high score, while reviewers spend their time checking values that were already correct.

  4. A new template for every new layout

    When extraction rules are tied to the position of a field on the page, a supplier that redesigns its invoice or a newly added supplier means someone has to build another template. The maintenance effort grows with each sender that is added.

  5. Plausible values that are not on the page

    Asked for a tax number, a language model may return one that looks correct but does not appear anywhere in the document. Unless there is a check that ties every value to a location on the page, an invented value looks exactly like one that was actually read.

Our approach

How the work runs, in order
  1. Sample the real documents

    We take a sample from what actually arrived over recent months, including bad scans and rare document types, so that it reflects the real mix as opposed to the easily readable cases. Your staff label the correct value for each field, and that labeled set becomes the yardstick for everything that follows, with part of it held back for the final test.

  2. Define fields, checks and error cost

    For each document type we agree which fields are needed, their formats and the checks that apply to them, such as totals that have to add up, dates that must fall within a range and supplier numbers that must exist in master data. We then rank the fields by what a wrong value would cost, since that determines how strict each threshold needs to be.

  3. Build and measure in stages

    We build classification, text recognition, extraction and validation as separate stages and score each of them against the labeled set. Different approaches, from layout models to language models that read images, are compared on your documents, and we report accuracy for each field and document type alongside the cost per page.

  4. Set thresholds and build review

    We choose each field's threshold from measured data, looking at how many wrong values would pass and how many correct ones would be sent to review at each possible setting. The review screen shows the field, the region of the page it was read from and any check that failed, and each correction a reviewer makes is stored.

  5. Keep sampling after launch

    After go-live a person continues to check a sample of the documents that went straight through, so that a drop in accuracy is detected by measurement before anyone takes it for granted. Corrections from reviewers and new layouts are added to the labeled set, and the thresholds are reviewed again whenever the measurements shift.

Technical capabilities

What we design, build and operate
  • Classification and splitting

    We identify document types within a mixed inbound stream and split a scanned bundle into its separate documents before any extraction starts.

  • Text and handwriting recognition

    OCR for printed text and, where it is needed, recognition of handwriting, with image clean-up for pages that are skewed, low in contrast or photographed.

  • Field and table extraction

    We extract header fields, line items and tables that continue across pages, using either layout-aware models or language models that read images, depending on which proves more accurate.

  • Per-field confidence and thresholds

    Each extracted value gets a confidence score that is tested for how well it predicts correctness, and each field gets a threshold set by the cost of a wrong value.

  • Validation rules

    Arithmetic and format checks, consistency checks between fields and lookups against master data catch errors that a confidence score would let through on its own.

  • Grounding to the page

    Every value is linked to the place on the page where it was read, so that a reviewer or auditor can see the evidence, and any value without a source is rejected.

  • Review queues

    The review screens place each doubtful field next to its source region and are designed for quick correction from the keyboard, with a record of who changed which value.

  • Accuracy measurement

    This includes a labeled test set, precision and recall for each field, the rate at which documents pass untouched and a standing sample of live documents checked after launch.

Where it applies

Business applications
  • Accounts payable

    Supplier invoices and credit notes are read into the ERP with their header and line data, then checked against purchase orders before anything is posted.

  • Insurance claims intake

    Claim forms, repair estimates, medical bills and supporting letters are classified and extracted, so that an adjuster begins work from a file that is already filled in.

  • Customer onboarding and KYC

    Identity documents, proof of address and company registration papers are read and compared with the application, and any mismatch is passed to a compliance reviewer.

  • Trade and shipping documents

    Bills of lading, packing lists and customs declarations are extracted and compared with each other to find discrepancies before the goods are moved.

  • Contract and lease abstraction

    Parties, dates, renewal terms and obligations are taken from agreements into a register, with each entry linked to the clause it came from.

  • Referrals and clinical forms

    Referral letters, lab reports and consent forms are indexed to the correct patient record, and staff confirm every identity match the system is uncertain about.

In practice

Two situations this service is built for, and what we would do in each.

Insurance

Repair estimates retyped by claims adjusters

The situation
Motor claims at an insurer arrive by email with a claim form, photos, a police report and a repair estimate that could come from any of a large number of garages. Adjusters start every claim by sorting the attachments and typing estimate lines into the claims system, and a template tool that was tried earlier was dropped because each garage formats its estimate differently.
What we would build
With the adjusters we would label a sample of past claim bundles and then build classification to sort the attachments, along with extraction of the estimate's parts, labor lines and totals that does not rely on a fixed layout. Line amounts would be checked against the stated sum, and fields below their threshold would go to an adjuster with the page region shown. The software would fill in the file, while approving or disputing the estimate remains the adjuster's decision.
What it is designed to change
Adjusters would begin from a claim file that is already sorted and filled in and spend their time on judgment. We would measure line-item accuracy on a held-back sample, the number of estimates that pass without correction and the time from the email arriving to a file ready for assessment.
Healthcare

Referral letters typed into a scheduling system

The situation
A hospital group receives referrals as faxes and scanned letters, and clerks type the patient details and the requested specialty into the scheduling system. Urgent referrals wait in the same pile as routine ones until a clerk gets to them, and a mistyped identifier can attach a letter to the wrong patient.
What we would build
With the booking staff we would build a labeled sample of past referrals and extract patient identifiers, the referring clinician, the specialty and any wording that suggests urgency. Any patient match below a strict threshold would always go to a clerk, with the letter displayed beside the candidate records. Letters flagged as possibly urgent would move to the front of the clinical triage queue, although the decision on urgency stays with clinical staff and is never made by the software.
What it is designed to change
Clerks would confirm details in place of retyping them, and letters that may be urgent would be visible as soon as they arrive. Success would be judged on accuracy for each field on a held-back sample, the number of referrals that need correcting and the time from receipt to clinical triage.

Technologies

We work in your stack and recommend on fit. We resell nothing.
Document AI services
Azure AI Document Intelligence · Amazon Textract · Google Cloud Document AI · ABBYY Vantage
Open-source OCR and layout
Tesseract · PaddleOCR · docTR · Docling · LayoutLM-family models
Language models that read images
Anthropic Claude · OpenAI GPT models · Google Gemini · open-weight vision models
Labeling and review
Label Studio · Prodigy · custom review screens
Pipeline and storage
Python · PostgreSQL · object storage · message queues

Business outcomes

What changes for the organization
  • Accuracy known before anyone relies on it

    You see results for each field on your own documents before go-live, which means the decision to let values through without a check is based on a measurement.

  • Review time spent where it counts

    Reviewers check the doubtful fields in place of every document, and the fields where a mistake would cost the most receive the closest scrutiny.

  • New layouts without new templates

    Because extraction reads by content and layout and does not depend on fixed positions, it can cope with a new sender, and the labeled set shows quickly whether it has done so.

  • Evidence behind every value

    Every field in the target system can be traced back to a region of a page and a confidence score, and also to the reviewer who confirmed it where a review took place.

What you hold at the end

  • A labeled test set drawn from your own documents
  • An accuracy report by field and by document type
  • The extraction pipeline in production with its validation rules
  • A threshold for each field with the data behind the choice
  • A review queue and screen for uncertain fields
  • A sampling routine for documents that pass without review
  • A guide for adding a document type or a field

Questions buyers ask

It depends on the documents, which is why we measure before we promise anything. Documents created digitally with consistent fields usually extract very well, whereas handwriting, poor scans and dense tables tend to do worse, and any figure quoted before a test on your own sample is a guess. During the two-week review we run a labeled sample through the candidate approaches and report the result for each field, so that you can plan review staffing on a measured number.

Often you'll use both. Document AI services return text along with its position on the page and behave predictably from one run to the next, while language models that read images cope better with varied layouts and with fields that need interpretation, at the risk of returning a value that is not on the page. A common design uses a service for text and layout, a language model for extraction and checks that tie each value to its location. We decide based on measured accuracy and cost per page for your documents.

They can, for the fields and document types where measured accuracy supports it and the validation rules pass. That group starts small and grows as thresholds are tuned. Some decisions stay with a person in every case, such as a payment above a limit, an identity match or any value where a mistake has legal or safety consequences. A sample of the straight-through documents also continues to be checked, so that a decline is picked up by measurement before it leads to a complaint.

We set it from data, one field at a time. Using the labeled set, we show how many wrong values would pass and how many correct ones would go to review at each possible threshold, and the business owner chooses the trade-off knowing what each kind of error costs. Before that, we check that the score carries any information at all, because if high-confidence values are wrong about as often as low-confidence ones, the score is of no use and validation rules or a second read have to take its place.

We make that decision together with your security team. The choices are a cloud service in a region you select, models running inside your own cloud account, or open-source models on your own infrastructure. For personal, health or financial documents we check the provider's terms on retention and training use, limit access to the review screens by role and set retention periods for images and extracted data. If documents are not allowed to leave your environment, we design for that and accept a narrower choice of models.

Discuss intelligent document processing with the people who would do the work.

Tell us what you are trying to do and where it is stuck. A principal reads every message and replies within one working day.

How we engage

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy