Next Article in Journal
Web Crippling Behaviour of Cold-Formed High Strength Steel Unlipped Channel Beams
Previous Article in Journal
Analyzing the Climate Change Potential of Residential Steel Buildings in New Zealand and Their Alignment in Meeting the 2050 Paris Agreement Targets
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Data-Driven Approach to Forecast Heat Consumption of Buildings with High-Priority Weather Data

by
Hessam Golmohamadi
Department of Computer Science, Aalborg University, 9220 Aalborg, Denmark
Buildings 2022, 12(3), 289; https://doi.org/10.3390/buildings12030289
Submission received: 1 February 2022 / Revised: 22 February 2022 / Accepted: 1 March 2022 / Published: 2 March 2022
(This article belongs to the Section Building Energy, Physics, Environment, and Systems)

Abstract

:
By increasing the penetration of renewable energies in district heating (DH), the intermittency of the supply-side increases for heating service providers. Therefore, forecasting the energy consumption of buildings is needed in order to hedge against renewable power intermittency. This paper investigates the application of data-driven approaches to forecast the heat consumption of buildings in the winter, using high-priority weather data. The residential buildings are connected to mixing loops of DH to supply space heating and hot water. The heating consumption of the building is calculated using sensor data, including inflow/outflow temperature and mass flow. Principal component analysis (PCA) is applied to determine the key weather data affecting heat energy consumption. Then, the study compares the competences of artificial neural networks (ANNs), linear regression models (LRM), and k-nearest neighbors (k-NN) in forecasting heat consumption, using informative data. Based on the PCA analysis, ambient temperature and solar irradiation are shown to be the highest priority weather data, contributing to 40.6% and 29.2% of heat energy forecasting, respectively. Furthermore, the ANN exhibits a forecasting accuracy of more than 50% higher than LRM and k-NN.

1. Introduction

During the last decade, the penetration of renewable energies has increased considerably in power systems worldwide. Therefore, the supply-side encounters higher power intermittency. In return, demand-side flexibility is a practical solution to counterbalance renewable power fluctuations. Many studies have been conducted recently on the proposal to integrate the flexibility potentials of residential [1], industrial [2], and agricultural [3] demand sectors into energy systems. Furthermore, many countries have decided to retire conventional fossil fuel vehicles and replace them with electric vehicles (EV). As a result, private and public parking lots for EVs are addressed as the main source of demand flexibility to provide local and global power system support [4].
In the residential sector, the penetration of renewable energies is increasing in district heating (DH) to decarbonize the heating systems. In 2018, Sweden, Denmark, and Austria experienced approximately 70%, 57%, and 48% renewable energy penetration in the DH, respectively [5]. Due to the stochasticity of renewable energies, e.g., wind and solar, the intermittency of heat supply increases in terms of both energy availability and price. Therefore, heat service providers (HSP) investigate the technical approaches to forecast the energy consumption of the contracted buildings, with high accuracy. Therefore, the HSPs can optimize economic energy procurement strategies in the future and extract the flexibility potentials of the buildings in response to renewable power availability [6].
In the literature, the data-driven approaches to forecast the energy consumption of buildings are classified into the following categories [7]:
  • Artificial Neural Networks (ANNs);
  • Support Vector Machine (SVM);
  • Statistical Regression Models (SRM);
  • Decision Tree Models (DTM);
  • Genetic Algorithm (GA).
First, the research study [8] presented a short-term heat forecast of buildings, using data-driven approaches, including ANNs, SVM, and GA. In [9], a convolutional neural network is suggested as a means of forecasting the heating consumption of smart district heating systems from 72 to 12 h ahead. A novel approach based on hybrid spatial-temporal attention long short-term memory (STALSTM) is proposed in [10] to forecast the mid-term heat consumption of smart district heating systems. In [11], the ANN is addressed to forecast the energy consumption of smart buildings, including heating and cooling energies, from 24 h to 1 h ahead. The stacking ensemble learning approach is applied to forecast the energy consumption of integrated energy systems, including electricity, heating, and cooling [12]. Several machine-learning algorithms, e.g., ANNs, SVRM, and SRM, are discussed in the research study [13] to forecast the heat consumption of DH at 48 hours’ notice. In [14], a novel stacking model is proposed to predict the energy consumption of buildings. The simulation results exhibit better competency compared to ANNs, SVM, and DTM. The heat demand forecasting of DH is studied by three machine-learning algorithms, i.e., ridge regression, autoregression with exogenous input, and deep ANNs [15]. The simulation results confirm that the ANNs achieve the best accuracy for all case studies. A novel data-driven model, the so-called Q-algorithm, is suggested for the prediction of heating demand in 42 buildings supplied by a DH network in Tartu, Estonia [16].
In contrast to the previous studies on short-term forecasting, the research study [17] provides long-term heat forecasting, i.e., one year, for a significant number of Danish single-family houses, using hierarchical archetype modeling. In the US, a research study has examined nine machine-learning algorithms and three heuristic approaches to forecast the heat consumption of buildings in the short-term from 24 h to 1 h ahead [18]. The results reveal that the long short-term memory (LSTM) and extreme gradient boost (XGBoost) show the highest accuracy of forecasting for 1 h and 24 h ahead, respectively. To provide a general insight, Table 1 shows the key characteristics of the reviewed studies. Based on the table, mean absolute error (MAE), root mean square error (RMSE), normalized mean bias error (NMBE), and mean absolute percentage error (MAPE) are addressed in the literature to examine the accuracy of forecasting methods. These criteria are used in this paper to investigate the competency and proficiency of the suggested approach.
In addition to the machine-learning algorithms, the sets of input data play a key role in the accuracy of the heat-forecasting approaches. Generally, two sets of input data affect the thermal demand of buildings as follows:
(1)
Weather data, i.e., ambient temperature, solar irradiation, wind speed, and humidity [19];
(2)
Residents’ behavior, i.e., domestic hot water (DHW) consumption, indoor temperature, occupancy pattern, and waste heat of household appliances [20].
Note that the heat consumptions of buildings comprises space heating and DHW. If the heat-forecasting approach is conducted for the space heating only, the share of residents’ behavior decreases [21]. In contrast, for residential buildings supplied by a mixing loop of DH, the total heat consumption includes space heating and DHW consumption [22]. In this way, the residents’ behavior, e.g., DHW consumption for showers, plays a key role in the energy estimation approach.
Based on the literature, to the best of the authors’ knowledge, most research studies are concentrated on short-term heat forecasting. Barely any studies are found to discuss long-term heat forecasting of residential buildings. Meanwhile, the major part of studies forecasts the heat consumption of space heating only. To narrow these gaps, this paper proposes machine-learning-based approaches as a means of forecasting the heat consumption of residential buildings connected to a mixing loop, which supplies both the space heating and DHW consumption, without accessing the input data of residents’ behavior. Besides, it determines the major factors that affect weather data by addressing the principal component analysis (PCA) to avoid training the algorithms with less-effective data. The main contributions of the study can be stated as follows:
  • Classifying the most important weather data affecting the heat consumption of residential buildings supplied by mixing loops of district heating;
  • Mid-term forecasting of heat consumption of buildings with data scarcity, i.e., with the high-priority weather data and without accessing the residents’ behavior;
  • Investigating the impact of weather uncertainties, in terms of envelope bounds, on the forecasting accuracy of machine-learning approaches.
