In the field of Non-Intrusive Load Monitoring (NILM), scientists across various institutions have published extensive research on both the hardware and the load disaggregation algorithm. However, there are few publicly available hardware design schemes for real-time load disaggregation. This increases the barrier to entry into the field. In this paper, a novel smart socket for load disaggregation by using a set of easily accessible sensors is presented, aiming to enable more researchers to actively participate in NILM quickly. In addition, we combine a time-efficient automatic state detection algorithm and a factorial hidden Markov model (ASD-FHMM) to achieve the goal of real-time load disaggregation. The proposed method also alleviates the problem of requiring extra information that broadly exists in the traditional Hidden Markov Model (HMM) based load disaggregation algorithms. Experiments on a public dataset as well as a dataset collected from our laboratory are conducted, and the results confirm the efficiency and effectiveness and of the proposed smart socket.
Graph neural networks (GNNs) have been widely applied in the Internet of Things (IoT) for the intelligent analysis of data collected by sensors, particularly complex relationships and dependent information between IoT devices. However, recent studies have shown that the GNNs are vulnerable to adversarial attacks, which significantly limits their application in the safety-critical IoT systems, such as smart health monitoring, traffic monitoring, and autonomous driving. To address this issue, in addition to the low feature similarity, this study examines the vulnerability of GNNs empirically and reveals that adversarial perturbations against GNNs tend to have low structural proximity in local neighborhoods. Thus, a natural approach for defending GNNs against adversarial attacks is to utilize the related high-order robust information of the perturbed graphs. In this study, we construct auxiliary views with high-order structure and feature similarity from a perturbed graph and propose a multiview ensemble learning-based robust graph convolutional network (MV-RGCN). Each base model in the MV-RGCN aggregates the adversarial perturbed graph and the constructed view through an adaptive aggregation mechanism, thereby eliminating the impact of adversarial perturbations. Robust representations of the base models are then integrated using an adaptive ensemble mechanism to generate predictions. Extensive experiments under adversarial attack scenarios demonstrate that the MV-RGCN outperforms state-of-the-art methods and can achieve satisfactory performance without affecting its accuracy on the original graph data. This code is available at https://github.com/thomaslok0516/MVRGCN .