Git Product home page Git Product logo

multiautoencoder-intrusion-detection's Introduction

Intrusion-Detection-NSL-KDD-using-Autoencoders

Note: Currently the implementation is in a notebook, due to time contraints. Working on converting the notebook to scripts and modularizing the code.

This project aims to detect Network Intrusion of the forms Denial of Service (DoS), Probe, User to Root(U2R), and Remote to Local (R2L) using an Autoencoder + ANN Classifier model. The dataset used is NSL-KDD by University of New Brunswick.

You can run this notebook here

Dataset

The done analysis done by Gerry Saporito in the article "A Deeper Dive into the NSL-KDD Data Set" , gives some insights about the structure and semantics of the dataset. The dataset has:

  • 4 Categorical
  • 6 Binary
  • 23 Discrete
  • 10 Continuous

The EDA done on this Kaggle kernel gives insights about the distribution of variables and the correlation of the features.

Highlights

Custom Loss Function

A custom loss function was used which is the hybrid of MSE and KL Divergence Loss, (work in progrss, yet to tune)

Learning Rate Scheduling

An exponential learning rate decay function was used:

learning_rate = initial_learning_rate * (drop ^ floor((1+epoch)/epoch_interval) )

Results

Encoding Dimension Accuracy Precision AUC F1 Score
10 0.9804 0.9814 0.9989 0.9802
12 0.9799 0.9803 0.9989 0.9799
14 0.9833 0.9846 0.9990 0.9827
16 0.9818 0.9828 0.9991 0.9819
18 0.9813 0.9823 0.9989 0.9812
20 0.9744 0.9768 0.9991 0.9744
22 0.9819 0.9832 0.9989 0.9822
24 0.9819 0.9833 0.9990 0.9822

TO DO

  • Modularising the code
  • Combined Binary + Multiclass Classification
  • Experimenting with custom layer (lambda layer for outputting absolute values)
  • Experimenting with Conv1D layers for the classifier
  • Multiautoencoder approach

multiautoencoder-intrusion-detection's People

Contributors

ma1var3 avatar eslamahmed235 avatar

Stargazers

 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.