# US 2025/0165853 A1 · System and method for identifying when to retrain an artificial intelligence model

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

- Number: US 2025/0165853 A1
- Document ID: US20250165853A1
- Status: Published application
- Kind: A1
- Application number: 18/514,481
- Filed: 2023-11-20
- Published: 2025-05-22
- Earliest claimed: 2023-11-20
- Assignees: JPMorgan Chase Bank, N.A.
- Applicants: JPMorgan Chase Bank, N.A.
- Inventors: Saumitra MISHRA; Emanuele ALBINI; Minhaj KHAN; Daniele MAGAZZENI; Manuela VELOSO; Barney O'KANE
- Web page: https://patentgrep.com/patent/US20250165853A1

## CPC

- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Various methods and processes, apparatuses/systems, and media for identifying when to retrain an AI model are disclosed. A processor receives the AI model and a set of target data samples on a predefined time period; implements an artificial intelligence technique to generate a plurality of counterfactuals and corresponding target data samples among the set of target data samples for analyzing performance of the received AI model; computes an average counterfactual distance between closest counterfactuals and corresponding target data samples on the predefined time period; compares the average counterfactual distance to a predefined threshold value; identifies that the AI model needs to be retrained when output data from comparing indicates that the average counterfactual distance is less than the predefined threshold value; and automatically retrains the AI model when it is determined that the average counterfactual distance is less than the predefined threshold value.

## Claims

### Claim 1

A method for identifying when to retrain an artificial intelligence (AI) model by utilizing one or more processors along with allocated memory, the method comprising:
receiving an AI model and a set of target data samples on a predefined time period for identifying when to retrain the AI model;
implementing an artificial intelligence technique to generate a plurality of counterfactuals and corresponding target data samples among the set of target data samples for analyzing performance of the received AI model;
computing an average counterfactual distance between closest counterfactuals and corresponding target data samples on the predefined time period;
comparing the average counterfactual distance to a predefined threshold value;
identifying that the AI model needs to be retrained when output data from comparing indicates that the average counterfactual distance is less than the predefined threshold value; and
automatically retraining the AI model when it is determined that the average counterfactual distance is less than the predefined threshold value.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the plurality of counterfactuals are plausible samples on a desired side of a decision boundary generated by perturbing a query sample.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the predefined threshold value is use case or dataset specific and is used to identify whether retraining of the AI model is needed or not.

### Claim 4 (depends on 2)

The method according to claim 2, further comprising:
displaying how counterfactual distance evolves over time on a two-dimensional graph wherein x-axis of the graph represents days and y-axis of the graph represents average counterfactual distance.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising:
analyzing how the average counterfactual distance evolves over time by monitoring the graph.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
determining that the AI model is less confident in outputting a prediction data based on determining that the target data samples are getting close to the decision boundary over time.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
identifying that the AI model does not need to be retrained when output data from comparing indicates that the average counterfactual distance is equal to or more than the predefined threshold value.

### Claim 8

A system for identifying when to retrain an artificial intelligence (AI) model, the system comprising:
a processor; and
a memory operatively connected to the processor via a communication interface, the memory storing computer readable instructions, when executed, causes the processor to:
receive an AI model and a set of target data samples on a predefined time period for identifying when to retrain the AI model;
implement an artificial intelligence technique to generate a plurality of counterfactuals and corresponding target data samples among the set of target data samples for analyzing performance of the received AI model;
compute an average counterfactual distance between closest counterfactuals and corresponding target data samples on the predefined time period;
compare the average counterfactual distance to a predefined threshold value;
identify that the AI model needs to be retrained when output data from comparing indicates that the average counterfactual distance is less than the predefined threshold value; and
automatically retrain the AI model when it is determined that the average counterfactual distance is less than the predefined threshold value.

### Claim 9 (depends on 8)

The system according to claim 8, wherein the plurality of counterfactuals are plausible samples on a desired side of a decision boundary generated by perturbing a query sample.

### Claim 10 (depends on 9)

The system according to claim 9, wherein the predefined threshold value is use case or dataset specific and is used to identify whether retraining of the AI model is needed or not.

### Claim 11 (depends on 9)

The system according to claim 9, wherein the processor is further configured to:
display how counterfactual distance evolves over time on a two-dimensional graph wherein x-axis of the graph represents days and y-axis of the graph represents average counterfactual distance.

### Claim 12 (depends on 11)

The system according to claim 11, wherein the processor is further configured to:
analyze how the average counterfactual distance evolves over time by monitoring the graph.

### Claim 13 (depends on 12)

The system according to claim 12, wherein the processor is further configured to:
determine that the AI model is less confident in outputting a prediction data based on determining that the target data samples are getting close to the decision boundary over time.

### Claim 14 (depends on 8)

The system according to claim 8, wherein the processor is further configured to:
identify that the AI model does not need to be retrained when output data from comparing indicates that the average counterfactual distance is equal to or more than the predefined threshold value.

### Claim 15

A non-transitory computer readable medium configured to store instructions for identifying when to retrain an artificial intelligence (AI) model, the instructions, when executed, cause a processor to perform the following:
receiving an AI model and a set of target data samples on a predefined time period for identifying when to retrain the AI model;
implementing an artificial intelligence technique to generate a plurality of counterfactuals and corresponding target data samples among the set of target data samples for analyzing performance of the received AI model;
computing an average counterfactual distance between closest counterfactuals and corresponding target data samples on the predefined time period;
comparing the average counterfactual distance to a predefined threshold value;
identifying that the AI model needs to be retrained when output data from comparing indicates that the average counterfactual distance is less than the predefined threshold value; and
automatically retraining the AI model when it is determined that the average counterfactual distance is less than the predefined threshold value.

### Claim 16 (depends on 15)

The non-transitory computer readable medium according to claim 15, wherein the plurality of counterfactuals are plausible samples on a desired side of a decision boundary generated by perturbing a query sample.

### Claim 17 (depends on 16)

The non-transitory computer readable medium according to claim 16, wherein the predefined threshold value is use case or dataset specific and is used to identify whether retraining of the AI model is needed or not.

### Claim 18 (depends on 16)

The non-transitory computer readable medium according to claim 16, wherein the instructions, when executed, cause the processor to further perform the following:
displaying how counterfactual distance evolves over time on a two-dimensional graph wherein x-axis of the graph represents days and y-axis of the graph represents average counterfactual distance.

### Claim 19 (depends on 18)

The non-transitory computer readable medium according to claim 18, wherein the instructions, when executed, cause the processor to further perform the following:
analyzing how the average counterfactual distance evolves over time by monitoring the graph; and
determining that the AI model is less confident in outputting a prediction data based on determining that the target data samples are getting close to the decision boundary over time.

### Claim 20 (depends on 15)

The non-transitory computer readable medium according to claim 15, wherein the instructions, when executed, cause the processor to further perform the following:
identifying that the AI model does not need to be retrained when output data from comparing indicates that the average counterfactual distance is equal to or more than the predefined threshold value.
