원시데이터 수집 시스템
선정목록으로

PB-NILM: Pinball Guided Deep Non-Intrusive Load Monitoring

관련 모빌리티 소재 · (2) 샤무드(인공피혁)

기본 정보

저자
  1. Eduardo Rodrigues Gomes — ITI, LARSyS, M-ITI, Funchal, Portugal
  2. Lucas Pereira — ITI, LARSyS, Técnico Lisboa, Lisboa, Portugal
DOI
10.1109/access.2020.2978513
저널
IEEE Access
발행년도
2020
발행기관
Institute of Electrical and Electronics Engineers
피인용수
48
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2020.2978513
토픽
High voltage insulation and dielectric phenomena
OpenAlex ID
W3009832084

평가 내용

관련도
관련
사업분야
모빌리티 소재 · (2) 샤무드(인공피혁)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '모빌리티 소재 > 샤무드(인공피혁)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The work in this paper proposes the application of the pinball quantile loss function to guide a deep neural network for Non-Intrusive Load Monitoring. The proposed architecture leverages concepts such as Convolution Neural Networks and Recurrent Neural Networks. For evaluation purposes, this paper also presents a set of complementary performance metrics for energy estimation. Finally, this paper also reports on the results of a comprehensive benchmark between the proposed network and three alternative deep neural networks, when guided by the pinball and Mean Squared Error loss functions. The obtained results confirm the disaggregation superiority of the proposed system, while also showing that the performances obtained using the pinball loss function are consistently superior to the ones obtained using the Mean Squared Error loss.

본문 58,779자

