Code Monkey home page Code Monkey logo

f-anogan-tf's Introduction

f-AnoGAN: Fast unsupervised anomaly detection with generative adversarial networks

TensorFlow implementation of f-AnoGAN with MNIST dataset [1].
The base model WGAN is also implemented with TensorFlow.

Summary

f-AnoGAN architecture

The architecture of f-AnoGAN [1].

The logic for calculating anomaly score [1].

Graph in TensorBoard

Graph of f-AnoGAN.

Problem Definition

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

Results

Training Phase-1 (WGAN Training)

Training graph of Phase-1

The rear half of the graph represents the state of the training phase 2.

Term Real Term Fake
Loss D (Discriminator) Loss G (Generator)

Result of Phase-1

z:2 z:2 (latent space walking)
z:64 z:128

Training Phase-2 (izi Training)

Training graph of Phase-2

The front half of the graph represents the state of the training phase 1.

Term izi Term ziz Loss E (Encoder)

Result of Phase-2

Restoration result by f-AnoGAN.

Test Procedure

Box plot with encoding loss of test procedure.

Normal samples classified as normal.

Abnormal samples classified as normal.

Normal samples classified as abnormal.

Abnormal samples classified as abnormal.

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] Schlegl, Thomas, et al (2019). f-AnoGAN: Fast unsupervised anomaly detection with generative adversarial networks. Medical image analysis 54 (2019): 30-44.

f-anogan-tf's People

Contributors

yeonghyeon avatar

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.