Machine Learning Models For TH
Machine Learning Models For TH
Article
Machine Learning Models for the Prediction of Energy
Consumption Based on Cooling and Heating Loads in
Internet-of-Things-Based Smart Buildings
Bita Ghasemkhani 1, * , Reyat Yilmaz 2 , Derya Birant 3 and Recep Alp Kut 3
1 Graduate School of Natural and Applied Sciences, Dokuz Eylul University, Izmir 35390, Turkey
2 Department of Electrical and Electronics Engineering, Dokuz Eylul University, Izmir 35390, Turkey;
[email protected]
3 Department of Computer Engineering, Dokuz Eylul University, Izmir 35390, Turkey;
[email protected] (D.B.); [email protected] (R.A.K.)
* Correspondence: [email protected]
on supervised learning that builds a model from historical data to be able to predict an
output value associated with a particular input vector.
Rapid developments in various information technologies have simplified the advent
of Internet-based devices that deliver observation and measurement from the real physical
world. Thus, the total number of such devices or IoT is overgrowing and leads to a
high volume of data generated by different IoT and considered by the location and time
dependency, with various modalities and varying data quality. As a result, intelligent
analyses of such data are the crucial means of developing IoT applications [11]. This
study focuses on building intelligent models for the prediction of energy consumption in
IoT-based smart buildings.
According to [12], buildings in cities consume 70% of the primary energy, in which
the most energy-consuming part is the HVAC (heating, ventilation and air conditioning)
system. Therefore, predicting and optimizing energy consumption in IoT-based buildings
through machine learning algorithms is an essential human need and economic and social
development factor [12], which we focus on in this study. That means that an accurate
prediction of heating load and cooling load in different IoT-based buildings through the
proposed model can lead to optimizing energy consumption, which implies a small but
necessary step to prevent global warming. Moreover, considering factors that affect energy
consumption, the heating load (HL) is the amount of heat energy added to an environment
to keep its temperature in a satisfactory manner for the residents. The cooling load (CL) is
the amount of heat energy removed from an environment to similarly keep its temperature
satisfactorily for the residents. The heating and cooling loads which are named thermal
loads, consider the construction features of buildings. Prediction of the CL and HL from
simple properties of the buildings such as surface area, height, orientation, and so on,
might assist in determining the energy performance of the buildings (EBP). It can also assist
decision-makers in allocating resources to reconstruction measures, which can have both
long-term and short-term benefits for cost savings, energy efficiency, and environmental
health. The main requirements of predicting HL and CL in buildings are to reduce energy
consumption, manage energy demands, reduce operational cost, and reduce emissions of
harmful gases. In IoT-based buildings, air-conditioning or heating devices may handle
the heating and cooling Loads smartly. This process will improve energy consumption
through an efficient prediction based on building features to keep the temperature at a
suitable level.
The main contributions of this study can be listed as follows. (i) It proposes novel
predictive models for cooling and heating Loads in IoT-based smart buildings by applying
various machine learning techniques to the data and considering features to have efficient
energy consumption. (ii) It is the first study that uses both the tri-layered neural network
(TNN) and maximum relevance minimum redundancy (MRMR) algorithms together to
predict energy consumption in IoT-based smart buildings. The structure of the neural
network was designed by considering many aspects such as the number of nodes, activation
function, and symmetry property. (iii) Our study is also original in that it proposes a
multitarget learning solution, unlike the traditional single-target learning studies. (iv) The
experimental results showed that our method outperformed the state-of-the-art methods
on the same dataset.
The rest of the paper is organized as follows. In the following section, a recent literature
review on machine learning for IoT systems is given. In Section 3, the proposed model is
described. Section 4 explains the experiments that were carried out in this study. In the
next section, the obtained results are presented. In Section 6, the related conclusions and
future works are described, respectively.
2. Literature Review
In the recent past, some machine learning studies have also been conducted with
or without taking into account the symmetry concept. Gaber et al. (2022) proposed an
intrusion detection method based on machine learning to distinguish the injection attacks
Symmetry 2022, 14, 1553 3 of 24
in smart-city IoT for security. As indoor wireless networks include more than 80% of the IoT
networks for smart cities, security and privacy challenges have become a serious concern
for intelligent IoT devices. Thus, they applied SVM, RF, DT, recursive feature elimination,
and constant removal algorithms to the public AWID dataset, and used a t-test to analyze
the results. According to the results, the decision tree method could be used to recognize
injection attacks by utilizing just eight features with 99% accuracy [13].
Mondal et al. (2021) implemented a machine learning model with IoT devices to
provide a smart healthcare ecosystem, which can lead to improvement in the healthcare
industry. They gathered the dataset from wearable sensors and used various wearable
devices and cloud computing technologies. Therefore, this investigation conquers the
challenges of wearable and implanted healthcare body network connections [14].
Siaterlis et al. (2022) designed and developed a framework to monitor the condition of
harsh operating environments by means of IoT, including a knowledge graph in industrial
production procedures for condition monitoring and predictive maintenance of assets,
which can support personnel in decision-making and supervision processes. In their study,
they aimed to apply semantic artificial intelligence and machine learning for approximating
the remaining useful life of the monitored assets. Furthermore, they used a real dataset
over five years from an aluminum-producing company and proved the usefulness of the
proposed solution for practical applications [15].
Junior et al. (2022) proposed a method in the field of IoT smart agriculture to reduce
the data on machine learning algorithms for fog computing because of cloud disconnections
that usually occur in the countryside. Their proposed approach collects and stores data
in a fog-based intelligent agricultural surrounding. Moreover, various data-reduction
approaches were used to preserve the data’s time-series nature. Furthermore, the k-means
and latent classification model (LCM) algorithms were applied to two real datasets. They
achieved higher reduction results than the previous works [16].
Tiwari et al. (2021) established an ensemble machine learning approach for ocean IoT
attack detection on the basis of the improved light gradient boosting machine algorithm.
Their model was proposed to protect the marine IoT environment from cyberattacks and
destructive activities. As a result, the dispersed IoT attacks could be controlled in more
profound marine environments with lower computational costs, and higher accuracy was
achieved and evaluated with various metrics. Their method presents a hopeful future for
IoT applications in the ocean environment [17].
Fard and Hosseini (2022) aimed to investigate the properties of a building that influ-
ence the amount of energy consumption inside it by means of IoT concept and machine
learning algorithms, namely univariate linear regression, RF, KNN, AdaBoost, and neural
network. They utilized the energy efficiency dataset, and as a result, the overall height of
buildings was introduced as the most important feature impacting energy consumption.
Moreover, the AdaBoost algorithm was introduced as the best algorithm for heating and
cooling loads [18].
Cakir et al. (2021) created an industrial IoT-based condition monitoring system at a low
cost. As it is crucial to detect defective bearings earlier than reaching a critical level, it was
predicted by machine learning algorithms, including SVM, DT, RF, and KNN. Furthermore,
their system can notify the related maintenance team to take the necessary measures in
critical events [19].
Rahman et al. (2022) presented a machine learning and IoT-based farming system that
enables intelligent control to categorize poisonous and edible mushrooms. As automation
was an essential need for farmers, they preferred to move from traditional methods to
modern ones. In their method, remote monitoring and management (RMM) and sensor
technologies had been included. Additionally, various machine learning algorithms have
been used, including DT, SVM, KNN, and RF. The accuracy of their model is very high,
which can be efficient in mushroom farming [20].
Meghana et al. (2021) proposed an approach to collect the data on social IoT. Moreover,
the performance of different machine learning algorithms on its data was investigated. The
Symmetry 2022, 14, 1553 4 of 24
result of their study revealed that artificial neural networks and decision tree algorithms
achieved a good performance in comparison with other machine learning algorithms. In
contrast, KNN was shown to have the weakest performance in most cases. Therefore,
it resulted that applying machine learning algorithms to data aggregation led to better
network performance in comparison with the entire dataset [21].
Khan and Al-Badi (2020) investigated the various open-source machine learning
platforms from the programming language, implementation, and usage aspects. Nowadays,
industries need machine learning methods to analyze huge amounts of datasets, which
are generated through applications, smart devices, industrial systems, and sensors. Such
generated data have their specific properties, and thus, it may be difficult to understand
and use newly developed models for machine learning. In their work, different types of
machine learning algorithms (linear regression, support vector machines, decision tree,
and random forest) and related frameworks (Tensorflow, H2O, Caffe, PyTorch, Microsoft
Cognitive Toolkit, etc.) were examined by the data of IoT systems. The optimal selection of
the machine learning frameworks for applying various models was PyTorch and Tensorflow,
among the others [22].
Our work differs from the previous studies in four important aspects. (i) It proposes
novel predictive models to predict energy consumption in IoT-based smart buildings. (ii)
It is the first study that uses both the tri-layered neural network (TNN) and maximum
relevance minimum redundancy (MRMR) algorithms together for the prediction of cooling
and heating loads in buildings. (iii) Our study is also original in that it proposes a multitar-
get learning solution, unlike the traditional single-target learning studies. (iv) Our method
achieved better performance than the state-of-the-art methods on the same dataset.
3. Proposed Model
3.1. Description
This study proposes novel machine learning models for the prediction of cooling
and heating loads in IoT-based smart buildings. It is the first study that uses both the
tri-layered neural network (TNN) and maximum relevance minimum redundancy (MRMR)
algorithms together to predict energy consumption in buildings. Our study is also original
in that it proposes a multitarget learning solution that predicts two outputs: heating load
(Y1) and cooling load (Y2), unlike the traditional single-target learning studies.
Figure 1 shows the general overview of the proposed model. An energy efficiency
dataset is analyzed by using some data-preprocessing techniques. Although the concept
of symmetry is widely used in many topics, it is almost not discussed related to the dis-
tribution of building features for the prediction of energy consumption based on cooling
and heating loads. After data analysis, the feature-selection algorithms, namely maximum
relevance minimum redundancy (MRMR), F-test, and Regressional Relief version-F (RReli-
efF), are used for the mentioned dataset features. Based on [23], MRMR was finally chosen
as the feature-selection algorithm in all experiments of this work, which uses an incre-
mental greedy strategy. After the feature-selection step in the proposed model, Bayesian
optimization is used to tune the hyperparameters of a model on a validation dataset, e.g.,
in GPR, for fitting the model. The improvement of the acquisition function is expected
per second plus. It is regarded for a number of iterations in the implementation of this
model. Moreover, in the next step, the k-fold cross-validation technique is used to partition
the related data into folds and estimate the accuracy of each fold to decrease the risk of
underfitting or overfitting.
Symmetry
Symmetry 2022,
2022, 14, 155314, x FOR PEER REVIEW 5 of 26 5 of 24
Figure
Figure 1. The
1. The proposed
proposed modelininthe
model the IoT
IoT environment.
environment.
The k-fold cross-validation is a technique that randomly divides the dataset into
k equal-sized subparts (called folds). At each step, the k-th part of the dataset is regarded
as the validation data for testing the model, and the remaining k − 1 subparts are used
as training data to construct a classifier. This process is repeated k times such that all the
Symmetry 2022, 14, x FOR PEER REVIEW 6 of 26
The k-fold cross-validation is a technique that randomly divides the dataset into k
Symmetry 2022, 14, 1553 equal-sized subparts (called folds). At each step, the k-th part of the dataset is regarded 6 of as
24
the validation data for testing the model, and the remaining k − 1 subparts are used as
training data to construct a classifier. This process is repeated k times such that all the
subparts are
subparts are successively
successively employed
employed for for validation.
validation. In In the
the end,
end, the
the kk results from the
results from the folds
folds
are averaged to determine performance.
are averaged to determine performance.
The proposed
The proposedapproach
approachassesses
assessestenten different
different machine
machine learninglearning regression
regression algo-
algorithms,
rithms, namely bagged tree (BaT), fine tree (FT), boosted tree
namely bagged tree (BaT), fine tree (FT), boosted tree (BoT), coarse tree (CT), medium(BoT), coarse tree (CT), me-
dium
tree tree tri-layered
(MT), (MT), tri-layered neural network
neural network (TNN), Gaussian
(TNN), Gaussian process regression
process regression (GPR),
(GPR), stepwise
stepwise
linear linear regression
regression (SLR), linear (SLR), linear regression
regression (LR), and
(LR), and support support
vector vector(SVR)
regression regression
with
(SVR) with various parameters by training 60 models in several
various parameters by training 60 models in several experiments. After that, performance experiments. After that,
performance evaluations of these algorithms are made in terms
evaluations of these algorithms are made in terms of different metrics, including mean- of different metrics, in-
cluding mean-square error (MSE), MAE, and root-mean-square
square error (MSE), MAE, and root-mean-square error (RMSE). MAE takes the absolute error (RMSE). MAE takes
the absolute
difference difference
between thebetween
actual andthe actual
predicted and values
predictedandvalues
averages and averages
it across ittheacross the
dataset.
dataset.the
Hence Hence
lowerthe lower
MAE MAEthe
means means
highertheaccuracy
higher accuracy
of a model. of aThemodel.
TNNThe TNNis model
model selected is
selected
as as the
the best best predictor
predictor to maketopredictions
make predictions for cooling
for cooling load and load and heating
heating load inload in IoT-
IoT-based
based buildings,
smart smart buildings, returning
returning the energy
the energy consumption
consumption to thetoserver
the server
nodenode
and and notifying
notifying the
the IoT devices.
IoT devices.
To
To have
have aa better
better understanding
understanding of of the
the proposed
proposed model,
model, an an example
example architecture
architecture is
shown in in Figure
Figure2.2.InIn this
this model,
model, by connecting
by connecting the devices
the IoT IoT devices and communication
and communication mod-
modules
ules inside inside a smart
a smart building,
building, the extracted
the extracted knowledge
knowledge fromfrom datadatacan can be delivered
be delivered to theto
the
cloudcloud through
through thethe Wi-Fi
Wi-Fi module
module totogenerate
generatenotifications
notificationsand andmaybe
maybe alarms
alarms for smart
devices (especially air-conditioning systems and IoT heating) and also for occupants (by
e-mail and
and SMS)
SMS)through
throughdifferent
differentIoTIoTdevices
devices such as as
such a smartwatch,
a smartwatch, smartphone,
smartphone, laptops,
lap-
PDAs, and so on. Here, symmetrical connections are assumed.
tops, PDAs, and so on. Here, symmetrical connections are assumed. After the prediction After the prediction of
heating
of heatingload andand
load cooling loadload
cooling by anbyintelligence
an intelligencemodel, the energy-consumption
model, the energy-consumption estimation
esti-
is returned
mation to the server
is returned to thenode
serverto node
notifytothe IoT devices,
notify e.g., IoT e.g.,
the IoT devices, air conditioning and IoT
IoT air conditioning
heating,
and IoT and then and
heating, takethen
the necessary actions foractions
take the necessary balancing energy consumption
for balancing inside the
energy consumption
building.
inside the building.
Figure 2.
Figure 2. Model
Model architecture
architecture in
in the
the IoT
IoT environment.
environment.
3.2. Properties
Machine learning is one of the most important techniques that implements symmetry
in computer science. The mentioned problem in this research is considered as a regression
problem since the output attributes (heating load and cooling load) contain continuous data.
Symmetry 2022, 14, 1553 7 of 24
The heating load (HL) is the amount of heat energy that is considered for an environment
to keep its temperature in a satisfactory manner for the residents. The cooling load (CL)
of a building is the amount of energy that is caused by energy transferred through the
building envelope (walls, floor, roof, etc.) and energy generated by occupants, lights, and
equipment. They are based on the principle that the energy required for space cooling
and heating primarily depends on the difference in temperatures between outdoors and
indoors. Both are very sensitive to the design and the operation of the buildings and are to
be managed based on several physical parameters such as temperature, relative humidity,
and air velocity within the environment. The HL and CL are also named thermal loads and
are influenced by different physical factors, especially the construction features of buildings.
Each building is regarded as a whole block from the viewpoint of a heat network, which
means the heating and cooling loads of a building are influenced by several physical factors
such as the building itself (i.e., geometry, layout, construction, mechanical equipment), the
location, the climate, and the residents. They play major roles in the financial cost according
to the different seasons. If the heating and cooling loads of a building are to be predicted,
it is important to know the influence of these factors. The prediction of the HL and CL
of a building is essential for planning the efficient next-day operation of air conditioning,
ventilation, and heating equipment. In this context, the objective of this study is to build
an intelligent model that predicts HL and CL under different input assumptions such as
surface area, height, and orientation of buildings.
3.3. Algorithm
Algorithm 1 presents the pseudocode of the proposed model for the prediction of
the cooling load and heating load. First, the data are prepared by considering the smart
Symmetry 2022, 14, 1553 8 of 24
building parameters. After that, data preprocessing and analysis are undertaken using
the dataset such that irrelevant, redundant, and noisy data are eliminated. Next, a feature
rating is determined for each feature by using the MRMR algorithm. The most important
features are selected and data are prepared for learning. After that, the predictive models
are built by using the TNN algorithm separately for heating and cooling loads. Finally, the
outputs are predicted by the models for each of the test query data.
4. Experimental Studies
4.1. Experiments
In this study, we designed four experiments in order to provide a deep analysis. The
first experiment is related to predicting heating load (Y1) considering 70% training set
and 30% testing set from the original data. The second experiment also focused on the
prediction of heating load (Y1), but in this case, the 5-fold cross-validation technique was
used. Similarly, in the third experiment, for the prediction of cooling load (Y2), 70% of
the dataset and 30% of the dataset were considered as the training set and testing set,
respectively. In addition, for predicting cooling load (Y2) in the fourth experiment, 5-fold
cross-validation was used.
The proposed model was implemented in MATLAB® Online™ R2022a, which is
accessible from a web browser, is automatically updateable to the latest version, is a
consistent platform with the latest features, and is fully integrated with drives.
As evaluation criteria, mean absolute error (MAE), mean-squared error (MSE), and
root-mean-square error (RMSE) were utilized. MAE depends on the mean of the difference
between predictions and real values, as given in Equation (1). MSE is the sum of the square
error between the predicted output and actual output, as given in Equation (2). RMSE is
another index reflecting the difference between actual and predicted values, as given in
Symmetry 2022, 14, 1553 9 of 24
Equation (3). Based on these evaluation metrics, the best model was selected and used for
the prediction.
1 n
MAE = ∑ | Pi − Oi | (1)
n i =1
1 n
n i∑
MSE = ( Pi − Oi )2 (2)
=1
s
1 n
n i∑
RMSE = ( Pi − Oi )2 (3)
=1
where n is the number of samples, Pi is the predicted value, and Oi is the observed value.
The features, their descriptions, and statistical information are included in Table 3.
Relative compactness (RC) indicates the ratio of the surface area (A) to the corresponding
volume (V) in the building and is calculated by the following formula: RC = 6V2/3 /A.
The shapes of the buildings with their corresponding RC values are shown in Figure 3.
The glazing area (GA) represents the overall area measured through the rough opening,
including the glazing, sash, and frame. In other words, GA is the total area of the wall,
which is glass. GA affects the cooling and heating conditions of the building since it is
exposed to external factors such as sun, wind, snow, and others. In the dataset, there are
four kinds of glazing areas with different percentages of the floor area: 0%, 10%, 25%,
and 40%. Glazing area distribution (GAD) indicates the distribution of the GA within the
whole building. The dataset has six different distribution scenarios for each glazing area:
(i) uniform: with 25% glazing on each side; (ii–v) north, east, south, and west: 55% in the
corresponding direction and 15% on the remaining sides; (vi) no glazing areas. Skewness
in Table 3 is a measure of the symmetry of the distribution for the related feature.
Std.
Features Descriptions Unit Type Min Max Mean Mode Median Skewness
Dev.
Relative
X1 - Input 0.620 0.980 0.7642 0.980 0.750 0.106 0.496
Compactness
X2 Surface Area m2 Input 514.500 808.500 671.708 514.500 673.750 88.086 −0.130
X3 Wall Area m2 Input 245.000 416.500 318.500 294.000 318.500 43.626 0.533
X4 Roof Area m2 Input 110.250 220.500 176.604 220.500 183.750 45.166 −0.163
Symmetry 2022, 14, 1553 10 of 24
Table 3. Cont.
Std.
Features Descriptions Unit Type Min Max Mean Mode Median Skewness
Dev.
Overall
X5 m Input 3.500 7.000 5.250 7.000 5.250 1.751 0.000
Height
X6 Orientation - Input 2.000 5.000 3.500 2.000 3.500 1.119 0.000
X7 Glazing Area m2 Input 0.000 0.400 0.234 0.100 0.250 0.133 −0.060
Glazing Area
X8 - Input 0.000 5.000 2.812 1.000 3.000 1.551 −0.089
Distribution
Y1 2022, Heating
Symmetry 14, x FOR load kWh/m2
PEER REVIEW Output 6.010 43.100 22.307 15.160 18.950 10.090 0.360
11 of 26
Y2 Cooling load kWh/m2 Output 10.900 48.030 24.588 21.330 22.080 9.513 0.400
Figure Selection
4.3. Feature 3 illustrates the general structure of the dataset, which varies in size and has
four glazing regions with five distribution scenarios and four orientations. Note that the
Some features in the dataset are more significant than the other ones. This study used
orientation consists of the north, east, south, and west. Each building form is composed of
three different feature-selection algorithms (MRMR, F Test, and RReliefF) in order to
18 elements (elementary cubes). The buildings were constructed with the most prevalent,
cross-check results and ensure the robustness of the selected feature set. The results are in
newest, and similar materials, as well as the lowest U-value: floors (0.860 W/m2 K; walls
Tables 4–6 for experiment 1, Tables 7–9 for experiment 2, Tables 10–12 for experiment 3,
and Tables 13–15 for experiment 4, respectively. These tables show weight values ob-
tained by the algorithms to examine the importance of each predictor. A large weight
value indicates that the corresponding predictor is more important. The parameter setting
of the F Test was determined as follows: the number of bins for binning continuous pre-
Symmetry 2022, 14, 1553 11 of 24
(1.780 W/m2 K), windows (2.260 W/m2 K), and roofs (0.500 W/m2 K). The buildings are
used for sedentary purposes (70 W) and are residential with a maximum of seven persons.
The interior design has the following properties: 60% moistness, 0.6 clothing, 300 Lux
illumination intensity, and 0.30 m/s airspeed. While the infiltration rate is 0.5 for air change
rate with a wind sensitivity of 0.25 air changes/h, internal gains were set at latent (2 W/m2 )
and sensible gain (5). Thermal characteristics were defined by a thermostat between 19 and
24 ◦ C, a mixed mode with a 95% efficiency, 10–20 h of operation on weekends, and 15–20 h
on weekdays.
It should be mentioned that splitting data into training and testing sets is an essential
step for evaluating a machine learning-based model. Typically, in such separations, a great
amount of data are used for training, and a small amount of data are used for testing. This
process can reduce the effect of data discrepancies and lead to a better understanding of
the model characteristics.
In the implementation, approximately 500 instances were used as training data, while
the remaining instances were considered as testing data in the first and third experiments
for predicting heating load and cooling load, respectively. Because there was no priority
among the original dataset rows and having the same underlying distribution, this work
used the common rule of 70% for training data and 30% for testing data in the preprocessing
phase of splitting in the first and third experiments. This ratio was preferred, with the aim
of providing comparability since some previous studies [25,36,39,40,42] used it. Moreover,
k-fold cross-validation was used in the second and fourth experiments for the evaluation
of the performances of the models.
F Test
Select Features
(Weight Value)
1 X2 597.2962
2 X5 396.4874
3 X4 392.4925
4 X1 280.5078
5 X3 132.4942
6 X7 13.8447
7 X8 3.2846
8 X6 0.0004
RReliefF
Select Features
(Weight Value)
1 X2 597.2962
2 X5 396.4874
3 X4 392.4925
4 X1 280.5078
5 X3 132.4942
6 X7 13.8447
7 X8 3.2846
8 X6 0.0004
MRMR
Select Features
(Weight Value)
1 X1 1.5395
2 X7 1.0968
3 X5 0.0004
4 X2 0.0003
5 X4 0.0003
6 X3 0.0003
7 X6 0
8 X8 0
F Test
Select Features
(Weight Value)
1 X1 Inf
2 X2 Inf
3 X5 603.1448
4 X4 600.1703
5 X3 202.7149
6 X7 24.7248
7 X8 1.4203
8 X6 0.0006
Symmetry 2022, 14, 1553 13 of 24
RReliefF
Select Features
(Weight Value)
1 X7 0.0528
2 X3 0.0407
3 X1 0.0254
4 X2 0.0247
5 X4 0.0032
6 X5 0
7 X8 −0.0271
8 X6 −0.0646
MRMR
Select Features
(Weight Value)
1 X1 1.1764
2 X7 0.8875
3 X5 0.1959
4 X6 0.1920
5 X4 0.1401
6 X8 0.1374
7 X2 0.1053
8 X3 0.0995
F Test
Select Features
(Weight Value)
1 X2 613.0155
2 X5 403.2400
3 X4 399.7051
4 X1 295.1582
5 X3 142.3529
6 X7 9.5858
7 X8 1.5007
8 X6 0.0506
RReliefF
Select Features
(Weight Value)
1 X3 0.0368
2 X1 0.0252
3 X2 0.0240
4 X7 0.0112
5 X4 0.0063
6 X5 0
7 X8 −0.0182
8 X6 −0.0478
Symmetry 2022, 14, 1553 14 of 24
MRMR
Select Features
(Weight Value)
1 X2 1.2353
2 X7 0.9096
3 X5 0.0004
4 X1 0.0003
5 X4 0.0003
6 X3 0.0002
7 X6 0
8 X8 0
F Test
Select Features
(Weight Value)
1 X1 Inf
2 X2 Inf
3 X5 624.5357
4 X4 620.3089
5 X3 217.5311
6 X7 15.1747
7 X8 0.2737
8 X6 0.0771
RReliefF
Select Features
(Weight Value)
1 X3 0.0317
2 X2 0.0192
3 X1 0.0189
4 X7 0.0047
5 X4 0.0022
6 X5 0
7 X8 −0.0089
8 X6 −0.0341
MRMR
Select Features
(Weight Value)
1 X1 1.1521
2 X7 0.8652
3 X5 0.2004
4 X6 0.1872
5 X4 0.1412
6 X8 0.1305
7 X2 0.1090
8 X3 0.1030
5. Experimental Results
5.1. Results
The comparison of different machine learning models based on RMSE, MSE, and MAE
are shown in Tables 16–19 for four experiments of this study. The results revealed that the
tri-layered neural network (TNN) algorithm performed better than other machine learning
algorithms for the prediction of cooling load and heating load. For example, in the first
Symmetry 2022, 14, 1553 15 of 24
experiment, TNN made predictions with small error values (kWh/m2 ): 0.43101, 0.18577,
and 0.28993 in terms of RMSE, MSE, and MAE, respectively. The TNN algorithm with
the MRMR feature-selection method obtained the best scores for heating load and cooling
load predictions in the first and fourth experiments, with 0.28993 and 0.53527 MAE values
(kWh/m2 ), respectively.
Figure 4 shows the critical difference (CD) diagram, which illustrates the average
rank of each model over four experiments. In the ranking process, each algorithm is rated
according to its MAE value on the corresponding dataset. This process is performed by
assigning rank 1 to the most accurate algorithm, rank 2 to the second best, and so on. In
the case of ties, the average of the ranks is assigned to each algorithm. Figure 4 is useful
to show the differences among various machine learning algorithms. The lower the rank
(further to the left), the better performance of a model under the MAE metric compared to
the others on average. In Figure 4, we observe that the TNN algorithm acquired the lowest
average ranking (1) on MAE, indicating that it is the best among all comparative algorithms.
TNN significantly outperformed its competitors on the MAE metric regarding predictive
accuracy. Therefore, we can safely say that TNN is superior to the others with the lowest
average ranking. The BaT and MT methods are tried, and similarly, the performances
Symmetry 2022, 14, x FOR PEER REVIEW 17 of 26of
LR and SLR are the same. In fact, the CT method was not performing well compared to
other methods.
Figure4.4.The
Figure Thecritical
criticaldifference
differencediagram
diagramon onthe
theMAE
MAEmetric.
metric.(TNN:
(TNN:tri-layered
tri-layeredneural
neuralnetwork,
network,
GPR:Gaussian
GPR: Gaussian process
process regression,
regression, BoT:
BoT: boosted
boosted tree,tree, FT: fine
FT: fine tree,tree,
BaT: BaT: bagged
bagged tree,coarse
tree, CT: CT: coarse
tree,
SVR:
tree,support vector regression,
SVR: support LR: linear
vector regression, LR:regression, SLR: stepwise
linear regression, linear regression,
SLR: stepwise and MT: me-
linear regression, and
dium tree).
MT: medium tree).
The
The“true
“trueresponse”
response”versus
versus“predicted
“predictedresponse”
response”graphs
graphsarearepresented
presentedininfour fourexper-
exper-
imentsininFigures
iments Figures5–8 5–8for
forheating
heatingload
loadand
andcooling
coolingload
loadprediction.
prediction.AAperfect
perfectregression
regression
modelhas
model hasaatrue
true response
response equal to to the
thepredicted
predictedresponse;
response;hence,
hence,allallpoints
pointslielie
onon a diagonal
a diag-
line.line.
onal TheThe
vertical distance
vertical of any
distance point
of any from
point thethe
from lineline
indicates
indicatesthetheerror of of
error prediction
predictionfor
this point. In this study, the predictions were scattered no farther from the line.
for this point. In this study, the predictions were scattered no farther from the line. There- Therefore,
it can
fore, be concluded
it can be concludedthat that
the models havehave
the models small errors
small in allinthe
errors allexperiments.
the experiments.
The “true response” versus “predicted response” graphs are presented in four exper-
iments in Figures 5–8 for heating load and cooling load prediction. A perfect regression
model has a true response equal to the predicted response; hence, all points lie on a diag-
onal line. The vertical distance of any point from the line indicates the error of prediction
Symmetry 2022, 14, 1553 17 of 24
for this point. In this study, the predictions were scattered no farther from the line. There-
fore, it can be concluded that the models have small errors in all the experiments.
Figure 5.
Figure 5. Predicted
Predictedresponse
responseversus
versustrue response
true forfor
response Y1Y1
in experiment 1. 1.
in experiment
Figure 6.
Figure 6. Predicted
Predictedresponse
responseversus
versustrue response
true forfor
response Y1Y1
in experiment 2. 2.
in experiment
Figure 7.
Figure 7. Predicted
Predictedresponse
responseversus
versustrue
trueresponse forfor
response Y2Y2
in in
experiment 3. 3.
experiment
Figure 8.
Figure 8. Predicted
Predictedresponse
responseversus
versustrue
trueresponse forfor
response Y2Y2
in in
experiment 4. 4.
experiment
Table 20. Comparison of the proposed method against the state-of-the-art methods on the same
dataset.
experimental results showed that our method outperformed the state-of-the-art methods
on the same dataset.
For future works, the proposed model can be combined with thermal sensors inside
the smart buildings to predict energy consumption not only based on the building features
but also considering the temperature from different areas of the building. Moreover, as this
study aims to balance the energy consumption in buildings precisely based on machine
learning predictions, it can be developed into a smart energy recycling system to trade off
cooling load and heating load in different areas of the building according to related features.
As another trend, it can be advised to present a novel system that applies the security
measurements for saving the related appliances of the building by considering the threshold
temperatures. In addition, mobile phone apps can be implemented for real-time remote
monitoring and controlling the energy consumption inside the buildings. In addition,
generating daily, weekly, or monthly reports is possible through IoT-based buildings to
have an efficient building energy management system (BEMS) through predictive models.
Author Contributions: Conceptualization, B.G. and D.B.; methodology, B.G., R.Y., D.B. and R.A.K.;
software, B.G.; validation, B.G., R.Y., D.B. and R.A.K.; formal analysis, D.B.; investigation, B.G.,
D.B. and R.A.K.; resources, B.G., R.Y. and D.B.; data curation, R.Y. and R.A.K.; writing—original
draft preparation, B.G. and D.B.; writing—review and editing, B.G. and D.B.; visualization, B.G.;
supervision, R.A.K., D.B. and R.Y.; project administration, R.A.K.; funding acquisition, R.Y. All
authors have read and agreed to the published version of the manuscript.
Funding: This research received no external funding.
Institutional Review Board Statement: Not applicable.
Informed Consent Statement: Not applicable.
Data Availability Statement: The “Energy Efficiency” dataset [24] is publicly available in the UCI
(University of California Irvine) dataset repository (https://archive.ics.uci.edu/ml/datasets/Energy+
efficiency, accessed on 30 June 2022).
Conflicts of Interest: The authors declare no conflict of interest.
References
1. Saravanan, G.; Parkhe, S.; Thakar, C.; Kulkarni, V.; Mishra, H.; Gulothungan, G. Implementation of IoT in production and
manufacturing: An Industry 4.0 approach. Mater. Today Proc. 2022, 51, 2427–2430. [CrossRef]
2. Chaudhary, S.; Johari, R.; Bhatia, R.; Gupta, K.; Bhatnagar, A. CRAIOT: Concept, Review and Application(S) of IoT. In Proceedings
of the 2019 4th International Conference on Internet of Things: Smart Innovation and Usages (IoT-SIU), Ghaziabad, India, 18–19
April 2019; pp. 1–4.
3. Dholu, M.; Ghodinde, K. Internet of Things (IoT) for precision agriculture application. In Proceedings of the 2018 2nd International
Conference on Trends in Electronics and Informatics (ICOEI), Tirunelveli, India, 11–12 May 2018; pp. 339–342.
4. Thakur, N.; Han, C.Y. Indoor localization for personalized ambient assisted living of multiple users in multi-floor smart
environments. Big Data Cogn. Comput. 2021, 5, 42. [CrossRef]
5. Parvathi Sangeetha, B.; Kumar, N.; Ambalgi, A.; Abdul Haleem, S.; Thilagam, K.; Vijayakumar, P. IOT based smart irrigation
management system for environmental sustainability in India. Sustain. Energy Technol. Assess. 2022, 52, 101973. [CrossRef]
6. Anand, L.; Kotha, M.; Kannan, N.; Kumar, S.; Meera, M.; Shawl, R.; Ray, A. Design and development of IoT based health
monitoring system for military applications. Mater. Today Proc. 2022, 1–4. [CrossRef]
7. Kaur, J.; Santhoshkumar, N.; Nomani, M.; Kumar Sharma, D.; Pai Maroor, J.; Dhiman, V. Impact of internets of things (IOT) in
retail sector. Mater. Today Proc. 2022, 51, 26–30. [CrossRef]
8. Nithya, N.; Nallavan, G.; Sriabirami, V. A study on surface electromyography in sports applications using IoT. In Intelligent
Data Communication Technologies and Internet of Things; Hemanth, D.J., Pelusi, D., Vuppalapati, C., Eds.; Lecture Notes on Data
Engineering and Communications Technologies; Springer: Singapore, 2022; Volume 101, pp. 855–867.
9. Motlagh, N.H.; Mohammadrezaei, M.; Hunt, J.; Zakeri, B. Internet of things (IoT) and the energy sector. Energies 2020, 13, 1–27.
10. Khanna, A.; Kaur, S. Internet of things (IoT), applications and challenges: A comprehensive review. Wirel. Pers. Commun. 2020,
114, 1687–1762. [CrossRef]
11. Mahdavinejad, M.; Rezvan, M.; Barekatain, M.; Adibi, P.; Barnaghi, P.; Sheth, A. Machine learning for Internet of things data
analysis: A survey. Digit. Commun. Netw. 2018, 4, 161–175. [CrossRef]
12. Huang, Y.; Li, C. Accurate heating, ventilation and air conditioning system load prediction for residential buildings using
improved ant colony optimization and wavelet neural network. J. Build. Eng. 2021, 35, 101972. [CrossRef]
Symmetry 2022, 14, 1553 23 of 24
13. Gaber, T.; El-Ghamry, A.; Hassanien, A. injection attack detection using machine learning for smart Iot applications. Phys.
Commun. 2022, 52, 101685. [CrossRef]
14. Mondal, T.; Mugaloremutt Jayadeva, S.; Pani, R.; Subramanian, M.; Ashokkumar, P.; Sumana, B. E Marketing strategy in health
care using IoT and machine learning. Mater. Today Proc. 2022, 56, 2087–2091. [CrossRef]
15. Siaterlis, G.; Franke, M.; Klein, K.; Hribernik, K.; Papapanagiotakis, G.; Palaiologos, S.; Antypas, G.; Nikolakis, N.; Alexopoulos,
K. An IIoT approach for edge intelligence in production environments using machine learning and knowledge graphs. Procedia
CIRP 2022, 106, 282–287. [CrossRef]
16. Ribeiro Junior, F.; Bianchi, R.; Prati, R.; Kolehmainen, K.; Soininen, J.; Kamienski, C. Data reduction based on machine learning
algorithms for fog computing in IoT smart agriculture. Biosyst. Eng. 2022, 1–17. [CrossRef]
17. Tiwari, D.; Bhati, B.; Nagpal, B.; Sankhwar, S.; Al-Turjman, F. An Enhanced intelligent model: To protect marine IoT sensor
environment using ensemble machine learning approach. Ocean. Eng. 2021, 242, 110180. [CrossRef]
18. Fard, R.; Hosseini, S. Machine Learning algorithms for prediction of energy consumption and IoT modeling in complex networks.
Microprocess Microsyst. 2022, 89, 104423. [CrossRef]
19. Cakir, M.; Guvenc, M.; Mistikoglu, S. The experimental application of popular machine learning algorithms on predictive
maintenance and the design of IIoT based condition monitoring system. Comput. Ind. Eng 2021, 151, 106948. [CrossRef]
20. Rahman, H.; Faruq, M.; Abdul Hai, T.; Rahman, W.; Hossain, M.; Hasan, M.; Islam, S.; Moinuddin, M.; Islam, M.; Azad, M. IoT
enabled mushroom farm automation with Machine Learning to classify toxic mushrooms in Bangladesh. J. Agric. Res. 2022, 7,
100267. [CrossRef]
21. Meghana, J.; Hanumanthappa, J.; Prakash, S. Performance comparison of machine learning algorithms for data aggregation in
social internet of things. Glob. Transit. Proc. 2021, 2, 212–219. [CrossRef]
22. Khan, A.; Al-Badi, A. Open source machine learning frameworks for industrial internet of things. Procedia Comput. Sci. 2020, 170,
571–577. [CrossRef]
23. Zhao, Z.; Anand, R.; Wang, M. Maximum relevance and minimum redundancy feature selection methods for a marketing
machine learning platform. In Proceedings of the 2019 IEEE International Conference on Data Science and Advanced Analytics
(DSAA), Washington, DC, USA, 5–8 October 2019; pp. 442–452.
24. Tsanas, A.; Xifara, A. Accurate quantitative estimation of energy performance of residential buildings using statistical machine
learning tools. Energy Build. 2012, 49, 560–567. [CrossRef]
25. Pachauri, N.; Ahn, C. Regression tree ensemble learning-based prediction of the heating and cooling loads of residential buildings.
Build. Simul. 2022, 1–15. [CrossRef]
26. Almutairi, K.; Algarni, S.; Alqahtani, T.; Moayedi, H.; Mosavi, A. A TLBO-Tuned neural processor for predicting heating load in
residential buildings. Sustainability 2022, 14, 5924. [CrossRef]
27. Zheng, S.; Lyu, Z.; Foong, L. Early prediction of cooling load in energy-efficient buildings through novel optimizer of shuffled
complex evolution. Eng. Comput. 2020, 38, 105–119. [CrossRef]
28. Xu, Y.; Li, F.; Asgari, A. Prediction and optimization of heating and cooling loads in a residential building based on multi-layer
perceptron neural network and different optimization algorithms. Energy J. 2022, 240, 122692. [CrossRef]
29. Yildiz, M.; Beyhan, F.; Uçar, M. Enerji verimli bina tasarımında kural tabanlı yöntem yardımıyla isıtma ve soğutma yüklerinin
tahminlemesi. OJAD 2021, 10, 73–80.
30. Zhou, G.; Moayedi, H.; Foong, L. Teaching–learning-based metaheuristic scheme for modifying neural computing in appraising
energy performance of building. Eng. Comput. 2021, 37, 3037–3048. [CrossRef]
31. Moayedi, H.; Mosavi, A. Suggesting a stochastic fractal search paradigm in combination with artificial neural network for early
prediction of cooling load in residential buildings. Energies 2021, 14, 1649. [CrossRef]
32. Hosseini, S.; Fard, R. Machine learning algorithms for predicting electricity consumption of buildings. Wirel. Pers. Commun. 2021,
121, 3329–3341. [CrossRef]
33. Gkioulekas, I.; Papageorgiou, L. Tree regression models using statistical testing and mixed integer programming. Comput. Ind.
Eng. 2021, 153, 107059. [CrossRef]
34. Chou, J.; Truong, D.; Tsai, C. Solving regression problems with intelligent machine learner for engineering informatics. Mathematics
2021, 9, 686. [CrossRef]
35. Altay, O.; Ulas, M.; Alyamac, K. DCS-ELM: A novel method for extreme learning machine for regression problems and a new
approach for the SFRSCC. PeerJ Comput. Sci. 2021, 7, 411. [CrossRef]
36. Goyal, M.; Pandey, M. A systematic analysis for energy performance predictions in residential buildings using ensemble learning.
Arab. J. Sci. Eng. 2021, 46, 3155–3168. [CrossRef]
37. Zhou, G.; Moayedi, H.; Bahiraei, M.; Lyu, Z. Employing artificial bee colony and particle swarm techniques for optimizing a
neural network in prediction of heating and cooling loads of residential buildings. J. Clean. Prod. 2020, 254, 120082. [CrossRef]
38. Xudong, L.; Shuo, L.; Fan, Q. Prediction of building energy consumption based on IPSO-CLSTM neural network. J. Auton. Intell.
2021, 3, 11–22.
39. Rashidifar, R.; Chen, F. Estimation of energy performance of buildings using machine learning tools. Eng. Engrxiv Arch. 2020, 1–6.
40. Moradzadeh, A.; Mansour-Saatloo, A.; Mohammadi-Ivatloo, B.; Anvari-Moghaddam, A. Performance evaluation of two machine
learning techniques in heating and cooling loads forecasting of residential buildings. Appl. Sci. 2020, 10, 3829. [CrossRef]
Symmetry 2022, 14, 1553 24 of 24
41. Guo, Z.; Moayedi, H.; Foong, L.; Bahiraei, M. Optimal modification of heating, ventilation, and air conditioning system
performances in residential buildings using the integration of metaheuristic optimization and neural computing. Energy Build.
2020, 214, 109866. [CrossRef]
42. Akgundogdu, A. Comparative analysis of regression learning methods for estimation of energy performance of residential
structures. Erzincan Univ. JST 2020, 13, 600–608.
43. Moayedi, H.; Mu’azu, M.; Foong, L. Novel swarm-based approach for predicting the cooling load of residential buildings based
on social behavior of elephant herds. Energy Build. 2020, 206, 109579. [CrossRef]
44. Namlı, E.; Erdal, H.; Erdal, H. Artificial intelligence-based prediction models for energy performance of residential buildings. In
Recycling and Reuse Approaches for Better Sustainability, 2nd ed.; Balkaya, N., Guneysu, S., Eds.; Springer: Cham, Switzerland, 2018;
Volume 1, pp. 141–149.
45. Le, L.; Nguyen, H.; Zhou, J.; Dou, J.; Moayedi, H. Estimating the heating load of buildings for smart city planning using a novel
artificial intelligence technique PSO-XGBOOST. Appl. Sci. 2019, 9, 2714. [CrossRef]
46. Tien Bui, D.; Moayedi, H.; Anastasios, D.; Kok Foong, L. Predicting heating and cooling loads in energy-efficient buildings using
two hybrid intelligent models. Appl. Sci. 2019, 9, 3543. [CrossRef]
47. Gkioulekas, I.; Papageorgiou, L. Piecewise regression analysis through information criteria using mathematical programming.
Expert Syst. Appl. 2019, 121, 362–372. [CrossRef]
48. Le, L.T.; Nguyen, H.; Dou, J.; Zhou, J. A comparative study of PSO-ANN, GA-ANN, ICA-ANN, and ABC-ANN in estimating the
heating load of buildings’ energy efficiency for smart city planning. Appl. Sci. 2019, 9, 2630. [CrossRef]
49. Razali, C.M.C.; Faruq, A. Comparative study between radial basis function neural network and random forest algorithm for
building energy estimation. In Proceedings of the Fifth Malaysia-Japan Joint International Conference (MJJIC 2018), Sepang,
Malaysia, 17–18 October 2018; pp. 3–4.
50. Yang, L.; Liu, S.; Tsoka, S.; Papageorgiou, L. A regression tree approach using mathematical programming. Expert Syst. Appl.
2017, 78, 347–357. [CrossRef]
51. Peker, M.; Özkaraca, O.; Kesimal, B. Enerji tasarruflu bina tasarımı için isıtma ve soğutma yüklerini regresyon tabanlı makine
öğrenmesi algoritmaları ile modelleme. JIT 2017, 10, 443–449.
52. Altun, M.; Ersöz, A.B.; Akçamete Güngör, A.; Pekcan, O. Application of artificial neural networks on building energy estimation.
In Proceedings of the International Conference on Engineering Technologies, Konya, Turkey, 7–9 December 2017; pp. 1–4.
53. Yang, L.; Liu, S.; Tsoka, S.; Papageorgiou, L. Mathematical programming for piecewise linear regression analysis. Expert Syst.
Appl. 2016, 44, 156–167. [CrossRef]
54. Ertugrul, Ö.F.; Kaya, Y. Smart city planning by estimating energy efficiency of buildings by extreme learning machine. In
Proceedings of the 2016 4th International Istanbul Smart Grid Congress and Fair (ICSG), Istanbul, Turkey, 20–21 April 2016;
pp. 1–5.
55. Castelli, M.; Trujillo, L.; Vanneschi, L.; Popovič, A. Prediction of energy performance of residential buildings: A genetic
programming approach. Energy Build. 2015, 102, 67–74. [CrossRef]
56. Cheng, M.; Cao, M. Accurately predicting building energy performance using evolutionary multivariate adaptive regression
splines. Appl. Soft Comput. 2014, 22, 178–188. [CrossRef]
57. Nebot, À.; Mugica, F. Fuzzy approaches improve predictions of energy performance of buildings. In Proceedings of the 3rd
International Conference on Simulation and Modeling Methodologies, Technologies and Applications, Reykjavík, Iceland, 29–31
July 2013; pp. 504–511.
58. Witten, I.H.; Frank, E. Data Mining: Practical Machine Learning Tools with Java Implementations, 3rd ed.; Morgan Kaufmann: San
Francisco, CA, USA, 2000; pp. 191–303.
Reproduced with permission of copyright owner. Further reproduction
prohibited without permission.