Image Anomaly Detection Method Based on Variational Autoencoder

A self-encoder and anomaly detection technology, applied in the field of deep learning, can solve problems such as limited application, high memory complexity, and inability to affect hidden layer features, and achieve the effect of fast testing and low memory complexity

Active Publication Date: 2022-07-12
XIDIAN UNIV
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

proposed a support vector machine method (OC-SVM) in the paper "Estimating the Support of a High Dimensional Distribution", which can construct a hyperplane model of positive data and divide the data on the other side of the hyperplane into Anomaly classes are used to obtain ideal anomaly detection results. The disadvantage of this method is that the result depends largely on the selection of regularization parameters and kernel functions. When the amount of data is huge, the memory complexity is very high, which limits this method. Applications in Large-Scale Image Anomaly Detection Tasks
The disadvantage of this type of method is that because the general loss function is used to replace the customized anomaly detection target, the target of anomaly detection cannot affect the hidden layer features extracted by the network at all, making this method often suboptimal
[0005] In summary, the traditional anomaly detection method applied in the image field will not have a good anomaly detection effect due to the large amount of data in the image dataset. The deep anomaly detection method represented by the encoder and the variational autoencoder is used in the anomaly detection task. When , due to the lack of customized anomaly detection targets or the lack of tolerance for the diversity of normal samples, the performance of the deep model is often not fully utilized

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image Anomaly Detection Method Based on Variational Autoencoder
  • Image Anomaly Detection Method Based on Variational Autoencoder
  • Image Anomaly Detection Method Based on Variational Autoencoder

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] Anomaly detection has a wide range of applications in many fields. Among the anomaly detection technologies that have been researched and developed, it involves detection scenarios such as credit card fraud detection, network intrusion detection, medical diagnosis, and image denoising. Considering that images play an important role in conveying information in today's information age, it is of great significance to perform anomaly detection on images and subsequently analyze or delete the detected anomalous images. The present invention addresses the problem of anomaly detection with respect to images.

[0028]The number of exploding images puts forward new requirements for anomaly detection, which makes traditional anomaly detection methods difficult to deal with, and deep anomaly detection methods occupy the mainstream position. The anomaly detection methods represented by autoencoders and variational autoencoders have certain shortcomings, which limit their ability to...

Embodiment 2

[0043] The image anomaly detection method based on variational autoencoder is the same as that of Embodiment 1, and the calculation of the feature corresponding to each normal image sample in the training set in step (3a) needs to calculate the mean and standard deviation of the feature corresponding to each normal image sample, Finally, the features are sampled from the standard normal distribution and calculated. Specific steps are as follows:

[0044] 3a1) Calculate the mean of the features corresponding to each normal image sample in the training set

[0045] Calculate each normal image sample x in the training set according to the following formula i The mean μ of the corresponding feature i :

[0046] μ i =Relu(y i,K )W 1,K+1 +b 1,K+1

[0047]

[0048] where μ i Represents the mean value of the feature corresponding to the ith normal image sample in the training set, Relu represents the linear rectification function Rectified Linear Unit, here as the activati...

Embodiment 3

[0060] The image anomaly detection method based on the variational autoencoder is the same as the embodiment 1-2, and the specific formula of the reconstructed sample corresponding to each normal image sample in the calculation training set in step (3b) is as follows:

[0061]

[0062]

[0063] in, Represents the reconstructed sample corresponding to the ith normal image sample in the training set, Sigmoid represents the activation function, y i,M Represents the output of the activation function of the ith normal image sample in the Mth hidden layer of the decoder part of the variational autoencoder, M represents the number of hidden layers after the feature layer and before the output layer, W 2,M+1 represents the weight matrix of the Mth hidden layer of the decoder part of the variational autoencoder mapped to the output layer, b 2,M+1 The bias vector representing the mapping of the Mth hidden layer of the decoder part of the variational autoencoder to the output lay...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an image abnormality detection method based on variational self-encoder, in particular an abnormality detection method described by fusion of variational self-encoder and support vector data, which solves the two stages of abnormality detection and feature extraction in the prior art separation, limited anomaly detection performance, and the inability of traditional anomaly detection to cope with high-dimensional, large-scale anomaly detection tasks. The implementation steps include: image data acquisition; data set division and data preprocessing; constructing an anomaly detection model based on a variational autoencoder; training an anomaly detection model; calculating a threshold for distinguishing normal and abnormal image data according to the trained model; Use the trained model to determine whether the image to be tested is an abnormal image. The invention adopts the support vector data description to constrain the distance of the features extracted by the variational autoencoder, the extracted features are more suitable for abnormal detection, the memory complexity is low, and it can be applied to high-dimensional and large-scale abnormal detection tasks.

Description

technical field [0001] The invention belongs to the technical field of deep learning, and mainly relates to image anomaly detection, in particular to an image anomaly detection method based on a variational autoencoder, which is used for image anomaly detection combined with support data vector description. Background technique [0002] The task of anomaly detection is to identify data that is inconsistent with expectations, which is usually defined as an anomaly. Anomaly detection has an important responsibility in many fields. Among the anomaly detection technologies that have been researched and developed, applications such as credit card fraud detection, network intrusion detection, and medical diagnosis are involved. The present invention addresses the problem of anomaly detection with respect to images. [0003] The methods applied to image anomaly detection are divided into traditional anomaly detection techniques and deep anomaly detection techniques. Traditional ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06T7/00G06K9/62G06V10/774G06V10/764
CPCG06T7/0002G06T2207/10028G06T2207/20081G06F18/2411G06F18/214Y02T10/40
Inventor 周宇梁晓敏张维
Owner XIDIAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products