# US 2023/0266949 A1 · Cognitive software application learner and enhancer

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

- Number: US 2023/0266949 A1
- Document ID: US20230266949A1
- Status: Published application
- Kind: A1
- Application number: 17/678,098
- Filed: 2022-02-23
- Published: 2023-08-24
- Earliest claimed: 2022-02-23
- Assignees: Bank of America Corporation
- Applicants: Bank of America Corporation
- Inventors: Namrata Kurmi; Samir Kiranbhai Desai; Pragyan Paramita Hembram; Srikanth Vemula
- Web page: https://patentgrep.com/patent/US20230266949A1

## CPC

- G06F 8/311: {Functional or applicative languages; Rewrite languages}
- G06F 8/72: Code refactoring
- G06F 8/75: Structural analysis for program understanding
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems, computer program products, and methods are described herein for continuous cognitive code logic detection and prediction using machine learning techniques. The present invention is configured to receive, from a user input device, source code scripts and target code scripts for functional code logic components of a full stack, wherein the source code scripts and the target code scripts are associated with one or more tiers; generate a training dataset based on at least the source code scripts, the target code scripts, and the functional code logic components of the full stack; train, using a machine learning algorithm, a machine learning model using the training dataset; determine a prediction accuracy associated with the machine learning model; determine that the prediction accuracy is greater than a predetermined threshold; and deploy the machine learning model on unseen source code scripts.

## Claims

### Claim 1

A system for continuous cognitive code logic detection and prediction using machine learning techniques, the system comprising:
at least one non-transitory storage device; and
at least one processor coupled to the at least one non-transitory storage device, wherein the at least one processor is configured to:
electronically receive, from a user input device, source code scripts for functional code logic components of a full stack, wherein the source code scripts are associated with one or more tiers;
electronically receive, from the user input device, target code scripts for the functional code logic components of the full stack, wherein the target code scripts are associated with the one or more tiers;
generate a training dataset based on at least the source code scripts, the target code scripts, and the functional code logic components of the full stack;
train, using a machine learning algorithm, a machine learning model using the training dataset;
determine a prediction accuracy associated with the machine learning model;
determine that the prediction accuracy is greater than a predetermined threshold; and
deploy the machine learning model on unseen source code scripts.

### Claim 2 (depends on 1)

The system of claim 1, wherein the at least one processor is further configured to:
electronically receive, from the user input device, unseen source code scripts;
determine functional code logic components of the full stack from the unseen source code scripts;
electronically receive, from the user input device, target code requirements;
predict, using the machine learning model, target code scripts corresponding to the unseen source code scripts for the one or more tiers based on at least the unseen source code scripts, the functional code logic components of the full stack associated with the unseen source code scripts, and the target code requirements; and
transmit control signals configured to cause the user input device to display the predicted target code scripts.

### Claim 3 (depends on 2)

The system of claim 2, wherein the at least one processor is further configured to:
initiate a code validation engine on the predicted target code scripts;
validate, using the code validation engine, the predicted target code scripts; and
transmit control signals configured to cause the user input device to display a notification indicating that the predicted target code scripts are valid.

### Claim 4 (depends on 1)

The system of claim 1, wherein the one or more tiers comprises at least a front-end tier, a business logic tier, and a back-end tier.

### Claim 5 (depends on 1)

The system of claim 1, wherein the source code scripts are associated with a first programming language and the target code scripts are associated with a second programming language.

### Claim 6 (depends on 5)

The system of claim 5, wherein the source code scripts are associated with a first version of the first programming language and the target code scripts are associated with a second version of the first programming language.

### Claim 7 (depends on 6)

The system of claim 6, wherein the source code scripts are associated with the first version of the first programming language to be implemented in a first tier and the target code scripts are associated with the first version of the first programming language to be implemented in a second tier.

### Claim 8 (depends on 1)

The system of claim 1, wherein the at least one processor is further configured to:
store the source code scripts and the target code scripts in a code repository.

### Claim 9 (depends on 8)

The system of claim 8, wherein the at least one processor is further configured to:
electronically receive, from the user input device, a source code location path and a target code location path associated with the code repository; and
retrieve, from the code repository, the source code based on at least the source code location path and the target code based on at least the target code location path.

### Claim 10 (depends on 1)

The system of claim 1, wherein the at least one processor is further configured to:
transmit control signals configured to cause the user input device to display an artifact loader interface; and
electronically receive, via the artifact loader interface, the source code scripts and the target code scripts.

### Claim 11

A computer program product for continuous cognitive code logic detection and prediction using machine learning techniques, the computer program product comprising a non-transitory computer-readable medium comprising code causing a first apparatus to:
electronically receive, from a user input device, source code scripts for functional code logic components of a full stack, wherein the source code scripts are associated with one or more tiers;
electronically receive, from the user input device, target code scripts for the functional code logic components of the full stack, wherein the target code scripts are associated with the one or more tiers;
generate a training dataset based on at least the source code scripts, the target code scripts, and the functional code logic components of the full stack;
train, using a machine learning algorithm, a machine learning model using the training dataset;
determine a prediction accuracy associated with the machine learning model;
determine that the prediction accuracy is greater than a predetermined threshold; and
deploy the machine learning model on unseen source code scripts.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the first apparatus is further configured to:
electronically receive, from the user input device, unseen source code scripts;
determine functional code logic components of the full stack from the unseen source code scripts;
electronically receive, from the user input device, target code requirements;
predict, using the machine learning model, target code scripts corresponding to the unseen source code scripts for the one or more tiers based on at least the unseen source code scripts, the functional code logic components of the full stack associated with the unseen source code scripts, and the target code requirements; and
transmit control signals configured to cause the user input device to display the predicted target code scripts.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the first apparatus is further configured to:
initiate a code validation engine on the predicted target code scripts;
validate, using the code validation engine, the predicted target code scripts; and
transmit control signals configured to cause the user input device to display a notification indicating that the predicted target code scripts are valid.

### Claim 14 (depends on 11)

The computer program product of claim 11, wherein the one or more tiers comprises at least a front-end tier, a business logic tier, and a back-end tier.

### Claim 15 (depends on 11)

The computer program product of claim 11, wherein the source code scripts are associated with a first programming language and the target code scripts are associated with a second programming language.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the source code scripts are associated with a first version of the first programming language and the target code scripts are associated with a second version of the first programming language.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the source code scripts are associated with the first version of the first programming language to be implemented in a first tier and the target code scripts are associated with the first version of the first programming language to be implemented in a second tier.

### Claim 18 (depends on 11)

The computer program product of claim 11, wherein the first apparatus is further configured to:
store the source code scripts and the target code scripts in a code repository.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the first apparatus is further configured to:
electronically receive, from the user input device, a source code location path and a target code location path associated with the code repository; and
retrieve, from the code repository, the source code based on at least the source code location path and the target code based on at least the target code location path.

### Claim 20

A method for continuous cognitive code logic detection and prediction using machine learning techniques, the method comprising:
electronically receiving, from a user input device, source code scripts for functional code logic components of a full stack, wherein the source code scripts are associated with one or more tiers;
electronically receiving, from the user input device, target code scripts for the functional code logic components of the full stack, wherein the target code scripts are associated with the one or more tiers;
generating a training dataset based on at least the source code scripts, the target code scripts, and the functional code logic components of the full stack;
training, using a machine learning algorithm, a machine learning model using the training dataset;
determining a prediction accuracy associated with the machine learning model;
determining that the prediction accuracy is greater than a predetermined threshold; and
deploying the machine learning model on unseen source code scripts.
