Sequence-to-Point Learning With Neural Networks for Non-Intrusive Load Monitoring

Energy disaggregation (a.k.a nonintrusive load monitoring, NILM), a single-channel blind source separation problem, aims to decompose the mains which records the whole house electricity consumption into appliance-wise readings. This problem is difficult because it is inherently unidentifiable. Recent approaches have shown that the identifiability problem could be reduced by introducing domain knowledge into the model. Deep neural networks have been shown to be a promising approach for these problems, but sliding windows are necessary to handle the long sequences which arise in signal processing problems, which raises issues about how to combine predictions from different sliding windows. In this paper, we propose sequence-to-point learning, where the input is a window of the mains and the output is a single point of the target appliance. We use convolutional neural networks to train the model. Interestingly, we systematically show that the convolutional neural networks can inherently learn the signatures of the target appliances, which are automatically added into the model to reduce the identifiability problem. We applied the proposed neural network approaches to real-world household energy data, and show that the methods achieve state-of-the-art performance, improving two standard error measures by 84% and 92%. Energy disaggregation (Hart 1992) is a single-channel blind source separation (BSS) problem that aims to decompose the whole energy consumption of a dwelling into the energy usage of individual appliances. The purpose is to help households reduce their energy consumption by helping them to understand what is causing them to use energy, and it has been shown that disaggregated information can help householders reduce energy consumption by as much as 5 15% (Fischer 2008). However, current electricity meters can only report the whole-home consumption data. This triggers the demand of machine-learning tools to infer the appliancespecific consumption. Energy disaggregation is unidentifiable and thus a difficult prediction problem because it is a single-channel BSS problem; we want to extract more than one source from a single observation. Additionally, there are a large number of sources of uncertainty in the prediction problem, including noise in the data, lack of knowledge of the true power Copyright c 2018, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved. usage for every appliance in a given household, multiple devices exhibiting similar power consumption, and simultaneous switching on/off of multiple devices. Therefore energy disaggregation has been an active area for the application of artificial intelligence and machine learning techniques. Popular approaches have been based on factorial hidden Markov models (FHMM) (Kolter and Jaakkola 2012; Parson et al. 2012; Zhong, Goddard, and Sutton 2013; 2014; 2015; Lange and Bergés 2016) and signal processing methods (Pattem 2012; Zhao, Stankovic, and Stankovic 2015; 2016; Batra, Singh, and Whitehouse 2016; Tabatabaei, Dick, and Xu 2017). Recently, it has been shown that single-channel BSS could be modelled by using sequence-to-sequence (seq2seq) learning with neural networks (Grais, Sen, and Erdogan 2014; Huang et al. 2014; Du et al. 2016). In particular, it has been applied to energy disaggregation (Kelly and Knottenbelt 2015a) —both convolutional (CNN) and recurrent neural networks (RNN) were employed. The idea of sequenceto-sequence learning is to train a deep network to map between an input sequence, such as the mains power readings in the NILM problem, and an output sequence, such as the power readings of a single appliance. A difficulty immediately arises when applying seq2seq in signal processing applications such as BSS. In these applications, the input and output sequences can be long, for example, in one of our data sets, the input and output sequences are 14,400 time steps. Such long sequences can make training both computationally difficult, both because of memory limitations in current graphics processing units (GPUs) and, with RNNs, because of the vanishing gradient problem. A common way to avoid these problems is a sliding window approach, that is, training the network to map a window of the input signal to the corresponding window of the output signal. However, this approach has several difficulties, in that each element of the output signal is predicted many times, once for each sliding window; an average of multiple predictions is naturally used, which consequently smooths the edges. Further, we expect that some of the sliding windows will provide a better prediction of a single element than others, particularly those windows where the element is near the midpoint of the window rather than the edges, so that the network can make use of all nearby regions of the input signal, past and future. But a simple sliding window approach cannot exploit this information. In this paper, we propose a different architecture called sequence-to-point learning (seq2point) for single-channel BSS. This uses a sliding window approach, but given a window of the input sequence, the network is trained to predict the output signal only at the midpoint of the window. This has the effect of making the prediction problem easier on the network: rather than needing to predict in total W (T W ) outputs as in the seq2seq method, where T is the length of the input signal and W the size of the sliding window, the seq2point method predicts only T outputs. This allows the neural network to focus its representational power on the midpoint of the window, rather than on the more difficult outputs on the edges, hopefully yielding more accurate predictions. We provide both an analytical and empirical analysis of the methods, showing that seq2point has a tighter approximation to the target distribution than seq2seq learning. On two different real-world NILM data sets, UK-DALE (Kelly and Knottenbelt 2015b) and REDD (Kolter and Johnson 2011), we find that sequence-to-point learning performs dramatically better than previous work, with as much as 83% reduction in error. Finally, to have confidence in the models, it is vital to interpret the model predictions and understand what information the neural networks for NILM are relying on to make their predictions. By visualizing the feature maps learned by our networks, we found that our networks automatically extract useful features of the input signal, such as change points, and typical usage durations and power levels of appliances. Interestingly, these signatures have been commonly incorporated into handcrafted features and architectures for the NILM problem (Kolter and Jaakkola 2012; Parson et al. 2012; Pattem 2012; Zhao, Stankovic, and Stankovic 2015; Zhong, Goddard, and Sutton 2014; 2015; Batra, Singh, and Whitehouse 2016; Tabatabaei, Dick, and Xu 2017), but in our work these features are learned automatically. Energy disaggregation The goal of energy disaggregation is to recover the energy consumption of individual appliances from the mains signal, which measures the total electricity consumption. Suppose we have observed the mains Y which indicates the total power in Watts in a household, where Y = (y1, y2, ..., yT ) and yt 2 R+. Typically there are a number of appliances in the same house. For each appliance, its reading is denoted by Xi = (xi1, xi2, ..., xiT ), where xit 2 R+. At each time step, yt is assumed to be the sum of the readings of individual appliances, possibly plus a Gaussian noise factor with zero mean and variance 2 such that yt = P i xit + ✏t. Often we are only interested in I appliances, i.e., the ones that use the most energy; others will be regarded as an unknown factor U = (u1, · · · , uT ). The model could then be represented as yt = PI i=1 xit + ut + ✏t. The additive factorial hidden Markov model (AFHMM) is a natural approach to represent this model (Kolter and Jaakkola 2012; Pattem 2012; Zhong, Goddard, and Sutton 2014). Various inference algorithms could then be employed to infer the appliance signals {Xi} (Kolter and Jaakkola 2012; Zhong, Goddard, and Sutton 2014; Shaloudegi et al. 2016). It is well known that the problem is still unidentifiable. To tackle the identifiability problem, various approaches have been proposed by incorporating domain knowledge into the model. For example, local information, e.g., appliance power levels, ON-OFF state changes, and durations, has been incorporated into the model (Kolter and Jaakkola 2012; Parson et al. 2012; Pattem 2012; Zhao, Stankovic, and Stankovic 2015; Tabatabaei, Dick, and Xu 2017); others have incorporated global information, e.g., total number of cycles and total energy consumption (Zhong, Goddard, and Sutton 2014; 2015; Batra, Singh, and Whitehouse 2016). However, the domain knowledge required by these methods needs to be extracted manually, such as via handcrafted features based on the observation data, which makes the methods more difficult to use. Instead, we propose to employ neural networks to extract those features automatically during learning. Sequence-to-sequence learning Kelly and Knottenbelt [2015a] have applied deep learning methods to NILM. They propose several different architectures, which learn a nonlinear regression between a sequence of the mains readings and a sequence of appliance readings with the same time stamps. We will refer to this as a sequence-to-sequence approach. Although RNN architectures are most commonly used in sequence-to-sequence learning for text (Sutskever, Vinyals, and Le 2014), for NILM Kelly and Knottenbelt [2015a] employ both CNNs and RNNs. Similar sequence-to-sequence neural network approaches have been applied to single-channel BSS problems in audio and speech (Grais, Sen, and Erdogan 2014; Huang et al. 2014; Du et al. 2016). Sequence-to-sequence architectures define a neural network Fs that maps sliding windows Yt:t+W 1 of the input mains power to corresponding