# US 2021/0287302 A1 · System and method for automatically generating calculations for fields in compliance forms

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

- Number: US 2021/0287302 A1
- Document ID: US20210287302A1
- Status: Published application
- Kind: A1
- Application number: 17/331,622
- Filed: 2021-05-26
- Published: 2021-09-16
- Earliest claimed: 2016-07-15
- Assignees: Intuit Inc.
- Applicants: Intuit Inc.
- Inventors: Saikat Mukherjee; Cem Unsal; William T. Laaser; Mritunjay Kumar; Anu Sreepathy; Per-Kristian Halvorsen
- Web page: https://patentgrep.com/patent/US20210287302A1

## CPC

- G06Q 40/123: {Tax preparation or submission}
- G06F 40/174: Form filling; Merging
- G06N 3/126: Evolutionary algorithms, e.g. genetic algorithms or genetic programming
- G06N 20/00: Machine learning
- G06F 40/194: Calculation of difference between files
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method and system to learn new forms to be incorporated into an electronic document preparation system, or to learn the behavior of existing systems, receive form data related to a new form having a plurality of data fields that expect data values based on specific functions. The method and system gather training set data including previously filled forms having completed data fields corresponding to the data fields of the new form. The method and system include multiple analysis modules that each generate candidate functions for providing data values for the data fields of the new form. The method and system evaluate the candidate functions from each analysis technique and select the candidate functions that are most accurate based on comparisons with the training set data.

## Claims

### Claim 1

A computing system implemented method for learning and incorporating new forms in an electronic document preparation system, the method comprising:
generating structured form data by analyzing form data related to a new form having a plurality of data fields, the structured form data identifying the data fields of the new form and context data related to context describing the data fields of the new form;
gathering training set data related to previously filled forms, each previously filled form having completed data fields that each correspond to a respective data field of the new form;
performing a machine learning process to generate, for a first selected data field of the plurality of data fields of the new form, first candidate function data including a first set of candidate functions, each candidate function of the first set of candidate functions including one or more arithmetic operators, or one or more logical operators;
generating, for each candidate function of the first set of candidate functions, test data by applying the corresponding one or more arithmetic operators or one or more logical operators of each candidate function to the training set data;
comparing the test data to the training set data;
selecting one or more of the candidate functions as acceptable candidate functions for the first selected data field based on how closely the test data for each candidate function matches data values in the completed data fields of the previously filled forms that correspond to the first selected data field; and
outputting results data indicating the one or more acceptable functions.

### Claim 2 (depends on 1)

The method of claim 1, wherein comparing the test data to the training set data includes generating, for each candidate function of the first set, matching data indicating how closely the test data matches the data values in the completed data fields of the previously filled forms that correspond to the first selected data field.

### Claim 3 (depends on 2)

The method of claim 2, further comprising generating ranking data that ranks the candidate functions based on how closely the test data for each candidate function matches the data values in the completed data fields of the previously filled form that correspond to the first selected data field.

### Claim 4 (depends on 1)

The method of claim 1, wherein the machine learning process includes:
generating, for the first selected data field of the plurality of data fields of the new form, dependency data indicating one or more possible dependencies for the first selected data field based on the context data related to the first selected data field; and
generating the first set of candidate functions based on the dependency data and one or more operators selected from a set of operators.

### Claim 5 (depends on 4)

The method of claim 4, wherein generating the dependency data includes generating dependency by analyzing the historical software instructions for providing a data value for a data field of the historical form related to the new form.

### Claim 6 (depends on 1)

The method of claim 1, wherein the context data includes text data describing a correct function for providing the data value in the first selected field.

### Claim 7 (depends on 1)

The method of claim 1, wherein the new form is a tax form.

### Claim 8

