journal article·2025-06-10Open access

Image-Based Malicious Network Traffic Detection Framework: Data-Centric Approach

Doo-Seop Choi, Taeguen Kim, Boojoong Kang, Eul Gyu Im

Applied Sciences· Volume 15· Issue 12

Abstract

With the advancement of network communication technology and Internet of Everything (IoE) technology, which connects all edge devices to the internet, the network traffic generated in various platform environments is rapidly increasing. The increase in network traffic makes it more difficult for the detection system to analyze and detect malicious network traffic generated by malware or intruders. Additionally, processing high-dimensional network traffic data requires substantial computational resources, limiting real-time detection capabilities in practical deployments. Artificial intelligence (AI) algorithms have been widely used to detect malicious traffic, but most previous work focused on improving accuracy with various AI algorithms. Many existing methods, in pursuit of high accuracy, directly utilize the extensive raw features inherent in network traffic. This often leads to increased computational overhead and heightened complexity in detection models, potentially degrading overall system performance and efficiency. Furthermore, high-dimensional data often suffers from the curse of dimensionality, where the sparsity of data in high-dimensional space leads to overfitting, poor generalization, and increased computational complexity. This paper focused on feature engineering instead of AI algorithm selections, presenting an approach that uniquely balances detection accuracy with computational efficiency through strategic dimensionality reduction. For feature engineering, two jobs were performed: feature representations and feature analysis and selection. With effective feature engineering, we can reduce system resource consumption in the training period while maintaining high detection accuracy. We implemented a malicious network traffic detection framework based on Convolutional Neural Network (CNN) with our feature engineering techniques. Unlike previous approaches that use one-hot encoding, which increases dimensionality, our method employs label encoding and information gain to preserve critical information while reducing feature dimensions. The performance of the implemented framework was evaluated using the NSL-KDD dataset, which is the most widely used for intrusion detection system (IDS) performance evaluation. As a result of the evaluation, our framework maintained high classification accuracy while improving model training speed by approximately 17.47% and testing speed by approximately 19.44%. This demonstrates our approach’s ability to achieve a balanced performance, enhancing computational efficiency without sacrificing detection accuracy—a critical challenge in intrusion detection systems. With the reduced features, we achieved classification results of a precision of 0.9875, a recall of 0.9930, an F1-score of 0.9902, and an accuracy of 99.06%, with a false positive rate of 0.65%.
Source: crossref · Quality: baseline

Research context

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

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

Affiliations

Department of Computer Science, Hanyang University, Seoul 04763, Republic of Korea

Department of AI Cyber Security, Korea University, Sejong 30019, Republic of Korea

School of Electronics and Computer Science, University of Southampton, Southampton SO17 1BJ, UK

Funding

Institute of Information & Communications Technology Planning & Evaluation (IITP) · National Research Foundation of Korea (NRF)

References (92)