The rest of the paper is organized as follows: In Section 2, first, the problem methodology is described qualitatively. Then, the mathematical structure and algorithms are presented. In Section 3, the simulation results are presented and discussed. In Section 4, the future works and the role of DH are briefly discussed in future Power-to-X structures. Finally, Section 5 concludes the current study.

2. Problem Formulation

In this section, the proposed approach to forecasting the energy consumption of residential buildings is explained. The study aims to forecast the energy injected into buildings through a mixing loop of DH. The energy drawn from the mixing loop is used for space heating and DHW consumption.
Figure 1 shows a schematic diagram of a detached house supplied by a mixing loop. As the diagram reveals, the space heating energy is mainly dependent on weather variables, e.g., ambient temperature, solar irradiation, wind speed, humidity, and residents’ behavior, e.g., comfort temperature, occupancy pattern, and heat waste of household appliances. Furthermore, the DHW consumption is normally a function of some residents’ behavior, e.g., showering, cooking/dishwashing, and laundering.
The present methodology aims to forecast the future energy consumption of buildings without needing full access to the affecting factors. Therefore, informative input data are recorded by measurement sensors to train machine-learning algorithms.

2.1. General Framework

The suggested approach is comprised of four stages as follows:
Data Measurement by the Installed Sensors: In the first stage, the data from the mixing loop and DH are recorded by the installed sensors for a specific period t   ϵ   [ τ i , τ i + T ] . Let us assume the HSP supplies j   ϵ   [ 1 , J ] residential buildings. The measured data are classified into weather and energy data. The weather data includes ambient temperature θ a j , solar irradiation π s j , wind speed ϑ w j , and humidity ρ h j . The energy data comprises forward water temperature θ f j , return water temperature θ r j , forward mass flow μ f j , and return mass flow μ r j . Therefore, the complete set of measured data can be stated as follows:
Ψ = { θ a j ( t ) , π s j ( t ) , ν w j ( t ) , ρ h j ( t ) , θ f j ( t ) , θ r j ( t ) , μ f j ( t ) , μ r j ( t ) , t [ τ i , τ i + T ] & j [ 1 , J ] }
Data Priority Sorting: In this stage, the sensor data are sorted to find the top priorities. It means that the sensor data are evaluated to find the most informative variables affecting the energy consumption of the buildings. Regarding the weather data, the PCA is run to find the most effective variables. In the case of energy data, the lowest variables are measured to calculate the energy consumption of the buildings. Therefore, no data dimension reduction is conducted on the energy data. The reduced set of measured data are formulated as follows:
Ψ ¯ = { Π ¯ j , t W , Π ¯ j , t E , t [ τ i , τ i + T ] & j [ 1 , J ] }
where Π ¯ j , t W and Π ¯ j , t E are the reduced set of weather and energy data, respectively. Note that the mathematical equation to calculate the energy consumption of the buildings using the sensor data is expressed as follows:
π h j ( t ) = η w a t e r × μ f * j ( t ) ( θ f * j ( t ) θ r * j ( t + τ c y c l e ) )
where π h j is the heat consumption of the building, η w a t e r is the specific heat capacity of the heat carrier, i.e., water. Note that the asterisk symbols for the mass flow and temperature denote the data values after the mixing loop. Meanwhile, due to the heat carrier circulation in the buildings, the return temperature is measured with τ c y c l e delay time. The parameter shows the time the heat carrier takes to complete one cycle in the heating pipes of the building. At the end of this stage, the primary data set Ψ is transformed into the reduced data set Ψ ¯ with lower and informative data.
Energy Model Estimation: In this stage, the set of reduced data Ψ ¯ is processed by machine-learning algorithms to build a mapping function for the energy consumption of the buildings. The mapping function estimates the energy consumption model of the building, i.e., Π ¯ j , t E , in response to the reduced weather data Π ¯ j , t W . The estimation model is expressed as follows:
π h j , e ( t ) = f ( Π ¯ j , t E | Π ¯ j , t W ) + ε e r r o r e , t [ τ i , τ i + T ] & j [ 1 , J ]
where f denotes the estimation function applied by machine-learning algorithms and ε e r r o r e is the estimation error between the measured π h j and estimated energy π h j , e . In this study, three algorithms, including ANN, k-nearest neighbors (k-NN), and linear regression model (LRM), are addressed. Note that the mapping function is built for the training data period.
Future Energy Forecasting: In this stage, the estimation function f is used to forecast the energy consumption of the buildings in the future, i.e., t   ϵ   [ τ i + T , τ i + T + F ] , in response to weather data forecasting. Note that T and F are the duration of training and forecasting periods, respectively. Therefore, they are formulated as follows:
π h j , f ( t ) = f ( Π ¯ j , t W ) + ε e r r o r f , t [ τ i + T , τ i + T + F ] & j [ 1 , J ]
where ε e r r o r f describes the forecasting error.
Uncertainty Characterization: In this stage, uncertain scenarios are generated for future weather data. In order to forecast the energy consumption of the buildings in the previous stage, the future weather data are forecasted. Therefore, deterministic weather data may fail in real applications. To make the approach compatible with the real world, scenario generation schemes are addressed to incorporate plausible weather uncertainties into the forecasted weather data. In this way, two approaches, including stochastic scenarios [23] and envelope bounds [24], are suggested as follows:
Π ¯ j , t W , U = Π ¯ j , t W + ω j , t κ
ω t , j κ = { t [ τ i + T , τ i + T + F ] & j [ 1 , J ] , ( ω j , t κ , p j , t κ ) f p d f ( . ) κ = 1 , , K ω : k = 1 K ω p j , t k = 1 }
ω t , j κ = { t [ τ i + T , τ i + T + F ] & j [ 1 , J ] , ω t , j κ [ α , α + δ κ ] κ = 1 , , K ω : δ κ = κ × | α β | K ω }
Equation (6) describes that the uncertain weather data Π ¯ j , t W , U is the summation of the deterministic weather forecast Π ¯ j , t W and weather scenario ω j , t κ , κ = 1 , , K ω . In Equation (7), the stochastic weather scenarios are generated using different probability distribution functions, (PDF), e.g., Normal and Weibull. Each scenario has an associated probability p j , t κ in which the summation of all probabilities for each time slot is equal to 1. In the second scheme, an uncertain envelope is defined with upper and lower thresholds denoted by α and β, respectively. The whole envelope is portioned into κ subintervals. Then, each subinterval shows the uncertain weather envelope. The former scheme evaluates the stochastic weather uncertainties on energy forecasting. Adversely, the latter investigates the impact of uniform weather uncertainty, in the forms of underestimation and overestimation, on energy forecasting.
Figure 2 provides a general overview of the suggested framework from measuring sensor data to forecasting heat consumption.