A computing system implemented method for learning and incorporating new forms in an electronic document preparation system, the method comprising:
generating structured form data by analyzing form data related to a new form having a plurality of data fields, the structured form data identifying the data fields of the new form and context data related to the data fields of the new form;
gathering training set data related to previously filled forms, each previously filled form having completed data fields that each correspond to a respective data field of the new form;
performing a machine learning process to generate, for a first selected data field of the plurality of data fields of the new form, first candidate function data including a first set of candidate functions, each candidate function in the first set of candidate functions including one or more arithmetic operators or one or more logical operators;
generating, for each candidate function of the first set of candidate functions, test data by applying the corresponding one or more arithmetic operators or one or more logical operators of each candidate function to the training set data;
comparing the test data to the training set data;
selecting one or more of the candidate functions as acceptable candidate functions for the first selected data field based on how closely the test data for each candidate function matches data values in the completed data fields of the previously filled forms that correspond to the first selected data field; and
outputting results data indicating the one or more acceptable functions.

### Claim 9 (depends on 8)

The method of claim 8, wherein generating the test data includes generating the test data for each candidate function of the first set of candidate functions.

### Claim 10 (depends on 8)

The method of claim 8, wherein the machine learning process includes:
generating, for the first selected data field of the plurality of data fields of the new form, dependency data indicating one or more possible dependencies for the first selected data field based on the context data related to the first selected data field; and
generating the first set of candidate functions based on the dependency data and one or more operators selected from a set of operators.

### Claim 11 (depends on 10)

The method of claim 10, wherein generating the dependency data includes generating dependency by analyzing the historical software instructions for providing a data value for a data field of the historical form related to the new form.

### Claim 12 (depends on 8)

The method of claim 8, further comprising generating ranking data that ranks the candidate functions based on how closely the test data for each candidate function matches the data values in the completed data fields of the previously filled form that correspond to the first selected data field.

### Claim 13 (depends on 8)

The method of claim 8, wherein the new form is a tax form.

### Claim 14

A system for learning and incorporating new forms in an electronic document preparation system, the system comprising:
at least one processor; and
at least one memory coupled to the at least one processor, the at least one memory having stored therein instructions which, when executed by any set of the one or more processors, perform a process including:
receiving, form data related to a new form having a plurality of data fields;
generating, structured form data by analyzing the new form, the structured form data identifying the data fields of the new form and context data related to context describing the data fields of the new form;
gathering, training set data related to previously filled forms, each previously filled form having completed data fields that each correspond to a respective data field of the new form;
performing a machine learning process to generate first candidate data including a first set of candidate functions for a first selected data field of the plurality of data fields of the new form, each candidate function of the first set of candidate functions including one or more arithmetic operators or one or more logical operators;
generating, for each candidate function of the first set of candidate functions, test data by applying the corresponding one or more arithmetic operators or one or more logical operators of each candidate function to the training set data;
comparing the test data to the training set data;
selecting one or more of the candidate functions as acceptable candidate functions for the first selected data field based on how closely the test data for each candidate function matches data values in the completed data fields of the previously filled forms that correspond to the first selected data field; and
outputting results data indicating the one or more acceptable functions.

### Claim 15 (depends on 14)

The system of claim 14, wherein comparing the test data to the training set data includes generating, for each candidate function of the first set of candidate functions, matching data indicating how closely the test data matches the data values in the completed data fields of the previously filled forms that correspond to the first selected data field.

### Claim 16 (depends on 15)

The system of claim 15, wherein the process includes generating ranking data that ranks the candidate functions based on how closely the test data for each candidate function matches the data values in the completed data fields of the previously filled form that correspond to the first selected data field.

### Claim 17 (depends on 14)

The system of claim 14, wherein the machine learning process includes:
generating, for the first selected data field of the plurality of data fields of the new form, dependency data indicating one or more possible dependencies for the first selected data field based on the context data related to the first selected data field; and
generating the first set of candidate functions based on the dependency data and one or more operators selected from a set of operators.

### Claim 18 (depends on 17)

The system of claim 17, wherein generating the dependency data includes generating dependency by analyzing the historical software instructions for providing a data value for a data field of the historical form related to the new form.

### Claim 19 (depends on 14)

The system of claim 14, wherein the electronic document preparation system includes a financial document preparation system.

### Claim 20 (depends on 19)

The system of claim 19, wherein the financial document preparation system includes a tax return preparation system.
