<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xml:lang="en" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">CMC</journal-id>
<journal-id journal-id-type="nlm-ta">CMC</journal-id>
<journal-id journal-id-type="publisher-id">CMC</journal-id>
<journal-title-group>
<journal-title>Computers, Materials &#x0026; Continua</journal-title>
</journal-title-group>
<issn pub-type="epub">1546-2226</issn>
<issn pub-type="ppub">1546-2218</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">81953</article-id>
<article-id pub-id-type="doi">10.32604/cmc.2026.081953</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>A Novel Adaptive Deep Learning-Based Intrusion Detection System Using Particle Swarm Optimization</article-title>
<alt-title alt-title-type="left-running-head">A Novel Adaptive Deep Learning-Based Intrusion Detection System Using Particle Swarm Optimization</alt-title>
<alt-title alt-title-type="right-running-head">A Novel Adaptive Deep Learning-Based Intrusion Detection System Using Particle Swarm Optimization</alt-title>
</title-group>
<contrib-group>
<contrib id="author-1" contrib-type="author">
<name name-style="western"><surname>Mjahed</surname><given-names>Soukaina</given-names></name><xref ref-type="aff" rid="aff-1">1</xref></contrib>
<contrib id="author-2" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Mjahed</surname><given-names>Ouail</given-names></name><xref ref-type="aff" rid="aff-2">2</xref><xref rid="cor1" ref-type="corresp">&#x002A;</xref><email>ouail.mjahed@ced.uca.ma</email></contrib>
<aff id="aff-1"><label>1</label><institution>Department of Computer Sciences, Faculty of Sciences Semlalia, Cadi Ayyad University</institution>, <addr-line>Marrakech</addr-line>, <country>Morocco</country></aff>
<aff id="aff-2"><label>2</label><institution>Department of Computer Sciences, Faculty of Sciences and Technology, Cadi Ayyad University</institution>, <addr-line>Marrakech</addr-line>, <country>Morocco</country></aff>
</contrib-group>
<author-notes>
<corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Ouail Mjahed. Email: <email>ouail.mjahed@ced.uca.ma</email></corresp>
</author-notes>
<pub-date date-type="collection" publication-format="electronic">
<year>2026</year>
</pub-date>
<pub-date date-type="pub" publication-format="electronic">
<day>8</day><month>5</month><year>2026</year>
</pub-date>
<volume>88</volume>
<issue>1</issue>
<elocation-id>92</elocation-id>
<history>
<date date-type="received">
<day>11</day>
<month>03</month>
<year>2026</year>
</date>
<date date-type="accepted">
<day>08</day>
<month>04</month>
<year>2026</year>
</date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2026 The Authors. Published by Tech Science Press.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>The Authors</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_CMC_81953.pdf"></self-uri>
<abstract>
<p>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&#x2019;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&#x2013;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 <italic>99.97% accuracy, recall</italic> and <italic>F</italic><sub>1</sub>-score, and low-latency inference suitable for near real-time deployment.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Classification</kwd>
<kwd>CNN</kwd>
<kwd>PSO</kwd>
<kwd>intrusion detection system</kwd>
<kwd>adaptive deep learning</kwd>
</kwd-group></article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>Modern network environments are increasingly exposed to sophisticated and evolving cyber threats, including distributed denial-of-service attacks, advanced persistent threats, and rare or previously unseen attack patterns. Traditional Intrusion Detection Systems (IDS) based on static rules or conventional machine learning methods often struggle to capture the complex spatial and temporal dependencies present in network traffic. As a result, these systems frequently suffer from limited detection capability for emerging attacks and elevated false positive rates.</p>
<p>Recent advances in deep learning (DL) have significantly improved intrusion detection performance. Architectures such as Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs), and Long Short-Term Memory (LSTM) networks have demonstrated strong capability in learning hierarchical representations from network traffic data [<xref ref-type="bibr" rid="ref-1">1</xref>,<xref ref-type="bibr" rid="ref-2">2</xref>]. In particular, hybrid CNN-LSTM architectures effectively capture both spatial feature correlations and temporal dependencies across traffic flows, achieving promising performance on benchmark datasets such as UNSW-NB15, CICIDS2017, and ToN-IoT.</p>
<p>Despite these advances, most DL-based IDS rely on fixed architectures and static decision pathways. Consequently, their ability to adapt to evolving attack behaviors or rare intrusion patterns remains limited. In addition, optimization procedures such as feature selection or hyperparameter tuning are commonly performed offline, without interaction with the internal representation learning process of the deep model.</p>
<p>To address these limitations, recent research has explored hybrid frameworks combining deep learning with metaheuristic optimization techniques such as Particle Swarm Optimization (PSO) and Genetic Algorithms (GA) [<xref ref-type="bibr" rid="ref-3">3</xref>,<xref ref-type="bibr" rid="ref-4">4</xref>]. These methods are typically used to improve feature selection, hyperparameter tuning, or architecture configuration. Although such hybrid approaches can enhance detection performance, the metaheuristic component is generally applied in a static or preprocessing manner, preventing dynamic interaction between the optimizer and the deep learning model during training.</p>
<p>This limitation highlights a key research gap: most existing DL&#x2013;metaheuristic IDS frameworks do not allow the optimization process to adapt the internal decision structure of the deep model during learning. Consequently, the optimizer remains disconnected from the evolving latent representations produced by the network.</p>
<p>Motivated by this limitation, this paper proposes a DL-PSO Co-Evolution (DL-PSO-CE) framework that tightly integrates a CNN&#x2013;LSTM deep encoder with PSO-driven Adaptive Decision Blocks (ADBs). Unlike existing hybrid approaches, the proposed framework establishes a bidirectional co-evolutionary loop, in which latent representations learned by the deep model guide PSO-based structural adaptation during training. This mechanism enables continuous refinement of the IDS decision structure in response to ambiguous or evolving traffic patterns.</p>
<p>The main contributions of this work are summarized as follows:<list list-type="simple">
<list-item>
<label>(i)</label>
<p>Adaptive Decision Blocks (ADBs) are introduced to enable modular and flexible IDS decision pathways.</p></list-item>
<list-item>
<label>(ii)</label>
<p>A latent-space-guided PSO mechanism dynamically selects and adapts internal decision structures during training.</p></list-item>
<list-item>
<label>(iii)</label>
<p>A co-evolutionary learning framework is proposed to jointly optimize deep representations and decision topology.</p></list-item>
<list-item>
<label>(iv)</label>
<p>Extensive experiments on UNSW-NB15, CICIDS2017, and ToN-IoT datasets demonstrate improved detection accuracy, reduced false positive rates, and low inference latency.</p></list-item>
<list-item>
<label>(v)</label>
<p>A comprehensive statistical significance analysis validates the robustness and practical relevance of the proposed approach.</p></list-item>
</list></p>
<p>The remainder of this paper is structured as follows. <xref ref-type="sec" rid="s2">Section 2</xref> reviews related work, while <xref ref-type="sec" rid="s3">Section 3</xref> details the proposed algorithms. <xref ref-type="sec" rid="s4">Section 4</xref> describes the experimental design and implementation parameters. <xref ref-type="sec" rid="s5">Section 5</xref> presents the main results, including performance comparisons between benchmark datasets, statistical significance analysis, and a comparison with state-of-the-art methods. Finally, <xref ref-type="sec" rid="s6">Section 6</xref> concludes this paper.</p>
</sec>
<sec id="s2">
<label>2</label>
<title>Related Works</title>
<p>Deep learning has become a dominant paradigm for intrusion detection due to its ability to model complex and nonlinear patterns in network traffic. CNN-based IDS models capture spatial correlations among traffic features, while recurrent architectures such as RNNs and LSTMs effectively model temporal dependencies across sequential traffic flows [<xref ref-type="bibr" rid="ref-1">1</xref>,<xref ref-type="bibr" rid="ref-2">2</xref>]. Hybrid CNN&#x2013;LSTM architectures further enhance detection performance by jointly exploiting spatial and temporal information, particularly in large-scale and IoT-based network environments [<xref ref-type="bibr" rid="ref-1">1</xref>].</p>
<p>To further improve IDS performance, metaheuristic optimization algorithms inspired by natural and evolutionary processes have been increasingly integrated into deep learning pipelines. These methods are commonly employed for feature selection, hyperparameter optimization, and dimensionality reduction. In particular, Particle Swarm Optimization (PSO) has been widely used to optimize feature subsets and deep learning parameters, leading to improved detection accuracy and reduced false alarm rates [<xref ref-type="bibr" rid="ref-5">5</xref>,<xref ref-type="bibr" rid="ref-6">6</xref>]. Similarly, Genetic Algorithms (GA) have been applied to optimize network structures, select relevant features, and tune deep learning hyperparameters [<xref ref-type="bibr" rid="ref-4">4</xref>,<xref ref-type="bibr" rid="ref-7">7</xref>].</p>
<p>Other metaheuristic approaches, including Grey Wolf Optimizer (GWO), Differential Evolution, Dragonfly optimization, Firefly algorithms, and Cybersecurity Optimizer, have also demonstrated effectiveness in IDS optimization tasks [<xref ref-type="bibr" rid="ref-8">8</xref>&#x2013;<xref ref-type="bibr" rid="ref-12">12</xref>]. Recent studies have further explored the use of swarm-based optimization for cyber-attack detection in complex infrastructures. For example, PSO-based attention temporal graph convolutional networks have been proposed for detecting dummy data injection attacks in power systems [<xref ref-type="bibr" rid="ref-13">13</xref>].</p>
<p>Beyond classical metaheuristics, alternative optimization strategies such as evolutionary strategies, Bayesian optimization, and differentiable architecture search (DARTS) have been investigated for neural architecture optimization [<xref ref-type="bibr" rid="ref-14">14</xref>]. However, these approaches typically focus on global architecture search and often require substantial computational resources.</p>
<p>Recent IDS studies report high detection performance on benchmark datasets such as CICIDS2017, UNSW-NB15, and ToN-IoT through the combination of deep learning and optimization strategies. On CICIDS2017, recurrent and hybrid deep models achieve high detection performance, with LSTM-based and DNN&#x2013;LSTM architectures reporting accuracies above 99% [<xref ref-type="bibr" rid="ref-15">15</xref>,<xref ref-type="bibr" rid="ref-16">16</xref>]. Metaheuristic-assisted CNN models further improve results, with GA- and PSO-optimized CNN architectures reaching accuracies above 99.7% and <italic>F</italic><sub>1</sub>-scores close to 99% [<xref ref-type="bibr" rid="ref-17">17</xref>].</p>
<p>For the UNSW-NB15 dataset, CNN&#x2013;LSTM architectures report moderate detection performance around 92.9% accuracy [<xref ref-type="bibr" rid="ref-1">1</xref>], whereas evolutionary optimization significantly improves results. GA- and PSO-optimized CNN models achieve accuracies above 99% and detection rates near 98% [<xref ref-type="bibr" rid="ref-17">17</xref>], while GWO-CNN approaches report balanced accuracy and <italic>F</italic><sub>1</sub>-scores exceeding 97% [<xref ref-type="bibr" rid="ref-3">3</xref>]. Similar trends are observed on the ToN-IoT dataset, where deep learning models such as LSTM achieve accuracies close to 99% [<xref ref-type="bibr" rid="ref-18">18</xref>], and classical learning methods including XGBoost and ANN report accuracies between 98.3% and 99.4% [<xref ref-type="bibr" rid="ref-19">19</xref>,<xref ref-type="bibr" rid="ref-20">20</xref>].</p>
<p>Despite these advances, most hybrid DL&#x2013;metaheuristic IDS frameworks apply optimization in a static or peripheral manner, either before training (e.g., feature selection or hyperparameter tuning) or as a one-time architectural optimization step. Consequently, the internal structure of the deep model remains fixed during training, and no iterative feedback exists between the learned latent representations and the optimization process. This limitation restricts the ability of IDS models to adapt to rare, evolving, or previously unseen attack patterns.</p>
<p>Furthermore, even approaches based on metaheuristic architecture search do not implement a <italic>true co-evolutionary learning process</italic>, as the optimizer and the deep model typically operate in separate stages rather than interacting continuously during training.</p>
<p>Unlike neural architecture search approaches such as NAS or DARTS [<xref ref-type="bibr" rid="ref-14">14</xref>], which explore global network architectures through computationally intensive search procedures, the proposed DL-PSO-CE framework performs <italic>lightweight structural adaptation during training</italic>. PSO dynamically controls the activation of Adaptive Decision Blocks within the network, enabling continuous interaction between representation learning and structural optimization.</p>
<p>By integrating latent-space-guided optimization into the learning process, the proposed DL-PSO-CE framework enables <italic>dynamic, data-driven structural adaptation</italic>, fundamentally distinguishing it from existing static or offline hybrid IDS approaches.</p>
</sec>
<sec id="s3">
<label>3</label>
<title>Methodology</title>
<p>This section presents the proposed methodology, combining deep learning with metaheuristic optimization for intrusion detection. After briefly introducing the core components (CNN, LSTM, and PSO), five DL-based algorithmic variants are defined to systematically analyze the contribution of PSO.</p>
<p>The variants range from a pure DL baseline to a fully co-evolutionary DL-PSO framework, with each configuration isolating a specific PSO role, including feature selection, hyper-parameter tuning, structural optimization, and co-evolution.</p>
<p>For clarity, the evaluated algorithms are denoted as follows:<list list-type="bullet">
<list-item>
<p>DL-B (baseline deep learning),</p></list-item>
<list-item>
<p>DL-PSO-FS (PSO-based feature selection),</p></list-item>
<list-item>
<p>DL-PSO-HP (PSO-based hyper-parameter optimization),</p></list-item>
<list-item>
<p>DL-PSO-S (static structural optimization), and</p></list-item>
<list-item>
<p>DL-PSO-CE (proposed co-evolutionary framework).</p></list-item>
</list></p>
<sec id="s3_1">
<label>3.1</label>
<title>Convolutional Neural Networks (CNN)</title>
<p>CNNs are employed as the spatial feature extraction component of the proposed framework. CNN layers capture local correlations among network traffic attributes, such as protocol interactions, flow statistics, and packet-level patterns. Given an input feature vector <italic>x</italic>, a convolutional layer computes a feature map <italic>h</italic><sub><italic>k</italic></sub> as follows [<xref ref-type="bibr" rid="ref-21">21</xref>]:<disp-formula id="eqn-1"><label>(1)</label><mml:math id="mml-eqn-1" display="block"><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2217;</mml:mo><mml:mi>x</mml:mi><mml:mo>+</mml:mo><mml:msub><mml:mi>b</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula>where &#x2217; denotes convolution, <italic>W</italic><sub><italic>k</italic></sub> and <italic>b</italic><sub><italic>k</italic></sub> represent the weight and bias of the <italic>k</italic>-th convolutional filter, respectively, and <italic>&#x03C3;</italic>(&#x22C5;) is a nonlinear activation function. Stacking multiple convolutional layers enables the model to learn increasingly abstract and discriminative representations of complex attack behaviors.</p>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Long Short-Term Memory Networks (LSTM)</title>
<p>LSTM networks are adopted to model temporal dependencies in network traffic sequences. In intrusion detection, such temporal modeling is crucial for identifying time-dependent and multi-stage attacks.</p>
<p>An LSTM cell updates its internal memory state using gated mechanisms, expressed as in (2) [<xref ref-type="bibr" rid="ref-22">22</xref>]:<disp-formula id="eqn-2"><label>(2)</label><mml:math id="mml-eqn-2" display="block"><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>f</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi>f</mml:mi></mml:mrow></mml:msub><mml:mspace width="thinmathspace" /><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>b</mml:mi><mml:mrow><mml:mi>f</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:msub><mml:mi>i</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mspace width="thinmathspace" /><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>b</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:msub><mml:mi>o</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>o</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi>o</mml:mi></mml:mrow></mml:msub><mml:mspace width="thinmathspace" /><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>b</mml:mi><mml:mrow><mml:mi>o</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:math></disp-formula>where <italic>f</italic><sub><italic>t</italic></sub>, <italic>i</italic><sub><italic>t</italic></sub>, <italic>o</italic><sub><italic>t</italic></sub> denote the forget, input, and output gates at time <italic>t</italic>, respectively. <italic>W</italic><sub><italic>f</italic></sub>, <italic>W</italic><sub><italic>i</italic></sub>, <italic>W</italic><sub><italic>o</italic></sub> denote the input weight matrices associated with the forget, input, and output gates, respectively, <italic>U</italic><sub><italic>f</italic></sub>, <italic>U</italic><sub><italic>i</italic></sub>, <italic>U</italic><sub><italic>o</italic></sub> are the corresponding recurrent weight matrices, and <italic>b</italic><sub><italic>f</italic></sub>, <italic>b</italic><sub><italic>i</italic></sub>, <italic>b</italic><sub><italic>o</italic></sub> are bias terms. This architecture allows effective learning of long-term dependencies while mitigating vanishing gradient issues.</p>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Particle Swarm Optimization (PSO)</title>
<p>PSO is a population-based metaheuristic inspired by collective swarm intelligence [<xref ref-type="bibr" rid="ref-23">23</xref>]. It searches for optimal solutions by iteratively updating a set of particles according to both individual experience and global knowledge. At each iteration <italic>t</italic>, the velocity <italic>v</italic><sub><italic>i</italic></sub> and position <italic>x</italic><sub><italic>i</italic></sub>, of a particle <italic>i</italic>, are updated according to <xref ref-type="disp-formula" rid="eqn-3">(3)</xref>:<disp-formula id="eqn-3"><label>(3)</label><mml:math id="mml-eqn-3" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mi mathvariant="italic">v</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">i</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi></mml:mrow><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mi>&#x03C9;</mml:mi><mml:mspace width="thinmathspace" /><mml:msubsup><mml:mrow><mml:mi mathvariant="italic">v</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">i</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi></mml:mrow></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="italic">c</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi mathvariant="italic">r</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mrow><mml:mi mathvariant="italic">p</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">i</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mtext mathvariant="italic">best</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mrow><mml:mi mathvariant="italic">x</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">i</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi></mml:mrow></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="italic">c</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi mathvariant="italic">r</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msup><mml:mrow><mml:mi mathvariant="italic">g</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext mathvariant="italic">best</mml:mtext></mml:mrow></mml:mrow></mml:msup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mrow><mml:mi mathvariant="italic">x</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">i</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi></mml:mrow></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mi mathvariant="italic">x</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">i</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi></mml:mrow><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mspace width="thinmathspace" /><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mrow><mml:mi mathvariant="italic">i</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi></mml:mrow></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>v</mml:mi><mml:mrow><mml:mrow><mml:mi mathvariant="italic">i</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi></mml:mrow><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>where <italic>&#x03C9;</italic> is the inertia weight, <italic>c</italic><sub>1</sub> and <italic>c</italic><sub>2</sub> are acceleration coefficients, and <italic>r</italic><sub>1</sub>, <italic>r</italic><sub>2</sub> &#x2208; [0, 1] are random variables, <italic>p</italic><sub><italic>i</italic></sub><sup><italic>best</italic></sup> is the personal best, and <italic>g</italic><sup><italic>best</italic></sup> is the global best position.</p>
<p>Based on the optimization principles of PSO, four deep learning-based intrusion detection algorithms are introduced in the following subsections, in which PSO is progressively integrated, ranging from static offline optimization schemes to a fully co-evolutionary learning framework.</p>
</sec>
<sec id="s3_4">
<label>3.4</label>
<title>DL-B: Pure DL Baseline</title>
<p>The DL-Base model is a hybrid CNN&#x2013;LSTM, trained conventionally. CNN layers capture spatial correlations among traffic features. LSTM layers model temporal dependencies across flows. Training uses back-propagation on a fixed architecture. This baseline serves as the reference for evaluating the impact of PSO-based enhancements. Algorithm 1 describes the steps involved in the DL-B model.</p>
<fig id="fig-4">
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_81953-fig-4.tif"/>
</fig>
</sec>
<sec id="s3_5">
<label>3.5</label>
<title>DL- PSO-FS: Static Feature Selection</title>
<p>In the first proposed Algorithm, PSO is applied offline to select a subset of input features. Each particle encodes a binary feature mask. Fitness is measured via classification performance on a lightweight evaluator. The CNN&#x2013;LSTM is then trained on the reduced feature set, with no further PSO interaction, reflecting standard preprocessing-based PSO usage in IDS literature.</p>
<p>Algorithm 2 details the DL-PSO-FS steps.</p>
<fig id="fig-5">
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_81953-fig-5.tif"/>
</fig>
</sec>
<sec id="s3_6">
<label>3.6</label>
<title>DL-PSO-HP: Hyper-Parameter Optimization</title>
<p>In this Algorithm, PSO optimizes hyper-parameters (learning rate, number of CNN filters, LSTM units) offline. Selected hyper-parameters are fixed during training, improves convergence and stability but does not interact dynamically with latent representations. The steps of the DL-PSO-HP method are summarized in Algorithm 3.</p>
<fig id="fig-6">
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_81953-fig-6.tif"/>
</fig>
</sec>
<sec id="s3_7">
<label>3.7</label>
<title>DL-PSO-S (Static Optimization)</title>
<p>In DL-PSO-S Algorithm, PSO is used to preselect the structure of ADBs. Each particle represents a candidate decision block configuration. The structure is fixed after optimization, providing greater expressiveness than DL-Base but lacking dynamic adaptation to evolving attacks. The different phases of the DL-PSO-S are shown in Algorithm 4.</p>
<fig id="fig-7">
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_81953-fig-7.tif"/>
</fig>
</sec>
<sec id="s3_8">
<label>3.8</label>
<title>Proposed DL&#x2013;PSO&#x2013;CE: Co-Evolutionary Framework</title>
<p>The proposed DL&#x2013;PSO&#x2013;CE framework establishes a bidirectional co-evolutionary interaction between deep representation learning and swarm-based structural optimization. A CNN&#x2013;LSTM encoder continuously learns latent representations of network traffic, while Particle Swarm Optimization (PSO) dynamically adapts the model structure by controlling the activation of Adaptive Decision Blocks (ADBs).</p>
<p>Each ADB consists of a lightweight fully connected module followed by a nonlinear activation function. Multiple ADBs operate in parallel, forming modular decision pathways whose outputs are aggregated before the final classification layer. Their activation is governed by a binary vector encoded by PSO particles, enabling dynamic and compact adaptation of the decision structure during training.</p>
<p>Unlike conventional hybrid DL&#x2013;PSO approaches with offline optimization, PSO is integrated directly into the training loop. Latent representations produced by the CNN&#x2013;LSTM are used to estimate latent-space uncertainty, which is incorporated into the PSO fitness evaluation. PSO then updates ADB activation patterns, modifying the model structure before subsequent gradient-based updates.</p>
<p>Each particle encodes a binary activation vector, where each dimension corresponds to one ADB. This iterative interaction forms a closed feedback loop between representation learning and structural adaptation, enabling progressive refinement of decision boundaries and improved detection of rare or unseen attacks.</p>
<p>To guide the structural optimization process, an uncertainty-aware fitness signal is incorporated into the PSO evaluation. The uncertainty component is derived from the predictive entropy of the class posterior probabilities produced by the CNN&#x2013;LSTM encoder. This entropy value quantifies classification ambiguity and is combined with performance metrics to guide the selection of ADB configurations that simultaneously improve classification accuracy and reduce uncertainty.</p>
<p>Algorithm 5 summarizes the overall co-evolutionary training procedure.</p>
<fig id="fig-8">
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_81953-fig-8.tif"/>
</fig>
<p>To ensure methodological consistency across PSO-based variants, a unified fitness formulation is adopted:<disp-formula id="eqn-4"><label>(4)</label><mml:math id="mml-eqn-4" display="block"><mml:mi>f</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>a</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mi>A</mml:mi><mml:mi>c</mml:mi><mml:mi>c</mml:mi><mml:mo>+</mml:mo><mml:msub><mml:mi>a</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>a</mml:mi><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mi>U</mml:mi></mml:math></disp-formula>where <italic>Acc</italic>, <italic>F</italic><sub>1</sub> and <italic>U</italic> denote Accuracy, <italic>F</italic><sub>1</sub>-score and latent-space uncertainty, respectively, and <italic>a</italic><sub>1</sub>, <italic>a</italic><sub>2</sub> and <italic>a</italic><sub>3</sub> are weighting coefficients. The performance components of the fitness function (<italic>Acc</italic> and <italic>F</italic><sub>1</sub>-score) are defined in <xref ref-type="sec" rid="s4_3">Section 4.3</xref>. The latent-space uncertainty <italic>U</italic> is estimated using the mean predictive entropy of the class posterior distributions derived from the CNN&#x2013;LSTM latent representations:<disp-formula id="eqn-5"><label>(5)</label><mml:math id="mml-eqn-5" display="block"><mml:mi>U</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mi>N</mml:mi></mml:mfrac><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo>(</mml:mo><mml:mo>&#x2212;</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>c</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>C</mml:mi></mml:mrow></mml:munderover><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>c</mml:mi></mml:mrow></mml:msub><mml:mspace width="thinmathspace" /><mml:mi>log</mml:mi><mml:mo>&#x2061;</mml:mo><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>c</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula>where <italic>p</italic><sub><italic>i,c</italic></sub> denotes the predicted probability of class <italic>c</italic> for sample <italic>i</italic>, <italic>C</italic> is the number of classes, and <italic>N</italic> is the number of samples.</p>
<p>Predictive entropy is employed as an uncertainty proxy due to its computational efficiency and stability during training. Entropy-based uncertainty estimation has been widely adopted in deep learning models to identify ambiguous or poorly classified samples. Although alternative estimators such as Monte Carlo dropout or ensemble-based uncertainty could be considered, they introduce additional computational overhead that may limit their integration within iterative optimization loops.</p>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Experimental Design</title>
<p>This section describes the datasets used, the experimental setup, and evaluation metrics.</p>
<sec id="s4_1">
<label>4.1</label>
<title>Datasets Description</title>
<p>To comprehensively evaluate the proposed intrusion detection framework under diverse and realistic network conditions, experiments were conducted on three publicly available and widely adopted benchmark datasets: UNSW-NB15, CICIDS2017, and ToN-IoT. These datasets differ in traffic characteristics, attack diversity, and temporal complexity, enabling a robust assessment of model generalization.</p>
<p>UNSW-NB15: 2.5M instances, 49 features, nine modern attack categories [<xref ref-type="bibr" rid="ref-24">24</xref>].</p>
<p>CICIDS2017: 2.8M instances, 80 flow-based features covering 15 attacks classes [<xref ref-type="bibr" rid="ref-25">25</xref>].</p>
<p>ToN-IoT: IoT and industrial telemetry, including up to 10 classes, described by about 43 attributes [<xref ref-type="bibr" rid="ref-26">26</xref>].</p>
<p>All datasets were subjected to a unified preprocessing pipeline, including the removal of missing and infinite values, one-hot encoding of categorical features, elimination of duplicate and incomplete flows, and min&#x2013;max normalization of continuous attributes.</p>
<p>To ensure label consistency, related attack subtypes were grouped into unified classes, resulting in 7 classes for each Dataset. Class imbalance, particularly severe in CICIDS-2017 and ToN-IoT, was mitigated using SMOTE [<xref ref-type="bibr" rid="ref-27">27</xref>]. Since uncertainty signals are derived from model predictions rather than directly from input samples, the influence of SMOTE-generated synthetic instances on uncertainty estimation remains limited. Consequently, the use of SMOTE does not introduce significant bias into the co-evolutionary optimization process.</p>
<p>Approximately 230k samples were retained from each Dataset, then split into training (70%), validation (15%), and test (15%) sets using stratified sampling. The normalized class distributions of the resulting datasets are reported in <xref ref-type="table" rid="table-1">Table 1</xref>.</p>
<table-wrap id="table-1">
<label>Table 1</label>
<caption>
<title>Characteristics of the used datasets.</title>
</caption>
<table>
<colgroup>
<col align="center" width="11mm"/>
<col align="center" width="22mm"/>
<col align="center" width="16mm"/>
<col align="center" width="19mm"/>
<col align="center" width="10mm"/>
<col align="center" width="14mm"/>
<col align="center" width="13mm"/> </colgroup>
<thead>
<tr>
<th rowspan="2">Class</th>
<th align="center" colspan="3">Label</th>
<th align="center" colspan="3">Number of Samples</th>
</tr>
<tr>
<th>UNSW-NB15</th>
<th>CICIDS2017</th>
<th>ToN-IoT</th>
<th>Train</th>
<th>Validation</th>
<th>Test</th>
</tr>
</thead>
<tbody>
<tr>
<td><italic>C</italic><sub>1</sub></td>
<td>Normal</td>
<td>Normal</td>
<td>Normal</td>
<td>70,000</td>
<td>15,000</td>
<td>15,000</td>
</tr>
<tr>
<td><italic>C</italic><sub>2</sub></td>
<td>DoS</td>
<td>DoS/DDoS</td>
<td>DoS/DDoS</td>
<td>35,000</td>
<td>7510</td>
<td>7490</td>
</tr>
<tr>
<td><italic>C</italic><sub>3</sub></td>
<td>Exploit</td>
<td>PortScan</td>
<td>Scanning</td>
<td>21,000</td>
<td>4505</td>
<td>4495</td>
</tr>
<tr>
<td><italic>C</italic><sub>4</sub></td>
<td>Reconnaissance</td>
<td>Web</td>
<td>XSS</td>
<td>14,000</td>
<td>2985</td>
<td>3015</td>
</tr>
<tr>
<td><italic>C</italic><sub>5</sub></td>
<td>Fuzzers</td>
<td>Botnet</td>
<td>Injection</td>
<td>10,500</td>
<td>2245</td>
<td>2255</td>
</tr>
<tr>
<td><italic>C</italic><sub>6</sub></td>
<td>Generic</td>
<td>Infiltration</td>
<td>Password</td>
<td>7000</td>
<td>1509</td>
<td>1491</td>
</tr>
<tr>
<td><italic>C</italic><sub>7</sub></td>
<td>Analysis/Others</td>
<td>Heartbleed</td>
<td>Backdoor/Others</td>
<td>3500</td>
<td>754</td>
<td>746</td>
</tr>
<tr>
<td><italic>All</italic></td>
<td>230,000</td>
<td>230,000</td>
<td>230,000</td>
<td>161,000</td>
<td>34,508</td>
<td>34,492</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>To address the high dimensionality of the datasets, statistical correlation analysis and SHAP-based feature attribution were jointly employed. Highly correlated features (<italic>r</italic> &#x003E; 0.9) were removed, and post-training SHAP analysis [<xref ref-type="bibr" rid="ref-28">28</xref>] was used to rank feature importance, retaining the top 24 features to balance detection performance and interpretability.</p>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Experimental Setup</title>
<p>All experiments were conducted on an NVIDIA RTX A6000 GPU (48 GB VRAM) using PyTorch 2.2. Hyper-parameters were determined via ten-fold cross-validation.</p>
<p>All experiments are conducted under multi-class intrusion detection settings, consistent with the class distributions of the CICIDS2017, UNSW-NB15, and ToN-IoT datasets, provided in <xref ref-type="table" rid="table-1">Table 1</xref>.</p>

<p>The proposed IDS employs a hybrid CNN&#x2013;LSTM architecture composed of two one-dimensional convolutional layers with 64 and 128 filters (kernel size &#x003D; 3), followed by max-pooling (pool size &#x003D; 2) and ReLU activation. Temporal dependencies are modeled using two stacked LSTM layers with 128 hidden units and a dropout rate of 0.3. The classification layer is fully connected with Softmax activation.</p>
<p>Model training is performed using the Adam optimizer with a learning rate of 0.001, a batch size of 128, and categorical <italic>cross-entropy loss</italic>.</p>
<p>For PSO-based variants, a swarm size of 40 particles is used over 50 iterations, with inertia weight <italic>&#x03C9;</italic> &#x003D; 0.7 and cognitive and social coefficients set to <italic>c</italic><sub>1</sub> &#x003D; <italic>c</italic><sub>2</sub> &#x003D; 1.5.</p>
<p>The fitness weights in <xref ref-type="disp-formula" rid="eqn-4">Eq. (4)</xref> were fixed to <italic>a</italic><sub>1</sub> &#x003D; <italic>a</italic><sub>2</sub> &#x003D; 0.5 for all variants. The latent-space uncertainty term was deactivated (<italic>a</italic><sub>3</sub> &#x003D; 0) for all static PSO-based algorithms and enabled only in DL-PSO-CE (<italic>a</italic><sub>1</sub> &#x003D; 0.5, <italic>a</italic><sub>2</sub> &#x003D; 0.4, <italic>a</italic><sub>3</sub> &#x003D; 0.1).</p>
</sec>
<sec id="s4_3">
<label>4.3</label>
<title>Evaluation Metrics</title>
<p>To evaluate the proposed methods, precision rate <italic>Acc</italic><sub><italic>i</italic></sub>, Recall <italic>R</italic><sub><italic>i</italic></sub> and <italic>F</italic><sub>1<italic>i</italic></sub>-score are computed, for each class <italic>C</italic><sub><italic>i</italic></sub>, as well as global rates such as accuracy <italic>Acc</italic>, recall <italic>R</italic> and <italic>F</italic><sub>1</sub>-score.
<disp-formula id="eqn-6"><label>(6)</label><mml:math id="mml-eqn-6" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>A</mml:mi><mml:mi>c</mml:mi><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:munder><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>j</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>,</mml:mo><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:munder><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>,</mml:mo><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mn>2</mml:mn><mml:mi>A</mml:mi><mml:mi>c</mml:mi><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>A</mml:mi><mml:mi>c</mml:mi><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>+</mml:mo></mml:mrow><mml:mrow></mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="eqn-7"><label>(7)</label><mml:math id="mml-eqn-7" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>A</mml:mi><mml:mi>c</mml:mi><mml:mi>c</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:munder><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:munder><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>,</mml:mo><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mi>R</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mi>K</mml:mi></mml:mfrac><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mi>K</mml:mi></mml:mfrac><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>where <italic>C</italic><sub><italic>ij</italic></sub> denotes the number of samples belonging to class <italic>C</italic><sub><italic>i</italic></sub> predicted as class <italic>C</italic><sub><italic>j</italic></sub> and <italic>K</italic> the number of classes. In addition, AUC (Area Under roc Curves), Inference latency (ms/packet), and training time per epoch are considered. Paired <italic>t</italic>-test and <italic>Wilcoxon signed-rank test</italic> [<xref ref-type="bibr" rid="ref-29">29</xref>] are used to assess significance of observed improvements. Note that the paired <italic>t-statistic</italic> and the Wilcoxon <italic>Z statistic</italic> are computed as follows:<disp-formula id="eqn-8"><label>(8)</label><mml:math id="mml-eqn-8" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mover><mml:mi>d</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>/</mml:mo></mml:mrow><mml:msqrt><mml:mi>n</mml:mi></mml:msqrt></mml:mrow></mml:mfrac><mml:mo>,</mml:mo><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mi>Z</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>W</mml:mi><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>&#x03BC;</mml:mi><mml:mrow><mml:mi>W</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:msub><mml:mi>&#x03C0;</mml:mi><mml:mrow><mml:mi>W</mml:mi></mml:mrow></mml:msub></mml:mfrac><mml:mo>,</mml:mo><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /><mml:mspace width="thinmathspace" /></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>where <inline-formula id="ieqn-1"><mml:math id="mml-ieqn-1"><mml:mover><mml:mi>d</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover></mml:math></inline-formula>, <italic>s</italic><sub><italic>d</italic></sub>, and <italic>n</italic> are the mean, standard deviation, and number of paired differences, respectively; <italic>W</italic>, <italic>&#x03BC;</italic><sub><italic>W</italic></sub> and <italic>&#x03C0;</italic><sub><italic>W</italic></sub> are the sum of signed ranks, its expected mean, and standard deviation under the null hypothesis.</p>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Results and Analysis</title>
<p>This section presents the experimental results of all algorithmic variants, analyzing classification performance, statistical significance, and comparative evaluation against state-of-the-art IDS approaches.</p>
<sec id="s5_1">
<label>5.1</label>
<title>Classification Performance</title>
<p>The five algorithmic variants were evaluated on UNSW-NB15, CICIDS2017, and ToN-IoT using Accuracy (<italic>Acc</italic>), <italic>F</italic><sub>1</sub>-score, and <italic>AUC</italic>. The best test performances are summarized in <xref ref-type="table" rid="table-2">Table 2</xref>.</p>
<table-wrap id="table-2">
<label>Table 2</label>
<caption>
<title>Test attacks detection performance.</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/> </colgroup>
<thead>
<tr>
<th align="center" rowspan="2">Method</th>
<th colspan="3">UNSW-NB15</th>
<th colspan="3">CICIDS2017</th>
<th colspan="3">ToN-IoT</th>
</tr>
<tr>
<th><italic>Acc</italic> (%)</th>
<th><italic>F</italic><sub>1</sub> (%)</th>
<th><italic>AUC</italic></th>
<th><italic>Acc</italic> (%)</th>
<th><italic>F</italic><sub>1</sub> (%)</th>
<th><italic>AUC</italic></th>
<th><italic>Acc</italic> (%)</th>
<th><italic>F</italic><sub>1</sub> (%)</th>
<th><italic>AUC</italic></th>
</tr>
</thead>
<tbody>
<tr>
<td>DL-B</td>
<td>95.56</td>
<td>95.21</td>
<td>0.961</td>
<td>95.71</td>
<td>95.73</td>
<td>0.953</td>
<td>95.38</td>
<td>95.43</td>
<td>0.965</td>
</tr>
<tr>
<td>DL-PSO-FS</td>
<td>96.87</td>
<td>96.98</td>
<td>0.974</td>
<td>96.97</td>
<td>96.97</td>
<td>0.967</td>
<td>96.98</td>
<td>96.02</td>
<td>0.971</td>
</tr>
<tr>
<td>DL-PSO-HP</td>
<td>97.53</td>
<td>97.92</td>
<td>0.978</td>
<td>97.71</td>
<td>97.41</td>
<td>0.971</td>
<td>97.61</td>
<td>97.32</td>
<td>0.981</td>
</tr>
<tr>
<td>DL-PSO-S</td>
<td>98.65</td>
<td>98.78</td>
<td>0.981</td>
<td>98.13</td>
<td>98.77</td>
<td>0.983</td>
<td>98.03</td>
<td>98.42</td>
<td>0.988</td>
</tr>
<tr>
<td>DL-PSO-CE</td>
<td>99.98</td>
<td>99.99</td>
<td>0.999</td>
<td>99.98</td>
<td>99.97</td>
<td>0.995</td>
<td>99.97</td>
<td>99.99</td>
<td>0.999</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Static PSO-based variants provide consistent but limited gains over DL-B (1%&#x2013;3%), whereas DL-PSO-CE achieves substantially larger improvements (4%&#x2013;5% over DL-B and 1%&#x2013;3% over the best static PSO variant), while reaching near-perfect <italic>AUC</italic> values (&#x2265;0.995) across all datasets. The strongest gains are observed on ToN-IoT, highlighting the robustness and generalization capability of the proposed co-evolutionary mechanism under heterogeneous and imbalanced traffic conditions.</p>
<p>In addition, the per-class performance shown in <xref ref-type="fig" rid="fig-1">Fig. 1</xref> confirms that DL-PSO-CE achieves consistently higher per-class precisions, recall and <italic>F</italic><sub>1</sub>, with gains of up to 1%<bold>&#x2013;</bold>5<bold>%</bold> on attack classes compared to the baseline and static PSO-based variants. The proposed DL-PSO-CE consistently achieves the highest discrimination performance, with <italic>AUC</italic> values above 0.995 on UNSW-NB15, CICIDS2017, and ToN-IoT. While static PSO-based variants improve upon the baseline, their ROC curves degrade in low false positive rate regions. In contrast, DL-PSO-CE maintains high true positive rates, particularly on ToN-IoT, demonstrating superior robustness in heterogeneous and imbalanced traffic scenarios.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>Per-class detection performance.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_81953-fig-1.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-2">Fig. 2</xref> presents the ROC curves for all datasets. The proposed DL-PSO-CE consistently achieves the highest discrimination performance, with <italic>AUC</italic> values above 0.995 on UNSW-NB15, CICIDS2017, and ToN-IoT. While static PSO-based variants improve upon the baseline, their ROC curves degrade in low false positive rate regions. In contrast, DL-PSO-CE maintains high true positive rates, particularly on ToN-IoT, demonstrating superior robustness in heterogeneous and imbalanced traffic scenarios.</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>ROC curves.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_81953-fig-2.tif"/>
</fig>
<p>The high detection performance may raise concerns regarding overfitting or data leakage. To mitigate this risk, strict preprocessing was applied, including removal of duplicate flows and stratified splitting into non-overlapping training, validation, and test sets. Furthermore, evaluation on three heterogeneous datasets (UNSW-NB15, CICIDS2017, and ToN-IoT) supports the generalization capability of the proposed framework.</p>
</sec>
<sec id="s5_2">
<label>5.2</label>
<title>Statistical Significance</title>
<p>Statistical significance was assessed using both paired <italic>t-</italic>tests and <italic>Wilcoxon signed-rank tests</italic> on UNSW-NB15, CICIDS2017, and ToN-IoT datasets.</p>
<p>To control for multiple comparisons, the <italic>Holm&#x2013;Bonferroni</italic> correction was applied to all statistical tests. All comparisons remain statistically significant after adjustment, confirming that the observed performance improvements are robust and not due to multiple testing effects.</p>
<p>As summarized in <xref ref-type="table" rid="table-3">Tables 3</xref> and <xref ref-type="table" rid="table-4">4</xref>, the proposed DL-PSO-CE framework consistently outperforms all baseline and static PSO-based variants. The paired <italic>t</italic>-test results show <italic>t</italic>-values ranging from 3.87 to 9.91, with all corresponding <italic>p</italic>-values below 0.01, indicating statistically significant improvements in accuracy across all datasets. These findings are further confirmed by the <italic>Wilcoxon signed-rank test</italic>, where <italic>Z</italic>-scores range from &#x2212;2.04 to &#x2212;3.92, with all comparisons remaining significant (<italic>p</italic> &#x003C; 0.05).</p>
<table-wrap id="table-3">
<label>Table 3</label>
<caption>
<title>Paired <italic>t</italic>-test results (accuracy%) across multiple datasets.</title>
</caption>
<table>
<colgroup>
<col align="center" width="30mm"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/> </colgroup>
<thead>
<tr>
<th align="center" rowspan="2">Comparison</th>
<th colspan="3">UNSW-NB15</th>
<th colspan="3">CICIDS2017</th>
<th colspan="3">ToN-IoT</th>
</tr>
<tr>
<th>Mean</th>
<th><italic>t</italic>-Stat</th>
<th><italic>p</italic>-Value</th>
<th>Mean</th>
<th><italic>t</italic>-Stat</th>
<th><italic>p</italic>-Value</th>
<th>Mean</th>
<th><italic>t</italic>-Stat</th>
<th><italic>p</italic>-Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>DL-PSO-CE vs. DL-B</td>
<td>&#x002B;2.31</td>
<td>7.84</td>
<td>0.001</td>
<td>&#x002B;3.05</td>
<td>9.91</td>
<td>0.001</td>
<td>&#x002B;2.67</td>
<td>8.46</td>
<td>0.001</td>
</tr>
<tr>
<td>DL-PSO-CE vs. DL-PSO-FS</td>
<td>&#x002B;1.62</td>
<td>6.19</td>
<td>0.001</td>
<td>&#x002B;2.14</td>
<td>8.02</td>
<td>0.001</td>
<td>&#x002B;1.83</td>
<td>6.78</td>
<td>0.001</td>
</tr>
<tr>
<td>DL-PSO-CE vs. DL-PSO-HP</td>
<td>&#x002B;1.08</td>
<td>4.91</td>
<td>0.002</td>
<td>&#x002B;1.56</td>
<td>6.43</td>
<td>0.001</td>
<td>&#x002B;1.29</td>
<td>5.11</td>
<td>0.001</td>
</tr>
<tr>
<td>DL-PSO-CE vs. DL-PSO-S</td>
<td>&#x002B;0.71</td>
<td>3.87</td>
<td>0.009</td>
<td>&#x002B;1.02</td>
<td>4.72</td>
<td>0.003</td>
<td>&#x002B;0.86</td>
<td>3.95</td>
<td>0.008</td>
</tr>
</tbody>
</table>
</table-wrap><table-wrap id="table-4">
<label>Table 4</label>
<caption>
<title>Wilcoxon signed-rank test results (accuracy%) across multiple datasets.</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/> </colgroup>
<thead>
<tr>
<th align="center" rowspan="2">Comparison</th>
<th colspan="3">UNSW&#x2013;NB15</th>
<th colspan="3">CICIDS2017</th>
<th colspan="3">ToN-IoT</th>
</tr>
<tr>
<th><italic>W</italic></th>
<th><italic>Z</italic></th>
<th><italic>p-</italic>Value</th>
<th><italic>W</italic></th>
<th><italic>Z</italic></th>
<th><italic>p-</italic>Value</th>
<th><italic>W</italic></th>
<th><italic>Z</italic></th>
<th><italic>p-</italic>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>DL-PSO-CE vs. DL-B</td>
<td>0</td>
<td>&#x2212;3.71</td>
<td>0.001</td>
<td>0</td>
<td>&#x2212;3.92</td>
<td>0.001</td>
<td>1</td>
<td>&#x2212;3.58</td>
<td>0.001</td>
</tr>
<tr>
<td>DL-PSO-CE vs. DL-PSO-FS</td>
<td>4</td>
<td>&#x2212;3.12</td>
<td>0.002</td>
<td>2</td>
<td>&#x2212;3.54</td>
<td>0.001</td>
<td>3</td>
<td>&#x2212;3.09</td>
<td>0.002</td>
</tr>
<tr>
<td>DL-PSO-CE vs. DL-PSO-HP</td>
<td>6</td>
<td>&#x2212;2.67</td>
<td>0.008</td>
<td>4</td>
<td>&#x2212;3.01</td>
<td>0.003</td>
<td>5</td>
<td>&#x2212;2.71</td>
<td>0.007</td>
</tr>
<tr>
<td>DL-PSO-CE vs. DL-PSO-S</td>
<td>10</td>
<td>&#x2212;2.04</td>
<td>0.041</td>
<td>7</td>
<td>&#x2212;2.33</td>
<td>0.020</td>
<td>9</td>
<td>&#x2212;2.12</td>
<td>0.034</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Overall, the statistical analysis demonstrates that the performance gains achieved by DL-PSO-CE are consistent, robust across datasets, and not attributable to random variation, thereby supporting the effectiveness and generalizability of the proposed co-evolutionary framework.</p>
</sec>
<sec id="s5_3">
<label>5.3</label>
<title>Training Time and Inference Latency</title>
<p><xref ref-type="table" rid="table-5">Table 5</xref> summarizes the computational performance of the evaluated methods. As expected, PSO-assisted variants require longer training time due to the additional optimization steps. Among them, the proposed DL-PSO-CE framework exhibits the highest training cost, as it involves iterative PSO updates and dynamic structural adaptation through ADB activation. Nevertheless, the additional overhead remains moderate.</p>
<table-wrap id="table-5">
<label>Table 5</label>
<caption>
<title>Computational performance comparison on the CICIDS2017 dataset (161K samples).</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/> </colgroup>
<thead>
<tr>
<th>Method</th>
<th>DL-B</th>
<th>DL-PSO-FS</th>
<th>DL-PSO-HP</th>
<th>DL-PSO-S</th>
<th>DL-PSO-CE</th>
</tr>
</thead>
<tbody>
<tr>
<td><bold>Training Time (CPU, s)</bold></td>
<td>621</td>
<td>734</td>
<td>798</td>
<td>827</td>
<td>883</td>
</tr>
<tr>
<td><bold>Training Time (GPU, s)</bold></td>
<td>184</td>
<td>213</td>
<td>229</td>
<td>238</td>
<td>251</td>
</tr>
<tr>
<td><bold>Avg. PSO iteration time (s)</bold></td>
<td>&#x2013;</td>
<td>1.21</td>
<td>1.34</td>
<td>1.42</td>
<td>1.55</td>
</tr>
<tr>
<td><bold>ADB switching overhead (ms)</bold></td>
<td>&#x2013;</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
<td>3.8</td>
<td>4.6</td>
</tr>
<tr>
<td><bold>Inference Latency (ms/sample)</bold></td>
<td>0.85</td>
<td>0.88</td>
<td>0.87</td>
<td>0.90</td>
<td>0.92</td>
</tr>
<tr>
<td><bold>Latency (batch &#x003D; 32)</bold></td>
<td>0.41</td>
<td>0.43</td>
<td>0.42</td>
<td>0.44</td>
<td>0.46</td>
</tr>
<tr>
<td><bold>Latency (batch &#x003D; 128)</bold></td>
<td>0.23</td>
<td>0.25</td>
<td>0.24</td>
<td>0.26</td>
<td>0.28</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Importantly, inference latency remains below 1 ms per sample across all configurations, indicating that the proposed method remains suitable for near real-time deployment. Further analysis shows that the computational overhead associated with PSO iterations and ADB switching is relatively small compared with the overall training cost, while GPU acceleration significantly reduces training time.</p>
<p>The additional computational overhead introduced by PSO iterations and ADB structural adaptation remains moderate compared to the overall training cost. It should be noted that the reported training time includes both gradient-based model training and PSO optimization steps.</p>
<p>Although the co-evolutionary framework increases training time due to PSO-driven structural optimization, the additional overhead remains moderate relative to the overall training process. Considering the significant improvement in detection performance and the low inference latency (&#x003C;1 ms per sample), the proposed framework provides a favorable trade-off between computational cost and detection accuracy.</p>
</sec>
<sec id="s5_4">
<label>5.4</label>
<title>Sensitivity Analysis</title>
<p>Sensitivity was evaluated for the four algorithms across three PSO parameters (swarm size, iteration count, inertia weight), each assessed on a different dataset (<xref ref-type="fig" rid="fig-3">Fig. 3</xref>).</p>
<fig id="fig-3">
<label>Figure 3</label>
<caption>
<title>Sensitivity of the proposed algorithms performance to PSO parameters.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_81953-fig-3.tif"/>
</fig>
<p>The accuracy-based sensitivity curves in <xref ref-type="fig" rid="fig-3">Fig. 3</xref> show that the proposed DL-PSO-CE framework consistently outperforms all baseline and static hybrid variants. While DL-B and offline PSO-based approaches exhibit strong sensitivity to inertia weight, population size, and iteration count, the co-evolutionary model maintains stable and high accuracy across a wide parameter range.</p>

<p>This robustness is attributed to the continuous interaction between deep latent representations and PSO-driven structural adaptation, which enables dynamic self-correction during training. These results confirm that performance gains arise from co-evolution rather than from isolated or static optimization. The results further validate the selected PSO parameter (swarm size &#x003D; 40, 50 iterations, inertia weight <italic>&#x03C9;</italic> &#x003D; 0.7).</p>
</sec>
<sec id="s5_5">
<label>5.5</label>
<title>Cross-Dataset Generalization</title>
<p>To evaluate robustness under distribution shift, a cross-dataset experiment was conducted using a <italic>binary setting</italic> (<italic>Normal</italic> vs. <italic>DoS/DDoS</italic>) consistent with <xref ref-type="table" rid="table-1">Table 1</xref>. Models were trained on one dataset and directly tested on another without fine-tuning, ensuring a strict generalization assessment.</p>

<p>Results in <xref ref-type="table" rid="table-6">Table 6</xref> show that DL-PSO-CE maintains strong cross-dataset generalization (96.11%&#x2013;97.12% Accuracy), with limited performance degradation compared to within-dataset results (2.86%&#x2013;3.87%) confirming its robustness under distribution shifts.</p>
<table-wrap id="table-6">
<label>Table 6</label>
<caption>
<title>Cross-dataset accuracy (%) of DL-PSO-CE (binary classification: normal vs. Dos/DDos).</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/> </colgroup>
<thead>
<tr>
<th colspan="4">Test Dataset</th>
</tr>
<tr>
<th>Train Dataset</th>
<th>CICIDS2017</th>
<th>UNSW-NB15</th>
<th>ToN-IoT</th>
</tr>
</thead>
<tbody>
<tr>
<td><bold>CICIDS2017</bold></td>
<td>99.98</td>
<td>96.21</td>
<td>96.11</td>
</tr>
<tr>
<td><bold>UNSW-NB15</bold></td>
<td>97.12</td>
<td>99.98</td>
<td>96.79</td>
</tr>
<tr>
<td><bold>ToN-IoT</bold></td>
<td>97.10</td>
<td>96.67</td>
<td>99.97</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s5_6">
<label>5.6</label>
<title>Comparison with State-of-the-Art Works</title>
<p><xref ref-type="table" rid="table-7">Table 7</xref> compares the proposed framework with several recent intrusion detection methods evaluated on the CICIDS2017, UNSW-NB15, and ToN-IoT datasets.</p>
<table-wrap id="table-7">
<label>Table 7</label>
<caption>
<title>Comparison with some previous works on CICIDS2017, UNSW-NB15 and ToN-IoT datasets.</title>
</caption>
<table>
<colgroup>
<col align="center" width="20mm"/>
<col align="center" width="21mm"/>
<col align="center" width="20mm"/>
<col align="center" width="15mm"/>
<col align="center" width="12mm"/>
<col align="center" width="12mm"/> </colgroup>
<thead>
<tr>
<th>Reference</th>
<th>Method</th>
<th>Dataset</th>
<th><italic>Acc</italic> (%)</th>
<th><italic>R</italic> (%)</th>
<th><italic>F</italic><sub>1</sub> (%)</th>
</tr>
</thead>
<tbody>
<tr>
<td>[<xref ref-type="bibr" rid="ref-14">14</xref>]</td>
<td>NAS-Net</td>
<td rowspan="5">CICIDS 2017</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
<td>99.57</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-15">15</xref>]</td>
<td>LSTM</td>
<td>99.10</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-16">16</xref>]</td>
<td>DNN-LSTM</td>
<td>99.25</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-17">17</xref>]</td>
<td>GA-1D-CNN</td>
<td>99.71</td>
<td>99</td>
<td>99.00</td>
</tr>
<tr>
<td><bold>This work</bold></td>
<td><bold>DL-PSO-CE</bold></td>
<td><bold>99.98</bold></td>
<td><bold>99.98</bold></td>
<td><bold>99.97</bold></td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-1">1</xref>]</td>
<td>CNN-LSTM</td>
<td rowspan="5">UNSW-NB15</td>
<td>92.90</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-3">3</xref>]</td>
<td>GWO-CNN</td>
<td>97.08</td>
<td>97.21</td>
<td>97.08</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-12">12</xref>]</td>
<td>Cyber&#x2013;MLP</td>
<td>98.20</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-17">17</xref>]</td>
<td>PSO-1D-CNN</td>
<td>99.28</td>
<td>98.00</td>
<td>98.00</td>
</tr>
<tr>
<td><bold>This work</bold></td>
<td><bold>DL-PSO-CE</bold></td>
<td><bold>99.98</bold></td>
<td><bold>99.98</bold></td>
<td><bold>99.99</bold></td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-18">18</xref>]</td>
<td>LSTM</td>
<td rowspan="4">ToN-IoT</td>
<td>98.76</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-19">19</xref>]</td>
<td>XGBoost</td>
<td>98.30</td>
<td>98.30</td>
<td>98.30</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-20">20</xref>]</td>
<td>ANN</td>
<td>99.44</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
</tr>
<tr>
<td><bold>This work</bold></td>
<td><bold>DL-PSO-CE</bold></td>
<td><bold>99.97</bold></td>
<td><bold>99.96</bold></td>
<td><bold>99.99</bold></td>
</tr>
</tbody>
</table>
</table-wrap>
<p>On CICIDS2017, the proposed DL-PSO-CE framework achieves 99.98<bold>%</bold> accuracy and 99.97% <italic>F</italic><sub>1</sub><bold>-</bold>score, outperforming several deep and hybrid IDS models, including LSTM-based approaches [<xref ref-type="bibr" rid="ref-15">15</xref>], DNN-LSTM architectures [<xref ref-type="bibr" rid="ref-16">16</xref>], and GA-optimized CNN models [<xref ref-type="bibr" rid="ref-17">17</xref>]. It also improves upon more recent architectures such as NAS-Net [<xref ref-type="bibr" rid="ref-14">14</xref>], which report <italic>F</italic><sub>1</sub>-scores below 99.6%.</p>
<p>For UNSW-NB15, existing approaches including CNN-LSTM [<xref ref-type="bibr" rid="ref-1">1</xref>], GWO-CNN [<xref ref-type="bibr" rid="ref-3">3</xref>], Cyber-MLP [<xref ref-type="bibr" rid="ref-12">12</xref>] and PSO-1D-CNN [<xref ref-type="bibr" rid="ref-17">17</xref>], achieve accuracies between 92.90% and 99.28%. In comparison, DL-PSO-CE reaches 99.98% accuracy and 99.99% <italic>F</italic><sub>1</sub>-score, indicating improved detection performance in heterogeneous network environments.</p>
<p>On ToN-IoT, machine learning and deep learning methods such as LSTM [<xref ref-type="bibr" rid="ref-18">18</xref>], XGBoost [<xref ref-type="bibr" rid="ref-19">19</xref>], and ANN [<xref ref-type="bibr" rid="ref-20">20</xref>] report accuracies between 98.30% and 99.44%. The proposed framework consistently achieves 99.97% accuracy and 99.99% <italic>F</italic><sub>1</sub>-score, demonstrating strong robustness for large-scale IoT traffic analysis.</p>
<p>Overall, the results suggest that integrating deep representation learning with PSO-based structural co-evolution provides improved and consistent detection performance compared with conventional deep learning models and static optimization strategies.</p>
</sec>
<sec id="s5_7">
<label>5.7</label>
<title>Discussion</title>
<p>The proposed DL-PSO-CE framework achieves state-of-the-art detection performance across the UNSW-NB15, CICIDS2017, and ToN-IoT datasets, while maintaining low inference latency (below 1 ms per sample). Compared with baseline deep learning models, static PSO-based variants, and conventional hybrid approaches, the proposed method consistently demonstrates improved detection capability and robustness. Sensitivity analyses further confirm the stability of the framework with respect to variations in PSO parameters, while paired <italic>t</italic>-tests and <italic>Wilcoxon signed-rank tests</italic> indicate that the observed performance improvements are statistically significant (<italic>p</italic> &#x003C; 0.01) across datasets and evaluation metrics.</p>
<p>Unlike static feature selection or hyperparameter optimization strategies, the proposed co-evolutionary mechanism dynamically refines the internal decision structure of the model during training. This adaptive behavior allows the IDS to better capture complex and rare attack patterns by continuously adjusting the activation of Adaptive Decision Blocks based on latent representation signals.</p>
<p>Despite these advantages, several limitations should be acknowledged. First, the co-evolutionary mechanism introduces a moderate training overhead due to PSO-driven structural optimization. Second, the effectiveness of the approach depends on the quality of the latent representations learned by the deep encoder. In addition, the current fitness formulation relies on a weighted-sum aggregation of objectives. Future work could explore alternative multi-objective optimization strategies, such as Pareto-based PSO, to explicitly balance competing objectives during structural adaptation.</p>
<p>Finally, practical deployment in real-world network infrastructures may require addressing additional challenges such as streaming traffic processing, concept drift, and memory constraints in large-scale or resource-constrained environments.</p>
</sec>
</sec>
<sec id="s6">
<label>6</label>
<title>Conclusion</title>
<p>In this work, a DL&#x2013;PSO Co-Evolution intrusion detection framework was presented, in which deep representation learning and metaheuristic-driven structural adaptation are tightly integrated. A CNN-LSTM encoder was coupled with PSO-controlled Adaptive Decision Blocks, allowing the limitations of conventional hybrid IDS models based on static or offline optimization to be overcome. Through a latent-space-guided co-evolutionary loop, continuous and data-driven refinement of the decision structure was enabled during training, thereby improving robustness against complex, rare or previously unseen attack patterns while maintaining architectural compactness.</p>
<p>Extensive experiments conducted on UNSW-NB15, CICIDS2017, and ToN-IoT datasets, and state-of-the-art performance was consistently achieved, with detection accuracies, recall and <italic>F</italic><sub>1</sub>-scores exceeding <italic>99.97%</italic>, and AUC values greater than <italic>0.995</italic>.</p>
<p>In comparison with baseline deep learning models and static PSO-assisted variants, substantial and consistent improvements were observed, particularly in highly imbalanced and IoT-oriented traffic scenarios. Sensitivity analyses further demonstrated that stable performance was maintained under variations of PSO and architectural parameters, confirming the robustness of the proposed framework.</p>
<p>Despite the introduction of a co-evolutionary optimization mechanism, low inference latency (less than 1 ms per sample) was preserved, indicating suitability for near real-time deployment. Statistical validation using paired <italic>t-</italic>tests and <italic>Wilcoxon signed-rank tests</italic> confirmed that the observed performance improvements were both statistically significant and practically meaningful. In addition, a preliminary cross-dataset evaluation further demonstrated the robustness of the proposed framework under distribution shifts, highlighting its potential for real-world deployment across heterogeneous network environments</p>
<p>Future work will focus on extending the framework to distributed and federated IDS settings, integrating explainable learning mechanisms, exploring alternative multi-objective optimization strategies, and evaluating scalability on resource-constrained edge and IoT environments.</p>
</sec>
</body>
<back>
<ack>
<p>Not applicable.</p>
</ack>
<sec>
<title>Funding Statement</title>
<p>The authors received no specific funding for this study.</p>
</sec>
<sec>
<title>Author Contributions</title>
<p>The authors confirm contribution to the paper as follows: Conception and design, data curation, literature review, analysis and interpretation of results: Soukaina Mjahed and Ouail Mjahed; draft manuscript preparation: Ouail Mjahed, writing&#x2014;review and editing, supervision: Soukaina Mjahed. All authors reviewed and approved the final version of the manuscript.</p>
</sec>
<sec sec-type="data-availability">
<title>Availability of Data and Materials</title>
<p>The data supporting the conclusions of this study are freely available at the websites cited in references [<xref ref-type="bibr" rid="ref-24">24</xref>&#x2013;<xref ref-type="bibr" rid="ref-26">26</xref>].</p>
</sec>
<sec>
<title>Ethics Approval</title>
<p>Not applicable.</p>
</sec>
<sec sec-type="COI-statement">
<title>Conflicts of Interest</title>
<p>The authors declare no conflicts of interest.</p>
</sec>
<glossary content-type="abbreviations" id="glossary-1">
<title>Abbreviations</title>
<def-list>
<def-item>
<term>ADB</term>
<def>
<p>Adaptive Decision Block</p>
</def>
</def-item>
<def-item>
<term>ANN</term>
<def>
<p>Artificial Neural Network</p>
</def>
</def-item>
<def-item>
<term>CICIDS2017</term>
<def>
<p>Canadian Institute for Cybersecurity Intrusion Detection System dataset 2017</p>
</def>
</def-item>
<def-item>
<term>CNN</term>
<def>
<p>Convolutional Neural Network</p>
</def>
</def-item>
<def-item>
<term>DARTS</term>
<def>
<p>Differentiable Architecture Search</p>
</def>
</def-item>
<def-item>
<term>DL</term>
<def>
<p>Deep Learning</p>
</def>
</def-item>
<def-item>
<term>DL-B</term>
<def>
<p>Baseline Deep Learning</p>
</def>
</def-item>
<def-item>
<term>GA</term>
<def>
<p>Genetic Algorithm</p>
</def>
</def-item>
<def-item>
<term>GWO</term>
<def>
<p>Grey Wolf Optimizer</p>
</def>
</def-item>
<def-item>
<term>IDS</term>
<def>
<p>Intrusion Detection System</p>
</def>
</def-item>
<def-item>
<term>LSTM</term>
<def>
<p>Long Short-Term Memory</p>
</def>
</def-item>
<def-item>
<term>NAS</term>
<def>
<p>Neural Architecture Search</p>
</def>
</def-item>
<def-item>
<term>PSO</term>
<def>
<p>Particle Swarm Optimization</p>
</def>
</def-item>
<def-item>
<term>PSO-CE</term>
<def>
<p>PSO-based Co-Evolutionary framework</p>
</def>
</def-item>
<def-item>
<term>PSO-FS</term>
<def>
<p>PSO-based Feature Selection</p>
</def>
</def-item>
<def-item>
<term>PSO-HP</term>
<def>
<p>PSO-based Hyper-Parameter optimization</p>
</def>
</def-item>
<def-item>
<term>PSO-S</term>
<def>
<p>PSO-based Static structural optimization</p>
</def>
</def-item>
<def-item>
<term>RNN</term>
<def>
<p>Recurrent Neural Network</p>
</def>
</def-item>
<def-item>
<term>ToN-IoT</term>
<def>
<p>Telemetry of Network and Internet of Things Dataset</p>
</def>
</def-item>
<def-item>
<term>UNSW-NB15</term>
<def>
<p>University of New South Wales-Network Based dataset 2015</p>
</def>
</def-item>
<def-item>
<term>XGBoost</term>
<def>
<p>eXtreme Gradient Boosting</p>
</def>
</def-item>
</def-list>
</glossary>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>[1]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Altunay</surname> <given-names>HC</given-names></string-name>, <string-name><surname>Albayrak</surname> <given-names>Z</given-names></string-name></person-group>. <article-title>A hybrid CNN-LSTM-based intrusion detection system for industrial IoT networks</article-title>. <source>Int J Eng Sci Technol</source>. <year>2023</year>;<volume>38</volume>:<fpage>101322</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.jestch.2022.101322</pub-id>.</mixed-citation></ref>
<ref id="ref-2"><label>[2]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Alashjaee</surname> <given-names>AM</given-names></string-name></person-group>. <article-title>Deep learning for network security: an Attention-CNN-LSTM model for accurate intrusion detection</article-title>. <source>Sci Rep</source>. <year>2025</year>;<volume>15</volume>(<issue>1</issue>):<fpage>21856</fpage>. doi:<pub-id pub-id-type="doi">10.1038/s41598-025-07706-y</pub-id>; <pub-id pub-id-type="pmid">40593224</pub-id></mixed-citation></ref>
<ref id="ref-3"><label>[3]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kaissar</surname> <given-names>A</given-names></string-name>, <string-name><surname>Nassif</surname> <given-names>AB</given-names></string-name>, <string-name><surname>Soudan</surname> <given-names>B</given-names></string-name>, <string-name><surname>Injadat</surname> <given-names>MN</given-names></string-name></person-group>. <article-title>Enhancing CNN-based network intrusion detection through hyperparameter optimization</article-title>. <source>Intell Syst Appl</source>. <year>2025</year>;<volume>26</volume>(<issue>2</issue>):<fpage>200528</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.iswa.2025.200528</pub-id>.</mixed-citation></ref>
<ref id="ref-4"><label>[4]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Van</surname> <given-names>LTH</given-names></string-name>, <string-name><surname>Thuan</surname> <given-names>LD</given-names></string-name>, <string-name><surname>Huong</surname> <given-names>PV</given-names></string-name>, <string-name><surname>Minh</surname> <given-names>NH</given-names></string-name></person-group>. <article-title>An overall optimization model using metaheuristic algorithms for the CNN-based IoT attack detection problem</article-title>. <source>Comput Mater Contin</source>. <year>2026</year>;<volume>87</volume>(<issue>1</issue>):<fpage>81</fpage>. doi:<pub-id pub-id-type="doi">10.32604/cmc.2025.075027</pub-id>.</mixed-citation></ref>
<ref id="ref-5"><label>[5]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kan</surname> <given-names>X</given-names></string-name>, <string-name><surname>Fan</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Fang</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Cao</surname> <given-names>L</given-names></string-name>, <string-name><surname>Xiong</surname> <given-names>NN</given-names></string-name>, <string-name><surname>Yang</surname> <given-names>D</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>A novel IoT network intrusion detection approach based on adaptive particle swarm optimization convolutional neural network</article-title>. <source>Inf Sci</source>. <year>2021</year>;<volume>568</volume>(<issue>5</issue>):<fpage>147</fpage>&#x2013;<lpage>62</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.ins.2021.03.060</pub-id>.</mixed-citation></ref>
<ref id="ref-6"><label>[6]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Bahaa</surname> <given-names>A</given-names></string-name>, <string-name><surname>Sayed</surname> <given-names>A</given-names></string-name>, <string-name><surname>Elfangary</surname> <given-names>L</given-names></string-name>, <string-name><surname>Fahmy</surname> <given-names>H</given-names></string-name></person-group>. <article-title>A novel hybrid optimization enabled robust CNN algorithm for an IoT network intrusion detection approach</article-title>. <source>PLoS One</source>. <year>2022</year>;<volume>17</volume>(<issue>12</issue>):<fpage>e0278493</fpage>. doi:<pub-id pub-id-type="doi">10.1371/journal.pone.0278493</pub-id>; <pub-id pub-id-type="pmid">36454861</pub-id></mixed-citation></ref>
<ref id="ref-7"><label>[7]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Nguyen</surname> <given-names>MT</given-names></string-name>, <string-name><surname>Kim</surname> <given-names>K</given-names></string-name></person-group>. <article-title>Genetic convolutional neural network for intrusion detection systems</article-title>. <source>Future Gener Comput Syst</source>. <year>2020</year>;<volume>113</volume>:<fpage>418</fpage>&#x2013;<lpage>27</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.future.2020.07.042</pub-id>.</mixed-citation></ref>
<ref id="ref-8"><label>[8]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mjahed</surname> <given-names>O</given-names></string-name>, <string-name><surname>El Hadaj</surname> <given-names>S</given-names></string-name>, <string-name><surname>El Guarmah</surname> <given-names>E</given-names></string-name>, <string-name><surname>Mjahed</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Improved supervised and unsupervised metaheuristic-based approaches to detect intrusion in various datasets</article-title>. <source>Comput Model Eng Sci</source>. <year>2023</year>;<volume>137</volume>(<issue>1</issue>):<fpage>265</fpage>&#x2013;<lpage>98</lpage>. doi:<pub-id pub-id-type="doi">10.32604/cmes.2023.027581</pub-id>.</mixed-citation></ref>
<ref id="ref-9"><label>[9]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Rajesh</surname> <given-names>KP</given-names></string-name>, <string-name><surname>Santhi</surname> <given-names>P</given-names></string-name></person-group>. <article-title>Unified deep learning approach for efficient intrusion detection system using integrated spatial-temporal features</article-title>. <source>Knowl-Based Syst</source>. <year>2021</year>;<volume>226</volume>(<issue>1</issue>):<fpage>107132</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.knosys.2021.107132</pub-id>.</mixed-citation></ref>
<ref id="ref-10"><label>[10]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Bala</surname> <given-names>R</given-names></string-name>, <string-name><surname>Nagpal</surname> <given-names>R</given-names></string-name></person-group>. <article-title>Performance evaluation of firefly optimization for intrusion detection system</article-title>. <source>Int J Sci Technol Res</source>. <year>2020</year>;<volume>9</volume>(<issue>03</issue>):<fpage>4754</fpage>&#x2013;<lpage>8</lpage>. doi:<pub-id pub-id-type="doi">10.15623/ijret.2018.0710003</pub-id>.</mixed-citation></ref>
<ref id="ref-11"><label>[11]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Bhuvaneshwari</surname> <given-names>KS</given-names></string-name>, <string-name><surname>Venkatachalam</surname> <given-names>K</given-names></string-name>, <string-name><surname>Hubalovsk&#x00FD;</surname> <given-names>S</given-names></string-name>, <string-name><surname>Trojovsk&#x00FD;</surname> <given-names>P</given-names></string-name>, <string-name><surname>Prabu</surname> <given-names>P</given-names></string-name></person-group>. <article-title>Improved dragonfly optimizer for intrusion detection using deep clustering CNN-PSO classifier</article-title>. <source>Comput Mater Contin</source>. <year>2022</year>;<volume>70</volume>(<issue>3</issue>):<fpage>5949</fpage>&#x2013;<lpage>65</lpage>. doi:<pub-id pub-id-type="doi">10.32604/cmc.2022.020769</pub-id>.</mixed-citation></ref>
<ref id="ref-12"><label>[12]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Al Hwaitat</surname> <given-names>AK</given-names></string-name>, <string-name><surname>Fakhouri</surname> <given-names>HN</given-names></string-name></person-group>. <article-title>Adaptive cybersecurity neural networks: an evolutionary approach for enhanced attack detection and classification</article-title>. <source>Appl Sci</source>. <year>2024</year>;<volume>14</volume>(<issue>19</issue>):<fpage>9142</fpage>. doi:<pub-id pub-id-type="doi">10.3390/app14199142</pub-id>.</mixed-citation></ref>
<ref id="ref-13"><label>[13]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Xinyu</surname> <given-names>W</given-names></string-name>, <string-name><surname>Yifan</surname> <given-names>G</given-names></string-name>, <string-name><surname>Xiaoyuan</surname> <given-names>L</given-names></string-name>, <string-name><surname>Xinping</surname> <given-names>G</given-names></string-name></person-group>. <article-title>Detection of dummy data injection attacks by using particle swarm optimization-attention temporal graph convolutional network model in power system</article-title>. <source>Eng Appl Artif Intell</source>. <year>2026</year>;<volume>171</volume>(<issue>5</issue>):<fpage>114259</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.engappai.2026.114259</pub-id>.</mixed-citation></ref>
<ref id="ref-14"><label>[14]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Lyu</surname> <given-names>R</given-names></string-name>, <string-name><surname>He</surname> <given-names>M</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Jin</surname> <given-names>L</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>X</given-names></string-name></person-group>. <article-title>Network intrusion detection based on an efficient neural architecture search</article-title>. <source>Symmetry</source>. <year>2021</year>;<volume>13</volume>(<issue>8</issue>):<fpage>1453</fpage>. doi:<pub-id pub-id-type="doi">10.3390/sym13081453</pub-id>.</mixed-citation></ref>
<ref id="ref-15"><label>[15]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Sarhan</surname> <given-names>M</given-names></string-name>, <string-name><surname>Layeghy</surname> <given-names>S</given-names></string-name>, <string-name><surname>Portmann</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Towards a standard feature set for network intrusion detection system datasets</article-title>. <source>Mob Netw Appl</source>. <year>2022</year>;<volume>27</volume>(<issue>1</issue>):<fpage>357</fpage>&#x2013;<lpage>70</lpage>. doi:<pub-id pub-id-type="doi">10.1007/s11036-021-01843-0</pub-id>.</mixed-citation></ref>
<ref id="ref-16"><label>[16]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Shukla</surname> <given-names>AK</given-names></string-name>, <string-name><surname>Dwivedi</surname> <given-names>S</given-names></string-name>, <string-name><surname>Mishra</surname> <given-names>A</given-names></string-name></person-group>. <article-title>An effective hybrid deep learning metaheuristic model for robust IoT intrusion detection</article-title>. <source>Discov Comput</source>. <year>2025</year>;<volume>28</volume>(<issue>1</issue>):<fpage>200</fpage>. doi:<pub-id pub-id-type="doi">10.1007/s10791-025-09708-w</pub-id>.</mixed-citation></ref>
<ref id="ref-17"><label>[17]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kilichev</surname> <given-names>D</given-names></string-name>, <string-name><surname>Kim</surname> <given-names>W</given-names></string-name></person-group>. <article-title>Hyperparameter optimization for 1D-CNN-based network intrusion detection using GA and PSO</article-title>. <source>Mathematics</source>. <year>2023</year>;<volume>11</volume>(<issue>17</issue>):<fpage>3724</fpage>. doi:<pub-id pub-id-type="doi">10.3390/math11173724</pub-id>.</mixed-citation></ref>
<ref id="ref-18"><label>[18]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Devendiran</surname> <given-names>R</given-names></string-name>, <string-name><surname>Turukmane</surname> <given-names>AV</given-names></string-name></person-group>. <article-title>Dugat-lstm: deep learning based network intrusion detection system using chaotic optimization strategy</article-title>. <source>Expert Syst Appl</source>. <year>2024</year>;<volume>245</volume>(<issue>2</issue>):<fpage>123027</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.eswa.2023.123027</pub-id>.</mixed-citation></ref>
<ref id="ref-19"><label>[19]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Gad</surname> <given-names>AR</given-names></string-name>, <string-name><surname>Nashat</surname> <given-names>AA</given-names></string-name>, <string-name><surname>Barkat</surname> <given-names>TM</given-names></string-name></person-group>. <article-title>Intrusion Detection system using machine learning for vehicular <italic>ad hoc</italic> networks based on ToN-IoT dataset</article-title>. <source>IEEE Access</source>. <year>2021</year>;<volume>9</volume>:<fpage>142206</fpage>&#x2013;<lpage>17</lpage>. doi:<pub-id pub-id-type="doi">10.1109/ACCESS.2021.3120626</pub-id>.</mixed-citation></ref>
<ref id="ref-20"><label>[20]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Kumar</surname> <given-names>P</given-names></string-name>, <string-name><surname>Tripathi</surname> <given-names>R</given-names></string-name>, <string-name><surname>Gupta</surname> <given-names>GP</given-names></string-name></person-group>. <article-title>P2IDF: a privacy-preserving based intrusion detection framework for software defined Internet of Things-Fog (SDIoT-Fog)</article-title>. In: <conf-name>Proceedings of the 2021 International Conference on Distributed Computing and Networking; 2021 Jan 5</conf-name>; <publisher-loc>New York, NY, USA</publisher-loc>. p. <fpage>37</fpage>&#x2013;<lpage>42</lpage>. doi:<pub-id pub-id-type="doi">10.1145/3427477.3429989</pub-id>.</mixed-citation></ref>
<ref id="ref-21"><label>[21]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>LeCun</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Hinton</surname> <given-names>G</given-names></string-name></person-group>. <article-title>Deep learning</article-title>. <source>Nature</source>. <year>2015</year>;<volume>521</volume>:<fpage>436</fpage>&#x2013;<lpage>44</lpage>. doi:<pub-id pub-id-type="doi">10.1038/nature14539</pub-id>; <pub-id pub-id-type="pmid">26017442</pub-id></mixed-citation></ref>
<ref id="ref-22"><label>[22]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hochreiter</surname> <given-names>S</given-names></string-name>, <string-name><surname>Schmidhuber</surname> <given-names>J</given-names></string-name></person-group>. <article-title>Long short-term memory</article-title>. <source>Neural Comput</source>. <year>1997</year>;<volume>9</volume>(<issue>8</issue>):<fpage>1735</fpage>&#x2013;<lpage>80</lpage>. doi:<pub-id pub-id-type="doi">10.1162/neco.1997.9.8.1735</pub-id>; <pub-id pub-id-type="pmid">9377276</pub-id></mixed-citation></ref>
<ref id="ref-23"><label>[23]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Kennedy</surname> <given-names>J</given-names></string-name>, <string-name><surname>Eberhart</surname> <given-names>R</given-names></string-name></person-group>. <article-title>Particle swarm optimization</article-title>. In: <conf-name>Proceedings of the ICNN&#x2019;95-International Conference on Neural Networks; 1995 Nov 27</conf-name>; <publisher-loc>Perth, Australia</publisher-loc>. p. <fpage>1942</fpage>&#x2013;<lpage>8</lpage>. doi:<pub-id pub-id-type="doi">10.1109/ICNN.1995.488968</pub-id>.</mixed-citation></ref>
<ref id="ref-24"><label>[24]</label><mixed-citation publication-type="other"><article-title>UNSW-NB15 Dataset</article-title>. <comment>[cited 2025 Nov 2]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://research.unsw.edu.au/projects/unsw-nb15-dataset">https://research.unsw.edu.au/projects/unsw-nb15-dataset</ext-link>.</mixed-citation></ref>
<ref id="ref-25"><label>[25]</label><mixed-citation publication-type="other"><article-title>CICIDS2017 Dataset</article-title>. <comment>[cited 2025 Dec 12]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.unb.ca/cic/datasets/ids-2017.html">https://www.unb.ca/cic/datasets/ids-2017.html</ext-link>.</mixed-citation></ref>
<ref id="ref-26"><label>[26]</label><mixed-citation publication-type="other"><article-title>TON_IoT Dataset</article-title>. <comment>[cited 2025 Dec 15]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://research.unsw.edu.au/projects/toniot-datasets">https://research.unsw.edu.au/projects/toniot-datasets</ext-link>.</mixed-citation></ref>
<ref id="ref-27"><label>[27]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Chawla</surname> <given-names>NV</given-names></string-name>, <string-name><surname>Bowyer</surname> <given-names>KW</given-names></string-name>, <string-name><surname>Hall</surname> <given-names>L</given-names></string-name>, <string-name><surname>Kegelmeyer</surname> <given-names>WP</given-names></string-name></person-group>. <article-title>SMOTE: synthetic minority over-sampling technique</article-title>. <source>J Artif Intell Res</source>. <year>2002</year>;<volume>16</volume>:<fpage>321</fpage>&#x2013;<lpage>57</lpage>. doi:<pub-id pub-id-type="doi">10.1613/jair.953</pub-id>.</mixed-citation></ref>
<ref id="ref-28"><label>[28]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Lundberg</surname> <given-names>SM</given-names></string-name>, <string-name><surname>Lee</surname> <given-names>SI</given-names></string-name></person-group>. <article-title>A unified approach to interpreting model predictions</article-title>. In: <conf-name>Proceedings of the 31st International Conference on Neural Information Processing Systems (NIPS&#x2019;17); 2017 Dec 4&#x2013;9</conf-name>; <publisher-loc>Long Beach, CA, USA</publisher-loc>. p. <fpage>4766</fpage>&#x2013;<lpage>77</lpage>.</mixed-citation></ref>
<ref id="ref-29"><label>[29]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Raji&#x0107;</surname> <given-names>V</given-names></string-name></person-group>. <article-title>Statistical hypothesis testing: a comprehensive review of theory, methods, and applications</article-title>. <source>Mathematics</source>. <year>2026</year>;<volume>14</volume>(<issue>2</issue>):<fpage>300</fpage>. doi:<pub-id pub-id-type="doi">10.3390/math14020300</pub-id>.</mixed-citation></ref>
</ref-list>
</back></article>