2.2. Data Priority Sorting

This section aims to find the key weather data that affect the energy forecasting of residential buildings. Generally, the more data available, the more accurate the forecasting approach will be. The share of some weather data on energy forecasting is relatively low. Therefore, some weather parameters increase the computational burden of the forecasting approach, while the impact on the forecasting accuracy is relatively low. To find the most significant weather parameters, a backward elimination based on PCA is addressed [25]. This approach sorts all the weather variables based on the information they contain. The weather data correspond to small eigenvalues, which have less impact on the heat consumption of the buildings. If such variables are removed from the forecasting approaches, little information will be lost. Therefore, the key weather data with high eigenvalues are selected not only to lower the computational burden of the forecasting approaches but also to decrease the need for sensor installations and measurement. The hybrid PCA + Backward Elimination takes the following actions:
Step (1) Collect all the sensor weather data plus the energy consumption of the building j, calculated by Equation (3), and form matrix Γ with T + 1 rows and z + 1 columns as follows:
Γ ( 1 ) j = [ π h j ( τ i ) θ a j ( τ i ) π s j ( τ i ) ν w j ( τ i ) ρ h j ( τ i ) π h j ( τ i + 1 ) θ a j ( τ i + 1 ) π s j ( τ i + 1 ) ν w j ( τ i + 1 ) ρ h j ( τ i + 1 ) . . . . . . . . . . π h j ( τ i + T ) θ a j ( τ i + T ) π s j ( τ i + T ) ν w j ( τ i + T ) ρ h j ( τ i + T ) ] ( T + 1 ) × ( z + 1 )
Note that z is the number of weather sensor data.
Step (2) Calculate the mean of all columns, m e a n ( Γ j ) , and deduce from the corresponding columns (I is the unit matrix):
Γ ( 2 ) j = [ Γ ( 1 ) j ] ( T + 1 ) × ( z + 1 ) [ I ] ( T + 1 ) × 1 × m e a n ( Γ j ) 1 × ( z + 1 )
Step (3) Form the covariance matrix:
Γ ( 3 ) j = [ C o v ( Γ ( 2 ) j ) ] ( z + 1 ) × ( z + 1 )
Step (4) Calculate the eigenvalues Γ ( 4 ) j , E V a l u e .
Step (5) Sum the diagonal arrays of Γ ( 4 ) j , E V a l u e (scalar value):
Γ ( 5 ) j = S u m D i a g ( Γ ( 4 ) j , E V a l u e )
Step (6) For z = 1:Z, remove column z and replicate steps 2 to 5.
Step (7) Calculate the difference between the scalar value of Γ ( 5 ) j for primary and reduced Γ ( 1 ) j as follows:
Γ ( 6 ) j = Γ ( 5 ) j Γ ( 5 ) j , R e d u c e d
Step (8) Form a matrix whose first column is Γ ( 6 ) j in descending order, and the second column is the associated weather variable z. The highest z weather data show the highest PCA rank. Note that to make the Γ ( 6 ) j values comparable, the weather data are normalized based on the maximum value in the measurement period.