본문 펼치기
POWER SYSTEMS Received February 7, 2020, accepted February 26, 2020, date of publication March 5, 2020, date of current version March 18, 2020. _Digital Object Identifier 10.1109/ACCESS.2020.2978513_ # PB-NILM: Pinball Guided Deep Non-Intrusive Load Monitoring EDUARDO GOMES 1, (Student Member, IEEE), AND LUCAS PEREIRA 2, (Member, IEEE) 1ITI, LARSyS, M-ITI, 9020-105 Funchal, Portugal 2ITI, LARSyS, Técnico Lisboa, 1049-001 Lisboa, Portugal Corresponding author: Lucas Pereira (lucas.pereira@tecnico.ulisboa.pt) This work was supported in part by the funding under Grant M1420-01-0145-FEDER-000002, and in part by FCT under the LARSyS - FCT Plurianual funding 2020 - 2023, and Grant CEECIND/01179/2017. ABSTRACT The work in this paper proposes the application of the pinball quantile loss function to guide a deep neural network for Non-Intrusive Load Monitoring. The proposed architecture leverages concepts such as Convolution Neural Networks and Recurrent Neural Networks. For evaluation purposes, this paper also presents a set of complementary performance metrics for energy estimation. Finally, this paper also reports on the results of a comprehensive benchmark between the proposed network and three alternative deep neural networks, when guided by the pinball and Mean Squared Error loss functions. The obtained results confirm the disaggregation superiority of the proposed system, while also showing that the performances obtained using the pinball loss function are consistently superior to the ones obtained using the Mean Squared Error loss. INDEX TERMS Non-intrusive load monitoring, NILM, recurrent neural networks, convolutional neural networks, pinball quantile loss, mean squared error loss, benchmark. I. INTRODUCTION For many years, Non-Intrusive Load Monitoring (NILM) [1] has remained a challenge for researchers in the area. The problem is complex due to the sheer number of variables to take into consideration. Simply put, NILM has as objective determining which appliance is active and how much it is consuming at each time instance. However, the challenge lies in the limitation of available data for algorithm training, dependencies of unknown factors such as the number of appliances in each household, unique appliance characteristics, and different consumption patterns. NILM can be approached as a classification or regression problem. It can be considered as a classification problem when the objective is the detection and classification of an appliance among a complex signal. It is a regression problem when the aim is to estimate the consumption of the individual devices directly from the aggregated energy intake. Many methods have been proposed throughout the years to solve this problem, ranging from ‘‘classic’’ machine-learning algorithms (e.g., Support Vector Machines, Lazy Learners, and Artificial Neural Networks), to advanced statistical The associate editor coordinating the review of this manuscript and approving it for publication was Canbing Li . learning methods like Hidden-Markov Models and Bayesian Statistics. A review of these methods is out of the scope of this paper. Instead, the interested reader can refer to the many literature reviews on these methods [2]–[4]. Recently, deep learning (DL) algorithms have been consistently establishing new state-of-the-art performances in many fields [5]. These include advances in language models such as [6], a language model capable of text synthesis, and summarizing, among other uses. Audio generation has also been benefited in [7] and [8], as well as image segmentation for medical applications [9]. NILM is no exception to this trend. As such, recent times have seen a burst in DL proposals to solve this problem, e.g., [10]–[15]. However, to achieve competitive results, DL methods require an abundance of training data. This is still a significant problem for NILM considering the lack of highquality datasets, both in terms of duration and quality of the labels [16], [17]. Likewise, such approaches also benefit significantly from a high number of trainable parameters, requiring computational power that is not cheap nor readily available in most cases. The contributions of this paper to the ongoing body of work in NILM are threefold. First, it proposes PB-NILM, a deep neural network composed of different types of layers such as convolutional, recurrent, and fully connected layers, and guided by the pinball (PB) quantile loss function [18], [19]. Second, it proposes a set of performance evaluation metrics, including the _Correctly Estimated Power_ ( _CEP_ ). Third, it provides a comprehensive evaluation and benchmark of PB-NILM against the same architecture when guided by the Mean Squared Error (MSE) loss function, and of three alternative deep learning architectures also guided by the PB and the MSE loss functions. The remaining of this paper is organized as follows. Section II presents the main advances in the machine learning field, with varied applications, proceeding to the quintessential components of deep learning, and an overview of the pinball quantile loss function. Building on these works, Section III presents PB-NILM, a deep neural network that is guided by the PB quantile loss function and establishes a benchmark with the standard MSE loss function. The evaluation methodology is presented in Section IV. This section also introduces a new set of performance evaluation metrics and details the network’s training and testing methodology. Section V presents and briefly discusses the performance evaluation results. Further discussions are then presented in Section VI. Finally, in Section VII, the paper concludes with an overview of the presented work, its limitations, and potential future work directions. II. RELATED WORKS Recent approaches to a variety of machine-learning problems try to leverage the power of DL, developing new architectures that are composed by what can be considered the fundamental building blocks of neural networks - convolutional [20], [21], recurrent [22], [23], and fully-connected layers. These are often used in tandem to achieve competitive results in a particular task, with each layer providing a certain benefit to the architecture. Some of the widely used deep networks include the _WaveNet_ [8] for audio generation and synthesis, _ResNet_ [24], _DenseNet_ [25] and _Xception_ [26] for image classification and segmentation. The _WaveNet_ was developed to generate audio excerpts, by making use of dilated convolutions that preserve the size of the input data. This also allows for a much wider receptive field, thus improving the feature extraction process. In [13], the authors introduce _WaveNILM_, an architecture based in the _WaveNet_ to leverage the dilation properties to achieve better disaggregation results. The latter was trained on the AMPds dataset [27], using 90% of the data for training, and the remaining 10% for testing. The performance of the method was reported using the _estimated_ _accuracy_ metric, which reports the total disaggregation over all timesteps. The proposed method was analyzed using the aggregated signal, achieving performances of over 85% in all the reported test cases. Wu and Wang [14] propose the concatenation of convolutional layers to classify different appliances by making use of spectrograms based features. The authors explore the application of the _DenseNet_ and _Xception_ architectures on the UK-DALE [28] and REDD [29] datasets for appliance classification. A common characteristic between these architectures lies in the almost exclusive use of convolutional layers. In terms of classification results, the authors report _F_ 1 _-Score_ values for the kettle, fridge, dishwasher, and microwave of over 0.90. Only the washing machine yields a lower value of 0.80. For load estimation, the _MAE_ values are presented, with the highest error being just under six watts for the fridge. While standard convolutional layers are useful for feature extraction and classification, they do not preserve spatial information. For example, it may be possible to detect a face in an image, but it does not reveal where it was detected. As such, and in the context of time series, it is relevant to mention Recurrent Neural Networks (RNNs), as these are designed to carry information through time. Long-Short Term Memory (LSTM) networks [22] and Gated Recurrent Units (GRU) [23] are among the several existing types of RNN architectures. As NILM itself is a timeseries problem, RNNs found themselves being used by NILM researches, having yielded competitive results for both event classification, and energy estimation. In [10], the authors propose a solution based on RNNs, more specifically LSTMs, to perform classification of appliance consumption. The datasets used were the UK-DALE and REDD. In this work, Kim _et_ _al._ present results that are at least double the performance of previous state-of-the-art approaches, with accuracy values ranging from 76% to 96% on houses 1 to 5 of the REDD dataset. The work in [12] proposed a Convolutional Neural Network (CNN) based solution for the load classification and estimation of individual appliances. Kong _et al._ also make use of the UK-DALE dataset and highlight the issue of missing data. The results are reported using the _F1-Score_ for classification and _Energy_ _Accuracy_ for load estimation. In terms of performance, the authors present superior results against other solutions, with values of _F1-Score_ of over 0.85 and _Estimation_ _Accuracy_ of over 0.88, except for the washerdryer of house 5, with 0.735. In [15], the authors explore the classification of appliances with random forest classifiers, fully-connected networks, and CNNs using the PLAID dataset [30]. The observations on the performance of several methods are analyzed at different sampling rates. Peak performance was attained by a CNN based architecture, with the _F_ 1-Score of 0.7619 at 1.2kHz. Murray _et_ _al._, in [11], attempt to apply transfer learning to the NILM problem. They propose two different networks based on CNNs and RNNs and evaluate them on three datasets (REFIT, UK-DALE, and REDD). To assess the transferability of the proposed networks, different sets of data were used during training and testing. The reported results vary from as little as 0.21 to 1 for the _F_ 1 _-score_ for state estimation. As for energy estimation, the results range from 44% and 82% in terms of _estimation accuracy_ . Nevertheless, even with proper deep network topology, it can still be challenging to learn useful patterns and correctly perform designated tasks. One of the main challenges of NILM is the unbalanced nature of the problem. More concretely, some appliances have frequent use and thus reveal a more tractable load over time. Others are not utilized very often, resulting in very few activations that algorithms can use to learn their working patterns [12]. Considering the different appliance load distributions, it is difficult to find a method to guide the learning of the various appliances properly. This challenge is not exclusive to the NILM problem, being very common in the forecasting of household load demand [31], [32]. For example, in [32] the authors used the pinball quantile loss function to train an LSTM for load forecasting with evident performance gains against the standard mean squared error (MSE) loss function. The reported improvements are in the order of 2.19% to 7.52% for residential consumers and 3.79% to 25.80% for small & medium enterprise consumers. III. PB-NILM: PINBALL GUIDED NILM Against this body of related work, this paper presents an indepth study on the applicability of the pinball loss function to the NILM problem. To this end, a custom deep neural network architecture is trained guided by the PB loss function (PB-NILM). The PB-NILM network is then put against the same architecture, but guided by the MSE loss function. For additional benchmarks, the PB-NILM is also put against three other deep net architectures for NILM, all of which are individually trained with the PB and MSE loss functions. It is hypothesized that a standard loss function like MSE will guide the training towards the mean or median of the distribution, which is not the best option in the case of NILM, as previously mentioned. Consequently, the disaggregation results would not be consistent across appliances. In contrast, using the PB loss function, it is possible to guide the learning according to the underlying data by setting custom quantile value. In other words, it is possible to set different penalties (or losses) for under- and over-estimation errors based on the appliances to disaggregate. Software wise, _Python_ 3.6.8 was used, along with _Keras_ [33] running on the _Tensorflow_ backend [34]. We have also installed, as a _Tensorflow_ requirement, the cuDNN library for GPU-accelerated calculations. Hardware wise, the computer consisted of an Intel i7-8700k CPU, an NVIDIA 1080TI graphics card and 64GB of RAM. _A._ _PROPOSED NETWORK ARCHITECTURE_ The proposed deep neural network takes as input a time-series of aggregated active power measurements ( _Pt_ 0 _, Pt_ 1 _, . . ., Ptn_ ). It outputs the power of an individual appliance, the difference between the aggregated load and the disaggregated appliance, and the total predicted power, all at time ( _tn_ +1). For this, the network is structured with two main branches (Appliance and Difference) and a minor branch (Total). Each branch is composed of a one-dimensional convolution layer, followed by a GRU and a Fully-Connected layer. A Batch Normalization layer follows each kernel operation [35]. TABLE 1. Architectures and respective implementations of the benchmark deeep neural networks. Batch Normalization is used this way to control the outputs at the end of each layer that performs a kernel operation. It also facilitates the use of larger gradients, helping to speed up the network. This is, in turn, followed by a ReLU activation. Dropout [36] was also employed to help prevent overfitting. The dropout action forces the network to exclude learned connections and allows it not to focus on predominant connections, hence exploring other ’pathways’ towards the final output. Figure 1 represents the proposed network and the flow of the data. The network was structured to have three outputs in such a way that the outputs are ‘‘controlled’’ among themselves. With _Tensorflow_, it was possible to set up in a way that the _Total_ branch consists of the sum of the _Appli-_ _ance_ and _Difference_ branches, in turn affecting their learning. The _Appliance_ and _Difference_ branches are not directly connected. _B._ _BENCHMARK ARCHITECTURES_ The PB-NILM is benchmarked against three different architectures. These, are summarized in Table 1. The first benchmark algorithm is a simplified version of the proposed PB-NILM architecture. More concretely, in this version, only the appliance disaggregation branch is considered. The other two architectures were taken from the _NILMTK contrib_ repository [39]. These were selected based on the similarity of purpose ( _seq2point_ ) and architecture ( _WindowGRU_ ). The seq2point network architecture involves using a chain of five (5) convolutional layers, followed by two (2) fully connected layers to provide an output. This network also makes use of the dropout technique [36]. The WindowGRU network architecture is similar to the proposed one, as it also contains a convolutional layer. Yet, it is then followed by two (2) bidirectional GRU layers. Similarly to the seq2point network, the WindowGRU is then followed by two (2) fully connected layers to provide an output. This network architecture uses dropout [36]. Note that to make the WindowGRU architecture compatible with the ‘‘cuDNN environment’’, the GRU layers were replaced with the CuDNNGRU variant. Furthermore, the implementation of the bi-directional layers follows the cuDNN library requirements. Finally, each network was adapted to support the PB loss function. This involved using five dense layers in parallel, each representing a quantile value. _C._ _LOSS FUNCTIONS_ The proposed and benchmark networks were implemented using two distinct loss functions, MSE, and PB. FIGURE 1. Block diagram showing the proposed network architecture. 1) MEAN SQUARED ERROR The MSE is a widely used metric that can also serve as a loss function for training models dealing with regression problems. This function is defined by Equation 1, where _Yi_ stands for the ground truth value, _Y_ <sup>ˆ</sup> _i_ stands for the predicted value, and _n_ denotes the number of steps. the training and testing efforts to only one network, and also ensures that the body of data remains the same, thus enabling a fair comparison between all the _τ_ values. With respect to the proposed architecture, it outputs the following values: the appliance consumption, the remaining consumption (i.e., total minus appliance consumption, and the sum of these two. Therefore, the loss function was implemented to accommodate these changes. Equation 3 presents the PB loss formulation in PB-NILM. _MSE_ = <sup><u>1</u></sup> _n_ _n_ _i_ =1 2 ( _Yi_ - _Y_ <sup>ˆ</sup> _i_ ) (1) - _ni_ <u>=1</u> <sup>_loss_</sup> <sup><u>(</u></sup> <sup>_Di_</sup> <sup><u>)</u></sup> + _n_ - _ni_ <u>=1</u> <sup>_loss_</sup> <sup><u>(</u></sup> <sup>_Ti_</sup> <sup><u>)</u></sup> _n_ Due to the formulation of this function, it heavily penalizes larger errors. As such, it might not be suited to analyze appliances whose typical consumption patterns consist of sparse activation with high consumption such as toasters or a kettle. However, it is also easy to interpret and outputs a value in the units of the original data. In other words, it is possible to quantify the variance in the original measure (e.g., Watts for active power, or Amperes for current). 2) PINBALL This function tries to take into account the distribution of the underlying data, an appliance in this case, and provide a more accurate prediction for potentially more unusual patterns. Retaking the kettle example, this function should be more capable of representing the small number of consumption events present in the entire dataset. The pinball function defined by Equation 2, where _τ_ represents the desired quantile (a value between 0.01 and 0.99), and _n_ represents the number of points taken into consideration, which in this case translates into the batch size. _pinball_ = <sup><u>max(</u></sup> <sup>_τ_</sup> <sup>× (</sup> <sup>_<u>Yi</u>_</sup> <sup>−ˆ</sup> <sup>_<u>Yi</u>_</sup> <sup><u>)</u></sup> <sup>_,_</sup> <sup><u>(</u></sup> <sup>_τ_</sup> <sup>−</sup> <sup><u>1) × (</u></sup> <sup>_<u>Yi</u>_</sup> <sup>−ˆ</sup> <sup>_<u>Yi</u>_</sup> <sup><u>))</u></sup> (2) _n_ _D._ _PB LOSS IMPLEMENTATION_ The PB quantile loss function requires tuning for each appliance through the _τ_ value, i.e., the quantile to estimate. In this work, it was opted to train a single network with the five _τ_ values (0.05, 0.25, 0.5, 0.75, and 0.95). This approach reduces _loss_ = - _ni_ <u>=1</u> <sup>_loss_</sup> <sup><u>(</u></sup> <sup>_Ai_</sup> <sup><u>)</u></sup> + _n_ (3) where _loss_ ( _Ai_ ) is the loss for appliance _A_, _loss_ ( _Di_ ) is the loss for the difference between the aggregated consumption and appliance _A_, and _loss_ ( _Ti_ ) is the loss of the total power. Finally, _i_ represents an individual quantile, and _n_ is the number of quantiles considered (five in this work). As for the remaining architectures, since they are all singlebranch, the loss consists only of the first term in Equation 3. IV. PERFORMANCE EVALUATION METHODOLOGY This section presents the overall evaluation methodology utilized in this work. More precisely, it describes the training and testing dataset, the respective training and testing procedures, and a set of metrics developed explicitly for NILM performance evaluation. _A._ _DATASET_ All the presented deep neural networks were evaluated using House 2 of the REFIT dataset [40]. It consists of twentyone (21) months of active power measurements for the whole house and nine individual appliances. Due to some inconsistencies in the dataset, some data pre-processing was required. More concretely: 1) the data were resampled to 8 seconds with interpolation to the nearest neighbor for missing data. And 2) The aggregated consumption was set to be the maximum between the original aggregated data and the sum of the TABLE 2. List of appliances in the used dataset. % _>_ 0 is the percentage of the data greater than zero watts for each appliance over the entire dataset. appliances to guarantee that the amount of power resulting from the sum of the individual loads is never higher than the aggregated consumption. Table 2 lists the individual appliances, and the % of data points greater than zero Watts after data pre-processing. As can be observed, there are considerable differences in usage between devices. For example, while the FridgeFreezer is active most of the time, the usage periods of appliances such as the Kettle are seldom. Appliances 6, 7 and 9 were not considered for this paper as the performance across all architectures for these devices was extremely poor. This most likely results from a combination of very low usage and low power consumption. _B._ _TRAINING AND TESTING_ For training and testing, the data is divided into two contiguous blocks, following a 70%-30% division, respectively. The number of timesteps for the inputs of the network is set to 40. This number represents about five minutes of data in the selected dataset. _EarlyStopping_ was employed to help prevent the overfitting of the models. _ReduceLROnPlateu_ was also applied to have the model take smaller steps during the training, thus potentially resulting in the discovery of new minimum values for the loss function. Related literature suggests that the performance of NILM algorithms is consistently higher when disaggregating the sum of known appliance-level signals instead of the real aggregated consumption (i.e., as measured at the mains) [41], [42]. Consequently, it was decided to train and evaluate the resulting models considering the two possibilities: 1) against the sum of the known individual loads (also referred to as artificial aggregate), and 2) against the real aggregate data. The former reflects a scenario in which the input of the network does not have any noise. I.e., the ground-truth fully explains the aggregated data. As for the latter, it represents the real-world scenario, in which the ground-truth data only partially explains the whole-house consumption. _C._ _PERFORMANCE METRICS_ Many performance metrics have been proposed to evaluate the performance of NILM algorithms [16], [43]. For example, the works mentioned in the previous section used metrics such as _F1-Score_, _Mean Absolute Error_ (MAE), _Root Mean-_ _Squared Error_ (RMSE), and _Estimated Accuracy_ (EA). In this work, we propose the _Correctly_ _Estimated_ _Power_ (CEP) metric. This metric translates into the amount of correctly assigned power during the active periods of _Oz_ takes the value of the _OE_ when the ground-truth is equal to zero. In every other case, _Oz_ translates into the average of power that was predicted over the period when the groundtruth was zero. We propose this metric as decoupled from the energy consumption. Higher values indicate a better match of assigned power. To further analyze the results of an algorithm, other supplementary metrics are used and determine various other effects, such as under and overestimation. The _CEP_ is defined in Equation 4: (4) _<u>C</u>_ + _<u>Cue</u>_ + _<u>Coe</u>_ _CEP_ =   _<u>C</u>_ + _<u>Cue</u>_ + _<u>Coe</u>_ _,_ GT > 0 _GT_ 1 _._ 00 _,_ _GT_ = 0 where _C_ is the correctly identified power, i.e., when the ground-truth and estimated power is the same. Note that in the absence of power, _CEP_ defaults to 1 by design, since there should be no energy to explain. When this occurs, we encourage further examination of the _Oz_ metric, defined ahead. _C_ = �( _Y_ == _Y_ <sup>ˆ</sup> ) × _Y_ <sup>ˆ</sup> (5) _Cue_ is the correctly identified power when the estimated power ( _y_ ˆ) is smaller than the ground truth ( _gt_ ). I.e., there is under-estimation. _Cue_ = �( _Y_ _>_ _Y_ <sup>ˆ</sup> ) × _Y_ (6) _Coe_ is the correctly identified power when the estimated power is greater than the ground truth (i.e., over-estimation). _Coe_ = �( _Y_ _<_ _Y_ <sup>ˆ</sup> ) × _Y_ <sup>ˆ</sup> (7) _GT_ is the total power in the ground truth data. _GT_ = _Y_ (8) The _CEP_ metric is supplemented by the _OE_ and _UE_ metrics, where _OE_ is the ratio of overestimated power, and _UE_ is the ratio of underestimated power. These metrics are calculated using the values of overestimation, defined as _O_, and underestimation, defined as _U_ . _O_ = _U_ = _OE_ = �( _Y_ <sup>ˆ</sup> - _Y_ ) (9) �( _Y_ - _Y_ <sup>ˆ</sup> ) (10)  _<u>O</u>_  _GT_ <sup>_,_</sup> _GT_ _>_ 0  _not_ _applicable,_ otherwise (11) _UE_ = <sup>_<u>U</u>_</sup> (12) _GT_ Note that _OE_ is only defined when there is consumption in the ground-truth. To accommodate the situations where there is no consumption in the ground-truth, the _Oz_ metric was defined as follows: _<u>O</u>_ _GT_ <sup>_,_</sup> Y = 0 & _GT_ _>_ 0 - _<u>Y</u>_ ˆ _,_ _GT_ = 0 _n_ _Oz_ =    (13) FIGURE 2. Energy over the week 2015-04-20 to 2015-04-26 on the two scenarios. rest as to better analyze the results when there is no energy to estimate, i.e., when an appliance is not consuming. This metric is not limited in values since _Oz_ can exceed 1. V. RESULTS The performance evaluation results are reported in two steps. First, the performance of the proposed network is presented individually; then, extensive benchmarks with the three alternative architectures are provided. The performance is reported for a week in the testing set - from 2015-0420 to 2015-04-26. An overview of the consumption during this week is given in Figure 2. For a more direct comparison with the _MSE_, only the results for the best pinball are presented. To this end, the best pinball was obtained by calculating the distance between the vector⃗ _s_ given by⃗ _s_ = ( _CEP, OE, Oz, UE_ ) and the vector⃗ _p_ with the perfect scores, given by⃗ _p_ = (1 _,_ 0 _,_ 0 _,_ 0) [44], [45]. The pinball with the smallest distance was considered the best. In case of ties, the highest pinball value was selected. The distance is given by Equation 14. _d_ ( _s_ ⃗ _,_ ⃗ _p_ ) = = - _n_ �� _i_ =1 ~~�~~ (1 − _CEP_ ) <sup>2</sup> + _OE_ <sup>2</sup> + _Oz_ <sup>2</sup> + _UE_ <sup>2</sup> (14) ( _si_ - _pi_ ) <sup>2</sup> The Fridge is active over the entire week and achieves _CEP_ values of 0.93 and above. In terms of overestimation, it performs adequately both in where ground-truth was present and when it was not. The worst results are in the days 22 and 25, where overestimation occurred in the order of 11% and 15%, respectively. The Washing Machine reports mixed values for _CEP_ . The days 20, 21, 23, and 25 present acceptable results, while days 22, 24, and 26 show an uncommon behavior. Particularly on days 22 and 26, where there is no power on the groundtruth values, but estimation took place anyway. On these days, as shown by the _Oz_ metric, the amount reported is an average of the wrongly estimated power. Finally, on the day 24, the values obtained were the result of the poor quality of the data - a consumption of two watts over the entire day and resulting in the _Oz_ being the percentage of the estimated against the ground-truth and outputting a result very different from the rest. The Dishwasher performed both well and consistently, with _CEP_ values of 0.89 and above, while the overestimation was always between 0.01-0.02. In terms of _Oz_, the values obtained are also considered good. They are at a maximum of 0.07 and typically in the range of 0.01-0.04. The Television Site is the overall most problematic appliance - good values of _CEP_, _OE_, at the cost of very high scores of _Oz_ . This means that the network attributed power to the appliance at the wrong time. This is particularly visible on days 20 and 23, where almost all of the power is being assigned to the moments where no consumption occurred. The Microwave performs poorly, with _CEP_ values almost exclusively under 0.6. Combined with the high _OE_ and _Oz_ make this appliance, together with the Television Site, the worst-performing loads. The Kettle is a very consistent appliance, with high _CEP_ values, a small amount of overestimation, and almost no _Oz_ . This means that the power estimated by the network is mostly correct, both in the time and energy domains. _A._ _PB-NILM ARCHITECTURE_ For the proposed network evaluation, the metrics _CEP_, _OE_, _Oz_ and _UE_ are presented for each scenario (artificial and real aggregated consumption) and loss function (PB and MSE). The metrics were calculated per appliances for each day in the testing set. 1) MSE: SUM OF INDIVIDUAL LOADS The results for the MSE in the sum of individual loads are presented in Table 3. TABLE 3. Results of disaggregation using the MSE loss on the _Sum of Loads_ scenario. TABLE 4. Results of disaggregation using the Pinball Quantile loss on the _Sum of Loads_ scenario. Overall, when using the MSE loss function on the sum of the individual loads, acceptable results are achieved. The poor results for the Television Site and Microwave could result from a combination of the shallow representation of the appliance on the dataset and the low consumption associated with it. In contrast, while the Kettle is also underrepresented, it shows higher consumption peaks (see Table 2). 2) PINBALL: SUM OF INDIVIDUAL LOADS The results for the pinball in the sum of individual loads are presented in Table 4. As can be observed, the overall performance of the trained models is positive. The results for the Fridge-Freezer remain consistently good, with _CEP_ values of 0.96-0.97. This appliance also yields very few overestimation both in terms of _OE_, and _Oz_ . The Washing Machine performs very well using the pinball quantile loss function, with an exception in day 24. Still, this happens due to noise in the ground-truth data, which shows only two (2) Watts of consumption during the day. Furthermore, the absence of _Oz_ is a critical advantage over the MSE loss, since the ground-truth values are very likely the result of a data acquisition error. TABLE 5. Results of disaggregation using the MSE loss on the _Aggregate_ scenario. The Dishwasher presents very high values of _CEP_, together with low _OE_ and _Oz_ . With the pinball quantile loss, this is the highest-performing appliance. Overall, this appliance is fairly consistent over the entire week. With the pinball quantile loss, the Television Site performs remarkably better when compared with its MSE counterpart, with overall _CEP_ values much higher and lower _OE_ and _Oz_ . The Kettle remains a very good appliance, with consistent values of _CEP_ throughout the week. There are small increases in the _OE_ values against the MSE loss. However, the overall _Oz_ is lower than in the MSE loss. 3) MSE: AGGREGATE CONSUMPTION The results for the MSE in the aggregate consumption are presented in Table 5. Against the aggregate consumption, the _CEP_ values are overall worse than on the Sum of total loads scenario. The tendency on the aggregate scenario is to report lower _CEP_, as well as higher _OE_ and _Oz_ . The Fridge reflects the overall characteristics of the scenario, with lower values of _CEP_, although consistent - ranging from 0.59 to 0.66. The results for _OE_ show a significant increase, especially on day 25, with a value of 0.40. The Washing Machine follows the same trend, with values of _CEP_ showing a decrease relative to the sum of loads scenario, with a slight increase of _OE_ and a very significant rise in _Oz_ . Notably, on day 24, this appliance had only two watts to be predicted, resulting in an abnormally large value of _Oz_ . The Dishwasher was less impacted by the scenario settings and presented values of _CEP_ in the range of 0.64 to 0.78. This comes with little overestimation, although higher _Oz_ is reported. The Television Site, one of the most problematic in the previous scenario, continues to underperform. This is shown by a very low value of _CEP_, coupled with very high values of _Oz_ . The Microwave, like Television Site, reflects drastic changes in the scenario. It reports lower _CEP_ and higher _OE_ and _Oz_, especially on the days 22 and 25. While the Kettle decreased the performance with respect to the _CEP_ metric, the results it still acceptable and show a minimal increase of _OE_ . However, _Oz_ is now considerably higher. Overall this is the best performing appliance using the MSE loss. 4) PINBALL: AGGREGATE CONSUMPTION Against the aggregate consumption, the pinball quantile loss function remains a solid alternative to the standard MSE loss. The results for the Fridge-Freezer remain reasonably high, with _CEP_ values of 0.75 to 0.88. The overestimation, however, increased as well. The values of _OE_ roughly follow the same increase as in the MSE case. The Washing Machine is an average appliance, with a wide range of _CEP_ values. One key advantage against the MSE loss, however, is that on day 24, there was no consumption predicted - more in line with the ground-truth value of 2 Watts. The Dishwasher yields high values of _CEP_ in this scenario. Yet, this comes with a caveat - higher _OE_ and _Oz_ as well. The Television Site continues to display poor values of _CEP_ . The notable exception is on day 24 when the quantile 0.95 was selected. This results in a very high value for _CEP_ . Yet, this increase arrives at the cost of an increase of _OE_, and _Oz_ . TABLE 6. Results of disaggregation using the Pinball Quantile loss on the _Aggregate_ scenario. TABLE 7. Median of best results for each appliance over all network architectures - sum of loads scenario. The Microwave reports low values of _CEP_, as well as high values of _OE_ and _Oz_ . An interesting result was the selection of the 0.75 quantile over the entire week, suggesting this quantile may be very well suited for this appliance in particular. The Kettle is the best performing appliance in this scenario utilizing the pinball quantile loss. It reports consistent values of _CEP_ (≥ 0 _._ 88), as well as minimal increases in the _OE_, and _Oz_ metrics. _B._ _BENCHMARKS_ Two different benchmarks are provided. The first compares the overall performance of the four disaggregation architectures, whereas the second compares the performance of the loss functions. Regarding the former, the median of the best distances over the testing week is computed for each appliance. This is done for each scenario, for a total of 12 comparisons per architecture (i.e., six appliances and two loss functions). As for the latter, the distances between the best PB and the MSE were compared. This was done for each scenario, for a total of 42 comparisons (i.e., six appliances across seven days). In case of ties, i.e., the same distance between the PB and MSE, this information is labelled as such. 1) ARCHITECTURES: PROPOSED VS. OTHERS The performances of the four networks architectures evaluated in this work are presented in Tables 7 and 8. For each appliance, the loss function with the shortest distance across the four architectures is shown on a grey background. The overall best loss function is highlighted in bold. Overall, the results show the superior performance of the proposed architecture when using the PB loss function. In fact, out of 48 comparisons (6 appliances x 4 networks x 2 scenarios), it shows better performance on 45 occasions (93.75%). Furthermore, it is important to remark that on the other three circumstances, the winning architecture is also guided by the PB loss function. TABLE 8. Median of best results for each appliance over all network architectures - aggregate scenario. Examining the average distance of the appliances in each network, it can be observed that in both scenarios, the most effective networks are the proposed one and its single branch version, independently of the employed loss function. Another relevant aspect of these two networks is that they are capable of learning all of the appliances. This does not happen on the other two alternatives. More precisely, the WindowGRU did not manage to learn the Microwave independently of the loss function and the disaggregation scenario. Furthermore, this architecture also did not manage to learn a representation for the Kettle in the aggregated scenario with the PB loss. As for the seq2point architecture, it did not manage to disaggregate the microwave when using the PB loss in both disaggregation scenarios. 2) LOSS FUNCTIONS: PB VS. MSE To further understand the differences in performance between the PB and the MSE, Figure 3 shows the distribution of the winning across the four networks in the two studied scenarios. Note that each bar represents 41 comparisons, resulting from six appliances and seven days. As it can be observed there is a prevalence of wins for the PB loss across all the networks. However, the difference is not so evident in the seq2point and WindowGRU architectures. This happens mostly due to the poor performance of the PB loss function concerning the Kettle and the Television on the WindowGRU, and the Microwave on the seq2point. Examining the distribution of the losses in more detail, it is shown that on the sum of loads scenario, the MSE loss achieved zero wins in the proposed network, nine on the single branch version, 11 on the seq2point, and seven on the WindowGRU. On the aggregate scenario, the MSE achieved two wins on the proposed network, ten on the single branch version, ten on the seq2point, and 14 on the WindowGRU. There are also two ties in the seq2point, and seven on the WindowGRU, in both scenarios. Regarding the distribution of the winning pinball loss quantiles, the most prominent one is the 0.75, with 46% of the wins in the sum of loads, and 55% on the real aggregate scenario. Another prominent quantile is 0.5. However, this is only true in the artificial aggregate scenario, where it wins 26% of the time. On the other extreme are the smaller quantiles, 0.05 and 0.25, with less than 5% of wins independently of the scenario. Finally, it is also noticeable the presence of the 0.95 quantile across the four networks in the real-aggregated scenario (10% of wins), contrasting the artificial aggregate scenario where the 0.95 quantile only wins in one occasion in the seq2point architecture. VI. DISCUSSION Overall, the results presented in this paper show the superior performance of the proposed network, in particular of the pinball guided version that achieved nine wins out of 12 in the benchmarks. Our results also show that despite much superior performance of the proposed architecture guided by the PB loss, both the MSE and PB loss functions perform adequately against the sum of loads. Yet, the same does not hold against the aggregated consumption signal that shows noticeable losses in performance. A noticeable appliance that suffers from the change in scenario is the Fridge-Freezer that sees increases in the distance to the perfect score from less than 0.09 to over 0.4 across the four networks when guided by the PB loss function (from 0.11 to 0.62 in the MSE). Another appliance that suffered greatly was the Dishwasher, with the median distance to perfect score going from as little as 0.04 up to 0.35 when guided by the PB (0.12 to 0.56 in the MSE). Interestingly, the Kettle is the only appliance that has comparable performances in the two scenarios (note that the WindowGRU does not learn the Kettle in the PB guided version). A possible explanation for this result is much higher instantaneous consumption of this appliance when compared to the others, which makes it less susceptible to the increase in power in the real aggregate scenario. Concerning loss functions, the results show that the PB loss function is very competitive independently of the deep network architecture. Overall, the PB loss is the winner in about 80% of the comparisons. Again here, there are some FIGURE 3. Loss functions with the best distance across network architectures and scenarios: left (sum of loads), right (real aggregate). differences between the two scenarios. The PB wins 84% of the cases in the sum of loads and 79% in the real aggregate. Another noticeable difference is the fact that the 0.5 quantile is only predominant in the artificial aggregate scenario. Instead, in the real aggregate scenario, going for higher quantiles (in this case, 0.75 and 0.95) will yield superior performances. On the other hand, smaller quantiles (0.05 and 0.25) have a meager number of wins independently of the scenario. These quantiles only win when the appliances are not consuming any energy or are consuming very little. For example, in the proposed architecture, the 0.25 quantile wins on the three days that the washing machine does not consume any power. Ultimately, higher quantiles can be considered as a more liberal approach to power disaggregation, whereas low quantiles are more conservative in this regard. With the pinball loss formulation, if the predicted values are much higher than the ground-truth, bigger quantiles will penalize less the error (I.e., incentives overestimation). The opposite is also true. I.e., when the ground-truth values are higher than the predictions, lower quantile values will provide lesser penalties in regards to the loss (i.e., incentives underestimation). Thus, to consider all the options, it is fundamental to have quantiles across the entire range of values. In fact, our results seem to suggest that quantiles should be selected between 0.25 and 0.95 to have the best performance. To conclude, it is also evident from our results that evaluating the performance of NILM solutions in the sum of loads will yield overly optimistic results. Furthermore, the performance in the ‘‘denoised’’ scenario will likely be very far from that obtained when testing in the real-world scenario, which will ultimately make benchmarks less meaningful. This result is in line with the findings from [42] that stress the need to avoid evaluations on the sum of loads instead of the real aggregated data. VII. CONCLUSION AND FUTURE WORK DIRECTIONS This paper proposes a deep neural network architecture, an alternative loss function to the NILM problem, and a set of metrics for NILM performance evaluation. Overall, our results show that the proposed network, when guided by the PB loss function, yields disaggregation performance. Furthermore, the benchmark results also show that the PB loss function can increase the performance of two stateof-the-art algorithms implemented in the latest release of NILM Toolkit. Ultimately, it is clear the PB loss function has its room in NILM research, and therefore should be further explored by this community. Furthermore, a great deal of the NILM problem lies in the uncertainty and constant variation associated with the data and the respective usage patterns. Thus, we argue that given the flexibility of the PB quantile loss function, that is, the ability to specify the _τ_ value in regards to the desired pattern makes it so that it has the edge over other conventional approaches. While the proposed network performs reasonably well in most cases, we acknowledge that it may be further optimized and tuned for increased performance. One immediate improvement would be concerning the temporal processing by tuning the timesteps for each appliance type (or category). In terms of changes to the architecture, another possibility would be to improve the feature extraction step, by making use of auto-encoders [46]. Concerning the loss functions, we report superior results using the pinball quantile loss on both scenarios. Yet, in the current work, only a limited number of quantile values were explored. Consequently, future work should investigate the possibility of finding the recommended quantiles for each appliance type or category. This, of course, should be performed across multiple datasets such that it is possible to generalize the findings. This work also proposes a set of metrics for assessing the NILM performance concerning energy estimation. Altogether, these metrics contribute to the interpretability of the results since they can be combined to provide different insights into the results. Potential uses include highlighting faults in the _pipeline_, and finding opportunities to fine-tune the algorithms based on the application needs. For example, in a scenario where over-estimation is a problem, the algorithm should be modified such that the _OE_ metric reports lower values even if the _CEP_ is penalized. Yet, one limitation of the _CEP_ metric is that it gives the same importance to the three components. Thus, future work should also explore the definition of weighted versions of this metric. Another limitation of _CEP_ is the fact that it only reports the performance concerning the success rate. As such, proper conclusions must take into account other metrics such as _OE_ and _Oz_ . Future work regarding the evaluation of the metric suite lies in providing feedback in a more summarised fashion. Consequently, future work with this respect should look at expanding this metric such that it is capable of reporting by itself the most important trade-offs. During this work, some issues with the data were identified, which may have negatively affected the performance of the proposed networks. These included temporal shifts and differences in power consumption between aggregated and ground-truth data. For example, it was identified that in some portions of the dataset, the Fridge-Freezer has a consumption of 80 Watts in the ground-truth and 70 Watts in the aggregated signal. Ultimately, this may help explain the consistent over-estimation of the fridge in the second evaluation scenario. APPENDIX: SUPPLEMENTARY MATERIAL For replication purposes, we are releasing the individual results obtained in the different models trained and tested in this work. The results of the benchmarks that were conducted across the four architectures are also provided. The data is made available through the Open Science Framework under https://osf.io/x6qz7/ (DOI: 10.17605/OSF.IO/X6QZ7). REFERENCES [1] G. W. Hart, ‘‘Nonintrusive appliance load monitoring,’’ _Proc._ _IEEE_, vol. 80, no. 12, pp. 1870–1891, Dec. 1992. [2] N. F. Esa, M. P. Abdullah, and M. Y. Hassan, ‘‘A review disaggrega tion method in non-intrusive appliance load monitoring,’’ _Renew. Sustain._ _Energy Rev._, vol. 66, pp. 163–173, Dec. 2016. [3] B. Najafi, S. Moaveninejad, and F. Rinaldi, ‘‘Data analytics for energy dis aggregation: Methods and applications,’’ in _Big Data Application in Power_ _Systems_, R. Arghandeh and Y. Zhou, Eds. Amsterdam, The Netherlands: Elsevier, 2018, ch. 17, pp. 377–408. [Online]. Available: https://www. sciencedirect.com/science/article/pii/B9780128119686000176 [4] C. Nalmpantis and D. Vrakas, ‘‘Machine learning approaches for non intrusive load monitoring: From qualitative to quantitative comparation,’’ _Artif. Intell. Rev._, vol. 52, no. 1, pp. 217–243, Jan. 2018. [Online]. Available: https://link.springer.com/article/10.1007/s10462-018-9613-7 [5] Y. LeCun, Y. Bengio, and G. Hinton, ‘‘Deep learning,’’ _Nature_, vol. 521, pp. 436–444, May 2015. [Online]. Available: https://www.nature. com/articles/nature14539 [6] A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever, ‘‘Language models are unsupervised multitask learners,’’ _OpenAI_ _Blog_, vol. 1, no. 8, p. 9, 2019. [7] J. Engel, K. K. Agrawal, S. Chen, I. Gulrajani, C. Donahue, and A. Roberts, ‘‘GANSynth: Adversarial neural audio synthesis,’’ Feb. 2019, _arXiv:1902.08710_ . [Online]. Available: http://arxiv.org/abs/1902.08710 [8] A. van den Oord, S. Dieleman, H. Zen, K. Simonyan, O. Vinyals, A. Graves, N. Kalchbrenner, A. Senior, and K. Kavukcuoglu, ‘‘WaveNet: A generative model for raw audio,’’ Sep. 2016, _arXiv:1609.03499_ . [Online]. Available: http://arxiv.org/abs/1609.03499 [9] S. Chen, K. Ma, and Y. Zheng, ‘‘Med3d: Transfer learning for 3D med ical image analysis,’’ Apr. 2019, _arXiv:1904.00625_ . [Online]. Available: https://arxiv.org/abs/1904.00625 [10] J. Kim, T.-T.-H. Le, and H. Kim, ‘‘Nonintrusive load monitoring based on advanced deep learning and novel signature,’’ _Comput._ _Intell._ _Neurosci._, vol. 2017, pp. 1–22, Oct. 2017. [Online]. Available: https://www.ncbi. nlm.nih.gov/pmc/articles/PMC5651160/ [11] D. Murray, L. Stankovic, V. Stankovic, S. Lulic, and S. Sladojevic, ‘‘Trans ferability of neural network approaches for low-rate energy disaggregation,’’ in _Proc. IEEE Int. Conf. Acoust., Speech Signal Process. (ICASSP)_, May 2019, pp. 8330–8334. [12] W. Kong, Z. Y. Dong, B. Wang, J. Zhao, and J. Huang, ‘‘A practical solution for non-intrusive type II load monitoring based on deep learning and post-processing,’’ _IEEE Trans. Smart Grid_, vol. 11, no. 1, pp. 148–160, Jan. 2020. [13] A. Harell, S. Makonin, and I. V. Bajić, ‘‘Wavenilm: A causal neural net work for power disaggregation from the complex power signal,’’ Feb. 2019, _arXiv:1902.08736_ . [Online]. Available: http://arxiv.org/abs/1902.08736 [14] Q. Wu and F. Wang, ‘‘Concatenate convolutional neural networks for non intrusive load monitoring across complex background,’’ _Energies_, vol. 12, no. 8, p. 1572, Apr. 2019. [15] P. Davies, J. Dennis, J. Hansom, W. Martin, A. Stankevicius, and L. Ward, ‘‘Deep neural networks for appliance transient classification,’’ in _Proc._ _IEEE_ _Int._ _Conf._ _Acoust.,_ _Speech_ _Signal_ _Process._ _(ICASSP)_, May 2019, pp. 8320–8324. [16] L. Pereira and N. Nunes, ‘‘Performance evaluation in non-intrusive load monitoring: Datasets, metrics, and tools—A review,’’ _Wiley_ _Interdiscipl._ _Rev.,_ _Data_ _Mining_ _Knowl._ _Discovery_, vol. 8, no. 6, p. e1265, May 2018. [Online]. Available: https://onlinelibrary.wiley.com/doi/abs/10.1002/ widm.1265 [17] C. Klemenjak, A. Reinhardt, L. Pereira, M. Berges, S. Makonin, and W. Elmenreich, ‘‘Electricity consumption data sets: Pitfalls and opportunities,’’ in _Proc. 6th ACM Int. Conf. Syst. Energy-Efficient Buildings, Cities,_ _Transp. (BuildSys)_, 2019, pp. 159–162. [18] I. Steinwart and A. Christmann, ‘‘Estimating conditional quantiles with the help of the pinball loss,’’ _Bernoulli_, vol. 17, no. 1, pp. 211–225, Feb. 2011. [19] T. N. Sainath, O. Vinyals, A. Senior, and H. Sak, ‘‘Convolutional, long short-term memory, fully connected deep neural networks,’’ in _Proc._ _IEEE_ _Int._ _Conf._ _Acoust.,_ _Speech_ _Signal_ _Process._ _(ICASSP)_, Apr. 2015, pp. 4580–4584. [20] K. Fukushima, ‘‘Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position,’’ _Biol. Cybern._, vol. 36, no. 4, pp. 193–202, Apr. 1980. [21] Y. LeCun, P. Haffner, L. Bottou, and Y. Bengio, ‘‘Object recognition with gradient-based learning,’’ in _Shape,_ _Contour_ _and_ _Grouping_ _in_ _Computer_ _Vision_ . London, U.K.: Springer-Verlag, 1999, p. 319. [22] S. Hochreiter and J. Schmidhuber, ‘‘Long short-term memory,’’ _Neu-_ _ral_ _Comput._, vol. 9, no. 8, pp. 1735–1780, Nov. 1997, doi: [10.1162/](http://dx.doi.org/10.1162/neco.1997.9.8.1735) [neco.1997.9.8.1735.](http://dx.doi.org/10.1162/neco.1997.9.8.1735) [23] K. Cho, B. van Merriënboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio, ‘‘Learning phrase representations using RNN encoder–decoder for statistical machine translation,’’ in _Proc. Conf. Empir-_ _ical Methods Natural Lang. Process. (EMNLP)_ . Doha, Qatar: Association for Computational Linguistics, Oct. 2014, pp. 1724–1734. [24] K. He, X. Zhang, S. Ren, and J. Sun, ‘‘Deep residual learning for image recognition,’’ Dec. 2015, _arXiv:1512.03385_ . [Online]. Available: http://arxiv.org/abs/1512.03385 [25] G. Huang, Z. Liu, L. van der Maaten, and K. Q. Weinberger, ‘‘Densely con nected convolutional networks,’’ Aug. 2016, _arXiv:1608.06993_ . [Online]. Available: http://arxiv.org/abs/1608.06993 [26] F. Chollet, ‘‘Xception: Deep learning with depthwise separable convolu tions,’’ Oct. 2016, _arXiv:1610.02357_ . [Online]. Available: http://arxiv.org/ abs/1610.02357 [27] S. Makonin, B. Ellert, I. V. Bajić, and F. Popowich, ‘‘Electricity, water, and natural gas consumption of a residential house in canada from 2012 to 2014,’’ _Sci. Data_, vol. 3, no. 1, pp. 1–12, Jun. 2016. [28] J. Kelly and W. Knottenbelt, ‘‘The UK-DALE dataset, domestic appliance level electricity demand and whole-house demand from five UK homes,’’ _Sci. Data_, vol. 2, no. 1, Mar. 2015, Art. no. 150007. [29] J. Z. Kolter and M. J. Johnson, ‘‘REDD: A public data set for energy disag gregation research,’’ in _Proc. Workshop Data Mining Appl. Sustainability_ _(SIGKDD)_, San Diego, CA, USA, vol. 25, 2011, pp. 59–62. [30] J. Gao, S. Giri, E. C. Kara, and M. Bergés, ‘‘PLAID: A public dataset of high-resoultion electrical appliance measurements for load identification research: Demo abstract,’’ in _Proc. 1st ACM Conf. Embedded Syst. Energy-_ _Efficient Buildings_, 2014, pp. 198–199. [31] T. Hong, P. Pinson, S. Fan, H. Zareipour, A. Troccoli, and R. J. Hyndman, ‘‘Probabilistic energy forecasting: Global energy forecasting competition 2014 and beyond,’’ _Int._ _J._ _Forecasting_, vol. 32, no. 3, pp. 896–913, Jul. 2016. [32] Y. Wang, D. Gan, M. Sun, N. Zhang, Z. Lu, and C. Kang, ‘‘Probabilis tic individual load forecasting using pinball loss guided LSTM,’’ _Appl._ _Energy_, vol. 235, pp. 10–20, Feb. 2019. [Online]. Available: http://www. sciencedirect.com/science/article/pii/S0306261918316465 [33] F. Chollet _et al._ (2015). Keras: The Python deep learning library. GitHub. [Online]. Available: https://keras.io [34] M. Abadi _et al._, ‘‘TensorFlow: A system for large-scale machine learning,’’ in _Proc. 12th USENIX Symp. Oper. Syst. Design Implement. (OSDI)_, 2016, pp. 265–283. [35] S. Ioffe and C. Szegedy, ‘‘Batch normalization: Accelerating deep network training by reducing internal covariate shift,’’ 2015, _arXiv:1502.03167_ . [Online]. Available: http://arxiv.org/abs/1502.03167 [36] N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov, ‘‘Dropout: A simple way to prevent neural networks from overfitting,’’ _J. Mach. Learn. Res._, vol. 15, pp. 1929–1958, 2014. [37] C. Zhang, M. Zhong, Z. Wang, N. Goddard, and C. Sutton, ‘‘Sequence to-point learning with neural networks for non-intrusive load monitoring,’’ in _Proc._ _32nd_ _AAAI_ _Conf._ _Artif._ _Intell._, New Orleans, LA, USA, 2018, pp. 1–8. [Online]. Available: https://www.aaai.org/ocs/index.php/ AAAI/AAAI18/paper/view/16623/15980 [38] O. Krystalakos, C. Nalmpantis, and D. Vrakas, ‘‘Sliding window approach for online energy disaggregation using artificial neural networks,’’ in _Proc._ _10th_ _Hellenic_ _Conf._ _Artif._ _Intell._ _(SETN)_, Patras, Greece: Association for Computing Machinery, Jul. 2018, Art. no. 7, doi: [10.1145/3200947.](http://dx.doi.org/10.1145/3200947.3201011) [3201011.](http://dx.doi.org/10.1145/3200947.3201011) [39] N. Batra, R. Kukunuri, A. Pandey, R. Malakar, R. Kumar, O. Krystalakos, M. Zhong, P. Meira, and O. Parson, ‘‘Towards reproducible state-of-theart energy disaggregation,’’ in _Proc._ _6th_ _ACM_ _Int._ _Conf._ _Syst._ _Energy-_ _Efficient Buildings, Cities, Transp. (BuildSys)_, New York, NY, USA, 2019, pp. 193–202. [Online]. Available: http://doi.acm.org/10.1145/3360322. 3360844 [40] D. Murray, L. Stankovic, and V. Stankovic, ‘‘An electrical load measure ments dataset of united kingdom households from a two-year longitudinal study,’’ _Sci. Data_, vol. 4, no. 1, Jan. 2017, Art. no. 160122. [41] S. Makonin and F. Popowich, ‘‘Nonintrusive load monitoring (NILM) performance evaluation,’’ _Energy_ _Efficiency_, vol. 8, no. 4, pp. 809–814, Oct. 2014. [Online]. Available: http://link.springer.com/article/ 10.1007/s12053-014-9306-2 [42] C. Klemenjak, S. Makonin, and W. Elmenreich, ‘‘Towards comparability in non-intrusive load monitoring: On data and performance evaluation,’’ in _Proc. IEEE Power Energy Soc. Innov. Smart Grid Technol. Conf. (ISGT)_, Washington, DC, USA, 2020, pp. 1–5. [43] L. Pereira and N. Nunes, ‘‘A comparison of performance metrics for event classification in non-intrusive load monitoring,’’ in _Proc. IEEE Int. Conf._ _Smart Grid Commun. (SmartGridComm)_, Oct. 2017, pp. 159–164. [44] K. D. Anderson, M. E. Berges, A. Ocneanu, D. Benitez, and J. M. F. Moura, ‘‘Event detection for non intrusive load monitoring,’’ in _Proc. 38th Annu._ _Conf. IEEE Ind. Electron. Soc. (IECON)_, Oct. 2012, pp. 3312–3317. [45] L. Pereira, ‘‘Hardware and software platforms to deploy and evaluate non intrusive load monitoring systems,’’ Ph.D. dissertation, Univ. Madeira, Funchal, Portugal, 2016. [46] P. Vincent, H. Larochelle, Y. Bengio, and P.-A. Manzagol, ‘‘Extracting and composing robust features with denoising autoencoders,’’ in _Proc. 25th Int._ _Conf. Mach. Learn. (ICML)_, New York, NY, USA, 2008, pp. 1096–1103. [Online]. Available: http://doi.acm.org/10.1145/1390156.1390294 EDUARDO GOMES (Student Member, IEEE) received the master’s degree in informatics engineering from the University of Madeira, in 2018. He is currently a Research Assistant with ITI/LARSyS and a member of the FEELab, where he works under the supervision of Dr. Lucas Pereira. His research interests include the development and applicability of machine learning solutions to challenges, such as non-intrusive load monitoring. LUCAS PEREIRA (Member, IEEE) received the Ph.D. degree in computer science from the University of Madeira, Portugal, in 2016. Since then, he has been with ITI/LARSYS, where he leads the Further Energy and Environment research Laboratory (FEELab). Since 2019, he has been a Research Associate with Técnico Lisboa. He works towards bridging the gap between laboratory and real-world applicability of ICT for sustainable development, with a significant focus on smart-grids and smart built environments. His research interests lie in the intersections between computer science and data science, including sensing and data acquisition, human-computer interaction, and machine-learning.

