Giter VIP home page Giter VIP logo

simsiamdistancebasedanomaly's Introduction

Repo for Deep Data-Driven Anomaly Detection and Knowledge-Based Diagnosis

This repo contains the extension from previous supervised work (Repo) for applying Simple Siam (https://arxiv.org/abs/2011.10566) for anomaly detection and evaluating subsequent diagnosis approaches by using a knowledge graph in the context of predictive maintenance.

Knowledge-based Root Cause Analysis / Anomaly Diagnosis

The repo implements query strategies and different knowledge-based retrieval approaches (SPARQL queries, Symbolic-driven Neural Reasoning based on Knowedge Gralph Embeddings, Case-based Reasoning) that aim to find the root cause (i.e. data sets label or affected component).

Details / Notes

The implementation is for research purposes, structure is not optimal because it grew with the ideas and findings made during the investigations.

Reproducing Q1-L SDNR Oracle:

Repo Head: d35d1237

Reproducing Q1-L SDNR Siam CNN2D-GSN+GSL

Repo Head: d35d1237 | All false beside: q8, is_siam, use_only_true_positive_pred | Use the results of the anomaly detection model below the comment: # THIS ONE IS USED:

Reproducing Q1-L+Constraint CBR Siam CNN2D-GSN+GSL

Checkout Reviosn Number: fc2813ad23ebe12fd7d310b60370b2b34c64192d All false beside: All false beside: q8, is_siam, use_only_true_positive_pred, use_cbr | Use the results of the anomaly detection model below the comment: # THIS ONE IS USED:

Supplementary Resources

Quick start guide: How to start the model?

  1. Clone the repository
  2. Download the preprocessed data set and move it to the data folder
  3. For (data-driven) Anomaly Detection with Siam CNN2D+GCN+GSL (best model): Navigate to the neural_network folder and start the training and test procedure via python TrainAndTest.pyTrainSelectAndTest_Ano_Intermediate_raw.py > Log.txt
  4. For (knowledge-based) Anomaly Diagnosis: Navigate to the neural_network folder and start Diagnosis_Eval.py

Requirements

Used python version: 3.6.X
Used packages: See requirements.txt

Used Hardware

CPU 2x 40x Intel Xeon Gold 6138 @ 2.00GHz
RAM 12 x 64 GB Micron DDR4
GPU 1 x NVIDIA Tesla V100 32 GB GPUs

General instructions for use

  • All settings can be adjusted in the script Configuration.py, whereby some rarely changed variables are stored in the file config.json, which is read in during the initialization.
  • The hyperparameters of the neural networks can be defined in the script Hyperparameter.py or can be imported from a file in configuration/hyperparameter_combinations/ (this can also be changed in the configuration).
  • For training, the desired adjustments should first be made at the parts mentioned above and then the training can be started by running Training.py.
  • The evaluation of a trained model on the test dataset can be done via Inference.py. To do this, the folder which contains the model files, must first be specified in the configuration.
  • The data/ directory contains all required data. Central are the pre-processed training data in data/training_data/ and the trained models in data/trained_models/.

Software components

The following section gives an overview of the packages, directories and included Python scripts in this repository.

simsiamdistancebasedanomaly's People

Contributors

kleinpatrick avatar niklas2501 avatar predm avatar

Watchers

 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.