journal article·2023-10-24Open access

CBF-IDS: Addressing Class Imbalance Using CNN-BiLSTM with Focal Loss in Network Intrusion Detection System

Haonan Peng, Chunming Wu, Yanfeng Xiao

Applied Sciences· Volume 13· Issue 21

Abstract

The importance of network security has become increasingly prominent due to the rapid development of network technology. Network intrusion detection systems (NIDSs) play a crucial role in safeguarding networks from malicious attacks and intrusions. However, the issue of class imbalance in the dataset presents a significant challenge to NIDSs. In order to address this concern, this paper proposes a new NIDS called CBF-IDS, which combines convolutional neural networks (CNNs) and bidirectional long short-term memory networks (BiLSTMs) while employing the focal loss function. By utilizing CBF-IDS, spatial and temporal features can be extracted from network traffic. Moreover, during model training, CBF-IDS applies the focal loss function to give more weight to minority class samples, thereby mitigating the impact of class imbalance on model performance. In order to evaluate the effectiveness of CBF-IDS, experiments were conducted on three benchmark datasets: NSL-KDD, UNSW-NB15, and CIC-IDS2017. The experimental results demonstrate that CBF-IDS outperforms other classification models, achieving superior detection performance.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Network Security and Intrusion Detection · Anomaly Detection Techniques and Applications · Internet Traffic Analysis and Secure E-voting

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

College of Computer Science and Technology, Zhejiang University, Hangzhou 310027, China

China Mobile Group Huzhou Co., Ltd., Huzhou 313098, China

Funding

“Pioneer” and “Leading Goose” R&D Program of Zhejiang

References (64)

