Literature DB >> 35174273

The use of statistical and machine learning tools to accurately quantify the energy performance of residential buildings.

Dina M Ibrahim1,2, Abdulbasit Almhafdy3, Amal A Al-Shargabi1, Manal Alghieth1, Ahmed Elragi4, Francisco Chiclana5.   

Abstract

Prediction of building energy consumption is key to achieving energy efficiency and sustainability. Nowadays, the analysis or prediction of building energy consumption using building energy simulation tools facilitates the design and operation of energy-efficient buildings. The collection and generation of building data are essential components of machine learning models; however, there is still a lack of such data covering certain weather conditions. Such as those related to arid climate areas. This paper fills this identified gap with the creation of a new dataset for energy consumption of 3,840 records of typical residential buildings of the Saudi Arabia region of Qassim, and investigates the impact of residential buildings' eight input variables (Building Size, Floor Height, Glazing Area, Wall Area, window to wall ratio (WWR), Win Glazing U-value, Roof U-value, and External Wall U-value) on the heating load (HL) and cooling load (CL) output variables. A number of classical and non-parametric statistical tools are used to uncover the most strongly associated input variables with each one of the output variables. Then, the machine learning Multiple linear regression (MLR) and Multilayer perceptron (MLP) methods are used to estimate HL and CL, and their results compared using the Mean Absolute Error (MAE), the Root Mean Square Error (RMSE), and coefficient of determination (R2) performance measures. The use of the IES simulation software on the new dataset concludes that MLP accurately estimates both HL and CL with low MAE, RMSE, and R2, which evidences the feasibility and accuracy of applying machine learning methods to estimate building energy consumption.
© 2022 Ibrahim et al.

Entities:  

Keywords:  Buildings characteristics; Cooling load; Energy consumption; Heating load; Statistical analysis

Year:  2022        PMID: 35174273      PMCID: PMC8802788          DOI: 10.7717/peerj-cs.856

Source DB:  PubMed          Journal:  PeerJ Comput Sci        ISSN: 2376-5992


Introduction

Research on building energy consumption is motivated by the recently growing concerns on energy waste and its negative impact on the environment. When designing efficient buildings, it is essential to calculate their cooling load (CL) and heating load (HL) in order to specify the required cooling and heating equipment to achieve comfortable indoor air conditions. Architects and building designers require information about building characteristics, conditioned spaces (occupancy and activity level), climate, and intended usage (residential, industrial) to estimate the CL and HL of the building. Buildings have five distinct characteristics: environment, utilities, community, occupants, and building system (Wang et al., 2017). The environmental characteristics of a building are among the main aspects or conditions that can affect its energy consumption, i.e. contribute to sustainability and energy efficiency. Therefore, this study focuses on buildings characteristics such as wall envelope, window, and orientation. In the literature, buildings’ characteristics have been described as “variables” (Tsanas & Xifara, 2012), “forms” (Li et al., 2019), “components” (Geyer & Singaravel, 2018), “shapes and characteristics” (Ciulla et al., 2019), and “features” (Seyedzadeh et al., 2019). Physical and non-physical factors can be used to categorize the characteristics of buildings. A window to wall ratio, for example, is a physical element of a building that is related to size, while glazing properties (e.g. U-value) are an example of physical elements of a building that are related to materials. The orientation of a building, which is determined by the cardinal and intercardinal building directions, is an example of non-physical factors. The building characteristics in related studies can be categorized into five groups: wall variables, glazing variables, roof variables, form variables, and orientation. Glazing variables are a major architectural elements that identify the building’s features and they have a significant impact on energy performance (Tien Bui et al., 2019; Yeom et al., 2020). Five different building envelope parameters have been used to address glazing: area, area distribution, window to wall ratio (WWR), window to ground ratio (WGR), and U-value. Furthermore, when looking at each variable separately, orientation is the variable most investigated in AI research studies. Most buildings’ energy prediction studies, such as Yeom et al. (2020), Moayedi et al. (2019), Navarro-Gonzalez & Villacampa (2019), Seyedzadeh et al. (2019) and Sadeghi et al. (2020), conducted their experiments on a dataset, created by Tsanas & Xifara (2012) of 768 records and eight characteristics (relative compactness, surface area, wall area, roof area, overall height, orientation, glazing area, and distribution) used as predictors to estimate the energy consumption of the buildings. In addition, a small number of other studies have used larger datasets. To name some of them (Himeur et al., 2020a), reviewed and examined thirty-one existing datasets based on various features such as geographical locations and rate sampling. The authors proposed a novel dataset, namely, Qatar University dataset which can be useful for any future training or testing anomaly detection algorithms. Another future direction of applying the datasets in several utilizations such as machine learning was also proposed. In addition, Li et al. (2020) used 539, 42, and 153 datasets of residential buildings, residential blocks and public buildings respectively. The authors highlighted the buildings key determinants that affect the urban building energy usage, e.g. orientation, height to canyon width perimeter-to-area ratio. (Xu & Chen, 2020), collected datasets of energy consumption from various houses in British Columbia, Canada, for 2 years. The aim was to detect anomaly energy performance in buildings. (Pham et al., 2020), used five datasets from five buildings of 1 year with an hourly resolution of energy consumption for evaluating ML-based energy prediction model. By utilizing the historical datasets, Random Forests showed good accuracy in energy prediction. (Himeur et al., 2020c), validated a recognition system based on a non-intrusive appliance model using resampled data recording in power consumption with 30,000 patterns length. The proposed model showed high accuracy in appliance recognition performance. However, all the above mentioned studies were not constructed based on the building characteristics which emerges the gab in the existing buildings envelope based datasets. (Himeur et al., 2020b) has stated that the lack of real or well-validated datasets is one of the main obstacles that stand before anomaly prediction and detection of energy consumption in buildings. Highlighting energy output has gone through various investigations, and yet, there are still difficulties in identifying the energy performance pattern, abnormalities. Thus, this study creates a new dataset of 3,840 typical family houses in the Qassim region of Saudi Arabia, and corresponding eight characteristics to predict energy consumption, which is to be available online for public use. Based on the created dataset, a number of classical and non-parametric statistical tools are first used to uncover the most strongly characteristics (input variables) with HL and CL (output variables). Then, two machine learning methods, the Multiple linear regression (MLR) and the Multilayer perceptron (MLP), are used to estimate HL and CL, and their results are compared using the Mean Absolute Error (MAE), the Root Mean Square Error (RMSE), and coefficient of determination (R2) performance measures. The use of the IES simulation software on the new dataset concludes that MLP accurately estimates both HL and CL with low MAE, RMSE, and R2, which evidences the feasibility and accuracy of applying machine learning methods to estimate building energy consumption. Thus, the main contributions of this study are: A new dataset of 3,840 arid climate residential buildings and corresponding eight characteristics to predict energy consumption is made publicly available. In silico experiments on the developed dataset evidence feasibility and accuracy of applying machine learning methods to estimate building energy consumption. The remaining of the paper is structured as follows. “Existing Datasets of Energy Consumption In Residential Buildings” presents an overview of the existing dataset used in the literature. “Methodology” details the methodology implemented to create and analyze the new dataset. “Methods and Statistical Analysis Results” reports on the results of the dataset analysis using both statistical methods and machine learning methods. “Results and Discussions discusses the obtained results and finally “Concluding Remarks and Future Research Directions” concludes the paper.

