Federated Learning for Intrusion Detection Under Class Imbalance: A Multi-Domain Ablation Study with Per-Client SMOTE
Source abstract
Abstract
Federated learning (FL) enables privacy-preserving collaboration for Network Intrusion Detection Systems (NIDSs), but its effectiveness under heterogeneous traffic, severe class imbalance, and domain shift remains insufficiently characterized. We evaluate FL in two settings: (i) single-domain training on CICIDS-2017, InSDN/OVS, and 5G-NIDD with cross-domain testing, and (ii) multi-domain training that learns a unified model across enterprise and Software-Defined Network (SDN) traffic. Using consistent preprocessing and controlled ablations over balancing strategy, loss function, and client sampling, we find that dataset structure (class separability) largely determines single-domain FL gains. On datasets with lower separability, FL with Per-Client Synthetic Minority Over-sampling Technique (SMOTE) substantially improves Macro-F1 over centralized baselines, while well-separated datasets show limited benefit. However, single-domain models degrade sharply under domain shift, showing substantial degradation in cross-domain transfer. To mitigate this, we combine multi-domain FL with AutoEncoder pretraining and achieve 77% Macro-F1 across environments, demonstrating that FL can learn domain-invariant representations when trained on diverse traffic sources. Overall, our results indicate that Per-Client SMOTE is the preferred balancing strategy for federated NIDS, and that multi-domain training is often necessary when deployment environments differ from training data.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Network Security and Intrusion Detection · Software-Defined Networks and 5G · Adversarial Robustness in Machine Learning
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Computer Engineering, Hacettepe University, 06800 Ankara, Turkey
Institute of Informatics, Hacettepe University, 06800 Ankara, Turkey
References (31)
Show source-provided references
1. SMOTE: Synthetic Minority Over-sampling Technique10.1613/jair.953 ↗
2. McMahan, B., Moore, E., Ramage, D., Hampson, S., and y Arcas, B.A. (2017, January 20–22). Communication-Efficient Learning of Deep Networks from Decentralized Data. Proceedings of the AISTATS, Fort Lauderdale, FL, USA.
3. Federated Learning for Intrusion Detection System: Concepts, Challenges and Future Directions10.1016/j.comcom.2022.09.012 ↗
4. Intrusion Detection Based on Federated Learning: A Systematic Review
5. Federated Learning for IoT Intrusion Detection10.3390/ai4030028 ↗
6. Fed-ANIDS: Federated Learning for Anomaly-Based Network Intrusion Detection Systems10.1016/j.eswa.2023.121000 ↗
7. FedNIDS: A Federated Learning Framework for Packet-Based Network Intrusion Detection System10.1145/3696012 ↗
8. FELIDS: Federated Learning-Based Intrusion Detection System for Agricultural Internet of Things10.1016/j.jpdc.2022.03.003 ↗
9. Mushtaq, M., and Kifayat, K. (2025). BFL-SDWANTrust: Blockchain Federated-Learning-Enabled Trust Framework for Secure East–West Communication in Multi-Controller SD-WANs. Sensors, 25.10.3390/s25165188 ↗
10. Zafar, S., White, J., and Legg, P. (2025). Federated Learning with Adversarial Optimisation for Secure and Efficient 5G Edge Computing Networks. Big Data Cogn. Comput., 9.10.20944/preprints202508.0130.v1 ↗
11. Peng, H., Wu, C., and Xiao, Y. (2025). FD-IDS: Federated Learning with Knowledge Distillation for Intrusion Detection in Non-IID IoT Environments. Sensors, 25.10.3390/s25144309 ↗
12. FedKD-IDS: A robust intrusion detection system using knowledge distillation-based semi-supervised federated learning and anti-poisoning attack mechanism10.1016/j.inffus.2024.102807 ↗
13. Federated learning and explainable AI-driven intrusion detection with hyperband optimization10.1007/s11416-025-00571-3 ↗
14. F-BIDS: Federated-Blending based Intrusion Detection System10.1016/j.pmcj.2023.101750 ↗
15. A federated learning-based zero trust intrusion detection system for Internet of Things10.1016/j.adhoc.2024.103540 ↗
16. Federated learning-based intrusion detection system for Internet of Things
17. SIDS: A federated learning approach for intrusion detection in IoT using Social Internet of Things10.1016/j.comnet.2023.110005 ↗
18. Mavromatis, I., De Feo, S., and Khan, A. (2024). FLAME: Adaptive and Reactive Concept Drift Mitigation for Federated Learning Deployments. arXiv.
19. Lin, T.Y., Goyal, P., Girshick, R., He, K., and Dollár, P. (2017, January 22–29). Focal Loss for Dense Object Detection. Proceedings of the IEEE ICCV, Venice, Italy.10.1109/ICCV.2017.324 ↗
20. Sayegh, H.R., Dong, W., and Al-madani, A.M. (2024). Enhanced Intrusion Detection with LSTM-Based Model, Feature Selection, and SMOTE for Imbalanced Data. Appl. Sci., 14.10.3390/app14020479 ↗
21. Peng, H., Wu, C., and Xiao, Y. (2023). CBF-IDS: Addressing Class Imbalance Using CNN-BiLSTM with Focal Loss in Network Intrusion Detection System. Appl. Sci., 13.10.3390/app132111629 ↗
22. CFL-IDS: An effective clustered federated learning framework for industrial internet of things intrusion detection10.1109/JIOT.2023.3324302 ↗
23. Learning-based intrusion detection for imbalanced traffic: DWGF-IDS10.1016/j.comcom.2023.10.018 ↗
24. Federated transfer learning for rare attack class detection in network intrusion detection systems10.1038/s41598-025-02068-x ↗
25. Sharafaldin, I., Lashkari, A.H., and Ghorbani, A.A. (2018, January 22–24). Toward Generating a New Intrusion Detection Dataset and Intrusion Traffic Characterization. Proceedings of the ICISSP, Funchal, Portugal.10.5220/0006639801080116 ↗
26. InSDN: A Novel SDN Intrusion Dataset10.1109/ACCESS.2020.3022633 ↗
27. Samarakoon, S., Siriwardhana, Y., Porambage, P., Liyanage, M., Chang, S.Y., Kim, J., Kim, J., and Ylianttila, M. (2022). 5G-NIDD: A Comprehensive Network Intrusion Detection Dataset Generated over 5G Wireless Network. arXiv.
28. An Effective Convolutional Neural Network Based on SMOTE and Gaussian Mixture Model for Intrusion Detection in Imbalanced Dataset10.1016/j.comnet.2020.107315 ↗
29. Machine Learning-Based Network Intrusion Detection for Big and Imbalanced Data Using Oversampling10.1186/s40537-024-00886-w ↗
30. FedSBS: Federated-Learning Participant-Selection Method for Intrusion Detection Systems10.1016/j.comnet.2024.110351 ↗
31. Reis, M.J.C.S. (2025). Edge-FLGuard: A Federated Learning Framework for Real-Time Anomaly Detection in 5G-Enabled IoT Ecosystems. Appl. Sci., 15.10.3390/app15126452 ↗