Wireless Sensor Networks forms the backbone of modern cyber physical systems used in various applications such as environmental monitoring, healthcare monitoring, industrial automation, and smart infrastructure. Ensuring the reliability of data collected through these networks is essential as these data may contain anomalies due to many reasons such as sensor faults, environmental disturbances, or malicious intrusions. In this paper a lightweight and interpretable anomaly detection framework based on a first order Markov chain model has been proposed. The method discretizes continuous sensor readings into finite states and models the temporal dynamics of sensor transitions through a transition probability matrix. Anomalies are detected when observed transitions occur with probabilities below a computed threshold, allowing for real time detection without labeled data or intensive computation. The proposed framework was validated using the Intel Berkeley Research Lab dataset, as a case study on indoor environmental monitoring demonstrates its capability to identify thermal spikes, voltage related faults, and irregular temperature fluctuations with high precision. Comparative analysis with Z score, Hidden Markov Model, and Auto encoder based methods shows that the proposed Markov based framework achieves a balanced trade-off between accuracy, F1 score is 0.86, interoperability, and computational efficiency. The systems scalability and low resource footprint highlight its suitability for large-scale and real time anomaly detection in WSN deployments.
翻译:无线传感器网络构成了现代信息物理系统的核心,广泛应用于环境监测、医疗健康监测、工业自动化及智能基础设施等领域。确保通过这些网络采集的数据可靠性至关重要,因为这些数据可能因传感器故障、环境干扰或恶意入侵等多种原因包含异常。本文提出了一种基于一阶马尔可夫链模型的轻量级且可解释的异常检测框架。该方法将连续传感器读数离散化为有限状态,并通过转移概率矩阵建模传感器状态转移的时间动态特性。当观测到的转移概率低于计算阈值时,系统即检测到异常,从而无需标注数据或复杂计算即可实现实时检测。所提框架采用英特尔伯克利研究实验室数据集进行验证,以室内环境监测为案例研究,展示了其高精度识别热峰值、电压相关故障及不规则温度波动的能力。与Z分数法、隐马尔可夫模型及自编码器方法的对比分析表明,基于马尔可夫的框架在准确率(F1分数达0.86)、可解释性与计算效率之间取得了均衡。该系统的可扩展性及低资源占用特性,凸显了其在大规模无线传感器网络部署中实现实时异常检测的适用性。