Surasit SongmaWatcharakorn NetharnSiriluck Lorpunmanee2025-03-102025-03-102024International Journal of Computer Networks and Communications975229310.5121/ijcnc.2024.164042-s2.0-85200383073https://repository.dusit.ac.th//handle/123456789/4492The present research investigates how to improve Network Intrusion Detection Systems (NIDS) by combining Machine Learning (ML) and Deep Learning (DL) techniques, addressing the growing challenge of cybersecurity threats. A thorough process for data preparation, comprising activities like cleaning, normalization, and segmentation into training and testing sets, lays the framework for model training and evaluation. The study uses the CSE-CIC-IDS 2018 and LITNET-2020 datasets to compare ML methods (Decision Trees, Random Forest, XGBoost) and DL models (CNNs, RNNs, DNNs, MLP) against key performance metrics (Accuracy, Precision, Recall, and F1-Score). The Decision Tree model performed better across all measures after being fine-tuned with Enhanced Particle Swarm Optimization (EPSO), demonstrating the model's ability to detect network breaches effectively. The findings highlight EPSO's importance in improving ML classifiers for cybersecurity, proposing a strong framework for NIDS with high precision and dependability. This extensive analysis not only contributes to the cybersecurity arena by providing a road to robust intrusion detection solutions, but it also proposes future approaches for improving ML models to combat the changing landscape of network threats. © (2024), (Academy and Industry Research Collaboration Center (AIRCC)). All Rights Reserved.All Open Access; Gold Open AccessCSE-CIC-IDS 2018Deep LearningIntrusion Detection SystemLITNET-2020Machine Learning TechniquesParticle Swarm OptimizationEXTENDING NETWORK INTRUSION DETECTION WITH ENHANCED PARTICLE SWARM OPTIMIZATION TECHNIQUESArticleScopus