Skip to content

A repository for anomaly detection using OCNN + SWAE

Notifications You must be signed in to change notification settings

sidvenkat1988/OCNN_SWAE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCNN_SWAE

This is done as a part of my Analytics IV module. This is based on the papers ANOMALY DETECTION USING ONE-CLASS NEURAL NETWORKS and Sliced-Wasserstein Autoencoder: An Embarrassingly Simple Generative Model.

Though I am getting a good accuracy purely on the basis of Autoencoder alone, a lot more needs to be done in order to improve the accuracy of OCNN.

Autoencoder training was based on the implementations here and OCNN was based on the implementations here

The datasets chosen were the concrete crack datasets downloaded from here

  1. Positive data extraction is documented here while the negative data extraction is documented here

  2. Separate folders were created for the positively and negatively labelled samples

  3. The data were resized and normalized based on the model requirements as documented here and here

  4. 8 different models were trained and were named as Model I, Model II, Model III, Model IV, Modev V, Model VI, Model VII and Model VIII

  5. The validation data were encoded and decoded for evaluation purposes

  6. These models were compared and evaluated using MSE, AUROC, Precision, Recall, Confusion Matrix, Accuracy Score and Classification Report

  7. The encoded features of the best performing model(Model VII) across both balanced and biased datasets were chosen for further classification tasks using OCNN

  8. 2 OCNN Models were trained and evaluated on balanced and imbalanced data, 1 with original features retained from the pre-trained Autoencoder model(documented here) and 1 with pre-trained features halved by PCA(documented here)

All the raw data, processed data and pre-trained models can be found here.

About

A repository for anomaly detection using OCNN + SWAE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published