섹션 본문 105문단 · 41,065자

(제목 없음)

1The work in this paper proposes the application of the pinball quantile loss function to guide a deep neural network for Non-Intrusive Load Monitoring. The proposed architecture leverages concepts such as Convolution Neural Networks and Recurrent Neural Networks. For evaluation purposes, this paper also presents a set of complementary performance metrics for energy estimation. Finally, this paper also reports on the results of a comprehensive benchmark between the proposed network and three alternative deep neural networks, when guided by the pinball and Mean Squared Error loss functions. The obtained results confirm the disaggregation superiority of the proposed system, while also showing that the performances obtained using the pinball loss function are consistently superior to the ones obtained using the Mean Squared Error loss.INDEX TERMS Non-intrusive load monitoring, NILM, recurrent neural networks, convolutional neural networks, pinball quantile loss, mean squared error loss, benchmark.This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ VOLUME 8, 2020

I. INTRODUCTION

2For many years, Non-Intrusive Load Monitoring (NILM) [1] has remained a challenge for researchers in the area. The problem is complex due to the sheer number of variables to take into consideration. Simply put, NILM has as objective determining which appliance is active and how much it is consuming at each time instance. However, the challenge lies in the limitation of available data for algorithm training, dependencies of unknown factors such as the number of appliances in each household, unique appliance characteristics, and different consumption patterns. NILM can be approached as a classification or regression problem. It can be considered as a classification problem when the objective is the detection and classification of an appliance among a complex signal. It is a regression problem when the aim is to estimate the consumption of the individual devices directly from the aggregated energy intake.

