Building a Structured Use Case

Building a Structured Use Case

Hyperscience extracts data from documents and converts them into a machine-readable format. We support Structured, Semi-structured, and Additional documents. To learn how to differentiate between the document types, see Understanding Document Types.

Structured use cases

Use Structured layouts for documents that follow a consistent, predefined format. The pages in these documents have a clear visual design with fixed fields and standardized, repetitive patterns.

Key aspects of Structured layouts

In this article, you’ll learn how to build and evaluate your Structured models in Hyperscience for efficient document processing.

Step 1 - Sample your documents

Reviewing your documents is the first step in creating a robust, structured model.

Layout variations

Sometimes, your documents have small differences in their visual design. In Hyperscience, these differences are handled seamlessly by using layout variations within Structured layouts.

Example

Step 2 - Upload a blank form

To process filled documents with the same visual design through Hyperscience, you need to create a Structured layout based on a non-filled (blank) form.

Upload a blank form

To upload a blank form:

  1. Go to Library > Layouts.
  2. Click Add Layout.
  3. Click Structured Layout, and then click Next.
  4. Upload a PDF, TIFF, JPG, or PNG file in one of the following ways:
    • Drag and drop the image file in the dialog box, or
    • click Choose File to upload from your machine.
  5. Click Next.
  6. Enter a name for your layout in the Layout Name field.
  7. Choose the language you expect people to use when filling out the documents from the Language drop-down menu.
  8. Click Create.

Once the blank form is added, you need to create a Structured layout in the Layout Editor. The Layout Editor is where you define what information Hyperscience should extract from the document.

Step 3 - Create a Structured layout

Field types

Create a layout that shows Hyperscience where to find the data you need in the Layout Editor. It helps you map fields on the form to the information you want to extract. You can extract data from the following data points:

Data types

Data types help the system understand what kind of information to expect in a specific field. For example:

Creating a Structured layout

To access the Layout Editor:

  1. Go to Library > Layouts and click on the name of your layout.
  2. Once in the Layout Variations tab, click on the name of the variation.

Layout Editor best practices

Drawing bounding boxes

Field names and data types

Configure field settings

| Setting | Description | Example | | Field Name | This name is used to label the field in the system and should be easy to read. | If the form label says Name (Last, First), you might name the field Applicant Name (Last, First) or Name_LastFirst. | | Data Type | Defines the kind of data the field should contain. | If the field is meant to capture a date of birth, select Date as a data type. | | Output Name | Defines a programmatic name for each field. | If the display name is Applicant Name (Last, First), the output name might be applicant_name_last_first. | | Required | When a field is marked as “Required,” the system will apply special logic to the processing. | If the transcription of a required field is determined to be blank, or if the field is marked illegible, an exception will be generated stating that the value of the required field was missing. |

Step 4 - Adjust your layout variations

When creating a new variation in the Layout Editor, you can choose to start from an existing variation. You must have at least one existing variation in the layout. If no variations are available, you'll need to create a new layout from scratch.

Shared fields

Shared fields are the ones included in all of a layout’s variations.

Active and Inactive Items

If you want to remove a field from one variation but keep it in others, you should deactivate the field instead of deleting it.

Step 5 - Commit changes and deploy

Step 6 - Evaluate Structured models

After you’ve committed changes and deployed your Structured layout, it is Live and ready to process documents. The next step is to upload your filled documents and monitor the model’s performance.

Upload your completed documents

Upload your documents as submissions by following the steps below:

  1. Go to Submissions.
  2. Click Create Submission.
  3. Upload the filled documents. If you’re uploading multiple documents at once, select One Submission per file to evaluate the performance of each document.
  4. Click Next and follow the prompts.

Using QA to improve accuracy

Use the Documents tab to review the extracted data and identify potential issues. Field Transcription QA allows you to sample and review individual fields from submitted documents.

To enable Field Transcription QA:

  1. Go to Flows and click on the flow you want to enable QA for.
  2. Click Edit Flows to access the Flow Studio.
  3. Select the Transcription Quality Assurance checkbox.
  4. Click Save to confirm the changes.