Graph Neural Networks for Anomaly Detection in Industrial and IoT Networks: A Comparative Study of Graph Contributions and Generalization Stability
DOI:
https://doi.org/10.4108/eetinis.134.15488Keywords:
graph neural networks, intrusion detection, anomaly ranking, graph ablation, communication-pair-disjoint evaluation, generalization stability, TON_IoT, CoraAbstract
Graph Neural Networks (GNNs) provide a promising approach to analyzing relational patterns in complex communication environments, including industrial and Internet of Things (IoT) networks. However, the reliability of GNN-based anomaly analysis and intrusion detection depends not only on predictive performance but also on graph construction, feature availability, evaluation protocols, and training stability. This study presents a comparative evaluation of four GNN architectures: Graph Convolutional Network (GCN), Graph Attention Network (GAT), Graph Sample and Aggregation (GraphSAGE), and Graph Isomorphism Network (GIN), across two complementary experimental settings. First, the Cora citation network is employed to assess node classification and controlled synthetic anomaly scoring, explicitly distinguishing classification labels from anomaly ground truth. Second, the TON_IoT Network dataset is used for supervised binary intrusion classification using real benign and attack labels. To assess generalization and the contribution of relational information, the experiments incorporate communication-pair-disjoint partitions, a frozen-reference graph construction protocol, feature-based comparisons, and graph ablation. Under the frozen-reference evaluation, GAT achieved the highest mean macro-F1 score of 96.04%, followed by GraphSAGE at 94.73%. Nevertheless, the contribution of graph connectivity varied across architectures, and substantial performance fluctuations were observed for some models across random initializations and data partitions. These findings demonstrate that high aggregate classification performance does not necessarily imply consistent anomaly detection capability or robust generalization. The study provides an evaluation-oriented perspective on the strengths and limitations of GNN architectures for network security applications while identifying methodological considerations relevant to industrial and IoT environments.
Downloads
References
[1] A. Alsaedi, N. Moustafa, Z. Tari, A. Mahmood, and A. Anwar, “Ton_iot telemetry dataset: A new generation dataset of iot and iiot for data-driven intrusion detection systems,” IEEE Access, vol. 8, pp. 165 130–165 150, 2020.
[2] R. Das and M. Soylu, “A key review on graph data science: The power of graphs in scientific studies,” Chemometrics and Intelligent Laboratory Systems, vol. 240, p. 104896, 2023.[Online]. Available: https://www.sciencedirect.com/science/article/pii/S0169743923001466
[3] T. N. Kipf and M. Welling, “Semi-supervised classification with graph convolutional networks,” 2017.[Online]. Available: https://arxiv.org/abs/1609.02907
[4] W. L. Hamilton, R. Ying, and J. Leskovec, “Inductive representation learning on large graphs,” 2018. [Online]. Available: https://arxiv.org/abs/1706.02216
[5] X. Ma, J. Wu, S. Xue, J. Yang, C. Zhou, Q. Z. Sheng, H. Xiong, and L. Akoglu, “A comprehensive survey on graph anomaly detection with deep learning,” IEEE Transactions on Knowledge and Data Engineering, vol. 35, no. 12, p. 12012–12038, Dec. 2023. [Online]. Available: http://dx.doi.org/10.1109/TKDE.2021.3118815
[6] P. Veličković, G. Cucurull, A. Casanova, A. Romero, P. Liò, and Y. Bengio, “Graph attention networks,” 2018.[Online]. Available: https://arxiv.org/abs/1710.10903
[7] K. Xu, W. Hu, J. Leskovec, and S. Jegelka, “How powerful are graph neural networks?” 2019. [Online]. Available: https://arxiv.org/abs/1810.00826
[8] A. Yilmaz, “A representation-and-scoring framework for zero-day malicious traffic detection using self-supervised graph learning,” IEEE Access, vol. 14, pp. 114 115–114 127, 2026.
[9] P. Sen, G. Namata, M. Bilgic, L. Getoor, B. Gallagher, and T. Eliassi-Rad, “Collective classification in network data,” AI Magazine, vol. 29, no. 3, pp. 93–106, 2008. [Online]. Available: https://onlinelibrary.wiley.com/doi/abs/10.1609/aimag.v29i3.2157
[10] A. D. Pazho, G. A. Noghre, A. A. Purkayastha, J. Vempati, O. Martin, and H. Tabkhi, “A survey of graph-based deep learning for anomaly detection in distributed systems,” IEEE Transactions on Knowledge and Data Engineering, vol. 36, no. 1, pp. 1–20, 2024.
[11] Y. Gao, X. Wang, X. He, Z. Liu, H. Feng, and Y. Zhang, “Alleviating structural distribution shift in graph anomaly detection,” in Proceedings of the Sixteenth ACM International Conference on Web Search and Data Mining, 2023, pp. 357–365.
[12] H. Kim, B. S. Lee, W.-Y. Shin, and S. Lim, “Graph anomaly detection with graph neural networks: Current status and challenges,” IEEE Access, vol. 10, pp. 111 820–111 829, 2022.
[13] K. Ding, J. Li, R. Bhanushali, and H. Liu, Deep Anomaly Detection on Attributed Networks. proceedings, 2019, pp. 594–602. [Online]. Available: https://epubs.siam.org/doi/abs/10.1137/1.9781611975673.67
[14] J. Zhou, G. Cui, S. Hu, Z. Zhang, C. Yang, Z. Liu, L. Wang, C. Li, and M. Sun, “Graph neural networks: A review of methods and applications,” AI Open, vol. 1, pp. 57–81, 2020. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S2666651021000012
[15] Z. Wu, S. Pan, F. Chen, G. Long, C. Zhang, and P. S. Yu, “A comprehensive survey on graph neural networks,” IEEE Transactions on Neural Networks and Learning Systems, vol. 32, no. 1, p. 4–24, Jan. 2021. [Online]. Available: http://dx.doi.org/10.1109/TNNLS.2020.2978386
[16] A. Yılmaz and R. Das, “A novel hybrid approach combining gcn and gat for effective anomaly detection from firewall logs in campus networks,” Computer Networks, p. 111082, 2025.
[17] M. Gorricho-Segura, X. Echeberria-Barrio, and L. Segurola-Gil, “Edge-based analysis for network intrusion detection using a gnn approach,” in 2023 JNIC Cybersecurity Conference (JNIC). IEEE, 2023, pp. 1–7.
[18] A. Deng and B. Hooi, “Graph neural network-based anomaly detection in multivariate time series,” in Proceedings of the AAAI conference on artificial intelligence, vol. 35, no. 5, 2021, pp. 4027–4035.
[19] H. Guo, Z. Zhou, D. Zhao, and W. Gaaloul, “Egnn: Energy-efficient anomaly detection for iot multivariate time series data using graph neural network,” Future Generation Computer Systems, vol. 151, pp. 45–56, 2024. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0167739X23003606
[20] C. Grimshaw, B. Lachine, T. Perkins, and E. Coote, “Link-based anomaly detection with sysmon and graph neural networks,” in 2024 IEEE 3rd International Conference on AI in Cybersecurity (ICAIC), 2024, pp. 1–6.
[21] Ö. Özdemir, P. Karagöz, and K. W. Schmidt, “Anomaly detection in in-vehicle networks with graph neural net-works,” in 2023 31st Signal Processing and Communications Applications Conference (SIU). IEEE, 2023, pp. 1–4.
[22] Y. Zheng, M. Jin, Y. Liu, L. Chi, K. T. Phan, and Y.-P. P. Chen, “Generative and contrastive self-supervised learning for graph anomaly detection,” IEEE Transactions on Knowledge and Data Engineering, vol. 35, no. 12, pp. 12 220–12 233, 2023.
[23] J. Xiao, L. Yang, F. Zhong, H. Chen, and X. Li, “Robust anomaly-based intrusion detection system for in-vehicle network by graph neural network framework,” Applied Intelligence, vol. 53, no. 3, pp. 3183–3206, 2023.
[24] Z. Xu, Y. Yang, X. Gao, and M. Hu, “Dcff-mtad: a multivariate time-series anomaly detection model based on dual-channel feature fusion,” Sensors, vol. 23, no. 8, p. 3910, 2023.
[25] J. Kim, K. Kim, G.-y. Jeon, and M. M. Sohn, “Temporal patterns discovery of evolving graphs for graph neural network (gnn)-based anomaly detection in heterogeneous networks.” J. Internet Serv. Inf. Secur.,vol. 12, no. 1, pp. 72–82, 2022.
[26] X. Sun and J. Yang, “Hetglm: Lateral movement detec-tion by discovering anomalous links with heteroge-neous graph neural network,” in 2022 IEEE International Performance, Computing, and Communications Conference (IPCCC), 2022, pp. 404–411.
[27] X. Wang, B. Jin, Y. Du, P. Cui, Y. Tan, and Y. Yang, “One-class graph neural networks for anomaly detection in attributed networks,” Neural computing and applications, vol. 33, pp. 12 073–12 085, 2021.
[28] Y. Ji, J. Wang, S. Li, Y. Li, S. Lin, and X. Li, “An anomaly event detection method based on gnn algorithm for multi-data sources,” in Proceedings of the 3rd ACM International Symposium on Blockchain and Secure Critical Infrastructure, 2021, pp. 91–96.
[29] L. Ouyang, Y. Zhang, and Y. Wang, “Unified graph embedding-based anomalous edge detection,” in 2020 International Joint Conference on Neural Networks (IJCNN). IEEE, 2020, pp. 1–8.
[30] M. Luan, B. Wang, Y. Zhao, and F. Hu, “Anomalous subgraph detection in given expected degree networks with deep learning,” IEEE Access, vol. 9, pp. 60 052–60 062, 2021.
[31] P. Veličković, “Everything is connected: Graph neural networks,” Current Opinion in Structural Biology, vol. 79, p. 102538, Apr. 2023. [Online]. Available: http://dx.doi.org/10.1016/j.sbi.2023.102538
Downloads
Published
Issue
Section
Categories
License
Copyright (c) 2026 Ali Yilmaz, Resul Das, Mehmet Ozdem

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
This is an open-access article distributed under the terms of the Creative Commons Attribution CC BY 3.0 license, which permits unlimited use, distribution, and reproduction in any medium so long as the original work is properly cited.
