Federated Learning for Privacy-Preserving IoT Intrusion Detection under Extreme Non-IID Conditions
Abstract
The rapid growth of IoT devices has expanded attack surfaces, making intrusion detection critical. Traditional centralized IDS compromise privacy and strain bandwidth by requiring raw data transfer. Federated learning (FL) offers a privacy-by-design solution, enabling collaborative training across IoT clients while sharing only model updates. However, FL is highly sensitive to non-IID data. Extreme heterogeneity, prevalent in real-world IoT IDS datasets due to device-specific traffic patterns and severe class imbalances, causes significant convergence challenges and accuracy degradation. This study benchmarks four advanced FL algorithms (FedAvg, SCAFFOLD, FedYogi, and AdaFedAdam) on the RT-IoT2022 dataset (123,117 samples, 12 attack classes) under extreme nonIID conditions (Dirichlet α = 0.01, average JSD = 0.5677, three heterogeneous clients). Using a multilayer neural network with 10-fold cross-validation nested in the FL loop, SCAFFOLD achieves the most stable performance (Round 100: accuracy 0.7981, F1-score 0.7451, ROC-AUC 0.9396), while FedAvg converges slowly (accuracy 0.6959). FedYogi and AdaFedAdam fail due to gradient starvation and second-moment explosion. Compared to centralized baselines (accuracy up to 1.000), FL incurs a 20% accuracy trade-off, an acceptable cost for enhanced privacy in edge-IoT environments. Contributions include the first validation of SCAFFOLD under extreme non-IID IoT IDS and a reproducible evaluation protocol.
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).