Show source-provided references
1. Imperva, Inc. (2023, July 01). Available online: https://www.imperva.com/resources/resource-library/reports/2023-imperva-bad-bot-report/.
2. Vinolia, A., Kanya, N., and Rajavarman, V. (2023, January 23–25). Machine Learning and Deep Learning based Intrusion Detection in Cloud Environment: A Review. Proceedings of the 2023 5th International Conference on Smart Systems and Inventive Technology (ICSSIT), Tirunelveli, India.10.1109/ICSSIT55814.2023.10060868 ↗
3. Sriram, S., Vinayakumar, R., Alazab, M., and Soman, K. (2020, January 6–9). Network flow based IoT botnet attack detection using deep learning. Proceedings of the IEEE INFOCOM 2020-IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), Toronto, ON, Canada.10.1109/INFOCOMWKSHPS50562.2020.9162668 ↗
4. Scalable machine learning-based intrusion detection system for IoT-enabled smart cities10.1016/j.scs.2020.102324 ↗
5. Replay attack detection in smart cities using deep learning10.1109/ACCESS.2020.3012411 ↗
6. Intrusion detection for cybersecurity of smart meters10.1109/TSG.2020.3010230 ↗
7. Taghavinejad, S.M., Taghavinejad, M., Shahmiri, L., Zavvar, M., and Zavvar, M.H. (2020, January 22–23). Intrusion detection in IoT-based smart grid using hybrid decision tree. Proceedings of the 2020 6th International Conference on Web Research (ICWR), Tehran, Iran.10.1109/ICWR49608.2020.9122320 ↗
8. Balaji, R., Deepajothi, S., Prabaharan, G., Daniya, T., Karthikeyan, P., and Velliangiri, S. (2022, January 7–9). Survey on intrusions detection system using deep learning in iot environment. Proceedings of the 2022 International Conference on Sustainable Computing and Data Communication Systems (ICSCDS), Erode, India.
9. Data-driven intrusion detection for intelligent internet of vehicles: A deep convolutional neural network-based method10.1109/TNSE.2020.2990984 ↗
10. Swathi, S., and Lakshmeeswari, G. (2022, January 4–6). Network Traffic Image Dataset Generation from PCAP files for Evaluating Performance of Machine Learning Models. Proceedings of the 2022 International Conference on Engineering & MIS (ICEMIS), Istanbul, Turkey.10.1109/ICEMIS56295.2022.9914007 ↗
11. Bendiab, G., Shiaeles, S., Alruban, A., and Kolokotronis, N. (July, January 29). IoT malware network traffic classification using visual representation and deep learning. Proceedings of the 2020 6th IEEE Conference on Network Softwarization (NetSoft), Ghent, Belgium.10.1109/NetSoft48620.2020.9165381 ↗
12. Mohammadpour, L., Ling, T.C., Liew, C.S., and Aryanfar, A. (2022). A survey of CNN-based network intrusion detection. Appl. Sci., 12.10.3390/app12168162 ↗
13. Zhang, X., Ran, J., and Mi, J. (2019, January 19–20). An intrusion detection system based on convolutional neural network for imbalanced network traffic. Proceedings of the 2019 IEEE 7th International Conference on Computer Science and Network Technology (ICCSNT), Dalian, China.10.1109/ICCSNT47585.2019.8962490 ↗
14. Robust detection for network intrusion of industrial IoT based on multi-CNN fusion10.1016/j.measurement.2019.107450 ↗
15. Kim, J., Kim, J., Kim, H., Shim, M., and Choi, E. (2020). CNN-based network intrusion detection against denial-of-service attacks. Electronics, 9.10.3390/electronics9060916 ↗
16. A network intrusion detection method based on deep multi-scale convolutional neural network10.1007/s10776-020-00495-3 ↗
17. A convolutional neural network for improved anomaly-based network intrusion detection10.1089/big.2020.0263 ↗
18. Network intrusion detection technology based on convolutional neural network and BiGRU10.1155/2022/1942847 ↗
19. A novel multi-module integrated intrusion detection system for high-dimensional imbalanced data10.1007/s10489-022-03361-2 ↗
20. TL-CNN-IDS: Transfer learning-based intrusion detection system using convolutional neural network10.1007/s11227-023-05347-4 ↗
21. Jing, D., and Chen, H.B. (November, January 29). SVM based network intrusion detection for the UNSW-NB15 dataset. Proceedings of the 2019 IEEE 13th International Conference on ASIC (ASICON), Chongqing, China.10.1109/ASICON47005.2019.8983598 ↗
22. Reddy, A.V.S., Reddy, B.P., Sujihelen, L., Mary, A.V.A., Jesudoss, A., and Jeyanthi, P. (2022, January 7–9). Intrusion detection system in network using decision tree. Proceedings of the 2022 International Conference on Sustainable Computing and Data Communication Systems (ICSCDS), Erode, India.10.1109/ICSCDS53736.2022.9760891 ↗
23. A novel genetic Algorithm-XGBoost based intrusion detection method
24. Rai, A. (2020, January 15–17). Optimizing a new intrusion detection system using ensemble methods and deep neural network. Proceedings of the 2020 4th International Conference on Trends in Electronics and Informatics (ICOEI) (48184), Tirunelveli, India.10.1109/ICOEI48184.2020.9143028 ↗
25. A hybrid intrusion detection system based on scalable K-means+ random forest and deep learning10.1109/ACCESS.2021.3082147 ↗
26. Ahakonye, L.A.C., Nwakanma, C.I., Lee, J.M., and Kim, D.S. (June, January 28). B-DT: A Bagged-Decision Tree Detection and Characterization of the IoT-SCADA Network Communication Traffic. Proceedings of the 2023 IEEE International Conference on Communications Workshops (ICC Workshops), Rome, Italy.10.1109/ICCWorkshops57953.2023.10283654 ↗
27. Draper-Gil, G., Lashkari, A.H., Mamun, M.S.I., and Ghorbani, A.A. (2016, January 19–21). Characterization of encrypted and vpn traffic using time-related. Proceedings of the 2nd International Conference on Information Systems Security and Privacy (ICISSP), Rome, Italy.10.5220/0005740704070414 ↗
28. Characterization of tor traffic using time based features10.5220/0006105602530262 ↗
29. A New Random Forest and Support Vector Machine-based Intrusion Detection Model in Networks10.1007/s40009-023-01223-0 ↗
30. HC-DTTSVM: A Network Intrusion Detection Method Based on Decision Tree Twin Support Vector Machine and Hierarchical Clustering10.1109/ACCESS.2023.3251354 ↗
31. SMOTE: Synthetic minority over-sampling technique10.1613/jair.953 ↗
32. 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), Madeira, Portugal.10.5220/0006639801080116 ↗
33. Combining convolution neural network and bidirectional gated recurrent unit for sentence semantic classification10.1109/ACCESS.2018.2882878 ↗
34. He, H., Bai, Y., Garcia, E., and Li, S.A. (2008, January 1–6). Adaptive synthetic sampling approach for imbalanced learning, IEEE international joint conference on neural networks. Proceedings of the IEEE World Congress on Computational Intelligence, Hong Kong, China.
35. Guan, H. (2020). Research on Classification Methods for Complex Distribution Features of Unbalanced Data, Harbin Institute of Technology.
36. Gaussian mixture models
37. Arjovsky, M., Chintala, S., and Bottou, L. (2017, January 7–9). Wasserstein generative adversarial networks. Proceedings of the International Conference on Machine Learning, Singapore.
38. Deep learning in neural networks: An overview10.1016/j.neunet.2014.09.003 ↗
39. Farahnakian, F., and Heikkonen, J. (2018, January 11–14). A deep auto-encoder based approach for intrusion detection system. Proceedings of the 2018 20th International Conference on Advanced Communication Technology (ICACT), Chuncheon, Republic of Korea.10.23919/ICACT.2018.8323687 ↗
40. A Survey on Transfer Learning10.1109/TKDE.2009.191 ↗
41. Yu, L., and Liu, H. (2003, January 13–19). Feature selection for high-dimensional data: A fast correlation-based filter solution. Proceedings of the 20th International Conference on Machine Learning (ICML-03), Washington, DC, USA.
42. Simonyan, K., and Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv.
43. Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., Erhan, D., Vanhoucke, V., and Rabinovich, A. (2015, January 11–15). Going Deeper with Convolutions. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA.10.1109/CVPR.2015.7298594 ↗
44. Chollet, F. (2017, January 21–26). Xception: Deep learning with depthwise separable convolutions. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.195 ↗
45. Ozaki, Y., Tanigaki, Y., Watanabe, S., and Onishi, M. (2020, January 8–12). Multiobjective tree-structured parzen estimator for computationally expensive optimization problems. Proceedings of the 2020 Genetic and Evolutionary Computation Conference, Cancun, Mexico.10.1145/3377930.3389817 ↗
46. Deep learning-based framework for the detection of cyberattack using feature engineering10.1155/2021/6129210 ↗
47. Meliboev, A., Alikhanov, J., and Kim, W. (2022). Performance evaluation of deep learning based network intrusion detection system across multiple balanced and imbalanced datasets. Electronics, 11.10.3390/electronics11040515 ↗
48. Chung, J., Gulcehre, C., Cho, K., and Bengio, Y. (2014). Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv.
49. Long short-term memory10.1162/neco.1997.9.8.1735 ↗
50. An Enhanced Intrusion Detection System for IoT Networks Based on Deep Learning and Knowledge Graph10.1155/2022/3317048 ↗
51. Zhou, P., Shi, W., Tian, J., Qi, Z., Li, B., Hao, H., and Xu, B. (2016, January 7–12). Attention-based bidirectional long short-term memory networks for relation classification. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Berlin, Germany.10.18653/v1/P16-2034 ↗
52. Knowledge graph completion: A review10.1109/ACCESS.2020.3030076 ↗
53. Nids-cnnlstm: Network intrusion detection classification model based on deep learning10.1109/ACCESS.2023.3254915 ↗
54. Standard Latent Space Dimension for Network Intrusion Detection Systems Datasets10.1109/ACCESS.2023.3283567 ↗
55. Liu, G., Zhang, T., Dai, H., Cheng, X., and Yang, D. (2025). ResInceptNet-SA: A Network Traffic Intrusion Detection Model Fusing Feature Selection and Balanced Datasets. Appl. Sci., 15.10.3390/app15020956 ↗
56. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
57. Attention is all you need
58. Obeidat, I., Eleisah, W., and Magableh, K. (2022, January 25–27). Dimensionality reduction and supervised learning for intrusion detection. Proceedings of the 2022 8th International Conference on Information Management (ICIM), Cambridge, UK.10.1109/ICIM56520.2022.00023 ↗
59. Mishra, A., Cheng, A.M., and Zhang, Y. (2020, January 9–11). Intrusion detection using principal component analysis and support vector machines. Proceedings of the 2020 IEEE 16th International Conference on Control & Automation (ICCA), Singapore.10.1109/ICCA51439.2020.9264568 ↗
60. Large-scale and robust intrusion detection model combining improved deep belief network with feature-weighted SVM10.1109/ACCESS.2020.2994947 ↗
61. Abdulhammed, R., Musafer, H., Alessa, A., Faezipour, M., and Abuzneid, A. (2019). Features dimensionality reduction approaches for machine learning based network intrusion detection. Electronics, 8.10.3390/electronics8030322 ↗
62. LNNLS-KH: A Feature Selection Method for Network Intrusion Detection
63. Krill herd: A new bio-inspired optimization algorithm10.1016/j.cnsns.2012.05.010 ↗
64. Ant colony optimization10.1109/MCI.2006.329691 ↗
65. Nguyen, H.B., Xue, B., Andreae, P., and Zhang, M. (2017, January 5–8). Particle swarm optimisation with genetic operators for feature selection. Proceedings of the 2017 IEEE Congress on Evolutionary Computation (CEC), San Sebastian, Spain.10.1109/CEC.2017.7969325 ↗
66. Awad, M., and Fraihat, S. (2023). Recursive feature elimination with cross-validation with decision tree: Feature selection method for machine learning-based intrusion detection systems. J. Sens. Actuator Netw., 12.10.3390/jsan12050067 ↗
67. Gene selection for cancer classification using support vector machines10.1023/A:1012487302797 ↗
68. Chen, X., Liu, M., Wang, Z., and Wang, Y. (2024). Explainable deep learning-based feature selection and intrusion detection method on the internet of things. Sensors, 24.10.3390/s24165223 ↗
69. 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 2009 IEEE Symposium on Computational Intelligence for Security and Defense Applications, Ottawa, ON, Canada.10.1109/CISDA.2009.5356528 ↗
70. Kayacik, H.G., Zincir-Heywood, A.N., and Heywood, M.I. (2005, January 12–14). Selecting features for intrusion detection: A feature relevance analysis on KDD 99 intrusion detection datasets. Proceedings of the Third Annual Conference on Privacy, Security and Trust, St. Andrews, NB, Canada.10.4018/978-1-59140-561-0.ch071 ↗
71. Visualizing data using t-SNE
72. A survey on feature selection methods10.1016/j.compeleceng.2013.11.024 ↗
73. Building an intrusion detection system using a filter-based feature selection algorithm10.1109/TC.2016.2519914 ↗
74. CICIDS-2017 dataset feature analysis with information gain for anomaly detection10.1109/ACCESS.2020.3009843 ↗
75. Dynamic programming10.1126/science.153.3731.34 ↗
76. Zhang, Y., Ren, X., and Zhang, J. (2019, January 14–19). Intrusion detection method based on information gain and ReliefF feature selection. Proceedings of the 2019 International Joint Conference on Neural Networks (IJCNN), Budapest, Hungary.10.1109/IJCNN.2019.8851756 ↗
77. Entropy: A new definition and its applications10.1109/21.120079 ↗
78. (2023, July 05). Weka. Available online: https://weka.sourceforge.io/doc.dev/weka/attributeSelection/InfoGainAttributeEval.html.
79. Imagenet classification with deep convolutional neural networks
80. (2023, July 10). Pandas-Corr. Available online: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.corr.html.
81. Sugianela, Y., and Ahmad, T. (2020, January 20). Pearson correlation attribute evaluation-based feature selection for intrusion detection system. Proceedings of the 2020 International Conference on Smart Technology and Applications (ICoSTA), Surabaya, Indonesia.10.1109/ICoSTA48221.2020.1570613717 ↗
82. Feature selection for high-dimensional data10.1007/s13748-015-0080-y ↗
83. Gradient-based learning applied to document recognition10.1109/5.726791 ↗
84. Tauscher, Z., Jiang, Y., Zhang, K., Wang, J., and Song, H. (2021, January 28–30). Learning to Detect: A Data-driven Approach for Network Intrusion Detection. Proceedings of the 2021 IEEE International Performance, Computing, and Communications Conference (IPCCC), Austin, TX, USA.10.1109/IPCCC51483.2021.9679415 ↗
85. Nair, V., and Hinton, G.E. (2010, January 21–24). Rectified linear units improve restricted boltzmann machines. Proceedings of the 27th International Conference on Machine Learning (ICML-10), Haifa, Israel.
86. Kingma, D.P., and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv.
87. (2023, July 14). TensorFlow. Available online: https://www.tensorflow.org.
88. (2025, June 08). Released Our Code. Available online: https://github.com/choidslab/image-based-ids.
89. Glorot, X., and Bengio, Y. (2010, January 13–15). Understanding the difficulty of training deep feedforward neural networks. Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, Chia, Italy. JMLR Workshop and Conference Proceedings.
90. He, K., Zhang, X., Ren, S., and Sun, J. (2015, January 7–13). Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile.10.1109/ICCV.2015.123 ↗
91. Multidimensional scaling by optimizing goodness of fit to a nonmetric hypothesis10.1007/BF02289565 ↗
92. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020). An image is worth 16x16 words: Transformers for image recognition at scale. arXiv.