# US 2021/0264208 A1 · Systems and methods for domain agnostic document extraction with zero-shot task transfer

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0264208 A1
- Document ID: US20210264208A1
- Status: Published application
- Kind: A1
- Application number: 16/853,194
- Filed: 2020-04-20
- Published: 2021-08-26
- Earliest claimed: 2020-02-25
- Assignees: UST Global (Singapore) Pte. Ltd.
- Applicants: UST Global (Singapore) Pte. Ltd.
- Inventors: Prithiviraj Damodaran
- Web page: https://patentgrep.com/patent/US20210264208A1

## CPC

- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06F 18/2148: {characterised by the process organisation or structure, e.g. boosting cascade}
- G06N 5/02: Knowledge representation; Symbolic representation
- G06N 5/04: Inference or reasoning models
- G06N 5/041: {Abduction}
- G06N 20/00: Machine learning
- G06V 30/19147: {Obtaining sets of training patterns; Bootstrap methods, e.g. bagging or boosting}
- G06V 30/19167: {Active pattern learning}
- G06V 30/416: Extracting the logical structure, e.g. chapters, sections or page numbers; Identifying elements of the document, e.g. authors
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A system for performing document extraction is configured to: (a) receive a first document; (b) extract the first document into document elements, the document elements including pages, lines, paragraphs, or any combination thereof; (c) determine a first set of fields of interest for the first document, wherein the first set of fields of interest are determined via a type of the first document or via a first set of queries for probing the first document; (d) determine, from a plurality of closed domain question answering (CDQA) models, a first set of CDQA models that provides answers to each field of interest included in the first set of fields of interest; and (e) provide answers to the first set of fields of interest to the client device.

## Claims

### Claim 1

A system for performing document extraction, the system including a non-transitory computer-readable medium storing computer-executable instructions thereon such that when the instructions are executed, the system is configured to:
receive a first document;
extract the first document into document elements, the document elements including pages, lines, paragraphs, or any combination thereof;
determine a first set of fields of interest for the first document, wherein the first set of fields of interest are determined via a type of the first document or via a first set of queries for probing the first document;
determine, from a plurality of closed domain question answering (CDQA) models, a first set of CDQA models that provides answers to each field of interest included in the first set of fields of interest; and
provide answers to the first set of fields of interest to the client device.

### Claim 2 (depends on 1)

The system of claim 1, wherein the answers to the first set of fields of interest are stored in a knowledge graph.

### Claim 3 (depends on 1)

The system of claim 1, wherein the type of the first document includes an invoice statement, an annual report, a statement of work, a master service agreement, or any combination thereof.

### Claim 4 (depends on 3)

The system of claim 3, wherein a respective field of interest in the first set of fields of interest is configurable via a graphical user interface with at least one configurable option indicating that the respective field of interest is alphabetic, numeric, or alphanumeric.

### Claim 5 (depends on 1)

The system of claim 1, wherein the first set of CDQA models includes at least two CDQA models selected from the group consisting of: Bidirectional Encoder Representations from Transformers (BERT) trained on Stanford Question Answering Dataset (SQuAD), Simple Bi-Directional Attention Flow (BiDAF), ELMo-BIDAF.

### Claim 6 (depends on 1)

The system of claim 1, wherein the answers to the first set of fields of interest include dates, and the system is further configured to normalize the dates to a locale of the client device.

### Claim 7 (depends on 1)

The system of claim 1, further configured to provide a first set of indexes to the client device, wherein a respective answer in the answers to the first set of fields of interest is contained in one of the document elements referenced by a respective index in the first set of indexes.

### Claim 8 (depends on 1)

The system of claim 1, further configured to:
receive a second document;
extract the second document into document elements;
determine a second set of fields of interest for the second document, wherein the second set of fields of interest are determined via a type of the second document or via a second set of queries for probing the second document;
determine, from the plurality of CDQA models, a second set of CDQA models that provides answers to each field of interest included in the second set of fields of interest; and
based at least in part on the first set of fields of interest for the first document and the second set of fields of interest for the second document sharing common answers for common fields, linking answers to the second set of fields of interest and the answers to the first set of fields of interest in a knowledge graph.

### Claim 9 (depends on 8)

The system of claim 8, wherein the first document is a master service agreement and the second document is a statement of work.

### Claim 10 (depends on 9)

The system of claim 9, wherein the common fields include a First Party field, a Second Party field, and a Master Service Agreement effective date field.

### Claim 11 (depends on 1)

The system of claim 1, further configured to:
store the answers to the first set of fields of interest in a knowledge graph;
receive corrected answers from the client device; and
replace, in the knowledge graph, at least one of the answers to the first set of fields of interest with the corrected answers.

### Claim 12 (depends on 11)

The system of claim 11, further configured to:
generate training data based at least in part on the corrected answers; and
train a machine learning model with the training data, the trained machine learning model being a document specific model for extracting documents of the type of the first document.

### Claim 13 (depends on 12)

The system of claim 12, wherein the machine learning model is a named entity recognition model or a semantic slot filling model.