3Many methods have been proposed throughout the years to solve this problem, ranging from ''classic'' machine-learning algorithms (e.g., Support Vector Machines, Lazy Learners, and Artificial Neural Networks), to advanced statistical The associate editor coordinating the review of this manuscript and approving it for publication was Canbing Li . learning methods like Hidden-Markov Models and Bayesian Statistics. A review of these methods is out of the scope of this paper. Instead, the interested reader can refer to the many literature reviews on these methods [2]- [4].

4Recently, deep learning (DL) algorithms have been consistently establishing new state-of-the-art performances in many fields [5]. These include advances in language models such as [6], a language model capable of text synthesis, and summarizing, among other uses. Audio generation has also been benefited in [7] and [8], as well as image segmentation for medical applications [9]. NILM is no exception to this trend. As such, recent times have seen a burst in DL proposals to solve this problem, e.g., [10]- [15].

5However, to achieve competitive results, DL methods require an abundance of training data. This is still a significant problem for NILM considering the lack of highquality datasets, both in terms of duration and quality of the labels [16], [17]. Likewise, such approaches also benefit significantly from a high number of trainable parameters, requiring computational power that is not cheap nor readily available in most cases.

6The contributions of this paper to the ongoing body of work in NILM are threefold. First, it proposes PB-NILM, a deep neural network composed of different types of layers such as convolutional, recurrent, and fully connected layers, and guided by the pinball (PB) quantile loss function [18], [19]. Second, it proposes a set of performance evaluation metrics, including the Correctly Estimated Power (CEP). Third, it provides a comprehensive evaluation and benchmark of PB-NILM against the same architecture when guided by the Mean Squared Error (MSE) loss function, and of three alternative deep learning architectures also guided by the PB and the MSE loss functions.

