# US 2021/0286989 A1 · Multi-model, multi-task trained neural network for analyzing unstructured and semi-structured electronic documents

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

- Number: US 2021/0286989 A1
- Document ID: US20210286989A1
- Status: Published application
- Kind: A1
- Application number: 16/815,391
- Filed: 2020-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Peter Zhong; Antonio Jose Jimeno Yepes; Elaheh ShafieiBavani
- Web page: https://patentgrep.com/patent/US20210286989A1

## CPC

- G06F 16/93: Document management systems
- G06F 16/35: Clustering; Classification
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/177: of tables; using ruled lines
- G06F 40/205: Parsing
- G06F 40/216: using statistical methods
- G06F 40/30: Semantic analysis
- G06F 40/35: Discourse or dialogue representation
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/09: Supervised learning
- G06N 3/091: Active learning
- G06N 5/025: Extracting rules from data
- G06N 20/20: Ensemble learning
- G06V 10/82: using neural networks
- G06V 30/19173: {Classification techniques}
- G06V 30/413: Classification of content, e.g. text, photographs or tables
- G06N 5/04: Inference or reasoning models
- G06N 20/00: Machine learning
- G06V 30/10: Character recognition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments of the invention describe a computer-implemented method of analyzing an electronic version of a document. The computer-implemented method can include an architecture of machine learning sub-models that performs the global task of translating unstructured and semi-structured inputs into numerical representations that can be recognized and manipulated by a content-analysis (CA) sub-model without relying on brute force analysis. Embodiments of the invention achieve these results by separating the global task into auxiliary tasks and assigning each sub-model to at least one of the auxiliary tasks. The auxiliary tasks can include parsing the unstructured or semi-structured inputs into format types (e.g., lists, tables, figures, text, etc. of a PDF document), extracting features of the parsed document, and performing a computer-based CA on the extracted features. The sub-models are trained in stages and in groups, wherein both the stages and the groupings are based on the complexity of the sub-model's assigned task.

## Claims

### Claim 1

A computer-implemented method of performing a global task comprising analyzing an electronic version of a document, the computer-implemented method comprising:
receiving, using a processor, an electronic document comprising electronic document data having multiple electronic format types;
using a first machine learning model to perform a first sub-task of the global task, the first sub-task comprising:
parsing the electronic document data into the multiple electronic format types, thereby generating multiple parsed electronic format types; and
individually labeling each of the multiple parsed electronic format types, thereby generating multiple parsed labeled electronic format types;
wherein the multiple parsed labeled electronic format types include a first parsed labeled electronic format type and a second parsed labeled electronic format type;
using a first format-type machine learning model to perform a second sub-task of the global task, the second sub-task comprising extracting features from the first parsed electronic format type, thereby generating a first set of extracted features;
using a second format-type machine learning model to perform a third sub-task of the global task, the third sub-task comprising extracting features from the second parsed electronic format type, thereby generating a second set of extracted features; and
using a content analysis (CA) machine learning model to perform a fourth sub-task of the global task, the fourth sub-task comprising:
receiving an inquiry;
analyzing the first set of extracted features to determine a relevance of the first parsed labeled electronic format type to the inquiry; and
analyzing the second set of extracted feature to determine a relevance of the second parsed labeled electronic format type to the inquiry;
wherein the first machine learning model, the first format-type machine learning model, the second format-type machine learning model, and the CA machine learning model have been trained in stages comprising:
a set of individual training stages comprising training:
the first machine learning model individually to perform the first sub-task;
the first format-type machine learning model individually to perform the second sub-task;
the second format-type machine learning model individually to perform the third sub-task; and
the CA machine learning model individually to perform the fourth sub-task;
a first joint training stage comprising jointly training:
the first machine learning model to perform the first sub-task;
the first format-type machine learning model to perform the second sub-task; and
the second format-type machine learning model to perform the third sub-task;
a second joint training stage comprising jointly training:
the first machine learning model to perform the first sub-task;
the first format-type machine learning model to perform the second sub-task;
the second format-type machine learning model to perform the third sub-task; and
the CA machine learning model to perform the fourth sub-task.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the electronic document received using the processor is unlabeled.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the electronic document data comprises electronic image data.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the first electronic format type is selected from a group consisting of a segment of text, a table, a figure, and a list.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the second electronic format type is selected from the group consisting of a segment of text, a table, a figure, and a list.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the fourth sub-task performed by the CA machine learning model further comprises generating a response to the inquiry.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein generating the response to the inquiry is based at least in part on:
the relevance of the first parsed labeled electronic format type to the inquiry; and
the relevance of the second parsed labeled electronic format type to the inquiry.

### Claim 8