Existing datasets of energy consumption in residential buildings

The application of machine learning on building energy prediction is extensively addressed in the literature (Zhang et al., 2021). However, most of these studies focus on the algorithm implemented, while the dataset used is often overlooked. In Tsanas & Xifara (2012), Tsanas and Xifara presented a dataset on eight building characteristics (input variables X1–X8): Surface Area, Overall Height, Roof Area, Relative Compactness, Wall Area, Distribution of Glazing Area, Orientation, Area of Glazing; as predictors of buildings’ energy consumption target variables (Y1–Y2): Heating Load and Cooling Load. Many researches have used the Tsanas & Xifara (2012) dataset for various energy prediction models in various regions using 12 different building shapes simulated in Autodesk Ecotect Analysis too (see Table 1). Kumar, Pal & Singh (2018) used the data for residential buildings in California, Navarro-Gonzalez & Villacampa (2019) in Alicante, Spain, and Roy et al. (2020) in Athens, Greece. Ciulla et al. (2019) employed nonresidential building simulation data from seven countries: Germany, Spain, the United Kingdom, Belgium, Italy, France, and Sweden. D’Amico et al. (2019) conducted research for the ANN energy assessment model on five climate zones. These studies are based on simulated data and use Tsanas and Xifara’s dataset for the training of their AI-based prediction models, i.e., machine or deep learning, as well as for testing them.
Table 1

A summary of data regarding previous studies in residential building.

ReferencesBuilding characteristicsType of energyBuilding typeLocationDataset size
D’Amico et al. (2019) Wall areaEnergy consumptionResidentialU.S. Midwest973
Wall U-value
Glazing area
Glazing U-value
Cerquitelli, Malnati & Apiletti, 2019 ResidentialAthens, Greece768
Ciulla et al. (2019) ResidentialN/A
Chen & Tan (2017) HeightResidentialN/A
Li et al. (2019) Relative compactnessResidentialAlicante, Spain
Le et al. (2019a) Wall areaResidentialIrvine
Naji et al. (2016) Surface areaHeating loadResidentialGreece, Athens
Ngo (2019) Roof areaResidentialAthens, Greece
Kumar, Pal & Singh (2018) Glazing area distributionCooling loadN/AN/A
Nilashi et al. (2017) Glazing areaResidentialHo Chi Minh City, Viet Nam
Sadeghi et al. (2020) OrientationResidentialNM
Sharif & Hammad (2019) ResidentialN/A
Geyer & Singaravel (2018) ResidentialCalifornia
Gao et al. (2019) Relative compactnessHeating loadN/AN/A837
Tien Bui et al. (2019) Surface AreaPrototype modelVietnam
Cecconi, Moretti & Tagliabue, 2019 Wall U-valueEnergy ConsumptionResidentialIstanbul180
Wall thickness
(5 different walls)
Navarro-Gonzalez & Villacampa (2019) Relative compactness
Glazing areaResidential
Glazing area distributionHeating loadAthens, Greece768
Roof areaOffice
Overall HeightCooling load++
Orientation
Glazing areaOthers
Glazing area distribution
Le et al. (2019b) Insulation K-valueTwo datasets:
Insulation thicknessDataset 1:
Wall type180
Relative compactnessEnergy Consumption
Surface area+
Wall areaResidentialIstanbul, Turkey
Roof area768
Overall heightDataset 2:
Orientation=
Glazing areaCooling load
Glazing distribution948

