Spatio-Temporal Correlation-Based Anomaly Detection Method for WSN Water Quality Data
摘要
利用无线传感器网络将系统监测到的水质环境数据进行异常检测时,传统的机器学习检测方法往往忽略了数据时间和空间上的相关性,只从时间单一方面分析数据,容易导致数据异常检测结果存在偏差.为此,提出基于时空相关性的数据异常检测方法,首先,提出分层边缘计算模型,实现无线传感器网络均衡负载和低延迟数据处理;然后在无线传感器网络感应节点层,引入滑动窗口技术,将 k 近邻算法(KNN)结合高斯核函数实现在时间序列上的异常检测;最后在汇聚节点层,提出了自监督学习结合自编码器的异常检测方法,采用扩张卷积提取近邻位置节点数据的特征并将其自适应融合,将无线传感器网络时间数据流特征和空间位置特征的提取集成到自动编码器的设计中,参考更完整的数据时空信息进行异常检测.实验结果表明,该方法的异常检测精确度达 98.8%,与一些传统算法相比检测精确度有所提升.
When detecting anomalies in the water quality environment data monitored by the wireless sensor networks system,traditional machine learning detection methods often ignore the temporal and spatial correlation of the data,and analyse the data only from a single aspect of time,which can easily lead to bias in the results of data anomaly detection.To this end,a data anomaly detection method based on temporal and spatial correlation is proposed.Firstly,a layered edge computing model is proposed to achieve balanced load and low-latency data processing in wireless sensor networks.Then,at the induction node layer of the wireless sensor network,sliding window technology is introduced,and k-nearest-neighbour algorithm(KNN)combined with the Gaussian kernel function is used to achieve the anomaly detection in the time series.Finally,at the aggregation node layer,a self-supervised learning combined with auto-encoder anomaly detection method is proposed,which adopts dilated convolution to extract the features of nearest-neighbour location node data and adaptively fuses them,and integrates the extraction of temporal data stream features in wireless sensor network and spatial location features into the design of the auto-encoder to refer to more complete data spatio-temporal information for anomaly detection.The experimental results show that the proposed method achieves a 98.8%accuracy in anomaly detection,and the detection accuracy is improved compared with some traditional algorithms.