# US 2021/0287131 A1 · Machine learning model accuracy fairness

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

- Number: US 2021/0287131 A1
- Document ID: US20210287131A1
- Status: Published application
- Kind: A1
- Application number: 16/814,603
- Filed: 2020-03-10
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Manish Anand Bhide; Madhavi Katari; Ravi Chandra Chamarthy; Swapna Somineni
- Web page: https://patentgrep.com/patent/US20210287131A1

## CPC

- G06N 20/00: Machine learning
- G06N 5/04: Inference or reasoning models
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A system includes a memory having instructions therein and at least one processor in communication with the memory. The at least one processor is configured to execute the instructions to run a machine learning base model on input data to generate base model prediction data and run a machine learning error prediction model on the input data to generate error prediction data. The at least one processor is configured to execute the instructions to generate predicted correct base model prediction data based on the base model prediction data and the error prediction data. The at least one processor is configured to execute the instructions to generate confusion values data based on the base model prediction data and the predicted correct base model prediction data. The at least one processor is also configured to execute the instructions to generate base model accuracy fairness metrics data based on the confusion values data.

## Claims

### Claim 1

A method for generating a machine learning error prediction model, the method comprising:
receiving a machine learning model, the machine learning model having been trained on machine learning model training data comprising ground truth data;
receiving the machine learning model training data;
running the machine learning model on the machine learning model training data to generate prediction data;
comparing the prediction data to the ground truth data to generate error data; and
generating the machine learning error prediction model based on the error data.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the machine learning error prediction model based on the error data comprises incorporating the error data into the machine learning error prediction model as a feature of the machine learning error prediction model.

### Claim 3 (depends on 2)

The method of claim 2, wherein generating the machine learning error prediction model comprises incorporating a plurality of features of the machine learning model training data into the machine learning error prediction model as features of the machine learning error prediction model.

### Claim 4 (depends on 3)

The method of claim 3, wherein the prediction data comprises confidence data, and wherein generating the machine learning error prediction model comprises incorporating the confidence data into the machine learning error prediction model as a feature of the machine learning error prediction model.

### Claim 5

A method for correcting machine learning model prediction data, the method comprising:
receiving a machine learning base model;
receiving input data;
running the machine learning base model on the input data to generate base model prediction data;
running a machine learning error prediction model on the input data to generate error prediction data corresponding to a prediction by the machine learning error prediction model as to whether presently nonexistent ground truth data will ultimately show the base model prediction data to be true; and
generating predicted correct base model prediction data based on the base model prediction data and the error prediction data.

### Claim 6

A method for generating machine learning model fairness accuracy metrics, the method comprising:
running a machine learning base model on first input data to generate first base model prediction data;
running a machine learning error prediction model on the first input data to generate first error prediction data;
generating first predicted correct base model prediction data based on the first base model prediction data and the first error prediction data;
generating first confusion values data based on the first base model prediction data and the first predicted correct base model prediction data; and
generating base model accuracy fairness metrics data based on the first confusion values data.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
running the machine learning base model on second input data to generate second base model prediction data;
running the machine learning error prediction model on the second input data to generate second error prediction data;
generating second predicted correct base model prediction data based on the second base model prediction data and the second error prediction data;
generating second confusion values data based on the second base model prediction data and the second predicted correct base model prediction data; and
wherein generating the base model accuracy fairness metrics data comprises generating the base model accuracy fairness metrics data based on the second confusion values data.

### Claim 8 (depends on 7)

The method of claim 7, wherein generating the first confusion values data comprises comparing the first base model prediction data to the first predicted correct base model prediction data.

### Claim 9 (depends on 8)

The method of claim 8, wherein the machine learning base model has been trained on machine learning model training data comprising a plurality of features, and wherein running the machine learning error prediction model on the first input data to generate the first error prediction data comprises generating the first error prediction data based on the plurality of features.

### Claim 10 (depends on 9)

The method of claim 9, wherein the first base model prediction data comprises confidence data, and wherein generating the first error prediction data comprises generating the first error prediction data based on the confidence data.

### Claim 11 (depends on 10)

The method of claim 10, wherein the confidence data comprises first classification confidence data corresponding to a first prediction classification, wherein the confidence data comprises second classification confidence data corresponding to a second prediction classification, and wherein generating the first error prediction data comprises generating the first error prediction data based on a difference between the first classification confidence data and the second classification confidence data.

### Claim 12 (depends on 11)

The method of claim 11, wherein generating the base model accuracy fairness metrics data comprises generating at least one metric selected from the group consisting of an average odds difference, an error rate difference, a false discovery rate difference, a false negative rate difference, a false omission rate difference, a false positive rate difference, and a true positive rate difference.