Methodology

Sample building

There is currently a rapid construction development of residential buildings in the Qassim region. Accordingly, the Ministry of housing in Saudi Arabia launched a program of 381 villas in Buraydah city and 340 in Unayzah city, all with the same design plan. Since this is a typical new detached house in many towns in the Qassim region, it was selected and used in this study. The house plan is used in the IES simulation software. The architecture layout of the ground floor and first floor are shown in Fig. 1, while Table 2 provides information of the house envelope construction features.
Figure 1

The architecture layout (A) ground floor and (B) first floor of the house sample.

Table 2

House envelope construction features.

House featuresDescription
LocationBuraydah (Coordinates: 26°22′17.8″N 43°51′29.4″E)
OrientationFront elevation facing South
ShapeTypical Square and Rectangular combination of spaces
Celling Height3 m
Floor Area118.1 m2 (Ground Floor); 66.4 m2 (First Floor)
Window Wall Ratio10–15%
Exterior Walls15 mm Plaster (Dense) + 10 mm Cement + 200 mm Concrete Block (Medium) + 10 mm Cement + 15 mm Plaster (Lightweight)
Roof10 mm Ceramic tiles + 30 mm Concrete layer + 10 mm Extruded Polystyrene + 150 mm Reinforced Concrete (Dense)
Windows4 mm Double clear glass

Modeling in IES

The IES simulation software was used to model the house for data generating (IESVE, 2008). The aim of this phase is to generate the data of the building envelope variables to analyze their effect on the building energy performance. As the building is located in Qassim, Saudi Arabia, the corresponding regional weather data file (epw. format) was imported to the software and used in the simulations. The simulation of design variables was restricted to the house’s main spaces subjected to air-conditioning, highlighted in orange in Fig. 2. Other spaces of the house, such as WC, staircase and kitchen, highlighted in blue color in Fig. 2, which are not fully air-conditioned were excluded in the simulation. The specifications of the design variables are provided in Tables 3 and 4. All thermal properties for glazing, roof and walls were carefully defined in the IES simulation software based on their U-value (Table 4), which considered the most effective property that affect the building elements’ thermal behavior. Furthermore, properties of the building elements such as doors, window frame and floors were kept constant in the IES for the simulation.
Figure 2

House sample modeling in IESVE with Qassim weather station (Sun-path).

Table 3

Air-conditioned spaces information generated from IES.

Space IDSpace name (Real)Max. height (m)Volume (m3)Floor area (m2)Floor perimeter (m)Ext. wall area (m2)Ext. window area (m2) 10%
SP00000CBed room5.6 (2nd f)81.02628.93821.9440.9454.095
SP000000Bedroom2.8 (1st f)65.41423.36219.527.3032.73
SP000002Living Room2.8 (1st f)51.61418.43317.1812.1831.218
SP000003Dining room2.8 (1st f)64.6723.09719.3831.5313.153
SP000009Guest room2.8 (1st f)81.02628.93821.9440.9454.095
SP000005Bed room5.6 (2nd f)64.6723.09719.3843.3944.339
Total408.42145.865196.30119.63
Table 4

Descriptions of input and output variables in the model simulation.

FeaturesDescriptionVariables
Building SizeSpaces in the house subjected to air-conditioning (highlighted in orange color in Fig. 2)145.86 m2
184.53 m2
Floor HeightThis is referred to the internal ceiling height of spaces2.8 m
3.0 m
Glazing AreaNet area of windows23.25 m2
24.15 m2
69.75 m2
72.46 m2
116.24 m2
120.76 m2
162.74 m2
169.07 m2
209.24 m2
217.37 m2
Wall AreaNet area of walls217.37 m2
209.24 m2
169.07 m2
162.74 m2
120.76 m2
116.24 m2
72.46 m2
69.75 m2
24.15 m2
23.25 m2
WWRWindow to wall ratio of all the external wall that exposed to outdoor in all sides10%
30%
50%
70%
90%
Win Glazing U-valueRefer to thermal properties of glazing window which calculated by (W/m2K)0.97
1.63
2.87
3.23
4.61
5.60
Roof U-valueRefer to thermal properties of the covering of the specified spaces in the model calculated by (W/m2K)0.13
0.22
0.35
0.47
External Wall U-valueWall envelope for the specified spaces calculated by (W/m2K)0.26
0.34
0.60
1.03
1.62
2.11
2.82
3.34
Cooling LoadRefer to the sensible cooling load through the space’s envelope (wall, window and roof) calculated by KWh per year
Heating LoadRefer to the sensible heating load through the space’s envelope (wall, window and roof) calculated by KWh per year

Input and output variables

