Coder Social home page Coder Social logo

yeonghyeon / cvae-anomalydetection Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 1.88 MB

Example of Anomaly Detection using Convolutional Variational Auto-Encoder (CVAE)

License: MIT License

Python 100.00%
variational-autoencoder convolutional-neural-networks generative-neural-network anomaly-detection mnist-dataset

cvae-anomalydetection's Introduction

Anomaly Detection using Convolutional Variational Auto-Encoder (CVAE)

Example of Anomaly Detection using Convolutional Variational Auto-Encoder (CVAE) [Related repository] [PyTorch Version].

Architecture

Simplified VAE architecture.

Problem Definition

'Class-1' is defined as normal and the others are defined as abnormal.

Results

Training

Restoration result by CVAE.

Latent vector space of training set, and reconstruction result of latent space walking.

Test

z_dim = 2

Left figure shows latent vector space of test set. Right figure shows box plot with restoration loss of test procedure.

z_dim = 128

Latent vector space of test set, box plot with restoration loss, and histogram of restoration loss.

Environment

  • Python 3.7.4
  • Tensorflow 1.14.0
  • Numpy 1.17.1
  • Matplotlib 3.1.1
  • Scikit Learn (sklearn) 0.21.3

Reference

[1] Kingma, D. P., & Welling, M. (2013). Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114.
[2] Kullback Leibler divergence. Wikipedia

cvae-anomalydetection's People

Contributors

yeonghyeon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

miora2020

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.