Skip to content

lkhphuc/Anomaly-XRay-GANs

Repository files navigation

Unsupervised Anomaly Detection using Generative Adversarial Network on medical X-Ray image

Article: https://medium.com/vitalify-asia/gan-for-unsupervised-anomaly-detection-on-x-ray-images-6b9f678ca57d

Data

Model

Approach

Leveraging the ability to unsupervisedly learned the structure of data to generate realisitic image, this experiments aims to use that ability to perform binary classification when only trained on one class.

Usage

Run python main.py --help for full detail.

Example:

python main.py --batch_size 128 --imsize 64 --dataset mura --adv_loss inverse --version sabigan_wrist --image_path ~/datasets/ --use_tensorboard true --mura_class XR_WRIST --mura_type negative

How:

  • Train GAN model with the ability to inference on the latent variable (VAE+GAN / BiGAN) on only 'negative class'
  • Let the model learn until it can generate good looking images.
  • Use the Encoder, Generator, Discriminator outputs and hidden features to calculate 'Reconstruction loss' and 'Feature matching' loss.
  • Classify into 'negative' or 'positive' based on the score above.

References:

About

Anomaly detection on X-Ray MURA dataset using GAN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published