As shown in Table 4, eight different design parameters of a typical house in the Qassim region were considered in order to generate the energy data to predict the whole building energy consumption. Table 4 included descriptions of each design parameters group with possible number of values. All these design parameters and values were applied in the IES simulation software and the energy consumption values in terms of cooling and heating consumption (output variables), respectively, were obtained as output from the simulation experiment. Building size and floor height have two different values that were constructed in the ModelIT application in the IES simulation software. The WWR applied to each building size and floor height for the whole external wall that exposed to the outdoor in all directions is also documented in Table 4. The remaining design parameters based on the U-values were carefully inserted in APACHE application in the IES simulation software. As mentioned earlier, all the design parameters were applied to the main spaces only (Table 3) to ensure more reliable and accurate energy data for energy prediction. A total of 3,840 data series were introduced and simulated in the IES simulation software. A snapshot of our proposed dataset is shown in Fig. 3. Table 5 illustrates the descriptive statistics of the generated data: minimum, maximum, mean, standard deviation, variance, and skewness values.
Figure 3

A snapshot of our proposed dataset.

Table 5

Statistical descriptive of the IES simulation software generated dataset.

FeaturesDescriptive index
CountMinimumMaximumMeanStd. deviationVarianceSkewness
StatisticStd. ErrorStatisticStd. Error
Building Area m23,840145.86184.53165.20.3119.33373.940.00.04
Floor Height m3,8402.83.02.90.00160.100.010.00.04
Glazing Area3,84019.63217.37110.071.01863.113,983.730.0660.04
Wall Area3,84019.63217.37110.071.01863.113,983.730.0660.04
WWR %3,840109050.000.45628.288800.200.00.04
Win U-value (W/m2K)3,8400.975.603.160.0251.592.560.1500.04
Roof U-value (W/m2K)3,8400.130.470.290.0020.1280.0170.1300.04
Wall U-value (W/m2K)3,8400.263.341.510.0181.0851.1790.3940.04
Cooling (KWh/m2. yr)3,8395.45671.60336.852.18135.3118,309.80.2390.04
Heating (KWh/m2. yr)3,8390.07.030.950.021.311.7011.8920.04

Methods and statistical analysis results

This section analyses first the main statistical properties of the variables of the new dataset with the help of histograms and scatterplots. Then, the relationship between the input and output variables is analyzed using the Spearman rank correlation coefficient. Finally, our dataset is analyzed using two machine learning approaches, the Multilayer Regression (MLR) and Multilayer Perceptron (MLP) methods, respectively.

Data exploration

