基于不平衡数据的网络攻击检测模型优化研究
Research on Optimization of Network Attack Detection Model Based on Imbalanced Data
摘要: 入侵检测系统(IDS)在应对复杂网络攻击时面临数据类别不平衡的问题,传统分类算法难以有效识别少数类攻击。为解决这一挑战,本研究提出了一种基于SMOTE和随机森林的网络攻击检测方法。首先,对IDS2017数据集进行预处理,通过SMOTE技术平衡数据集中少数类样本,解决类别不平衡问题。然后,使用随机搜索(Randomized Search)对随机森林模型进行超参数优化,以提升模型的分类性能。实验结果显示,经过SMOTE处理的模型在少数类攻击检测中的准确率显著提升,同时整体分类效果得到改善。与未平衡数据集相比,优化后的模型在检测少数类攻击时表现出色,有效提升了网络攻击检测的可靠性。
Abstract: Intrusion detection systems (IDS) face the problem of data category imbalance when responding to complex network attacks. Traditional classification algorithms are difficult to effectively identify minority attacks. To address this challenge, this study proposes a network attack detection method based on SMOTE and random forest. First, the IDS 2017 data set is pre-processed, and SMOTE technology is used to balance the minority class samples in the data set to solve the problem of class imbalance. Then, use Randomized Search to optimize the hyperparameters of the random forest model to improve the classification performance of the model. Experimental results show that the accuracy of the SMOTE-processed model in minority attack detection is significantly improved, and the overall classification effect is improved. Compared with unbalanced data sets, the optimized model performs well in detecting minority attacks, effectively improving the reliability of network attack detection.
文章引用:杨思瑶, 刘微. 基于不平衡数据的网络攻击检测模型优化研究[J]. 计算机科学与应用, 2024, 14(11): 1-10. https://doi.org/10.12677/csa.2024.1411210

参考文献

[1] 张婷婷. 基于信息熵的网络入侵检测系统设计[J]. 数字通信世界, 2024(8): 92-94.
[2] 谭书香. 基于深度学习的疾控中心网络入侵检测系统研究[J]. 网络安全和信息化, 2024(8): 47-49.
[3] 张杭生, 刘吉强, 梁杰, 等. 基于博弈论的入侵检测与响应优化综述[J]. 信息安全学报, 2024, 9(4): 163-179.
[4] 徐影, 曲丹秋. 基于决策树分类算法的计算机网络入侵检测系统设计与实现[J]. 信息记录材料, 2024, 25(6): 137-139.
[5] Alsaffar, A.M., Nouri-Baygi, M. and Zolbanin, H.M. (2024) Shielding Networks: Enhancing Intrusion Detection with Hybrid Feature Selection and Stack Ensemble Learning. Journal of Big Data, 11, Article No. 133. [Google Scholar] [CrossRef
[6] Bhatt, R. and Indra, G. (2024) Detecting the Undetectable: GAN-Based Strategies for Network Intrusion Detection. International Journal of Information Technology.
[7] Yao, J., Jia, X., Zhou, W., Zhu, Y., Chen, X., Zhan, W., et al. (2024) Predicting Axillary Response to Neoadjuvant Chemotherapy Using Peritumoral and Intratumoral Ultrasound Radiomics in Breast Cancer Subtypes. iScience, 27, Article ID: 110716. [Google Scholar] [CrossRef] [PubMed]
[8] Alshinwan, M., Khashan, O.A., Khader, M., Tarawneh, O., Shdefat, A., Mostafa, N., et al. (2024) Enhanced Prairie Dog Optimization with Differential Evolution for Solving Engineering Design Problems and Network Intrusion Detection System. Heliyon, 10, e36663. [Google Scholar] [CrossRef] [PubMed]
[9] Hizal, S., Cavusoglu, U. and Akgun, D. (2024) A Novel Deep Learning-Based Intrusion Detection System for IoT Ddos Security. Internet of Things, 28, Article ID: 101336. [Google Scholar] [CrossRef
[10] Dinca, M., Popescu, D., Ichim, L., Angelescu, N. and Pinotti, C.M. (2024) Decision Fusion-Based System to Detect Two Invasive Stink Bugs in Orchards. Smart Agricultural Technology, 9, Article ID: 100548. [Google Scholar] [CrossRef
[11] Jauk, S., Kramer, D., Sumerauer, S., Veeranki, S.P.K., Schrempf, M. and Puchwein, P. (2024) Machine Learning-Based Delirium Prediction in Surgical In-Patients: A Prospective Validation Study. JAMIA Open, 7, ooae091. [Google Scholar] [CrossRef] [PubMed]
[12] Alkharisi, M.K., Dahish, H.A. and Youssf, O. (2024) Prediction Models for the Hybrid Effect of Nano Materials on Radiation Shielding Properties of Concrete Exposed to Elevated Temperatures. Case Studies in Construction Materials, 21, e03750. [Google Scholar] [CrossRef
[13] Simpson, S., Zhong, W., Mehdipour, S., Armaneous, M., Sathish, V., Walker, N., et al. (2024) Classifying High-Risk Patients for Persistent Opioid Use after Major Spine Surgery: A Machine-Learning Approach. Anesthesia & Analgesia, 139, 690-699. [Google Scholar] [CrossRef] [PubMed]
[14] Aqil, A.G., Adawi, S. and Huleihel, M. (2024) Early and Swift Identification of Fungal-Infection Using Infrared Spectroscopy. Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy, 325, Article ID: 125101.
[15] 赵忠凯, 王祝先, 韩书新, 等. 随机森林在气象网络入侵检测中的应用[J]. 自动化技术与应用, 2024, 43(7): 129-133.
[16] Maçãs, C., Campos, J.R., Lourenço, N. and Machado, P. (2024) Visualisation of Random Forest Classification. Information Visualization, 23, 312-327. [Google Scholar] [CrossRef