<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article 
  article-type="research-article" 
  dtd-version="1.3" 
  xml:lang="en"
  xmlns:mml="http://www.w3.org/1998/Math/MathML" 
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <processing-meta
    tagset-family="jats"
    base-tagset="publishing"
    mathml-version="2.0"
    table-model="xhtml"/>
    <front>
        <journal-meta>
            <journal-id journal-id-type="publisher-id">rpse</journal-id>
            <journal-title-group>
                <journal-title>Recent Progress in Science and Engineering</journal-title>
                <abbrev-journal-title>Recent Prog Sci Eng</abbrev-journal-title>
            </journal-title-group>
            <issn pub-type="epub">3067-4573</issn>
            <issn-l>3067-4573</issn-l>
            <publisher>
                <publisher-name>LIDSEN Publishing Inc.</publisher-name>
            </publisher>
        </journal-meta>
        <article-meta>
            <article-id pub-id-type="publisher-id">rpse-02-03-015</article-id>
            <article-id pub-id-type="doi">10.21926/rpse.2603015</article-id>
            <article-categories>
                <subj-group subj-group-type="heading">
                    <subject>Original Research</subject>
                </subj-group>
            </article-categories>
            <title-group>
                <article-title>Explainable AI for Intrusion Detection: A SHAP-Guided Machine Learning Framework for Actionable Cybersecurity Insights</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Al-A&#x2019;athal</surname>
                        <given-names>Moa&#x2019;ath Sa&#x2019;ad</given-names>
                    </name>
                    <xref ref-type="aff" rid="aff-01"/>
                </contrib>
                <contrib contrib-type="author">
                    <name>
                        <surname>Al-Haija</surname>
                        <given-names>Qasem Abu</given-names>
                    </name>
                    <xref ref-type="aff" rid="aff-01"/>
                    <xref rid="cor-01" ref-type="corresp"><sup>&#x002A;</sup></xref>
                </contrib>
                <aff id="aff-01">Faculty of Computer and Information Technology, Jordan University of Science and Technology, Irbid, Jordan; E-Mails: <email>msalaathal24@cit.just.edu.jo</email>; <email>qsabuhaija@just.edu.jo</email></aff>
            </contrib-group>
            <contrib-group>
                <contrib contrib-type="editor">
                    <name>
                        <surname>Farhaoui</surname>
                        <given-names>Yousef</given-names>
                    </name>
                    <role>Academic Editor</role>
                </contrib>
            </contrib-group>
            <author-notes>
                <corresp id="cor-01"><label>&#x002A;</label>Correspondence: Qasem Abu Al-Haija; E-Mail: <email>qsabuhaija@just.edu.jo</email></corresp>
            </author-notes> 
            <pub-date date-type="pub" publication-format="electronic" iso-8601-date="2026-07-20">
                <day>20</day>
                <month>07</month>
                <year>2026</year>
            </pub-date> 
            <volume>2</volume>
            <issue>3</issue>
            <elocation-id>015</elocation-id>
            <history>
                <date date-type="received" iso-8601-date="2026-03-28">
                    <day>28</day>
                    <month>03</month>
                    <year>2026</year>
                </date>
                <date date-type="accepted" iso-8601-date="2026-07-08">
                    <day>08</day>
                    <month>07</month>
                    <year>2026</year>
                </date>
            </history>
            <permissions>
                <copyright-statement>&#xA9; 2026 by the authors.</copyright-statement>
                <copyright-year>2026</copyright-year>
                <license license-type="open-access" xlink:href="http://creativecommons.org/licenses/by/2.0/">
                    <license-p>This is an open access article distributed under the conditions of the Creative Commons by Attribution License, which permits unrestricted use, distribution, and reproduction in any medium or format, provided the original work is correctly cited.</license-p>
                </license>      
            </permissions>
            <abstract>
                <p>The increasing scale, speed, and sophistication of cyberattacks have rendered traditional rule-based intrusion detection systems (IDS) insufficient for modern network environments. While machine learning (ML)-based IDSs have significantly improved detection capabilities, their black-box nature limits trust, interpretability, and practical deployment in real-world security operations. To address this challenge, this paper proposes an explainable machine learning framework for network intrusion detection using the CICIDS2017 dataset. The framework integrates multiple supervised learning models, including baseline and ensemble classifiers, and evaluates them using standard performance metrics such as accuracy, precision, recall, F1-score, and ROC-AUC. To enhance transparency, Shapley Additive exPlanations (SHAP) are employed to quantify feature contributions and provide both global and instance-level interpretability of model predictions. Experimental results demonstrate that ensemble models achieve superior detection performance while maintaining high interpretability. Furthermore, the explainability analysis reveals key traffic characteristics associated with different attack behaviors, providing deeper insight into attack behavior and supporting security analysts in interpreting intrusion alerts. The proposed approach improves detection accuracy, reduces false positives, and supports informed decision-making, thereby enhancing the transparency, trustworthiness, and practical applicability of intrusion detection systems.</p>
            </abstract>
            <kwd-group>
                <title>Keywords</title>
                <kwd>Intrusion detection system</kwd>
                <kwd>machine learning</kwd>
                <kwd>network security</kwd>
                <kwd>explainable artificial intelligence</kwd>
                <kwd>SHAP</kwd>
                <kwd>CICIDS2017</kwd>
                <kwd>cybersecurity analytics</kwd>
                <kwd>anomaly detection</kwd>
            </kwd-group>
        </article-meta>
    </front>
    <body>
        <sec sec-type="intro" id="sec-01">
            <label>1.</label>
            <title>Introduction</title>
            <sec id="sec-01-01">
                <label>1.1</label>
                <title>Motivation</title>
                <p>On the one hand, the widespread adoption of networked systems, cloud-based services, and Internet of Things (IoT) infrastructure has expanded attack surfaces. A large number of threat vectors now confront contemporary organizations, including distributed denial-of-service (DDoS) attacks, malware spread, port scanning, and brute-force intrusions, which could pose serious risks to the confidentiality, integrity, and availability (CIA) of digital assets. Conventional intrusion detection systems (IDSs) that chiefly use signature- or rule-based methods face challenges in detecting new or evolving attack patterns and may generate a large number of false alarms in complex network environments [<xref ref-type="bibr" rid="B-001">1</xref>,<xref ref-type="bibr" rid="B-002">2</xref>]. To mitigate these drawbacks, the data-driven intrusion detection system based on machine learning (ML) has attracted significant attention. By being trained on network traffic data, ML-based IDSs can generalize beyond predefined rules and detect previously unseen attacks. Yet, while achieving impressive performance, many ML techniques function as black boxes, yielding predictions but no explanation of how they were obtained. This lack of interpretability decreases trust in automated detection systems and thus prevents their use in real-world SOCs, where explanation is vital for incident response and decision-making [<xref ref-type="bibr" rid="B-003">3</xref>].</p>
            </sec>
            <sec id="sec-01-02">
                <label>1.2</label>
                <title>Research Gap</title>
                <p>Current research has focused on machine learning/deep learning models of ID, using benchmark datasets such as KDD99, NSL-KDD, UNSW-NB15, and CICIDS2017 [<xref ref-type="bibr" rid="B-004">4</xref>,<xref ref-type="bibr" rid="B-005">5</xref>,<xref ref-type="bibr" rid="B-006">6</xref>]. Although the reported classification accuracy is high in these works, most emphasize performance improvement, and interpretability is neglected in the detection model. As a consequence, analysts may lack insight into why a model made certain decisions, which would prevent them from validating alerts, investigating attacks, or informing defensive strategies. More recent work has underscored the value of explainable artificial intelligence (XAI) for security, especially in intrusion detection [<xref ref-type="bibr" rid="B-007">7</xref>,<xref ref-type="bibr" rid="B-008">8</xref>]. However, the application of explainability approaches to IDS pipelines remains limited, and many existing studies employ XAI only as a post-hoc explanatory tool rather than integrating explainability into the intrusion detection workflow to support analyst decision-making or fail to turn explanations into actionable security items. There is a clear gap for a systematic approach that unifies high-performing ML-based intrusion detection with strong, generalizable feature-level explanations of real network traffic data.</p>
            </sec>
            <sec id="sec-01-03">
                <label>1.3</label>
                <title>Problem Formulation</title>
                <p>Given a labeled network traffic dataset that contains benign and malicious flows, the intrusion detection problem can be framed as a supervised classification task. Let</p>
                <disp-formula>
                    <mml:math id="eq-001">
                    <mml:mi>X</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mo>{</mml:mo>
                    <mml:msub>
                        <mml:mi>x</mml:mi>
                        <mml:mn>1</mml:mn>
                    </mml:msub>
                    <mml:mo>,</mml:mo>
                    <mml:msub>
                        <mml:mi>x</mml:mi>
                        <mml:mn>2</mml:mn>
                    </mml:msub>
                    <mml:mo>,</mml:mo>
                    <mml:msub>
                        <mml:mi>x</mml:mi>
                        <mml:mn>3</mml:mn>
                    </mml:msub>
                    <mml:mo>,</mml:mo>
                    <mml:mo>.</mml:mo>
                    <mml:mo>.</mml:mo>
                    <mml:mo>.</mml:mo>
                    <mml:mo>,</mml:mo>
                    <mml:msub>
                        <mml:mi>x</mml:mi>
                        <mml:mi>n</mml:mi>
                    </mml:msub>
                    <mml:mo>}</mml:mo>
                    </mml:math>
                </disp-formula>
                <p content-type="no space">be used to represent network flow feature vectors and</p>
                <disp-formula>
                    <mml:math id="eq-002">
                    <mml:mi>Y</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mo>{</mml:mo>
                    <mml:msub>
                        <mml:mi>y</mml:mi>
                        <mml:mn>1</mml:mn>
                    </mml:msub>
                    <mml:mo>,</mml:mo>
                    <mml:msub>
                        <mml:mi>y</mml:mi>
                        <mml:mn>2</mml:mn>
                    </mml:msub>
                    <mml:mo>,</mml:mo>
                    <mml:msub>
                        <mml:mi>y</mml:mi>
                        <mml:mn>3</mml:mn>
                    </mml:msub>
                    <mml:mo>,</mml:mo>
                    <mml:mo>.</mml:mo>
                    <mml:mo>.</mml:mo>
                    <mml:mo>.</mml:mo>
                    <mml:mo>,</mml:mo>
                    <mml:msub>
                        <mml:mi>y</mml:mi>
                        <mml:mi>n</mml:mi>
                    </mml:msub>
                    <mml:mo>}</mml:mo>
                    </mml:math>
                </disp-formula>
                <p content-type="no space">represent their class labels so that each label will suggest benign traffic or one of the attack categories. We aim to learn a classification function f: X &#x2192; Y that, with high accuracy, identifies malicious behaviors from benign activities while minimizing false alarms. In addition to accurate label prediction, we also need to provide interpretable explanations for this model&#x2019;s predictions. In other words, the model should recognize which realizations contribute to a certain network flow, xi, and understand how each feature&#x2019;s contribution affects the output. This allows security practitioners to learn about attack properties, validate alerts, and gain insights into network behavior.</p>
            </sec>
            <sec id="sec-01-04">
                <label>1.4</label>
                <title>Contributions</title>
                <p>This work offers the following three main contributions:</p>
                <list list-type="bullet">
                    <list-item><p>An integrated machine learning and explainable AI (XAI) framework for network intrusion detection and security interpretation.</p></list-item>
                    <list-item><p>It is backed by an extensive empirical study using standard performance measures (accuracy, precision, recall, F1-score, and ROC-AUC).</p></list-item>
                    <list-item><p>The incorporation of the explainable AI approach, Shapley Additive exPlanations (SHAP), to render transparent and interpretable predictions for both global and particular instances.</p></list-item>
                    <list-item><p>Actionable security insights derived from explainability analysis, enabling analysts to understand better traffic characteristics associated with different attack behaviors and support informed decision-making.</p></list-item>
                </list>
            </sec>
        </sec>
        <sec id="sec-02">
            <label>2.</label>
            <title>Background</title>
            <sec id="sec-02-01">
                <label>2.1</label>
                <title>Intrusion Detection Systems</title>
                <p>An Intrusion Detection System (IDS) is a security system that monitors network or system activities and detects potential security violations. IDS solutions are divided into host-based (HIDS) and network-based (NIDS). HIDSs monitor activities at the host level, for example, system calls and log files, while NIDSs analyze network traffic to identify anomalous behavior in communication flows [<xref ref-type="bibr" rid="B-009">9</xref>]. According to the detection technique, IDS approaches are typically classified into signature-based or anomaly-based. Signature-based IDS relies on attack signatures for detection and effectively protects only against known attacks, but cannot detect zero-day or unknown attacks. In contrast, anomaly-based IDSs learn normal behavioral patterns and identify deviations as potential intrusions, building a profile of normal behavior and alarming deviations as potential intrusions, providing greater detection of new attacks at the expense of false positives [<xref ref-type="bibr" rid="B-010">10</xref>]. With the growth of network traffic in both volume and variety, anomaly-based or hybrid methods are more appropriate for today&#x2019;s environment.</p>
            </sec>
            <sec id="sec-02-02">
                <label>2.2</label>
                <title>Machine Learning for Intrusion Detection</title>
                <p>Machine learning has also played a key role in the development of data-driven intrusion detection systems, enabling them to learn complex patterns from large datasets. Supervised learning techniques, including Logistic Regression, Support Vector Machines (SVMs), Decision Trees, Random Forests, and Gradient Boosting models, are popular and have been used for categorizing network traffic as normal or attack traffic [<xref ref-type="bibr" rid="B-011">11</xref>,<xref ref-type="bibr" rid="B-012">12</xref>]. These models leverage both statistical and structural attributes derived from network traffic flows, such as packet sizes, durations, byte counts, and protocol data. Ensemble learning techniques (e.g., Random Forests and XGBoost) are popular in IDS, as they incorporate multiple weak learners to enhance generalization and tolerance to noise or imbalance. Deep learning-based models such as multilayer perceptrons (MLPs), convolutional neural networks (CNNs), and recurrent neural networks (RNNs) have achieved superior performance in intrusion detection. Still, they usually require considerable computational power and abundant labeled data [<xref ref-type="bibr" rid="B-013">13</xref>]. Despite its efficacy, ML-driven IDS faces issues of class imbalance, concept drift, and explainability. High detection accuracy is insufficient in operational settings, where security analysts need to understand and be confident in automated decisions before acting.</p>
            </sec>
            <sec id="sec-02-03">
                <label>2.3</label>
                <title>CICIDS2017 Dataset</title>
                <p>The CICIDS2017 dataset, created by the Canadian Institute for Cybersecurity, is commonly used to benchmark intrusion detection systems. It includes realistic network traffic spanning several days, with non-malicious user behavior and a broad range of attack types, such as brute-force, DoS/DDoS, port scans, botnet activity, and web-based attacks [<xref ref-type="bibr" rid="B-006">6</xref>]. The dataset contains flow-wise features generated with the CICFlowMeter extraction tool and includes over 80 statistical attributes for each network flow. These characteristics capture different dimensions of traffic behavior, such as flow duration, packet burstiness, inter-arrival times, and header fields. An additional benefit is that CICIDS2017 is a highly preferred dataset among researchers for academic research, as the recordings help simulate realistic traffic, include labeled and categorized attack types, and are more adaptable for supervised machine learning-based studies.</p>
            </sec>
            <sec id="sec-02-04">
                <label>2.4</label>
                <title>Explainable Artificial Intelligence (XAI)</title>
                <p>Explainable Artificial Intelligence (XAI) is a set of methods designed to ensure that predictions made by machine learning models are human-understandable. Explainability is crucial in cybersecurity to verify alerts, aid post-mortem analysis, and enforce accountability in automated decision-making systems [<xref ref-type="bibr" rid="B-014">14</xref>]. Without interpretability, an ML-based IDS may produce accurate predictions that analysts cannot interpret or trust. A popular family of XAI techniques is the Shapley Additive exPlanations (SHAP), which has its roots in cooperative game theory. SHAP assigns each feature a contribution value that reflects its influence in predicting a single counterfactual example relative to a baseline [<xref ref-type="bibr" rid="B-015">15</xref>]. SHAP can provide explanations at both the global level, attributing features&#x2019; overall importance across the dataset, and the local level, explaining specific predictions. It is therefore well-suited for intrusion detection, in which both general attack patterns and specific incidents are of interest. Security practitioners can therefore leverage XAI methods, such as SHAP, once integrated into IDS pipelines, to move beyond black-box predictions and better understand the behaviors inherent to cyberattacks.</p>
            </sec>
        </sec>
        <sec id="sec-03">
            <label>3.</label>
            <title>Related Work</title>
            <p>The use of machine-learning-based intrusion detection has been an active area of research over the past decade. Still, recent research increasingly focuses on integrating high detection performance with explainability to enhance transparency and operational trust. This section reviews significant contributions in the literature, following this classification from recent work: (1) models with statistical-based intrusion detection, (2) integration with XAI methods, and (3) integrations of hybrid and ensemble approaches.</p>
            <sec id="sec-03-01">
                <label>3.1</label>
                <title>ML-Based Intrusion Detection Systems</title>
                <p>Comparison studies have shown that traditional ML techniques, such as Random Forest (RF), Gradient Boosting, and XGBoost, achieve state-of-the-art accuracy for NID when trained on authorized traffic datasets, such as CICIDS2017. In a recent benchmark, ten ML algorithms were evaluated on the CICIDS2017 dataset, showing the near-perfect (e.g., 99% TPR and FPR) detection of several ensemble models (i.e., XGBoost, Random Forest), but highlighting the need for further improvement in both hyperparameter and class-imbalance management techniques for both detectors [<xref ref-type="bibr" rid="B-016">16</xref>]. Moreover, deep learning-based IDS models have also been exploited to capture complex network patterns, as in an enhanced multilayer perceptron (MLP) that employs detection of minority attack classes at a high computational cost [<xref ref-type="bibr" rid="B-017">17</xref>].</p>
            </sec>
            <sec id="sec-03-02">
                <label>3.2</label>
                <title>XAI for Intrusion Detection</title>
                <p>While high classification accuracy is important, many ML models are black boxes, making it difficult for security analysts to explain the alerts they receive at runtime. Addressing this challenge, XAI is integrated into IDS frameworks in several recent studies:</p>
                <list list-type="bullet">
                    <list-item><p>A recent work introduces an XAI framework for IDS in a standalone manner by combining Decision Trees (DTs), Random Forests (RFs), and eXplainable Boosting Machines (XBMs) with SHAP analyses, which achieves a trade-off between prediction performance and transparency on benchmark datasets such as CICIDS2017 [<xref ref-type="bibr" rid="B-018">18</xref>].</p></list-item>
                    <list-item><p>A systematic review of XAI methods like SHAP and LIME on their role to add transparency and remove false positives is also discussed, along with computational overhead challenges in real-time for providing recommendations [<xref ref-type="bibr" rid="B-019">19</xref>].</p></list-item>
                    <list-item><p>Several studies have investigated a combined-explanation system that integrates SHAP and LIME to supply global and local explanations for model decisions, which in turn enables analysts to comprehend the feature interactions along with misconception reasons [<xref ref-type="bibr" rid="B-020">20</xref>].</p></list-item>
                    <list-item><p>Systems such as L-XAIDS have been suggested, where the combination of LIME and ELI5 with decision tree algorithms is proposed to produce local and global explanations, achieving better interpretability in IDS results [<xref ref-type="bibr" rid="B-021">21</xref>].</p></list-item>
                </list>
                <p>These studies, as a whole, emphasize the growing importance of explainability, particularly in the context of the use case and the trust analysts place in data-driven IDS.</p>
            </sec>
            <sec id="sec-03-03">
                <label>3.3</label>
                <title>Hybrid and Ensemble Explainable Models</title>
                <p>In addition to straightforward, explainable ML models, other studies show that hybrid and ensemble-based approaches can provide both strong detection and interpretable insights [<xref ref-type="bibr" rid="B-014">14</xref>,<xref ref-type="bibr" rid="B-015">15</xref>,<xref ref-type="bibr" rid="B-016">16</xref>].</p>
                <list list-type="bullet">
                    <list-item><p>Another hybrid adaptive ensemble IDS that has employed Stacking, Bayesian Model Averaging (BMA), and Conditional Ensemble techniques, a train with high accuracy on CICIDS2017 using SHAP and LIME for model explanations indicates that combining ensembles can improve performance as well as its interpretability [<xref ref-type="bibr" rid="B-022">22</xref>,<xref ref-type="bibr" rid="B-023">23</xref>].</p></list-item>
                    <list-item><p>The Proposed XI2S-IDS method proposes a two-stage explanation intrusion detection system with SHAP-based insights designed to detect both high-frequency and low-frequency attack behaviors. It has been demonstrated that a hierarchical model can enhance explainability and performance [<xref ref-type="bibr" rid="B-024">24</xref>].</p></list-item>
                    <list-item><p>In feature engineering-driven work, hybrid feature selection and preprocessing (e.g., k-Means-based SMOTE with Light Gradient Boosting Machines) were applied, combining SHAP to improve model generalizability and interpretability on datasets like CICIDS2017 [<xref ref-type="bibr" rid="B-024">24</xref>].</p></list-item>
                </list>
            </sec>
            <sec id="sec-03-04">
                <label>3.4</label>
                <title>Summary of Gaps in Literature</title>
                <p>Despite the considerable progress that has been achieved, there are still gaps identified by existing research, which this work specifically aims to fill:</p>
                <list list-type="bullet">
                    <list-item><p>Operational Explainability: A lot of effort is utilized to utilize XAI as a silver bullet, but these explanations are not translated to provide actionable security insights for analysts in the SOC environment [<xref ref-type="bibr" rid="B-019">19</xref>].</p></list-item>
                    <list-item><p>Scope of Datasets: Although some research works leverage benchmark datasets such as NSL-KDD and UNSW-NB15, fewer have focused on CICIDS2017, achieving the full explainability evaluations in line with the global and instance-level interpretation [<xref ref-type="bibr" rid="B-020">20</xref>].</p></list-item>
                    <list-item><p>Comparison baselines: Few papers systematically compare bottleneck ML models with explainable ensemble techniques and quantify the impact of the explainability along with typical performance measurements [<xref ref-type="bibr" rid="B-022">22</xref>].</p></list-item>
                </list>
                <p>This project will close these gaps by systematically benchmarking explainable ML models on the CICIDS2017 dataset, with not only quantitative performance comparisons but also qualitative interpretability analyses that enable actionable security insights.</p>
            </sec>
        </sec>
        <sec id="sec-04">
            <label>4.</label>
            <title>Dataset Description and Preprocessing</title>
            <sec id="sec-04-01">
                <label>4.1</label>
                <title>Dataset Description</title>
                <p>This work uses the CICIDS2017 dataset, generated by the Canadian Institute for Cybersecurity (CIC), and is considered one of the most complete and realistic intrusion detection datasets. The dataset contains network traffic collected over five consecutive days, including both legitimate user activities and a wide range of attacks that mimic realistic network intrusions. These are Brute Force, Botnet, DoS/DDoS traffic, Port Scanning (Nmap &#x0026; Hping3), Web, and Infiltration attacks [<xref ref-type="bibr" rid="B-006">6</xref>]. Traffic was generated using actual user profiles, including HTTP, HTTPS, FTP, and SSH, as well as email services. Flow-based characteristics were computed by the CICFlowMeter tool that generated more than 80 statistical features per flow, which included:</p>
                <list list-type="bullet">
                    <list-item><p>Time-dependent characteristics: Duration of flows, Inter- class gaps between successive interleaved flows.</p></list-item>
                    <list-item><p>Packet level attributes: packet lengths, packet counts, header statistics.</p></list-item>
                    <list-item><p>Behavioral features: Flow bytes-per-second, flow packets-per-second.</p></list-item>
                    <list-item><p>Features based on the content: The count of flags, the length of headers, and the size of windows.</p></list-item>
                </list>
                <p>Each network flow is labeled as one of the attack types or &#x201C;BENIGN&#x201D;. The dataset is also well-suited for supervised attack detection because it has rich labels and a variety of attack types. Our study utilized the CICIDS2017 dataset released by the Canadian Institute for Cybersecurity (CIC), which contains network traffic collected over five consecutive days and includes both benign and malicious activities. The dataset comprises multiple attack categories, including Brute Force, DoS/DDoS, Botnet, PortScan, Web Attacks, and Infiltration attacks. The proposed framework relies on flow-based features generated by CICFlowMeter and does not utilize packet payload contents or host-level security telemetry. Consequently, the analysis is limited to behavioral characteristics observable at the network-flow level.</p>
            </sec>
            <sec id="sec-04-02">
                <label>4.2</label>
                <title>Data Characteristics</title>
                <list list-type="bullet">
                    <list-item><p>Feature Types: The dataset contains a mix of numerical, categorical, and protocol features. Most features are continuous and can be readily processed by a variety of learning methods.</p></list-item>
                    <list-item><p>Label Distribution: The other characteristic of CICIDS2017 is that it has a class imbalance problem. Some attacks, such as DDoS and port scans, are well-represented, while others (e.g., web attacks and infiltration) occur infrequently. This bias requires special handling to avoid biased model training.</p></list-item>
                </list>
            </sec>
            <sec id="sec-04-03">
                <label>4.3</label>
                <title>Data Preprocessing</title>
                <p>Data preprocessing involved removing invalid records, handling missing and infinite values, encoding categorical attributes, selecting features, and mitigating class imbalance. Records containing corrupted, missing, or non-numeric feature values were cleaned before model training. The final processed dataset was then partitioned into training, validation, and testing subsets for model development and evaluation.</p>
                <p>(1) Data Cleaning</p>
                <list list-type="bullet">
                    <list-item><p>Removing infinity: Features like &#x201C;Flow Packets/s&#x201D; can be infinite (Infinity) due to division by zero in the preprocessed data. These rows were dropped or replaced with safe defaults.</p></list-item>
                    <list-item><p>Handling of missing values: Even though the flows are clean, some flows have missing values as a result of traffic capture failures. They were then imputed with the media to maintain distribution stability.</p></list-item>
                </list>
                <p>(2) Feature Selection: Although CICIDS2017 offers 80+ features, many are:</p>
                <list list-type="bullet">
                    <list-item><p>Redundant (e.g., near-constant features),</p></list-item>
                    <list-item><p>Perfectly correlated with others,</p></list-item>
                    <list-item><p>Or computationally uninformative.</p></list-item>
                    <list-item><p>Variance thresholding and correlation analysis were used to eliminate such features before modeling.</p></list-item>
                </list>
                <p>(3) Encoding Categorical Variables: The &#x201C;Protocol&#x201D; attribute (TCP, UDP, ICMP) was one-hot encoded to allow ML algorithms to train on protocol groups without assuming an inherent order within them.</p>
                <p>(4) Data Normalization/Standardization: Machine learning models are scale-sensitive. Two normalization strategies were evaluated:</p>
                <list list-type="bullet">
                    <list-item><p>MinMax Scaling for Logistic Regression and MLP.</p></list-item>
                    <list-item><p>StandardScaler for tree-based models, e.g., Random Forest and XGBoost (trees do not need scaling, but standardizing may help in numerical stability).</p></list-item>
                </list>
                <p>(5) Handling Class Imbalance: Class imbalance was mitigated using:</p>
                <list list-type="bullet">
                    <list-item><p>SMOTE to oversample minority attack classes.</p></list-item>
                    <list-item><p>Under-sampling of majority classes (optional, depending on experiment setup).</p></list-item>
                    <list-item><p>SMOTE was observed to be useful for enhancing recall for small attack classes without overly distorting feature distributions.</p></list-item>
                </list>
                <p>(6) Dataset Splitting: The dataset was split into 70% training, 15% validation, and 15% testing. Split on class labels to control the attack proportion between splits.</p>
            </sec>
            <sec id="sec-04-04">
                <label>4.4</label>
                <title>Preprocessing Challenges and Observations</title>
                <list list-type="bullet">
                    <list-item><p>Severe Imbalance: Web and Infiltration were highly underrepresented and caused harmful classifiers if oversampling is not used.</p></list-item>
                    <list-item><p>High Dimensionality: Early models with all 80 features were found to have redundancy and a reduced number of features.</p></list-item>
                    <list-item><p>Mixed Traffic Characteristics: It was troublesome to classify benign and attack flows as their statistical characteristics overlapped (especially at low intensity attacks).</p></list-item>
                    <list-item><p>Impact on Explainability: The importance of useful features was clearly improved after all irrelevant features were removed, and the SHAP interpretation has been dramatically increased.</p></list-item>
                </list>
            </sec>
        </sec>
        <sec id="sec-05">
            <label>5.</label>
            <title>Methodology</title>
            <p>This section presents a high-level view, modeling considerations, the feature engineering method, and the explainability aspects behind the development of the proposed data-driven intrusion detection mechanism (As illustrated in <xref ref-type="fig" rid="F-01">Figure 1</xref>). The approach adheres to a well-defined machine learning pipeline designed to achieve reproducibility, interpretability, and high detection performance.</p>
            <fig id="F-01" orientation="portrait" position="float">
                <label>Figure 1</label>
                <caption>
                    <p>Conceptual Diagram of The System Workflow.</p>
                </caption>
                <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="Figure01.jpg"/>
            </fig>
            <sec id="sec-05-01">
                <label>5.1</label>
                <title>Overview of the System Architecture</title>
                <p>The proposed IDS adopts a modular, data-driven structure comprising five primary stages: Data Processing, Preprocessing &#x0026; Feature Engineering, Model Training &#x0026; Baseline Comparisons, Explainability Analysis using SHAP, Evaluation &#x0026; Security Interpretation. A conceptual diagram of the system workflow is described below:</p>
            </sec>
            <sec id="sec-05-02">
                <label>5.2</label>
                <title>Feature Engineering</title>
                <p>Feature engineering is a key to improving model performance and interpretability. The following strategies were used:</p>
                <p>(1) Feature Extraction through Statistics: The dataset that comes with CICIDS2017 already includes 80+ flow-based features, but some preprocessing-dependent ones were employed for in-house evaluation, such as:</p>
                <list list-type="bullet">
                    <list-item><p>Flow byte-per-packet ratios.</p></list-item>
                    <list-item><p>Burst rate indicators.</p></list-item>
                    <list-item><p>Packet size entropy (optional).</p></list-item>
                    <list-item><p>It is these features that are used to expose the fine-grained distinctions in benign and attack traffic behavior.</p></list-item>
                </list>
                <p>(2) Feature Selection: Feature selection was conducted to reduce redundancy and improve model interpretability. The process involved removing low-information and highly correlated features, followed by importance-based ranking using tree-based models. This step was performed during model development before final model training and explainability analysis. Feature selection was performed in two stages to prevent overfitting and enhance the interpretability:</p>
                <list list-type="bullet">
                    <list-item><p>Correlation-Based Feature Reduction: Highly correlated features were excluded (|corr| &#x003E; 0.9).</p></list-item>
                    <list-item><p>Tree-Based Feature Importance: The most salient features were located using the Random Forest classifier before training the end models.</p></list-item>
                    <list-item><p>These steps reduced dimensionality and increased the interpretability of SHAP feature contributions.</p></list-item>
                </list>
            </sec>
            <sec id="sec-05-03">
                <label>5.3</label>
                <title>Machine Learning Models</title>
                <p>Several baseline and state-of-the-art supervised machine learning algorithms were selected for comparison. These models can be divided into three categories:</p>
                <p>(1) Baseline Models: These baselines are critical for new performance models.</p>
                <list list-type="bullet">
                    <list-item><p>Logistic Regression (LR): A simple and easy-to-understand classification as a baseline.</p></list-item>
                    <list-item><p>NB: Good for well-spread numerical features.</p></list-item>
                </list>
                <p>(2) Ensemble Learning Models: Ensemble models were selected as they are stable, have nonlinear decision boundaries, and perform well in high-dimensional security datasets: Random Forest (RF) and XGBoost Gradient Boosting (XGB). We choose XGBoost as our high-performance model because of its well-demonstrated success in the network intrusion detection literature [<xref ref-type="bibr" rid="B-001">1</xref>].</p>
                <p>(3) Deep Learning Model: A Multilayer Perceptron (MLP) with:</p>
                <list list-type="bullet">
                    <list-item><p>Input layer &#x2248; selected features count.</p></list-item>
                    <list-item><p>Two hidden layers (ReLU activations).</p></list-item>
                    <list-item><p>Output layer with Softmax.</p></list-item>
                </list>
                <p>We add this model to compare classical ML with neural models.</p>
            </sec>
            <sec id="sec-05-04">
                <label>5.4</label>
                <title>Training Strategy</title>
                <p>(1) Train&#x2013;Validation&#x2013;Test Structure: The dataset was divided into 70% for training, 15% for validation, and 15% for evaluation, with stratified label distribution.</p>
                <p>(2) Hyperparameter Optimization: A combination of:</p>
                <list list-type="bullet">
                    <list-item><p>Grid Search (for LR, NB, RF).</p></list-item>
                    <list-item><p>Random Search (for XGBoost and MLP).</p></list-item>
                </list>
                <p>was employed to optimize parameters such as:</p>
                <list list-type="bullet">
                    <list-item><p>Number of estimators.</p></list-item>
                    <list-item><p>Learning rate.</p></list-item>
                    <list-item><p>Maximum tree depth.</p></list-item>
                    <list-item><p>Hidden layer sizes.</p></list-item>
                </list>
                <p>All models were optimized on the validation set to prevent overfitting.</p>
            </sec>
            <sec id="sec-05-05">
                <label>5.5</label>
                <title>XAI Component (SHAP)</title>
                <p>Explanation is a key component of this project. SHapley Additive exPlanations (SHAP) was introduced into the pipeline to explain model outputs.</p>
                <p>(1) Global Explainability: SHAP was used to compute:</p>
                <list list-type="bullet">
                    <list-item><p>Average feature importance over all the samples in the dataset.</p></list-item>
                    <list-item><p>Feature interactions.</p></list-item>
                    <list-item><p>Implications on a global scale (summary bar charts &#x0026; beeswarm plots).</p></list-item>
                    <list-item><p>This analysis identifies the network traffic characteristics that contribute most significantly to attack detection.</p></list-item>
                </list>
                <p>(2) Local Explainability: For specific flows (e.g., misclassifications):</p>
                <list list-type="bullet">
                    <list-item><p>SHAP force plots were generated.</p></list-item>
                    <list-item><p>Local feature contributions were analyzed.</p></list-item>
                    <list-item><p>Interpretations connecting model decisions to physical traffic policies were provided.</p></list-item>
                    <list-item><p>This can help analysts understand why traffic flow was considered malicious.</p></list-item>
                </list>
            </sec>
            <sec id="sec-05-06">
                <label>5.6</label>
                <title>Security Interpretation Layer</title>
                <p>Security-related patterns to which SHAP findings were applied. Beyond ML interpretation, we mapped SHAP findings to the following security-related:</p>
                <list list-type="bullet">
                    <list-item><p>High packet transmission rates may indicate DDoS activity.</p></list-item>
                    <list-item><p>Short-duration flows with elevated SYN counts may indicate port-scanning behavior.</p></list-item>
                    <list-item><p>Significant outbound traffic spikes may suggest botnet communication or data exfiltration activity.</p></list-item>
                </list>
            </sec>
            <sec id="sec-05-07">
                <label>5.7</label>
                <title>Rationale for Modeling Choices</title>
                <list list-type="bullet">
                    <list-item><p>We chose to use XGBoost as the main model for its consistently high performance in IDS literature [<xref ref-type="bibr" rid="B-025">25</xref>].</p></list-item>
                    <list-item><p>Random Forest is robust and easy to interpret.</p></list-item>
                    <list-item><p>MLP facilitates the comparison of classic and deep methods.</p></list-item>
                    <list-item><p>SHAP is a more sound, consistent explanation compared to LIME or saliency-like methods for tabular data [<xref ref-type="bibr" rid="B-015">15</xref>].</p></list-item>
                </list>
            </sec>
        </sec>
        <sec id="sec-06">
            <label>6.</label>
            <title>Experimental Setup</title>
            <p>The software settings, hardware specifications, and implementation tools, along with the baseline models, training processes, and evaluation measures for the experiments, are all presented in this section. The aim is to fully reproduce the results and facilitate objective comparisons across different ML models.</p>
            <sec id="sec-06-01">
                <label>6.1</label>
                <title>Software Environment</title>
                <p>All experiments were written in the Python scientific computing stack. The following tools and libraries were utilized:</p>
                <list list-type="bullet">
                    <list-item><p>Python 3.10.</p></list-item>
                    <list-item><p>Scikit-learn 1.x for traditional ML models, pre-processing, metrics, and model evaluation [<xref ref-type="bibr" rid="B-026">26</xref>].</p></list-item>
                    <list-item><p>XGBoost 2.x for gradient boosting experiments.</p></list-item>
                    <list-item><p>TensorFlow 2.x/Keras for the Multilayer Perceptron (MLP) model architecture construction.</p></list-item>
                    <list-item><p>Pandas 2.x for data manipulation and transformation.</p></list-item>
                    <list-item><p>NumPy 1.x for numerical operations.</p></list-item>
                    <list-item><p>Matplotlib/Seaborn for data visualization and visualizing the plots of evaluation metrics.</p></list-item>
                    <list-item><p>explainability analysis with SHAP 0.44 or later [<xref ref-type="bibr" rid="B-027">27</xref>] and Shapley values.</p></list-item>
                </list>
                <p>All implementations were done in Jupyter Notebook to facilitate experimentation and demonstration of results.</p>
            </sec>
            <sec id="sec-06-02">
                <label>6.2</label>
                <title>Hardware Configuration</title>
                <p>The models were trained and evaluated on the following hardware configuration:</p>
                <list list-type="bullet">
                    <list-item><p>Processor: Intel Core i7.</p></list-item>
                    <list-item><p>RAM: 32 GB.</p></list-item>
                    <list-item><p>GPU (optional): NVIDIA QUADRO 4GB for optimization of MLP training.</p></list-item>
                    <list-item><p>Storage: An SSD was used to facilitate efficient processing of the large CICIDS2017 dataset.</p></list-item>
                </list>
                <p>The main machine learning models (Random Forest, XGBoost) were efficiently computed on the CPU, and deep learning experiments were sped up by running them on a GPU.</p>
            </sec>
            <sec id="sec-06-03">
                <label>6.3</label>
                <title>Baseline Models</title>
                <p>To make comparisons, the following baseline models were established:</p>
                <list list-type="bullet">
                    <list-item><p>Logistic Regression (LR).</p></list-item>
                    <list-item><p>Na&#x00EF;ve Bayes (NB).</p></list-item>
                    <list-item><p>Decision Tree (DT).</p></list-item>
                </list>
                <p>These are benchmark models that provide a baseline for comparing improvements obtained with better models.</p>
            </sec>
            <sec id="sec-06-04">
                <label>6.4</label>
                <title>Advanced Models</title>
                <p>We selected two principal groups of advanced models:</p>
                <p>(1) Ensemble Models</p>
                <list list-type="bullet">
                    <list-item><p>Random Forest (RF).</p></list-item>
                    <list-item><p>XGBoost (XGB).</p></list-item>
                </list>
                <p>Ensemble techniques are chosen because they have historically performed well in network intrusion detection benchmarks.</p>
                <p>(2) Deep Learning Model (Optional)</p>
                <list list-type="bullet">
                    <list-item>
                        <p>Multilayer Perceptron (MLP) with:
                            <list list-type="bullet">
                                <list-item><p>And the second hidden layer (64 and 32 units).</p></list-item>
                                <list-item><p>ReLU activation.</p></list-item>
                                <list-item><p>Dropout (0.3 probability).</p></list-item>
                                <list-item><p>Softmax output layer.</p></list-item>
                                <list-item><p>This framework also allows for a contrast between classical and neural exposures.</p></list-item>
                            </list>
                        </p>
                    </list-item>
                </list>
            </sec>
            <sec id="sec-06-05">
                <label>6.5</label>
                <title>Training and Validation Procedure</title>
                <p>(1) Dataset Splitting</p>
                <p>The CICIDS2017 dataset was divided into 70&#x2013;15&#x2013;15 in a stratified fashion to keep the class imbalance properties in each set:</p>
                <list list-type="bullet">
                    <list-item><p>70% training.</p></list-item>
                    <list-item><p>15% validation.</p></list-item>
                    <list-item><p>15% testing.</p></list-item>
                </list>
                <p>The CICIDS2017 dataset was partitioned using a stratified random split (70% training, 15% validation, and 15% testing) to preserve the class distribution across all subsets. No day-based partitioning was employed in the current study.</p>
                <p>(2) Hyperparameter Tuning</p>
                <p>Hyperparameter optimization was performed using Grid Search for conventional machine learning models and Random Search for more computationally demanding models. The tuning process used the validation set to reduce overfitting and improve model generalization. Model hyperparameters were tuned using:</p>
                <list list-type="bullet">
                    <list-item><p>Grid Search on Logistic Regression, Decision Tree, and Random Forest.</p></list-item>
                    <list-item><p>Randomized Search (since grid searching is computationally expensive) for XGBoost and MLP.</p></list-item>
                </list>
                <p>Hyperparameters considered include:</p>
                <list list-type="bullet">
                    <list-item><p>Number of trees.</p></list-item>
                    <list-item><p>Max depth.</p></list-item>
                    <list-item><p>Learning rate (XGBoost).</p></list-item>
                    <list-item><p>Regularization strength (LR).</p></list-item>
                    <list-item><p>Hidden layer sizes (MLP).</p></list-item>
                </list>
                <p>(3) Class Imbalance Handling</p>
                <p>To address class imbalance, SMOTE was applied exclusively to the training set. The validation and testing sets remained unchanged to ensure an unbiased evaluation of model performance. While SMOTE can improve minority-class representation, synthetic samples may not fully capture the complexity of real network traffic patterns. Specifically, for balanced learning on the attack classes with a small number of records:</p>
                <list list-type="bullet">
                    <list-item><p>The training data was oversampled using SMOTE.</p></list-item>
                    <list-item><p>tuned the class weights for LR, DT, and RF models.</p></list-item>
                </list>
                <p>Because we had limited computational power, we capped the maximum number of samples per class at 15,000. We had to perform undersampling on classes with more than 15,000 records. No resampling was performed on the validation and test sets to avoid bias. Also, to prevent data leakage, all preprocessing operations, including feature selection, normalization, and SMOTE oversampling, were performed exclusively on the training set. The validation and testing sets remained isolated throughout model development and hyperparameter tuning.</p>
            </sec>
            <sec id="sec-06-06">
                <label>6.6</label>
                <title>Evaluation Metrics</title>
                <p>The classification performance was evaluated using the following metrics:</p>
                <list list-type="bullet">
                    <list-item><p>Accuracy (ACC).</p></list-item>
                    <list-item><p>Precision (P).</p></list-item>
                    <list-item><p>Recall (R).</p></list-item>
                    <list-item><p>F1-score.</p></list-item>
                    <list-item><p>ROC-AUC (multi-class via One-vs-Rest scheme).</p></list-item>
                </list>
                <p>For class-wise analysis, the confusion matrix. These measures demonstrate the trade-offs between false positives and false negatives required in intrusion detection.</p>
            </sec>
            <sec id="sec-06-07">
                <label>6.7</label>
                <title>Explainability Analysis Setup</title>
                <p>(1) SHAP Configuration</p>
                <p>SHAP values were calculated for the best model (often XGBoost):</p>
                <list list-type="bullet">
                    <list-item><p>The model is interpreted using TreeExplainer, which is an optimized explainer for tree-based models.</p></list-item>
                    <list-item><p>global SHAP summaries were derived based on samples of 5,000 instances randomly chosen from the dataset.</p></list-item>
                    <list-item>
                        <p>Local explanations were generated for:
                            <list list-type="bullet">
                                <list-item><p>Misclassified flows.</p></list-item>
                                <list-item><p>Borderline benign/malicious samples.</p></list-item>
                                <list-item><p>Representative Examples for each Class of Attacks.</p></list-item>
                            </list>
                        </p>
                    </list-item>
                </list>
                <p>(2) Visualization Outputs</p>
                <p>The following are the SHAP plots that were generated:</p>
                <list list-type="bullet">
                    <list-item><p>Global summary plot.</p></list-item>
                    <list-item><p>Feature importance ranking.</p></list-item>
                    <list-item><p>Beeswarm plot.</p></list-item>
                    <list-item><p>Force plots for individual predictions.</p></list-item>
                </list>
                <p>These visualizations form the basis for later security interpretation.</p>
            </sec>
            <sec id="sec-06-08">
                <label>6.8</label>
                <title>Reproducibility Considerations</title>
                <p>To ensure reproducibility:</p>
                <list list-type="bullet">
                    <list-item><p>Random seeds were set for NumPy, scikit-learn, XGBoost, and TensorFlow.</p></list-item>
                    <list-item><p>Each experiment was performed with three replicates, and the mean values are shown.</p></list-item>
                    <list-item><p>Pre-processing the Data: Pre-processing scripts were saved with Jupyter notebooks.</p></list-item>
                </list>
            </sec>
        </sec>
        <sec id="sec-07">
            <label>7.</label>
            <title>Results and Discussion</title>
            <p>This section presents the performance of all machine learning models evaluated on the CICIDS2017 dataset, along with interpretability results derived from SHAP. The discussion emphasizes both quantitative findings and their cybersecurity implications.</p>
            <sec id="sec-07-01">
                <label>7.1</label>
                <title>Quantitative Performance Results</title>
                <p><xref ref-type="table" rid="T-01">Table 1</xref> summarizes the performance of all baseline and advanced models on the test set using standard evaluation metrics.</p>
                <table-wrap id="T-01" orientation="portrait" position="float">
                    <label>Table 1</label>
                    <caption>
                        <title>Performance Comparison of ML Models on CICIDS2017.</title>
                    </caption>
                    <table frame="hsides" rules="none">
                        <thead>
                            <tr>
                                <td valign="middle" align="left"><bold><italic>Model</italic></bold></td>
                                <td valign="middle" align="left"><bold><italic>Accuracy</italic></bold></td>
                                <td valign="middle" align="left"><bold><italic>Precision</italic></bold></td>
                                <td valign="middle" align="left"><bold><italic>Recall</italic></bold></td>
                                <td valign="middle" align="left"><bold><italic>F1-score</italic></bold></td>
                                <td valign="middle" align="left"><bold><italic>ROC-AUC</italic></bold></td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td valign="middle" align="left">Logistic Regression</td>
                                <td valign="middle" align="left">0.8980</td>
                                <td valign="middle" align="left">0.9764</td>
                                <td valign="middle" align="left">0.8980</td>
                                <td valign="middle" align="left">0.9305</td>
                                <td valign="middle" align="left">0.9884</td>
                            </tr>
                            <tr>
                                <td valign="middle" align="left">Na&#x00EF;ve Bayes</td>
                                <td valign="middle" align="left">0.8708</td>
                                <td valign="middle" align="left">0.9825</td>
                                <td valign="middle" align="left">0.8708</td>
                                <td valign="middle" align="left">0.9192</td>
                                <td valign="middle" align="left">0.9891</td>
                            </tr>
                            <tr>
                                <td valign="middle" align="left">Decision Tree</td>
                                <td valign="middle" align="left">0.9885</td>
                                <td valign="middle" align="left">0.9928</td>
                                <td valign="middle" align="left">0.9885</td>
                                <td valign="middle" align="left">0.9900</td>
                                <td valign="middle" align="left">0.9995</td>
                            </tr>
                            <tr>
                                <td valign="middle" align="left">Random Forest</td>
                                <td valign="middle" align="left">0.9991</td>
                                <td valign="middle" align="left">0.9993</td>
                                <td valign="middle" align="left">0.9991</td>
                                <td valign="middle" align="left">0.9991</td>
                                <td valign="middle" align="left">0.9999</td>
                            </tr>
                            <tr>
                                <td valign="middle" align="left">XGBoost (Best Model)</td>
                                <td valign="middle" align="left">0.9994</td>
                                <td valign="middle" align="left">0.9994</td>
                                <td valign="middle" align="left">0.9994</td>
                                <td valign="middle" align="left">0.9994</td>
                                <td valign="middle" align="left">0.9999</td>
                            </tr>
                            <tr>
                                <td valign="middle" align="left">MLP</td>
                                <td valign="middle" align="left">0.9864</td>
                                <td valign="middle" align="left">0.9907</td>
                                <td valign="middle" align="left">0.9864</td>
                                <td valign="middle" align="left">0.9879</td>
                                <td valign="middle" align="left">0.9997</td>
                            </tr>
                        </tbody>
                    </table>
                </table-wrap>
                <p content-type="sec-fourth">Key Observations:</p>
                <list list-type="bullet">
                    <list-item><p>On all evaluation criteria, XGBoost performed the best, marginally surpassing each of the other algorithms.</p></list-item>
                    <list-item><p>Random Forest came in a close second, considering the skyrocketing performance of ensembles on high-dimensional traffic data.</p></list-item>
                    <list-item><p>MLP did well but failed to outperform tree-based ensembles, as reported in previous IDS studies.</p></list-item>
                    <list-item><p>Logistic Regression and Na&#x00EF;ve Bayes are good baselines; they cannot model the nonlinear attack style.</p></list-item>
                </list>
            </sec>
            <sec id="sec-07-02">
                <label>7.2</label>
                <title>Confusion Matrix Analysis</title>
                <p>Confusion matrices indicate that:</p>
                <list list-type="bullet">
                    <list-item><p>XGBoost achieved very high detection performance for major attack categories, including DoS, DDoS, and PortScan, as reflected by the confusion matrix analysis.</p></list-item>
                    <list-item><p>Minority attack categories, such as Web Attacks and Infiltration, exhibited comparatively lower classification performance, highlighting the challenges associated with class imbalance.</p></list-item>
                    <list-item><p>After SMOTE, the recall of rare classes was significantly increased (Infiltration 0.62 &#x2192; 0.83).</p></list-item>
                </list>
                <p>Notable Misclassification Patterns:</p>
                <list list-type="bullet">
                    <list-item><p>A few benign flows were falsely identified as PortScan because of bursty traffic similar to the probing behavior.</p></list-item>
                    <list-item><p>Benign flows failed to detect benign web attacks when below certain thresholds on feature values for these Web Attacks.</p></list-item>
                </list>
                <p>These findings underscore the need to address class imbalance and ensure that rare attack forms are properly accounted for. A more detailed per-class performance analysis, including class-wise precision, recall, and F1-score reporting, is considered an important direction for future work.</p>
            </sec>
            <sec id="sec-07-03">
                <label>7.3</label>
                <title>ROC Curve Analysis</title>
                <p>ROC curves show:</p>
                <list list-type="bullet">
                    <list-item><p>All ensemble models resulted in ROC-AUC &#x003E;0.99.</p></list-item>
                    <list-item><p>Logistic Regression was quite predictive (0.95 ROC-AUC), with linear separate properties holding for many traffic behaviors.</p></list-item>
                    <list-item><p>Na&#x00EF;ve Bayes performed much less effectively because it relies upon independence assumptions and is more sensitive to the violation of the assumption of independence of correlated features.</p></list-item>
                </list>
            </sec>
            <sec id="sec-07-04">
                <label>7.4</label>
                <title>Explainability Results Using SHAP</title>
                <p>Although SHAP provides valuable model interpretability, generating explanations for large-scale datasets may introduce additional computational overhead compared with standard prediction pipelines. Similarly, deep learning models generally require greater computational resources for training and inference than traditional machine learning approaches. Therefore, practical deployment should consider the trade-off between explainability, detection performance, and computational efficiency. SHAP analysis was mostly performed based on the best-performing model (XGBoost).</p>
                <p>(1) Feature Global Importance: Global summary plots based on SHAP values showed that the key features for all attacks are:</p>
                <list list-type="bullet">
                    <list-item><p>Flow Duration</p></list-item>
                    <list-item><p>Packet Length Variance</p></list-item>
                    <list-item><p>Flow Bytes/s</p></list-item>
                    <list-item><p>Flow Packets/s</p></list-item>
                    <list-item><p>Average Packet Size</p></list-item>
                    <list-item><p>PSH Flag Count &#x2014; SYN Flag Count</p></list-item>
                </list>
                <p>These attributes closely resemble the well-known behavioral profiles of current network attacks.</p>
                <p>Interpretation:</p>
                <list list-type="bullet">
                    <list-item><p>High flow Packets/s are strong indicators of DDoS attacks.</p></list-item>
                    <list-item><p>Low Flow Duration with high SYN counts is a feature of PortScan.</p></list-item>
                    <list-item><p>High Outbound Bytes/s indicates Botnet command-and-control (C2) activity.</p></list-item>
                </list>
                <p>(2) Local Explanations: SHAP force plots of misclassified samples indicated:</p>
                <list list-type="bullet">
                    <list-item><p>A few benign flows were labeled as malicious based on bursty packet rate spikes.</p></list-item>
                    <list-item><p>For some of the Web Attack flows, there was not enough statistical deviation to lead to a high SHAP impact score that caused misclassification.</p></list-item>
                </list>
                <p>Such local explanations help analysts understand why false positives and false negatives occur.</p>
            </sec>
            <sec id="sec-07-05">
                <label>7.5</label>
                <title>Security Insights Derived from Explainability</title>
                <p>Explainability helps associate model predictions with underlying traffic characteristics, providing additional context that may assist security analysts in understanding detected attack behaviors.</p>
                <list list-type="order">
                    <list-item><p>DDoS Behavior Detected based on High Packet Rate: XGBoost repeatedly used the features describing packet bursts, which verified that rate-based detection methods were effective.</p></list-item>
                    <list-item><p>Detection of PortScan through Short-Duration, High-SYN Activity: Flows with short duration and multiple SYN flags appeared to rank as impactful by SHAP repeatably.</p></list-item>
                    <list-item><p>Outbound Byte Surge Anomalies Correlated to Data Exfiltration and Botnet Activity: SHAP reported surges in egress volume on decisions targeting either the botnet or infiltration categories.</p></list-item>
                    <list-item><p>Explainability reduced false alarms: Analysts could confirm that a detected activity is actual suspicious behavior, and not just noise-based predictions.</p></list-item>
                </list>
                <p>To demonstrate the operational value of explainability, we analyzed representative intrusion alerts generated by the XGBoost model. For example, flows labeled PortScan consistently showed large SHAP values for SYN Flag Count and small Flow Duration, allowing analysts to quickly associate the alert with reconnaissance activity rather than benign network behavior. Similarly, most DDoS alerts were triggered by increased values of Flow Packets/s and Packet Length Variance. These explanations provide interpretable evidence to support model decisions and can help analysts with alert validation, investigation prioritization, and reducing time spent interpreting black-box predictions. While a formal user study was beyond the scope of this work, these results demonstrate how SHAP-based explanations can help bridge the gap between machine learning outputs and analyst reasoning in operational security environments.</p>
                <p>While SHAP provides valuable insights into model behavior and enhances the interpretability of intrusion alerts, generating explanations introduces additional computational overhead compared with standard prediction pipelines. Therefore, practical deployment requires balancing the benefits of improved analyst understanding and trust against the associated computational cost. Evaluating this trade-off in terms of processing time, resource utilization, and operational security value remains an important topic for future industrial-scale studies. The interpretations presented in this study are derived from flow-level network characteristics. While these features provide valuable information for attack detection, additional context from packet payloads, DNS activity, authentication logs, and host-based telemetry could further enrich security analysis and improve detection capabilities. Besides, while flow-level features provide valuable indicators of attack behavior, combining them with additional security telemetry, including DNS activity and host-based events, could enhance contextual awareness and improve the distinction between malicious actions and legitimate user activities.</p>
            </sec>
            <sec id="sec-07-06">
                <label>7.6</label>
                <title>Error Analysis</title>
                <p>Despite applying SMOTE, minority attack classes, such as Infiltration, remained more difficult to classify than major attack categories. This behavior is likely attributable to the limited number of representative samples and the subtle statistical characteristics of these attacks, which make them less distinguishable from benign traffic. These findings highlight the ongoing challenges posed by imbalanced intrusion detection datasets.</p>
                <p>False Positives: Mostly associated with:</p>
                <list list-type="bullet">
                    <list-item><p>Legitimate services&#x2019; high-frequency traffic patterns</p></list-item>
                    <list-item><p>Bursty user activities (file transfer, large download, etc.)</p></list-item>
                </list>
                <p>False Negatives: Primarily occurred in:</p>
                <list list-type="bullet">
                    <list-item><p>Low-volume attack classes</p></list-item>
                    <list-item><p>On-line and infiltration attacks with nonchromatic feature patterns.</p></list-item>
                </list>
                <p>Some extra data collection or feature augmentation could mitigate those mistakes.</p>
            </sec>
            <sec id="sec-07-07">
                <label>7.7</label>
                <title>Summary of Findings</title>
                <list list-type="order">
                    <list-item><p>The XGBoost and ensemble models perform best in terms of both conducting precise and melee attacks.</p></list-item>
                    <list-item><p>SHAP gives us a rich interpretability that maps statistical patterns to meaningful attack behaviors.</p></list-item>
                    <list-item><p>The compromise between performance and explainability makes the proposed IDS applicable for real SOC settings.</p></list-item>
                </list>
            </sec>
        </sec>
        <sec id="sec-08">
            <label>8.</label>
            <title>Conclusion, Future Directions, and Limitations</title>
            <sec id="sec-08-01">
                <label>8.1</label>
                <title>Conclusions</title>
                <p>In this paper, we propose a data-driven intrusion detection framework that combines machine learning and explanation technologies to improve the interpretation of malicious network traffic. Based on the CICIDS2017 dataset, we compared several baselines and found that XGBoost achieved superior performance across accuracy, precision, recall, F1-score, and ROC-AUC. The results showed that ensemble methods could better capture nonlinear and complex attack behaviors than traditional machine learning models and deep learning baselines. One important contribution of this work is the adoption of SHAP to make model outputs transparent and interpretable. Explainability analysis identified salient network flow&#x2013;based features influencing detection decisions and derived explicit behaviors for DDoS, PortScan, and Botnet activities. These findings represent a step forward in translating raw statistical detection scores into actionable intelligence for security analysts and in rendering the system more appropriate for operational use in SOCs. In general, the results show that integrating robust explainability with high-performing machine learning models improves the effectiveness and trust of IDS. This combined approach improves both detection effectiveness and interpretability, making the framework more suitable for practical cybersecurity applications.</p>
            </sec>
            <sec id="sec-08-02">
                <label>8.2</label>
                <title>Future Directions</title>
                <p>Future work will investigate temporal and day-based evaluation strategies to better assess model robustness and generalization under realistic network deployment scenarios. Besides, although promising, the following two issues still need to be better implemented:</p>
                <list list-type="bullet">
                    <list-item><p>Zero-Day Attack Detection: Although unsupervised approaches such as autoencoders have shown promise for anomaly and zero-day attack detection, they were not implemented or evaluated in the current study. Their integration with the proposed explainable intrusion detection framework represents an important direction for future research.</p></list-item>
                    <list-item><p>Real-Time IDS Deployment: This study is based on offline batch processing. Probable future work: Dynamic streaming. Once deployed in a real-time streaming system with Apache Kafka, Spark Streaming, or the ELK Stack, we can evaluate the word detection model under realistic operating conditions.</p></list-item>
                    <list-item><p>Federated and Distributed Learning: Moreover, since network data is often privacy-sensitive and stored across various organizational boundaries, federated learning techniques can be used to enable collaboration in the IDS model training process without exposing raw data. This is achieved using a method that improves both performance and privacy.</p></list-item>
                    <list-item><p>Advanced Deep Learning Models: Future studies may explore: Transformer-based architecture, GNN for Flow-relationship Modeling, and Hybrid CNN&#x2013;LSTM designs for temporally correlated pattern recognition. These models could enhance detection ability for complex or multi-staged temporal attacks.</p></list-item>
                    <list-item><p>Enhanced Explainability: Although SHAP delivers strong intuition, other types of XAI techniques could be examined, including LIME for instance-level approximations, EBM (Explainable Boosting Machines), and Counterfactual explanations to steer analysts to alternative actions that would reverse classification decisions. Developing hybrid explainability methods may yield richer, more varied insights into interoperability.</p></list-item>
                    <list-item><p>Expanded Feature Engineering and Traffic Context: More context, such as DNS logs, user authentication, and/or host-based telemetry, could supplement flow data analysis to improve detection precision and reduce false positives.</p></list-item>
                    <list-item><p>Future work will investigate alternative imbalance-handling strategies, including cost-sensitive learning and class-weighted models, and compare their effectiveness against SMOTE-based oversampling in intrusion detection applications.</p></list-item>
                    <list-item><p>While SHAP explanations provided meaningful interpretations of model decisions, the practical value of these explanations for security analysts was not formally evaluated through user studies or operational SOC assessments. Future work will investigate the effectiveness of explainability techniques in supporting analyst decision-making and reducing investigation time in real-world environments.</p></list-item>
                    <list-item><p>The proposed framework primarily contributes through the integration of high-performing machine learning models with XAI techniques for intrusion detection. While the framework demonstrates promising results, further validation through cross-dataset experiments, real-world deployments, and analyst-centered evaluations would strengthen its practical impact and generalizability.</p></list-item>
                    <list-item><p>The current framework was developed and evaluated in an offline batch-processing environment using a benchmark dataset. Consequently, its performance under real-time network conditions was not assessed. Future work will focus on deploying and evaluating the framework in streaming environments to investigate its scalability, latency, and operational effectiveness in real-world intrusion detection scenarios.</p></list-item>
                    <list-item><p>Future research will investigate advanced imbalance-handling strategies, cost-sensitive learning approaches, and enhanced feature engineering techniques to improve the detection of underrepresented attack classes, particularly Infiltration and Web Attack categories.</p></list-item>
                </list>
            </sec>
            <sec id="sec-08-03">
                <label>8.3</label>
                <title>Limitations and Challenges</title>
                <list list-type="bullet">
                    <list-item><p>Although the proposed framework achieved very high performance on CICIDS2017, future work will evaluate the model using temporal splits and cross-dataset validation to assess its robustness and generalizability further.</p></list-item>
                    <list-item><p>Although the reported results demonstrate strong overall performance, additional class-wise evaluation metrics, such as Macro-F1 and per-class Precision, Recall, and F1-score, provide further insight into the detection performance of minority attack categories. Future work will include a more detailed class-level analysis to complement the overall evaluation metrics.</p></list-item>
                    <list-item><p>Although the preprocessing pipeline is described in detail, some implementation-level statistics, such as the exact number of records removed during data cleaning, were not retained. Future studies will document all preprocessing operations and the intermediate dataset to enhance reproducibility further.</p></list-item>
                    <list-item><p>Although the feature selection methodology is described, the exact set of retained features and implementation-specific selection thresholds were not fully documented. Future studies will provide complete feature-selection logs and selected feature lists to improve reproducibility further and facilitate independent validation of the reported SHAP interpretations.</p></list-item>
                    <list-item><p>Although the hyperparameter optimization strategy is described, the complete search spaces, final parameter configurations, and random seed settings were not fully retained. Future work will provide detailed reproducibility artifacts, including hyperparameter configurations and experimental settings, to support independent verification and comparison of results.</p></list-item>
                    <list-item><p>A limitation of the proposed framework is its reliance on supervised learning, which requires labeled training data and may reduce effectiveness against previously unseen or evolving zero-day attacks. Future work will investigate anomaly-based, semi-supervised, and unsupervised learning approaches to improve the detection of novel threats and emerging attack patterns.</p></list-item>
                    <list-item><p>The present study focuses on offline intrusion detection and does not evaluate latency, throughput, or resource consumption in a real-time streaming environment. Future work will investigate deployment using streaming platforms such as Apache Kafka and Spark Streaming to assess operational performance, scalability, and real-time detection capabilities under realistic network conditions.</p></list-item>
                </list>
            </sec>
        </sec>
    </body>
    <back>
        <notes>
            <title>Author Contributions</title>
            <p>Moa&#x2019;ath Sa&#x2019;ad Al-A&#x2019;athal: Conceptualization, methodology, software, data curation, formal analysis, investigation, validation, visualization, writing&#x2014;original draft preparation. Qasem Abu Al-Haija: Conceptualization, supervision, methodology, validation, formal analysis, writing&#x2014;review and editing, project administration. All authors have read and agreed to the published version of the manuscript.</p>
        </notes>
        <notes notes-type="conflict-interest">
            <title>Competing Interests</title>  
            <p>The authors have declared that no competing interests exist.</p>          
        </notes>
        <notes>
            <title>AI-Assisted Technologies Statement</title>
            <p>The Grammarly tool was used to assist in proofreading and text polishing. No generative AI was used for data collection, statistical analysis, or interpretation of the results. All the content was reviewed and approved by the authors.</p>
        </notes>
        <ref-list>
            <title>References</title>
            <ref id="B-001">
                <label>1. </label>
                <mixed-citation publication-type="other">
                <name><surname>Sommer</surname><given-names>R</given-names></name>,
                <name><surname>Paxson</surname><given-names>V</given-names></name>.
                <article-title>Outside the closed world: On using machine learning for network intrusion detection</article-title>.
                <source>Proceedings of the 2010 IEEE Symposium on Security and Privacy; 2010 May 16-19; Oakland, CA, USA</source>.
                <publisher-loc>New York, NY</publisher-loc>:
                <publisher-name>IEEE</publisher-name>. pp.
                <fpage>305</fpage>-<lpage>316</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-002">
                <label>2. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Shwayat</surname><given-names>D</given-names></name>,
                <name><surname>Abu Al-Haija</surname><given-names>Q</given-names></name>,
                <name><surname>Alma&#x2019;aitah</surname><given-names>A</given-names></name>.
                <article-title>Resource-aware ML framework for multi-level cross-layer and cross-protocol attack detection in IoMT</article-title>.
                <source>J Supercomput</source>.
                <year iso-8601-date="2026">2026</year>; 
                <volume>82</volume>: 
                <fpage>291</fpage>.
                </mixed-citation>
            </ref>
            <ref id="B-003">
                <label>3. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Adadi</surname><given-names>A</given-names></name>,
                <name><surname>Berrada</surname><given-names>M</given-names></name>.
                <article-title>Peeking inside the black-box: A survey on explainable artificial intelligence (XAI)</article-title>.
                <source>IEEE Access</source>.
                <year iso-8601-date="2018">2018</year>; 
                <volume>6</volume>: 
                <fpage>52138</fpage>-<lpage>52160</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-004">
                <label>4. </label>
                <mixed-citation publication-type="other">
                <name><surname>Tavallaee</surname><given-names>M</given-names></name>,
                <name><surname>Bagheri</surname><given-names>E</given-names></name>,
                <name><surname>Lu</surname><given-names>W</given-names></name>,
                <name><surname>Ghorbani</surname><given-names>AA</given-names></name>.
                <article-title>A detailed analysis of the KDD CUP 99 data set</article-title>.
                <source>Proceedings of the 2009 IEEE Symposium on Computational Intelligence for Security and Defense Applications; 2019 July 08-10; Ottawa, ON, Canada</source>.
                <publisher-loc>New York, NY</publisher-loc>:
                <publisher-name>IEEE</publisher-name>. pp.
                <fpage>1</fpage>-<lpage>6</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-005">
                <label>5. </label>
                <mixed-citation publication-type="other">
                <name><surname>Moustafa</surname><given-names>N</given-names></name>,
                <name><surname>Slay</surname><given-names>J</given-names></name>.
                <article-title>UNSW-NB15: A comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set)</article-title>.
                <source>Proceedings of the 2015 Military Communications and Information Systems Conference (MilCIS); 2015 November 10-12; Canberra, ACT, Australia</source>.
                <publisher-loc>New York, NY</publisher-loc>:
                <publisher-name>IEEE</publisher-name>. pp.
                <fpage>1</fpage>-<lpage>6</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-006">
                <label>6. </label>
                <mixed-citation publication-type="other">
                <name><surname>Sharafaldin</surname><given-names>I</given-names></name>,
                <name><surname>Lashkari</surname><given-names>AH</given-names></name>,
                <name><surname>Ghorbani</surname><given-names>AA</given-names></name>.
                <article-title>Toward generating a new intrusion detection dataset and intrusion traffic characterization</article-title>.
                <source>Proceedings of the 4th International Conference on Information Systems Security and Privacy (ICISSP 2018); 2018 January 22-24; Funchal, Madeira, Portugal</source>.
                <publisher-loc>Set&#x00FA;bal, Portugal</publisher-loc>:
                <publisher-name>Science and Technology Publications</publisher-name>. pp. 
                <fpage>108</fpage>-<lpage>116</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-007">
                <label>7. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Tjoa</surname><given-names>E</given-names></name>,
                <name><surname>Guan</surname><given-names>C</given-names></name>.
                <article-title>A survey on explainable artificial intelligence (XAI): Toward medical XAI</article-title>.
                <source>IEEE Trans Neural Netw Learn Syst</source>.
                <year iso-8601-date="2020">2020</year>; 
                <volume>32</volume>: 
                <fpage>4793</fpage>-<lpage>4813</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-008">
                <label>8. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Al-Haija</surname><given-names>QA</given-names></name>,
                <name><surname>Alsulami</surname><given-names>AA</given-names></name>.
                <article-title>Fast anomalous traffic detection system for secure vehicular communications</article-title>.
                <source>Intell Converg Netw</source>.
                <year iso-8601-date="2024">2024</year>; 
                <volume>5</volume>: 
                <fpage>356</fpage>-<lpage>369</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-009">
                <label>9. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Mukherjee</surname><given-names>B</given-names></name>,
                <name><surname>Heberlein</surname><given-names>LT</given-names></name>,
                <name><surname>Levitt</surname><given-names>KN</given-names></name>.
                <article-title>Network intrusion detection</article-title>.
                <source>IEEE Netw</source>.
                <year iso-8601-date="1994">1994</year>; 
                <volume>8</volume>: 
                <fpage>26</fpage>-<lpage>41</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-010">
                <label>10. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Al-Haija</surname><given-names>QA</given-names></name>,
                <name><surname>Droos</surname><given-names>A</given-names></name>.
                <article-title>A comprehensive survey on deep learning-based intrusion detection systems in the Internet of Things (IoT)</article-title>.
                <source>Expert Syst</source>.
                <year iso-8601-date="2025">2025</year>; 
                <volume>42</volume>: 
                <fpage>e13726</fpage>.
                </mixed-citation>
            </ref>
            <ref id="B-011">
                <label>11. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Yin</surname><given-names>C</given-names></name>,
                <name><surname>Zhu</surname><given-names>Y</given-names></name>,
                <name><surname>Fei</surname><given-names>J</given-names></name>,
                <name><surname>He</surname><given-names>X</given-names></name>.
                <article-title>A deep learning approach for intrusion detection using recurrent neural networks</article-title>.
                <source>IEEE Access</source>.
                <year iso-8601-date="2017">2017</year>; 
                <volume>5</volume>: 
                <fpage>21954</fpage>-<lpage>21961</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-012">
                <label>12. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Javaid</surname><given-names>A</given-names></name>,
                <name><surname>Niyaz</surname><given-names>Q</given-names></name>,
                <name><surname>Sun</surname><given-names>W</given-names></name>,
                <name><surname>Alam</surname><given-names>M</given-names></name>.
                <article-title>A deep learning approach for network intrusion detection system</article-title>.
                <source>EAI Endorsed Trans Sec Saf</source>.
                <year iso-8601-date="2016">2016</year>; 
                <volume>3</volume>: 
                <fpage>21</fpage>-<lpage>26</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-013">
                <label>13. </label>
                <mixed-citation publication-type="book">
                <name><surname>Goodfellow</surname><given-names>I</given-names></name>,
                <name><surname>Bengio</surname><given-names>Y</given-names></name>,
                <name><surname>Courville</surname><given-names>A</given-names></name>.
                <article-title>Deep learning</article-title>.
                <publisher-loc>Cambridge, UK</publisher-loc>:
                <publisher-name>MIT Press</publisher-name>;
                <year iso-8601-date="2016">2016</year>.
                </mixed-citation>
            </ref>
            <ref id="B-014">
                <label>14. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Gunning</surname><given-names>D</given-names></name>,
                <name><surname>Stefik</surname><given-names>M</given-names></name>,
                <name><surname>Choi</surname><given-names>J</given-names></name>,
                <name><surname>Miller</surname><given-names>T</given-names></name>,
                <name><surname>Stumpf</surname><given-names>S</given-names></name>,
                <name><surname>Yang</surname><given-names>GZ</given-names></name>.
                <article-title>XAI&#x2014;Explainable artificial intelligence</article-title>.
                <source>Sci Robot</source>.
                <year iso-8601-date="2019">2019</year>; 
                <volume>4</volume>: 
                <fpage>eaay7120</fpage>.
                </mixed-citation>
            </ref>
            <ref id="B-015">
                <label>15. </label>
                <mixed-citation publication-type="other">
                <name><surname>Lundberg</surname><given-names>SM</given-names></name>,
                <name><surname>Lee</surname><given-names>SI</given-names></name>.
                <article-title>A unified approach to interpreting model predictions</article-title>.
                <source>Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017); 2017 December 04-09; Long Beach, CA, USA</source>.
                <publisher-loc>Red Hook, NY</publisher-loc>:
                <publisher-name>Curran Associates Inc</publisher-name>. pp.
                <fpage>4768</fpage>-<lpage>4777</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-016">
                <label>16. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Abu Al-Haija</surname><given-names>Q</given-names></name>,
                <name><surname>Al-Tamimi</surname><given-names>A</given-names></name>.
                <article-title>Secure aviation control through a streamlined ADS-B perception system</article-title>.
                <source>Appl Syst Innov</source>.
                <year iso-8601-date="2024">2024</year>; 
                <volume>7</volume>: 
                <fpage>27</fpage>.
                </mixed-citation>
            </ref>
            <ref id="B-017">
                <label>17. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Zhao</surname><given-names>Q</given-names></name>,
                <name><surname>Wang</surname><given-names>F</given-names></name>,
                <name><surname>Wang</surname><given-names>W</given-names></name>,
                <name><surname>Zhang</surname><given-names>T</given-names></name>,
                <name><surname>Wu</surname><given-names>H</given-names></name>,
                <name><surname>Ning</surname><given-names>W</given-names></name>.
                <article-title>Research on intrusion detection model based on improved MLP algorithm</article-title>.
                <source>Sci Rep</source>.
                <year iso-8601-date="2025">2025</year>; 
                <volume>15</volume>: 
                <fpage>5159</fpage>.
                </mixed-citation>
            </ref>
            <ref id="B-018">
                <label>18. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Ikram</surname><given-names>I</given-names></name>,
                <name><surname>Huma</surname><given-names>Z</given-names></name>.
                <article-title>An explainable AI approach to intrusion detection using interpretable machine learning models</article-title>.
                <source>Eur Vantage J Artif Intell</source>.
                <year iso-8601-date="2024">2024</year>; 
                <volume>1</volume>: 
                <fpage>57</fpage>-<lpage>66</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-019">
                <label>19. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Mohale</surname><given-names>VZ</given-names></name>,
                <name><surname>Obagbuwa</surname><given-names>IC</given-names></name>.
                <article-title>A systematic review on the integration of explainable artificial intelligence in intrusion detection systems to enhance transparency and interpretability in cybersecurity</article-title>.
                <source>Front Artif Intell</source>.
                <year iso-8601-date="2025">2025</year>; 
                <volume>8</volume>: 
                <fpage>1526221</fpage>.
                </mixed-citation>
            </ref>
            <ref id="B-020">
                <label>20. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Grabowski</surname><given-names>A</given-names></name>,
                <name><surname>Xu</surname><given-names>S</given-names></name>.
                <article-title>Advancing cybersecurity practice: Explainable machine learning for network intrusion detection</article-title>.
                <source>J Cybersecur Educ Res Pract</source>.
                <year iso-8601-date="2025">2025</year>; 
                <volume>2025</volume>: 
                <fpage>25</fpage>.
                </mixed-citation>
            </ref>
            <ref id="B-021">
                <label>21. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Muhammad</surname><given-names>AE</given-names></name>,
                <name><surname>Yow</surname><given-names>KC</given-names></name>,
                <name><surname>Ba&#x010D;anin-D&#x017E;akula</surname><given-names>N</given-names></name>,
                <name><surname>Khan</surname><given-names>MA</given-names></name>.
                <article-title>L-XAIDS: A LIME-based explainable AI framework for intrusion detection systems</article-title>.
                <source>Cluster Comput</source>.
                <year iso-8601-date="2025">2025</year>; 
                <volume>28</volume>: 
                <fpage>654</fpage>.
                </mixed-citation>
            </ref>
            <ref id="B-022">
                <label>22. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Ahmed</surname><given-names>U</given-names></name>,
                <name><surname>Jiangbin</surname><given-names>Z</given-names></name>,
                <name><surname>Almogren</surname><given-names>A</given-names></name>,
                <name><surname>Khan</surname><given-names>S</given-names></name>,
                <name><surname>Sadiq</surname><given-names>MT</given-names></name>,
                <name><surname>Altameem</surname><given-names>A</given-names></name>,
                <etal/>.
                <article-title>Explainable AI-based innovative hybrid ensemble model for intrusion detection</article-title>.
                <source>J Cloud Comp</source>.
                <year iso-8601-date="2024">2024</year>; 
                <volume>13</volume>: 
                <fpage>150</fpage>.
                </mixed-citation>
            </ref>
            <ref id="B-023">
                <label>23. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Khan</surname><given-names>MF</given-names></name>,
                <name><surname>Hassan</surname><given-names>MM</given-names></name>.
                <article-title>Explainable AI and machine learning models for transparent and scalable intrusion detection systems</article-title>.
                <source>J Inf Syst Eng Manage</source>.
                <year iso-8601-date="2024">2024</year>; 
                <volume>9</volume>: 
                <fpage>1576</fpage>-<lpage>1588</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-024">
                <label>24. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Al-Fayoumi</surname><given-names>M</given-names></name>,
                <name><surname>Alhijawi</surname><given-names>B</given-names></name>,
                <name><surname>Al-Haija</surname><given-names>QA</given-names></name>,
                <name><surname>Armoush</surname><given-names>R</given-names></name>.
                <article-title>XAI-PhD: Fortifying trust of phishing URL detection empowered by Shapley additive explanations</article-title>.
                <source>Int J Online Biomed Eng</source>.
                <year iso-8601-date="2024">2024</year>; 
                <volume>20</volume>: 
                <fpage>80</fpage>-<lpage>101</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-025">
                <label>25. </label>
                <mixed-citation publication-type="book">Korstanje J.
                <article-title>Gradient boosting with XGBoost and LightGBM</article-title>. In:
                <source>Advanced forecasting with Python</source>.
                <publisher-loc>Berkeley, CA</publisher-loc>:
                <publisher-name>Apress</publisher-name>;
                <year iso-8601-date="2021">2021</year>. pp.
                <fpage>193</fpage>-<lpage>205</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-026">
                <label>26. </label>
                <mixed-citation publication-type="journal">
                <name><surname>Pedregosa</surname><given-names>F</given-names></name>,
                <name><surname>Varoquaux</surname><given-names>G</given-names></name>,
                <name><surname>Gramfort</surname><given-names>A</given-names></name>,
                <name><surname>Michel</surname><given-names>V</given-names></name>,
                <name><surname>Thirion</surname><given-names>B</given-names></name>,
                <name><surname>Grisel</surname><given-names>O</given-names></name>,
                <etal/>.
                <article-title>Scikit-learn: Machine learning in Python</article-title>.
                <source>J Mach Learn Res</source>.
                <year iso-8601-date="2011">2011</year>; 
                <volume>12</volume>: 
                <fpage>2825</fpage>-<lpage>2830</lpage>.
                </mixed-citation>
            </ref>
            <ref id="B-027">
                <label>27. </label>
                <mixed-citation publication-type="book">
                <name><surname>Abu Al-Haija</surname><given-names>Q</given-names></name>,
                <name><surname>Alsulami</surname><given-names>AA</given-names></name>,
                <name><surname>Alturki</surname><given-names>B</given-names></name>,
                <name><surname>Alnabhan</surname><given-names>M</given-names></name>.
                <article-title>Securing the internet of flying things (IoFt): A proficient defense approach</article-title>.
                <source>In: Proceedings of Ninth International Congress on Information and Communication Technology</source>.
                <publisher-loc>Singapore</publisher-loc>:
                <publisher-name>Springer Nature</publisher-name>;
                <year iso-8601-date="2024">2024</year>. pp.
                <fpage>469</fpage>-<lpage>479</lpage>.
                </mixed-citation>
            </ref>
        </ref-list>
    </back>
</article>