### Claim 13

A system for generating machine learning model fairness accuracy metrics, the system comprising:
a memory having instructions therein; and
at least one processor in communication with the memory, wherein the at least one processor is configured to execute the instructions to:
run a machine learning base model on first input data to generate first base model prediction data;
run a machine learning error prediction model on the first input data to generate first error prediction data;
generate first predicted correct base model prediction data based on the first base model prediction data and the first error prediction data;
generate first confusion values data based on the first base model prediction data and the first predicted correct base model prediction data; and
generate base model accuracy fairness metrics data based on the first confusion values data.

### Claim 14 (depends on 13)

The system of claim 13, wherein the at least one processor is further configured to execute the instructions to:
run the machine learning base model on second input data to generate second base model prediction data;
run the machine learning error prediction model on the second input data to generate second error prediction data;
generate second predicted correct base model prediction data based on the second base model prediction data and the second error prediction data;
generate second confusion values data based on the second base model prediction data and the second predicted correct base model prediction data; and
generate the base model accuracy fairness metrics data based on the second confusion values data.

### Claim 15 (depends on 14)

The system of claim 14, wherein the at least one processor is further configured to execute the instructions to compare the first base model prediction data to the first predicted correct base model prediction data to generate the first confusion values data.

### Claim 16 (depends on 15)

The system of claim 15, wherein the machine learning base model has been trained on machine learning model training data comprising a plurality of features, and wherein the at least one processor is further configured to execute the instructions to generate the first error prediction data based on the plurality of features.

### Claim 17 (depends on 16)

The system of claim 16, wherein the first base model prediction data comprises confidence data, and wherein the at least one processor is further configured to execute the instructions to generate the first error prediction data based on the confidence data.

### Claim 18 (depends on 17)

The system of claim 17, wherein the confidence data comprises first classification confidence data corresponding to a first prediction classification, wherein the confidence data comprises second classification confidence data corresponding to a second prediction classification, and wherein the at least one processor is further configured to execute the instructions to generate the first error prediction data based on a difference between the first classification confidence data and the second classification confidence data.

### Claim 19 (depends on 18)

The system of claim 18, wherein the at least one processor is further configured to execute the instructions to generate at least one metric selected from the group consisting of an average odds difference, an error rate difference, a false discovery rate difference, a false negative rate difference, a false omission rate difference, a false positive rate difference, and a true positive rate difference.

### Claim 20

A computer program product for generating machine learning model fairness accuracy metrics, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by at least one processor to cause the at least one processor to:
run a machine learning base model on first input data to generate first base model prediction data;
run a machine learning error prediction model on the first input data to generate first error prediction data;
generate first predicted correct base model prediction data based on the first base model prediction data and the first error prediction data;
generate first confusion values data based on the first base model prediction data and the first predicted correct base model prediction data; and
generate base model accuracy fairness metrics data based on the first confusion values data.

### Claim 21 (depends on 20)

The computer program product of claim 20, wherein the program instructions are further executable by the at least one processor to cause the at least one processor to:
run the machine learning base model on second input data to generate second base model prediction data;
run the machine learning error prediction model on the second input data to generate second error prediction data;
generate second predicted correct base model prediction data based on the second base model prediction data and the second error prediction data;
generate second confusion values data based on the second base model prediction data and the second predicted correct base model prediction data; and
generate the base model accuracy fairness metrics data based on the second confusion values data.

### Claim 22 (depends on 21)

The computer program product of claim 21, wherein the program instructions are further executable by the at least one processor to cause the at least one processor to compare the first base model prediction data to the first predicted correct base model prediction data to generate the first confusion values data.

### Claim 23 (depends on 22)

The computer program product of claim 22, wherein the machine learning base model has been trained on machine learning model training data comprising a plurality of features, and wherein the program instructions are further executable by the at least one processor to cause the at least one processor to generate the first error prediction data based on the plurality of features.

### Claim 24 (depends on 23)

The computer program product of claim 23, wherein the first base model prediction data comprises confidence data, and wherein the program instructions are further executable by the at least one processor to cause the at least one processor to generate the first error prediction data based on the confidence data.

### Claim 25 (depends on 24)

The computer program product of claim 24, wherein the confidence data comprises first classification confidence data corresponding to a first prediction classification, wherein the confidence data comprises second classification confidence data corresponding to a second prediction classification, and wherein the program instructions are further executable by the at least one processor to cause the at least one processor to generate the first error prediction data based on a difference between the first classification confidence data and the second classification confidence data.
