# US 2021/0286800 A1 · Device and method for anomaly detection

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

- Number: US 2021/0286800 A1
- Document ID: US20210286800A1
- Status: Published application
- Kind: A1
- Application number: 17/181,473
- Filed: 2021-02-22
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: Robert Bosch GmbH
- Applicants: Robert Bosch GmbH
- Inventors: Dan Zhang; Robin Tibor Schirrmeister; Yuxuan Zhou
- Web page: https://patentgrep.com/patent/US20210286800A1

## CPC

- G06F 16/2365: {Ensuring data consistency and integrity}
- G05B 13/0265: {the criterion being a learning criterion}
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computer-implemented method for classifying whether an input signal, which comprises image and/or audio data, is anomalous or not with respect to a second data distribution using an anomaly classifier. The method includes: providing the input signal to the anomaly classifier; in the anomaly classifier, providing the input signal to a reference detector and a second detector; obtaining a reference value from the reference detector based on the input signal, the reference value characterizing the likelihood of the input signal to belong to a reference data distribution; obtaining a second value from the second detector based on the input signal, the second value characterizing the likelihood of the input signal to belong to the second data distribution; and providing an output signal, which characterizes a classification of the input signal as anomalous or not based on a comparison of the reference value and the second value.

## Claims

### Claim 1

A computer-implemented method for classifying whether an input signal, which includes image data and/or audio data, is anomalous or not with respect to a second data distribution using an anomaly classifier, wherein the anomaly classifier uses a reference detector and a second detector, the method comprising the following steps:
providing the input signal to the anomaly classifier;
in the anomaly classifier, providing the input signal to the reference detector and the second detector, wherein the reference detector includes a generative model of a reference data distribution and the second detector includes a generative model of the second data distribution;
obtaining a reference value from the reference detector based on the input signal, wherein the reference value characterizes a likelihood of the input signal belonging to the reference data distribution;
obtaining a second value from the second detector based on the input signal, wherein the second value characterizes a likelihood of the input signal belonging to the second data distribution; and
providing an output signal which characterizes a classification of the input signal as anomalous or not, based on a comparison of the reference value and the second value.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the output signal characterizes the input signal as anomalous when the reference value exceeds the second value by a predefined margin value.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the reference detector includes a flow-based machine-learning model and/or the second detector includes a flow-based generative machine-learning model.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the likelihood of belonging to the reference distribution is obtained based on a likelihood of one or multiple intermediate representations of the reference detector and/or the likelihood of belonging to the second distribution is obtained based on a likelihood of one or intermediate representations of the second detector.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the anomaly classifier is used to supervise an application-specific classifier, the application-specific classifier having been trained with data from the second data distribution and receives the input signal.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the input signal is based on a sensor signal including data from a sensor and/or an actuator control signal is determined based on the output signal of the anomaly classifier for controlling an actuator.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the actuator controls an at least partially autonomous robot and/or a manufacturing machine and/or an access control system and/or an automated personal assistant and/or a surveillance system and/or an imaging system.

### Claim 8

An anomaly classifier configured to classify whether an input signal, which includes image data and/or audio data, is anomalous or not with respect to a second data distribution, wherein the anomaly classifier uses a reference detector and a second detector, the anomaly classifier configured to:
receive the input signal;
in the anomaly classifier, provide the input signal to the reference detector and the second detector, wherein the reference detector includes a generative model of a reference data distribution and the second detector includes a generative model of the second data distribution;
obtain a reference value from the reference detector based on the input signal, wherein the reference value characterizes a likelihood of the input signal belonging to the reference data distribution;
obtain a second value from the second detector based on the input signal, wherein the second value characterizes a likelihood of the input signal belonging to the second data distribution; and
provide an output signal which characterizes a classification of the input signal as anomalous or not, based on a comparison of the reference value and the second value.

### Claim 9