7The remaining of this paper is organized as follows. Section II presents the main advances in the machine learning field, with varied applications, proceeding to the quintessential components of deep learning, and an overview of the pinball quantile loss function. Building on these works, Section III presents PB-NILM, a deep neural network that is guided by the PB quantile loss function and establishes a benchmark with the standard MSE loss function. The evaluation methodology is presented in Section IV. This section also introduces a new set of performance evaluation metrics and details the network's training and testing methodology. Section V presents and briefly discusses the performance evaluation results. Further discussions are then presented in Section VI. Finally, in Section VII, the paper concludes with an overview of the presented work, its limitations, and potential future work directions.

II. RELATED WORKS

8Recent approaches to a variety of machine-learning problems try to leverage the power of DL, developing new architectures that are composed by what can be considered the fundamental building blocks of neural networks -convolutional [20], [21], recurrent [22], [23], and fully-connected layers.

9These are often used in tandem to achieve competitive results in a particular task, with each layer providing a certain benefit to the architecture. Some of the widely used deep networks include the WaveNet [8] for audio generation and synthesis, ResNet [24], DenseNet [25] and Xception [26] for image classification and segmentation.

10The WaveNet was developed to generate audio excerpts, by making use of dilated convolutions that preserve the size of the input data. This also allows for a much wider receptive field, thus improving the feature extraction process. In [13], the authors introduce WaveNILM, an architecture based in the WaveNet to leverage the dilation properties to achieve better disaggregation results. The latter was trained on the AMPds dataset [27], using 90% of the data for training, and the remaining 10% for testing. The performance of the method was reported using the estimated accuracy metric, which reports the total disaggregation over all timesteps. The proposed method was analyzed using the aggregated signal, achieving performances of over 85% in all the reported test cases.

