Understanding Document Types

Understanding Document Types

Hyperscience extracts data from documents and converts it to a machine-readable format. We support Structured, Semi-structured, and Additional documents.

In this article, you'll learn how to differentiate between these three document types and understand how Hyperscience processes them differently.

Structured

Structured documents are those where the layout of information on the page is consistent (e.g., the information is in the same location every time you receive the same form). These documents are often printed out and filled out by hand, or they are PDFs with fields that can be completed electronically.

For example, consider a tax form issued by your local government. Each person who fills out the form will be using the same form, and that person will fill out each field with their own relevant information, but the location of each field will be consistent overall.

Essentially, documents with consistent location of data types and data fields are Structured.

Semi-structured

Semi-structured documents do not necessarily have a consistent location for information across all documents.

For example, consider a business that receives hundreds of thousands of invoices from hundreds of different vendors. Each vendor will likely place common pieces of information (e.g. the invoice identification number, the payer's address, etc.) in different places on their respective invoices. Even among documents received from a single vendor, the exact location of some pieces of information may vary due to the number of line items (e.g. "Total" may be on page 1 in some documents and page 4 in others).

Essentially, documents with consistent data types but inconsistent location of data fields are Semi-structured.

Additional

Additional documents do not have any fields for extraction. Typically, these are contextual components that belong in a submission but do not have any valuable information for downstream processes.

For example, consider an insurance claim that is composed of multiple pages meant for extraction. This claim will almost certainly be introduced with a cover page, however, this page will not likely provide any additional information than what is already contained in the document.

Essentially, these documents do not have data for extraction – just categorization for context.

Workflow differences based on document type

Layout setup

Regardless of the document type, you need to create a layout before processing a document through Hyperscience. However, the layout setup process differs among Structured, Semi-structured, and Additional documents.

Supervision tasks

Due to the different nature of these documents, some Supervision tasks are only applicable to certain document types:

Document Type Document Classification Identification Transcription
Structured X X
Semi-structured X X X
Additional X *

*Additional documents can go through Transcription if the Manual Extract workflow is enabled during layout creation.

Document Classification

Document Classification will be generated based on the system settings for Document Classification tasks.

Identification

There are two types of Identification tasks that apply exclusively to Semi-structured documents: Field Identification and Table Identification.

  1. Field Identification tasks can be created in two cases:

    • Before a model has been trained and deployed, all fields will require manual Field Identification.
    • After a trained model has been deployed, and when the machine is uncertain about the location of a given field, a manual Field Identification task will be created.
  2. Table Identification tasks will always be created for documents associated with a layout that contains tables.

Transcription

Transcription tasks are created whenever the machine is uncertain about the transcription of a specific field.

Quality Assurance

Quality Assurance (QA) serves two purposes within Hyperscience:

  1. To provide accuracy estimates for Field Output, Transcription, and Field Identification.
  2. To provide training data for the system to improve itself.

QA for Structured Documents

For Structured documents, individual fields are sampled according to a configurable sample rate and put through a consensus process to determine the "correct" answer.

QA for Semi-structured Documents

For Semi-structured documents, individual documents are sampled according to a configurable sample rate and put through a QA process to measure Field Identification accuracy.