Purpose

The Affinda platform automates the extraction of data from your documents into a structured and usable format. However, user review may be required to validate the model outputs. This tutorial will guide you through validating the data extracted from your documents in the Affinda Platform.
If you’re a new user of the Affinda platform, we recommend viewing the Getting Started with the Affinda Platform tutorial first to get familiar with our app.
This tutorial is aimed at users who are reviewing the outputs from the Affinda platform. This may be for:
  1. Model improvement: Confirming documents when the data is correct will improve model performance over time by adding the documents to ‘model memory’
  2. Ongoing document processing: ‘Human in the loop’ review of documents processed as part of general processes
We recommend reading the Getting Started tutorial to understand some core components of the Affinda Platform before completing this tutorial.

Step-by-Step

Visual Learner? Follow along with our Video Tutorial:
1

Open the document for review in the Affinda app

Start by opening the Document Validation Interface for a document you want to review.
2

Get familliar with the Validation Interface

Splitting InterfaceSplitting InterfaceThe validation interface provides an easy and intuitive interface to validate the data extracted from your documents.
  1. The left-hand pane shows the list of documents for review. You can navigate between documents by clicking on their name,
  2. The status of the document is shown in the top pane above the document. For Validation, you should look at documents with “For Review” status. Documents that have already been reviewed will have “Confirmed” status.
  3. The document is displayed in the middle of the interface.
  4. The right-hand pane shows your fields and the value the model extracted from the document you have open.
  5. In the bottom right corner, you can see if any validation rules have failed on this document. If you hover your mouse over, you can see exactly which rules have passed and failed.
  6. At the bottom right corner is the “Confirm document” button. Confirming the document allows the model to learn and improve accuracy. However, only confirm a document once all extraction has been checked and corrected, to avoid the replication of errors.
3

Field status

Fields against validation rulesFields against validation rules
  • Orange fields show the model’s predictions for that field on the document; they should be reviewed.
  • Red fields indicate the data extracted from the document failed a validation rule; these should be checked.
  • Green fields have been confirmed. The tick symbol indicates the field was manually confirmed, whilst the lightning bolt icon indicates the field was auto-confirmed as it passed validation rules.
4

Review field extraction

Check each field and validate that the data extracted by the model matches what’s on the document.Always check for fields that failed validation rules, and for any key fields that might be missing.
5

Correcting an incorrect field

If you notice a field has been missed or extracted in the wrong place, correct the annotation by adjusting or redrawing the box on the document where it should’ve been extracted. Make sure you have selected the correct field name in the drop-down, and press confirm.Repeat this process for all incorrect fields on your document.
6

Confirm Document

Once you are happy with all the fields and their extracted values match what’s on the document, click “Confirm Document”.Depending on your Validation Settings, you might not be able to confirm a document until all of your validation rules pass.Once the document is corrected and confirmed, the model can use it in its Model Memory. This allows the models to learn from your documents and improve performance on future documents.Clicking confirm will move you on to the next document in the “For Review” queue.

Additional actions

Document View Validation Actions Document View Validation Actions Other helpful features in the validation interface include:
  1. Reclassification: Adjust or remove the document’s classification, which triggers the document to re-parse. See Splitting & Classification tutorial for more information.
  2. Edit Pages: Split documents into multiple files, rotate pages, or delete pages as needed. See Splitting & Classification tutorial for more information.
  3. Apply OCR: Apply Optical Character Recognition (OCR) to address text extraction issues and automatically reprocess the document.
  4. Model Memory Reference: Review the reference document used by the model for extraction. Useful for checking if a similar document format is already stored in Model Memory and identifying any annotation errors.
  5. Re-parse: Re-process the document using the latest model updates.