On shipping inspection for chemical materials, clothing, and food materials, etc, it is necessary to detect defects and impurities in normal products. In the following link, I shared codes to detect and localize anomalies using CAE with only images for training.
In this demo, you can learn how to apply Variational Autoencoder(VAE) to this task instead of CAE. VAEs use a probability distribution on the latent space, and sample from this distribution to generate new data.
- MATLAB
- Deep Learning Toolbox
- Image Processing Toolbox
- Computer Vision Toolbox
- Parallel Computing Toolbox
MATLAB version should be R2019b and later
- EN_VAE_Anomalydetection.mlx ・Example showing how to train the VAE model in English
- JP_VAE_Anomalydetection.mlx ・Example showing how to train the VAE model in Japanese
Auto-Encoding Variational Bayes [2013] Diederik P Kingma, Max Welling https://arxiv.org/pdf/1312.6114.pdf
Copyright 2019-2020 The MathWorks, Inc.