Yes, when the task is narrow, someone has written down what a correct result is, the system has been scored against a set of your own documents, and a person or a rule catches the cases the model is unsure of. It stops being dependable when the documents vary without limit, when the fact you need is not on the page, or when one wrong value costs more than having a person check every document. Two projects we did for clients illustrate it. In one, the task was narrow and the pass mark was agreed before the build. In the other, the better answer was to get the data from the system that produced the document.
What “reliably” has to mean
No system reads every document correctly, and neither does a person keying them in by hand. The useful questions are what share it gets right on your documents, how you know, and what happens to the rest. Those answers should be in writing before anything is built.
Q Investments: a narrow task with a pass mark agreed first
Q Investments, in Fort Worth, already ran an automation system that controlled lights, heating and cooling, and motorized shades in its offices and homes, and it wanted people to be able to ask for an action by sending an ordinary email. In his review on Clutch, its IT Manager, Kenneth Croft, describes what we built: a service that watches a mailbox, reads each message, matches it to one of the actions the existing system can perform, triggers that action, and replies to confirm it and suggest alternatives.
The project was also a first step. Croft writes that it would give the firm’s internal teams hands-on experience with AI before they looked for other uses of it.
What was decided before the build is the part worth copying. Success was defined as identifying 95% of unambiguous requests correctly on the first try, and Q supplied 100 test cases to score against. He reports about 80% within two weeks and the 95% target by the end of the project.
Much of that result came from how the task was set up.
- The set of right answers was closed. The model’s only job was to match a message to one of the actions the automation system already supported.
- The test cases came from the client. Q wrote the examples, so the score measured what Q cared about.
- The sender sees what the system understood. The target covered unambiguous requests only, and the service replies to confirm the action and suggest alternatives.
An email is also among the easiest documents to read: typed text, and usually one request.
Express Freight Handlers: the data already existed somewhere else
Express Freight Handlers unloads trucks for wholesale food distributors. In his review on Clutch, its president, Jim Wissing, says the company deals with millions of purchase orders, was capturing the information for each truck by hand, and could not keep up with it.
We built a tablet app for the people in the field and a web application for regional managers, sales and the back office. One decision changed how much had to be keyed at all. Wissing says it was our suggestion that the company receive data files from its customers. Each morning the load information is brought in, so a site manager enters a purchase order and the rest fills in on the tablet.
This was not an AI project, and it began in 2017. It belongs here because of the question it raises before any model is chosen: whether the organization that produced the document can send the data itself. A purchase order, an invoice or a bill of lading is usually a printout of a record in someone else’s system. Reading the printout back into data is the second-best way to get that record.
Where document processing with AI works
- The text is typed or cleanly scanned.
- You want a known set of fields, or one choice from a fixed list.
- There are many documents of a few kinds, so a test set is easy to assemble and the time saved adds up.
- Each extracted value can be checked against something: the purchase order exists in the ERP, the line items add up to the total.
- A wrong value is cheap to catch and cheap to correct.
Reading and summarizing for a person who then decides belongs on this list too. For Momus Analytics we built a platform that gathers and summarizes information on prospective jurors and flags what an attorney might otherwise miss. The case study reports jury research time cut by 60%.
Where it does not work
- Handwriting, faxes and photographs of paper. Results get worse unevenly, so one supplier’s forms can be far below the average.
- Tables that run across pages, and layouts that change with every sender.
- Questions the page cannot answer. Whether an invoice should be paid depends on the receiving record, and that record is not in the invoice.
- Long contracts where one missed clause matters. A summary that leaves out a clause reads exactly like a complete one.
- Low volume with endless variety. If you see each kind of document twice a year, there is nothing to test against and little time to save.
- Tasks where nobody can say what correct is. If two experienced people would pull different answers from the same page, the model has no standard to meet.
What has to surround the model
Give the model a small job: read the document and fill in a defined set of fields. Ordinary code validates each field, compares it with the system of record, and sends anything that fails to a person. When a Plain Rule Beats a Model explains that division of work.
Use the model’s own uncertainty as well. Microsoft’s documentation for Azure Document Intelligence describes field confidence as an estimated probability between 0 and 1, which can be used to decide whether to accept the prediction or flag it for human review. Set the threshold from your test set. Sample the accepted documents too, because a model can be confident and wrong.
Keep the test set, and run it again whenever the prompt, the model or the mix of documents changes. How We Test AI Before It Touches Your Business describes how we build one.
Common questions
What accuracy should we expect? There is no general figure, because it depends on your documents and the fields you want. Measure it on fifty to a few hundred of your own documents with known answers, and decide beforehand what score is good enough.
Do we still need people in the process? Yes, for the documents the system is unsure of and for a sample of the ones it is sure of. The gain is that people check exceptions and stop keying every document.
Can it read handwriting and poor scans? Sometimes, and less dependably than typed text. Put those documents in your test set, so that you know the result before you rely on it.
If you have a document-heavy process in mind, our AI & Automation page describes how a build like this is scoped and tested.