Federated Learning for Intrusion Detection in IoT Security: A Hybrid Ensemble Approach

Sayan Chatterjee, Manjesh Kumar Hanawal

Abstract

The critical role of the Internet of Things (IoT) in domains such as smart cities, healthcare, and transportation has made these systems prime targets for malicious attacks. Traditional Intrusion Detection Systems (IDS) often rely on centralized architectures, which face challenges related to data privacy, communication costs, and the neglect of False Positive Rates (FPR). This paper proposes a Probabilistic Hybrid Ensemble Classification (PHEC) framework that balances high True Positive Rates (TPR) with low FPR. We extend this model to a Federated Learning (FL) environment using a "FedStacking" approach to preserve privacy and handle non-IID data. Furthermore, we introduce Noise-Tolerant PHEC (NT-PHEC) to address label-noise issues using weighted convex surrogate loss functions. Experimental results across four benchmark datasets demonstrate that our model achieves superior performance in both centralized and federated settings, even in the presence of significant label noise.

1. Introduction

As IoT infrastructure expands, the need for robust security becomes paramount. Existing IDS solutions struggle with three primary issues: the high cost and privacy risks of data centralization, the operational burden of high false alarm rates, and the prevalence of noisy or mislabeled training data. This work addresses these challenges by developing a tunable, ensemble-based detection system that can be deployed in a privacy-preserving federated manner.

2. Methodology

2.1 Probabilistic Hybrid Ensemble Classification (PHEC)

The core of our approach is the PHEC architecture, which combines the strengths of K-Nearest Neighbor (KNN) and Random Forest (RF) classifiers. Unlike traditional hard-labeling systems, PHEC utilizes the probability scores from each base classifier.

The PHEC architecture aggregates probability scores from multiple classifiers and applies a tunable threshold to distinguish between threats and normal traffic.

An aggregator function $f(p_1, p_2, ..., p_n)$ computes an average score, which is then compared against a threshold $\gamma$. This thresholding mechanism is critical for real-world deployment, allowing administrators to tune the system's sensitivity based on the specific requirements of the IoT application (e.g., prioritizing low FPR in industrial controls vs. high TPR in critical safety systems).

2.2 Noise-Tolerant PHEC (NT-PHEC)

To handle label noise—a common occurrence in real-world IoT datasets—we implement NT-PHEC. This variant employs $\alpha$-weighted convex surrogate loss functions. By adjusting the weight $\alpha$, the model gains mathematical robustness against symmetric label noise, ensuring that mislabeled samples do not disproportionately degrade the global model's performance.

3. Federated Learning and FedStacking

To address privacy and communication bottlenecks, we adapt PHEC to a Federated Learning framework. In this setup, local nodes (e.g., individual IoT gateways) train their models locally and share only model parameters with a central server.

The federated framework facilitates privacy-preserving intrusion detection by aggregating local model parameters at a central server.

While standard FL often uses simple averaging (FedAvg), we propose FedStacking. In non-IID environments where different nodes encounter different attack patterns, FedAvg can dilute specialized local knowledge. FedStacking instead concatenates parameters, allowing the global model to retain the unique insights gained by each node regarding specific threat types.

4. Experimental Evaluation

The proposed models were evaluated on four datasets: NSL-KDD, DS2OS Traffic Traces, and SCADA datasets from Gas Pipelines and Water Tanks.

  • Detection Performance: On the NSL-KDD dataset, PHEC achieved a TPR of 94.6%, significantly outperforming state-of-the-art Two-Tier and TDTC architectures.
  • Federated Efficiency: The federated implementation maintained performance levels within 1-2% of the centralized model while providing a 10x to 100x speedup in detection latency.
  • Noise Robustness: In tests with 20% label noise, NT-PHEC maintained an accuracy approximately 8.5% higher than standard ensemble methods.

5. Conclusion

This paper presents a robust, tunable, and privacy-preserving framework for IoT intrusion detection. By combining probabilistic ensembles with federated learning and noise-tolerant loss functions, we achieve high detection accuracy with minimal false alarms. Future work will explore class-conditional noise patterns and the application of unsupervised models to detect novel "Zero-Day" attacks.

Summary updated

Abstract

Critical role of Internet of Things (IoT) in various domains like smart city, healthcare, supply chain and transportation has made them the target of malicious attacks. Past works in this area focused on centralized Intrusion Detection System (IDS), assuming the existence of a central entity to perform data analysis and identify threats. However, such IDS may not always be feasible, mainly due to spread of data across multiple sources and gathering at central node can be costly. Also, the earlier works primarily focused on improving True Positive Rate (TPR) and ignored the False Positive Rate (FPR), which is also essential to avoid unnecessary downtime of the systems. In this paper, we first present an architecture for IDS based on hybrid ensemble model, named PHEC, which gives improved performance compared to state-of-the-art architectures. We then adapt this model to a federated learning framework that performs local training and aggregates only the model parameters. Next, we propose Noise-Tolerant PHEC in centralized and federated settings to address the label-noise problem. The proposed idea uses classifiers using weighted convex surrogate loss functions. Natural robustness of KNN classifier towards noisy data is also used in the proposed architecture. Experimental results on four benchmark datasets drawn from various security attacks show that our model achieves high TPR while keeping FPR low on noisy and clean data. Further, they also demonstrate that the hybrid ensemble models achieve performance in federated settings close to that of the centralized settings.
BibTeX
@article{chatterjee2022federated,
  author = {Sayan Chatterjee and Manjesh Kumar Hanawal},
  title = {{Federated Learning for Intrusion Detection in IoT Security: A Hybrid Ensemble Approach}},
  journal = {International Journal of Internet of Things and Cyber-Assurance},
  year = {2022},
  doi = {10.1504/ijitca.2022.124372},
}
Figure