2 Star 1 Fork 1

烟雨江南 / network_anomaly_detection_deep_learning

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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

MIT License Copyright (c) 2017 Ritesh Kumar Malaiya Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

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”. 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/yanyu_jiangnan/network_anomaly_detection_deep_learning.git
git@gitee.com:yanyu_jiangnan/network_anomaly_detection_deep_learning.git
yanyu_jiangnan
network_anomaly_detection_deep_learning
network_anomaly_detection_deep_learning
master

搜索帮助