# US 2023/0409881 A1 · Method and device for data abnormality detection

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

- Number: US 2023/0409881 A1
- Document ID: US20230409881A1
- Status: Published application
- Kind: A1
- Application number: 18/252,163
- Filed: 2021-12-27
- Published: 2023-12-21
- Earliest claimed: 2021-12-27
- Applicants: Commissariat à l'Energie Atomique et aux Energies Alternatives
- Inventors: Frédéric HEITZMANN; Miguel-Angel SOLINAS; Marina REYBOZ; Romain COHENDET
- Web page: https://patentgrep.com/patent/US20230409881A1

## CPC

- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- A01D 46/24: Devices for picking apples or like fruit (A01D46/28 {and A01D46/005} takes precedence)
- B60T 8/174: characterised by using special control logic, e.g. fuzzy logic {, neural computing}
- B60T 8/885: {using electrical circuitry}
- G06F 18/24133: {Distances to prototypes}
- G06N 3/045: Combinations of networks
- G06N 3/0499: Feedforward networks
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/09: Supervised learning
- B60T 2270/406: Test-mode; Self-diagnosis
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- A01D: HARVESTING; MOWING
- B60T: VEHICLE BRAKE CONTROL SYSTEMS OR PARTS THEREOF; BRAKE CONTROL SYSTEMS OR PARTS THEREOF, IN GENERAL (electrodynamic brake systems for vehicle, in general B60L; brakes per se, i.e. devices where braking effect occurs, including ultimate brake actuators, F16D); ARRANGEMENT OF BRAKING ELEMENTS ON VEHICLES IN GENERAL; PORTABLE DEVICES FOR PREVENTING UNWANTED MOVEMENT OF VEHICLES; VEHICLE MODIFICATIONS TO FACILITATE COOLING OF BRAKES
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to a method of anomaly detection using a trained artificial neural network (502) configured to implement at least an auto-associative function for replicating an input data sample at one or more outputs (A), the method comprising: a) injecting an input data sample into the trained artificial neural network (502) in order to generate a first replicated sample at the one or more outputs (A); b) performing at least one reinjection operation; c) computing a first parameter based on a distance between a value of an nth replicated sample present at the one or more outputs and a value of one of the previously injected or reinjected values; and d) comparing the first parameter with a first threshold (δ), and processing the input data sample as an anomalous data sample if the first threshold is exceeded.

## Claims

### Claim 1

A method of anomaly detection using a trained artificial neural network configured to implement at least an auto-associative function for replicating an input data sample at one or more outputs, the method comprising:
a) injecting, by a control circuit or processing device, an input data sample into the trained artificial neural network in order to generate a first replicated sample at the one or more outputs of the trained artificial neural network;
b) performing, by the control circuit or processing device, at least one reinjection operation into the trained artificial neural network starting from the first replicated sample, wherein each reinjection operation comprises reinjecting a replicated sample present at the one or more outputs into the trained artificial neural network;
c) computing, by the control circuit or the processing device, a first parameter based on a distance between a value of an nth replicated sample present at the one or more outputs resulting from the (n−1)th reinjection and a value of one of the previously injected or reinjected samples, where n is equal to at least 2; and
d) comparing the first parameter with a first threshold δ, and processing the input data sample as an anomalous data sample if the first threshold is exceeded.

### Claim 2 (depends on 1)

A method of controlling one or more actuators, the method comprising:
performing anomaly detection according to the method of claim 1; and
controlling, by the control circuit or processing device, the one or more actuators only if the input data sample is not detected as an anomalous data sample.

### Claim 3 (depends on 1)

The method of claim 1, further comprising, prior to a), capturing the input data sample using one or more sensors, wherein the one or more sensors comprise an image sensor, the input data sample being one or more images capture by the image sensor, and the control circuit or processing device being configured to perform said anomaly detection by image processing of the input data sample.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first parameter is an overall distance between the value of an nth replicated sample and a value of the input data sample.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first parameter is an average distance per reinjection among a plurality of distances associated with the n−1 reinjections, each of the plurality of distances corresponding to a distance between a value of the reinjected sample and the value of the replicated sample present at the one or more outputs resulting from the reinjected sample.

