Giter VIP home page Giter VIP logo

hangtianhengxing / network_anomaly_detection_deep_learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rkmalaiya/network_anomaly_detection_deep_learning

0.0 1.0 0.0 41.01 MB

This project has been conducted under the supervision of Dr. Jinoh Kim and Dr. Donghwoon Kwon at Texas A&M University-Commerce. The research outcome are published in the proceeding of IEEE ICNC 2018 (http://www.conf-icnc.org/2018/), with the title of “An Empirical Evaluation of Deep Learning for Network Anomaly Detection”.

Home Page: https://ieeexplore.ieee.org/abstract/document/8390278

License: MIT License

Jupyter Notebook 91.63% HTML 8.11% Python 0.27%

network_anomaly_detection_deep_learning's Introduction

Network Anomaly detection on datasets NSL-KDD, Kyoto University and Mawii labs

This project has been conducted under the supervision of Dr. Jinoh Kim and Dr. Donghwoon Kwon at Texas A&M University-Commerce. The research outcome will be published in the proceeding of IEEE ICNC 2018, with the title of “An Empirical Evaluation of Deep Learning for Network Anomaly Detection”.

  • Below results are for NSL-KDD Dataset only. Master branch contains code for NSL-KDD dataset. There are separate dev branches for Kyoto University and Mawii labs. The networks implemented are same for all datasets.

Exploratory Data Analysis

Andrew Curves (High dimensional data plots)

andrews_curve

T-SNE (Data dimensionality Reduction)

Pattern evolving during epochs

tsne

Pattern in final (4000) epoch

tsne_4000

Results of Train/Test cycles

Fully Connected Neural Network

Accuracy F1 Score Precision Recall
Model Scenarios Number of Features
Fully Connected Train+_Test+ 48 0.8670 0.8739 0.9490 0.8098
Train+_Test- 48 0.7576 0.8350 0.9424 0.7495
Train-_Test+ 48 0.8561 0.8695 0.8988 0.8420
Train-_Test- 48 0.7504 0.8396 0.8856 0.7981

png

png

Variational Autoencoder

latent variables used for prediction

Accuracy F1 Score Precision Recall
Model Scenarios Number of Features
VAE-Softmax Train+_Test+ 122 0.8948 0.9036 0.9441 0.8665
Train+_Test- 122 0.8173 0.8814 0.9402 0.8296
Train-_Test+ 48 0.7195 0.6942 0.9151 0.5592
Train-_Test- 48 0.8015 0.8700 0.9373 0.8118

png

png

Variational Autoencoder

Anomaly labels treated as part of actual data

Network learns to regenerated labels treating it as missing data during testing.

Accuracy F1 Score Precision Recall
Model Scenarios Number of Features
VAE-GenerateLabels Train+_Test+ 1 0.5692 0.7255 0.5692 1.0
Train+_Test- 1 0.8184 0.9001 0.8184 1.0
Train-_Test+ 1 0.5692 0.7255 0.5692 1.0
Train-_Test- 1 0.8184 0.9001 0.8184 1.0

png

png

LSTM Seq2Seq

Softmax layer is used to convert output sequence to Normal/Anomaly prediction.

Accuracy F1 Score Precision Recall
Model Scenarios Number of Features
LSTM Seq2Seq Train+_Test+ 1 0.9949 0.9955 0.9915 0.9995
Train+_Test- 1 0.9949 0.9955 0.9915 0.9995
Train-_Test+ 1 0.9992 0.9993 0.9985 1.0000
Train-_Test- 1 0.9992 0.9993 0.9985 1.0000

png

png

Conclusion

Model Fully Connected LSTM VAE-GenerateLabels VAE-Softmax
Scenarios
Train+_Test+ 0.8739 0.9955 0.7255 0.9036
Train+_Test- 0.8350 0.9955 0.9001 0.8814
Train-_Test+ 0.8695 0.9993 0.7255 0.6942
Train-_Test- 0.8396 0.9993 0.9001 0.8700

png

Scenarios Train+_Test+ Train+_Test- Train-_Test+ Train-_Test-
Model
Fully Connected 0.8739 0.8350 0.8695 0.8396
LSTM 0.9955 0.9955 0.9993 0.9993
VAE-GenerateLabels 0.7255 0.9001 0.7255 0.9001
VAE-Softmax 0.9036 0.8814 0.6942 0.8700

png

network_anomaly_detection_deep_learning's People

Contributors

rkmalaiya avatar

Watchers

James Cloos 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.