Skip to main content
QUICK REVIEW

[Paper Review] Federated Learning for Internet of Things: A Federated Learning Framework for On-device Anomaly Data Detection

Tuo Zhang, Chaoyang He|arXiv (Cornell University)|Jun 15, 2021
Privacy-Preserving Technologies in DataComputer Science44 references12 citations
TL;DR

This paper proposes FedIoT, a federated learning framework for on-device anomaly detection in IoT systems, using adaptive optimization and dynamic learning rate scheduling to improve detection accuracy while preserving privacy. Evaluated on real Raspberry Pi devices, FedIoT achieves high detection performance with low communication and memory overhead, demonstrating feasibility for resource-constrained IoT deployments.

ABSTRACT

Federated learning can be a promising solution for enabling IoT cybersecurity (i.e., anomaly detection in the IoT environment) while preserving data privacy and mitigating the high communication/storage overhead (e.g., high-frequency data from time-series sensors) of centralized over-the-cloud approaches. In this paper, to further push forward this direction with a comprehensive study in both algorithm and system design, we build FedIoT platform that contains FedDetect algorithm for on-device anomaly data detection and a system design for realistic evaluation of federated learning on IoT devices. Furthermore, the proposed FedDetect learning framework improves the performance by utilizing a local adaptive optimizer (e.g., Adam) and a cross-round learning rate scheduler. In a network of realistic IoT devices (Raspberry PI), we evaluate FedIoT platform and FedDetect algorithm in both model and system performance. Our results demonstrate the efficacy of federated learning in detecting a wider range of attack types occurred at multiple devices. The system efficiency analysis indicates that both end-to-end training time and memory cost are affordable and promising for resource-constrained IoT devices. The source code is publicly available at https://github.com/FedML-AI/FedIoT.

Motivation & Objective

  • Address the limitations of centralized cloud-based anomaly detection in IoT, including high communication and storage overhead and privacy risks.
  • Develop a practical, open-source, and modular federated learning platform for IoT cybersecurity research.
  • Improve anomaly detection performance on resource-constrained devices by leveraging collaborative learning with adaptive optimization and learning rate scheduling.
  • Conduct comprehensive system-level evaluation of federated learning on real IoT hardware, including training time, memory usage, and communication costs.
  • Enable realistic evaluation of FL-based anomaly detection by synthesizing a comprehensive test set covering diverse attack types across the entire IoT network.

Proposed method

  • Design FedIoT platform with three modular layers: application (one-line API for federated training), algorithm (supports FedDetect and baselines like FedAvg), and infrastructure (MQTT for lightweight IoT communication, PyTorch for on-device training).
  • Implement FedDetect, a novel FL algorithm that uses local adaptive optimizers (e.g., Adam) and a cross-round learning rate scheduler to enhance model convergence and detection accuracy.
  • Synthesize a realistic, comprehensive test dataset from public N-BaIoT data to evaluate global model performance across all attack types in the IoT network.
  • Support both edge training on Raspberry Pi and distributed training on CPU/GPU via dual communication backends: MQTT for IoT devices and MPI for high-performance systems.
  • Conduct end-to-end system performance analysis on Raspberry Pi, measuring training time per round, memory consumption, and communication overhead under realistic 4G/5G bandwidth (7.65 MB/s).
  • Use deep autoencoders as the anomaly detection model, trained globally via federated averaging with model aggregation and local updates on each device.

Experimental results

Research questions

  • RQ1Can federated learning effectively detect a broad range of IoT attack types without centralizing raw device data?
  • RQ2How does the proposed FedDetect algorithm with adaptive optimization and dynamic learning rate scheduling improve detection performance compared to standard FedAvg?
  • RQ3What are the actual system-level costs (training time, memory, communication) of deploying federated learning on real, resource-constrained IoT devices like Raspberry Pi?
  • RQ4To what extent does the performance of federated learning on edge devices match that of centralized GPU/CPU training in terms of accuracy and robustness?
  • RQ5How does the communication cost impact end-to-end training time in a real-world IoT setting with limited bandwidth?

Key findings

  • FedIoT achieved 97.47% test accuracy on Raspberry Pi, closely matching the 98.27% accuracy from CPU/GPU simulation, confirming the feasibility of edge-based training.
  • The end-to-end training time on Raspberry Pi was under 1 hour (2547 seconds), with communication accounting for 42.2% of the total time, highlighting the need for communication compression.
  • Memory usage per training round occupied only a small fraction (under 4G total host memory) of the Raspberry Pi’s capacity, indicating low memory overhead.
  • The training time per round was less than 1 minute, demonstrating real-time feasibility for practical deployment.
  • FedDetect outperformed CL-Single and FedAvg in detection performance, especially in FPR and TNR, due to better feature learning through collaborative training.
  • The system efficiency analysis confirmed that both computational and communication costs are affordable and suitable for deployment on resource-constrained IoT edge devices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.