# US 2022/0292268 A1 · Smart contract generation system and methods

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

- Number: US 2022/0292268 A1
- Document ID: US20220292268A1
- Status: Published application
- Kind: A1
- Application number: 17/693,216
- Filed: 2022-03-11
- Published: 2022-09-15
- Earliest claimed: 2021-03-11
- Assignees: DeepSee.ai Inc.
- Applicants: DeepSee.ai Inc.
- Inventors: Stephen W. Shillingford; Bryan W. Sparks; Ryan W. McQueen
- Web page: https://patentgrep.com/patent/US20220292268A1

## CPC

- G06F 16/313: {Selection or weighting of terms for indexing}
- G06F 40/56: Natural language generation
- G06F 16/3349: Reuse of stored results of previous queries
- G06F 40/12: Use of codes for handling textual entities
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system for generating smart contracts may include a first subsystem to receive a written or verbal contract, and a second subsystem to identify terms of the contract using natural language processing (NLP). The system may additionally include a third subsystem to correlate processed NLP terms of the contract with chaincode in a library, and a fourth subsystem to combine correlated NLP terms to generate a smart contract. Methods of generating a smart contract may include inputting natural language contract terms into a smart contract generation system and identifying the natural language contract terms with a natural language processing system. The method may further include correlating at least some of the contract terms to chaincodes stored in a library, generating chaincodes for any contract terms that do not correlate to any chaincodes stored in the library, and assembling the chaincodes into a smart contract.

## Claims

### Claim 1

A system, comprising:
a first subsystem to receive a written or verbal contract;
a second subsystem to identify terms of the contract using natural language processing (NLP);
a third subsystem to correlate processed NLP terms of the contract with chaincode in a library; and
a fourth subsystem to combine correlated NLP terms to generate a smart contract.

### Claim 2 (depends on 1)

The system of claim 1, further comprising a computer-readable storage medium that stores at least one of the first subsystem, the second subsystem, the third subsystem, and the fourth subsystem.

### Claim 3 (depends on 2)

The system of claim 2, wherein the computer-readable storage medium is a non-transitory computer-readable storage medium.

### Claim 4 (depends on 2)

The system of claim 2, further comprising a bus connecting a processor, a memory, and a network interface to the computer-readable storage medium.

### Claim 5 (depends on 1)

The system of claim 1, wherein the second subsystem is configured to utilize machine learning modules for identifying the terms of the contract.

### Claim 6 (depends on 5)

The system of claim 5, wherein the second subsystem is further configured to utilize fine-tuned natural language processing models leveraging principles of transfer learning for identifying the terms of the contract.

### Claim 7 (depends on 1)

The system of claim 1, further configured to generate chaincode for the terms of the contract for which there is no correlating chaincode stored in the library, and store the generated chaincode in the library.

### Claim 8 (depends on 7)

The system of claim 7, further configured to utilize a FILBERT natural language model to generate chaincode.

### Claim 9 (depends on 7)

The system of claim 7, further configured to utilize a GPT-3 based model to generate chaincode.

### Claim 10 (depends on 7)

The system of claim 7, further configured to receive user feedback for reinforced learning to verify and improve the chaincode generated and stored in the library.

### Claim 11

A method of generating a smart contract, the method comprising:
causing natural language contract terms to be input into a smart contract generation system;
causing the natural language contract terms to be identified with a natural language processing system;
causing at least some of the natural language contract terms to be correlated to chaincodes stored in a library; and
causing the chaincodes that correlate to the natural language contract terms to be assembled into a smart contract.

### Claim 12 (depends on 11)

The method of claim 11, further comprising causing new chaincodes to be generated that correlate to at least some of the natural language contract terms.

### Claim 13 (depends on 12)

The method of claim 12, further comprising causing the new chaincodes to be stored in the library.

### Claim 14 (depends on 12)

The method of claim 12, further comprising inputting user feedback into the smart contract generation system for reinforced learning to verify and improve the chaincode stored in the library.

### Claim 15 (depends on 14)

The method of claim 14, further comprising causing the new chaincode to be revised if a human reviewing the new chaincode does not agree that the new chaincode correlates to the natural language terms.

### Claim 16 (depends on 11)

The method of claim 11, further comprising causing the compound natural language contract terms to be abstracted into a plurality of component contract terms prior to causing the natural language contract terms to be correlated to chaincodes stored in a library.

### Claim 17 (depends on 11)

The method of claim 11, further comprising causing the chaincodes that are correlated to the natural language contract terms to be assembled into a smart contract.

### Claim 18 (depends on 17)

The method of claim 17, further comprising causing the smart contract to be tested against the natural language contract terms.

### Claim 19

A method of generating a smart contract, the method comprising:
inputting natural language contract terms into a smart contract generation system;
identifying the natural language contract terms with a natural language processing system;
abstracting compound natural language contract terms into component contract terms;
correlating at least some of the component contract terms to chaincodes stored in a library;
generating chaincodes for any component contract terms that do not correlate to any chaincodes stored in the library; and
assembling the chaincodes that correlate to the natural language contract terms into a smart contract.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
testing the smart contract against the natural language contract terms; and
inputting feedback into the smart contract generation system to verify and improve the chaincodes generated and stored in the library.
