Improving IoT security through an explainable hybrid CNN-transformer model and federated learning

The rapid proliferation of Internet of Things (IoT) devices has intensified cybersecurity threats, exposing critical infrastructure to sophisticated intrusion attacks. Existing intrusion detection systems (IDS) typically rely on centralized architectures that compromise data privacy, or employ single-architecture models that fail to capture both local spatial patterns and long-range temporal dependencies in network traffic simultaneously. To address these limitations, this paper proposes a novel explainable hybrid CNN-Transformer model integrated with federated learning (FL) for privacy-preserving intrusion detection in IoT environments. The proposed framework uniquely combines four key components not previously integrated in this context: a dual-block CNN-Transformer architecture, federated learning with FedAvg aggregation, multi-class attack classification, and Local Interpretable Model-Agnostic Explanations (LIME) for decision transparency. Evaluated on the IoT-23 dataset across both federated and non-federated scenarios, the proposed model achieves 94.89% accuracy in federated binary classification and 92.17% in federated multi-class classification, outperforming standalone CNN and ensemble baselines by significant margins. Generalizability is further validated through an ablation study on the CIC IoT-DIAD 2024 dataset. The integration of LIME provides actionable feature-level explanations that support real-time decision-making for network security analysts, advancing both the interpretability and trustworthiness of automated IoT intrusion detection systems.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-05-27
DOI
https://doi.org/10.1038/s41598-026-54935-w
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Improving IoT security through an explainable hybrid CNN-transformer model and federated learning

Riyadh M. Al-Tam, Aymen M. Al-Hejri, Archana Harsing Sable, Sultan S. Alshamrani et al.
Scientific Reports
Network Security and Intrusion Detection
article

Improving IoT security through an explainable hybrid CNN-transformer model and federated learning

Riyadh M. Al-Tam, Aymen M. Al-Hejri, Archana Harsing Sable, Sultan S. Alshamrani, Kaled M. Alshmrany, Abdullah Alshehri
article en

Abstract

The rapid proliferation of Internet of Things (IoT) devices has intensified cybersecurity threats, exposing critical infrastructure to sophisticated intrusion attacks. Existing intrusion detection systems (IDS) typically rely on centralized architectures that compromise data privacy, or employ single-architecture models that fail to capture both local spatial patterns and long-range temporal dependencies in network traffic simultaneously. To address these limitations, this paper proposes a novel explainable hybrid CNN-Transformer model integrated with federated learning (FL) for privacy-preserving intrusion detection in IoT environments. The proposed framework uniquely combines four key components not previously integrated in this context: a dual-block CNN-Transformer architecture, federated learning with FedAvg aggregation, multi-class attack classification, and Local Interpretable Model-Agnostic Explanations (LIME) for decision transparency. Evaluated on the IoT-23 dataset across both federated and non-federated scenarios, the proposed model achieves 94.89% accuracy in federated binary classification and 92.17% in federated multi-class classification, outperforming standalone CNN and ensemble baselines by significant margins. Generalizability is further validated through an ablation study on the CIC IoT-DIAD 2024 dataset. The integration of LIME provides actionable feature-level explanations that support real-time decision-making for network security analysts, advancing both the interpretability and trustworthiness of automated IoT intrusion detection systems.

Scientific Reports
Taif University (SA), Swami Ramanand Teerth Marathwada University (IN), Al Rasheed University College (IQ), University of Jeddah (SA), University of Business and Technology (SA), Al Baha University (SA)
Taif University
Industry, innovation and infrastructure
Openalex Percentile: Top 4%
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.