Training an Identification Model

Training an Identification Model

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 Understand Document Types.

Requirements for training an ID model

Step 1 — Sampling documents

Before uploading documents, make sure your Dataset reflects the documents you expect to process in production. Learn how to prepare your dataset in Preparing training data.

Step 2 — Build a layout, add it to a release, and assign it to a flow

After identifying the fields you want to extract, create a layout to define how those fields are captured.

Your layout determines:

Example

Consider the following insurance claim form:

This is a typical semi-structured document where key information is spread across sections and may appear in different locations depending on the format.

Step 3 — Training Data Management (TDM)

Use the tools in Training Data Management to control, manage, and adjust the ground truth of your training sets for Identification and Classification models. In this section, you will learn how to upload your data using TDM. Before you start:

Ground truth

Ground truth is manually annotated data used to train our machine-learning models. We use a subset of this data to assess the performance of your models.

Step 4 — Analyze your data

Training Data Analysis allows you to group your training documents and receive recommendations to improve the quality of your dataset. Learn more in Training Data Analysis

Step 5 — Annotate your documents

Learn how to annotate your documents by following the best practices listed below.

General guidelines

  1. Once you analyze the data, you’ll be able to annotate by group.
  2. After annotating 2-3 documents per group, you’ll be able to use guided data labeling.
  3. Follow the general rule for annotating: left to right, top to bottom.
  4. Make sure to maintain consistent annotations for your fields or columns.

Field Identification

  1. Annotate fields with Multiple Occurrences only when multiple instances of a field are present.
  2. Use multiple bounding boxes when a text is logically connected.
  3. If you don’t see a value for a field (i.e., the field is blank), do NOT annotate it.

Table Identification

  1. When annotating a table, select a row where all data is present as your template row.
  2. Always find your table's first and last rows and ensure they are properly annotated.
  3. Draw one large bounding box capturing all rows of your table.

Next steps

Step 6 - Review your flow and train your model

Once you’ve reviewed your annotations and addressed any potential anomalies, you’re ready to initiate model training.

Review the flow’s configurations:

Run Training

Initiate a model training by clicking the Run Training button.

Step 7 — Evaluate the training results

Deploy your model

Once the model training is complete, you’ll find the candidate model in the model details page. To deploy it, click on your candidate model, then click Deploy Model.

Evaluate the performance

Use the documents you’ve chosen for testing purposes to evaluate the performance of your model.