A computer system for performing a global task, the global task comprising analyzing an electronic version of a document, the computer system comprising:
a memory; and
a processor communicatively coupled to the memory, wherein the processor is configured to perform operations comprising:
receiving an electronic document comprising electronic document data having multiple electronic format types;
using a first machine learning model to perform a first sub-task of the global task, the first sub-task comprising:
parsing the electronic document data into the multiple electronic format types, thereby generating multiple parsed electronic format types; and
individually labeling each of the multiple parsed electronic format types, thereby generating multiple parsed labeled electronic format types;
wherein the multiple parsed labeled electronic format types include a first parsed labeled electronic format type and a second parsed labeled electronic format type;
using a first format-type machine learning model to perform a second sub-task of the global task, the second sub-task comprising extracting features from the first parsed electronic format type, thereby generating a first set of extracted features;
using a second format-type machine learning model to perform a third sub-task of the global task, the third sub-task comprising extracting features from the second parsed electronic format type, thereby generating a second set of extracted features; and
using a content analysis (CA) machine learning model to perform a fourth sub-task of the global task, the fourth sub-task comprising:
receiving an inquiry;
analyzing the first set of extracted features to determine a relevance of the first parsed labeled electronic format type to the inquiry; and
analyzing the second set of extracted feature to determine a relevance of the second parsed labeled electronic format type to the inquiry;
wherein the first machine learning model, the first format-type machine learning model, the second format-type machine learning model, and the CA machine learning model have been trained in stages comprising:
a set of individual training stages comprising training:
the first machine learning model individually to perform the first sub-task;
the first format-type machine learning model individually to perform the second sub-task;
the second format-type machine learning model individually to perform the third sub-task; and
the CA machine learning model individually to perform the fourth sub-task;
a first joint training stage comprising jointly training:
the first machine learning model to perform the first sub-task;
the first format-type machine learning model to perform the second sub-task; and
the second format-type machine learning model to perform the third sub-task;
a second joint training stage comprising jointly training:
the first machine learning model to perform the first sub-task;
the first format-type machine learning model to perform the second sub-task;
the second format-type machine learning model to perform the third sub-task; and
the CA machine learning model to perform the fourth sub-task.

### Claim 9 (depends on 8)

The computer system of claim 8, wherein the electronic document received by the processor is unlabeled.

### Claim 10 (depends on 8)

The computer system of claim 8, wherein the electronic document data comprises electronic image data.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the first electronic format type is selected from a group consisting of a segment of text, a table, a figure, and a list.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the second electronic format type is selected from the group consisting of a segment of text, a table, a figure, and a list.

### Claim 13 (depends on 8)

The computer system of claim 8, wherein the fourth sub-task performed by the CA machine learning model further comprises generating a response to the inquiry.

### Claim 14 (depends on 13)

The computer system of claim 13, wherein generating the response to the inquiry is based at least in part on:
the relevance of the first parsed labeled electronic format type to the inquiry; and
the relevance of the second parsed labeled electronic format type to the inquiry.

### Claim 15

A computer program product for performing a global task, the global task comprising analyzing an electronic version of a document, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor system to cause the processor system to perform operations comprising:
receiving an electronic document comprising electronic document data having multiple electronic format types;
using a first machine learning model to perform a first sub-task of the global task, the first sub-task comprising:
parsing the electronic document data into the multiple electronic format types, thereby generating multiple parsed electronic format types; and
individually labeling each of the multiple parsed electronic format types, thereby generating multiple parsed labeled electronic format types;
wherein the multiple parsed labeled electronic format types include a first parsed labeled electronic format type and a second parsed labeled electronic format type;
using a first format-type machine learning model to perform a second sub-task of the global task, the second sub-task comprising extracting features from the first parsed electronic format type, thereby generating a first set of extracted features;
using a second format-type machine learning model to perform a third sub-task of the global task, the third sub-task comprising extracting features from the second parsed electronic format type, thereby generating a second set of extracted features; and
using a content analysis (CA) machine learning model to perform a fourth sub-task of the global task, the fourth sub-task comprising:
receiving an inquiry;
analyzing the first set of extracted features to determine a relevance of the first parsed labeled electronic format type to the inquiry; and
analyzing the second set of extracted feature to determine a relevance of the second parsed labeled electronic format type to the inquiry;
wherein the first machine learning model, the first format-type machine learning model, the second format-type machine learning model, and the CA machine learning model have been trained in stages comprising:
a set of individual training stages comprising training:
the first machine learning model individually to perform the first sub-task;
the first format-type machine learning model individually to perform the second sub-task;
the second format-type machine learning model individually to perform the third sub-task; and
the CA machine learning model individually to perform the fourth sub-task;
a first joint training stage comprising jointly training:
the first machine learning model to perform the first sub-task;
the first format-type machine learning model to perform the second sub-task; and
the second format-type machine learning model to perform the third sub-task;
a second joint training stage comprising jointly training:
the first machine learning model to perform the first sub-task;
the first format-type machine learning model to perform the second sub-task;
the second format-type machine learning model to perform the third sub-task; and
the CA machine learning model to perform the fourth sub-task.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the electronic document received using the processor system is unlabeled.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein the electronic document data comprises electronic image data.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the first electronic format type is selected from a group consisting of a segment of text, a table, a figure, and a list.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the second electronic format type is selected from the group consisting of a segment of text, a table, a figure, and a list.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the fourth sub-task performed by the CA machine learning model further comprises generating a response to the inquiry.

