何健明,李梦诗,张禄亮,季天瑶.基于Attention和残差网络的非侵入式负荷监测[J].电测与仪表,2024,61(6):173-180. HE Jianming,LI Mengshi,ZHANG Luliang,JI Tianyao.Non-Intrusive load monitoring algorithm based on attention and residual networks[J].Electrical Measurement & Instrumentation,2024,61(6):173-180.
基于Attention和残差网络的非侵入式负荷监测
Non-Intrusive load monitoring algorithm based on attention and residual networks
Non-Intrusive Load Monitoring (NILM) is a technique to disaggregate the power consumption of the appliances from the aggregate power consumption. Even for the same type of appliances, their state types, the duration of each state and the power consumption of each state are different, which requires high generalization ability of the model. Meanwhile, the disaggregate power of the regression model is difficult to quickly track the ground true power. To solve these problems, the regression problem is transformed into a multi-classification problem for each moment in the sequence, and a non-intrusive load monitoring model based on attention and residual networks is proposed in this paper. The proposed model is based on the seq2seq framework with encoder and decoder. First, the high-dimensional sparse one-hot vector is mapped to the low-dimensional dense vector through the embedding matrix. In the encoder, BiGRU is used to extract the sequence information from the front and back directions, an attention mechanism is introduced to calculate the most important information at the current time in the sequence, and a residual connection is introduced to learn the difference between the input and output of the residual part. In the decoder, the regression layer is used to combine the BiGRU decoding results, and the maximum probability power category processed by a softmax function is taken as the result. By selecting the modified data set, the model performs well in the test set which is completely independent of the training set, indicating that the trained model can be directly applied to new user families. The model performs well in the refit dataset, and the test set and training set are completely independent, which indicates that the trained model can be directly applied to new households.