AI-Based Network Intrusion Detection Using Federated Learning and Deep Learning
Year: 2026
Type: preprint
Abstract: Centralized intrusion detection systems (IDS) must collect raw traffic at a single point, which raises privacy, bandwidth and scalability concerns in distributed IoT and edge networks. This paper studies federated learning (FL) for network intrusion detection, in which clients train models locally and share only model parameters, aggregated with Federated Averaging (FedAvg). Three deep learning architectures are compared: a 1D Convolutional Neural Network (CNN), a Long Short-Term Memory network (LSTM) and a hybrid CNN-LSTM. All experiments use the official UNSW-NB15 training and testing partitions, with the training data split across 5 or 9 clients through a non-IID Dirichlet partition (alpha = 0.5). With the baseline configuration (batch size 500, one local epoch per round), the CNN performed best, reaching 84.2% test accuracy and an F1-score of 0.874. With smaller batches and five local epochs per round, all models improved, and the hybrid CNN-LSTM achieved the best overall result: 88.6% accuracy, 0.837 precision, 0.984 recall, an F1-score of 0.905 and a ROC-AUC of 0.984. Splitting the same data across 9 instead of 5 clients reduced accuracy for every model, and the recurrent models showed unstable training in that setting. In all settings recall stayed above 0.98 while precision was the main weakness, which identifies false-alarm reduction and robustness to client heterogeneity as key challenges for federated intrusion detection. All code and results are released for reproducibility.
Authors: Raza, Muhammad Awais,, Malik,Warisha
Institution: Sir Syed CASE Institute of Technology
Language: English
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7238345240
Cites:
Cited by:
Related to:
