# US 2023/0409935 A1 · Predicting the need for xai in artificial intelligence systems

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

- Number: US 2023/0409935 A1
- Document ID: US20230409935A1
- Status: Published application
- Kind: A1
- Application number: 17/807,039
- Filed: 2022-06-15
- Published: 2023-12-21
- Earliest claimed: 2022-06-15
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Vagner Figueredo de Santana; Ana Fucs; Vinicius Costa Villas Boas Segura; Daniel Brugnaro De Moraes; Renato Fontoura de Gusmao Cerqueira
- Web page: https://patentgrep.com/patent/US20230409935A1

## CPC

- G06N 5/045: Explanation of inference; Explainable artificial intelligence [XAI]; Interpretable artificial intelligence
- G06F 11/3438: {monitoring of user actions (tracking the activity of the user H04L67/535)}
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06N 3/08: Learning methods
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, computer program, and computer system are provided for selecting an artificial intelligence algorithm. Data corresponding to a user interaction with an artificial intelligence system is received. A need by the user for an explanation associated with the artificial intelligence system is identified based on the received data corresponding to the user interaction with the artificial intelligence system. An artificial intelligence algorithm is selected from among a plurality of artificial intelligence algorithms. The selected artificial intelligence algorithm includes an explainable artificial intelligence component. A model is created for the the selected artificial intelligence algorithm corresponding to the received data.

## Claims

### Claim 1

A method of selecting an artificial intelligence algorithm, executable by a processor, comprising:
receiving data corresponding to a user interaction with an artificial intelligence system;
identifying, based on received data corresponding to the user interaction with the artificial intelligence system, a need by the user for an explanation associated with the artificial intelligence system;
selecting an artificial intelligence algorithm from among a plurality of artificial intelligence algorithms, wherein the selected artificial intelligence algorithm includes an explainable artificial intelligence component; and
creating a model for the selected artificial intelligence algorithm corresponding to the received data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the artificial intelligence algorithm is selected based on previous user interactions with the artificial intelligence system selecting an artificial intelligence algorithm having an explainable artificial intelligence component.

### Claim 3 (depends on 1)

The method of claim 1, further comprising training the model based on measuring a similarity value between the received data and data corresponding to previous user interactions having a need for an explanation associated with the artificial intelligence system.

### Claim 4 (depends on 1)

The method of claim 1, wherein identifying the need by the user for the explanation associated with the artificial intelligence system comprises:
creating embeddings based on the received data corresponding to the user interaction with the artificial intelligence system;
calculating a similarity value between the embeddings; and
determining the need for the explanation based on the calculated similarity value.

### Claim 5 (depends on 4)

The method of claim 4, wherein the similarity value corresponds to a cosine similarity value between vectors associated with the created embeddings.

### Claim 6 (depends on 1)

The method of claim 1, further comprising providing an explanation of the artificial intelligence algorithm to the user.

### Claim 7 (depends on 1)

The method of claim 1, wherein the data corresponding to the user interaction with the artificial intelligence system includes data corresponding to an identifier, a timestamp, an event, a target, and metadata.

### Claim 8

A computer system for selecting an artificial intelligence algorithm, the computer system comprising:
one or more computer-readable non-transitory storage media configured to store computer program code; and
one or more computer processors configured to access said computer program code and operate as instructed by said computer program code, said computer program code including:
receiving code configured to cause the one or more computer processors to receive data corresponding to a user interaction with an artificial intelligence system;
identifying code configured to cause the one or more computer processors to identify, based on received data corresponding to the user interaction with the artificial intelligence system, a need by the user for an explanation associated with the artificial intelligence system;
selecting code configured to cause the one or more computer processors to select an artificial intelligence algorithm from among a plurality of artificial intelligence algorithms, wherein the selected artificial intelligence algorithm includes an explainable artificial intelligence component; and
creating code configured to cause the one or more computer processors to create a model for the selected artificial intelligence algorithm corresponding to the received data.

### Claim 9 (depends on 8)

The computer system of claim 8, wherein the artificial intelligence algorithm is selected based on previous user interactions with the artificial intelligence system selecting an artificial intelligence algorithm having an explainable artificial intelligence component.

### Claim 10 (depends on 8)

The computer system of claim 8, further comprising training code configured to cause the one or more computer processors to train the model based on measuring a similarity value between the received data and data corresponding to previous user interactions having a need for an explanation associated with the artificial intelligence system.

### Claim 11 (depends on 8)

The computer system of claim 8, wherein the identifying code comprises:
creating code configured to cause the one or more computer processors to create embeddings based on the received data corresponding to the user interaction with the artificial intelligence system;
calculating code configured to cause the one or more computer processors to calculate a similarity value between the embeddings; and
determining code configured to cause the one or more computer processors to determine the need for the explanation based on the calculated similarity value.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the similarity value corresponds to a cosine similarity value between vectors associated with the created embeddings.

### Claim 13 (depends on 8)

The computer system of claim 8, further comprising providing code configured to cause the one or more computer processors to provide an explanation of the artificial intelligence algorithm to the user.

### Claim 14 (depends on 8)

The computer system of claim 8, wherein the data corresponding to the user interaction with the artificial intelligence system includes data corresponding to an identifier, a timestamp, an event, a target, and metadata.

### Claim 15

A non-transitory computer readable medium having stored thereon a computer program for selecting an artificial intelligence algorithm, the computer program configured to cause one or more computer processors to:
receive data corresponding to a user interaction with an artificial intelligence system;
identify, based on received data corresponding to the user interaction with the artificial intelligence system, a need by the user for an explanation associated with the artificial intelligence system;
select an artificial intelligence algorithm from among a plurality of artificial intelligence algorithms, wherein the selected artificial intelligence algorithm includes an explainable artificial intelligence component; and
create a model for the selected artificial intelligence algorithm corresponding to the received data.

### Claim 16 (depends on 15)

The computer readable medium of claim 15, wherein the artificial intelligence algorithm is selected based on previous user interactions with the artificial intelligence system selecting an artificial intelligence algorithm having an explainable artificial intelligence component.

### Claim 17 (depends on 15)

The computer readable medium of claim 15, wherein the computer program is further configured to cause the one or more computer processors to train the model based on measuring a similarity value between the received data and data corresponding to previous user interactions having a need for an explanation associated with the artificial intelligence system.

### Claim 18 (depends on 15)

The computer readable medium of claim 15, wherein the computer program is further configured to cause one or more computer processors to:
create embeddings based on the received data corresponding to the user interaction with the artificial intelligence system;
calculate a similarity value between the embeddings; and
determine the need for the explanation based on the calculated similarity value.

### Claim 19 (depends on 11)

The computer readable medium of claim 11, wherein the similarity value corresponds to a cosine similarity value between vectors associated with the created embeddings.

### Claim 20 (depends on 15)

The computer readable medium of claim 15, wherein the computer program is further configured to cause the one or more computer processors to provide an explanation of the artificial intelligence algorithm to the user.