The simulated buildings were generated using the IES simulation software for Buraydah city. The Qassim province was chosen as it has a hard-arid climate with exceptionally hot summers and cool winters, requiring a lot of energy for cooling and heating residential buildings. The dataset is available at Almhafdy (2021) and contains 3,840 records. The following nine constant characteristics were used: location (Buraydah), orientation (front façade oriented to south), shape (rectangular and square spaces), ceiling height (3 m), floor area (ground floor 118.1 m2; first floor 66.4 m2), window wall ratio (10–15%), Exterior walls (0.015 m plaster + 0.01 mm cement + 0.020 m concrete block (medium) + 0.01 m cement + 0.015 m plaster (lightweight), roof (0.01 m ceramic tiles + 0.03 m concrete layer + 0.01 m extruded polystyrene + 0.015 m reinforced concrete, and windows (0.004 m double clear glass). Two building sizes were used 145.86 m2 and 184.53 m2. For each building size two floor heights of 2.8 m and 3 m were used; five different WWR as percentage of all external wall exposed to outdoor were used: 10%, 30%, 50%, 70%, and 90%; six win-value were simulated: 0.97, 1.63, 2.87, 3.23, 4.61, and 5.60); four different roof U-value were simulated: 0.13, 0.22. 0.35, and 0.47; and eight wall U-value were applied to each roof U-value. This is illustrated in Fig. 4.
Figure 4

Input design parameters groups for energy consumption of building.

Accordingly, we obtained 2 * 2 * 5 * 6 * 4 * 8 = 3,840 building samples. The simulate buildings are characterized by eight building features (input variables), and their output HL and CL were recorded, as summarized in Table 6.
Table 6

Mathematical representation of the input and output variables with the number of possible values.

Mathematical representationInput or output variable/FeatureNo. of possible valuesLabel for charts
I1Building Size2BA
I2Floor Height2FH
I3Glazing Area10GA
I4Wall Area10WA
I5WWR5WWR
I6Win Glazing U-value6WinU
I7Roof U-value4RU
I8External Wall U-value8WU
O1Cooling Load3,659CL
O2Heating Load2,674HL
Statistical properties of the variables were first analyzed with visualization of the empirical probability distributions of all the input and output variables (Tsanas & Xifara, 2012). These are provided in Fig. 5 which presents the probability density estimates using histograms of the output variable: the cooling load and the heating load. Figure 5A shows the frequency distribution for the cooling load output variable that resulted in the 3,840 records in the dataset and it describes that the most values are within a range of 100 to 600. While in Fig. 5B, the frequency distributions show that most of the values of the output variable heating load are ranged between 0.0 to 0.2. As a result, the necessity to experiment with machine learning approaches such as multiple linear regression (MLR) and multilayer perceptron (MLP) is intuitively justified.
Figure 5

Probability density estimates using histograms of the output variable (A) cooling load, and (B) heating load.

Statistical analysis

Due to the general non-Gaussian nature of the data, the Spearman rank correlation coefficient was used to derive a statistical metric for the strong relationship between each input variable with each of the two output variables (Tsanas & Xifara, 2012), which is given in Table 7. It is evident that several of the input variables are highly associated, such as GA (Glazing Area) and WWR (Window to Wall Ratio). As it is naturally expected, the variables GA and WWR are almost inversely proportional to WA.
Table 7

Correlations matrix using Spearman rank correlation between the eight input variables.

BAFHGAWAWWRWinURUWU
BA1.0000.0000.1730.1730.0000.0000.0000.000
FH0.0001.0000.0870.0870.0000.0000.0000.000
GA0.1730.0871.000−0.9250.9810.0000.0000.000
WA0.1730.087−0.9251.000−0.9810.0000.0000.000
WWR0.0000.0000.981−0.9811.0000.0000.0000.000
WinU0.0000.0000.0000.0000.0001.0000.0000.000
RU0.0000.0000.0000.0000.0000.0001.0000.000
WU0.0000.0000.0000.0000.0000.0000.0001.000

Note:

BA: Building Size, FH: Floor Height, GA: Glazing Area, WA: Wall Area, WWA: Window to Wall Ratio, WinU: Win Glazing U-value, RU: Roof U-value, WU: External Wall U-value.

Note: BA: Building Size, FH: Floor Height, GA: Glazing Area, WA: Wall Area, WWA: Window to Wall Ratio, WinU: Win Glazing U-value, RU: Roof U-value, WU: External Wall U-value. We can similarly depict the bivariate correlations between the eight input variables using a scatter plot matrix. A scatter plot matrix is a grid (or matrix) that represents a single view with multiple scatterplots in a matrix format (Elmqvist, Dragicevic & Fekete, 2008). Each scatter plot in the matrix depicts the relationship between two variables, allowing for the exploration of multiple relationships in a single graph. Figure 6 shows a scatter plot matrix of our eight input variables. The position of each dot on the horizontal and vertical axis indicates values for an individual data point. For each pairwise combination of variables chosen, a scatter plot is constructed.
Figure 6

Scatter plot matrix representation of the eight input variables.

Machine learning-based analysis

The main objective of this study is to describe a dataset generated for the energy consumption of buildings in the arid climate. This section makes use of two machine learning models, namely Multiple Linear Regression (MLR) and Multilayer Perceptron (MLP). These two models were chosen to examine the viability of the developed dataset in predicting the buildings energy consumption in terms of cooling and heating loads. In a recent study of ours (Al-Shargabi et al., 2021), we applied deep learning and created various models to predict the energy consumption of buildings using the dataset described in this study.

Multiple linear regression analysis

Multiple regression extends simple linear regression to predict the value of a variable (the outcome, target or criterion variable) based on the values of two or more other variables (the predictor, explanatory or regressor variables) (Tian et al., 2017). This section examines the distribution of the output variables (CL and HL) using the normal P–P plot, and the scatter plot of the regression standardized residual. The normal P–P plot of the standardized residual for dependent variables CL and HL is shown in Fig. 7, which corroborates that CL is normally distributed while HL is not.
Figure 7

The normal P–P plot of the regression standardized residual for our dependent variables CL and HL.

Cross validation (CV) is a common statistical re-sampling technique used in this paper. The dataset is divided into two subsets: a training subset and a testing subset. The training subset is used to derive model parameters, while the testing subset is used to compute errors (out-of-sample error or testing error). In particular, 10-fold CV (Uyank & Güler, 2013) is used as the learner testing method. We investigate how accurate the actual statistical mapping is reporting out-of-sample errors after conducting the exploratory statistical analysis, which provides important insight into the strength of the association between the input parameters and the output variables. The mean value of each MLR coefficient over the 10-fold CV iterations is obtained and used for predicting CL and HL in Eqs. (1) and (2), respectively.

Multilayer perceptronanalysis

In this model, using our proposed dataset, an ANN using the Multilayer perceptron method, which is one of the most commonly used methods for building an ANN (Hastier, Tibshirani & Friedman, 2009), is built in SPSS. Artificial neural networks (ANN) are nonlinear models that fall into the artificial intelligence technique category known as black-box models (Heddam, 2016). The multilayer perceptron neural network (MLP) (Rumelhart, Hinton & Williams, 1985) is one of the most extensively used ANN architectures in the literature, and it is extensively employed in hydrological, water resources, and environmental applications. Three layers make up the MLP: the input layer contains the independent variables, the output layer contains the dependent variable, and one or more hidden layers may also be present. The parameters of the MLP model are its weights and biases. It was used to alter the weights and biases of the training subsets, and the MLP was then trained with random beginning values. To choose the model with the lowest MSE between actual and predicted CL and HL, the training process is repeated many times. Neural networks with Sigmoid activation functions in their hidden layers and linear activation functions in their output layers, commonly known as the identity function, are employed for this research. To select the number of hidden layers, automatically architecture selection is chosen. The following three different distributions for the dataset are applied: (i) 70% to train the NN and 30% to test the NN; (ii) 80% to train the NN and 20% to test the NN; (iii) 90% to train the NN and 10% to test the NN. Figures 8 and 9 show the obtained NNs to predict CL and HL from the set of 8 input variables, respectively.
Figure 8

Multilayer perceptron model for predicting the cooling load output from the input variables.

Figure 9

Multilayer perceptron model for predicting the heating load output from the input variables.

The importance score of each of the eight independent variables in the prediction of each of the output variables is computed and given as Table 8. According to Table 8, the top five important input variables when predicting both the CL and HL output variables are WWR, WinU, GA, WA, and WU. Figures 10 and 11 shows the importance distribution percentages of the input variables as determined by the MLP for the CL and HL output variables, respectively. The top five important input variables are further investigated in terms of their effect on predicting buildings energy consumption in “Concluding Remarks and Future Research Directions”. These five input variables are the base to create various combinations to several prediction models of the CL and HL.
Table 8

Importance of the input variables as determined by the MLP for the output variables.

MeasureImportance score with CLImportance score with HL
BA0.049 ± 0.0150.067 ± 0.025
FH0.024 ± 0.0030.023 ± 0.009
GA0.209 ± 0.1290.087 ± 0.033
WA0.126 ± 0.0280.111 ± 0.040
WWR0.240 ± 0.1420.157 ± 0.031
WinU0.230 ± 0.0410.296 ± 0.009
RU0.015 ± 0.0020.038 ± 0.002
WU0.108 ± 0.0180.252 ± 0.009
Figure 10

Importance distribution of the input variables as determined by the MLP for the cooling load output variables.

Figure 11

Importance distribution of the input variables as determined by the MLP for the heating load output variables.

Error and performance measures

This section reports on the general performance of the trained methods that were discussed in the previous section. The models are compared using three performance measures, namely, Mean Absolute Error (MAE), Root Mean Square Error (RMSE) and coefficient of determination (R2). The average difference between expected and actual variables, such as heating and cooling loads, is known as the Mean Absolute Error (MAE). In (Eq. 3), the following equation demonstrates how MAE is calculated: Prediction errors are calculated by calculating the Root Mean Square Error (RMSE). Large variations between expected and actual results can be captured using this method. The lower the RMSE, the more accurate the model is. In (Eq. 4), the RMSE is determined using the following equation: The coefficient of determination (R2) indicates how much of the variance in the dependent variable can be predicted using the independent variables, such as heating and cooling loads. The closer value to 1, the higher performance model and the stronger relationship, as calculated in (Eq. 5). where p identifies the predicted value for sample i, y identifies the actual value for sample i, n is the sample size, indicates the mean of the predicted values.

Results and Discussions

This study investigated various combinations of the eight building characteristics variables as inputs to the MLP and MLR models in order to examine the effect of these variables on the energy consumption in terms of heating and cooling loads. During this research, a total of eight different models were created and compared (Tables 9 and 10).
Table 9

Out of sample MAE, RMSE, and R2 for predicting the CL output variable for the MLR and MLP models.

ModelInput variablesMAERMSER2
MLPM1WinU+WWR+WU+GA+WA23.242.920.999
M2WinU+WWR+WU+GA+WA+BA23.0541.540.999
M3WinU+WWR+WU+GA+WA+FH22.7138.690.997
M4WinU+WWR+WU+GA+WA+RU22.8840.140.998
M5WinU+WWR+WU+GA+WA+BA+FH22.3935.70.995
M6WinU+WWR+WU+GA+WA+BA+RU22.5137.220.996
M7WinU+WWR+WU+GA+WA+FH+RU22.0732.560.993
M8All: WinU+WWR+WU+GA+WA+BA+FH+RU21.7829.1230.992
MLRM1WinU+WWR+WU+GA+WA47.9166.320.990
M2WinU+WWR+WU+GA+WA+BA46.9761.400.984
M3WinU+WWR+WU+GA+WA+FH47.3763.560.986
M4WinU+WWR+WU+GA+WA+RU47.6264.870.988
M5WinU+WWR+WU+GA+WA+BA+FH46.2657.430.979
M6WinU+WWR+WU+GA+WA+BA+RU46.6659.700.982
M7WinU+WWR+WU+GA+WA+FH+RU46.3858.150.980
M8All: WinU+WWR+WU+GA+WA+BA+FH+RU46.02056.0150.978
Table 10

Out of sample MAE, RMSE, and R2 for predicting the HL output variable for the MLR and MLP models.

ModelInput variablesMAERMSER2
MLPM1WinU+WWR+WU+GA+WA0.1800.3761
M2WinU+WWR+WU+GA+WA+BA0.1770.3461
M3WinU+WWR+WU+GA+WA+FH0.1790.3681
M4WinU+WWR+WU+GA+WA+RU0.1750.3330.996
M5WinU+WWR+WU+GA+WA+BA+FH0.1740.3200.992
M6WinU+WWR+WU+GA+WA+BA+RU0.1700.2840.981
M7WinU+WWR+WU+GA+WA+FH+RU0.1720.3080.989
M8All: WinU+WWR+WU+GA+WA+BA+FH+RU0.1670.2600.433
MLRM1WinU+WWR+WU+GA+WA0.9551.5670.469
M2WinU+WWR+WU+GA+WA+BA0.9421.4550.521
M3WinU+WWR+WU+GA+WA+FH0.9481.5100.493
M4WinU+WWR+WU+GA+WA+RU0.9451.4810.507
M5WinU+WWR+WU+GA+WA+BA+FH0.9351.3990.552
M6WinU+WWR+WU+GA+WA+BA+RU0.9211.2690.627
M7WinU+WWR+WU+GA+WA+FH+RU0.9281.3370.587
M8All: WinU+WWR+WU+GA+WA+BA+FH+RU0.9151.2230.656
According to testing data, the MAE, RMSE, and R2 statistics of several MLP and MLR models in predicting the cooling load (CL) are shown in Table 9. Table 9 shows significant differences across the eight MLP models based on the three performance indicators. Between 21.78 and 23.2 (MAE, RMSE, and R2), respectively, the values of MAE, RMSE, and R2 were found. MAE and RMSE performance metrics have the lowest values when all eight of the building’s identifying attributes are supplied into the M8 model (WinU, WWR, WU, GA, WA, BA, FH, and RU). The highest R2 values were found with the M1 and M2 models, however, the M8 model still had the highest value. As can be seen from the results, the MLP M8 model has excellent cooling load (CL) performance and outstanding overall accuracy in predicting cooling load. Table 9 also displays the results of the cooling load (CL) prediction using MLR models based on the testing data. The MAE and RMSE metrics based on MLR models yield poorer results than those based on MLP models. Furthermore, the eight MLR models revealed considerable variances depending on the three performance measurements criterion, as shown in Table 9. MAE, RMSE, and R2 values varied from 46.02 to 47.91, 56.01 to 66.32, and 0.978 to 0.99, respectively. The M8 model, which employs all eight building characteristics variables as input, also yields the lowest values of the MAE and RMSE performance measures (WinU, WWR, WU, GA, WA, BA, FH, and RU). The highest values for the R2 measure were obtained with the M1 model, which was not far off from the value obtained with the M8 model. In terms of MAE, RMSE, and R2 statistics, Table 9 compares the effectiveness of several MLP and MLR models in forecasting cooling load (CL). Similarly, Table 10 reported the results obtained in predicting the heating load (HL) based on the same three performance measures. The MAE, RMSE, and R2 values for the MLP models ranged from (0.167 to 0.18), (0.26 to 0.37), and (0.43 to 1.00), respectively, according to Table 10. The M8 model, which employs all eight building characteristics variables as input, likewise produces the lowest MAE and RMSE performance scores (WinU, WWR, WU, GA, WA, BA, FH, and RU). With the M1, M2, and M3 models, the highest R2 values were found. The MAE and RMSE figures indicate that the MLP model’s performance is extremely good, and the MLP M8 model generally achieves good forecast accuracy of heating load (HL). Table 10 also displays the heating load (HL) prediction results derived using MLR models based on the testing data. The MAE and RMSE values based on the MLR models are lower than those based on the MLP models, as evidenced by the cooling load projections in Table 9. Table 10 shows that the eight MLR models differed significantly based on the three performance measurements criterion. MAE, RMSE, and R2 values varied between (0.915 to 0.955), (1.223 to 1.567), and (0.469 to 0.656), respectively. The M8 model, which employs all eight building characteristics variables as input, also yields the lowest MAE and RMSE values and the highest value of R2 performance metrics (WinU, WWR, WU, GA, WA, BA, FH, and RU). In comparison, the prediction accuracy of heating load (HL) for the regression models was higher than the prediction accuracy of cooling load (HL) in both MLP and MLR models for all eight generated combinations, according to the data provided in Table 9. The comparison of the models was based on graphical plots as scatter plots, box plots, violin plots, and Taylor diagram plots. Figures 12 and 13 show the scatterplots of the actual and the predicted values of the cooling load and the heating loads output variables obtained by MLP and MLR when using all the inputs, as represented in model M8 in Table 9 and 10. The best cooling load results of R2 with 0.976 was achieved by MLP, whereas the MLR model provides R2 with 0.839. similarly, the R2 value for the heating load using MLP model is 0.958 which is better than the 0.438 R2 value given by the MLR model.
Figure 12

Scatterplots showing the relation between the actual and the predicted values of the cooling load (CL) and heating loads (HL) variables for the MLP M8 model.

Figure 13

Scatterplots showing the relation between the actual and the predicted values of the cooling load (CL) and heating loads (HL) variables for the MLR M8 model.

The violin plots and the box plots for the actual and the predicted values of the heating load and cooling load output variables are illustrated in Figs. 14–17. As in the violin plots presented in Fig. 14, the two lines with a black square and red circle color display the mean and the median values of the heating and cooling loads, respectively. The high resemblance between the actual and the predicted heating load was achieved by MLP, especially on the median (323.18 and 323.85), while the MLR median value is 339.36. While the values of the mean for the CL in the actual, predicted MLP and MLR are very close (336.85, 337.08, and 338.75), as illustrated in Table 11. Similarly, for the heating load in Fig. 15 and Table 11, the high similarity between the actual and the predicted heating load was also accomplished by MLP with median values 0.38 and 0.43 where the median of the MLR is 0.96.
Figure 14

Violin plots of the actual and the predicted values of the cooling load (CL) values obtained by MLP and MLR.

Figure 17

Box plots of the actual and the predicted values of heating load (HL) values obtained by MLP and MLR.

Table 11

The mean and median values obtained by the actual, the MLP, and the MLR predicted models for the CL and HL variables derived from the violin and box plots.

Output variableModelMeanMedian
Violin plotBox plotViolin plotBox plot
CLCalculated (simulated)336.85336.84323.18323.17
MLP337.08337.08323.85323.84
MLR338.75338.75339.36339.35
HLCalculated (simulated)0.950.9530.380.383
MLP0.960.9610.430.433
MLR0.960.9620.960.96
Figure 15

Violin plots of the actual and the predicted values of the heating load (HL) values obtained by MLP and MLR.

Figure 16 illustrates the box plots of the actual and the predicted cooling load by MLP and MLR models. The median is represented by the central line with values 323.17, 323.84, and 339.35 for the actual, the predicted MLP, and the predicted MLR, respectively. This indicates that the MLP model is better than the MLR model, as shown in Table 11. The 25th and 75th percentiles are represented by the box’s two edges, and the x symbol represents the mean points which have values 336.85, 337.08, and 338.75 for the actual, the predicted MLP, and the predicted MLR, respectively. Likewise, Fig. 17 demonstrates the box plots of the actual and the predicted heating load variables obtained by MLP and MLR models. The median is represented by the central line with values 0.383, 0.433, and 0.96 for the actual, the predicted MLP, and the predicted MLR, respectively. It is clear from the box plots that the MLR model gives better values near the actual cooling and heating loads.
Figure 16

Box plots of the actual and the predicted values of cooling load (CL) values obtained by MLP and MLR.

Finally, the Taylor diagram plot was used to compare the MLP and the MLR models for the cooling load and the heating load as in Figs. 18 and 19, respectively. Taylor diagram plot is one of the most and highly recommended diagrams for performance comparisons of machine learning (Zhu et al., 2019). It exhibits three specific statistics: Pearson correlation (R), ratio value, and the normalized standard deviation. The ratio value means the ratio of the normalized variances indicates the relative amplitude of the model and observed variations. It is shown from the two figures that MLP performed better than MLR. In general, the MLP points, represented by the blue circle, are closer to the reference points than the blue star symbols that signify the MLR. The ratio values for the CL variable predicted by the MLP model is 0.989 and the MLR model is 0.899. Whereas in the HL variables, the predicted MLP and the predicted MLR model gives ratio values with 0.971 and 0.622, respectively, as illustrated in Table 12. The table also represents the correlation values of the two MLP and MLR models for the CL and HL variables where the CL the MLP gives 0.988 correlation value while the MLR gives 0.911. For the HL, the MLP and the MLR correlations values are 0.979 and 0.659, respectively. These plots demonstrate that the MLP model predicts the cooling load and the heating load output variables in a better way compared to the MLR model when comparing the actual values with the predicted values.
Figure 18

Taylor diagram of the actual and the predicted cooling load (CL) values obtained by MLP and MLR.

Figure 19

Taylor diagram of the actual and the predicted heating load (HL) values obtained by MLP and MLR.

Table 12

The ratio and correlation values obtained by the MLP and MLR models for the CL and HL variables using the Taylor diagram.

Output variableModelRatio valueCorrelation value
CLMLP0.9890.988
MLR0.8990.911
HLMLP0.9710.979
MLR0.6220.659

Concluding Remarks and Future Research Directions

Predicting building energy consumption is critical for achieving energy efficiency and sustainability. Nowadays, building energy simulation software is frequently used to assess or predict building energy usage to aid in the design and operation of energy-efficient buildings. This paper investigated the impact of eight input variables on residential buildings heating load (HL) and cooling load (CL), respectively. A variety of classical and non-parametric statistical analytic tools were used to find the most strongly associated input variables with each of the output variables. Then, using the performance measures Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and coefficient of determination (R2), two machine learning statistical methods to estimate HL and CL were compared: Multiple linear regression (MLR) and Multilayer perceptron (MLP). Simulation experiments on 3,840 different residential buildings showed that HL and CL can accurately be predicted using the IES simulation software actual data with low MAE, RMSA, and R2 values, especially when using the MLP approach. The findings of this study suggest that predicting building parameters using machine learning methods is a practical and accurate method. Among the major findings of this study is that the MLP models are more accurate in predicting both cooling and heating loads of the buildings, as compared to the MLR models. Also, the best performed MLP model was the one that uses the eight input variables. Based on the eight buildings characteristics input variables, many various combinations can be created for predicting the energy consumption, however, and due to the time limitation, only eight combinations have been considered with a focus on the most important input variables. The obtained results in this paper suggest that future research on the application of additional machine learning and deep learning models to analyze our proposed dataset and comparison with other benchmark datasets is worth considering.

A new dataset for residential buildings energy consumption of 3,840 records which is larger than the existing ones.

a new dataset for energy consumption of residential buildings and investigates the impact of residential buildings’ eight input variables (Building Size, Floor Height, Glazing Area, Wall Area, window to wall ratio (WWR), Win Glazing U-value, Roof U-value, and External Wall U-value) on the heating load (HL) and cooling load (CL) output variables. Click here for additional data file.
  2 in total

1.  Rolling the dice: multidimensional visual exploration using scatterplot matrix navigation.

Authors:  Niklas Elmqvist; Pierre Dragicevic; Jean-Daniel Fekete
Journal:  IEEE Trans Vis Comput Graph       Date:  2008 Nov-Dec       Impact factor: 4.579

2.  Multilayer perceptron neural network-based approach for modeling phycocyanin pigment concentrations: case study from lower Charles River buoy, USA.

Authors:  Salim Heddam
Journal:  Environ Sci Pollut Res Int       Date:  2016-05-24       Impact factor: 4.223

  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.