Federated Learning for Internet of Things (IoT) Intrusion Detection Using a Feature Tokenizer Transformer

Introduction Federated Learning (FL) enables privacy-preserving intrusion detection in distributed Internet of Things (IoT) networks by training models locally without exposing raw traffic to a central server. Several federated intrusion detection studies employ convolutional or recurrent architectures for network traffic classification. However, these architectures may not fully exploit feature interactions within heterogeneous tabular traffic data. Methods We introduce FL-FTTransformer, a federated intrusion detection system based on an FT-Transformer and trained with Federated proximal (FedProx), a class-weighted focal loss, and a five-phase learning-rate schedule. Training runs for 300 rounds on MQTTset. Each scalar feature is projected into a shared token space, and multi-head self-attention models inter-feature correlations without handcrafted feature engineering. Synthetic Minority Over-sampling Technique-Edited Nearest Neighbors (SMOTE-ENN) oversampling expands the dataset from 330,926 to 659,084 samples to counter severe class imbalance across six Message Queuing Telemetry Transport attack categories. Five clients were simulated under a Dirichlet non-independent and identically distributed partition (α = 3.0) on a dual NVIDIA Tesla T4 graphics processing unit node. Results On a held-out test split of 131,817 samples, FL-FTTransformer achieved 95.25% accuracy, 95.68% macro precision, 94.85% macro recall, and 95.20% macro F1-score. Relative to the recent FL-CNN baseline, macro F1 improved by 1.16 percentage points (pp), macro precision by 0.89 pp, and macro recall by 1.55 pp, with the largest per-class gains observed for denial-of-service (+5.17 pp F1) and Flood (+7.07 pp F1) traffic. An ablation study confirmed that SMOTE-ENN, FedProx, and focal loss each contribute independently to final performance, with SMOTE-ENN removal producing the largest degradation (-2.58 pp macro F1). Conclusions Attention-based tabular modeling combined with federated training provides an effective and privacy-preserving approach to multi-class IoT intrusion detection, outperforming a recent convolutional neural network-based federated baseline on macro F1, precision, and recall, as well as centralized deep learning pipelines, without requiring a separate feature-selection stage.

Authors

Institutions

Publication Details

Journal
Cureus Journal of Computer Science.
Published
2026-11-25
DOI
https://doi.org/10.7759/s44389-026-00390-7
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Federated Learning for Internet of Things (IoT) Intrusion Detection Using a Feature Tokenizer Transformer

Nishtha Kesswani, Vikash Kumar
4 links
Cureus Journal of Computer Science.
Network Security and Intrusion Detection
article

Federated Learning for Internet of Things (IoT) Intrusion Detection Using a Feature Tokenizer Transformer

Nishtha Kesswani, Vikash Kumar
article en

Abstract

Introduction Federated Learning (FL) enables privacy-preserving intrusion detection in distributed Internet of Things (IoT) networks by training models locally without exposing raw traffic to a central server. Several federated intrusion detection studies employ convolutional or recurrent architectures for network traffic classification. However, these architectures may not fully exploit feature interactions within heterogeneous tabular traffic data. Methods We introduce FL-FTTransformer, a federated intrusion detection system based on an FT-Transformer and trained with Federated proximal (FedProx), a class-weighted focal loss, and a five-phase learning-rate schedule. Training runs for 300 rounds on MQTTset. Each scalar feature is projected into a shared token space, and multi-head self-attention models inter-feature correlations without handcrafted feature engineering. Synthetic Minority Over-sampling Technique-Edited Nearest Neighbors (SMOTE-ENN) oversampling expands the dataset from 330,926 to 659,084 samples to counter severe class imbalance across six Message Queuing Telemetry Transport attack categories. Five clients were simulated under a Dirichlet non-independent and identically distributed partition (α = 3.0) on a dual NVIDIA Tesla T4 graphics processing unit node. Results On a held-out test split of 131,817 samples, FL-FTTransformer achieved 95.25% accuracy, 95.68% macro precision, 94.85% macro recall, and 95.20% macro F1-score. Relative to the recent FL-CNN baseline, macro F1 improved by 1.16 percentage points (pp), macro precision by 0.89 pp, and macro recall by 1.55 pp, with the largest per-class gains observed for denial-of-service (+5.17 pp F1) and Flood (+7.07 pp F1) traffic. An ablation study confirmed that SMOTE-ENN, FedProx, and focal loss each contribute independently to final performance, with SMOTE-ENN removal producing the largest degradation (-2.58 pp macro F1). Conclusions Attention-based tabular modeling combined with federated training provides an effective and privacy-preserving approach to multi-class IoT intrusion detection, outperforming a recent convolutional neural network-based federated baseline on macro F1, precision, and recall, as well as centralized deep learning pipelines, without requiring a separate feature-selection stage.

Cureus Journal of Computer Science.
Central University of Rajasthan (IN)
Industry, innovation and infrastructure
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