Optimized CNN-Based Intrusion Detection System Using Genetic Algorithm and Particle Swarm Optimization
Abstract
Ensuring network security and preventing malicious attacks are crucial aspects of modern network management. In this context, various algorithms are employed to differentiate unauthorized access from authorized access, enabling monitoring of network traffic and detecting different types of attacks. However, traditional techniques have faced difficulty maintaining accuracy when predicting malicious activities. This study proposes an effective Intrusion Detection System mechanism designed to detect and classify attacks using the NSL-KDD and UNSW-NB15 datasets to address these challenges. The architecture of the proposed Convolutional Neural Network is optimized through hyperparameter tuning via Genetic Algorithm and Particle Swarm Optimization. As a result, the proposed approach achieves high-performance outcomes, attaining an accuracy of 99.80% with the NSL-KDD dataset and 99.02% with the UNSW-NB15 dataset. This innovative approach demonstrates significant improvement in identifying network intrusions compared to traditional methods. Consequently, it offers a reliable and efficient solution for enhancing network security, providing accurate detection of various attack types while minimizing false positives. The proposed model’s robust performance suggests that it can serve as an effective solution for real-time intrusion detection in modern network settings.
Keywords
- Intrusion detection systems
- Cybersecurity
- Network security
- Particle swarm optimization
- Genetic algorithm
Ethical Statement
References
- Y. Yang and P. Zhao, “Research on dung beetle optimization based stacked sparse autoencoder for network situation element extraction,” IEEE Access, vol. 12, pp. 24014–24026, 2024, doi: 10.1109/ACCESS.2024.3365495.
- K. Zhao, Z. Zhang, K.-K. R. Choo, Z. Zhang, and T. Zhang, “A combinatorial optimization analysis method for detecting malicious industrial Internet attack behaviors,” ACM Trans. Cyber-Phys. Syst., vol. 8, no. 1, Art. no. 8, pp. 1–20, 2024, doi: 10.1145/3637554.
- S. Muneer, U. Farooq, A. Athar, M. A. Raza, T. M. Ghazal, and S. Sakib, “A critical review of artificial intelligence based approaches in intrusion detection: A comprehensive analysis,” Journal of Engineering, vol. 2024, no. 1, Art. no. 3909173, 2024, doi: 10.1155/2024/3909173.
- M. Gopinath and S. C. Sethuraman, “A comprehensive survey on deep learning based malware detection techniques,” Computer Science Review, vol. 47, Art. no. 100529, 2023, doi: 10.1016/j.cosrev.2022.100529.
- G. S. C. Kumar, R. K. Kumar, K. P. V. Kumar, N. R. Sai, and M. Brahmaiah, “Deep residual convolutional neural network: An efficient technique for intrusion detection system,” Expert Systems with Applications, vol. 238, Art. no. 121912, 2024, doi: 10.1016/j.eswa.2023.121912.
- X. Li, W. Chen, Q. Zhang, and L. Wu, “Building auto-encoder intrusion detection system based on random forest feature selection,” Computers & Security, vol. 95, Art. no. 101851, 2020, doi: 10.1016/j.cose.2020.101851.
- M. A. Talukder, S. Sharmin, M. A. Uddin, M. M. Islam, and S. Aryal, “MLSTL-WSN: Machine learning-based intrusion detection using SMOTETomek in WSNs,” International Journal of Information Security, vol. 23, no. 3, pp. 2139–2158, 2024, doi: 10.1007/s10207-024-00833-z.
- E. Altulaihan, M. A. Almaiah, and A. Aljughaiman, “Anomaly detection IDS for detecting DoS attacks in IoT networks based on machine learning algorithms,” Sensors, vol. 24, no. 2, Art. no. 713, 2024, doi: 10.3390/s24020713.
Details
Primary Language
English
Subjects
System and Network Security, Software and Application Security
Journal Section
Research Article
Authors
Ayşe Keleş
*
0000-0001-8760-412X
Ireland
İlya Kus
0000-0001-5850-949X
Türkiye
Cemal Koçak
0000-0002-8902-0934
Türkiye
Early Pub Date
October 27, 2026
Publication Date
October 30, 2026
Submission Date
May 6, 2026
Acceptance Date
August 21, 2026
Published in Issue
Year 2026 Volume: 9 Number: 5