# US 2021/0334096 A1 · Detecting bias in artificial intelligence software by analysis of source code contributions

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

- Number: US 2021/0334096 A1
- Document ID: US20210334096A1
- Status: Published application
- Kind: A1
- Application number: 16/857,694
- Filed: 2020-04-24
- Published: 2021-10-28
- Earliest claimed: 2020-04-24
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Lisa Seacat DeLuca; Kelley Anders; Zachary A. Silverstein; Jeremy R. Fox
- Web page: https://patentgrep.com/patent/US20210334096A1

## CPC

- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 8/75: Structural analysis for program understanding
- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06N 20/00: Machine learning
- G06Q 10/103: {Workflow collaboration or project management}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

Techniques are provided for determining bias in an artificial intelligence/machine learning system. A plurality of users contributing to content of the source code base are identified. A plurality of user contributions are generated by determining each user contribution to the source code base by analyzing attributes of the content. The plurality of user contributions are mapped to respective profiles of the users. A determination is made as to whether categortties of contribution defined for the source code base are met, based upon the mapping of the plurality of user contributions to respective profiles.

## Claims

### Claim 1

A method for identifying potential bias in a source code base comprising:
identifying, via a processor, a plurality of users contributing to content of the source code base;
generating, via the processor, a plurality of user contributions by determining each user contribution to the source code base by analyzing attributes of the content;
mapping, via the processor, the plurality of user contributions to respective profiles of the users;
determining, via the processor, that categories of contribution defined for the source code base are not met, based upon the mapping of the plurality of user contributions to respective profiles; and
automatically modifying the source code base, via the processor, to balance the user contributions to satisfy the categories of contribution and recompiling the modified source code base for release.

### Claim 2 (depends on 1)

The method of claim 1, wherein user contribution is determined by direct contribution and indirect contribution.

### Claim 3 (depends on 2)

The method of claim 2, wherein the direct contribution is based on an amount of source code contributed by a user.

### Claim 4 (depends on 3)

The method of claim 3, wherein the direct contribution is based on one or more of a number of lines of source code provided by the user, a number of functions provided by the user, a number of modules provided by the user, a number of test cases written by the user, a number of test cases performed by the user, and a number of source code commits performed by the user.

### Claim 5 (depends on 1)

The method of claim 1, wherein a profile of a user includes demographic information.

### Claim 6 (depends on 1)

The method of claim 1, wherein the categories of contribution define requirements pertaining to the source code base including user contributions in view of user profiles and/or project roles.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
performing, when one or more categories of contribution are not met, one or more actions selected from a group consisting of alerting users of potential bias and delaying the release of the product pending evaluation and remediation of the potential bias.

### Claim 8 (depends on 1)

The method of claim 1, wherein the content of the source code base corresponds to an artificial intelligence (AI) and/or machine learning (ML) model.

### Claim 9

A system to identify potential bias in a source code base, the system comprising:
one or more computer processors;
one or more computer readable storage media;
program instructions stored on the one or more computer readable storage media for execution by at least one of the one or more computer processors, the program instructions comprising instructions to:
identify a plurality of users contributing to content of the source code base;
generate a plurality of user contributions by determining each user contribution to the source code base by analyzing attributes of the content;
map the plurality of user contributions to respective profiles of the users; [[and]]
determine that whether categories of contribution defined for the source code base are not met, based upon the mapping of the plurality of user contributions to respective profiles and
automatically modify the source code base to balance the user contributions to satisfy the categories of contribution and recompile the modified source code base for release.

### Claim 10 (depends on 9)

The system of claim 9, wherein user contribution is determined by direct contribution and indirect contribution.

### Claim 11 (depends on 10)

The system of claim 10, wherein the direct contribution is based on one or more of a number of lines of source code provided by [[the]] a user, a number of functions provided by the user, a number of modules provided by the user, and a number of source code commits performed by the user.

### Claim 12 (depends on 9)

The system of claim 9, wherein a profile of a user includes demographic information.

### Claim 13 (depends on 9)

The system of claim 9, wherein the categories of contribution define requirements pertaining to the source code base including user contributions in view of user profiles and/or project roles.

### Claim 14 (depends on 9)

The system of claim 9, wherein the program instructions further comprise instructions to:
perform, when one or more categories of contribution are not met, one or more actions selected from a group consisting of alerting users of potential bias and delaying the release pending evaluation and remediation of the potential bias.

### Claim 15

A computer program product to identify potential bias in a source code base, the computer program product comprising one or more computer readable storage media collectively having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to:
identify a plurality of users contributing to content of the source code base;
generate a plurality of user contributions by determining each user contribution to the source code base by analyzing attributes of the content;
map the plurality of user contributions to respective profiles of the users;
determine that categories of contribution defined for the source code base are not met, based upon the mapping of the plurality of user contributions to respective profiles; and
automatically modify the source code base to balance the user contributions to satisfy the categories of contribution and recompile the modified source code base for release.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein user contribution is determined by direct contribution and indirect contribution.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the direct contribution is based on one or more of a number of lines of source code provided by a user, a number of functions provided by the user, a number of modules provided by the user, and a number of source code commits performed by the user.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein a profile of a user includes demographic information.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein the categories of contribution define requirements pertaining to the source code base including user contributions in view of user profiles and/or project roles.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the program instructions further comprise instructions to:
perform, when one or more categories of contribution are not met, one or more actions selected from a group consisting of alerting users of potential bias and delaying the release pending evaluation and remediation of the potential bias.