A method for training an anomaly classifier, the anomaly classifier configured to classify whether an input signal, which includes image data and/or audio data, is anomalous or not with respect to a second data distribution, wherein the anomaly classifier uses a reference detector and a second detector, the anomaly classifier configured to receive the input signal, in the anomaly classifier, provide the input signal to the reference detector and the second detector, wherein the reference detector includes a generative model of a reference data distribution and the second detector includes a generative model of the second data distribution, obtain a reference value from the reference detector based on the input signal, wherein the reference value characterizes a likelihood of the input signal belonging to the reference data distribution, obtain a second value from the second detector based on the input signal, wherein the second value characterizes a likelihood of the input signal belonging to the second data distribution, and provide an output signal which characterizes a classification of the input signal as anomalous or not, based on a comparison of the reference value and the second value, the method comprising the following steps:
training the reference detector in an unsupervised fashion on a reference dataset, wherein the reference dataset is a sample of the reference data distribution; and
training the second detector in an unsupervised fashion on a second dataset, wherein the reference dataset is a sample of the second data distribution.

### Claim 10 (depends on 9)

The method according to claim 9, further comprising the following step:
training the second detector using the reference dataset in a supervised fashion and/or training the reference detector using the second dataset in a supervised fashion.

### Claim 11 (depends on 9)

The method according to claim 9, wherein the step of training the second detector includes fine-tuning the reference detector on the second dataset to obtain a trained second detector.

### Claim 12

A non-transitory machine-readable storage medium on which is stored a computer program for classifying whether an input signal, which includes image data and/or audio data, is anomalous or not with respect to a second data distribution using an anomaly classifier, wherein the anomaly classifier uses a reference detector and a second detector, the computer program, when executed by a computer, causing the computer to perform the following steps:
providing the input signal to the anomaly classifier;
in the anomaly classifier, providing the input signal to the reference detector and the second detector, wherein the reference detector includes a generative model of a reference data distribution and the second detector includes a generative model of the second data distribution;
obtaining a reference value from the reference detector based on the input signal, wherein the reference value characterizes a likelihood of the input signal belonging to the reference data distribution;
obtaining a second value from the second detector based on the input signal, wherein the second value characterizes a likelihood of the input signal belonging to the second data distribution; and
providing an output signal which characterizes a classification of the input signal as anomalous or not, based on a comparison of the reference value and the second value.

### Claim 13

A control system for operating an actuator, comprising:
an anomaly classifier the anomaly classifier configured to classify whether an input signal, which includes image data and/or audio data, is anomalous or not with respect to a second data distribution, wherein the anomaly classifier uses a reference detector and a second detector, the anomaly classifier configured to receive the input signal, in the anomaly classifier, provide the input signal to the reference detector and the second detector, wherein the reference detector includes a generative model of a reference data distribution and the second detector includes a generative model of the second data distribution, obtain a reference value from the reference detector based on the input signal, wherein the reference value characterizes a likelihood of the input signal belonging to the reference data distribution, obtain a second value from the second detector based on the input signal, wherein the second value characterizes a likelihood of the input signal belonging to the second data distribution, and provide an output signal which characterizes a classification of the input signal as anomalous or not, based on a comparison of the reference value and the second value, wherein the reference detector is trained in an unsupervised fashion on a reference dataset, wherein the reference dataset is a sample of the reference data distribution, and the second detector is trained in an unsupervised fashion on a second dataset, wherein the reference dataset is a sample of the second data distribution;
wherein the control system is configured to operate the actuator in accordance with the output signal of the anomaly classifier.

### Claim 14

A training system configured to train an anomaly classifier, the anomaly classifier configured to classify whether an input signal, which includes image data and/or audio data, is anomalous or not with respect to a second data distribution, wherein the anomaly classifier uses a reference detector and a second detector, the anomaly classifier configured to receive the input signal, in the anomaly classifier, provide the input signal to the reference detector and the second detector, wherein the reference detector includes a generative model of a reference data distribution and the second detector includes a generative model of the second data distribution, obtain a reference value from the reference detector based on the input signal, wherein the reference value characterizes a likelihood of the input signal belonging to the reference data distribution, obtain a second value from the second detector based on the input signal, wherein the second value characterizes a likelihood of the input signal belonging to the second data distribution, and provide an output signal which characterizes a classification of the input signal as anomalous or not, based on a comparison of the reference value and the second value, the training system configured to:
train the reference detector in an unsupervised fashion on a reference dataset, wherein the reference dataset is a sample of the reference data distribution; and
train the second detector in an unsupervised fashion on a second dataset, wherein the reference dataset is a sample of the second data distribution.
