<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xml:lang="en" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">CMC</journal-id>
<journal-id journal-id-type="nlm-ta">CMC</journal-id>
<journal-id journal-id-type="publisher-id">CMC</journal-id>
<journal-title-group>
<journal-title>Computers, Materials &#x0026; Continua</journal-title>
</journal-title-group>
<issn pub-type="epub">1546-2226</issn>
<issn pub-type="ppub">1546-2218</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">69641</article-id>
<article-id pub-id-type="doi">10.32604/cmc.2025.069641</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Interpretable Federated Learning Model for Cyber Intrusion Detection in Smart Cities with Privacy-Preserving Feature Selection</article-title>
<alt-title alt-title-type="left-running-head">Interpretable Federated Learning Model for Cyber Intrusion Detection in Smart Cities with Privacy-Preserving Feature Selection</alt-title>
<alt-title alt-title-type="right-running-head">Interpretable Federated Learning Model for Cyber Intrusion Detection in Smart Cities with Privacy-Preserving Feature Selection</alt-title>
</title-group>
<contrib-group>
<contrib id="author-1" contrib-type="author">
<name name-style="western"><surname>Farooq</surname><given-names>Muhammad Sajid</given-names></name><xref ref-type="aff" rid="aff-1">1</xref></contrib>
<contrib id="author-2" contrib-type="author">
<name name-style="western"><surname>Saleem</surname><given-names>Muhammad</given-names></name><xref ref-type="aff" rid="aff-2">2</xref></contrib>
<contrib id="author-3" contrib-type="author">
<name name-style="western"><surname>Khan</surname><given-names>M.A.</given-names></name><xref ref-type="aff" rid="aff-3">3</xref><xref ref-type="aff" rid="aff-4">4</xref></contrib>
<contrib id="author-4" contrib-type="author">
<name name-style="western"><surname>Khan</surname><given-names>Muhammad Farrukh</given-names></name><xref ref-type="aff" rid="aff-5">5</xref></contrib>
<contrib id="author-5" contrib-type="author">
<name name-style="western"><surname>Siddiqui</surname><given-names>Shahan Yamin</given-names></name><xref ref-type="aff" rid="aff-6">6</xref></contrib>
<contrib id="author-6" contrib-type="author">
<name name-style="western"><surname>Aslam</surname><given-names>Muhammad Shoukat</given-names></name><xref ref-type="aff" rid="aff-7">7</xref></contrib>
<contrib id="author-7" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Adnan</surname><given-names>Khan M.</given-names></name><xref ref-type="aff" rid="aff-8">8</xref><email>adnan@gachon.ac.kr</email></contrib>
<aff id="aff-1"><label>1</label><institution>Department of Cyber Security, NASTP Institute of Information Technology</institution>, <addr-line>Lahore, 58810</addr-line>, <country>Pakistan</country></aff>
<aff id="aff-2"><label>2</label><institution>Chitkara University Institute of Engineering and Technology, Chitkara University</institution>, <addr-line>Rajpura, 140401</addr-line>, <country>India</country></aff>
<aff id="aff-3"><label>3</label><institution>Riphah School of Computing &#x0026; Innovation, Faculty of Computing, Riphah International University</institution>, <addr-line>Lahore Campus, Lahore, 54000</addr-line>, <country>Pakistan</country></aff>
<aff id="aff-4"><label>4</label><institution>Applied Science Research Center, Applied Science Private University</institution>, <addr-line>Amman, 11937</addr-line>, <country>Jordan</country></aff>
<aff id="aff-5"><label>5</label><institution>Department of Artificial Intelligence, NASTP Institute of Information Technology</institution>, <addr-line>Lahore, 58810</addr-line>, <country>Pakistan</country></aff>
<aff id="aff-6"><label>6</label><institution>Department of Computer Science, NASTP Institute of Information Technology</institution>, <addr-line>Lahore, 58810</addr-line>, <country>Pakistan</country></aff>
<aff id="aff-7"><label>7</label><institution>Department of Computer Science, LIST</institution>, <addr-line>Lahore, 54890</addr-line>, <country>Pakistan</country></aff>
<aff id="aff-8"><label>8</label><institution>Department of Software, Faculty of Artificial Intelligence and Software, Gachon University</institution>, <addr-line>Seongnam-si, 13557</addr-line>, <country>Republic of Korea</country></aff>
</contrib-group>
<author-notes>
<corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Khan M. Adnan. Email: <email>adnan@gachon.ac.kr</email></corresp>
</author-notes>
<pub-date date-type="collection" publication-format="electronic">
<year>2025</year>
</pub-date>
<pub-date date-type="pub" publication-format="electronic">
<day>23</day><month>10</month><year>2025</year>
</pub-date>
<volume>85</volume>
<issue>3</issue>
<fpage>5183</fpage>
<lpage>5206</lpage>
<history>
<date date-type="received">
<day>27</day>
<month>6</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>18</day>
<month>8</month>
<year>2025</year>
</date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2025 The Authors.</copyright-statement>
<copyright-year>2025</copyright-year>
<copyright-holder>Published by Tech Science Press.</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_CMC_69641.pdf"></self-uri>
<abstract>
<p>The rapid evolution of smart cities through IoT, cloud computing, and connected infrastructures has significantly enhanced sectors such as transportation, healthcare, energy, and public safety, but also increased exposure to sophisticated cyber threats. The diversity of devices, high data volumes, and real-time operational demands complicate security, requiring not just robust intrusion detection but also effective feature selection for relevance and scalability. Traditional Machine Learning (ML) based Intrusion Detection System (IDS) improves detection but often lacks interpretability, limiting stakeholder trust and timely responses. Moreover, centralized feature selection in conventional IDS compromises data privacy and fails to accommodate the decentralized nature of smart city infrastructures. To address these limitations, this research introduces an Interpretable Federated Learning (FL) based Cyber Intrusion Detection model tailored for smart city applications. The proposed system leverages privacy-preserving feature selection, where each client node independently identifies top-ranked features using ML models integrated with SHAP-based explainability. These local feature subsets are then aggregated at a central server to construct a global model without compromising sensitive data. Furthermore, the global model is enhanced with Explainable AI (XAI) techniques such as SHAP and LIME, offering both global interpretability and instance-level transparency for cyber threat decisions. Experimental results demonstrate that the proposed global model achieves a high detection accuracy of 98.51%, with a significantly low miss rate of 1.49%, outperforming existing models while ensuring explainability, privacy, and scalability across smart city infrastructures.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Explainable AI</kwd>
<kwd>SHAP</kwd>
<kwd>LIME</kwd>
<kwd>federated learning</kwd>
<kwd>feature selection</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>The rapid advancement of technologies such as Big Data, the Internet of Things (IoT), and cloud computing, alongside society&#x2019;s growing dependence on interconnected infrastructures, has rendered networked systems fundamental to modern life [<xref ref-type="bibr" rid="ref-1">1</xref>,<xref ref-type="bibr" rid="ref-2">2</xref>]. In smart cities, where diverse sectors like transportation, energy, healthcare, and public safety rely on integrated digital platforms, safeguarding communication networks has become a matter of strategic importance [<xref ref-type="bibr" rid="ref-3">3</xref>]. These environments are becoming increasingly complex and scaling up to more advanced forms of cyber threats that classic security tools, such as firewalls and simple encryption measures, cannot handle. To respond to this dynamic environment, adaptive, intelligent, and decentralized security services that can individually defend sensitive information on distributed systems, without destroying user privacy, are in high demand [<xref ref-type="bibr" rid="ref-4">4</xref>].</p>
<p>As a response, cybersecurity research has prioritized the development of robust Network Intrusion Detection Systems (NIDS), which are essential for monitoring, analyzing, and securing communication networks [<xref ref-type="bibr" rid="ref-5">5</xref>]. Such systems are designed to ensure data confidentiality, integrity, and availability by identifying and preventing unauthorized access, policy violations, and malicious activity within the network. The current IDS products should not only be effective in identifying both known and unknown attacks. Still, they should also limit the number of false alarms, hence assisting the network administrators in keeping their networks resilient and secure. However, most current methods involve centralized data gathering, which leads to privacy issues and a lack of characteristics that reflect data inconsistency across various sources. Moreover, these models can also work as black box decision-making systems, which are not interpretable enough to introduce them into a high-stakes setting, such as smart cities, where decisions need to be transparent and explainable [<xref ref-type="bibr" rid="ref-6">6</xref>].</p>
<p>Artificial Intelligence (AI), especially ML, has become more popular in cybersecurity solutions to increase the intelligence and flexibility of object identification systems during intrusion detection [<xref ref-type="bibr" rid="ref-7">7</xref>]. It can learn patterns in historical network traffic and identify minute patterns and anomalous behavior that standard rule-based systems fail to observe, using AI-powered models. ML offers the scalability and responsiveness that real-time intrusion detection needs in a smart city ecosystem, where Evolving Attack Landscape (EAL) and its cyber threats are dynamic and unpredictable [<xref ref-type="bibr" rid="ref-8">8</xref>,<xref ref-type="bibr" rid="ref-9">9</xref>]. Recent studies, such as [<xref ref-type="bibr" rid="ref-10">10</xref>], have further emphasized the effectiveness of combining machine learning with deep learning for improved intrusion detection, offering valuable perspectives on hybrid aggregation and model integration strategies. However, the deployment of these models across decentralized sources&#x2014;such as IoT devices and urban edge nodes&#x2014;demands approaches that respect user privacy and local data sovereignty. In this context, Federated Learning (FL) emerges as a promising paradigm, enabling collaborative model training without demanding raw data to leave local environments [<xref ref-type="bibr" rid="ref-11">11</xref>&#x2013;<xref ref-type="bibr" rid="ref-14">14</xref>]. Moreover, incorporating privacy-preserving feature selection before FL training further strengthens security by ensuring only the most relevant and non-sensitive attributes contribute to the global model [<xref ref-type="bibr" rid="ref-15">15</xref>&#x2013;<xref ref-type="bibr" rid="ref-17">17</xref>]. Despite their technical strength, many ML-based systems still operate as &#x201C;black boxes,&#x201D; offering little to no insight into how predictions or classifications are made&#x2014;a severe limitation in high-stakes, explainability-driven environments.</p>
<p>This growing concern has paved the way for XAI. This paradigm not only aims to maintain high predictive performance but also ensures interpretability, in addition to transparency of AI-driven decisions [<xref ref-type="bibr" rid="ref-18">18</xref>,<xref ref-type="bibr" rid="ref-19">19</xref>]. By incorporating XAI practices such as SHapley Additive exPlanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME), stakeholders can gain deeper insight into why a specific network activity is flagged as malicious, fostering greater trust and enabling more informed responses [<xref ref-type="bibr" rid="ref-20">20</xref>&#x2013;<xref ref-type="bibr" rid="ref-23">23</xref>]. When integrated with FL, XAI further enhances transparency across decentralized systems, making it possible to interpret global decisions built on heterogeneous client knowledge. This interpretability is critical for assessing security alerts, validating decisions, and ensuring accountability without exposing raw data [<xref ref-type="bibr" rid="ref-24">24</xref>]. In the framework of smart cities, where cyber resilience is tightly coupled with public safety and governance, XAI becomes an indispensable component in making AI-enabled intrusion detection both effective and accountable.</p>
<p>This research introduces an integrated cyber intrusion detection framework for smart cities, combining FL, privacy-preserving feature selection, and XAI techniques. The framework enables secure model training across distributed nodes by selecting only the most relevant features locally, thus preserving data privacy. SHAP and LIME-based explanations are embedded to enhance interpretability at both local and global levels, supporting transparent, accountable, and reliable intrusion detection in urban digital ecosystems.</p>
</sec>
<sec id="s2">
<label>2</label>
<title>Literature Review</title>
<p>Recent studies have discovered various ML-based IDS to secure smart city infrastructures. However, limited focus has been placed on incorporating explainability and transparency, which are essential for trustworthy and actionable cybersecurity solutions.</p>
<p>In this research [<xref ref-type="bibr" rid="ref-25">25</xref>], the evolution of network anomaly detection is reviewed, emphasizing the shift from traditional signature-based systems to adaptive deep learning approaches. Signature-based methods, while effective for known threats, fail to detect emerging attacks. Anomaly-based models using ML offer greater adaptability by learning traffic behavior patterns. Prior studies, such as those by Aksu et al., highlight that deep learning outperforms traditional algorithms like SVM, though often using outdated datasets like KDD CUP99. The importance of utilizing modern datasets such as CSE-CIC-IDS2018 is emphasized for realistic evaluation. Long Short-Term Memory (LSTM) networks are noted for capturing temporal patterns in network traffic, and the inclusion of Attention Mechanisms further enhances feature relevance and detection performance. Overall, LSTM-AM models demonstrate higher accuracy and recall, validating their effectiveness for modern IDS.</p>
<p>According to recent research [<xref ref-type="bibr" rid="ref-26">26</xref>], the key challenge addressed is the difficulty of accurately detecting anomalies in large-scale and dynamically changing network environments. To tackle this, deep learning methods&#x2014;specifically Feedforward Neural Networks (FNN) and Convolutional Neural Networks (CNN)&#x2014;were applied due to their strong feature extraction and classification capabilities. The study demonstrated that these models significantly outperformed traditional ML techniques like Naive Bayes, Random Forest (RF), and SVM in terms of detection accuracy and reduced false positive rates when tested on the NSL-KDD dataset. This points to the efficiency of deep learning in capturing the behavior of complex networks and enhancing the intrusion detection capabilities. A reported drawback, however, is the usage of one dataset, which does not maximally reflect real-time or diversified attack scenarios in current smart city infrastructures.</p>
<p>In this research [<xref ref-type="bibr" rid="ref-27">27</xref>], the central challenge addressed is the growing threat of phishing attacks, where malicious entities impersonate legitimate sources to steal sensitive user information, posing a serious risk to digital security. To counter this, the authors employed ML techniques, particularly Artificial Neural Networks (ANN), along with a novel Hybrid Ensemble Feature Selection (HEFS) method tailored for phishing detection. The HEFS approach combines the Cumulative Distribution Function Gradient (CDF-g) algorithm for generating primary feature subsets with a Data Perturbation Ensemble for secondary refinement, enhancing the system&#x2019;s robustness and precision. The proposed model outperformed other solutions available in terms of identifying phishing URLs with a higher level of accuracy and reliability. Nevertheless, coverage was mostly restricted to phishing URL datasets, and the results might not be transferable to other common phishing vectors (email or SMS-based attacks).</p>
<p>In this research [<xref ref-type="bibr" rid="ref-28">28</xref>], the primary challenge addressed is the escalating complexity of modern network environments, driven by the rapid development in data production and the widespread use of interconnected devices. This complexity increases the risk of cyber intrusions and demands progressive detection mechanisms to confirm network security and availability. To meet this need, the authors propose a novel IDS empowered with a Fused ML Technique (IDS-FMLT), combining multiple ML models to enhance detection across heterogeneous network sources. Deep learning algorithms play a central role in the approach, enabling more accurate analysis of traffic patterns and effective identification of both known and novel threats. The proposed model attained a strong validation accuracy of 95.18% with a low miss rate of 4.82%, demonstrating its capability to detect intrusions reliably in diverse network settings. While the results are promising, the study primarily focuses on model accuracy, and further evaluation in real-time or adaptive environments could strengthen its practical applicability.</p>
<p>In this research [<xref ref-type="bibr" rid="ref-29">29</xref>], the core challenge addressed is the need for more efficient and accurate intrusion detection systems capable of coping with the evolving complexity of cyber threats. The research aims at improving the effectiveness of IDS by incorporating smart feature selection into ML methods. A new methodology, called GSAFS-OQNN (model), is also proposed, in which a feature selection method, based on a gravitational search algorithm, is used with faulty input attributes and the optimal quantum neural network to achieve a better classification accuracy. The methodology will also use Z-score nor-malization in the preprocessing stage to normalize the data to converge the model efficiently. Computer experiments indicate that the proposed model has higher accuracy in addition to efficiency in intrusion detection of benchmark IDS data than conventional methods. Nonetheless, the model shows promise, but its reliance on specific tuning parameters and algorithmic complexity may limit its deployment in high-speed network conditions in real-time environments.</p>
<p>In this research [<xref ref-type="bibr" rid="ref-30">30</xref>], the increasing security vulnerabilities in IoT networks&#x2014;driven by the rapid expansion of connected devices and data generation&#x2014;are identified as a critical challenge. To address this issue, the research proposes a deep learning-based IDS that leverages Deep Neural Network (DNN) and CNN to identify and classify various attack patterns with higher accuracy. An input filter-based feature selection approach is used to improve model performance by extracting the most meaningful attributes and to diminish the dimensionality. Significantly, the research critically incorporates XAI methods, i.e., LIME and SHAP, to elicit transparent and interpretable feedback on the decision of a model, a critical aspect of security-sensitive applications, such as IoT. While the proposed approach demonstrates promising results in balancing performance and explainability, its reliance on computationally intensive deep learning models may limit applicability in highly resource-constrained IoT deployments.</p>
<p>In this research [<xref ref-type="bibr" rid="ref-31">31</xref>], the critical need for timely and accurate intrusion detection in complex, data-intensive environments such as cellular and IoT networks is emphasized, where early identification of malicious activity is essential to prevent service disruption and financial loss. Traditional IDS approaches, largely dependent on static signatures, often fail to detect novel or evolving attacks, underscoring the necessity for more adaptive techniques. To address these limitations, the literature explores a range of methodologies, including fuzzy-genetic models, Hidden Naive Bayes, and hybrid approaches combining clustering with Support Vector Machines. More recently, deep learning models&#x2014;particularly CNNs and LSTMs&#x2014;have gained traction due to their aptitude to learn together spatial and temporal patterns in network traffic. However, a major challenge highlighted is class imbalance in intrusion datasets, which impairs the detection of minority attack types. Techniques like SMOTE have been proposed to counter this, and recent work integrates LSTM with Synthetic Minority Over-Sampling Technique (SMOTE) and focal loss functions to improve minority class detection. Despite promising results, many models still face limitations in generalizing across diverse network scenarios, pointing to the need for more robust and interpretable solutions.</p>
<p>In this research [<xref ref-type="bibr" rid="ref-32">32</xref>], the growing complexity of network environments and the sophistication of cyber-attacks are identified as pressing challenges, emphasizing the need for advanced IDS to uphold data confidentiality, integrity, and availability. To address this, the study proposes a hybrid framework combining the Golden Jackal Optimization Algorithm (GJOA) for feature selection with an attention-based Bi-directional Long Short-Term Memory (A-BiLSTM) deep learning model for intrusion classification. The GJOA enhances the IDS by recognizing the most pertinent features, thereby improving learning efficiency, while the A-BiLSTM effectively captures temporal patterns in network traffic. The detection capacity of the model is further enhanced by the Salp Swarm Algorithm (SSA), which is used in modifying the hyperparameters. Comparative results indicate that the proposed GJOADL-IDSNS context is more accurate and effective in terms of detection than existing methods. Nonetheless, this combination of several optimization blocks can add computational burden to any system, which can restrict its use in real-time or resource-limited systems.</p>
<p>According to this study [<xref ref-type="bibr" rid="ref-33">33</xref>], the rising vulnerability of IoT networks, which is associated with the widespread use of connected devices in essential industries, such as healthcare and transportation, is listed among the key cybersecurity issues. Current IDSs are not always effective at recognizing various classes of attacks and suffer due to old threat signatures and biased datasets. To address these issues, the study proposes a novel framework named Distributed Multiclass Cyberattack Detection using Golden Jackal Optimization with Deep Learning (DMCD-GJODL). This approach incorporates a Bi-Directional Gated Recurrent Unit (BiGRU) model for attack detection, optimized through the Golden Jackal Optimization (GJO) technique for practical hyperparameter tuning. The methodology also integrates a Chaotic Sparrow Search Optimization Algorithm (CSSOA) for robust feature selection and utilizes min-max scaling to improve input normalization. Experimental evaluation on the BoT-IoT dataset demonstrates impressive performance, achieving up to 98.70% accuracy and substantial precision, recall, and F-score metrics, indicating superior effectiveness over existing methods. However, while the approach excels in performance, its reliance on multiple-layered optimization techniques may pose challenges in real-time deployment due to increased computational overhead.</p>
<p>In this research [<xref ref-type="bibr" rid="ref-34">34</xref>], the challenge of safeguarding increasingly sensitive data amid rapid technological growth is addressed through the enhancement of IDS. Conventional IDSs struggle to keep pace with emerging threats and the increasingly complex network infrastructure, prompting interest in more intelligent and responsive solutions. In this regard, the study postulates a hybrid scheme by employing the Honey Badger Optimization (HBO) as a feature selection technique and an ANN in the intrusion classification. This synergy enhances detection accuracy by isolating the most relevant input features, thereby rearranging the learning process. The model&#x2019;s performance is benchmarked against other optimization-based classifiers, such as GWO-SVM and PSO-SVM, with results showing superior precision and accuracy for the proposed HBO-ANN system. Key evaluation metrics&#x2014;including false alarm rate, mean squared error, and recall&#x2014;further validate its effectiveness. However, the reliance on ANN may limit the model&#x2019;s ability to capture temporal dependencies in traffic data, indicating potential for further improvement through time-aware deep learning architectures.</p>
<p><xref ref-type="table" rid="table-1">Table 1</xref> offers a brief comparative overview of existing cyber intrusion detection models, focusing on their objectives, enhancements, and limitations concerning interpretability, feature selection, and privacy. While several models demonstrate high accuracy, most lack transparency, ignore feature relevance, and do not preserve user data privacy&#x2014;key requirements in smart city contexts. Only a few incorporate XAI methods, and none effectively combine explainability with federated architectures. In contrast, the proposed model addresses these gaps by integrating FL, privacy-preserving feature selection, and interpretable AI techniques (SHAP and LIME), offering a holistic solution that enhances detection performance while maintaining data confidentiality and trustworthiness.</p>
<table-wrap id="table-1">
<label>Table 1</label>
<caption>
<title>Comparison of the prior published approaches</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
</colgroup>
<thead>
<tr>
<th align="center">Reference</th>
<th align="center">Model</th>
<th align="center">Objective</th>
<th align="center">Improvements</th>
<th align="center">Interpretability</th>
<th align="center">XAI</th>
<th align="center">Feature selection</th>
<th align="center">FL</th>
<th align="center">Limitations</th>
</tr>
</thead>
<tbody>
<tr>
<td>[<xref ref-type="bibr" rid="ref-25">25</xref>]</td>
<td>LSTM-AM (Deep Learning)</td>
<td>High accuracy &#x0026; recall in intrusion detection</td>
<td>Use modern datasets (e.g., CSE-CIC-IDS2018)</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>Outdated datasets; lacks interpretability</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-26">26</xref>]</td>
<td>FNN &#x0026; CNN (Deep Learning)</td>
<td>High detection accuracy; reduced false positives</td>
<td>Validate on diverse and real-time datasets</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>Relies on a single dataset (NSL-KDD)</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-27">27</xref>]</td>
<td>ANN &#x002B; HEFS (CDF-g &#x002B; Data Perturbation)</td>
<td>Improved phishing URL detection accuracy</td>
<td>Extend detection to emails, SMS, etc.</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>Focused only on phishing URLs</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-28">28</xref>]</td>
<td>IDS-FMLT (Fused ML Models)</td>
<td>95.18% accuracy, 4.82% miss rate</td>
<td>Evaluate in real-time/adaptive settings</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>Focus on accuracy; lacks real-time validation</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-29">29</xref>]</td>
<td>GSAFS-OQNN with Z-score normalization</td>
<td>High detection accuracy and efficiency</td>
<td>Simplify for real-time deployment</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>High complexity; sensitive to tuning</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-30">30</xref>]</td>
<td>DNN &#x0026; CNN &#x002B; Filter-based FS &#x002B; LIME/SHAP</td>
<td>Improved detection &#x0026; explainability in IoT</td>
<td>Optimize for low-resource IoT devices</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>High computational cost</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-31">31</xref>]</td>
<td>LSTM &#x002B; SMOTE &#x002B; Focal Loss</td>
<td>Better detection of minority attack classes</td>
<td>Enhance generalization across networks</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>Still struggles with generalization</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-32">32</xref>]</td>
<td>GJOA &#x002B; A-BiLSTM &#x002B; SSA</td>
<td>High accuracy &#x0026; feature efficiency</td>
<td>Reduce computational load</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>High complexity limits scalability</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-33">33</xref>]</td>
<td>DMCD-GJODL (BiGRU &#x002B; GJO &#x002B; CSSOA)</td>
<td>98.7% accuracy on BoT-IoT dataset</td>
<td>Simplify for real-time IoT deployment</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>Multi-layered complexity impacts scalability</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-34">34</xref>]</td>
<td>HBO &#x002B; ANN</td>
<td>High precision &#x0026; accuracy</td>
<td>Integrate time-aware DL models</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>&#x00D7;</td>
<td>Limited temporal learning capability</td>
</tr>
<tr>
<td>Proposed Global Model (RF) with selected features</td>
<td>FL &#x002B; Feature Selection &#x002B; Interpretable Models</td>
<td>Privacy-preserving and transparent intrusion detection for smart cities</td>
<td>Combines FL with explainability and optimal feature selection</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>Potential communication overhead in federated setup; explainability integration may increase computation time on resource-constrained clients</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s3">
<label>3</label>
<title>Limitations of Previous Research Works</title>
<sec id="s3_1">
<label>3.1</label>
<title>Lack of Transparency and Interpretability in ML-Based Intrusion Detection Systems</title>
<p>Many state-of-the-art IDS solutions rely on complex deep learning models such as LSTM [<xref ref-type="bibr" rid="ref-25">25</xref>,<xref ref-type="bibr" rid="ref-31">31</xref>], CNN [<xref ref-type="bibr" rid="ref-26">26</xref>,<xref ref-type="bibr" rid="ref-30">30</xref>], or BiGRU [<xref ref-type="bibr" rid="ref-28">28</xref>,<xref ref-type="bibr" rid="ref-29">29</xref>,<xref ref-type="bibr" rid="ref-32">32</xref>&#x2013;<xref ref-type="bibr" rid="ref-34">34</xref>], which operate as black-box classifiers. These models fail to offer explainable outputs, thus limiting trust, transparency, regulatory acceptance, and human-in-the-loop decision-making, especially in critical smart city scenarios.</p>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Absence of Privacy-Preserving Feature Selection and FL Mechanisms</title>
<p>Despite the growing need for decentralized and secure data handling, most existing approaches [<xref ref-type="bibr" rid="ref-24">24</xref>,<xref ref-type="bibr" rid="ref-25">25</xref>] lack support for FL or feature selection at the client level ([<xref ref-type="bibr" rid="ref-26">26</xref>&#x2013;<xref ref-type="bibr" rid="ref-29">29</xref>]). This leads to either high communication costs or privacy leakage when training models on centralized, sensitive data from smart city networks [<xref ref-type="bibr" rid="ref-30">30</xref>&#x2013;<xref ref-type="bibr" rid="ref-34">34</xref>].</p>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Poor Adaptability to Real-Time, Heterogeneous, and Resource-Constrained Environments</title>
<p>Several methods remain unvalidated on recent, diverse, or real-time datasets ([<xref ref-type="bibr" rid="ref-25">25</xref>&#x2013;<xref ref-type="bibr" rid="ref-29">29</xref>]). They are often computationally intensive, making them impractical for smart cities where real-time response, low latency, and edge-device scalability are essential [<xref ref-type="bibr" rid="ref-31">31</xref>,<xref ref-type="bibr" rid="ref-33">33</xref>].</p>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Contribution of the Proposed Model</title>
<sec id="s4_1">
<label>4.1</label>
<title>Integrated XAI for Transparent Decision-Making</title>
<p>The proposed framework integrates interpretable ML models with XAI techniques (SHAP and LIME) to provide clear, human-understandable explanations for intrusion detection decisions. This directly addresses the opacity of prior models and enhances system accountability and trust in high-stakes environments.</p>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Federated Learning with Privacy-Preserving Feature Selection</title>
<p>By embedding FL and performing client-level feature selection, the model ensures privacy-preserving training while reducing communication overhead. This unique integration improves performance and data protection simultaneously, filling a critical gap overlooked in previous studies.</p>
</sec>
<sec id="s4_3">
<label>4.3</label>
<title>Real-Time Readiness for Smart City Environments</title>
<p>The proposed system is tailored for real-time intrusion detection across heterogeneous IoT infrastructures, validated on modern datasets, and optimized for deployment on edge devices. This makes it scalable, robust, and applicable to real-world smart city use cases.</p>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Proposed Model</title>
<p>With the rising frequency of cyber threats in smart city sectors such as transportation, energy, and public safety, traditional intrusion detection approaches fall short due to their centralized nature, lack of transparency, and limited scalability. To address these issues, this research proposes a privacy-preserving and interpretable intrusion detection framework based on FL. The model allows multiple smart nodes to collaboratively train without sharing raw data, safeguarding privacy. Local feature selection ensures only the most relevant attributes are communicated, reducing overhead. Finally, XAI techniques like SHAP and LIME are integrated into the global model to enhance decision transparency and support informed, trustworthy cybersecurity actions. The high-level structure and operative flow of the proposed model (local client) are shown in <xref ref-type="fig" rid="fig-1">Fig. 1</xref>.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>Abstract layout of the proposed intrusion detection model (local client)</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-1.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-1">Fig. 1</xref> illustrates the abstract layout of the proposed intrusion detection model, highlighting the interaction between local clients and a centralized server within a smart city environment. The model begins with a data collection layer, where intrusion-related sensors collect real-time security data generated across smart city networks. This data is transmitted to local client nodes for initial handling and then forwarded to the central server. The server processes the data through a structured pipeline comprising a Preprocessing Layer, an XAI module, and a Performance Evaluation stage. The final Validation Phase ensures that the model is tested under realistic scenarios before being deployed via cloud infrastructure for active cyber threat mitigation. This integrated design ensures privacy-preserving processing, interpretability, and robust performance across distributed smart city networks.</p>
<p><xref ref-type="fig" rid="fig-2">Fig. 2</xref> illustrates the proposed cyber intrusion detection model, specifically highlighting the interaction between data collection, preprocessing, ML modelling, and cloud-based deployment. The process begins at the Cyber Attack Data Input Layer, where structured network traffic and system log data are collected from a wide range of smart city infrastructures, including IoT sensors, connected transportation systems, healthcare devices, and public sector networks. For this study, a benchmark intrusion detection dataset [<xref ref-type="bibr" rid="ref-35">35</xref>] is utilized to simulate cyber-attack scenarios, containing labelled instances of normal and malicious behavior. A detailed overview of the dataset features, structure, and relevance is provided in <xref ref-type="table" rid="table-2">Table 2</xref>.</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>Layout of the proposed intrusion detection model (local client)</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-2.tif"/>
</fig><table-wrap id="table-2">
<label>Table 2</label>
<caption>
<title>Dataset attributes description [<xref ref-type="bibr" rid="ref-35">35</xref>]</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Features</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Duration</td>
<td>int64</td>
<td>Duration of the connection in seconds</td>
</tr>
<tr>
<td>protocol_type</td>
<td>object</td>
<td>Protocol used (e.g., TCP, UDP)</td>
</tr>
<tr>
<td>Service</td>
<td>object</td>
<td>Service on the destination (e.g., HTTP, Telnet)</td>
</tr>
<tr>
<td>flag</td>
<td>object</td>
<td>Status flag of the connection</td>
</tr>
<tr>
<td>src_bytes</td>
<td>int64</td>
<td>Number of data bytes from source to destination</td>
</tr>
<tr>
<td>dst_bytes</td>
<td>int64</td>
<td>Number of data bytes from destination to source</td>
</tr>
<tr>
<td>land</td>
<td>int64</td>
<td>1 if connection is from/to the same host/port; 0 otherwise</td>
</tr>
<tr>
<td>wrong_fragment</td>
<td>int64</td>
<td>Number of wrong fragments in this connection</td>
</tr>
<tr>
<td>urgent</td>
<td>int64</td>
<td>Number of urgent packets</td>
</tr>
<tr>
<td>hot</td>
<td>int64</td>
<td>Number of &#x2018;hot&#x2019; indicators (suspicious activity)</td>
</tr>
<tr>
<td>num_failed_logins</td>
<td>int64</td>
<td>Number of failed login attempts</td>
</tr>
<tr>
<td>logged_in</td>
<td>int64</td>
<td>1 if successfully logged in; 0 otherwise</td>
</tr>
<tr>
<td>num_compromised</td>
<td>int64</td>
<td>Number of compromised conditions</td>
</tr>
<tr>
<td>root_shell</td>
<td>int64</td>
<td>1 if root shell is obtained; 0 otherwise</td>
</tr>
<tr>
<td>su_attempted</td>
<td>int64</td>
<td>1 if &#x2018;su root&#x2019; command attempted; 0 otherwise</td>
</tr>
<tr>
<td>num_root</td>
<td>int64</td>
<td>Number of root accesses</td>
</tr>
<tr>
<td>num_file_creations</td>
<td>int64</td>
<td>Number of file creation operations</td>
</tr>
<tr>
<td>num_shells</td>
<td>int64</td>
<td>Number of shell prompts invoked</td>
</tr>
<tr>
<td>num_access_files</td>
<td>int64</td>
<td>Number of file access operations</td>
</tr>
<tr>
<td>num_outbound_cmds</td>
<td>int64</td>
<td>Number of outbound commands in the session</td>
</tr>
<tr>
<td>is_host_login</td>
<td>int64</td>
<td>1 if login belongs to the host; 0 otherwise</td>
</tr>
<tr>
<td>is_guest_login</td>
<td>int64</td>
<td>1 if login is a guest login; 0 otherwise</td>
</tr>
<tr>
<td>count</td>
<td>int64</td>
<td>Number of connections to the same host in the past two seconds</td>
</tr>
<tr>
<td>srv_count</td>
<td>int64</td>
<td>Number of connections to the same service in the past two seconds</td>
</tr>
<tr>
<td>serror_rate</td>
<td>float64</td>
<td>Percentage of connections with SYN errors</td>
</tr>
<tr>
<td>srv_serror_rate</td>
<td>float64</td>
<td>Percentage of connections to the same service with SYN errors</td>
</tr>
<tr>
<td>rerror_rate</td>
<td>float64</td>
<td>Percentage of connections with REJ errors</td>
</tr>
<tr>
<td>srv_rerror_rate</td>
<td>float64</td>
<td>Percentage of connections to the same service with REJ errors</td>
</tr>
<tr>
<td>same_srv_rate</td>
<td>float64</td>
<td>Percentage of connections to the same service</td>
</tr>
<tr>
<td>diff_srv_rate</td>
<td>float64</td>
<td>Percentage of connections to different services</td>
</tr>
<tr>
<td>srv_diff_host_rate</td>
<td>float64</td>
<td>Percentage of connections to different hosts</td>
</tr>
<tr>
<td>dst_host_count</td>
<td>int64</td>
<td>Number of connections to the destination host</td>
</tr>
<tr>
<td>dst_host_srv_count</td>
<td>int64</td>
<td>Number of connections to the same service as the current connection</td>
</tr>
<tr>
<td>dst_host_same_srv_rate</td>
<td>float64</td>
<td>Same service rate to the destination host</td>
</tr>
<tr>
<td>dst_host_diff_srv_rate</td>
<td>float64</td>
<td>Different service rate to the destination host</td>
</tr>
<tr>
<td>dst_host_same_src_port_rate</td>
<td>float64</td>
<td>Same port rate to the destination host</td>
</tr>
<tr>
<td>dst_host_srv_diff_host_rate</td>
<td>float64</td>
<td>Different host rate to the destination host service</td>
</tr>
<tr>
<td>dst_host_serror_rate</td>
<td>float64</td>
<td>SYN error rate to the destination host</td>
</tr>
<tr>
<td>dst_host_srv_serror_rate</td>
<td>float64</td>
<td>SYN error rate to the destination host service</td>
</tr>
<tr>
<td>dst_host_rerror_rate</td>
<td>float64</td>
<td>REJ error rate to the destination host</td>
</tr>
<tr>
<td>dst_host_srv_rerror_rate</td>
<td>float64</td>
<td>REJ error rate to the destination host service</td>
</tr>
<tr>
<td>labels</td>
<td>object</td>
<td>Class label (attack type or normal)</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>This data is then passed through a robust Preprocessing Layer, which performs essential operations such as handling missing values, categorical encoding, feature scaling, data type conversion, correlation analysis, and visualization to prepare the data for learning. Missing values in numeric features were handled using mean imputation, while categorical values were imputed using the most frequent class. This ensured a clean, consistent input for feature engineering and model training. Specifically, the categorical attributes protocol_type, service, and flag were encoded using Label Encoding, which is efficient and well-suited for tree-based models such as Decision Tree (DT) and RF. This encoding was applied locally at each client node before training to maintain data consistency while preserving privacy in the federated setting.</p>
<p><xref ref-type="fig" rid="fig-3">Fig. 3</xref> illustrates the distribution of numerical features in the cyber-attack dataset using histograms. This visualization reveals key patterns in the data, such as skewness, sparsity, and value concentration across attributes like duration, src_bytes, and dst_host_count. Several features show heavy right-skew (e.g., count, srv_count), while others, such as urgent, num_outbound_cmds, and root_shell, have values concentrated near zero, indicating potential sparsity. Binary attributes like logged_in and is_guest_login exhibit categorical behavior. These insights are critical for guiding preprocessing steps such as normalization, outlier handling, and feature selection, ultimately ensuring the dataset is well-prepared for training accurate and interpretable intrusion detection models.</p>
<fig id="fig-3">
<label>Figure 3</label>
<caption>
<title>Histogram visualization of numerical features</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-3.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-4">Fig. 4</xref> provides a two-dimensional UMAP (Uniform Manifold Approximation and Projection) visualization of the high-dimensional preprocessed cyber-attack dataset. UMAP reduces the feature space while preserving the local and global structure of the data, making it easier to observe inherent patterns and clusters. The resulting projection highlights the presence of distinguishable data groupings, which may correspond to different types of network behaviors or attack patterns. This dimensionality reduction is crucial for both visualization and performance optimization in downstream classification tasks, enabling interpretable ML and effective intrusion detection.</p>
<fig id="fig-4">
<label>Figure 4</label>
<caption>
<title>UMAP-based 2D projection revealing structure and clustering patterns</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-4.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-5">Fig. 5</xref> illustrates the radar chart representing the normalized average values of key features&#x2014;duration, src_bytes, dst_bytes, protocol_type, service, and flag&#x2014;across multiple cyber-attack categories. This multi-dimensional visualization helps compare the behavioral profile of different attack types in terms of their network characteristics. Notably, distinct patterns across axes suggest feature relevance and discriminative power, which is beneficial for classification and feature selection tasks in intrusion detection models.</p>
<fig id="fig-5">
<label>Figure 5</label>
<caption>
<title>Radar chart comparing mean feature profiles across various cyber-attack categories</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-5.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-6">Fig. 6</xref> presents a clustermap of feature correlations using hierarchical clustering. This heatmap highlights groups of strongly correlated features, making it easier to identify redundancies and dependencies within the dataset. For example, features related to error rates and host interactions (e.g., srv_serror_rate, dst_host_srv_serror_rate) form tight clusters, suggesting high interdependence. Such visual analysis supports effective feature selection and dimensionality reduction strategies during preprocessing.</p>
<fig id="fig-6">
<label>Figure 6</label>
<caption>
<title>Clustermap showing hierarchical correlations among features</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-6.tif"/>
</fig>
<p>Following this, the dataset is partitioned into training (70%) and testing (30%) subsets to facilitate model development and evaluation. At the local client level, multiple ML models are independently trained on the processed data to explore diverse decision boundaries and learning behaviors. Let the local dataset at client <inline-formula id="ieqn-1"><mml:math id="mml-ieqn-1"><mml:mi>i</mml:mi></mml:math></inline-formula> be represented as:
<disp-formula id="eqn-1"><label>(1)</label><mml:math id="mml-eqn-1" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>y</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo stretchy="false">)</mml:mo><mml:msubsup><mml:mo fence="false" stretchy="false">}</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msubsup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>where <inline-formula id="ieqn-2"><mml:math id="mml-ieqn-2"><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x2208;</mml:mo><mml:msup><mml:mrow><mml:mi mathvariant="double-struck">R</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> denotes the feature vector and <inline-formula id="ieqn-3"><mml:math id="mml-ieqn-3"><mml:msubsup><mml:mi>y</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x2208;</mml:mo><mml:mi>Y</mml:mi></mml:math></inline-formula> is the associated label for <inline-formula id="ieqn-4"><mml:math id="mml-ieqn-4"><mml:msup><mml:mi>j</mml:mi><mml:mrow><mml:mrow><mml:mtext>th</mml:mtext></mml:mrow></mml:mrow></mml:msup></mml:math></inline-formula> instance. Each client trains a set of models <inline-formula id="ieqn-5"><mml:math id="mml-ieqn-5"><mml:mi>M</mml:mi><mml:mo>=</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mi>f</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo fence="false" stretchy="false">}</mml:mo></mml:math></inline-formula> and evaluates them based on a performance metric <inline-formula id="ieqn-6"><mml:math id="mml-ieqn-6"><mml:mi>E</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula>, such as accuracy. The optimal model <inline-formula id="ieqn-7"><mml:math id="mml-ieqn-7"><mml:msup><mml:mi>f</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mrow><mml:mo>&#x2217;</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:math></inline-formula> is selected using:
<disp-formula id="eqn-2"><label>(2)</label><mml:math id="mml-eqn-2" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msup><mml:mi>f</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2217;</mml:mo></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>g</mml:mi><mml:munder><mml:mo form="prefix">max</mml:mo><mml:mrow><mml:mi>f</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>M</mml:mi></mml:mrow></mml:munder><mml:mi>E</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>This selected model is then forwarded to the Cloud Computing layer for centralized storage, scalability, and global validation under a federated architecture.</p>
<p>During the Validation Phase, real-time cyber-attack data is evaluated using the trained model retrieved from the cloud. If an intrusion is detected, the model raises an alert; otherwise, the output is discarded. This pipeline ensures efficient, scalable, and explainable cyber threat detection, making it suitable for dynamic smart city environments.</p>
<p><xref ref-type="fig" rid="fig-7">Fig. 7</xref> demonstrates the architecture of the proposed FL framework integrated with XAI for cyber intrusion detection in smart cities. The architecture initiates at the Cyber Attack Data Input Layer, where raw data&#x2014;such as network traffic, login records, and system logs&#x2014;is gathered from multiple distributed clients (e.g., smart homes, surveillance systems, public sector endpoints). Each client preprocesses its data locally through the Preprocessing Layer, applying cleaning, encoding, and feature selection operations. In the Application Layer, ML models are trained independently on each client using the preprocessed data.</p>
<fig id="fig-7">
<label>Figure 7</label>
<caption>
<title>Layout of the proposed intrusion detection model (local client)</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-7.tif"/>
</fig>
<p>Mathematically, for a client <inline-formula id="ieqn-8"><mml:math id="mml-ieqn-8"><mml:mi>k</mml:mi></mml:math></inline-formula>, the local objective is to minimize the empirical risk over its dataset <inline-formula id="ieqn-9"><mml:math id="mml-ieqn-9"><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>:
<disp-formula id="eqn-3"><label>(3)</label><mml:math id="mml-eqn-3" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi></mml:mi><mml:munder><mml:mo movablelimits="true" form="prefix">min</mml:mo><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munder><mml:mfrac><mml:mn>1</mml:mn><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow></mml:mrow></mml:mfrac><mml:mo>&#x2211;</mml:mo><mml:mi>L</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>where <inline-formula id="ieqn-10"><mml:math id="mml-ieqn-10"><mml:mi>L</mml:mi></mml:math></inline-formula> is the loss function, <inline-formula id="ieqn-11"><mml:math id="mml-ieqn-11"><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the input feature vector, <inline-formula id="ieqn-12"><mml:math id="mml-ieqn-12"><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the true label, and <inline-formula id="ieqn-13"><mml:math id="mml-ieqn-13"><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the model parameters for the client <inline-formula id="ieqn-14"><mml:math id="mml-ieqn-14"><mml:mi>k</mml:mi></mml:math></inline-formula>.</p>
<p>Once local models are trained, they are transmitted to the Global Cloud Server, where aggregation is performed using Federated Averaging (FedAvg). The global model <inline-formula id="ieqn-15"><mml:math id="mml-ieqn-15"><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> at the communication round <inline-formula id="ieqn-16"><mml:math id="mml-ieqn-16"><mml:mi>t</mml:mi></mml:math></inline-formula> is updated as:
<disp-formula id="eqn-4"><label>(4)</label><mml:math id="mml-eqn-4" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover><mml:mfrac><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow></mml:mrow></mml:mfrac><mml:msubsup><mml:mi>w</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msubsup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>where <inline-formula id="ieqn-17"><mml:math id="mml-ieqn-17"><mml:msubsup><mml:mi>w</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> denotes the model weights from the client <inline-formula id="ieqn-18"><mml:math id="mml-ieqn-18"><mml:mi>k</mml:mi></mml:math></inline-formula>, and <inline-formula id="ieqn-19"><mml:math id="mml-ieqn-19"><mml:mi>K</mml:mi></mml:math></inline-formula> is the total number of clients.</p>
<p>If the aggregated model achieves the required learning performance (e.g., accuracy or convergence criteria), it is selected for deployment; otherwise, the aggregation and training loop continues until convergence. No raw data is shared between clients and the server; only model updates are transmitted over secure connections, without any user or device-specific information, ensuring communication privacy and regulatory compliance. To ensure interpretability of the global model, XAI methods such as LIME and SHAP are applied.
<list list-type="bullet">
<list-item>
<p>LIME constructs a surrogate interpretable model <inline-formula id="ieqn-20"><mml:math id="mml-ieqn-20"><mml:mi>g</mml:mi></mml:math></inline-formula> to approximate the global model <inline-formula id="ieqn-21"><mml:math id="mml-ieqn-21"><mml:mi>f</mml:mi></mml:math></inline-formula> locally around a prediction instance <inline-formula id="ieqn-22"><mml:math id="mml-ieqn-22"><mml:mi>x</mml:mi></mml:math></inline-formula>. The optimization objective is:</p></list-item>
</list>
<disp-formula id="eqn-5"><label>(5)</label><mml:math id="mml-eqn-5" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>&#x03B3;</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>g</mml:mi><mml:munder><mml:mo form="prefix">min</mml:mo><mml:mrow><mml:mi>g</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>G</mml:mi></mml:mrow></mml:munder><mml:mo stretchy="false">[</mml:mo><mml:mi>L</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>f</mml:mi><mml:mo>,</mml:mo><mml:mi>g</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x03C0;</mml:mi><mml:mrow><mml:mi>x</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>+</mml:mo><mml:mi mathvariant="normal">&#x03A9;</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo stretchy="false">]</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>where <inline-formula id="ieqn-23"><mml:math id="mml-ieqn-23"><mml:mi>L</mml:mi></mml:math></inline-formula> measures the fidelity between the black-box model fff and the surrogate <inline-formula id="ieqn-24"><mml:math id="mml-ieqn-24"><mml:mi>g</mml:mi></mml:math></inline-formula>, <inline-formula id="ieqn-25"><mml:math id="mml-ieqn-25"><mml:msub><mml:mi>&#x03C0;</mml:mi><mml:mrow><mml:mi>x</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is a proximity measure around an instance <inline-formula id="ieqn-26"><mml:math id="mml-ieqn-26"><mml:mi>x</mml:mi></mml:math></inline-formula>, and <inline-formula id="ieqn-27"><mml:math id="mml-ieqn-27"><mml:mi mathvariant="normal">&#x03A9;</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula> penalizes model complexity.
<list list-type="bullet">
<list-item>
<p>SHAP provides global explanations by computing the Shapley value <inline-formula id="ieqn-28"><mml:math id="mml-ieqn-28"><mml:msub><mml:mi>&#x03D5;</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula> for each feature <inline-formula id="ieqn-29"><mml:math id="mml-ieqn-29"><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, reflecting its contribution to the prediction:</p></list-item>
</list>
<disp-formula id="eqn-6"><label>(6)</label><mml:math id="mml-eqn-6" display="block"><mml:msub><mml:mi>&#x03D5;</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>S</mml:mi><mml:mo>&#x2286;</mml:mo><mml:mi>F</mml:mi><mml:mi>&#x2216;</mml:mi><mml:mo fence="false" stretchy="false">{</mml:mo><mml:mi>j</mml:mi><mml:mo fence="false" stretchy="false">}</mml:mo></mml:mrow></mml:munder><mml:mfrac><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>S</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo>!</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>F</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>S</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="false">)</mml:mo><mml:mo>!</mml:mo></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>F</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo>!</mml:mo></mml:mrow></mml:mfrac><mml:mo stretchy="false">[</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>S</mml:mi><mml:mo>&#x222A;</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:mi>j</mml:mi><mml:mo fence="false" stretchy="false">}</mml:mo><mml:mo stretchy="false">)</mml:mo><mml:mo>&#x2212;</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>S</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo stretchy="false">]</mml:mo></mml:math></disp-formula>where <inline-formula id="ieqn-30"><mml:math id="mml-ieqn-30"><mml:mi>F</mml:mi></mml:math></inline-formula> is the set of all input features, and <inline-formula id="ieqn-31"><mml:math id="mml-ieqn-31"><mml:mi>S</mml:mi></mml:math></inline-formula> is a subset of features excluding <inline-formula id="ieqn-32"><mml:math id="mml-ieqn-32"><mml:mi>j</mml:mi></mml:math></inline-formula>.</p>
<p>Additionally, Partial Dependence is computed to examine the marginal effect of individual features <inline-formula id="ieqn-33"><mml:math id="mml-ieqn-33"><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> on predictions:
<disp-formula id="eqn-7"><label>(7)</label><mml:math id="mml-eqn-7" display="block"><mml:mrow><mml:mover><mml:mi>f</mml:mi><mml:mo stretchy="false">&#x005E;</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mi>n</mml:mi></mml:mfrac><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:munderover><mml:mi>f</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>c</mml:mi></mml:mrow></mml:msubsup><mml:mo stretchy="false">)</mml:mo></mml:math></disp-formula>where <inline-formula id="ieqn-34"><mml:math id="mml-ieqn-34"><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>c</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> are the complementary features of an instance <inline-formula id="ieqn-35"><mml:math id="mml-ieqn-35"><mml:mi>i</mml:mi></mml:math></inline-formula>.</p>
<p>After validation, the global model&#x2014;enhanced with interpretable insights&#x2014;is stored in the Cloud Data Storage. During the Validation Phase, the model is deployed to client devices for real-time cyber-attack prediction. If an intrusion is detected, an alert is generated; otherwise, the process is halted. Among the classifiers evaluated, RF was selected as the final global model for deployment due to its consistently strong performance across accuracy and interpretability metrics. This federated framework ensures privacy preservation, collaborative learning, and explainable decision-making tailored to the requirements of secure and scalable smart city environments. The complete step-wise flow of the proposed FL-XAI model is accessible in <xref ref-type="table" rid="table-3">Table 3</xref> as a structured pseudocode.</p>
<table-wrap id="table-3">
<label>Table 3</label>
<caption>
<title>Pseudocode of the proposed model</title>
</caption>
<table>
<colgroup>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th>Step</th>
<th>Process</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2"><bold>Client Side (Smart Node)</bold></td>
</tr>
<tr>
<td>1</td>
<td><bold>Start</bold></td>
</tr>
<tr>
<td>2</td>
<td><bold>Collect Cyber Intrusion Data:</bold></td>
</tr>
<tr>
<td></td>
<td>Collect cyber intrusion data from local sensors, logs, and connected systems</td>
</tr>
<tr>
<td>3</td>
<td><bold>Preprocess Data:</bold></td>
</tr>
<tr>
<td></td>
<td>&#x2705; Handling Missing Values</td>
</tr>
<tr>
<td></td>
<td>&#x2705; Categorical Encoding</td>
</tr>
<tr>
<td></td>
<td>&#x2705; Feature Scaling</td>
</tr>
<tr>
<td></td>
<td>&#x2705; Data Type Conversion</td>
</tr>
<tr>
<td></td>
<td>&#x2705; Correlation Analysis</td>
</tr>
<tr>
<td></td>
<td>&#x2705; Visualization</td>
</tr>
<tr>
<td>4</td>
<td><bold>Form local dataset and feature-label pairs:</bold></td>
</tr>
<tr>
<td></td>
<td><inline-formula id="ieqn-36"><mml:math id="mml-ieqn-36"><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>y</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo stretchy="false">)</mml:mo><mml:msubsup><mml:mo fence="false" stretchy="false">}</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> where <inline-formula id="ieqn-37"><mml:math id="mml-ieqn-37"><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x2208;</mml:mo><mml:msup><mml:mrow><mml:mi mathvariant="double-struck">R</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> is feature vector, and <inline-formula id="ieqn-38"><mml:math id="mml-ieqn-38"><mml:msubsup><mml:mi>y</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x2208;</mml:mo><mml:mi>Y</mml:mi></mml:math></inline-formula> is the class label</td>
</tr>
<tr>
<td>5</td>
<td>Train local ML models</td>
</tr>
<tr>
<td></td>
<td><inline-formula id="ieqn-39"><mml:math id="mml-ieqn-39"><mml:mi mathvariant="bold-italic">M</mml:mi><mml:mo>=</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:msubsup><mml:mi mathvariant="bold-italic">f</mml:mi><mml:mrow><mml:mrow><mml:mtext mathvariant="bold">1</mml:mtext></mml:mrow></mml:mrow><mml:mrow><mml:mi mathvariant="bold-italic">i</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi mathvariant="bold-italic">f</mml:mi><mml:mrow><mml:mrow><mml:mtext mathvariant="bold">2</mml:mtext></mml:mrow></mml:mrow><mml:mrow><mml:mi mathvariant="bold-italic">i</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mi mathvariant="bold-italic">f</mml:mi><mml:mrow><mml:mi mathvariant="bold-italic">k</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="bold-italic">i</mml:mi></mml:mrow></mml:msubsup><mml:mo fence="false" stretchy="false">}</mml:mo></mml:math></inline-formula> on <inline-formula id="ieqn-40"><mml:math id="mml-ieqn-40"><mml:msub><mml:mi mathvariant="bold-italic">D</mml:mi><mml:mrow><mml:mi mathvariant="bold-italic">i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td>
</tr>
<tr>
<td>6</td>
<td>Select optimal model:</td>
</tr>
<tr>
<td></td>
<td><inline-formula id="ieqn-41"><mml:math id="mml-ieqn-41"><mml:msup><mml:mi>f</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mrow><mml:mo>&#x2217;</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>g</mml:mi><mml:munder><mml:mo movablelimits="true" form="prefix">max</mml:mo><mml:mrow><mml:mi>f</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>M</mml:mi></mml:mrow></mml:munder><mml:mi>E</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula></td>
</tr>
<tr>
<td>7</td>
<td>Send model <inline-formula id="ieqn-42"><mml:math id="mml-ieqn-42"><mml:msup><mml:mi>f</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mrow><mml:mo>&#x2217;</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:math></inline-formula> and performance metrics to global server</td>
</tr>
<tr>
<td colspan="2"><bold>Global Server Side</bold></td>
</tr>
<tr>
<td>8</td>
<td>Receive local models and metrics from all clients</td>
</tr>
<tr>
<td>9</td>
<td><bold>Perform weighted aggregation:</bold></td>
</tr>
<tr>
<td></td>
<td><inline-formula id="ieqn-43"><mml:math id="mml-ieqn-43"><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover><mml:mfrac><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow></mml:mrow></mml:mfrac><mml:msubsup><mml:mi>w</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula></td>
</tr>
<tr>
<td>10</td>
<td><bold>Apply XAI Techniques:</bold></td>
</tr>
<tr>
<td>10.1</td>
<td><bold>LIME explanation:</bold></td>
</tr>
<tr>
<td></td>
<td><inline-formula id="ieqn-44"><mml:math id="mml-ieqn-44"><mml:mi mathvariant="bold-italic">&#x03B3;</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi mathvariant="bold-italic">x</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:mi mathvariant="bold">arg</mml:mi><mml:munder><mml:mo mathvariant="bold" movablelimits="true" form="prefix">min</mml:mo><mml:mrow><mml:mi mathvariant="bold-italic">g</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi mathvariant="bold-italic">G</mml:mi></mml:mrow></mml:munder><mml:mo stretchy="false">[</mml:mo><mml:mi mathvariant="bold-italic">L</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi mathvariant="bold-italic">f</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="bold-italic">g</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">&#x03C0;</mml:mi><mml:mrow><mml:mi mathvariant="bold-italic">x</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>+</mml:mo><mml:mi mathvariant="bold">&#x03A9;</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi mathvariant="bold-italic">g</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo stretchy="false">]</mml:mo></mml:math></inline-formula></td>
</tr>
<tr>
<td>10.2</td>
<td><bold>SHAP value:</bold></td>
</tr>
<tr>
<td></td>
<td><inline-formula id="ieqn-45"><mml:math id="mml-ieqn-45"><mml:msub><mml:mi mathvariant="bold-italic">&#x03D5;</mml:mi><mml:mrow><mml:mi mathvariant="bold-italic">j</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi mathvariant="bold-italic">x</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi mathvariant="bold-italic">S</mml:mi><mml:mo>&#x2286;</mml:mo><mml:mi mathvariant="bold-italic">F</mml:mi><mml:mi>&#x2216;</mml:mi><mml:mo fence="false" stretchy="false">{</mml:mo><mml:mi mathvariant="bold-italic">j</mml:mi><mml:mo fence="false" stretchy="false">}</mml:mo></mml:mrow></mml:munder><mml:mfrac><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi mathvariant="bold-italic">S</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo>!</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi mathvariant="bold-italic">F</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi mathvariant="bold-italic">S</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mtext mathvariant="bold">1</mml:mtext></mml:mrow><mml:mo stretchy="false">)</mml:mo><mml:mo>!</mml:mo></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi mathvariant="bold-italic">F</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mo>!</mml:mo></mml:mrow></mml:mfrac><mml:mo stretchy="false">[</mml:mo><mml:mi mathvariant="bold-italic">f</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi mathvariant="bold-italic">S</mml:mi><mml:mo>&#x222A;</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:mi mathvariant="bold-italic">j</mml:mi><mml:mo fence="false" stretchy="false">}</mml:mo><mml:mo stretchy="false">)</mml:mo><mml:mo>&#x2212;</mml:mo><mml:mi mathvariant="bold-italic">f</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi mathvariant="bold-italic">S</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo stretchy="false">]</mml:mo></mml:math></inline-formula></td>
</tr>
<tr>
<td>10.3</td>
<td><bold>Partial dependence:</bold></td>
</tr>
<tr>
<td></td>
<td><inline-formula id="ieqn-46"><mml:math id="mml-ieqn-46"><mml:mrow><mml:mover><mml:mi mathvariant="bold-italic">f</mml:mi><mml:mo stretchy="false">&#x005E;</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">x</mml:mi><mml:mrow><mml:mi mathvariant="bold-italic">s</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mtext mathvariant="bold">1</mml:mtext></mml:mrow><mml:mi mathvariant="bold-italic">n</mml:mi></mml:mfrac><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi mathvariant="bold-italic">i</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mtext mathvariant="bold">1</mml:mtext></mml:mrow></mml:mrow><mml:mrow><mml:mi mathvariant="bold-italic">n</mml:mi></mml:mrow></mml:munderover><mml:mi mathvariant="bold-italic">f</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">x</mml:mi><mml:mrow><mml:mi mathvariant="bold-italic">s</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msubsup><mml:mi mathvariant="bold-italic">x</mml:mi><mml:mrow><mml:mi mathvariant="bold-italic">i</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="bold-italic">c</mml:mi></mml:mrow></mml:msubsup><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula></td>
</tr>
<tr>
<td>11</td>
<td>Validate aggregated model; store in cloud if performance threshold is met</td>
</tr>
<tr>
<td>12</td>
<td>Deploy a global model to clients for real-time intrusion detection</td>
</tr>
<tr>
<td>13</td>
<td>Stop</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s6">
<label>6</label>
<title>Simulation Results</title>
<p>Ensuring robust and interpretable intrusion detection in smart city environments presents challenges stemming from data decentralization, feature heterogeneity, and the need for real-time responsiveness. To overcome these, a comprehensive simulation was conducted using the proposed FL model integrated with XAI. This proposed federated learning model was simulated with four client nodes, each receiving an equal and IID partition of the dataset to ensure balanced class representation. The simulation was implemented in Python 3.10 using Scikit-learn, Pandas, and Matplotlib, and executed on a standard system with Intel Core i7, 16 GB RAM, integrated with GPU. Each client performed local preprocessing, feature selection, and trained an RF classifier (n_estimators&#x003D;100, max_depth&#x003D;None). Federated Averaging (FedAvg) was used for global model aggregation over 5 communication rounds, with convergence determined by accuracy stabilization within &#x00B1;0.1% over two consecutive rounds. As tree-based models were used, parameters like learning rate and batch size were not applicable.</p>
<p>The evaluation employed a benchmark intrusion detection dataset [<xref ref-type="bibr" rid="ref-35">35</xref>], which enabled the models to detect both benign and malicious behaviors. The dataset was split into 70% training (18,035) and 30% testing (4509) samples. Feature selection was performed locally to retain the most relevant attributes, after which ML models were independently trained on client nodes. The best-performing models were then aggregated using Federated Averaging to form a global model for further evaluation and interpretability analysis. Model performance was assessed using Accuracy, Precision, Recall, F1-score, Cohen&#x2019;s Kappa, and MCC. At the same time, interpretability was achieved through LIME and SHAP, confirming the framework&#x2019;s effectiveness in accurate and transparent intrusion detection across decentralized smart city environments.</p>
<p><xref ref-type="table" rid="table-4">Table 4</xref> summarizes the training phase performance of four ML models&#x2014;DT, RF, Multilayer Perceptron (MLP), and K-Nearest Neighbors (KNN)&#x2014;applied to the intrusion detection task. The DT and RF models exhibit exceptional training accuracy (99.99%) and near-perfect scores across all evaluated metrics, including Precision, Recall, F1-Score, Cohen&#x2019;s Kappa, and Matthews Correlation Coefficient (MCC), reflecting their robust ability to differentiate between normal and malicious traffic patterns. The MLP and KNN models also deliver strong results, with accuracies above 98%, suggesting their capability to model non-linear and distance-based relationships in the data. Cohen&#x2019;s Kappa and MCC measurements that are consistently high across models show that there is excellent agreement between the predicted and actual classes despite the class imbalance. In summary, the results affirm that the four models are all doing well in representing the dynamics of the training data. Still, the three-based ones outperform the others in predictive stability and enhance predictive classification strength.</p>
<table-wrap id="table-4">
<label>Table 4</label>
<caption>
<title>Training performance metrics of ML models for intrusion detection</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Model</th>
<th>Accuracy</th>
<th>Precision</th>
<th>Recall</th>
<th>F1-Score</th>
<th>Cohen&#x2019;s Kappa</th>
<th>MCC</th>
</tr>
</thead>
<tbody>
<tr>
<td>DT</td>
<td>0.9999</td>
<td>0.9999</td>
<td>0.9999</td>
<td>0.9999</td>
<td>0.9998</td>
<td>0.9998</td>
</tr>
<tr>
<td>RF</td>
<td>0.9999</td>
<td>0.9999</td>
<td>0.9999</td>
<td>0.9999</td>
<td>0.9998</td>
<td>0.9998</td>
</tr>
<tr>
<td>MLP</td>
<td>0.9872</td>
<td>0.9875</td>
<td>0.9872</td>
<td>0.9857</td>
<td>0.9806</td>
<td>0.9806</td>
</tr>
<tr>
<td>KNN</td>
<td>0.9818</td>
<td>0.9805</td>
<td>0.9818</td>
<td>0.9809</td>
<td>0.9724</td>
<td>0.9724</td>
</tr>
</tbody>
</table>
</table-wrap>
<p><xref ref-type="table" rid="table-5">Table 5</xref> presents the testing performance metrics of the four ML models&#x2014;DT, RF, MLP, and KNN&#x2014;for intrusion detection in a real-world smart city context. Among these, the RF model achieves the highest testing accuracy (98.60%), along with strong values for Precision (98.26%), Recall (98.60%), and F1-Score (98.34%), demonstrating excellent generalization and consistent performance under unseen data conditions. The DT model also performs well (98.11% accuracy), but slightly lags behind RF in terms of class balance and robustness, as reflected by marginally lower Cohen&#x2019;s Kappa (0.9713) and MCC (0.9713) values.</p>
<table-wrap id="table-5">
<label>Table 5</label>
<caption>
<title>Testing performance metrics of ML models for intrusion detection</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Model</th>
<th>Accuracy</th>
<th>Precision</th>
<th>Recall</th>
<th>F1-Score</th>
<th>Cohen&#x2019;s Kappa</th>
<th>MCC</th>
</tr>
</thead>
<tbody>
<tr>
<td>DT</td>
<td>0.9811</td>
<td>0.9793</td>
<td>0.9811</td>
<td>0.9799</td>
<td>0.9713</td>
<td>0.9713</td>
</tr>
<tr>
<td>RF</td>
<td>0.986</td>
<td>0.9826</td>
<td>0.986</td>
<td>0.9834</td>
<td>0.9787</td>
<td>0.9787</td>
</tr>
<tr>
<td>MLP</td>
<td>0.9774</td>
<td>0.9725</td>
<td>0.9774</td>
<td>0.9742</td>
<td>0.9654</td>
<td>0.9655</td>
</tr>
<tr>
<td>KNN</td>
<td>0.9738</td>
<td>0.9718</td>
<td>0.9738</td>
<td>0.9717</td>
<td>0.9601</td>
<td>0.9601</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The MLP model, while slightly lower in raw accuracy (97.74%), maintains strong overall performance with balanced precision-recall tradeoffs, indicating it effectively captures non-linear patterns. KNN, although having the lowest accuracy (97.38%), still performs competitively and demonstrates reliable decision boundaries. Overall, the results validate that RF offers the best balance of accuracy and reliability, making it a strong candidate for deployment in the federated intrusion detection model.</p>
<p>Following the evaluation of local model performances, a federated feature selection process was conducted to improve the efficiency and interpretability of the global model. This process involved aggregating the most influential features identified independently by each client. A union-based aggregation strategy was employed, wherein the collective top-ranked features from all participating nodes were merged to form a globally significant feature set. Let <inline-formula id="ieqn-47"><mml:math id="mml-ieqn-47"><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> denote the feature subset locally selected by the client <inline-formula id="ieqn-48"><mml:math id="mml-ieqn-48"><mml:mi>i</mml:mi></mml:math></inline-formula> during the federated feature selection phase. To construct a global consensus of essential features, a voting-based mechanism is applied to derive the final global feature set <inline-formula id="ieqn-49"><mml:math id="mml-ieqn-49"><mml:mi>F</mml:mi></mml:math></inline-formula> as:
<disp-formula id="ueqn-8"><mml:math id="mml-ueqn-8" display="block"><mml:mi>F</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mi>f</mml:mi><mml:mo>&#x2208;</mml:mo><mml:munder><mml:mrow><mml:mo movablelimits="false">&#x22C3;</mml:mo></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:munder><mml:mo>&#x2061;</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mtext>&#xA0;count</mml:mtext></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mi>f</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2265;</mml:mo><mml:mi>T</mml:mi><mml:mo>}</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>Here, <inline-formula id="ieqn-50"><mml:math id="mml-ieqn-50"><mml:munder><mml:mrow><mml:mo movablelimits="false">&#x22C3;</mml:mo></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:munder><mml:mo>&#x2061;</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the union of all locally selected feature subsets across clients, <inline-formula id="ieqn-51"><mml:math id="mml-ieqn-51"><mml:mrow><mml:mtext>count</mml:mtext></mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula> denotes the number of clients that have selected the feature <inline-formula id="ieqn-52"><mml:math id="mml-ieqn-52"><mml:mi>f</mml:mi></mml:math></inline-formula>, and <inline-formula id="ieqn-53"><mml:math id="mml-ieqn-53"><mml:mi>T</mml:mi></mml:math></inline-formula> is a frequency threshold. This voting-based selection ensures that only the most consistently selected features are retained in the global subset. To minimize communication overhead, each client transmits only the indices of its top-ranked features&#x2014;not the raw values&#x2014;making the aggregation process lightweight and bandwidth-efficient.</p>
<p>As a result, 18 critical features were selected, capturing key behavioral patterns associated with network traffic, session attributes, and attack indicators. These include: service, dst_host_srv_diff_host_rate, protocol_type, src_bytes, dst_host_count, dst_host_srv_serror_rate, logged_in, dst_host_same_src_port_rate, flag, dst_host_same_srv_rate, is_guest_login, dst_host_srv_count, dst_bytes, dst_host_rerror_rate, duration_src_bytes_interaction, same_srv_rate, diff_srv_rate, and dst_host_serror_rate. This feature set served as the input for training the final federated global model.</p>
<p><xref ref-type="table" rid="table-6">Table 6</xref> summarizes the testing performance of the final global model, trained using RF on the top 18 selected features. With an accuracy of 98.51% and an F1-score of 98.25%, the model demonstrates strong predictive power. High values of precision, recall, Cohen&#x2019;s Kappa, and MCC confirm the model&#x2019;s reliability and balanced classification performance, validating its suitability for real-world intrusion detection in smart city environments.</p>
<table-wrap id="table-6">
<label>Table 6</label>
<caption>
<title>Testing performance of the final global model after feature selection</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th align="center">Model</th>
<th>Accuracy</th>
<th>Precision</th>
<th>Recall</th>
<th>F1-Score</th>
<th>Cohen&#x2019;s Kappa</th>
<th>MCC</th>
</tr>
</thead>
<tbody>
<tr>
<td>Global Model (RF) with selected features</td>
<td>0.9851</td>
<td>0.9815</td>
<td>0.9851</td>
<td>0.9825</td>
<td>0.9773</td>
<td>0.9773</td>
</tr>
</tbody>
</table>
</table-wrap>
<p><xref ref-type="fig" rid="fig-8">Fig. 8</xref> displays the SHAP summary plot illustrating the global feature importance for the trained RF global model used in multi-class cyber intrusion detection. Features such as service, logged_in, and same_srv_rate exhibit the highest average SHAP values, signifying their strong contribution to the model&#x2019;s predictive decisions. Each bar shows the mean magnitude of SHAP values across all samples and classes, while the color gradients indicate how feature impact varies by attack class. This global explanation supports the transparency of the FL framework by clarifying which features most significantly influence model outputs in a decentralized smart city environment.</p>
<fig id="fig-8">
<label>Figure 8</label>
<caption>
<title>SHAP summary plot of global feature importance</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-8.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-9">Fig. 9</xref> illustrates the SHAP interaction values for selected feature pairs in the RF model, highlighting how combinations of features such as src_bytes, serror_rate, and num_failed_logins jointly influence intrusion detection outcomes. This interaction-based interpretability reveals more profound insights into feature dependencies that affect model behavior, complementing the individual feature importance shown earlier.</p>
<fig id="fig-9">
<label>Figure 9</label>
<caption>
<title>SHAP interaction plot showing joint influence of key feature pairs on intrusion prediction</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-9.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-10">Fig. 10</xref> is a LIME-based local explanation that visualizes how individual features contributed to the classification of a specific instance as Class 16 (attack). The horizontal bars represent the directional impact of each feature&#x2014;features on the right pushed the prediction toward Class 16, while those on the left supported a different class. Notably, features such as logged_in, root_shell, and serror_rate significantly influenced the decision. The right-hand panel lists the corresponding feature values, offering a detailed view of the instance&#x2019;s characteristics. This explanation supports model transparency and decision traceability in real-time intrusion detection.</p>
<fig id="fig-10">
<label>Figure 10</label>
<caption>
<title>LIME explanation showing key feature influences for a predicted intrusion</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_69641-fig-10.tif"/>
</fig>
<p>Furthermore, the identified influential features&#x2014;such as logged_in, root_shell, serror_rate, and same_srv_rate&#x2014;align with known behavioral signatures of attack patterns (e.g., unauthorized access, port scans, or shell escalation), as defined in the dataset documentation. This correspondence validates the interpretability outputs and shows their practical value for cybersecurity analysts. Such explanations can assist in root cause analysis, prioritizing alerts, and adapting security rulesets in operational environments.</p>
<p><xref ref-type="table" rid="table-7">Table 7</xref> presents a comparative analysis of the proposed FL-based intrusion detection model against existing approaches. The proposed model outperforms prior methods [<xref ref-type="bibr" rid="ref-36">36</xref>&#x2013;<xref ref-type="bibr" rid="ref-40">40</xref>] with a highest accuracy of 98.51% and the lowest miss-rate of 1.49%, while also ensuring data privacy and interpretability. Beyond achieving high accuracy and a low miss-rate, the proposed framework improves interpretability through SHAP and LIME, enhances computational efficiency by leveraging non-iterative RF models, ensures scalability via decentralized training, and safeguards privacy by transmitting only selected feature indices&#x2014;making it practically suitable for smart city deployments. Although raw data remains local to each client and only selected feature indices are shared, federated learning systems may still face risks such as membership inference and model inversion attacks. The use of non-iterative models like RF, combined with feature-level aggregation instead of gradient sharing, helps reduce the attack surface. While formal privacy attack simulations are not included, this limitation is acknowledged, and future research may incorporate differential privacy or secure aggregation techniques to strengthen privacy guarantees. Unlike earlier models [<xref ref-type="bibr" rid="ref-41">41</xref>&#x2013;<xref ref-type="bibr" rid="ref-44">44</xref>] that face issues such as scalability, adaptability, or computational cost, the proposed framework achieves robust detection, making it suitable for real-time smart city applications.</p>
<table-wrap id="table-7">
<label>Table 7</label>
<caption>
<title>Comparison of the proposed model with previously published approaches</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
</colgroup>
<thead>
<tr>
<th align="center">References</th>
<th align="center">Model</th>
<th align="center">Accuracy <bold>(%)</bold></th>
<th align="center">Miss-rate <bold>(%)</bold></th>
<th align="center">Positive aspects</th>
<th align="center">Negative aspects</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jadidi et al., 2022 [<xref ref-type="bibr" rid="ref-36">36</xref>]</td>
<td>ANN</td>
<td>90</td>
<td>10</td>
<td>Effectively captures nonlinear cybersecurity patterns</td>
<td>Model convergence limitations reduce scalability</td>
</tr>
<tr>
<td>Kholidy, 2021 [<xref ref-type="bibr" rid="ref-37">37</xref>]</td>
<td>Autonomous Response Controller</td>
<td>91</td>
<td>9</td>
<td>Quantifies cybersecurity risks using financial impact measures</td>
<td>Fixed rule-based response lacks real-time adaptability</td>
</tr>
<tr>
<td>Kure et al., 2022 [<xref ref-type="bibr" rid="ref-38">38</xref>]</td>
<td>Fuzzy Set Theory, ML</td>
<td>93</td>
<td>7</td>
<td>Enhances risk type prediction accuracy using a hybrid fuzzy-ML approach</td>
<td>Computationally expensive, affecting real-time detection</td>
</tr>
<tr>
<td>Wang et al., 2019 [<xref ref-type="bibr" rid="ref-39">39</xref>]</td>
<td>ML</td>
<td>93.91</td>
<td>6.09</td>
<td>Mitigates overfitting in intrusion detection via RF-based learning</td>
<td>Performance is affected by the presence of outliers in the data</td>
</tr>
<tr>
<td>Hussain et al., 2020 [<xref ref-type="bibr" rid="ref-40">40</xref>]</td>
<td>CNN</td>
<td>91</td>
<td>9</td>
<td>Combines DL and real network traffic to improve classification performance</td>
<td>Limited validation across diverse operational environments</td>
</tr>
<tr>
<td>Almalaq et al., 2022 [<xref ref-type="bibr" rid="ref-41">41</xref>]</td>
<td>DL-based cyber-attack detection</td>
<td>93</td>
<td>7</td>
<td>Processes PMU logs in real time for prompt threat response</td>
<td>High computational cost and energy consumption</td>
</tr>
<tr>
<td>Rathore and Park, 2020 [<xref ref-type="bibr" rid="ref-42">42</xref>]</td>
<td>Blockchain-Based DL</td>
<td>80</td>
<td>20</td>
<td>Ensures data privacy and control using blockchain integration</td>
<td>Vulnerability due to private key reliance in encryption</td>
</tr>
<tr>
<td>Kasongo, 2023 [<xref ref-type="bibr" rid="ref-43">43</xref>]</td>
<td>RNN</td>
<td>88</td>
<td>12</td>
<td>Improves detection accuracy through compressed feature space representation</td>
<td>Complexity due to multi-model interdependence</td>
</tr>
<tr>
<td>Xu et al., 2021 [<xref ref-type="bibr" rid="ref-44">44</xref>]</td>
<td>CNN</td>
<td>94</td>
<td>6</td>
<td>Leverages feature correlations to improve attack classification</td>
<td>Needs real-time deployment validation for robustness</td>
</tr>
<tr>
<td>Proposed Global Model (RF) with selected features</td>
<td>FL &#x002B; Feature Selection &#x002B; Interpretable Models</td>
<td>98.51</td>
<td>1.49</td>
<td>Combines high detection accuracy with explainable insights and federated privacy, making it suitable for smart city deployments</td>
<td>XAI methods increase computational overhead, which may affect responsiveness in real-time applications</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s7">
<label>7</label>
<title>Conclusion</title>
<p>The growing complexity of cyber threats, combined with the decentralization of data in smart city ecosystems, poses significant challenges for conventional intrusion detection models. Issues such as a lack of transparency, limited adaptability to emerging attacks, and privacy risks reduce the effectiveness of centralized AI-driven security systems. This study addresses these limitations by presenting an integrated FL-based intrusion detection framework that combines established techniques&#x2014;federated learning, feature selection, and XAI methods like SHAP and LIME&#x2014;in a practical and smart city-focused setting. While the integration is incremental, the approach effectively enhances detection performance, interpretability, and client-level privacy in a unified pipeline. Experimental results confirm their robustness, achieving 98.51% accuracy with minimal false alarms. The model provides actionable, interpretable global and local explanations that support secure and scalable cyber defence.</p>
<p>Future directions include multi-client generalization, real-time deployment, and reducing XAI-related overhead. This study focused on a widely used benchmark dataset; however, practical environments often involve class imbalance, adversarial patterns, and non-stationary data. Although communication was minimized by sharing only feature indices, upcoming work will incorporate evaluations of latency, robustness, and deployment efficiency under real-world constraints.</p>
</sec>
</body>
<back>
<ack>
<p>Not applicable.</p>
</ack>
<sec>
<title>Funding Statement</title>
<p>The authors received no specific funding for this study.</p>
</sec>
<sec>
<title>Author Contributions</title>
<p>Muhammad Sajid Farooq, Muhammad Saleem and M.A. Khan: collected data from various resources and contributed to the original draft preparation. Khan M. Adnan, Muhammad Sajid Farooq and Muhammad Saleem: performed formal analysis and simulation. Muhammad Sajid Farooq and M.A. Khan: performed interpretation of results. Muhammad Farrukh Khan, Shahan Yamin Siddiqui and Muhammad Shoukat Aslam: writing&#x2014;review and editing, drafted pictures and tables. Khan M. Adnan, Muhammad Saleem and Muhammad Sajid Farooq: performed revisions and improve the quality of the draft. All authors reviewed the results and approved the final version of the manuscript.</p>
</sec>
<sec sec-type="data-availability">
<title>Availability of Data and Materials</title>
<p>The original contributions presented in the study are included in the article; further inquiries can be directed to the corresponding authors.</p>
</sec>
<sec>
<title>Ethics Approval</title>
<p>Not applicable.</p>
</sec>
<sec sec-type="COI-statement">
<title>Conflicts of Interest</title>
<p>The authors declare no conflicts of interest to report regarding the present study.</p>
</sec>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>[1]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Nag</surname> <given-names>A</given-names></string-name>, <string-name><surname>Hassan</surname> <given-names>MM</given-names></string-name>, <string-name><surname>Das</surname> <given-names>A</given-names></string-name>, <string-name><surname>Sinha</surname> <given-names>A</given-names></string-name>, <string-name><surname>Chand</surname> <given-names>N</given-names></string-name>, <string-name><surname>Kar</surname> <given-names>A</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Exploring the applications and security threats of Internet of Thing in the cloud computing paradigm: a comprehensive study on the cloud of things</article-title>. <source>Trans Emerging Tel Tech</source>. <year>2024</year>;<volume>35</volume>(<issue>4</issue>):<fpage>e4897</fpage>. doi:<pub-id pub-id-type="doi">10.1002/ett.4897</pub-id>.</mixed-citation></ref>
<ref id="ref-2"><label>[2]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kumar</surname> <given-names>A</given-names></string-name>, <string-name><surname>Sharma</surname> <given-names>S</given-names></string-name>, <string-name><surname>Singh</surname> <given-names>A</given-names></string-name>, <string-name><surname>Alwadain</surname> <given-names>A</given-names></string-name>, <string-name><surname>Choi</surname> <given-names>BJ</given-names></string-name>, <string-name><surname>Manual-Brenosa</surname> <given-names>J</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Revolutionary strategies analysis and proposed system for future infrastructure in Internet of Things</article-title>. <source>Sustainability</source>. <year>2022</year>;<volume>14</volume>(<issue>1</issue>):<fpage>71</fpage>. doi:<pub-id pub-id-type="doi">10.3390/su14010071</pub-id>.</mixed-citation></ref>
<ref id="ref-3"><label>[3]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ismagilova</surname> <given-names>E</given-names></string-name>, <string-name><surname>Hughes</surname> <given-names>L</given-names></string-name>, <string-name><surname>Rana</surname> <given-names>NP</given-names></string-name>, <string-name><surname>Dwivedi</surname> <given-names>YK</given-names></string-name></person-group>. <article-title>Security, privacy and risks within smart cities: literature review and development of a smart city interaction framework</article-title>. <source>Inf Syst Front</source>. <year>2022</year>;<volume>24</volume>(<issue>2</issue>):<fpage>393</fpage>&#x2013;<lpage>414</lpage>. doi:<pub-id pub-id-type="doi">10.1007/s10796-020-10044-1</pub-id>; <pub-id pub-id-type="pmid">32837262</pub-id></mixed-citation></ref>
<ref id="ref-4"><label>[4]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Afzal</surname> <given-names>MU</given-names></string-name>, <string-name><surname>Abdellatif</surname> <given-names>AA</given-names></string-name>, <string-name><surname>Zubair</surname> <given-names>M</given-names></string-name>, <string-name><surname>Mehmood</surname> <given-names>MQ</given-names></string-name>, <string-name><surname>Massoud</surname> <given-names>Y</given-names></string-name></person-group>. <article-title>Privacy and security in distributed learning: a review of challenges, solutions, and open research issues</article-title>. <source>IEEE Access</source>. <year>2023</year>;<volume>11</volume>(<issue>6</issue>):<fpage>114562</fpage>&#x2013;<lpage>81</lpage>. doi:<pub-id pub-id-type="doi">10.1109/access.2023.3323932</pub-id>.</mixed-citation></ref>
<ref id="ref-5"><label>[5]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ahmadi</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Network intrusion detection in cloud environments: a comparative analysis of approaches</article-title>. <source>Int J Adv Comput Sci Appl</source>. <year>2024</year>;<volume>15</volume>(<issue>3</issue>). doi:<pub-id pub-id-type="doi">10.14569/ijacsa.2024.0150301</pub-id>.</mixed-citation></ref>
<ref id="ref-6"><label>[6]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Javed</surname> <given-names>AR</given-names></string-name>, <string-name><surname>Ahmed</surname> <given-names>W</given-names></string-name>, <string-name><surname>Pandya</surname> <given-names>S</given-names></string-name>, <string-name><surname>Maddikunta</surname> <given-names>PKR</given-names></string-name>, <string-name><surname>Alazab</surname> <given-names>M</given-names></string-name>, <string-name><surname>Gadekallu</surname> <given-names>TR</given-names></string-name></person-group>. <article-title>A survey of explainable artificial intelligence for smart cities</article-title>. <source>Electronics</source>. <year>2023</year>;<volume>12</volume>(<issue>4</issue>):<fpage>1020</fpage>. doi:<pub-id pub-id-type="doi">10.3390/electronics12041020</pub-id>.</mixed-citation></ref>
<ref id="ref-7"><label>[7]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Habeeb</surname> <given-names>MS</given-names></string-name>, <string-name><surname>Babu</surname> <given-names>TR</given-names></string-name></person-group>. <article-title>Network intrusion detection system: a survey on artificial intelligence-based techniques</article-title>. <source>Expert Syst</source>. <year>2022</year>;<volume>39</volume>(<issue>9</issue>):<fpage>e13066</fpage>. doi:<pub-id pub-id-type="doi">10.1111/exsy.13066</pub-id>.</mixed-citation></ref>
<ref id="ref-8"><label>[8]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Ahmed</surname> <given-names>S</given-names></string-name>, <string-name><surname>Hossain</surname> <given-names>MF</given-names></string-name>, <string-name><surname>Kaiser</surname> <given-names>MS</given-names></string-name>, <string-name><surname>Noor</surname> <given-names>MBT</given-names></string-name>, <string-name><surname>Mahmud</surname> <given-names>M</given-names></string-name>, <string-name><surname>Chakraborty</surname> <given-names>C</given-names></string-name></person-group>. <chapter-title>Artificial intelligence and machine learning for ensuring security in smart cities</chapter-title>. In: <source>Data-driven mining, learning and analytics for secured smart cities</source>. <publisher-loc>Cham, Switzerland</publisher-loc>: <publisher-name>Springer International Publishing</publisher-name>; <year>2021</year>. p. <fpage>23</fpage>&#x2013;<lpage>47</lpage>. doi:<pub-id pub-id-type="doi">10.1007/978-3-030-72139-8_2</pub-id>.</mixed-citation></ref>
<ref id="ref-9"><label>[9]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ali</surname> <given-names>A</given-names></string-name>, <string-name><surname>Khan</surname> <given-names>MA</given-names></string-name>, <string-name><surname>Abbas</surname> <given-names>N</given-names></string-name>, <string-name><surname>Choi</surname> <given-names>H</given-names></string-name></person-group>. <article-title>Prediction of hydrogen storage in dibenzyltoluene empowered with machine learning</article-title>. <source>J Energy Storage</source>. <year>2022</year>;<volume>55</volume>(<issue>23</issue>):<fpage>105844</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.est.2022.105844</pub-id>.</mixed-citation></ref>
<ref id="ref-10"><label>[10]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Sajid</surname> <given-names>M</given-names></string-name>, <string-name><surname>Malik</surname> <given-names>KR</given-names></string-name>, <string-name><surname>Almogren</surname> <given-names>A</given-names></string-name>, <string-name><surname>Malik</surname> <given-names>TS</given-names></string-name>, <string-name><surname>Khan</surname> <given-names>AH</given-names></string-name>, <string-name><surname>Tanveer</surname> <given-names>J</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Enhancing intrusion detection: a hybrid machine and deep learning approach</article-title>. <source>J Cloud Comput</source>. <year>2024</year>;<volume>13</volume>(<issue>1</issue>):<fpage>123</fpage>. doi:<pub-id pub-id-type="doi">10.1186/s13677-024-00685-x</pub-id>.</mixed-citation></ref>
<ref id="ref-11"><label>[11]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Lazaros</surname> <given-names>K</given-names></string-name>, <string-name><surname>Koumadorakis</surname> <given-names>DE</given-names></string-name>, <string-name><surname>Vrahatis</surname> <given-names>AG</given-names></string-name>, <string-name><surname>Kotsiantis</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Federated learning: navigating the landscape of collaborative intelligence</article-title>. <source>Electronics</source>. <year>2024</year>;<volume>13</volume>(<issue>23</issue>):<fpage>4744</fpage>. doi:<pub-id pub-id-type="doi">10.3390/electronics13234744</pub-id>.</mixed-citation></ref>
<ref id="ref-12"><label>[12]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ali</surname> <given-names>A</given-names></string-name>, <string-name><surname>Khan</surname> <given-names>MA</given-names></string-name>, <string-name><surname>Choi</surname> <given-names>H</given-names></string-name></person-group>. <article-title>Hydrogen storage prediction in dibenzyltoluene as liquid organic hydrogen carrier empowered with weighted federated machine learning</article-title>. <source>Mathematics</source>. <year>2022</year>;<volume>10</volume>(<issue>20</issue>):<fpage>3846</fpage>. doi:<pub-id pub-id-type="doi">10.3390/math10203846</pub-id>.</mixed-citation></ref>
<ref id="ref-13"><label>[13]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ali</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Han</surname> <given-names>KH</given-names></string-name>, <string-name><surname>Majeed</surname> <given-names>A</given-names></string-name>, <string-name><surname>Lim</surname> <given-names>JS</given-names></string-name>, <string-name><surname>Hwang</surname> <given-names>SO</given-names></string-name></person-group>. <article-title>An optimal two-step approach for defense against poisoning attacks in federated learning</article-title>. <source>IEEE Access</source>. <year>2025</year>;<volume>13</volume>:<fpage>60108</fpage>&#x2013;<lpage>21</lpage>. doi:<pub-id pub-id-type="doi">10.1109/access.2025.3556906</pub-id>.</mixed-citation></ref>
<ref id="ref-14"><label>[14]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Majeed</surname> <given-names>A</given-names></string-name>, <string-name><surname>Hwang</surname> <given-names>SO</given-names></string-name></person-group>. <article-title>A multifaceted survey on federated learning: fundamentals, paradigm shifts, practical issues, recent developments, partnerships, trade-offs, trustworthiness, and ways forward</article-title>. <source>IEEE Access</source>. <year>2024</year>;<volume>12</volume>(<issue>2</issue>):<fpage>84643</fpage>&#x2013;<lpage>79</lpage>. doi:<pub-id pub-id-type="doi">10.1109/access.2024.3413069</pub-id>.</mixed-citation></ref>
<ref id="ref-15"><label>[15]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hwang</surname> <given-names>SO</given-names></string-name>, <string-name><surname>Majeed</surname> <given-names>A</given-names></string-name></person-group>. <article-title>Analysis of federated learning paradigm in medical domain: taking COVID-19 as an application use case</article-title>. <source>Appl Sci</source>. <year>2024</year>;<volume>14</volume>(<issue>10</issue>):<fpage>4100</fpage>. doi:<pub-id pub-id-type="doi">10.3390/app14104100</pub-id>.</mixed-citation></ref>
<ref id="ref-16"><label>[16]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Deebak</surname> <given-names>BD</given-names></string-name>, <string-name><surname>Hwang</surname> <given-names>SO</given-names></string-name></person-group>. <article-title>Federated learning-based lightweight two-factor authentication framework with privacy preservation for mobile sink in the social IoMT</article-title>. <source>Electronics</source>. <year>2023</year>;<volume>12</volume>(<issue>5</issue>):<fpage>1250</fpage>. doi:<pub-id pub-id-type="doi">10.3390/electronics12051250</pub-id>.</mixed-citation></ref>
<ref id="ref-17"><label>[17]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Majeed</surname> <given-names>A</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>X</given-names></string-name>, <string-name><surname>Hwang</surname> <given-names>SO</given-names></string-name></person-group>. <article-title>Applications and challenges of federated learning paradigm in the big data era with special emphasis on COVID-19</article-title>. <source>Big Data Cogn Comput</source>. <year>2022</year>;<volume>6</volume>(<issue>4</issue>):<fpage>127</fpage>. doi:<pub-id pub-id-type="doi">10.3390/bdcc6040127</pub-id>.</mixed-citation></ref>
<ref id="ref-18"><label>[18]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Patil</surname> <given-names>D</given-names></string-name></person-group>. <article-title>Explainable artificial intelligence (XAI) for industry applications: enhancing transparency, trust, and informed decision-making in business operation</article-title>. <source>SSRN</source>. <year>2024 [Internet]. [cited 2025 Aug 17]</year>. Available from: <ext-link ext-link-type="uri" xlink:href="https://ssrn.com/abstract=5057402">https://ssrn.com/abstract=5057402</ext-link>.</mixed-citation></ref>
<ref id="ref-19"><label>[19]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Jain</surname> <given-names>R</given-names></string-name></person-group>. <article-title>Transparency in AI decision making: a survey of explainable AI methods and applications</article-title>. <source>Adv Rob Technol</source>. <year>2024</year>;<volume>2</volume>(<issue>1</issue>):<fpage>1</fpage>&#x2013;<lpage>10</lpage>. doi:<pub-id pub-id-type="doi">10.23880/art-16000110</pub-id>.</mixed-citation></ref>
<ref id="ref-20"><label>[20]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Adnan</surname> <given-names>KM</given-names></string-name>, <string-name><surname>Ghazal</surname> <given-names>TM</given-names></string-name>, <string-name><surname>Saleem</surname> <given-names>M</given-names></string-name>, <string-name><surname>Farooq</surname> <given-names>MS</given-names></string-name>, <string-name><surname>Yeun</surname> <given-names>CY</given-names></string-name>, <string-name><surname>Ahmad</surname> <given-names>M</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Deep learning driven interpretable and informed decision making model for brain tumour prediction using explainable AI</article-title>. <source>Sci Rep</source>. <year>2025</year>;<volume>15</volume>(<issue>1</issue>):<fpage>19223</fpage>. doi:<pub-id pub-id-type="doi">10.1038/s41598-025-03358-0</pub-id>; <pub-id pub-id-type="pmid">40451921</pub-id></mixed-citation></ref>
<ref id="ref-21"><label>[21]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Khan</surname> <given-names>MA</given-names></string-name>, <string-name><surname>Farooq</surname> <given-names>MS</given-names></string-name>, <string-name><surname>Saleem</surname> <given-names>M</given-names></string-name>, <string-name><surname>Shahzad</surname> <given-names>T</given-names></string-name>, <string-name><surname>Ahmad</surname> <given-names>M</given-names></string-name>, <string-name><surname>Abbas</surname> <given-names>S</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Smart buildings: federated learning-driven secure, transparent and smart energy management system using XAI</article-title>. <source>Energy Rep</source>. <year>2025</year>;<volume>13</volume>(<issue>15</issue>):<fpage>2066</fpage>&#x2013;<lpage>81</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.egyr.2025.01.063</pub-id>.</mixed-citation></ref>
<ref id="ref-22"><label>[22]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Sajid Farooq</surname> <given-names>M</given-names></string-name>, <string-name><surname>Hassan Ghulam Muhammad</surname> <given-names>M</given-names></string-name>, <string-name><surname>Ali</surname> <given-names>O</given-names></string-name>, <string-name><surname>Zeeshan</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Saleem</surname> <given-names>M</given-names></string-name>, <string-name><surname>Ahmad</surname> <given-names>M</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Developing a transparent anaemia prediction model empowered with explainable artificial intelligence</article-title>. <source>IEEE Access</source>. <year>2025</year>;<volume>13</volume>(<issue>11</issue>):<fpage>1307</fpage>&#x2013;<lpage>18</lpage>. doi:<pub-id pub-id-type="doi">10.1109/access.2024.3522080</pub-id>.</mixed-citation></ref>
<ref id="ref-23"><label>[23]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Abbas</surname> <given-names>S</given-names></string-name>, <string-name><surname>Qaisar</surname> <given-names>A</given-names></string-name>, <string-name><surname>Farooq</surname> <given-names>MS</given-names></string-name>, <string-name><surname>Saleem</surname> <given-names>M</given-names></string-name>, <string-name><surname>Ahmad</surname> <given-names>M</given-names></string-name>, <string-name><surname>Khan</surname> <given-names>MA</given-names></string-name></person-group>. <article-title>Smart vision transparency: efficient ocular disease prediction model using explainable artificial intelligence</article-title>. <source>Sensors</source>. <year>2024</year>;<volume>24</volume>(<issue>20</issue>):<fpage>6618</fpage>. doi:<pub-id pub-id-type="doi">10.3390/s24206618</pub-id>; <pub-id pub-id-type="pmid">39460097</pub-id></mixed-citation></ref>
<ref id="ref-24"><label>[24]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mohale</surname> <given-names>VZ</given-names></string-name>, <string-name><surname>Obagbuwa</surname> <given-names>IC</given-names></string-name></person-group>. <article-title>Evaluating machine learning-based intrusion detection systems with explainable AI: enhancing transparency and interpretability</article-title>. <source>Front Comput Sci</source>. <year>2025</year>;<volume>7</volume>:<fpage>1520741</fpage>. doi:<pub-id pub-id-type="doi">10.3389/fcomp.2025.1520741</pub-id>.</mixed-citation></ref>
<ref id="ref-25"><label>[25]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Gao</surname> <given-names>P</given-names></string-name>, <string-name><surname>Feng</surname> <given-names>G</given-names></string-name>, <string-name><surname>Liang</surname> <given-names>F</given-names></string-name></person-group>. <article-title>Anomaly detection in dynamic graph based on deep graph auto-encoder</article-title>. In: <conf-name>International Conference on Machine Learning and Intelligent Systems Engineering (MLISE); 2022 Aug 5&#x2013;7</conf-name>; <publisher-loc>Guangzhou, China</publisher-loc>; <year>2022</year>. p. <fpage>317</fpage>&#x2013;<lpage>20</lpage>. doi:<pub-id pub-id-type="doi">10.1109/mlise57402.2022.00069</pub-id>.</mixed-citation></ref>
<ref id="ref-26"><label>[26]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Zhu</surname> <given-names>M</given-names></string-name>, <string-name><surname>Ye</surname> <given-names>K</given-names></string-name>, <string-name><surname>Xu</surname> <given-names>CZ</given-names></string-name></person-group>. <chapter-title>Network anomaly detection and identification based on deep learning methods</chapter-title>. In: <source>Cloud computing&#x2014;CLOUD 2018</source>. <publisher-loc>Cham, Switzerland</publisher-loc>: <publisher-name>Springer International Publishing</publisher-name>; <year>2018</year>. p. <fpage>219</fpage>&#x2013;<lpage>34</lpage>. doi:<pub-id pub-id-type="doi">10.1007/978-3-319-94295-7_15</pub-id>.</mixed-citation></ref>
<ref id="ref-27"><label>[27]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Jayaraj</surname> <given-names>R</given-names></string-name>, <string-name><surname>Pushpalatha</surname> <given-names>A</given-names></string-name>, <string-name><surname>Sangeetha</surname> <given-names>K</given-names></string-name>, <string-name><surname>Kamaleshwar</surname> <given-names>T</given-names></string-name>, <string-name><surname>Udhaya Shree</surname> <given-names>S</given-names></string-name>, <string-name><surname>Damodaran</surname> <given-names>D</given-names></string-name></person-group>. <article-title>Intrusion detection based on phishing detection with machine learning</article-title>. <source>Meas Sens</source>. <year>2024</year>;<volume>31</volume>(<issue>2</issue>):<fpage>101003</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.measen.2023.101003</pub-id>.</mixed-citation></ref>
<ref id="ref-28"><label>[28]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Sajid Farooq</surname> <given-names>M</given-names></string-name>, <string-name><surname>Abbas</surname> <given-names>S</given-names></string-name>, <collab>Atta-ur-Rahman</collab>, <string-name><surname>Sultan</surname> <given-names>K</given-names></string-name>, <string-name><surname>Adnan Khan</surname> <given-names>M</given-names></string-name>, <string-name><surname>Mosavi</surname> <given-names>A</given-names></string-name></person-group>. <article-title>A fused machine learning approach for intrusion detection system</article-title>. <source>Comput Mater Contin</source>. <year>2023</year>;<volume>74</volume>(<issue>2</issue>):<fpage>2607</fpage>&#x2013;<lpage>23</lpage>. doi:<pub-id pub-id-type="doi">10.32604/cmc.2023.032617</pub-id>.</mixed-citation></ref>
<ref id="ref-29"><label>[29]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Aljehane</surname> <given-names>NO</given-names></string-name>, <string-name><surname>Mengash</surname> <given-names>HA</given-names></string-name>, <string-name><surname>Hassine</surname> <given-names>SBH</given-names></string-name>, <string-name><surname>Alotaibi</surname> <given-names>FA</given-names></string-name>, <string-name><surname>Salama</surname> <given-names>AS</given-names></string-name>, <string-name><surname>Abdelbagi</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Optimizing intrusion detection using intelligent feature selection with machine learning model</article-title>. <source>Alex Eng J</source>. <year>2024</year>;<volume>91</volume>(<issue>4</issue>):<fpage>39</fpage>&#x2013;<lpage>49</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.aej.2024.01.073</pub-id>.</mixed-citation></ref>
<ref id="ref-30"><label>[30]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Sharma</surname> <given-names>B</given-names></string-name>, <string-name><surname>Sharma</surname> <given-names>L</given-names></string-name>, <string-name><surname>Lal</surname> <given-names>C</given-names></string-name>, <string-name><surname>Roy</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Explainable artificial intelligence for intrusion detection in IoT networks: a deep learning based approach</article-title>. <source>Expert Syst Appl</source>. <year>2024</year>;<volume>238</volume>(<issue>1</issue>):<fpage>121751</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.eswa.2023.121751</pub-id>.</mixed-citation></ref>
<ref id="ref-31"><label>[31]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Nawaz</surname> <given-names>MW</given-names></string-name>, <string-name><surname>Munawar</surname> <given-names>R</given-names></string-name>, <string-name><surname>Mehmood</surname> <given-names>A</given-names></string-name>, <string-name><surname>Rahman</surname> <given-names>MM</given-names></string-name>, <string-name><surname>Abbasi</surname> <given-names>QH</given-names></string-name></person-group>. <article-title>Multi-class network intrusion detection with class imbalance via LSTM &#x0026; SMOTE</article-title>. <source>Cryptography Secur</source>. <comment>arXiv.2310.01850. 2023</comment>.</mixed-citation></ref>
<ref id="ref-32"><label>[32]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Aljehane</surname> <given-names>NO</given-names></string-name>, <string-name><surname>Mengash</surname> <given-names>HA</given-names></string-name>, <string-name><surname>Eltahir</surname> <given-names>MM</given-names></string-name>, <string-name><surname>Alotaibi</surname> <given-names>FA</given-names></string-name>, <string-name><surname>Aljameel</surname> <given-names>SS</given-names></string-name>, <string-name><surname>Yafoz</surname> <given-names>A</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Golden jackal optimization algorithm with deep learning assisted intrusion detection system for network security</article-title>. <source>Alex Eng J</source>. <year>2024</year>;<volume>86</volume>(<issue>1</issue>):<fpage>415</fpage>&#x2013;<lpage>24</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.aej.2023.11.078</pub-id>.</mixed-citation></ref>
<ref id="ref-33"><label>[33]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Alrayes</surname> <given-names>FS</given-names></string-name>, <string-name><surname>Nemri</surname> <given-names>N</given-names></string-name>, <string-name><surname>Aljaffan</surname> <given-names>N</given-names></string-name>, <string-name><surname>Alshuhail</surname> <given-names>A</given-names></string-name>, <string-name><surname>Alhashmi</surname> <given-names>AA</given-names></string-name>, <string-name><surname>Mahmud</surname> <given-names>A</given-names></string-name></person-group>. <article-title>Distributed multiclass cyberattack detection using golden jackal optimization with deep learning model for securing IoT networks</article-title>. <source>IEEE Access</source>. <year>2024</year>;<volume>12</volume>:<fpage>132434</fpage>&#x2013;<lpage>43</lpage>. doi:<pub-id pub-id-type="doi">10.1109/access.2024.3443202</pub-id>.</mixed-citation></ref>
<ref id="ref-34"><label>[34]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Chinnasamy</surname> <given-names>R</given-names></string-name>, <string-name><surname>Subramanian</surname> <given-names>M</given-names></string-name>, <string-name><surname>Sengupta</surname> <given-names>N</given-names></string-name></person-group>. <article-title>Empowering intrusion detection systems: a synergistic hybrid approach with optimization and deep learning techniques for network security</article-title>. <source>Int Arab J Inf Technol</source>. <year>2025</year>;<volume>22</volume>(<issue>1</issue>):<fpage>60</fpage>&#x2013;<lpage>76</lpage>. doi:<pub-id pub-id-type="doi">10.34028/iajit/22/1/6</pub-id>.</mixed-citation></ref>
<ref id="ref-35"><label>[35]</label><mixed-citation publication-type="other"><article-title>Kuldeep research [Internet]</article-title>. <comment>[cited 2025 Aug 17]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.kaggle.com/code/thotakuldeep/kuldeep-research/input">https://www.kaggle.com/code/thotakuldeep/kuldeep-research/input</ext-link>.</mixed-citation></ref>
<ref id="ref-36"><label>[36]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Jadidi</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Pal</surname> <given-names>S</given-names></string-name>, <string-name><surname>Nithesh Nayak</surname> <given-names>K</given-names></string-name>, <string-name><surname>Selvakkumar</surname> <given-names>A</given-names></string-name>, <string-name><surname>Chang</surname> <given-names>CC</given-names></string-name>, <string-name><surname>Beheshti</surname> <given-names>M</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Security of machine learning-based anomaly detection in cyber physical systems</article-title>. In: <conf-name>2022 International Conference on Computer Communications and Networks (ICCCN); 2022 Jul 25&#x2013;28</conf-name>; <publisher-loc>Honolulu, HI, USA</publisher-loc>. doi:<pub-id pub-id-type="doi">10.1109/icccn54977.2022.9868845</pub-id>.</mixed-citation></ref>
<ref id="ref-37"><label>[37]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kholidy</surname> <given-names>HA</given-names></string-name></person-group>. <article-title>Autonomous mitigation of cyber risks in the Cyber&#x2013;Physical Systems</article-title>. <source>Future Gener Comput Syst</source>. <year>2021</year>;<volume>115</volume>(<issue>10</issue>):<fpage>171</fpage>&#x2013;<lpage>87</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.future.2020.09.002</pub-id>.</mixed-citation></ref>
<ref id="ref-38"><label>[38]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kure</surname> <given-names>HI</given-names></string-name>, <string-name><surname>Islam</surname> <given-names>S</given-names></string-name>, <string-name><surname>Ghazanfar</surname> <given-names>M</given-names></string-name>, <string-name><surname>Raza</surname> <given-names>A</given-names></string-name>, <string-name><surname>Pasha</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Asset criticality and risk prediction for an effective cybersecurity risk management of cyber-physical system</article-title>. <source>Neural Comput Appl</source>. <year>2022</year>;<volume>34</volume>(<issue>1</issue>):<fpage>493</fpage>&#x2013;<lpage>514</lpage>. doi:<pub-id pub-id-type="doi">10.1007/s00521-021-06400-0</pub-id>.</mixed-citation></ref>
<ref id="ref-39"><label>[39]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>D</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>X</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Jin</surname> <given-names>L</given-names></string-name></person-group>. <article-title>Detection of power grid disturbances and cyber-attacks based on machine learning</article-title>. <source>J Inf Secur Appl</source>. <year>2019</year>;<volume>46</volume>(<issue>27</issue>):<fpage>42</fpage>&#x2013;<lpage>52</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.jisa.2019.02.008</pub-id>.</mixed-citation></ref>
<ref id="ref-40"><label>[40]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hussain</surname> <given-names>B</given-names></string-name>, <string-name><surname>Du</surname> <given-names>Q</given-names></string-name>, <string-name><surname>Sun</surname> <given-names>B</given-names></string-name>, <string-name><surname>Han</surname> <given-names>Z</given-names></string-name></person-group>. <article-title>Deep learning-based DDoS-attack detection for cyber&#x2013;physical system over 5G network</article-title>. <source>IEEE Trans Ind Inf</source>. <year>2021</year>;<volume>17</volume>(<issue>2</issue>):<fpage>860</fpage>&#x2013;<lpage>70</lpage>. doi:<pub-id pub-id-type="doi">10.1109/tii.2020.2974520</pub-id>.</mixed-citation></ref>
<ref id="ref-41"><label>[41]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Almalaq</surname> <given-names>A</given-names></string-name>, <string-name><surname>Albadran</surname> <given-names>S</given-names></string-name>, <string-name><surname>Mohamed</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Deep machine learning model-based cyber-attacks detection in smart power systems</article-title>. <source>Mathematics</source>. <year>2022</year>;<volume>10</volume>(<issue>15</issue>):<fpage>2574</fpage>. doi:<pub-id pub-id-type="doi">10.3390/math10152574</pub-id>.</mixed-citation></ref>
<ref id="ref-42"><label>[42]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Rathore</surname> <given-names>S</given-names></string-name>, <string-name><surname>Park</surname> <given-names>JH</given-names></string-name></person-group>. <article-title>A blockchain-based deep learning approach for cyber security in next generation industrial cyber-physical systems</article-title>. <source>IEEE Trans Ind Inf</source>. <year>2021</year>;<volume>17</volume>(<issue>8</issue>):<fpage>5522</fpage>&#x2013;<lpage>32</lpage>. doi:<pub-id pub-id-type="doi">10.1109/tii.2020.3040968</pub-id>.</mixed-citation></ref>
<ref id="ref-43"><label>[43]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kasongo</surname> <given-names>SM</given-names></string-name></person-group>. <article-title>A deep learning technique for intrusion detection system using a Recurrent Neural Networks based framework</article-title>. <source>Comput Commun</source>. <year>2023</year>;<volume>199</volume>(<issue>1</issue>):<fpage>113</fpage>&#x2013;<lpage>25</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.comcom.2022.12.010</pub-id>.</mixed-citation></ref>
<ref id="ref-44"><label>[44]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Xu</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>X</given-names></string-name>, <string-name><surname>Lu</surname> <given-names>C</given-names></string-name>, <string-name><surname>Qiu</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Bi</surname> <given-names>C</given-names></string-name>, <string-name><surname>Lai</surname> <given-names>Y</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Network threat detection based on group CNN for privacy protection</article-title>. <source>Wirel Commun Mob Comput</source>. <year>2021</year>;<volume>2021</volume>(<issue>1</issue>):<fpage>3697536</fpage>. doi:<pub-id pub-id-type="doi">10.1155/2021/3697536</pub-id>.</mixed-citation></ref>
</ref-list>
</back></article>