11Wu and Wang [14] propose the concatenation of convolutional layers to classify different appliances by making use of spectrograms based features. The authors explore the application of the DenseNet and Xception architectures on the UK-DALE [28] and REDD [29] datasets for appliance classification. A common characteristic between these architectures lies in the almost exclusive use of convolutional layers. In terms of classification results, the authors report F 1 -Score values for the kettle, fridge, dishwasher, and microwave of over 0.90. Only the washing machine yields a lower value of 0.80. For load estimation, the MAE values are presented, with the highest error being just under six watts for the fridge.

12While standard convolutional layers are useful for feature extraction and classification, they do not preserve spatial information. For example, it may be possible to detect a face in an image, but it does not reveal where it was detected. As such, and in the context of time series, it is relevant to mention Recurrent Neural Networks (RNNs), as these are designed to carry information through time.

13Long-Short Term Memory (LSTM) networks [22] and Gated Recurrent Units (GRU) [23] are among the several existing types of RNN architectures. As NILM itself is a timeseries problem, RNNs found themselves being used by NILM researches, having yielded competitive results for both event classification, and energy estimation.

14In [10], the authors propose a solution based on RNNs, more specifically LSTMs, to perform classification of appliance consumption. The datasets used were the UK-DALE and REDD. In this work, Kim et al. present results that are at least double the performance of previous state-of-the-art approaches, with accuracy values ranging from 76% to 96% on houses 1 to 5 of the REDD dataset.

15The work in [12] proposed a Convolutional Neural Network (CNN) based solution for the load classification and estimation of individual appliances. Kong et al. also make use of the UK-DALE dataset and highlight the issue of missing data. The results are reported using the F1-Score for classification and Energy Accuracy for load estimation. In terms of performance, the authors present superior results against other solutions, with values of F1-Score of over 0.85 and Estimation Accuracy of over 0.88, except for the washerdryer of house 5, with 0.735.

16In [15], the authors explore the classification of appliances with random forest classifiers, fully-connected networks, and CNNs using the PLAID dataset [30]. The observations on the performance of several methods are analyzed at different sampling rates. Peak performance was attained by a CNN based architecture, with the F 1 -Score of 0.7619 at 1.2kHz. Murray et al.,in [11], attempt to apply transfer learning to the NILM problem. They propose two different networks based on CNNs and RNNs and evaluate them on three datasets (REFIT, UK-DALE, and REDD). To assess the transferability of the proposed networks, different sets of data were used during training and testing. The reported results vary from as little as 0.21 to 1 for the F 1 -score for state estimation. As for energy estimation, the results range from 44% and 82% in terms of estimation accuracy.

17Nevertheless, even with proper deep network topology, it can still be challenging to learn useful patterns and correctly perform designated tasks. One of the main challenges VOLUME 8, 2020 of NILM is the unbalanced nature of the problem. More concretely, some appliances have frequent use and thus reveal a more tractable load over time. Others are not utilized very often, resulting in very few activations that algorithms can use to learn their working patterns [12].

18Considering the different appliance load distributions, it is difficult to find a method to guide the learning of the various appliances properly. This challenge is not exclusive to the NILM problem, being very common in the forecasting of household load demand [31], [32]. For example, in [32] the authors used the pinball quantile loss function to train an LSTM for load forecasting with evident performance gains against the standard mean squared error (MSE) loss function. The reported improvements are in the order of 2.19% to 7.52% for residential consumers and 3.79% to 25.80% for small & medium enterprise consumers.

III. PB-NILM: PINBALL GUIDED NILM

19Against this body of related work, this paper presents an indepth study on the applicability of the pinball loss function to the NILM problem.

20To this end, a custom deep neural network architecture is trained guided by the PB loss function (PB-NILM). The PB-NILM network is then put against the same architecture, but guided by the MSE loss function. For additional benchmarks, the PB-NILM is also put against three other deep net architectures for NILM, all of which are individually trained with the PB and MSE loss functions.

21It is hypothesized that a standard loss function like MSE will guide the training towards the mean or median of the distribution, which is not the best option in the case of NILM, as previously mentioned. Consequently, the disaggregation results would not be consistent across appliances. In contrast, using the PB loss function, it is possible to guide the learning according to the underlying data by setting custom quantile value. In other words, it is possible to set different penalties (or losses) for under-and over-estimation errors based on the appliances to disaggregate.

22Software wise, Python 3.6.8 was used, along with Keras [33] running on the Tensorflow backend [34]. We have also installed, as a Tensorflow requirement, the cuDNN library for GPU-accelerated calculations. Hardware wise, the computer consisted of an Intel i7-8700k CPU, an NVIDIA 1080TI graphics card and 64GB of RAM.

A. PROPOSED NETWORK ARCHITECTURE

23The proposed deep neural network takes as input a time-series of aggregated active power measurements (P t 0 , P t 1 , . . . , P t n ). It outputs the power of an individual appliance, the difference between the aggregated load and the disaggregated appliance, and the total predicted power, all at time (t n+1 ).

24For this, the network is structured with two main branches (Appliance and Difference) and a minor branch (Total). Each branch is composed of a one-dimensional convolution layer, followed by a GRU and a Fully-Connected layer. A Batch Normalization layer follows each kernel operation [35]. Batch Normalization is used this way to control the outputs at the end of each layer that performs a kernel operation. It also facilitates the use of larger gradients, helping to speed up the network. This is, in turn, followed by a ReLU activation.

25Dropout [36] was also employed to help prevent overfitting. The dropout action forces the network to exclude learned connections and allows it not to focus on predominant connections, hence exploring other 'pathways' towards the final output. Figure 1 represents the proposed network and the flow of the data. The network was structured to have three outputs in such a way that the outputs are ''controlled'' among themselves. With Tensorflow, it was possible to set up in a way that the Total branch consists of the sum of the Appliance and Difference branches, in turn affecting their learning. The Appliance and Difference branches are not directly connected.

B. BENCHMARK ARCHITECTURES

26The PB-NILM is benchmarked against three different architectures. These, are summarized in Table 1.

27The first benchmark algorithm is a simplified version of the proposed PB-NILM architecture. More concretely, in this version, only the appliance disaggregation branch is considered. The other two architectures were taken from the NILMTK contrib repository [39]. These were selected based on the similarity of purpose (seq2point) and architecture (WindowGRU).

28The seq2point network architecture involves using a chain of five (5) convolutional layers, followed by two (2) fully connected layers to provide an output. This network also makes use of the dropout technique [36].

29The WindowGRU network architecture is similar to the proposed one, as it also contains a convolutional layer. Yet, it is then followed by two (2) bidirectional GRU layers. Similarly to the seq2point network, the WindowGRU is then followed by two (2) fully connected layers to provide an output. This network architecture uses dropout [36].

30Note that to make the WindowGRU architecture compatible with the ''cuDNN environment'', the GRU layers were replaced with the CuDNNGRU variant. Furthermore, the implementation of the bi-directional layers follows the cuDNN library requirements. Finally, each network was adapted to support the PB loss function. This involved using five dense layers in parallel, each representing a quantile value.

C. LOSS FUNCTIONS

31The proposed and benchmark networks were implemented using two distinct loss functions, MSE, and PB.

1) MEAN SQUARED ERROR

32The MSE is a widely used metric that can also serve as a loss function for training models dealing with regression problems. This function is defined by Equation 1, where Y i stands for the ground truth value,Ŷ i stands for the predicted value, and n denotes the number of steps.

33Due to the formulation of this function, it heavily penalizes larger errors. As such, it might not be suited to analyze appliances whose typical consumption patterns consist of sparse activation with high consumption such as toasters or a kettle. However, it is also easy to interpret and outputs a value in the units of the original data. In other words, it is possible to quantify the variance in the original measure (e.g., Watts for active power, or Amperes for current).

2) PINBALL

34This function tries to take into account the distribution of the underlying data, an appliance in this case, and provide a more accurate prediction for potentially more unusual patterns. Retaking the kettle example, this function should be more capable of representing the small number of consumption events present in the entire dataset. The pinball function defined by Equation 2, where τ represents the desired quantile (a value between 0.01 and 0.99), and n represents the number of points taken into consideration, which in this case translates into the batch size.

35The PB quantile loss function requires tuning for each appliance through the τ value, i.e., the quantile to estimate. In this work, it was opted to train a single network with the five τ values (0.05, 0.25, 0.5, 0.75, and 0.95). This approach reduces the training and testing efforts to only one network, and also ensures that the body of data remains the same, thus enabling a fair comparison between all the τ values.

36With respect to the proposed architecture, it outputs the following values: the appliance consumption, the remaining consumption (i.e., total minus appliance consumption, and the sum of these two. Therefore, the loss function was implemented to accommodate these changes. Equation 3 presents the PB loss formulation in PB-NILM.

37where loss(A i ) is the loss for appliance A, loss(D i ) is the loss for the difference between the aggregated consumption and appliance A, and loss(T i ) is the loss of the total power. Finally, i represents an individual quantile, and n is the number of quantiles considered (five in this work). As for the remaining architectures, since they are all singlebranch, the loss consists only of the first term in Equation 3.

IV. PERFORMANCE EVALUATION METHODOLOGY

38This section presents the overall evaluation methodology utilized in this work. More precisely, it describes the training and testing dataset, the respective training and testing procedures, and a set of metrics developed explicitly for NILM performance evaluation.

A. DATASET

39All the presented deep neural networks were evaluated using House 2 of the REFIT dataset [40]. It consists of twentyone (21) months of active power measurements for the whole house and nine individual appliances. Due to some inconsistencies in the dataset, some data pre-processing was required. More concretely: 1) the data were resampled to 8 seconds with interpolation to the nearest neighbor for missing data. And 2) The aggregated consumption was set to be the maximum between the original aggregated data and the sum of the VOLUME 8, 2020 appliances to guarantee that the amount of power resulting from the sum of the individual loads is never higher than the aggregated consumption. Table 2 lists the individual appliances, and the % of data points greater than zero Watts after data pre-processing. As can be observed, there are considerable differences in usage between devices. For example, while the Fridge-Freezer is active most of the time, the usage periods of appliances such as the Kettle are seldom. Appliances 6, 7 and 9 were not considered for this paper as the performance across all architectures for these devices was extremely poor. This most likely results from a combination of very low usage and low power consumption.

