《计算机应用》唯一官方网站

• •    下一篇

融合CNN与BiGRU的类不平衡异常流量检测

陈虹,齐兵,金海波,武聪,张立昂   

  1. 辽宁工程技术大学
  • 收稿日期:2023-08-17 修回日期:2023-10-24 发布日期:2023-12-18 出版日期:2023-12-18
  • 通讯作者: 齐兵
  • 基金资助:
    国家自然科学基金;辽宁省教育厅科研项目

Class-imbalance abnormal traffic detection based on CNN and BiGRU

  • Received:2023-08-17 Revised:2023-10-24 Online:2023-12-18 Published:2023-12-18

摘要: 网络流量异常检测是利用各种检测技术对网络流量进行分析判断,发现网络中潜在的攻击,是一种有效的网络安全防护方法。针对高维海量数据和不同攻击类别的网络流量数据不均衡而导致检测准确率低、误报率高的问题,提出了一种融合卷积神经网络(CNN)和双向门控循环单元(BiGRU)的类不平衡异常流量检测模型。针对类不平衡数据,通过使用改进的合成少数类过采样技术(SMOTE)即borderline-SMOTE和基于高斯混合模型(GMM)的欠采样聚类技术进行平衡处理。然后使用1D-CNN提取数据的局部特征,并利用BiGRU更好地提取数据中的时序特征。最后在UNSW-NB15数据集对该模型进行验证,其准确率为98.12%,误报率为1.28%。结果表明,该模型提高了对少数攻击的识别率,检测精度高于其他经典机器学习和深度学习模型。

关键词: 流量异常检测, 不平衡处理, 特征选择, 卷积神经网络, 双向门控循环单元

Abstract: Abstract: Network traffic anomaly detection is a network security defense method that involves analyzing and determining network traffic to identify potential attacks. This thesis proposes a novel approach to address the issue of low detection accuracy and high false positive rate caused by imbalanced high-dimensional network traffic data and different attack categories. The proposed approach combines Convolutional Neural Network (CNN) and Bidirectional Gated Recurrent Unit (BiGRU) to form a model for anomaly traffic detection. For class-imbalanced data, balanced processing is performed by using an improved synthetic minority oversampling technique ( SMOTE ), namely borderline-SMOTE, and an undersampling clustering technique based on Gaussian mixture model ( GMM ). Subsequently, a one-dimensional CNN network is utilized to extract local features from the time series, and BiGRU can better extract the time series features in the data. Finally, the model is evaluated on the UNSW-NB15 dataset, achieving an accuracy of 98.12% and a false positive rate of 1.28%. The experimental results demonstrate that the model outperforms other classic machine learning and deep learning models by improving the recognition rate for minority attacks and achieving higher detection accuracy.

Key words: Traffic anomaly detection, Imbalance processing, Feature selection, Convolutional neural network, Bidirectional gated recurrent unit

中图分类号: