Open Access
ARTICLE
A Novel Adaptive Deep Learning-Based Intrusion Detection System Using Particle Swarm Optimization
1 Department of Computer Sciences, Faculty of Sciences Semlalia, Cadi Ayyad University, Marrakech, Morocco
2 Department of Computer Sciences, Faculty of Sciences and Technology, Cadi Ayyad University, Marrakech, Morocco
* Corresponding Author: Ouail Mjahed. Email:
Computers, Materials & Continua 2026, 88(1), 92 https://doi.org/10.32604/cmc.2026.081953
Received 11 March 2026; Accepted 08 April 2026; Issue published 08 May 2026
Abstract
The rapid emergence of sophisticated, dynamic, and rare or previously unseen attack pattern exposes fundamental limitations of conventional intrusion detection systems (IDS) based on static learning architectures. While deep learning (DL) models have demonstrated strong performance by capturing complex spatial and temporal traffic patterns, existing DL-based IDS largely rely on fixed decision structures, restricting adaptability to evolving threats. Furthermore, current hybrid DL-metaheuristic approaches typically use such metaheuristics as offline or auxiliary optimizers, without interacting with the deep model’s internal latent representations. This paper introduces a novel co-evolutionary IDS that establishes a tight, bidirectional coupling between DL and Particle Swarm Optimization (PSO) through latent-space-guided structural adaptation. A CNN-LSTM (Convolutional Neural Networks-Long Short-Term Memory) encoder learns discriminative spatial–temporal representations of network traffic, which dynamically guide PSO to select and optimize Adaptive Decision Blocks during training. Unlike prior hybrid methods, the proposed framework enables continuous co-evolution of both representation learning and decision structure, allowing the IDS to adapt its internal architecture in response to uncertain, rare, and previously unseen attack patterns. Comprehensive evaluations on UNSW-NB15, CICIDS2017, and ToN-IoT demonstrate statistically significant improvements over state-of-the-art DL and hybrid IDS approaches, achieving over 99.97% accuracy, recall and F1-score, and low-latency inference suitable for near real-time deployment.Keywords
Cite This Article
Copyright © 2026 The Author(s). Published by Tech Science Press.This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Submit a Paper
Propose a Special lssue
View Full Text
Download PDF
Downloads
Citation Tools