Energy optimization plays a vital role in decreasing the carbon footprint of residential buildings. In this paper, we present a prediction model of indoor temperature in residential buildings in three different case studies in different towns in Sweden. To predict the indoor temperature accurately, a dataset based on several years of data collection (up to 7 years) has been used. This paper applies both the traditional LSTM model as well as the more recent transformer model. The latter has been used because of its ability to perform a mechanism of self-attention that shows particular promise in multivariate sensor data. In addition to these algorithms, the data set is also modified based on contextual information and compared against an approach where no contextual information is used. Contextual information in this case takes into account the physical location of specific apartment units within the full residence and builds individual models based on the location of the unit. The results demonstrate that transformers are better suited for task of prediction, and that transformers combined with contextual information, provide a suitable approach for energy consumption prediction.
This work has been supported by the Industrial Graduate School Collaborative AI & Robotics funded by the Swedish Knowledge Foundation Dnr:20190128.