Performance Evaluation of k-means using CPU and GPU with oneAPI and OpenMP for Network Intrusion Detection
Resumo
This article describes the application of the k-means algorithm for network intrusion detection, evaluating both sequential and parallel CPU and GPU versions using oneAPI and OpenMP. Based on a network intrusion dataset (CIC-IDS2017), which contains millions of instances of modern attacks, the experiments showed that the parallel versions achieved significant performance gains over the sequential version. The good scalability of the CPU solutions and GPU acceleration stand out, with oneAPI performing slightly better than OpenMP. The results reinforce that parallelization is essential for applying k-means in contexts where the data volume is large.
Referências
J. Bhimani, M. Leeser, and N. Mi. Accelerating k-means clustering with parallel implementations and gpu computing. In 2015 IEEE High Performance Extreme Computing Conference (HPEC), pages 1–6, 2015. DOI: 10.1109/HPEC.2015.7322467.
Codeplay Software Ltd. / Intel. oneapi for nvidia® gpus. [link], 2025. Access on August 21, 2025.
J. MacQueen. Multivariate observations. In Proceedings ofthe 5th Berkeley Symposium on Mathematical Statistics and Probability, volume 1, pages 281–297, 1967.
oneAPI. oneapi programming guide. [link], 2025. Access on August 21, 2025.
OpenMP. The openmp api specification. [link], 2025. Access on August 21, 2025.
V. Pathak and V. S. Ananthanarayana. A novel multi-threaded k-means clustering approach for intrusion detection. In 2012 IEEE International Conference on Computer Science and Automation Engineering, pages 757–760, 2012. DOI: 10.1109/ICSESS.2012.6269577.
I. Sharafaldin, A. H. Lashkari, A. A. Ghorbani, et al. Toward generating a new intrusion detection dataset and intrusion traffic characterization. ICISSp, 1(2018):108–116, 2018.
C. Yin and S. Zhang. Parallel implementing improved k-means applied for image retrieval and anomaly detection. Multimedia Tools Appl., 76(16):16911–16927, Aug. 2017. ISSN 1380-7501.
