AI-Based Network Intrusion Detection Using Federated Learning and Deep Learning

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

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-22
DOI
https://doi.org/10.5281/zenodo.24434448
Primary Topic
Network Security and Intrusion Detection
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

AI-Based Network Intrusion Detection Using Federated Learning and Deep Learning

Warisha Malik, Raza, Muhammad Awais,
Zenodo (CERN European Organization for Nuclear Research)
Network Security and Intrusion Detection
preprint

AI-Based Network Intrusion Detection Using Federated Learning and Deep Learning

Warisha Malik, Raza, Muhammad Awais,
preprint en

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.

Zenodo (CERN European Organization for Nuclear Research)
Sir Syed CASE Institute of Technology (PK)
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon