Submitted:
21 May 2025
Posted:
23 May 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Related Work and Background
2.1. Main Contributions of This Work
3. Proposed Methodology
3.1. Security and Privacy Analysis
4. Experimental Setup and Evaluation
4.1. Experimental Environment
4.2. Datasets Used
- CICIDS2017: A comprehensive dataset containing benign and malicious traffic flows, including DoS, DDoS, PortScan, and Web attacks. It emulates real-world enterprise network activity and contains over 3 million labeled samples.
- TON_IoT: A modern dataset designed for IoT-specific security assessment, including telemetry, network flows, and log files collected from smart home and smart city devices. It contains rich data streams that reflect multimodal IoT behavior.
- NSL-KDD: A refined and de-duplicated version of the KDD'99 dataset, widely used as a benchmark in intrusion detection research. It includes four major attack classes and a corrected label structure.
4.3. Evaluation Metrics
- Accuracy (ACC): Measures the proportion of correctly identified instances (both benign and malicious) out of all predictions. Calculated as:
- Precision (PRE): Indicates the proportion of positive identifications that were - correct
- Recall (REC): Represents the proportion of actual positives that were correctly identified.
- F1-Score: Harmonic mean of precision and recall, balancing both metrics.
- Privacy Loss (PL): Evaluates the potential information leakage across communications. It was estimated using differential privacy parameters and measured as the relative decrease in model entropy.
- Communication Overhead Reduction (COR): Quantifies the reduction in data exchanged during federated training compared to centralized approaches, considering model pruning and selective parameter transmission.
- TP (True Positives): The number of correctly classified positive instances (e.g., correctly detected attacks).
- TN (True Negatives): The number of correctly classified negative instances (e.g., correctly identified benign traffic).
- FP (False Positives): The number of benign instances incorrectly classified as attacks.
- FN (False Negatives): The number of attack instances incorrectly classified as benign traffic.
4.4. Experiment Phases
- Local Training Phase - Each IoT client performs model training using its locally available, non-IID dataset partition. No raw data is exchanged during training, ensuring complete data locality and adherence to privacy principles.
- Privacy Enforcement Phase - After local training, each client applies gradient clipping, Fisher-based pruning, and encryption techniques to its model updates. These mechanisms limit potential gradient leakage and increase robustness against inversion attacks.
- Secure Communication Phase - Encrypted updates are transmitted over secure VPN channels using lightweight protocols to minimize overhead. This ensures both confidentiality and efficiency during transmission to the central aggregator.
- Secure Aggregation Phase - The aggregation server collects encrypted model updates from participating clients and performs secure multiparty aggregation. Individual client contributions remain hidden, supporting robustness against adversarial reconstructions.
- Global Model Update Phase - A refined global model is synthesized and distributed to clients for the next round of training. The cycle repeats iteratively until convergence criteria are met, typically defined by accuracy stabilization or loss threshold.

4.5. Expected Results and Discussion
- Model Performance - Under non-IID client data distributions, the framework maintains an average accuracy of over 90%, approaching the performance of centralized models. This is made possible by localized model optimization, secure aggregation strategies, and personalized learning mechanisms. These results are consistent with previous literature on robust FL frameworks in cybersecurity contexts.
- Privacy Preservation - Through the integration of gradient clipping, encryption, and calibrated differential privacy noise, the system maintains privacy loss below 5% even under adversarial gradient inference scenarios. Sensitive information is protected at every stage of training, reinforcing compliance with privacy-by-design principles.
- Communication Efficiency - The implementation of selective parameter transmission and lightweight encrypted communication results in a 25-30% reduction in communication overhead compared to standard FL implementations. This efficiency is critical for deployment in bandwidth-constrained IoT infrastructures.
- Comparative Analysis - Unlike centralized learning models that aggregate raw data, introducing privacy risks and single points of failure, FL distributes learning across devices, preserving data locality. As shown in Figure 9, the FL framework achieves comparable accuracy while significantly reducing privacy loss. This tradeoff reflects a pragmatic balance between predictive power and privacy that is particularly relevant in real-world security applications
4.6. Case Study

