# US 2024/0202457 A1 · Systems and methods for label generation for real-time processed and batch-processed streams for machine learning training

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

- Number: US 2024/0202457 A1
- Document ID: US20240202457A1
- Status: Published application
- Kind: A1
- Application number: 18/066,316
- Filed: 2022-12-15
- Published: 2024-06-20
- Earliest claimed: 2022-12-15
- Assignees: Capital One Services, LLC
- Applicants: Capital One Services, LLC
- Inventors: Shannon Cruz YOGERST; Tania Cruz MORALES; Haytham YAGHI
- Web page: https://patentgrep.com/patent/US20240202457A1

## CPC

- G06F 40/35: Discourse or dialogue representation
- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06N 3/09: Supervised learning
- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems and methods for labeling data for artificial neural network models when data is received as real-time data and batch-processed data are disclosed herein. The system may receive a first data stream. The system may generate a first vector representation of the first real-time processed data. The system may determine the first label for a first training datum. The system may determine whether all data used to generate a final label has been received. The system may assign a first label type to the first label.

## Claims

### Claim 1

A system for labeling data for artificial neural network models when information used to determine those labels may be received in both real-time data and batch-processed data streams, the system comprising:
one or more processors; and
a non-transitory, computer-readable medium comprising instructions that when executed by the one or more processors cause operations comprising:
receiving, at a device in a computer network, a first data stream, wherein the first data stream comprises first real-time processed data for populating a first label for a first training datum in a first training dataset for an artificial neural network model, wherein the first real-time processed data comprises textual chatbot data from an artificial intelligence engine for a chatbot user;
generating a first vector representation of the first real-time processed data for use in a natural language processing model, wherein the first vector representation represents the first real-time processed data using a bag of words structure;
based on processing the first vector representation through the natural language processing model, determining the first label for the first training datum;
in response to receiving a completion message, determining whether all data used to generate a final label for the first training datum has been received, wherein the completion message comprises an indication of an end of the first real-time processed data;
in response to not receiving the completion message upon termination of the first data stream, assigning a first label type to the first label;
storing, in a label record database for the first training datum, the first label and a first indication that the first label for the first training datum has the first label type;
generating a first feature input for the artificial neural network model based on the first label, the first training datum, and the first indication; and
generating a first output for the artificial neural network model based on the first label, the first training datum, and the first indication, wherein the first output comprises sentiment prediction for a satisfaction level for the chatbot user.

### Claim 2

A method for generating labeling data for machine learning models when information used to determine those labels may be received in both real-time data and batch-processed data streams, the method comprising:
receiving, at a device in a computer network, a first data stream, wherein the first data stream comprises first real-time processed data for populating a first label for a first training datum in a first training dataset for a machine learning model;
generating a first vector representation of the first real-time processed data for use in a natural language processing model;
based on processing the first vector representation through the natural language processing model, determining the first label for the first training datum;
determining whether all data used to generate a final label for the first training datum has been received; and
in response to determining that not all data used to generate the final label for the first training datum has been received, assigning a first label type to the first label.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
storing the first label for the first training datum in a label record; and
storing a first indication that the first training datum has the first label type in a label record database.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
generating a first feature input for the machine learning model based on the first label, the first training datum, and the first indication; and
generating a first output for the machine learning model based on the first label, the first training datum, and the first indication.

### Claim 5 (depends on 2)

The method of claim 2, the method further comprising:
receiving a second data stream, wherein the second data stream comprises batch-processed data for populating the first label;
generating a second vector representation of the batch-processed data for use in the natural language processing model;
based on processing the second vector representation through the natural language processing model, determining a second label for the first training datum; and
generating the final label for the first training datum based on the first label and the second label.

### Claim 6 (depends on 5)

The method of claim 5, wherein generating the final label for the first training datum based on the first label and the second label comprises:
in response to comparing the first label and the second label, generating a label similarity metric; and
based on determining that the label similarity metric is below a label similarity threshold, generating a warning, for display on a user interface, that the first training datum has changed in nature.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
in response to determining that the first label and the final label are non-identical, determining a first modification timestamp corresponding to receipt of the first data stream and a second modification timestamp corresponding to receipt of the second data stream;
based on the first modification timestamp and the second modification timestamp, determining an update rate; and
based on determining that the update rate is above a threshold update rate, generating a warning, for display on a user interface, that label modification has occurred within a short period of time.

