A Novel Self-Supervised Learning-Based Anomaly Node Detection Method Based on an Autoencoder in Wireless Sensor Networks

Miao Ye, Qinghao Zhang, Xingsi Xue, Yong Wang, Qiuxiang Jiang +1 more
12/26/2022
cs.LGcs.AI
gnncontrastive-ssl

Official code: GuetYe/anomaly_detection (10 stars, Python, last commit 2025-06-26).

Abstract

Due to the issue that existing wireless sensor network (WSN)-based anomaly detection methods only consider and analyze temporal features, in this paper, a self-supervised learning-based anomaly node detection method based on an autoencoder is designed. This method integrates temporal WSN data flow feature extraction, spatial position feature extraction and intermodal WSN correlation feature extraction into the design of the autoencoder to make full use of the spatial and temporal information of the WSN for anomaly detection.

Show full abstract

First, a fully connected network is used to extract the temporal features of nodes by considering a single mode from a local spatial perspective. Second, a graph neural network (GNN) is used to introduce the WSN topology from a global spatial perspective for anomaly detection and extract the spatial and temporal features of the data flows of nodes and their neighbors by considering a single mode. Then, the adaptive fusion method involving weighted summation is used to extract the relevant features between different models. In addition, this paper introduces a gated recurrent unit (GRU) to solve the long-term dependence problem of the time dimension. Eventually, the reconstructed output of the decoder and the hidden layer representation of the autoencoder are fed into a fully connected network to calculate the anomaly probability of the current system. Since the spatial feature extraction operation is advanced, the designed method can be applied to the task of large-scale network anomaly detection by adding a clustering operation. Experiments show that the designed method outperforms the baselines, and the F1 score reaches 90.6%, which is 5.2% higher than those of the existing anomaly detection methods based on unsupervised reconstruction and prediction. Code and model are available at https://github.com/GuetYe/anomaly_detection/GLSL

View on arXivView PDF

Code Implementations(1)

test video of the proposed method in "A Novel Anomaly Detection Method for Multimodal WSN Data Flow via a Dynamic Graph Neural Network"

102PythonMay 5, 20221 years ago

Similar Papers

Cite this paper

@article{ye2022novel,
  title  = {A Novel Self-Supervised Learning-Based Anomaly Node Detection Method Based on an Autoencoder in Wireless Sensor Networks},
  author = {Miao Ye and Qinghao Zhang and Xingsi Xue and Yong Wang and Qiuxiang Jiang and Hongbing Qiu},
  year   = {2022},
  eprint = {2212.13904},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.13904}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.13904.svg)](https://codeofpaper.com/paper/2212.13904)

Discussion