2.3. Energy Model Forecasting

This section aims to forecast the heat energy consumption of the buildings using the processed data in Section 2.1 and Section 2.2 To achieve this aim, three machine-learning algorithms, including ANN, LRM, and k-NN, are addressed.
(1) Artificial Neural Network (ANN): the ANN is a fast, efficient and practical software tool to forecast the future demand of power systems [26], renewable power generation [27], and heat demand of residential buildings. In this study, a multi-layer perceptron (MLP) is used to train the forecasting engine with historical weather and energy variables as input data. The MLP forecasts the energy consumption of the buildings for future time slots in response to stochastic/uncertain estimation of future weather conditions. The ANN is trained and simulated in MATLAB software.
(2) Linear Regression Model (LRM): The LRM is a simple method to find a linear relationship between the input and outputs of a system. In this study, the LRM aims to forecast the future heat consumption of the buildings in response to the weather data. The LRM is trained by the historical energy consumption of the households in R software.
(3) K-Nearest Neighbors (k-NN): The k-NN is a classic, simple, and efficient forecasting method. This method observes the measured data and finds the k-nearest neighbors for future estimation [28]. The forecast values are calculated based on the average of the k-nearest neighbors. In this study, the approach investigates the similarity between the weather variables of historical data and future forecasts. Detecting the nearest neighbors, the future heat consumptions are calculated based on the weighted average of the k-nearest neighbors.

2.4. Error Criteria

In this stage, the mathematical formulations of error criteria are stated. The error indices convey the accuracy of the forecasting approaches. To make the approach comparable with other studies, the error indices are described in terms of energy unit (kW) and percentage (%). The former gives the HSP a general insight into the forecasting accuracy concerning the nominal energy consumption. The latter makes it comparable with the forecasting accuracy of other studies. Then, the error criteria are described as follows:
MAE = i = 1 N | π h , i j , f π h , i j | N
NMBE = i = 1 N π h , i j , f π h , i j N × π h , i j ¯
MAPE = 1 N × i = 1 N | π h , i j , f π h , i j π h , i j |
MBE = i = 1 N π h , i j , f π h , i j N
CVRMSE = 1 π h , i j ¯ × i = 1 N ( π h , i j , f π h , i j ) 2 N
where MAE, NMBE, MBE, and CVRMSE stand for mean absolute error, normalized mean bias error, mean bias error, and coefficient of variation of the root mean squared error, respectively; π h j , f and π h j are forecasted and measured energy data; π h , i j ¯ is the mean of measurement data; and N is the number of measurement data.

3. Numerical Studies