5. Conclusion
6. Explainability in Federated Intrusion Detection
6.1. Motivation and Context As
6.2. Techniques for Explainable Federated Learning
- SHAP (SHapley Additive exPlanations): Provides feature attribution scores for each prediction, allowing interpretation of model output at the instance level.
- LIME (Local Interpretable Model-agnostic Explanations): Constructs local surrogate models to approximate and explain predictions.
- Grad-CAM (gradient-weighted class activation mapping): Used primarily in CNNs for visual explanations that can be adapted to network traffic classification models.
6.3. Proposed Architecture for Explainable FL-Based IDS
6.4. Use Case Example: DDoS Detection in Smart Healthcare
6.5. Explainability as a Trust and Auditing Layer
- Identify malicious clients that submit untrustworthy gradients (e.g., poisoned updates with incoherent feature attributions);
- Support reputation scoring in a federated context (clients with consistent, interpretable updates are rated higher);
- Enable regulatory audits and provide post-incident forensics (why was a critical device flagged, what patterns triggered it?);
- Improve transparency of blockchain-logged updates with attached attribution summaries.
Limitations and Open Challenges
- Computational overhead on resource-constrained client nodes can limit real-time explanation.
- Variance in interpretability: Clients with widely varying data distributions can generate mismatched explanations.
- Explanation security: Feature attribution vectors can reveal sensitive data correlations if not properly obfuscated.
- Standardization: Lack of standardized protocols for aggregating and validating explanations in FL environments.
6.6. Future Directions
- FL + LLMs for threat explanation: e.g., GPT-based summarizers to convert attribution vectors into human-readable alerts.
- Joint optimization of accuracy and interpretability (e.g., using Pareto front-based training).
- Federated multimodal XAI combining logs, sensor data, and images.
7. Limitations And Future Work
Abbreviations
| ACC | Accuracy |
| Carrier-Grade NATs | Carrier-Grade Network Address Translation (CGNAT) |
| CICIDS2017 | Canadian Institute for Cybersecurity Intrusion Detection System 2017 |
| CIRA | Cyber Intelligent Risk Assessment |
| COR | Communication Overhead Reduction |
| DDoS | Distributed Denial of Service |
| DD-WRT | Dynamic Distibution Wireless Router Toolkit |
| DORE | Delegable Order-Revealing Encryption |
| DoS | Denial of Service |
| ECG | Electrocardiogram |
| FL | Federated Learning |
| FLS ID | Federated Learning System Identifier |
| FLwr | Flower - A Friendly Federated Learning Framework |
| FN | False Negatives |
| FP | False Positives |
| GDPR | General Data Protection Regulation |
| GPT | Generative Pre-trained Transformer |
| Grad-CAM | Gradient-Weighted Class Activation Mapping |
| HIPAA | Health Insurance Portability and Accountability Act |
| IDS | Intrusion Detection Systems |
| IoT | Internet of Things |
| IP | Internet Protocol |
| LIME | Local Interpretable Model-agnostic Explanations |
| MOFL | Multi-Objective Federated Learning |
| MTFL | Multi-Task Federated Learning |
| NFV | Network Functions Virtualization |
| non-IID | non-Independent and Identically Distributed |
| NSL-KDD | Network Security Laboratory – Knowledge Discovery in Database |
| PL | Privacy Loss |
| PRE | Precision |
| REC | Recall |
| SDN | Software-Defined Networking |
| SHAP | SHapley Additive exPlanations |
| SMPC | Secure Multi-Party Computation |
| TN | True Negatives |
| TON_IoT | Data sets created by Telecommunication and Network Research Lab (TON) for IoT security |
| TP | True Positives |
| Trust-6GCPSS | Trust-based 6G Cyber-Physical Secure System |
| VPN | Virtual Private Network |
| XAI | Explaining AI |
References
- I. Sharafaldin, A. H. Lashkari, and A. A. Ghorbani, “Toward generating a new intrusion detection dataset and intrusion traffic characterization,” in Proc. 4th Int. Conf. Inf. Syst. Secur. Privacy (ICISSP, 2018, pp. 108–116. [Online]. Available: https://www.unb.ca/cic/datasets/ids-2017.html.
- N. Moustafa, “TON_IoT Datasets: The new generation of IoT datasets for deep learning and NIDS evaluation,” in Proc. MILCOM 2021 - IEEE Military Communications Conference, San Diego, CA, USA, 2021, pp. 767–772. [CrossRef]
- M. S. Popli, R. P. Singh, N. K. Popli, and M. Mamun, “A Federated Learning Framework for Enhanced Data Security and Cyber Intrusion Detection in Distributed Network of Underwater Drones,” in IEEE Access, vol. 13, 2025, pp. 12634-12646,. [CrossRef]
- Z. Liu, C. Yang, Y. Ding, H. Liang, and Y. Wang, “A Lightweight and Accuracy-Lossless Privacy-Preserving Method in Federated Learning,” IEEE Internet of Things Journal, vol. 12, no. 3, pp. 3118-3129, Feb. 2025. [CrossRef]
- L. Skovajsova, L. Hluchý, and M. Staňo, “A Review of Multi-Objective and Multi-Task Federated Learning Approaches,” in 2025 IEEE 23rd World Symposium on Applied Machine Intelligence and Informatics (SAMI), Stará Lesná, Slovakia, 2025, pp. 000035-000040,. [CrossRef]
- A. Rahdari, “A Survey on Privacy and Security in Distributed Cloud Computing: Exploring Federated Learning and Beyond,” IEEE Open Journal of the Communications Society, vol. 6, pp. 3710-3744, 2025. [CrossRef]
- H. Wang, Z. Xu, Y. Zhang, and Y. Wang, “Adaptive Layered-Trust Robust Defense Mechanism for Personalized Federated Learning,” in ICASSP 2025 - 2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP, Hyderabad, India, 2025, pp. 1-5,. [CrossRef]
- E. M. Timofte, A. L. Balan, and T. Iftime, “AI Driven Adaptive Security Mesh: Cloud Container Protection for Dynamic Threat Landscapes,” in International Conference on Development and Application Systems (DAS, Suceava, Romania, 2024, pp. 71-77,. [CrossRef]
- Xu, C. Peng, R. Li, J. Fu, and M. Luo, “An Efficient Delegatable Order-Revealing Encryption Scheme for Multi-User Range Queries,” IEEE Transactions on Cloud Computing, vol. 13, no. 1, pp. 75-86, Jan. 2025. [CrossRef]
- C. Zhu, “Blockchain-Enhanced Federated Learning for Secure and Intelligent Consumer Electronics : An Overview,” IEEE Consumer Electronics Magazine. [CrossRef]
- A. L. Kotian, A. B, A. R. Allapur, A. Gowda, and A. Gowda, “A Comprehensive Review of Different Frameworks for Ensuring Data Privacy and Security for IoT Networks in Smart City,” in 3rd International Conference on Intelligent Data Communication Technologies and Internet of Things (IDCIoT, Bengaluru, India, 2025, pp. 720-725,. [CrossRef]
- Y. Y. Q. Wu L. Zhang and K.-K. R. Choo, “Certificateless Signature Scheme With Batch Verification for Secure and Pri-vacy-Preserving V2V Communications in VANETs,” IEEE Transactions on Dependable and Secure Computing, vol. 22, no. 2, pp. 1448-1459, Mar. 2025. [CrossRef]
- G. Abbas, M. Ali, M. Ahmed, and A. Khan, “CIRA-Cyber Intelligent Risk Assessment Methodology for Industrial Internet of Things based on Machine Learning,” in IEEE Access. [CrossRef]
- E. M. Timofte, A. L. Balan, and T. Iftime, “Designing an Authentication Methodology in IoT Using Energy Consumption Patterns,” in International Conference on Development and Application Systems (DAS, Suceava, Romania, 2024, pp. 64-70,. [CrossRef]
- H. Yu, X. Jia, H. Zhang, and J. Shu, “Efficient and Privacy-Preserving Ride Matching Using Exact Road Distance in Online Ride Hailing Services,” IEEE Transactions on Services Computing, vol. 15, no. 4, pp. 1841-1854, Jul. 2022. [CrossRef]
- T. Zhou, Jun Zhou, Z. Cao, X. Dong, and K.-K. Raymond Choo, “Efficient Multilevel Threshold Changeable Homomorphic Data Encapsulation With Application to Privacy-Preserving Vehicle Positioning,” IEEE Transactions on Intelligent Transportation Systems, vol. 26, no. 4, pp. 5494–5508, Apr. 2025. [CrossRef]
- M. Zeng, J. Cui, Q. Zhang, H. Zhong, and D. He, “Efficient Revocable Cross-Domain Anonymous Authentication Scheme for IIoT,” in IEEE Transactions on Information Forensics and Security, vol. 20, 2025, pp. 996-1010,. [CrossRef]
- X. Wang, J. Li, Z. Liu, Q. Tang, and X. Wang, “Enabling Secure Cross-Modal Search Over Encrypted Data via Federated Learning,” IEEE Internet of Things Journal, vol. 12, no. 2, pp. 1933-1945, Jan. 2025. [CrossRef]
- Q. B. Phan, H. Nguyen, P. D. Ngoc, and T. T. Nguyen, “Enhancing Data Security in Federated Learning with Dilithium,” in 2025 IEEE International Conference on Consumer Electronics (ICCE), Las Vegas, NV, USA, 2025, pp. 1-6,. [CrossRef]
- M. Li, Y. Li, R. Du, C. Jia, and W. Shao, “EVPIR: Efficient and Verifiable Privacy-Preserving Image Retrieval in Cloud-assisted Internet of Things,” IEEE Internet of Things Journal. [CrossRef]
- D.-F. Hriţcan and D. Balan, “Exposing IoT Platforms Securely and Anonymously Behind CGNAT,” in 2024 23rd RoEduNet Con-ference: Networking in Education and Research (RoEduNet, Bucharest, Romania, 2024, pp. 1-4,. [CrossRef]
- W. Li, “Fine-Grained Access Control with Privacy-Preserving Data Retrieval for Cloud-Assisted IoV,” in IEEE Transactions on Vehicular Technology. [CrossRef]
- H. Yan, X. Lin, S. Li, H. Peng, and B. Zhang, “Global or Local Adaptation? Client-Sampled Federated Meta-Learning for Per-sonalized IoT Intrusion Detection,” in IEEE Transactions on Information Forensics and Security, vol. 20, 2025, pp. 279-293,. [CrossRef]
- T. Zhang, “Hybrid Transfer and Self-Supervised Learning Approaches in Neural Networks for Intelligent Vehicle In-trusion Detection and Analysis,” IEEE Internet of Things Journal, vol. 12, no. 7, pp. 7677-7692, Apr. 2025. [CrossRef]
- T. E. Marian and B. Doru, “Improving Network Security Using DD-WRT as a Solution for SOHO Routers,” in 2023 22nd RoEduNet Conference: Networking in Education and Research (RoEduNet, Craiova, Romania, 2023, pp. 1-5,. [CrossRef]
- C. Zhu, “Intelligent Management and Computing for Trustworthy Services Under 6G-Empowered Cyber-Physical-Social System,” IEEE Network, vol. 39, no. 2, pp. 124-133, Mar. 2025. [CrossRef]
- A. Hemalatha, V. K. M. N, F. T. Graf, A. S. I. T. M, P. Pavithra, and R. Suresh, “A Hybrid Intrusion Detection System using Explainable AI for Enhanced Accuracy and Transparency,” in 2025 International Conference on Electronics and Renewable Systems (ICEARS), Tuticorin, India, 2025, pp. 923-929,. [CrossRef]
- S. Naskar, G. Hancke, T. Zhang, and M. Gidlund, “Pseudo-Random Identification and Efficient Privacy-Preserving V2X Communication for IoV Networks,” in IEEE Access, vol. 13, 2025, pp. 1147-1163,. [CrossRef]
- E. Khramtsova, C. Hammerschmidt, S. Lagraa, and R. State, “Federated Learning For Cyber Security: SOC Collaboration For Malicious URL Detection,” in 2020 IEEE 40th International Conference on Distributed Computing Systems (ICDCS, Singapore, Sin-gapore, 2020, pp. 1316-1321,. [CrossRef]
- S. Islam, S. Badsha, S. Sengupta, I. Khalil, and M. Atiquzzaman, “An Intelligent Privacy Preservation Scheme for EV Charging Infrastructure,” IEEE Transactions on Industrial Informatics, vol. 19, no. 2, pp. 1238-1247, Feb. 2023. [CrossRef]
- D.-F. Hrițcan and D. Balan, “The Role of Load Balancer Mechanisms in Securing IoT Platforms,” in 2022 21st RoEduNet Conference: Networking in Education and Research (RoEduNet, Sovata, Romania, 2022, pp. 1-4,. [CrossRef]
- Z. Zhang, L. Wu, J. Jin, E. Wang, B. Liu, and Q.-L. Han, “Secure Federated Learning for Cloud-Fog Automation: Vulnerabilities, Challenges, Solutions, and Future Directions,” IEEE Transactions on Industrial Informatics, vol. 21, no. 5, pp. 3528–3540, May 2025. [CrossRef]
- D.-F. Hrițcan and D. Balan, “Using Tailscale and PfSense for Security and Anonymity of IoT Environments,” in 2024 International Conference on Development and Application Systems (DAS, Suceava, Romania, 2024, pp. 91-94,. [CrossRef]
- M. Li, “IvyCross: a Privacy-Preserving and Concurrency Control Framework for Blockchain Interoperability,” in IEEE Transactions on Mobile Computing. [CrossRef]
- H. Zhao, N. Feng, F. Meng, Q. Wang, B. Wan, and J. Wang, “A Mapping-based Dynamic Semi-Online Task Scheduling Method for Minimizing Energy in Edge Computing,” in 2021 IEEE 23rd Int Conf on High Performance Computing & Communications; 7th Int Conf on Data Science & Systems; 19th Int Conf on Smart City; 7th Int Conf on Dependability in Sensor, Cloud & Big Data Systems & Application (HPCC/DSS/SmartCity/DependSys, Haikou, Hainan, China, 2021, pp. 721-726,. [CrossRef]
- X. Chen, H. Zhao, and J. Wang, “FLTrustExplain: Explainable and Robust Federated Aggregation Mechanism,” ACM Trans-actions on Privacy and Security (TOPS, vol. 25, no. 4, pp. 1-29, Oct. 2022. [CrossRef]
- R. Guidotti and A. Monreale, “A Survey of Methods for Explaining Black Box Models in Federated Learning,” Artificial In-telligence Review, vol. 54, pp. 447-491, Jan. 2021. [CrossRef]
- T. Zhang and H. Lin, “GILL: Global Interpretable Learning for Federated Environments,” Pattern Recognition Letters, vol. 168, pp. 51-60, Jan. 2023. [CrossRef]
- Y. Liu, Y. Zhang, and H. Yu, “XFed: Explainable Federated Learning for Intrusion Detection in Edge Networks,” IEEE Internet of Things Journal, vol. 9, no. 6, pp. 4490-4503, Mar. 2022. [CrossRef]
- V. Sharma, A. K. Sangaiah, R. Buyya, and M. Rajarajan, “EdgeXAI: Explainable AI for Edge-Based Cybersecurity in Federated Environments,” Computers & Security, vol. 125, 102983, 2023. [CrossRef]
- V. Mothukuri, R. Parizi, S. Pouriyeh, Y. Huang, A. Dehghantanha, and G. Srivastava, “A Survey on Security and Privacy of Federated Learning,” Future Generation Computer Systems, vol. 115, pp. 619-640, Mar. 2021. [CrossRef]








| Feature/Method | FedAVG | FedProx | MOFL/ MTFL | This Work |
|---|---|---|---|---|
| Gradient Clipping | ✕ | ✕ | ✕ | ✓ |
| Fisher-Based Parameter Pruning | ✕ | ✕ | ✕ | ✓ |
| Personalized Local Updates | ✕ | ✓ | ✓ | ✓ |
| Secure Aggregation (SMPC) | ✕ | ✕ | ✕ | ✓ |
| Differential Privacy | ✕ | ✕ | ✕ | ✓ |
| Blockchain Logging | ✕ | ✕ | ✕ | ✓ |
| Post-Quantum Encryption (Dilithium) | ✕ | ✕ | ✕ | ✓ |
| Adaptability to Non-IID Data | ✕ | ✓ | ✓ | ✓ |
| Client Load Balancing | ✕ | ✕ | ✕ | ✓ |
| Tamper Resistance / Auditability | ✕ | ✕ | ✕ | ✓ |
| Metric | Value |
|---|---|
| Accuracy | 92,5% |
| Precision | 90,2% |
| Recall | 88,7% |
| F1-Score | 89,4% |
| Privacy Loss | <5% |
| Communication Overhead Reduction | 23% |
| Criteria | FL without Explainability | FL with Explainability |
| Transparency | Low | High (via SHAP/LIME etc. |
| Model Trustworthiness | Limited | Improved |
| Compliance (e.g., GDPR) | Non-compliant (no-rationale) | Yes (interpretability enabled) |
| Resource Overhead | Lower | Moderate (client-side XAI) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).