B. TRAINING AND TESTING

40For training and testing, the data is divided into two contiguous blocks, following a 70%-30% division, respectively. The number of timesteps for the inputs of the network is set to 40. This number represents about five minutes of data in the selected dataset. EarlyStopping was employed to help prevent the overfitting of the models. ReduceLROnPlateu was also applied to have the model take smaller steps during the training, thus potentially resulting in the discovery of new minimum values for the loss function.

41Related literature suggests that the performance of NILM algorithms is consistently higher when disaggregating the sum of known appliance-level signals instead of the real aggregated consumption (i.e., as measured at the mains) [41], [42]. Consequently, it was decided to train and evaluate the resulting models considering the two possibilities: 1) against the sum of the known individual loads (also referred to as artificial aggregate), and 2) against the real aggregate data.

42The former reflects a scenario in which the input of the network does not have any noise. I.e., the ground-truth fully explains the aggregated data. As for the latter, it represents the real-world scenario, in which the ground-truth data only partially explains the whole-house consumption.

C. PERFORMANCE METRICS

43Many performance metrics have been proposed to evaluate the performance of NILM algorithms [16], [43]. For example, the works mentioned in the previous section used metrics such as F1-Score, Mean Absolute Error (MAE), Root Mean-Squared Error (RMSE), and Estimated Accuracy (EA).

44In this work, we propose the Correctly Estimated Power (CEP) metric. This metric translates into the amount of correctly assigned power during the active periods of energy consumption. Higher values indicate a better match of assigned power. To further analyze the results of an algorithm, other supplementary metrics are used and determine various other effects, such as under and overestimation. The CEP is defined in Equation 4:

45where C is the correctly identified power, i.e., when the ground-truth and estimated power is the same. Note that in the absence of power, CEP defaults to 1 by design, since there should be no energy to explain. When this occurs, we encourage further examination of the O z metric, defined ahead.

46C ue is the correctly identified power when the estimated power (ŷ) is smaller than the ground truth (gt). I.e., there is under-estimation.

47C oe is the correctly identified power when the estimated power is greater than the ground truth (i.e., over-estimation).

48GT is the total power in the ground truth data.

49The CEP metric is supplemented by the OE and UE metrics, where OE is the ratio of overestimated power, and UE is the ratio of underestimated power. These metrics are calculated using the values of overestimation, defined as O, and underestimation, defined as U .

50Note that OE is only defined when there is consumption in the ground-truth. To accommodate the situations where there is no consumption in the ground-truth, the O z metric was defined as follows:

51O z takes the value of the OE when the ground-truth is equal to zero. In every other case, O z translates into the average of power that was predicted over the period when the groundtruth was zero. We propose this metric as decoupled from the rest as to better analyze the results when there is no energy to estimate, i.e., when an appliance is not consuming. This metric is not limited in values since O z can exceed 1.

V. RESULTS

52The performance evaluation results are reported in two steps. First, the performance of the proposed network is presented individually; then, extensive benchmarks with the three alternative architectures are provided. The performance is reported for a week in the testing set -from 2015-04-20 to 2015-04-26. An overview of the consumption during this week is given in Figure 2.

53For a more direct comparison with the MSE, only the results for the best pinball are presented. To this end, the best pinball was obtained by calculating the distance between the vector s given by s = (CEP, OE, O z , UE) and the vector p with the perfect scores, given by p = (1, 0, 0, 0) [44], [45]. The pinball with the smallest distance was considered the best. In case of ties, the highest pinball value was selected. The distance is given by Equation 14.

54A. PB-NILM ARCHITECTURE For the proposed network evaluation, the metrics CEP, OE, O z and UE are presented for each scenario (artificial and real aggregated consumption) and loss function (PB and MSE). The metrics were calculated per appliances for each day in the testing set.

1) MSE: SUM OF INDIVIDUAL LOADS

55The results for the MSE in the sum of individual loads are presented in Table 3. The Television Site is the overall most problematic appliance -good values of CEP, OE, at the cost of very high scores of O z . This means that the network attributed power to the appliance at the wrong time. This is particularly visible on days 20 and 23, where almost all of the power is being assigned to the moments where no consumption occurred.

56The Microwave performs poorly, with CEP values almost exclusively under 0.6. Combined with the high OE and O z make this appliance, together with the Television Site, the worst-performing loads.

57The Kettle is a very consistent appliance, with high CEP values, a small amount of overestimation, and almost no O z . This means that the power estimated by the network is mostly correct, both in the time and energy domains. Overall, when using the MSE loss function on the sum of the individual loads, acceptable results are achieved. The poor results for the Television Site and Microwave could result from a combination of the shallow representation of the appliance on the dataset and the low consumption associated with it. In contrast, while the Kettle is also underrepresented, it shows higher consumption peaks (see Table 2).

2) PINBALL: SUM OF INDIVIDUAL LOADS

58The results for the pinball in the sum of individual loads are presented in Table 4.

59As can be observed, the overall performance of the trained models is positive. The results for the Fridge-Freezer remain consistently good, with CEP values of 0.96-0.97. This appliance also yields very few overestimation both in terms of OE, and O z .

60The Washing Machine performs very well using the pinball quantile loss function, with an exception in day 24. Still, this happens due to noise in the ground-truth data, which shows only two (2) Watts of consumption during the day. Furthermore, the absence of O z is a critical advantage over the MSE loss, since the ground-truth values are very likely the result of a data acquisition error. The Dishwasher presents very high values of CEP, together with low OE and O z . With the pinball quantile loss, this is the highest-performing appliance. Overall, this appliance is fairly consistent over the entire week.

61With the pinball quantile loss, the Television Site performs remarkably better when compared with its MSE counterpart, with overall CEP values much higher and lower OE and O z .

62The Kettle remains a very good appliance, with consistent values of CEP throughout the week. There are small increases in the OE values against the MSE loss. However, the overall O z is lower than in the MSE loss.

3) MSE: AGGREGATE CONSUMPTION

63The results for the MSE in the aggregate consumption are presented in Table 5.

64Against the aggregate consumption, the CEP values are overall worse than on the Sum of total loads scenario. The tendency on the aggregate scenario is to report lower CEP, as well as higher OE and O z .

65The Fridge reflects the overall characteristics of the scenario, with lower values of CEP, although consistent -ranging from 0.59 to 0.66. The results for OE show a significant increase, especially on day 25, with a value of 0.40.

66The Washing Machine follows the same trend, with values of CEP showing a decrease relative to the sum of loads scenario, with a slight increase of OE and a very significant rise in O z . Notably, on day 24, this appliance had only two watts to be predicted, resulting in an abnormally large value of O z .

67The Dishwasher was less impacted by the scenario settings and presented values of CEP in the range of 0.64 to 0.78. This comes with little overestimation, although higher O z is reported.

68The Television Site, one of the most problematic in the previous scenario, continues to underperform. This is shown by a very low value of CEP, coupled with very high values of O z .

69The Microwave, like Television Site, reflects drastic changes in the scenario. It reports lower CEP and higher OE and O z , especially on the days 22 and 25.

70While the Kettle decreased the performance with respect to the CEP metric, the results it still acceptable and show a minimal increase of OE. However, O z is now considerably higher. Overall this is the best performing appliance using the MSE loss.

4) PINBALL: AGGREGATE CONSUMPTION

71Against the aggregate consumption, the pinball quantile loss function remains a solid alternative to the standard MSE loss.

72The results for the Fridge-Freezer remain reasonably high, with CEP values of 0.75 to 0.88. The overestimation, however, increased as well. The values of OE roughly follow the same increase as in the MSE case.

73The Washing Machine is an average appliance, with a wide range of CEP values. One key advantage against the MSE loss, however, is that on day 24, there was no consumption predicted -more in line with the ground-truth value of 2 Watts.

74The Dishwasher yields high values of CEP in this scenario. Yet, this comes with a caveat -higher OE and O z as well.

75The Television Site continues to display poor values of CEP. The notable exception is on day 24 when the quantile 0.95 was selected. This results in a very high value for CEP. Yet, this increase arrives at the cost of an increase of OE, and O z . VOLUME 8, 2020 The Microwave reports low values of CEP, as well as high values of OE and O z . An interesting result was the selection of the 0.75 quantile over the entire week, suggesting this quantile may be very well suited for this appliance in particular.

76The Kettle is the best performing appliance in this scenario utilizing the pinball quantile loss. It reports consistent values of CEP (≥ 0.88), as well as minimal increases in the OE, and O z metrics.

B. BENCHMARKS

77Two different benchmarks are provided. The first compares the overall performance of the four disaggregation architectures, whereas the second compares the performance of the loss functions.

78Regarding the former, the median of the best distances over the testing week is computed for each appliance. This is done for each scenario, for a total of 12 comparisons per architecture (i.e., six appliances and two loss functions).

79As for the latter, the distances between the best PB and the MSE were compared. This was done for each scenario, for a total of 42 comparisons (i.e., six appliances across seven days). In case of ties, i.e., the same distance between the PB and MSE, this information is labelled as such.

1) ARCHITECTURES: PROPOSED VS. OTHERS

80The performances of the four networks architectures evaluated in this work are presented in Tables 7 and 8. For each appliance, the loss function with the shortest distance across the four architectures is shown on a grey background. The overall best loss function is highlighted in bold.

81Overall, the results show the superior performance of the proposed architecture when using the PB loss function. In fact, out of 48 comparisons (6 appliances x 4 networks x 2 scenarios), it shows better performance on 45 occasions (93.75%). Furthermore, it is important to remark that on the other three circumstances, the winning architecture is also guided by the PB loss function. Examining the average distance of the appliances in each network, it can be observed that in both scenarios, the most effective networks are the proposed one and its single branch version, independently of the employed loss function.

82Another relevant aspect of these two networks is that they are capable of learning all of the appliances. This does not happen on the other two alternatives. More precisely, the Win-dowGRU did not manage to learn the Microwave independently of the loss function and the disaggregation scenario. Furthermore, this architecture also did not manage to learn a representation for the Kettle in the aggregated scenario with the PB loss. As for the seq2point architecture, it did not manage to disaggregate the microwave when using the PB loss in both disaggregation scenarios.

2) LOSS FUNCTIONS: PB VS. MSE

83To further understand the differences in performance between the PB and the MSE, Figure 3 shows the distribution of the winning across the four networks in the two studied scenarios. Note that each bar represents 41 comparisons, resulting from six appliances and seven days.

84As it can be observed there is a prevalence of wins for the PB loss across all the networks. However, the difference is not so evident in the seq2point and WindowGRU architectures. This happens mostly due to the poor performance of the PB loss function concerning the Kettle and the Television on the WindowGRU, and the Microwave on the seq2point.

85Examining the distribution of the losses in more detail, it is shown that on the sum of loads scenario, the MSE loss achieved zero wins in the proposed network, nine on the single branch version, 11 on the seq2point, and seven on the WindowGRU. On the aggregate scenario, the MSE achieved two wins on the proposed network, ten on the single branch version, ten on the seq2point, and 14 on the WindowGRU. There are also two ties in the seq2point, and seven on the WindowGRU, in both scenarios.

86Regarding the distribution of the winning pinball loss quantiles, the most prominent one is the 0.75, with 46% of the wins in the sum of loads, and 55% on the real aggregate scenario. Another prominent quantile is 0.5. However, this is only true in the artificial aggregate scenario, where it wins 26% of the time.

87On the other extreme are the smaller quantiles, 0.05 and 0.25, with less than 5% of wins independently of the scenario. Finally, it is also noticeable the presence of the 0.95 quantile across the four networks in the real-aggregated scenario (10% of wins), contrasting the artificial aggregate scenario where the 0.95 quantile only wins in one occasion in the seq2point architecture.

VI. DISCUSSION

88Overall, the results presented in this paper show the superior performance of the proposed network, in particular of the pinball guided version that achieved nine wins out of 12 in the benchmarks.

