Construction of Anomaly Detection System for IoT Meter Box Gateway Based on Improved GraphSAGE and Federated Learning

Authors

  • Qiang Zhao
    Affiliation
    State Grid Shanxi Electric Power Co., Ltd. Jinzhong Power Supply Branch, Jinzhong, 030600 Shanxi, China
  • Feng Li
    Affiliation
    State Grid Shanxi Electric Power Co., Ltd. Jinzhong Power Supply Branch, Jinzhong, 030600 Shanxi, China
https://doi.org/10.3311/PPee.44586

Abstract

To address the critical challenges in IoT meter box gateways—namely, resource constraints that hinder complex model deployment, data heterogeneity and privacy concerns that impede centralized training, and the inability of traditional methods to capture complex topological and temporal dynamics among gateways—this study aims to construct a distributed anomaly detection system that simultaneously ensures high accuracy, robust privacy preservation, and favorable scalability. A heterogeneous graph representing the multi-dimensional relationships of gateways is constructed. Then, a GraphSAGE model is designed that introduces hierarchical attention and timing fusion modules to enhance feature extraction capabilities. Finally, it is embedded in a federated framework that supports adaptive aggregation, thereby constructing an IoT meter box gateway anomaly detection system. The accuracy of the improved GraphSAGE on the Gotham and GRASEC-IoT data sets reached 0.985 and 0.990, respectively, the false alarm rate was less than 1.2%, and the detection delay was less than 20 milliseconds. The detection rate for six types of attacks such as DDoS and slow penetration was as high as 99.5%. When the gateway scale increased to 100, the F1 score remained above 0.985 and the delay only increased to 35.5 milliseconds. In conclusion, the research plan effectively integrates graph relationships and temporal features, achieving precise and rapid identification of gateway threats while ensuring data privacy. It provides a practical technical path and theoretical basis for the efficient and reliable deployment of security protection systems at the edge of the Internet of Things.

Keywords:

GraphSAGE model, federated learning, IoT meter box gateway, heterogeneous relationship, hierarchical attention aggregation mechanism

Citation data from Crossref and Scopus

Published Online

2026-11-30

How to Cite

Zhao, Q., Li, F. “Construction of Anomaly Detection System for IoT Meter Box Gateway Based on Improved GraphSAGE and Federated Learning”, Periodica Polytechnica Electrical Engineering and Computer Science, 2026. https://doi.org/10.3311/PPee.44586

Issue

Section

Articles