# US 2020/0394526 A1 · Method and apparatus for performing anomaly detection using neural network

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

- Number: US 2020/0394526 A1
- Document ID: US20200394526A1
- Status: Published application
- Kind: A1
- Application number: 16/781,328
- Filed: 2020-02-04
- Published: 2020-12-17
- Earliest claimed: 2019-06-11
- Assignees: Samsung Electronics Co., Ltd.; Postech Research and Business Development Foundation
- Applicants: Samsung Electronics Co., Ltd.; POSTECH Research and Business Development Foundation
- Inventors: Hyunsoo KIM; Jaeyoon SIM; Jaehan PARK; Hyunwoo SON; Sangjoon KIM
- Web page: https://patentgrep.com/patent/US20200394526A1

## CPC

- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 18/24133: {Distances to prototypes}
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0499: Feedforward networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06F 2218/12: Classification; Matching
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and apparatus for performing anomaly detection by using a neural network are provided. The apparatus is configured to extract input features of an input data signal, obtain output features of the neural network by processing the input features through the neural network, obtain an error based on the input features and the output features, and determine whether the input data signal indicates an abnormal signal based on the error and a threshold.

## Claims

### Claim 1

A method of performing anomaly detection by using a neural network, the method comprising:
extracting input features of an input data signal;
obtaining output features of the neural network corresponding to an output of a decoder by processing the input features by the neural network including layers of an encoder and a decoder;
obtaining an error based on the input features and the output features;
determining whether the input data signal indicates an abnormal signal based on the error and a threshold; and
outputting information indicating that the abnormal signal is detected based on determining that the input data signal indicates the abnormal signal.

### Claim 2 (depends on 1)

The method of claim 1, wherein the neural network includes,
an autoencoder that configures the layers of the encoder and the decoder based on an input layer, at least one hidden layer, and an output layer.

### Claim 3 (depends on 2)

The method of claim 2, wherein a dimension of the input layer and a dimension of the output layer are greater than a dimension of the hidden layer.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
performing unsupervised learning on the neural network based on the output features.

### Claim 5 (depends on 4)

The method of claim 4, wherein the obtaining the error includes,
calculating a mean squared error (MSE) between the input features and the output features.

### Claim 6 (depends on 5)

The method of claim 5, wherein the performing of the unsupervised learning includes,
updating weights of the input layer of the neural network and weights of the output layer of the neural network so that the error in a difference between the input features and the output features decreases.

### Claim 7 (depends on 6)

The method of claim 6, wherein the performing of the unsupervised learning includes,
updating the weights by performing learning so that the error decreases according to gradient descent.

### Claim 8 (depends on 7)

The method of claim 7, wherein the performing of the unsupervised learning includes,
updating the weights through a predetermined number of batch learnings.

### Claim 9 (depends on 7)

The method of claim 7, wherein the performing of the unsupervised learning includes,
updating the weights through online learning.

### Claim 10 (depends on 1)

A non-transitory computer-readable recording medium having recorded thereon a program that, when executed by processing circuitry of an apparatus, causes the apparatus to perform the method of claim 1.

### Claim 11

An apparatus for performing anomaly detection by using a neural network, the apparatus comprising:
a memory storing at least one program; and
processing circuitry configured to perform the anomaly detection by executing the at least one program,
wherein the processing circuitry is configured to:
extract input features of an input data signal,
process the input features by a neural network including layers of an encoder and a decoder to obtain output features of the neural network corresponding to an output of the decoder,
obtain an error based on the input features and the output features,
determine whether the input data signal indicates an abnormal signal based on the error and a threshold, and
output information indicating that the abnormal signal is detected based on determining that the input data signal indicates an abnormal signal.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the neural network includes,
an autoencoder that configures the layers of the encoder and the decoder based on an input layer, at least one hidden layer, and an output layer.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein a dimension of the input layer and a dimension of the output layer are greater than a dimension of at least one of the at least one hidden layer.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the processing circuitry is further configured to,
perform unsupervised learning on the neural network based on the output features.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the obtaining the error includes,
calculating a mean squared error (MSE) between the input features and the output features.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the processing circuitry is further configured to,
update, through the unsupervised learning, weights of the input layer of the neural network and weights of the output layer of the neural network so that the error in a difference between the input features and the output features decreases.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the updating, through the unsupervised learning, includes,
updating the weights by performing learning so that the error decreases according to gradient descent.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the processing circuitry is further configured to,
update the weights through online learning or a predetermined number of batch learnings.

### Claim 19 (depends on 11)

The apparatus of claim 11, wherein the processing circuitry includes,
an encoder layer calculation circuit that is configured to perform calculation for a layer of the encoder, and
a decoder layer calculation circuit that is configured to perform calculation for a layer of the decoder.

### Claim 20 (depends on 11)

The apparatus of claim 11, wherein the processing circuitry includes,
a layer calculation circuit configured to perform, with one circuit configuration, calculation for a layer of the encoder and calculation for a layer of the decoder.