89Our results also show that despite much superior performance of the proposed architecture guided by the PB loss, both the MSE and PB loss functions perform adequately against the sum of loads. Yet, the same does not hold against the aggregated consumption signal that shows noticeable losses in performance.

90A noticeable appliance that suffers from the change in scenario is the Fridge-Freezer that sees increases in the distance to the perfect score from less than 0.09 to over 0.4 across the four networks when guided by the PB loss function (from 0.11 to 0.62 in the MSE). Another appliance that suffered greatly was the Dishwasher, with the median distance to perfect score going from as little as 0.04 up to 0.35 when guided by the PB (0.12 to 0.56 in the MSE).

91Interestingly, the Kettle is the only appliance that has comparable performances in the two scenarios (note that the WindowGRU does not learn the Kettle in the PB guided version). A possible explanation for this result is much higher instantaneous consumption of this appliance when compared to the others, which makes it less susceptible to the increase in power in the real aggregate scenario.

92Concerning loss functions, the results show that the PB loss function is very competitive independently of the deep network architecture. Overall, the PB loss is the winner in about 80% of the comparisons. Again here, there are some differences between the two scenarios. The PB wins 84% of the cases in the sum of loads and 79% in the real aggregate. Another noticeable difference is the fact that the 0.5 quantile is only predominant in the artificial aggregate scenario. Instead, in the real aggregate scenario, going for higher quantiles (in this case, 0.75 and 0.95) will yield superior performances.

93On the other hand, smaller quantiles (0.05 and 0.25) have a meager number of wins independently of the scenario. These quantiles only win when the appliances are not consuming any energy or are consuming very little. For example, in the proposed architecture, the 0.25 quantile wins on the three days that the washing machine does not consume any power.

94Ultimately, higher quantiles can be considered as a more liberal approach to power disaggregation, whereas low quantiles are more conservative in this regard. With the pinball loss formulation, if the predicted values are much higher than the ground-truth, bigger quantiles will penalize less the error (I.e., incentives overestimation). The opposite is also true. I.e., when the ground-truth values are higher than the predictions, lower quantile values will provide lesser penalties in regards to the loss (i.e., incentives underestimation). Thus, to consider all the options, it is fundamental to have quantiles across the entire range of values. In fact, our results seem to suggest that quantiles should be selected between 0.25 and 0.95 to have the best performance.

95To conclude, it is also evident from our results that evaluating the performance of NILM solutions in the sum of loads will yield overly optimistic results. Furthermore, the performance in the ''denoised'' scenario will likely be very far from that obtained when testing in the real-world scenario, which will ultimately make benchmarks less meaningful. This result is in line with the findings from [42] that stress the need to avoid evaluations on the sum of loads instead of the real aggregated data.

VII. CONCLUSION AND FUTURE WORK DIRECTIONS

96This paper proposes a deep neural network architecture, an alternative loss function to the NILM problem, and a set of metrics for NILM performance evaluation.

97Overall, our results show that the proposed network, when guided by the PB loss function, yields disaggregation performance. Furthermore, the benchmark results also show that the PB loss function can increase the performance of two stateof-the-art algorithms implemented in the latest release of NILM Toolkit. Ultimately, it is clear the PB loss function has its room in NILM research, and therefore should be further explored by this community.

98Furthermore, a great deal of the NILM problem lies in the uncertainty and constant variation associated with the data and the respective usage patterns. Thus, we argue that given the flexibility of the PB quantile loss function, that is, the ability to specify the τ value in regards to the desired pattern makes it so that it has the edge over other conventional approaches.

99While the proposed network performs reasonably well in most cases, we acknowledge that it may be further optimized and tuned for increased performance. One immediate improvement would be concerning the temporal processing by tuning the timesteps for each appliance type (or category). In terms of changes to the architecture, another possibility would be to improve the feature extraction step, by making use of auto-encoders [46].

100Concerning the loss functions, we report superior results using the pinball quantile loss on both scenarios. Yet, in the current work, only a limited number of quantile values were explored. Consequently, future work should investigate the possibility of finding the recommended quantiles for each appliance type or category. This, of course, should be performed across multiple datasets such that it is possible to generalize the findings.

101This work also proposes a set of metrics for assessing the NILM performance concerning energy estimation. Altogether, these metrics contribute to the interpretability of the results since they can be combined to provide different insights into the results. Potential uses include highlighting faults in the pipeline, and finding opportunities to fine-tune the algorithms based on the application needs. For example, in a scenario where over-estimation is a problem, the algorithm should be modified such that the OE metric reports lower values even if the CEP is penalized.

102Yet, one limitation of the CEP metric is that it gives the same importance to the three components. Thus, future work should also explore the definition of weighted versions of this metric.

103Another limitation of CEP is the fact that it only reports the performance concerning the success rate. As such, proper conclusions must take into account other metrics such as OE and O z . Future work regarding the evaluation of the metric suite lies in providing feedback in a more summarised fashion. Consequently, future work with this respect should look at expanding this metric such that it is capable of reporting by itself the most important trade-offs.

104During this work, some issues with the data were identified, which may have negatively affected the performance of the proposed networks. These included temporal shifts and differences in power consumption between aggregated and ground-truth data. For example, it was identified that in some portions of the dataset, the Fridge-Freezer has a consumption of 80 Watts in the ground-truth and 70 Watts in the aggregated signal. Ultimately, this may help explain the consistent over-estimation of the fridge in the second evaluation scenario.

APPENDIX: SUPPLEMENTARY MATERIAL

105For replication purposes, we are releasing the individual results obtained in the different models trained and tested in this work. The results of the benchmarks that were conducted across the four architectures are also provided. The data is made available through the Open Science Framework under https://osf.io/x6qz7/ (DOI: 10.17605/OSF.IO/X6QZ7).

참고문헌 50건

  1. Nonintrusive load monitoring (NILM) performance evaluation Energy Efficiency · Springer Science+Business Media · 2014 10.1007/s12053-014-9306-2
  2. Convolutional, Long Short-Term Memory, fully connected Deep Neural Networks 2015 10.1109/icassp.2015.7178838
  3. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1502.03167
  4. Object Recognition with Gradient-Based Learning Lecture notes in computer science · Springer Science+Business Media · 1999 10.1007/3-540-46805-6_19
  5. The UK-DALE dataset, domestic appliance-level electricity demand and whole-house demand from five UK homes Scientific Data · Nature Portfolio · 2015 10.1038/sdata.2015.7
  6. PLAID: a public dataset of high-resoultion electrical appliance measurements for load identification research 2014 10.1145/2674061.2675032
  7. Extracting and composing robust features with denoising autoencoders 2008 10.1145/1390156.1390294
  8. Estimating conditional quantiles with the help of the pinball loss Bernoulli · Chapman and Hall London · 2011 10.3150/10-bej267
  9. Long Short-Term Memory Neural Computation · The MIT Press · 1997 10.1162/neco.1997.9.8.1735
  10. Event detection for Non Intrusive load monitoring 2012 10.1109/iecon.2012.6389367
  11. Dropout: a simple way to prevent neural networks from overfitting 2014
  12. Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position Biological Cybernetics · Springer Science+Business Media · 1980 10.1007/bf00344251
  13. Nonintrusive appliance load monitoring Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1992 10.1109/5.192069
  14. Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation 2014 10.3115/v1/d14-1179
  15. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  16. Probabilistic energy forecasting: Global Energy Forecasting Competition 2014 and beyond International Journal of Forecasting · Elsevier BV · 2016 10.1016/j.ijforecast.2016.02.001
  17. TensorFlow: a system for large-scale machine learning Operating Systems Design and Implementation · 2016 10.5555/3026877.3026899
  18. Electricity, water, and natural gas consumption of a residential house in Canada from 2012 to 2014 Scientific Data · Nature Portfolio · 2016 10.1038/sdata.2016.37
  19. RETRACTED: A review disaggregation method in Non-intrusive Appliance Load Monitoring Renewable and Sustainable Energy Reviews · Elsevier BV · 2016 10.1016/j.rser.2016.07.009
  20. WaveNet: A Generative Model for Raw Audio arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1609.03499
  21. Xception: Deep Learning with Depthwise Separable Convolutions 2017 10.1109/cvpr.2017.195
  22. An electrical load measurements dataset of United Kingdom households from a two-year longitudinal study Scientific Data · Nature Portfolio · 2017 10.1038/sdata.2016.122
  23. Sequence-to-Point Learning With Neural Networks for Non-Intrusive Load Monitoring Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2018 10.1609/aaai.v32i1.11873
  24. Hardware and software platforms to deploy and evaluate non-intrusive load monitoring systems 2016
  25. Nonintrusive Load Monitoring Based on Advanced Deep Learning and Novel Signature Computational Intelligence and Neuroscience · Hindawi Publishing Corporation · 2017 10.1155/2017/4216281
  26. Data Analytics for Energy Disaggregation: Methods and Applications Elsevier eBooks · Elsevier BV · 2017 10.1016/b978-0-12-811968-6.00017-6
  27. Machine learning approaches for non-intrusive load monitoring: from qualitative to quantitative comparation Artificial Intelligence Review · Springer Science+Business Media · 2018 10.1007/s10462-018-9613-7
  28. A comparison of performance metrics for event classification in Non-Intrusive Load Monitoring 2017 10.1109/smartgridcomm.2017.8340682
  29. Performance evaluation in non‐intrusive load monitoring: Datasets, metrics, and tools—A review Wiley Interdisciplinary Reviews Data Mining and Knowledge Discovery · Wiley · 2018 10.1002/widm.1265
  30. Sliding Window Approach for Online Energy Disaggregation Using Artificial Neural Networks 2018 10.1145/3200947.3201011
  31. Probabilistic individual load forecasting using pinball loss guided LSTM Applied Energy · Elsevier BV · 2018 10.1016/j.apenergy.2018.10.078
  32. Transferability of Neural Network Approaches for Low-rate Energy Disaggregation ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · 2019 10.1109/icassp.2019.8682486
  33. GANSynth: Adversarial Neural Audio Synthesis arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1902.08710
  34. Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
  35. Med3D: Transfer Learning for 3D Medical Image Analysis arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1904.00625
  36. Deep Neural Networks for Appliance Transient Classification ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · 2019 10.1109/icassp.2019.8682658
  37. Concatenate Convolutional Neural Networks for Non-Intrusive Load Monitoring across Complex Background Energies · Multidisciplinary Digital Publishing Institute · 2019 10.3390/en12081572
  38. A Practical Solution for Non-Intrusive Type II Load Monitoring Based on Deep Learning and Post-Processing IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2019 10.1109/tsg.2019.2918330
  39. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift arXiv (Cornell University) · Cornell University · 2024 10.57702/o9raffed
  40. WaveNet: A Generative Model for Raw Audio arXiv (Cornell University) · Cornell University · 2016
  41. Deep Residual Learning for Image Recognition arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1512.03385
  42. Wavenilm: A Causal Neural Network for Power Disaggregation from the Complex Power Signal ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · 2019 10.1109/icassp.2019.8682543
  43. TensorFlow: A system for large-scale machine learning arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1605.08695
  44. Sequence-to-point learning with neural networks for nonintrusive load monitoring arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1612.09106
  45. Densely Connected Convolutional Networks 2017 10.1109/cvpr.2017.243
  46. Towards reproducible state-of-the-art energy disaggregation 2019 10.1145/3360322.3360844
  47. Electricity Consumption Data Sets 2019 10.1145/3360322.3360867
  48. Keras: The Python Deep Learning library Astrophysics Source Code Library · 2018
  49. Towards Comparability in Non-Intrusive Load Monitoring: On Data and Performance Evaluation 2020 10.1109/isgt45199.2020.9087706
  50. Hardware and software platforms to deploy and evaluate non-intrusive load monitoring systems Portuguese National Funding Agency for Science, Research and Technology (RCAAP Project by FCT) · 2016