### Claim 6 (depends on 1)

The method of claim 1, wherein the trained artificial neural network is configured to implement a classification function, one or more further outputs of the trained artificial neural network providing one or more class output values resulting from the classification function.

### Claim 7 (depends on 6)

The method of claim 6, further comprising performing adversarial data detection by:
e) computing, by the control circuit or the processing device, a second parameter based on a distance between values of the one or more class output values present at the one or more further outputs resulting from a reinjection with values of the one or more class output values present at the one or more further outputs resulting from the injection of the input data sample; and
f) comparing, by the control circuit or the processing device, the second parameter with a second threshold, and processing the input data sample as an adversarial data sample if the second threshold is exceeded.

### Claim 8 (depends on 6)

The method of claim 6, wherein the class output values are Logits.

### Claim 9 (depends on 1)

The method of claim 1, wherein the computing the first parameter comprises computing one or more of:
the mean squared error distance;
the Manhattan distance;
the Euclidean distance;
the χ2 distance;
the Kullback-Leibler distance;
the Jeffries-Matusita distance;
the Bhattacharyya distance; and
the Chernoff distance.

### Claim 10 (depends on 7)

The method of claim 7, wherein the computing the second parameter comprises computing one or more of:
the mean squared error distance;
the Manhattan distance;
the Euclidean distance;
the χ{circumflex over ( )}2 distance;
the Kullback-Leibler distance;
the Jeffries-Matusita distance;
the Bhattacharyya distance; and
the Chernoff distance.

### Claim 11 (depends on 1)

The method of claim 1, wherein processing the input data sample as an anomalous data sample comprises storing the input data sample to a sample data buffer, the method further comprising performing novel class learning on a plurality of input data samples stored in the sample data buffer.

### Claim 12

A system for anomaly detection, the system comprising a control circuit or processing device configured to:
a) inject an input data sample into a trained artificial neural network in order to generate a first replicated sample at one or more outputs of the trained artificial neural network, wherein the trained artificial neural network is configured to implement at least an auto-associative function for replicating input samples at the one or more outputs;
b) perform at least one reinjection operation into the trained artificial neural network starting from the first replicated sample, wherein each reinjection operation comprises reinjecting a replicated sample present at the one or more outputs into the trained artificial neural network;
c) compute a first parameter based on a distance between a value of an nth replicated sample present at the one or more outputs after the (n−1)th reinjection and a value of one of the previously injected or reinjected values; and
d) compare the first parameter with a threshold, and processing the input data sample as an anomalous data sample if the threshold is exceeded.

### Claim 13 (depends on 12)

The system of claim 12, further comprising:
one or more actuators, wherein the control circuit or the processing device, is configured to control the one or more actuators only if the input data sample is not detected as an anomalous data sample.

### Claim 14 (depends on 1213)

The system of claim 1213, further comprising one or more sensors configured to capture the input data sample, wherein the one or more sensors comprise an image sensor, the input data sample being one or more images capture by the image sensor, and the control circuit or the processing device is configured to perform said anomaly detection by image processing of the input data sample.

### Claim 15 (depends on 13)

The system of claim 13, wherein the trained artificial neural network is configured to implement a classification function implemented by the inference module, one or more further outputs of the trained artificial neural network providing one or more class output values resulting from the classification function.

### Claim 16 (depends on 15)

The system of claim 15, wherein the control circuit or the processing device is further configured to perform adversarial data detection by:
e) computing a second parameter based on a distance between values of the one or more class output values present at the one or more further outputs resulting from a reinjection with values of the one or more class output values present at the one or more further outputs resulting from the injection of the input data; and
f) comparing the second parameter with a second threshold, and processing the input data sample as an adversarial data sample if the second threshold is exceeded.

### Claim 17 (depends on 15)

The system of claim 15, wherein the class output values are Logits.

### Claim 18 (depends on 12)

The system of claim 12, further comprising a sample data buffer, wherein processing the input data sample as an anomalous data sample comprises storing the input data sample to the sample data buffer, the method further comprising performing novel class learning on a plurality of input data samples stored in the sample data buffer.