To examine the proficiency of the suggested approaches, real sensor data are used. The sensor data include (1) weather data, i.e., ambient temperature, solar irradiation, wind speed, and humidity, (2) mixing loop data including inflow/outflow temperature and mass flow. Five months’ worth of data from 1 November 2020 to 31 March 2021 is used. Among them, the first three months are used for training, and the next two months are addressed for forecasting. The data correspond to real sensor measurements from Aalborg Living Lab (ALL) in Aalborg, Denmark. The suggested approaches are coded in MATLAB R2019 software and R language using computation hardware with a 2 GHz Intel processor and 16 GB RAM.
First, the PCA is run to determine the most informative weather data. The results of the PCA analysis are stated in Table 2. As the table reveals, the ambient temperature, solar irradiation, wind speed, and humidity are the most informative weather variables in descending order. Among them, temperature and solar power are the highest priority, with around 40.67% and 29.28% impact factors, respectively. It means that if these two weather variables are eliminated from the sensor data, a major part of important data will be lost. Therefore, the two variables are selected as informative weather data to forecast the heat consumption of the buildings.
It is worth mentioning that other weather variables may affect the energy consumption of buildings. These data may include cloud cover and snowfall [29].
Figure 3 describes the weather data, including ambient temperature and solar irradiation, for the 5 months’ study horizon. In the forecasting period, the upper and lower forecasting thresholds are depicted in addition to the nominal forecasting.
Figure 4 describes the forecasting of building heat consumption in response to the nominal informative weather data, i.e., ambient temperature and solar power, from 1 February to 31 March 2021, using the ANN. Based on the graph, the ANN estimates the heat consumption reasonably well. For this reason, the forecasting method tracks the main trend of heat consumption with high accuracy. In contrast, there are some peak periods in the daily heat profile with increased gaps between the measured and forecasted data. To elaborate on the gaps, Figure 5 depicts one-day heat consumption of the building. As can be seen, the heat profile experiences two peak periods, including hours 7–11 and 16–18. The peak periods convey the peaks of DHW for morning and evening showers. The reason is that the suggested approach forecasts heat consumption in response to ambient temperature and solar irradiation. Therefore, the occupancy patterns and DHW data are not available to be captured by the algorithm. Generally, many residents are reluctant to reveal the private data associated with their occupancy patterns. For this reason, energy meter sensors for DHW and occupancy patterns are not installed in most living labs. It shows the importance of the suggested approach to investigate the accuracy of the forecasting approach without needing private data of occupancy patterns.
Figure 6 shows the distribution of MBE and MAE in kW during the forecasting period. The error criteria are compared with the nominal energy consumption of the building as 30 kW. Based on the bar graph, the major error is distributed in the interval [−1 + 1] kW. Besides, the average MAE is less than 1 kW.
Figure 7 splits the error criteria in terms of hourly, daily, and monthly values. Regarding the hourly distribution, the highest error occurs in hours 16–18 when residents are back home after work. The immediate change of occupancy patterns has made the highest error in the forecasting approach. In contrast, the lowest hourly errors are observed in hours 2–3 and 23–24 when residents are asleep and no change is expected in the occupancy patterns.
Based on the daily distribution, Sunday encounters the highest error compared to weekdays. Following a similar pattern, the occupancy pattern at the weekend is different to that on weekdays; therefore, the forecasting approach faces lower accuracy. Meanwhile, the error percentage in March is higher than in February. One reason is that the average temperature in March is higher than in February. Therefore, the temperature in February is much closer to the temperature during the training period, i.e., from November to January.
Table 3 compares the error criteria of the three machine-learning algorithms for the test building. In the analysis, the error parameters are calculated based on both energy and percentage units. As the table reveals, the ANN demonstrates better competence in comparison to LRM and k-NN in all criteria. Comparing LRM and k-NN, the LRM shows higher accuracy in MAE and MAPE. Therefore, the k-NN has lower residuals in MBA and NMBE criteria.
Figure 8 illustrates the impact of weather data uncertainty, i.e., ambient temperature and solar irradiation, on the error criteria. The weather uncertainties are characterized in terms of positive and negative deviation envelopes. The analysis is done for MAE, MAPE, NMBE, and CVRMSE. Based on the graphs, the following issues are observed:
1. The concurrent uncertainties of outdoor temperature and solar power pose an error in the energy estimation of up to 50% higher when compared to single weather uncertainty. For this reason, two different patterns are detected. In some error criteria, e.g., Figure 8d,f, the uncertainties of ambient temperature and solar power cause different error values. In other cases, e.g., Figure 8e,g, the error criteria of both uncertain variables are approximately the same. In both cases, the concurrent uncertainties of temperature and solar power increases the energy forecasting error considerably.
2. In most cases, the ambient temperature uncertainties have a higher impact on the accuracy of energy estimation compared to solar irradiation. This confirms the PCA results in Table 2, conveying the contributions of 40.67% and 29.28% for temperature and solar power, respectively.
3. For a specific error criterion, the negative and positive deviations follow different patterns. In MAPE, the underestimation (i.e., negative deviations) poses higher errors than the overestimation (i.e., the positive deviations). Regarding the CVRMSE, solar power shows a higher impact on the energy estimation in positive deviations. In contrast, barely any change is seen in the impact of solar power for negative deviations.
Figure 9 makes a comparison between the error criteria of the suggested approach and 10 prominent research studies between 2019 and 2022. Therefore, the percentage criteria, including NMBE, MAPE, and CVRMSE, are addressed. In some studies, upper and lower thresholds are presented for error criteria based on different forecasting methods and case studies. Regarding the NMBE, the suggested approach exhibits the best accuracy compared to the other 10 studies. For MAPE, although the other studies present better error values, the obtained criterion is within the standard level. Considering the CVRMSE, the proposed approach shows a higher accuracy than six studies out of ten.

4. Future Works

This study suggested a data-driven approach as a means of forecasting the heat consumption of residential buildings supplied by a mixing loop, using high-priority data. For the sake of energy forecasting, the HSP benefits from the following advantages:
1. Cost-effective operation of the district heating and contracted buildings to turn up/down the heat extraction when the energy price is low/high.
2. Flexible operation of the heating systems to provide demand flexibility for the upstream networks during energy shortage, or when the system reliability is jeopardized due to unforeseen failures.
3. Facilitate the integration of renewables into DH systems to decarbonize cities and suburbs.
Although the abovementioned items are the key points for HSPs, the DH plays a more critical role in future energy system structures. In countries with high renewable power penetration, like Germany and Denmark, the Power-to-X (P2X) structure makes it possible to convert, store and reconvert the surplus renewable power. In this structure, multi-carrier energy systems, e.g., power, gas, and heat, benefit from the economic, reliable, and flexible operation of the P2X. The DH and heating systems are one of the major parts of the P2X, not only to consume energy but also to provide flexibility for other P2X sectors, e.g., power-to-mobility and power-to-gas. The aim of future studies is to address the following concerns:
1. How the heat consumption of DH and aggregated buildings can be integrated into the P2X energy structure;
2. How the mixing loop controls can be coordinated to provide power flexibility for other P2X sectors, including power-to-mobility, power-to-hydrogen, etc.;
3. How large the share of DH and heating systems in the P2X structure need to be to provide a reliable, economic, and flexible operation for different sectors;
The abovementioned challenges can be addressed in future studies to investigate the contribution of DH and residential heating systems in the P2X structure.

5. Conclusions

This study suggested a practical approach to forecast the heat consumption of residential buildings supplied by a mixing loop of district heating. The approach proposed a data-driven method to extract the heating consumption using sensor data, including energy variables (i.e., inflow/outflow temperature and mass flow) and the weather data (i.e., the outdoor temperature, solar power, wind speed, and humidity). The PCA ranks and backward elimination were applied to determine the highest priority data. Finally, three machine-learning algorithms, including ANN, LRM, and k-NN, are addressed to forecast the future heat consumption of the building.
The simulation results showed that ambient temperature and solar power ranked first and second, (ahead of wind speed and humidity) with contributions to the heat consumption of 40.67% and 29.29%, respectively. Regarding the machine-learning algorithms, the ANNs showed a higher accuracy for heat consumption forecasting compared to LRM and k-NN. Therefore, the DHW consumption posed morning and evening residual peaks in the daily energy profile. In the hourly and daily error analysis, it was revealed that Sunday and the hours 16–18 on weekdays have the highest error margins due to changes in occupancy patterns. In comparison to some recent studies, the suggested approach showed high accuracy in two error criteria, including NMBE and CVRMSE.
The suggested approach can be used to estimate the flexibility potentials of residential buildings in response to renewable power intermittency. Meanwhile, it can provide cost-effective operation for HSPs considering dynamic and time-of-use energy tariffs. Although the proposed approach offers the abovementioned advantages, future studies will focus mainly on the role of residential heating systems in the P2X energy structures.