### Claim 21 (depends on 20)

The computer program product of claim 20, wherein generating the response to the inquiry is based at least in part on:
the relevance of the first parsed labeled electronic format type to the inquiry; and
the relevance of the second parsed labeled electronic format type to the inquiry.

### Claim 22

A computer-implemented method of training a content-analysis (CA) network to perform a global task, the global task comprising analyzing an electronic version of a document, the computer-implemented method comprising:
receiving auxiliary tasks, wherein each of the auxiliary tasks is a component of the global task and comprises an assigned task complexity level;
assigning a task-specific sub-model to each of the auxiliary tasks such that each of the task-specific sub-models has an assigned one of the auxiliary tasks and an assigned one of the task complexity levels;
individually training each of the task-specific sub-models to perform its assigned one of the auxiliary tasks;
identifying a first group of the task-specific sub-models based at least in part on the assigned ones of the complexity levels of the assigned ones of the tasks performed by the task-specific sub-models in the first group;
identifying a second group of the task-specific sub-models based at least in part on the assigned ones of the complexity levels of the assigned ones of the tasks performed by the task-specific sub-models in the second group;
jointly training the first group of the task-specific sub-models to perform their assigned ones of the auxiliary tasks; and
jointly training the first group and the second group of the task-specific sub-models to perform their assigned ones of the auxiliary tasks;
wherein the highest assigned one of the complexity levels of the assigned ones of the tasks performed by the task-specific sub-models in the first group is less than the lowest assigned one of the complexity levels of the assigned one of the tasks performed by the task-specific sub-models in the second group.

### Claim 23 (depends on 22)

The computer-implemented method of claim 22, wherein the second group comprises one or more of the task-specific sub-models.

### Claim 24

A method of forming a computer system configured to perform a global task, the global task comprising analyzing an electronic version of a document, the method comprising:
providing a memory; and
providing a processor communicatively coupled to the memory, wherein the processor is configured to perform operations comprising:
receiving an electronic document comprising electronic document data having multiple electronic format types;
using a first machine learning model to perform a first sub-task of the global task, the first sub-task having a first assigned complexity level and comprising:
parsing the electronic document data into the multiple electronic format types, thereby generating multiple parsed electronic format types; and
individually labeling each of the multiple parsed electronic format types, thereby generating multiple parsed labeled electronic format types;
wherein the multiple parsed labeled electronic format types include a first parsed labeled electronic format type and a second parsed labeled electronic format type;
using a first format-type machine learning model to perform a second sub-task of the global task, the second sub-task having a second assigned complexity level and comprising extracting features from the first parsed electronic format type, thereby generating a first set of extracted features;
using a second format-type machine learning model to perform a third sub-task of the global task, the third sub-task having a third assigned complexity level and comprising extracting features from the second parsed electronic format type, thereby generating a second set of extracted features; and
using a content analysis (CA) machine learning model to perform a fourth sub-task of the global task, the fourth sub-task having a fourth complexity level and comprising:
receiving an inquiry;
analyzing the first set of extracted features to determine a relevance of the first parsed labeled electronic format type to the inquiry; and
analyzing the second set of extracted feature to determine a relevance of the second parsed labeled electronic format type to the inquiry;
wherein the fourth complexity level is greater than:
the third complexity level alone;
the second complexity level alone; and
the first complexity level alone.

### Claim 25 (depends on 24)

A method of claim 24, wherein:
the electronic document received by the processor is unlabeled;
the electronic document data comprises electronic image data;
the first electronic format type is selected from a group consisting of a segment of text, a table, a figure, and a list;
the second electronic format type is selected from the group consisting of a segment of text, a table, a figure, and a list;
the fourth sub-task performed by the CA machine learning model further comprises generating a response to the inquiry based at least in part on:
the relevance of the first parsed labeled electronic format type to the inquiry; and
the relevance of the second parsed labeled electronic format type to the inquiry the analysis.