Show source-provided references
1. Intrusion detection system: A comprehensive review10.1016/j.jnca.2012.09.004 ↗
2. A cybersecurity framework to identify malicious edge device in fog computing and cloud-of-things environments10.1016/j.cose.2017.08.016 ↗
3. Costante, E., Fauri, D., Etalle, S., Den Hartog, J., and Zannone, N. (2016, January 22–26). A hybrid framework for data loss prevention and detection. Proceedings of the 2016 Security and Privacy Workshops (SPW), San Jose, CA, USA.10.1109/SPW.2016.24 ↗
4. Suthishni, D.N.P., and Kumar, K.S. (2022, January 23–25). A Review on Machine Learning based Security Approaches in Intrusion Detection System. Proceedings of the 2022 9th International Conference on Computing for Sustainable Global Development (INDIACom), New Delhi, India.10.23919/INDIACom54597.2022.9763261 ↗
5. Two-tier network anomaly detection model: A machine learning approach10.1007/s10844-015-0388-x ↗
6. DL-IDS: Extracting features using CNN-LSTM hybrid network for intrusion detection system10.1155/2020/8890306 ↗
7. CNN and RNN based payload classification methods for attack detection10.1016/j.knosys.2018.08.036 ↗
8. Liu, H., and Lang, B. (2019). Machine learning and deep learning methods for intrusion detection systems: A survey. Appl. Sci., 9.10.3390/app9204396 ↗
9. Towards secure intrusion detection systems using deep learning techniques: Comprehensive analysis and review10.1016/j.jnca.2021.103111 ↗
10. Deep learning for cyber security intrusion detection: Approaches, datasets, and comparative study
11. Deep learning methods in network intrusion detection: A survey and an objective comparison10.1016/j.jnca.2020.102767 ↗
12. A survey on data-driven network intrusion detection10.1145/3472753 ↗
13. Spelmen, V.S., and Porkodi, R. (2018, January 1–3). A review on handling imbalanced data. Proceedings of the 2018 International Conference on Current Trends towards Converging Technologies (ICCTCT), Coimbatore, India.10.1109/ICCTCT.2018.8551020 ↗
14. Handling imbalanced datasets: A review
15. Performance analysis of cost-sensitive learning methods with application to imbalanced medical data10.1016/j.imu.2021.100690 ↗
16. A cost-sensitive deep learning-based approach for network traffic classification10.1109/TNSM.2021.3112283 ↗
17. A new intrusion detection system based on KNN classification algorithm in wireless sensor network
18. An improved intrusion detection algorithm based on GA and SVM10.1109/ACCESS.2018.2810198 ↗
19. A novel multi-module integrated intrusion detection system for high-dimensional imbalanced data10.1007/s10489-022-03361-2 ↗
20. Ding, Y., and Zhai, Y. (2018, January 8–10). Intrusion detection system for NSL-KDD dataset using convolutional neural networks. Proceedings of the 2nd International Conference on Computer Science and Artificial Intelligence (CSAI), Shenzhen, China.10.1145/3297156.3297230 ↗
21. Zhang, B., Yu, Y., and Li, J. (2018, January 20–24). Network intrusion detection based on stacked sparse autoencoder and binary tree ensemble method. Proceedings of the IEEE International Conference on Communications Workshops (ICC Workshops), Kansas City, MO, USA.10.1109/ICCW.2018.8403759 ↗
22. Deep learning approaches for anomaly-based intrusion detection systems: A survey, taxonomy, and open issues10.1016/j.knosys.2019.105124 ↗
23. Khan, R.U., Zhang, X., Alazab, M., and Kumar, R. (2019, January 8–9). An improved convolutional neural network model for intrusion detection in networks. Proceedings of the 2019 Cybersecurity and Cyberforensics Conference (CCC), Melbourne, VIC, Australia.10.1109/CCC.2019.000-6 ↗
24. Alsyaibani, O.M.A., Utami, E., and Hartanto, A.D. (2021, January 25–26). An Intrusion Detection System Model Based on Bidirectional LSTM. Proceedings of the 2021 3rd International Conference on Cybernetics and Intelligent System (ICORIS), Makasar, Indonesia.10.1109/ICORIS52787.2021.9649612 ↗
25. Arief, M., and Supangkat, S.H. (2022, January 10–11). Comparison of CNN and DNN Performance on Intrusion Detection System. Proceedings of the 9th International Conference on ICT for Smart Society (ICISS), Bandung, Indonesia.10.1109/ICISS55894.2022.9915157 ↗
26. Decision Tree with Pearson Correlation-based Recursive Feature Elimination Model for Attack Detection in IoT Environment10.5755/j01.itc.51.4.31818 ↗
27. Alzaqebah, A., Aljarah, I., Al-Kadi, O., and Damaševičius, R. (2022). A modified grey wolf optimization algorithm for an intrusion detection system. Mathematics, 10.10.3390/math10060999 ↗
28. Alharbi, A., Alosaimi, W., Alyami, H., Rauf, H.T., and Damaševičius, R. (2021). Botnet attack detection using local global best bat algorithm for industrial internet of things. Electronics, 10.10.3390/electronics10111341 ↗
29. Toldinas, J., Venčkauskas, A., Damaševičius, R., Grigaliūnas, Š., Morkevičius, N., and Baranauskas, E. (2021). A novel approach for network intrusion detection using multistage deep learning image recognition. Electronics, 10.10.3390/electronics10151854 ↗
30. Chen, Z., Zhou, L., and Yu, W. (2021, January 18–20). ADASYN- Random Forest Based Intrusion Detection Model. Proceedings of the 4th International Conference on Signal Processing and Machine Learning, Beijing, China.10.1145/3483207.3483232 ↗
31. He, H., Bai, Y., Garcia, E.A., and Li, S. (2008, January 1–8). ADASYN: Adaptive synthetic sampling approach for imbalanced learning. Proceedings of the IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence), Hong Kong.
32. Addressing the class imbalance problem in network intrusion detection systems using data resampling and deep learning10.1007/s11227-023-05073-x ↗
33. GAN-based imbalanced data intrusion detection system10.1007/s00779-019-01332-y ↗
34. Liu, X.Y., and Zhou, Z.H. (2006, January 18–22). The influence of class imbalance on cost-sensitive learning: An empirical study. Proceedings of the Sixth International Conference on Data Mining (ICDM’06), Hong Kong, China.10.1109/ICDM.2006.158 ↗
35. A cost-sensitive deep belief network for imbalanced classification10.1109/TNNLS.2018.2832648 ↗
36. Lin, T.Y., Goyal, P., Girshick, R., He, K., and Dollár, P. (2017, January 22–29). Focal loss for dense object detection. Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.324 ↗
37. Tavallaee, M., Bagheri, E., Lu, W., and Ghorbani, A.A. (2009, January 8–10). A detailed analysis of the KDD CUP 99 data set. Proceedings of the IEEE Symposium on Computational Intelligence for Security and Defense Applications, Ottawa, ON, Canada.10.1109/CISDA.2009.5356528 ↗
38. Moustafa, N., and Slay, J. (2015, January 10–12). UNSW-NB15: A comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set). Proceedings of the Military Communications and Information Systems Conference (MilCIS), Canberra, ACT, Australia.10.1109/MilCIS.2015.7348942 ↗
39. Sharafaldin, I., Lashkari, A.H., and Ghorbani, A.A. (2018, January 22–24). Toward generating a new intrusion detection dataset and intrusion traffic characterization. Proceedings of the 4th International Conference on Information Systems Security and Privacy (ICISSP 2018), Funchal, Portugal.10.5220/0006639801080116 ↗
40. Singh, A., and Jang-Jaccard, J. (2022). Autoencoder-based Unsupervised Intrusion Detection using Multi-Scale Convolutional Recurrent Networks. arXiv.
41. Tran, N.N., Sarker, R., and Hu, J. (2017, January 13–15). An approach for host-based intrusion detection system design using convolutional neural network. Proceedings of the International Conference, Monami 2017, Melbourne, Australia.
42. MSAR-DefogNet: Lightweight cloud removal network for high resolution remote sensing images based on multi scale convolution10.1049/ipr2.12224 ↗
43. An intrusion detection model based on feature reduction and convolutional neural networks10.1109/ACCESS.2019.2904620 ↗
44. Azizjon, M., Jumabek, A., and Kim, W. (2020, January 19–21). 1D CNN based network intrusion detection with normalization on imbalanced data. Proceedings of the International Conference on Artificial Intelligence in Information and Communication (ICAIIC), Fukuoka, Japan.10.1109/ICAIIC48513.2020.9064976 ↗
45. Nugaliyadde, A., Sohel, F., Wong, K.W., and Xie, H. (2019, January 14–19). Language modeling through Long-Term memory network. Proceedings of the 2019 International Joint Conference on Neural Networks (IJCNN), Budapest, Hungary.10.1109/IJCNN.2019.8851909 ↗
46. Long short-term memory10.1162/neco.1997.9.8.1735 ↗
47. Rodriguez, A., and Okamura, K. (2019, January 15–19). Generating real time cyber situational awareness information through social media data mining. Proceedings of the 2019 IEEE 43rd annual computer software and applications conference (COMPSAC), Milwaukee, WI, USA.10.1109/COMPSAC.2019.10256 ↗
48. A holistic and proactive approach to forecasting cyber threats10.1038/s41598-023-35198-1 ↗
49. Towards Machine Learning Based Intrusion Detection in IoT Networks
50. Dropout: A simple way to prevent neural networks from overfitting
51. BAT: Deep learning methods on network intrusion detection using NSL-KDD dataset10.1109/ACCESS.2020.2972627 ↗
52. Learning from imbalanced data10.1109/TKDE.2008.239 ↗
53. How to identify early defaults in online lending: A cost-sensitive multi-layer learning framework10.1016/j.knosys.2021.106963 ↗
54. Network intrusion detection using machine learning approaches: Addressing data imbalance10.1049/cps2.12013 ↗
55. A hybrid deep learning approach for intrusion detection in IoT networks10.4316/AECE.2022.01001 ↗
56. Kaur, G., Lashkari, A.H., and Rahali, A. (2020, January 17–22). Intrusion traffic detection and characterization using deep image learning. Proceedings of the 2020 IEEE Intl Conf on Dependable, Autonomic and Secure Computing, Intl Conf on Pervasive Intelligence and Computing, Intl Conf on Cloud and Big Data Computing, Intl Conf on Cyber Science and Technology Congress (DASC/PiCom/CBDCom/CyberSciTech), Calgary, AB, Canada.10.1109/DASC-PICom-CBDCom-CyberSciTech49142.2020.00025 ↗
57. A bidirectional LSTM deep learning approach for intrusion detection10.1016/j.eswa.2021.115524 ↗
58. Siami-Namini, S., Tavakoli, N., and Namin, A.S. (2019, January 9–12). The performance of LSTM and BiLSTM in forecasting time series. Proceedings of the 2019 IEEE International conference on big data (Big Data), Los Angeles, CA, USA.10.1109/BigData47090.2019.9005997 ↗
59. Fooling intrusion detection systems using adversarially autoencoder10.1016/j.dcan.2020.11.001 ↗
60. Haque, S., El-Moussa, F., Komninos, N., and Muttukrishnan, R. (2023). A Systematic Review of Data-Driven Attack Detection Trends in IoT. Sensors, 23.10.3390/s23167191 ↗
61. STL-HDL: A new hybrid network intrusion detection system for imbalanced dataset on big data environment10.1016/j.cose.2021.102435 ↗
62. A hybrid CNN+ LSTMbased intrusion detection system for industrial IoT networks
63. Khan, M.A. (2021). HCRNNIDS: Hybrid convolutional recurrent neural network-based network intrusion detection system. Processes, 9.10.3390/pr9050834 ↗
64. IMPACT: Impersonation attack detection via edge computing using deep autoencoder and feature abstraction10.1109/ACCESS.2020.2985089 ↗