Improve the performance of your document processing model

If your model performance isn't where you want it to be, for example you're getting bad results or low confidence scores, there are some things you can try.

Interpret your model accuracy score

Interpret your accuracy score to identify what your model is struggling to extract. Model evaluations include recommendations for raising the score.

  1. Sign in to Power Apps or Power Automate.

  2. In the left pane, select AI Builder > Models.

  3. Open the document processing model you want to investigate. You should see the accuracy score.

    Note

    In the following cases you won’t see accuracy scores for document processing models:

    • If the model was trained selecting ‘Unstructured and free-form documents’ as document type. Currently, accuracy scores are only returned for models of type ‘Structured and semi-structured documents’.
    • Your model has been imported from another environment.
    • If your model was trained before January 1, 2022. In this case, you can retrain it.
  4. On the model details page, you should see the general accuracy score.

    Screenshot of the accuracy score.

  5. To get details, select review full evaluation.

    Screenshot of the Model evaluation screen, Overview tab.

    In this panel, you can navigate among different tabs to identify what your model is struggling to extract. You can browse the Collection, Field, Table, and Checkbox tabs to find what isn’t processed properly.

    Here's an example of the information in the Field tab.

    Screenshot of the Model evaluation screen, Field tab.

    In this example, you'll want to improve the accuracy of the Vendor information.

    Screenshot of a poor accuracy score in the Field tab.

    See suggestions on what you can do to improve your model by hovering over items with a poor accuracy score. For example, you might see a recommendation to provide more sample documents for training.

Common questions

What can I do if I have a low accuracy score for a field, table, or checkbox?

  1. Check that the field, table, or checkbox has been tagged correctly in all the documents.

  2. Provide more sample documents for training where the field, table, or checkbox is present.

What can I do if I have a low accuracy score for a collection?

Check that the documents within the collection all have the same layout. To learn more about collections, go to Group documents by collections.

Add more documents to the training data

The more documents you tag, the more AI Builder will learn how to better recognize the fields. To add more documents, edit your document processing model and upload more documents. You'll find the option to edit the model on the details page of the model.

Screenshot of the details page with the option to edit a document processing model.

More tips

  • For filled-in forms, use examples that have all of their fields filled in.
  • Use forms with different values in each field.
  • If your form images are of lower quality, use a larger data set (10-15 images, for example).
  • If possible, use text-based PDF documents instead of image-based documents. Scanned PDFs are handled as images.
  • When you create a document processing model, upload documents with the same layout where each document is a separate instance. For example, invoices from different months should be in separate documents and not all in the same one.
  • Documents that have different layouts should go into different collections when you upload samples for training.
  • If the document processing model is extracting values from neighboring fields from the one you want the model to extract, edit the model and tag adjacent values that are being picked up incorrectly as being different fields. By doing this, the model will better learn the boundaries for each field.

See also