Abstract-In the realm of non-intrusive load monitoring (NILM), extant deep learning approaches suffer from limitations including inadequate data samples, inadequate model generalization capacity, and insufficient safeguards for data privacy. To overcome these issues, this paper puts forward a novel NILM approach that leverages DeepAR to build a load monitoring model and incorporates federated learning and local fine-tuning methods to develop a non-intrusive load monitoring framework. Utilizing decentralized training, the proposed methodology facilitates iterative updates to model parameters through server-side aggregation, thereby enabling the collaborative construction of a monitoring model whilst maintaining strict confidentiality of individual customer data. The results of experiments conducted on the REDD dataset demonstrate that the approach outlined in this paper can markedly enhance the accuracy of load identification for frequently utilized electrical appliances.
Index Terms-Non-intrusive load monitoring, DeepAR, federated learning, local fine-tuning.
(ProQuest: ... denotes formulae omitted.)
I. Introduction
Electric energy consumption constitutes a significant portion of energy usage in both societal production and daily life. Therefore, the implementation of power energy conservation measures represents a crucial component of efforts aimed at reducing energy consumption and associated emissions. As advancements in science and technology continue to be made, and living standards improve, the quantity and diversity of household appliances have grown. Consequently, the proportion of residential electricity consumption within total electricity consumption has also increased. [1]. According to research, the implementation of electricity consumption feedback mechanisms will likely enhance the potential for energy conservation on the residential load side. The use of household load identification technology can substantially aid power supply companies in comprehending the load structure and consumption patterns of residential users, thereby enabling timely adjustments to the power supply plan. Additionally, this technology can assist users in understanding household electricity information, facilitating rational electricity consumption practices on the user side, and promoting overall energy conservation and emission reduction efforts. [2].
The current load monitoring means is to install an independent monitoring device on each load, and to realize the judgment of its running state through the independent monitoring of each load, which consumes a lot of manpower, material resources and financial resources. To solve the above problems, non-intrusive load monitoring method is proposed. NILM does not need to enter the inside of the end user's power system, but only needs to install monitoring equipment at the power entrance. By monitoring the total voltage and total current at the entrance and decomposing it, the running state of each electrical equipment of the end user can be obtained [3].
At the moment, the NILM research mainly focuses on the low frequency characteristics of electrical appliances with active power, because most of monitoring devices can only achieve low frequency sampling of power. In non-intrusive power decomposition problems, the most commonly used method is hidden Markov model. Makonin et al. [4] proposed a load disaggregation algorithm integrated a super-state hidden Markov model and a Viterbi algorithm variant. The algorithm performed extremely well for multi-state load. Bonfigli et al. [5] proposed a NILM algorithm using Additive Factorial Hidden Markov Models framework. Experimental results show that the monitoring effect of this method is better than that of other four comparison methods. Wu et al. [6] presented a Time-Efficient Factorial Hidden Semi-Markov Model to improve the computing efficiency of NILM in realworld scenario. For the past few years, deep learning is gradually applied to NILM field. Kaselimi et al. [7] introduced a deep Long Short-Term Memory (LSTM) neural networks for energy disaggregation. Nolasco et al. [8] proposed a CNN-based framework for multi-label classification in NILM signals. Kong et al. [9] presented a deep convolutional neural networks-based approach to estimate the energy consumption for common multi-functional home appliances.
Although deep learning has been widely applied in NILM field, the following problems still exist in practical application. First of all, deep learning has high requirements on the amount of training data, which may not be met by the electricity consumption data of a single household in practical application. Secondly, the generalization ability of the model only aiming at single family training is poor, and it is difficult to obtain good monitoring effect on the data of other families. Finally, there are privacy concerns such as data breaches if data from other households are obtained in order to train better generalized models. In response to these problems, federated learning [10] comes into being, which can utilize multiple computing nodes for efficient machine learning without compromising user data in a legal and compliant manner. Federated learning can reduce data traffic while protecting data privacy. Currently, federated learning has been used by researchers in some scenarios that need to consider data privacy and reduce communication overhead. Feng et al. [11] proposed a human mobility prediction framework via federated learning. Wang et al. [12] designed a federated learning framework in order to provide a better learning parameter exchange method for mobile edge computing. Hu et al. [13] presented a federated learning method for urban environment sensing. Pfohl et al. [14] proposed a federated learning framework for electronic health records. Yan et al. [15] proposed a federal learning application scheme in the field of financial credit risk management. All the above federated learning applications have achieved good results, which proves that the federated learning method is practical and feasible.
In view of the above problems of insufficient data required for the construction of load monitoring model, poor model generalization ability and privacy involved in data sharing, this paper proposes a non-intrusive load monitoring method based on DeepAR model and federated learning, which implements collaborative training of the model under the premise of protecting the privacy of each customer's data. Moreover, the monitoring accuracy and generalization ability of non-intrusive load monitoring model are improved effectively.
II. FEDERATED LEARNING-BASED NON-INTRUSIVE LOAD MONITORING MODEL
2.1 Method overview
The non-intrusive load monitoring model based on federated learning can not only protect the privacy of each customer's data, but also use the load data resources owned by each customer to train the load monitoring model cooperatively, effectively improving the prediction accuracy and multi-scenario generalization ability of the model.
The overall system architecture of this method is shown in Fig. 1. In terms of structure, the whole method consists of server, communication network, local load monitoring client and corresponding load monitoring data. Among them, the load monitoring model built based on DeepAR model is deployed on the server and each load monitoring client.
The overall process mainly includes five steps: load monitoring model delivery, local training of each client, upload of each client model, model aggregation and local fine-tuning of each client. The specific steps are shown in Algorithm 1.
Algorithm 1. Non-intrusive load monitoring based on federated learning and local fine-tuning
Input: Number of iterations T, various clients involved in load monitoring L
Output: A non-intrusive load monitoring model trained by the method presented in this paper
Step 1. Preprocess each customer's electricity data, including missing value, outlier value and data normalization
Step 2. Set the communication address between the server and each local server
Step 3. Enable communication service
Step 4. The server initializes a global DeepAR model and obtains the initial model weight parameters W
Step 5. Set up all local clients lk (k = 1,2,..., n), lk EL to participate in training
Step 6. for t =1, 2, ..., T, do:
Step 7. for lkEL do:
Step 8. lk downloads W from server
Step 9. lk train DeepAR model Wk with local electricity data
Step 10. lk uploads Wk to server
Step 11. end for
Step 12. The central server aggregates local models from different customers to update the global shared model
Step 13. Repeat the above steps until the model accuracy reaches the required standard or iterates to the specified number of times T
Step 14. Based on the global model, local fine-tuning is performed to generate the final load monitoring model of each client
. 2.2. DeepAR
DeepAR is a time series prediction method based on deep learning proposed by Salinas et al. [16], whose goal is to simulate conditional probability distribution P(ZiUr|?:t0-i,x?T).The future series Zi to[T is modeled according to the past time seriesZ¿,1:to_1 and covariable xijl:T, where t0 is the time division point, Zi t represents the value of time series i at time t.
DeepAR is an autoregressive RNN time series model, which is a cyclic neural network (using LSTM or GRU units) with hidden states. DeepAR learns periodic representations and is based on covariates across time series. When obtaining highly complex, group-dependent representations, only a small amount of data processing needs to be carried out manually.
The conditional probability distribution used by the DeepAR model can be written in the following likelihood form:
... (1)
where hit = h(hit_1, zit_í, xit, 0) is the output of an autoregressive recurrent network composed of multi-layer RNNs.
As shown in Fig. 2, DeepAR input the hidden layer hí,t_1 and z¿,í_1 at the previous time and the known information xi¡t at the current time, and the hidden layer hkt at this time can be obtained. Then, h¿,t is converted into the parameter of the given distribution through neural network ö(-). After the distribution is determined, likelihood l(Zļ,t \e(hit, 0)) can be calculated and the predicted probability distribution can be finally obtained.
2.3 Federated aggregation
In federated learning, the central server receives the results from multiple clients, aggregates them, and then sends the aggregated results to each client, the process is called federated aggregation. Because FedAvg federated aggregation algorithm has higher communication efficiency, the method in this paper adopts FedAvg federated aggregation algorithm, and the specific steps are shown in Algorithm 2.
Algorithm 2. Federated Averaging Algorithm
Input: T is the maximum number of iterations, n is the learning rate, k is the client number,nfc is the amount of data of the k client and N = nk
Step 1. Initialize an DeepAR model W0
Step 2. While r < T do
Step 3. Select subset
Step 4. for client k in K do
Step 5. k receives model wr
Step 6. k computes average gradient gk with SGD
Step 7. k updates local model wp+1 -ggk
Step 8. k sends updated model to server
Step 9. End for
Step 10. Server computes new global model ...
Step 11. End while
2.4. Local fine-tuning
The global model generated by federated learning has better generalization ability, and local fine-tuning based on the global model can improve the prediction ability of the model on specific clients. In addition, local fine-tuning only needs fewer iterations to get better prediction results.
III. EXPERIMENTS
3.1.Experimental environment
In this paper, multiple computers are used to simulate each customer participating in federated learning, and then verify the improvement of prediction accuracy and generalization ability of the proposed method. Six computers were used to simulate six customers. All computers were equipped with Intel Xeon platinum 8124 CPU, RTX 3080 GPU, and 128 GB memory. A computer with the same configuration serves as the server side. The devices can communicate point to point.
In this paper, REDD dataset [17] is selected for the experiment. This dataset contains the electricity consumption data of 6 American households, and the low-frequency power data of this dataset is used for load monitoring. The model uses the first 70% of each household's electricity consumption data for training, the next 20% as the verification set, and the last 10% as the test dataset.
In this paper, four typical household electrical equipment including dish washer, refrigerator, washing machine and lights are selected for testing.
The activation thresholds of each electrical appliance are shown in Table 1.
3.2.Evaluation metrics
In order to comprehensively evaluate model performance, precision (PRE) and mean average absolute error (MAE) are selected as evaluation metrics in this paper. Specific formulas are as follows:
... (2)
where TP is the number of sequences in which both the model prediction result and the actual load are running states, and FP is the number of sequences in which the model prediction result is not in the running state but the actual load is in the running state.
... (3)
where N is total sample input number. y¿ is the real power of electric appliance at time t, and y¿ is the model decomposition power.
3.3.Experimental results
Table 2-Table 7 shows the comparison of PRE and RMSE of experimental results of each model from household 1 to household 6. Based on the presented tables, it is evident that the proposed algorithm in this paper yields the minimum RMSE and the maximum PRE in various electrical appliance experiments when the frequency of use is relatively high, denoted by RMSE values greater than 1. This indicates that combining federated learning and local fine-tuning leads to the most effective load monitoring outcome. When the RMSE value is less than 1, comparing the values of PRE and RMSE becomes challenging. This is due to the relatively low frequency of appliance use, as well as the low decomposition power of each appliance. Consequently, obtaining 0 values for TP and TR becomes more likely. The presented tables further reveal that the accuracy of the federated learning algorithm may not surpass that of DeepAR and DeepAR (Centralized) if local fine-tuning is not employed. The latter approach involves training the model on aggregated data from all households. Interestingly, in the majority of experiments conducted, the differences in the RMSE and PRE values among these three algorithms are minimal.
IV. Conclusion
This paper introduces a novel non-intrusive load monitoring approach, which leverages federated learning and local fine-tuning techniques. This method enables data isolation and facilitates the collaborative construction of a universal monitoring model across multiple data nodes whilst guaranteeing user privacy protection. By optimizing the global model through local fine-tuning, the accuracy of load monitoring is significantly enhanced. Additionally, this study establishes a basis for future research to optimize the federated learning algorithm, with the objective of further enhancing the accuracy of NILM while maintaining robust data security measures.
Manuscript received February 6, 2023, revised June 26, 2023;
REFERENCES
[1] Rajendiran, G., et al. "Energy management using non-intrusive load monitoring techniques - State-of-the-art and future research directions," Sustainable Cities and Society, vol. 62, no.1, 2020.
[2] Wahba, Asmaa, Reda El-khoribi, and Shereen Taie. "A New Hybrid Model for Energy Consumption Prediction Based on Grey Wolf Optimization," IAENG International Journal of Computer Science, vol. 49, no.2, pp469-481,2022.
[3] Hosseini, S. S, et al. "Non-intrusive load monitoring through home energy management systems: A comprehensive review," Renewable and Sustainable Energy Reviews, vol. 79, pp1266-1274,2017.
[4] Makonin, Stephen, et al. "Exploiting HMM sparsity to perform online real-time nonintrusive load monitoring," IEEE Transactions on smart grid, vol. 7, no.6, pp2575-2585,2015
[5] Bonfigli, Roberto, et al. "Non-intrusive load monitoring by using active and reactive power in additive Factorial Hidden Markov Models," Applied Energy, vol. 208, pp1590-1607,2017.
[6] Wu, Z., et al. "A time-efficient factorial hidden Semi-Markov model for non-intrusive load monitoring," Electric Power Systems Research. vol. 199, no.1, pp1590-1607,2021.
[7] Kaselimi, M., et al. "Context Aware Energy Disaggregation Using Adaptive Bidirectional LSTM Models," IEEE Transactions on Smart Grid, vol. 11, no.4, pp3054-3067,2020.
[8] Nolasco, Lds, A. E. Lazzaretti, and B. M. Mulinari "DeepDFML-NILM: A New CNN-Based Architecture for Detection, Feature Extraction and Multi-Label Classification in NILM Signals," IEEE sensors journal, vol. 22, no.1, pp501-509,2022.
[9] Kong, W., et al. "A Practical Solution for Non-Intrusive Type II Load Monitoring Based on Deep Learning and Post-Processing," IEEE Transactions on Smart Grid, vol. 11, no.1, pp148-160,2020.
[10] Zhu, Hangyu, Haoyu Zhang, and Yaochu Jin. "From federated learning to federated neural architecture search: a survey," Complex & Intelligent Systems, vol. 7, no.1, pp639-657,2021.
[11] Feng, J. et al. "PMF: A Privacy-preserving Human Mobility Prediction Framework via Federated Learning," Proc. ACM Interact. Mob. Wearable Ubiquitous Technol, vol. 4, no.1, pp1-21,2020.
[12] Wang, X, et al. "In-Edge AI: Intelligentizing Mobile Edge Computing, Caching and Communication by Federated Learning," IEEE Network, vol. 33, no.5, pp156-165,2019.
[13] Hu, B., et al. "Federated Region-Learning: An Edge Computing Based Framework for Urban Environment Sensing," 2018 IEEE Global Communications Conference (GLOBECOM) IEEE, 2019.
[14] Pfohl, S. R, A. M. Dai, and K. Heller. "Federated and Differentially Private Learning for Electronic Health Records," ArXiv abs/1911.05861, 2019.
[15] Li, Yan, and Guihua Wen. "Research and Practice of Financial Credit Risk Management Based on Federated Learning," Engineering Letters, vol. 31, no.1, pp271-278,2023.
[16] Salinas, David, et al. "DeepAR: Probabilistic forecasting with autoregressive recurrent networks," International Journal of Forecasting, vol. 36, no.3, pp1181-1191,2020.
[17] Kolter, J. Zico, and Matthew J. Johnson. "REDD: A public data set for energy disaggregation research," Workshop on data mining applications in sustainability (SIGKDD), San Diego, CA. vol. 25, no. Citeseer. 2011.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
© 2023. This work is published under https://creativecommons.org/licenses/by-nc-nd/4.0/ (the“License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Abstract
Abstract-In the realm of non-intrusive load monitoring (NILM), extant deep learning approaches suffer from limitations including inadequate data samples, inadequate model generalization capacity, and insufficient safeguards for data privacy. To overcome these issues, this paper puts forward a novel NILM approach that leverages DeepAR to build a load monitoring model and incorporates federated learning and local fine-tuning methods to develop a non-intrusive load monitoring framework. Utilizing decentralized training, the proposed methodology facilitates iterative updates to model parameters through server-side aggregation, thereby enabling the collaborative construction of a monitoring model whilst maintaining strict confidentiality of individual customer data. The results of experiments conducted on the REDD dataset demonstrate that the approach outlined in this paper can markedly enhance the accuracy of load identification for frequently utilized electrical appliances.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
Details
1 School of Computer and Information Engineering, Xiamen University of Technology, Xiamen, Fujian,361024, China