# US 2025/0165821 A1 · Method for making the function of a machine learning algorithm explainable

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

- Number: US 2025/0165821 A1
- Document ID: US20250165821A1
- Status: Published application
- Kind: A1
- Application number: 18/937,621
- Filed: 2024-11-05
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Applicants: Robert Bosch GmbH
- Inventors: Andreas Steimer; Clint Sebastian; Jana Veser; Laura Beggel; Thi Phuong Nhung Ngo; Mehul Bansal
- Web page: https://patentgrep.com/patent/US20250165821A1

## CPC

- G06N 5/045: Explanation of inference; Explainable artificial intelligence [XAI]; Interpretable artificial intelligence
- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for making the function of a machine learning algorithm explainable, wherein the machine learning algorithm is designed to assign input data to one of at least two groups. The method includes: providing input data for the machine learning algorithm; for all of the input data provided, assigning the corresponding input data to one of the at least two groups by means of the machine learning algorithm; selecting data from a first group of the at least two groups; ascertaining, from a second group of at least two groups, data that are most similar to the selected data from all the data contained in the second group; comparing the selected data with the ascertained data to make the machine learning algorithm explainable; and providing corresponding comparison results.

## Claims

### Claim 1

A method for making the function of a machine learning algorithm explainable, the machine learning algorithm being configured to assign input data to one of at least two groups, the method comprising the following steps:
providing input data for the machine learning algorithm;
for all of the input data provided, assigning each respective input data to one of the at least two groups using the machine learning algorithm;
selecting data from a first group of the at least two groups;
ascertaining, from a second group of at least two groups, data that are most similar to the selected data from all the data contained in the second group;
comparing the selected data with the ascertained data to make the machine learning algorithm explainable; and
providing comparison results based on the comparing.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the step of ascertaining, from the second group, the data that are most similar to the selected data including applying at least one encoder.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the method further comprises the following step:
retraining the machine learning algorithm based on the comparison results.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the input data include sensor data.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the machine learning algorithm is a machine learning algorithm for an automatic optical inspection of products produced by a manufacturing method, and wherein the input data are image data, captured by a sensor, of products produced by the manufacturing method.

### Claim 6

A system for making the function of a machine learning algorithm explainable, the machine learning algorithm being configured to assign input data to one of at least two groups, the system comprising:
a first provision unit configured to provide input data for the machine learning algorithm;
an assignment unit configured to, for all of the input data provided, to assign each respective input data to one of the at least two groups using the machine learning algorithm;
a selection unit configured to select data from a first group of the at least two groups;
an ascertainment unit configured to ascertain, from a second group of the at least two groups, data that are most similar to the selected data from all the data contained in the second group;
a comparison unit configured to compare the selected data with the ascertained data in order to make the machine learning algorithm explainable; and
a second provision unit configured to provide comparison results based on the comparing.

### Claim 7 (depends on 6)

The system according to claim 6, wherein the ascertainment unit is configured to apply at least one encoder to ascertain the data.

### Claim 8 (depends on 6)

The system according to claim 6, further comprises:
a retraining unit configured to retrain the machine learning algorithm based on the comparison results.

### Claim 9

A non-transitory computer-readable data carrier on which is stored program code of a computer program for making the function of a machine learning algorithm explainable, the machine learning algorithm being configured to assign input data to one of at least two groups, the program code, when executed by a computer, causing the computer to perform the following steps:
providing input data for the machine learning algorithm;
for all of the input data provided, assigning each respective input data to one of the at least two groups using the machine learning algorithm;
selecting data from a first group of the at least two groups;
ascertaining, from a second group of at least two groups, data that are most similar to the selected data from all the data contained in the second group;
comparing the selected data with the ascertained data to make the machine learning algorithm explainable; and
providing comparison results based on the comparing.