Funding

This work was supported by the project of Flexible Energy Denmark (FED).

Informed Consent Statement

Not applicable.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Golmohamadi, H.; Larsen, K.G.; Jensen, P.G.; Hasrat, I.R. Integration of flexibility potentials of district heating systems into electricity markets: A review. Renew. Sustain. Energy Rev. 2022, 159, 112200. [Google Scholar] [CrossRef]
  2. Golmohamadi, H.; Asadi, A. Integration of Joint Power-Heat Flexibility of Oil Refinery Industries to Uncertain Energy Markets. Energies 2020, 13, 4874. [Google Scholar] [CrossRef]
  3. Golmohamadi, H. Operational scheduling of responsive prosumer farms for day-ahead peak shaving by agricultural demand response aggregators. Int. J. Energy Res. 2021, 45, 938–960. [Google Scholar] [CrossRef]
  4. Daryabari, M.K.; Keypour, R.; Golmohamadi, H. Robust self-scheduling of parking lot microgrids leveraging responsive electric vehicles. Appl. Energy 2021, 290, 116802. [Google Scholar] [CrossRef]
  5. International Energy Agency (IEA). 2018. Available online: https://www.iea.org/articles/how-can-district-heating-help-decarbonise-the-heat-sector-by-2024 (accessed on 15 January 2022).
  6. Golmohamadi, H. Stochastic energy optimization of residential heat pumps in uncertain electricity markets. Appl. Energy 2021, 303, 117629. [Google Scholar] [CrossRef]
  7. Wei, Y.; Zhang, X.; Shi, Y.; Xia, L.; Pan, S.; Wu, J.; Han, M.; Zhao, X. A review of data-driven approaches for prediction and classification of building energy consumption. Renew. Sustain. Energy Rev. 2018, 82, 1027–1047. [Google Scholar] [CrossRef]
  8. Eseye, A.T.; Lehtonen, M. Short-Term Forecasting of Heat Demand of Buildings for Efficient and Optimal Energy Management Based on Integrated Machine Learning Models. IEEE Trans. Ind. Inform. 2020, 16, 7743–7755. [Google Scholar] [CrossRef]
  9. Song, J.; Xue, G.; Pan, X.; Ma, Y.; Li, H. Hourly Heat Load Prediction Model Based on Temporal Convolutional Neural Network. IEEE Access 2020, 8, 16726–16741. [Google Scholar] [CrossRef]
  10. Lin, T.; Pan, Y.; Xue, G.; Song, J.; Qi, C. A Novel Hybrid Spatial-Temporal Attention-LSTM Model for Heat Load Prediction. IEEE Access 2020, 8, 159182–159195. [Google Scholar] [CrossRef]
  11. Dagdougui, H.; Bagheri, F.; Le, H.; Dessaint, L. Neural network model for short-term and very-short-term load forecasting in district buildings. Energy Build. 2019, 203, 109408. [Google Scholar] [CrossRef]
  12. Chen, B.; Wang, Y. Short-Term Electric Load Forecasting of Integrated Energy System Considering Nonlinear Synergy Between Different Loads. IEEE Access 2021, 9, 43562–43573. [Google Scholar] [CrossRef]
  13. Potočnik, P.; Škerl, P.; Govekar, E. Machine-learning-based multi-step heat demand forecasting in a district heating system. Energy Build. 2021, 233, 110673. [Google Scholar] [CrossRef]
  14. Wang, R.; Lu, S.; Feng, W. A novel improved model for building energy consumption prediction based on model integration. Appl. Energy 2020, 262, 114561. [Google Scholar] [CrossRef]
  15. Kurek, T.; Bielecki, A.; Świrski, K.; Wojdan, K.; Guzek, M.; Białek, J.; Brzozowski, R.; Serafin, R. Heat demand forecasting algorithm for a Warsaw district heating network. Energy 2021, 217, 119347. [Google Scholar] [CrossRef]
  16. Lumbreras, M.; Garay-Martinez, R.; Arregi, B.; Martin-Escudero, K.; Diarce, G.; Raud, M.; Hagu, I. Data driven model for heat load prediction in buildings connected to District Heating by using smart heat meters. Energy 2021, 239, 122318. [Google Scholar] [CrossRef]
  17. Kristensen, M.H.; Hedegaard, R.E.; Petersen, S. Long-term forecasting of hourly district heating loads in urban areas using hierarchical archetype modeling. Energy 2020, 201, 117687. [Google Scholar] [CrossRef]
  18. Wang, Z.; Hong, T.; Piette, M.A. Building thermal load prediction through shallow machine learning and deep learning. Appl. Energy 2020, 263, 114683. [Google Scholar] [CrossRef] [Green Version]
  19. Minakais, M.; Mishra, S.; Wen, J.T. Database-Driven Iterative Learning for Building Temperature Control. IEEE Trans. Autom. Sci. Eng. 2019, 16, 1896–1906. [Google Scholar] [CrossRef]
  20. Golmohamadi, H.; Guldstrand Larsen, K.; Gjøl Jensen, P.; Riaz Hasrat, I. Optimization of power-to-heat flexibility for residential buildings in response to day-ahead electricity price. Energy Build. 2021, 232, 110665. [Google Scholar] [CrossRef]
  21. Kilkki, O.; Alahäivälä, A.; Seilonen, I. Optimized Control of Price-Based Demand Response With Electric Storage Space Heating. IEEE Trans. Ind. Inform. 2015, 11, 281–288. [Google Scholar] [CrossRef]
  22. Golmohamadi, H.; Larsen, K.G. Economic heat control of mixing loop for residential buildings supplied by low-temperature district heating. J. Build. Eng. 2022, 46, 103286. [Google Scholar] [CrossRef]
  23. Golmohamadi, H.; Keypour, R.; Hassanpour, A.; Davoudi, M. Optimization of green energy portfolio in retail market using stochastic programming. In Proceedings of the 2015 North American Power Symposium (NAPS), Charlotte, NC, USA, 4–6 October 2015; pp. 1–6. [Google Scholar]
  24. Golmohamadi, H.; Keypour, R. Application of Robust Optimization Approach to Determine Optimal Retail Electricity Price in Presence of Intermittent and Conventional Distributed Generation Considering Demand Response. J. Control. Autom. Electr. Syst. 2017, 28, 664–678. [Google Scholar] [CrossRef]
  25. Shaker, H.; Zareipour, H.; Wood, D. A Data-Driven Approach for Estimating the Power Generation of Invisible Solar Sites. IEEE Trans. Smart Grid 2016, 7, 2466–2476. [Google Scholar] [CrossRef]
  26. Ali, M.; Adnan, M.; Tariq, M.; Poor, H. V Load Forecasting Through Estimated Parametrized Based Fuzzy Inference System in Smart Grids. IEEE Trans. Fuzzy Syst. 2021, 29, 156–165. [Google Scholar] [CrossRef]
  27. Hoori, A.O.; Kazzaz, A.A.; Khimani, R.; Motai, Y.; Aved, A.J. Electric Load Forecasting Model Using a Multicolumn Deep Neural Networks. IEEE Trans. Ind. Electron. 2020, 67, 6473–6482. [Google Scholar] [CrossRef]
  28. Golmohamadi, H.; Keypour, R. A bi-level robust optimization model to determine retail electricity price in presence of a significant number of invisible solar sites. Sustain. Energy Grids Networks 2018, 13, 93–111. [Google Scholar] [CrossRef]
  29. Chapagain, K.; Kittipiyakul, S. Performance Analysis of Short-Term Electricity Demand with Atmospheric Variables. Energies 2018, 11, 818. [Google Scholar] [CrossRef] [Green Version]
  30. Ciulla, G.; D’Amico, A. Building energy performance forecasting: A multiple linear regression approach. Appl. Energy 2019, 253, 113500. [Google Scholar] [CrossRef]
  31. Hou, J.; Li, H.; Nord, N.; Huang, G. Model predictive control under weather forecast uncertainty for HVAC systems in university buildings. Energy Build. 2022, 257, 111793. [Google Scholar] [CrossRef]
  32. Zhao, J.; Li, J.; Shan, Y. Research on a forecasted load-and time delay-based model predictive control (MPC) district energy system model. Energy Build. 2021, 231, 110631. [Google Scholar] [CrossRef]
  33. Sha, H.; Moujahed, M.; Qi, D. Machine learning-based cooling load prediction and optimal control for mechanical ventilative cooling in high-rise buildings. Energy Build. 2021, 242, 110980. [Google Scholar] [CrossRef]
  34. Shamsi, M.H.; Ali, U.; Mangina, E.; O’Donnell, J. Feature assessment frameworks to evaluate reduced-order grey-box building energy models. Appl. Energy 2021, 298, 117174. [Google Scholar] [CrossRef]
  35. Zhou, Y.; Zheng, S. Machine-learning based hybrid demand-side controller for high-rise office buildings with high energy flexibilities. Appl. Energy 2020, 262, 114416. [Google Scholar] [CrossRef]
  36. Khamma, T.R.; Zhang, Y.; Guerrier, S.; Boubekri, M. Generalized additive models: An efficient method for short-term energy prediction in office buildings. Energy 2020, 213, 118834. [Google Scholar] [CrossRef]
  37. Hu, Y.; Cheng, X.; Wang, S.; Chen, J.; Zhao, T.; Dai, E. Times series forecasting for urban building energy consumption based on graph convolutional network. Appl. Energy 2022, 307, 118231. [Google Scholar] [CrossRef]
  38. Luo, J.; Joybari, M.M.; Panchabikesan, K.; Sun, Y.; Haghighat, F.; Moreau, A.; Robichaud, M. Performance of a self-learning predictive controller for peak shifting in a building integrated with energy storage. Sustain. Cities Soc. 2020, 60, 102285. [Google Scholar] [CrossRef]