### Claim 8 (depends on 2)

The method of claim 2, further comprising:
receiving a second data stream, wherein the second data stream comprises batch-processed data for populating the first label;
generating a second vector representation of the batch-processed data for use in the natural language processing model;
combining the first vector representation and the second vector representation to generate a combined vector representation; and
based on processing the combined vector representation through the natural language processing model, determining the final label for the first training datum.

### Claim 9 (depends on 2)

The method of claim 2, further comprising:
receiving a second data stream, wherein the second data stream comprises batch-processed data for populating the first label;
in response to receiving the second data stream, determining that all the data used to generate the final label for the first training datum has been received;
generating the final label; and
in response to determining that all the data used to generate the final label for the first training datum has been received, assigning a second label type to the final label.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
storing, for the first training datum, the final label in a label record database; and
storing a second indication that the first training datum has the second label type in the label record database.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
generating a second feature input for the machine learning model based on the final label, the first training datum, and the second indication; and
generating a second output for the machine learning model based on the final label, the first training datum, and the second indication.

### Claim 12 (depends on 2)

The method of claim 2, wherein determining whether all data used to generate the final label for the first training datum has been received comprises:
receiving a completion message, wherein the completion message indicates an end of receiving data for the first training datum.

### Claim 13 (depends on 2)

The method of claim 2, wherein determining whether all data used to generate the final label for the first training datum has been received comprises:
determining that no data has been received for a threshold elapsed time; and
based on determining that no data has been received for the threshold elapsed time, determining that all data used to generate the final label has been received.

### Claim 14 (depends on 2)

The method of claim 2, wherein, based on processing the first vector representation through the natural language processing model, determining the first label for the first training datum comprises:
retrieving a plurality of textual datasets and a corresponding plurality of label records from a label record database, wherein the corresponding plurality of label records comprises a corresponding plurality of labels;
generating a plurality of vector representations corresponding to the plurality of textual datasets for use in the natural language processing model; and
in response to inputting the first vector representation, the plurality of vector representations, and the corresponding plurality of labels into the natural language processing model, determining the first label for the first training datum.

### Claim 15 (depends on 2)

The method of claim 2, further comprising:
generating a first feature input for the machine learning model based on the first label and the first training datum;
generating a first output for the machine learning model;
calculating a model error indicator based on the first output; and
based on determining that the model error indicator is higher than a model error indicator threshold, assigning the first label type to the first label.

### Claim 16

A non-transitory, computer-readable medium comprising instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
receiving, at a device in a computer network, a first data stream, wherein the first data stream comprises first real-time processed data for populating a first label for a first training datum in a first training dataset for a machine learning model;
generating a first vector representation of the first real-time processed data for use in a natural language processing model;
based on processing the first vector representation through the natural language processing model, determining the first label for the first training datum;
determining whether all data used to generate a final label for the first training datum has been received; and
in response to determining that not all data used to generate the final label for the first training datum has been received, assigning a first label type to the first label.

### Claim 17 (depends on 16)

The non-transitory, computer-readable medium of claim 16, wherein the instructions further cause the one or more processors to perform operations comprising:
storing the first label in a label record database for the first training datum; and
storing a first indication that the first training datum has the first label type in the label record database.

### Claim 18 (depends on 17)

The non-transitory, computer-readable medium of claim 17, wherein the instructions further cause the one or more processors to perform operations comprising:
generating a first feature input for the machine learning model based on the first label, the first training datum, and the first indication; and
generating a first output for the machine learning model based on the first label, the first training datum, and the first indication.

### Claim 19 (depends on 16)

The non-transitory, computer-readable medium of claim 16, wherein the instructions further cause the one or more processors to perform operations comprising:
receiving a second data stream, wherein the second data stream comprises batch-processed data for populating the first label;
generating a second vector representation of the batch-processed data for use in the natural language processing model;
based on processing the second vector representation through the natural language processing model, determining a second label for the first training datum; and
generating the final label for the first training datum based on the first label and the second label.

### Claim 20 (depends on 16)

The non-transitory, computer-readable medium of claim 16, wherein the instructions further cause the one or more processors to perform operations comprising:
generating a first feature input for the machine learning model based on the first label and the first training datum;
generating a first output for the machine learning model;
calculating a model error indicator based on the first output; and
based on determining that the model error indicator is higher than a model error indicator threshold, assigning the first label type to the first label.