Figure 1. A detached house supplied by mixing loop with weather disturbances.
Figure 1. A detached house supplied by mixing loop with weather disturbances.
Buildings 12 00289 g001
Figure 2. General overview of training and forecasting approaches to estimate heat consumption of buildings.
Figure 2. General overview of training and forecasting approaches to estimate heat consumption of buildings.
Buildings 12 00289 g002
Figure 3. Weather data with uncertain envelopes for 3 months training and 2 months forecasting (a) Ambient temperature (b) Solar power.
Figure 3. Weather data with uncertain envelopes for 3 months training and 2 months forecasting (a) Ambient temperature (b) Solar power.
Buildings 12 00289 g003
Figure 4. Comparison of forecast and measured heat consumption by ANN from 1 February 2021 to 31 March 2021.
Figure 4. Comparison of forecast and measured heat consumption by ANN from 1 February 2021 to 31 March 2021.
Buildings 12 00289 g004
Figure 5. One-day heat consumption of the building with morning and evening shower peaks.
Figure 5. One-day heat consumption of the building with morning and evening shower peaks.
Buildings 12 00289 g005
Figure 6. Distribution of MBE and MAE in the forecasting period.
Figure 6. Distribution of MBE and MAE in the forecasting period.
Buildings 12 00289 g006
Figure 7. Distribution of percentage error during the forecasting period (a) Hourly (b) Daily (c) Monthly.
Figure 7. Distribution of percentage error during the forecasting period (a) Hourly (b) Daily (c) Monthly.
Buildings 12 00289 g007
Figure 8. Impact of weather uncertainty on the accuracy of forecasting approach (a) MAE-Positive Deviation (b) MAE-Negative Deviation (c) MAPE-Positive Deviation (d) MAPE-Negative Deviation (e) NMBE-Positive Deviation (f) NMBE-Negative Deviation (g) CVRMSE-Positive Deviation (h) CVRMSE-Negative Deviation.
Figure 8. Impact of weather uncertainty on the accuracy of forecasting approach (a) MAE-Positive Deviation (b) MAE-Negative Deviation (c) MAPE-Positive Deviation (d) MAPE-Negative Deviation (e) NMBE-Positive Deviation (f) NMBE-Negative Deviation (g) CVRMSE-Positive Deviation (h) CVRMSE-Negative Deviation.
Buildings 12 00289 g008
Figure 9. Comparison of the error criteria with 10 recent studies. (a) NMBE (Adapted from Refs. [8,17,30,31,32,33,34,35,36]) (b) MAPE (Adapted from Refs. [8,9,10,11,12,13,14,15,17,37]) (c) CVRMSE (Adapted from Refs. [14,18,30,31,32,33,34,35,36,38]).
Figure 9. Comparison of the error criteria with 10 recent studies. (a) NMBE (Adapted from Refs. [8,17,30,31,32,33,34,35,36]) (b) MAPE (Adapted from Refs. [8,9,10,11,12,13,14,15,17,37]) (c) CVRMSE (Adapted from Refs. [14,18,30,31,32,33,34,35,36,38]).
Buildings 12 00289 g009
Table 1. Key features of 10 prominent studies on heat forecasting from 2019 to 2021.
Table 1. Key features of 10 prominent studies on heat forecasting from 2019 to 2021.
Ref.Time ResolutionTermRegionAccuracyInterval
ShortMidLong
[8]Hourly24 h FinlandMAPE (%)3.14~7.78
RMSE (kW)7.22~19.82
NMBE (%)0.85~2.11
[9]Hourly12 h72 h ChinaMAE (GJ)0.031~0.102
RMSE (GJ)0.036~0.129
MAPE (%)1.4~2.2
[10]Hourly 48 h ChinaRMSE (GJ)0.0460
MAE (GJ)0.0356
R20.9967
MAPE (%)1.47
[11]Hourly24 h CanadaRMSE (kWh)228.0
MAPE (%)4.16
[12]Hourly24 h The USMAE (MW)0.146
MAPE (%)5.4
[13]Hourly 48 h SloveniaMAPE (%)2.94
[14]Hourly24 h ChinaCVRMSE (%)10.60
RMSE (kW)23.53
MAE (kW)16.14
MAPE (%)7.66
[15]Hourly24 h72 h PolandMAPE (%)2.6~11.2
[17]Hourly 1 YearDenmarkNMBE (%)0.5
MAPE (%)12
[18]Hourly24 h The USCVRMSE20.2~29.9
MAPE: Mean Absolute Percentage Error, RMSE: Root Mean Square Error, NMBE: Normalized Mean Bias Error, MAE: Mean Absolute Error, R2: R-Squared, CVRMSE: Coefficient of Variation of Root Mean Squared Error.
Table 2. PCA ranks for 4 weather variables.
Table 2. PCA ranks for 4 weather variables.
Weather VariableDifference of Eigenvalues Γ ( 6 ) j Normalized Impact Factor (%)PCA Rank
Outdoor Temperature0.059340.671
Solar Irradiation0.042729.282
Wind Speed0.038826.613
Humidity0.00503.444
Table 3. Comparison of error criteria for three machine-learning algorithms.
Table 3. Comparison of error criteria for three machine-learning algorithms.
Forecasting ModelMAE (kWh)MAPE (%)MBE (kWh)NMBE (%)CVRMSE (%)
ANN0.968.95−0.00−0.027.83
LRM1.9416.14−0.36−2.2814.89
k-NN2.1216.36−0.03−0.1816.37
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Golmohamadi, H. Data-Driven Approach to Forecast Heat Consumption of Buildings with High-Priority Weather Data. Buildings 2022, 12, 289. https://doi.org/10.3390/buildings12030289

AMA Style

Golmohamadi H. Data-Driven Approach to Forecast Heat Consumption of Buildings with High-Priority Weather Data. Buildings. 2022; 12(3):289. https://doi.org/10.3390/buildings12030289

Chicago/Turabian Style

Golmohamadi, Hessam. 2022. "Data-Driven Approach to Forecast Heat Consumption of Buildings with High-Priority Weather Data" Buildings 12, no. 3: 289. https://doi.org/10.3390/buildings12030289

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop