<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Smart Building Energy and Comfort Management Based on Sensor Activity Recognition and Prediction</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Francesca Marcello, Virginia Pilloni Department of Electrical and Electronic Engineering - University of Cagliari - Italy National Telecommunication Inter University Consortium - Research Unit of Cagliari -</institution>
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <fpage>31</fpage>
      <lpage>37</lpage>
      <abstract>
        <p>-Thanks to Building Energy and Comfort Managements (BECM) systems, it is possible monitor and control buildings with the aim to ease appliance management and at the same time ensuring efficient use of them from the energetic point of view. To develop such kind of systems, it is necessary to monitor users' habits, learning their preferences and predicting their sequences of performed activities and appliance usage during the day. To this aim, in this paper a system capable of controlling home appliances according to user preferences and trying to reduce energy consumption is proposed. The main objective of the system is to learn users' daily behaviour and to be able to predict their future activities basing on statistical data about the activities they usually perform. The system can then execute a scheduling algorithm of the appliances based on the expected energy consumption and user annoyance related with shifting the appliance starting time from their preferred one. Experimental results demonstrate that thanks to the scheduling algorithm energy cost can be reduced of 50.43% and 49.2% depending on different tariffs, just by shifting the use of the appliance to time periods of non-peak hours. Scheduling based on probability evaluation of preferred time of usage of the appliances allows to still obtain evident energy savings even considering the errors on predicted activities. Index Terms-Activity Recognition; Activity Prediction; Energy Management; Comfort Management; Smart Building</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION</title>
      <p>
        Smart buildings are characterised by the presence of sensors,
actuators and smart devices that give the opportunity to
monitor and control, either manually or automatically, key
equipment within buildings [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. This is the concept behind
Smart Building Energy and Comfort Management (BECM)
systems [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ][
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. As a matter of fact, domestic electricity usage
accounts for about 40% of the global energy consumption
and contributes over 30% of total greenhouse gas
emissions [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Nevertheless, user comfort is crucial when policies
of Demand-Side Management (DSM) are put in place [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>
        In such an intelligent scenario, one of the major goals is to
provide users with tools that support cost-effective solutions
to appliance management, which: i) demand the lowest effort
in terms of training and management, dynamically adapting to
user requirements, and ii) take into account user habits so that
appliance management decisions do not conflict with them,
causing a disaffection that may lead the user to turn off the
system [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        Currently, most of the literature considers user comfort as
a set of hard constraints on appliance usage, which are a
priori set considering general statistics [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ][
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. This approach
neglects the fact that users are likely not only to have different
subjective requirements with respect to the others, but they also
dynamically change over time.
      </p>
      <p>
        In this paper, user preferences and habits about appliance
usage are continuously monitored, recognised and predicted,
by means of a BECM system based on sensors deployed
inside the reference building. The system merges two
previous studies about activity recognition [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and appliance
scheduling [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], by including the crucial activity prediction
functionality. Indeed, activity prediction enables appliance
scheduling by predicting which appliances are likely to be
used in the following hours and scheduling them in advance,
so that their starting time is shifted to off-peak times when
electricity tariffs are lower.
      </p>
      <p>
        The main contributions provided by this paper can be
summarised as follows:
an activity recognition algorithm used to model user
profiles, which was first proposed in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and whose
accuracy is here improved;
an activity prediction algorithm is proposed, along with
statistics about mutual correlation of activities.
Accordingly, appliance usage is predicted for a specified time
window (test were run for a time window of 6 hours);
user profile and activity prediction are incorporated into
the user-annoyance-aware energy-cost-saving appliance
scheduling algorithm proposed in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>To the best of the authors’ knowledge, this is the first
comprehensive system to use sensor-based activity prediction and
occupants’ preference inference, and integrate them into a
BECM. Accordingly, based on simulations of the system on
a real dataset, this paper further analyses how the proposed
system affects energy-related costs.</p>
      <p>The remainder of the paper is organised as follows. Section
II presents past works and the required background. In Section
III an overview of the proposed system model is provided.</p>
      <p>Section IV describes the reference use case considered to
test the performance of the system. Finally, in Section V
a performance analysis is provided. Conclusions and final
remarks are drawn in Section VI.</p>
      <p>Copyright © 2020 for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).</p>
      <p>II. RELATED WORKS</p>
      <p>Smart technologies can be used in all kinds of different
buildings (i.e., residential, office, and retail sectors) to improve
the comfort and the safety of people in their home, concerning
various topics, from healthcare and providing living assistance,
to environmental monitoring and ensuring energy saving.</p>
      <p>
        Accordingly, BECM systems have the objective of combining
power consumption minimisation while preserving user
comfort [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ][
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. This issue has been addressed by researchers
from many different perspectives. The authors in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], present
a review of control systems for energy management and
comfort in buildings, where the quality of the comfort is
considered mostly dependent on thermal comfort, indoor air
quality and visual comfort, explaining current and conventional
controller solutions and their disadvantages. Also in [12][13]
two different solutions for building management considering
user preference in terms of indoor environment comfort are
presented. In [14], an algorithm for thermostatically controlled
household loads based on price and consumption forecasts of
grid energy is presented. The issue of scheduling appliances
according to user preferences was also addressed by [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], where
Quality of Experience (QoE) is measured as a function of the
interval between the preferred and proposed appliance starting
time for switching controlled loads (e.g., washing machines
and clothes dryers), and as a function of the interval between
the preferred and proposed temperature for thermostatically
controlled loads (e.g., conditioning systems and water heaters).
      </p>
      <p>It is evident that user preferences and habits severely affect
results of BECM systems. For this reason, in recent years
researchers have started to observe users’ behaviour, in order to
infer their habits and preferences. The monitoring of activities
of people in their home can be done by analysing data that
can be gathered with different technologies. Different studies
proposed solutions based on using cameras and wearable
sensors or gathering data provided by phone accelerometer
and gyroscope [15][16]. These solutions are not very practical
in home scenarios where people are often not inclined to
accept those devices. To monitor what activities people are
performing in their house, non-intrusive sensors are often
preferred: typical devices that are installed in the environment
are motion sensors, door sensors or temperature and pressure
sensors [17]. The data collected from sensors inside resident
houses are analysed using data mining and machine learning
techniques to build activity models that are used as the basis
of behavioural activity recognition.</p>
      <p>With reference to modelling and classification methods,
researchers have investigated the recognition of resident
activities using a variety of mechanisms, such as Na¨ıve Bayes
classifiers, Markov models, and dynamic Bayes networks. In
multiple cases, in spite of its simple design and simplified
assumptions, Na¨ıve Bayes classifiers often work much better
than expected, especially when a specific group of sensors can
easily be identified as characteristic of a certain activity [18].</p>
      <p>Sensors
s3
s1
s2
s4</p>
      <p>Event
Detection
Home</p>
      <p>Profile
User Interface</p>
      <p>Activity
Recognition
Activity
Prediction
Appliance
Scheduling</p>
      <p>User Profile</p>
      <p>BECM System</p>
      <p>Actuators</p>
      <p>In this paper, the considered scenario is that of a BECM
system, based on distributed smart home sensor networks.</p>
      <p>
        An overview of this system is represented in Figure 1. More
specifically, sensors are used to make observations on users
and their interactions with the surrounding environment; the
combinations of these interactions, which are detected by
the Event Detection module as events, provide meaningful
information on users’ activities. As described in more details
in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], after a training period the Activity Recognition module
can correctly recognise activities with an accuracy of more
than 80% on average. Accordingly, a correlation can be
observed between detected events and activities, which can
be used to infer users’ habits. These habits, stored in the User
Profile module, are used with information about previously
recognised activities by the Activity Prediction module, with
the aim to predict the following activities that are expected to
be carried out by the users. The information related to activity
prediction, user profile and home profile are then processed
by the Appliance Scheduling module to find a scheduling
for controllable appliances that corresponds to the best
tradeoff between energy cost reduction and user comfort. Note
that the Home Profile module stores home-related information
collected by sensors and/or through user interfaces, such as
electricity tariffs, and which appliances are installed along with
their energy consumption characteristics.
      </p>
      <p>In the following, more details will be provided about the
core modules of the proposed BECM system, i.e. the Activity
Recognition module, the Activity Prediction Module and the
Appliance Scheduling module.</p>
      <sec id="sec-1-1">
        <title>A. The Activity Recognition Module</title>
        <p>
          The activity recognition approach used in this paper was
earlier proposed in [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. It encompasses two phases: i) training,
during which the system learns the association between
activities and their instances, i.e. sequences of detected events; ii)
running, which uses the probabilistic model created during the
training phase to associate an activity to the detected events.
a) Training phase: for each k-th activity instance
Ijk of activity Aj observed during an
observation time window OA, a feature vector
F jk(Ijk) = [f1jk; f2jk; : : : ; fijk; : : : ] is computed with
the rates of detected event occurrences, that is the number
of events related to one specific sensor with respect to
the total number of events observed considering all the
sensors within OA. Then, for each activity Aj , a model
vector mj = meank(F jk) = [f 1jk; f 2jk; : : : ; f ijk] is
defined such that the rates of event occurrences of its
sensors is the average rate for all the observed instances
associated with the same activity.
b) Running phase: it relies on the use of a sensor-based
windowing implementation [18], according to which
sequences of detected events are divided into subsequences
using an observation window OW (t) starting at time t,
which contains a certain number of events equal to its
size W. Each subsequence z of events is then associated
with a feature vector F zW , computed analogously to mj .
Finally, the sequences of detected events are classified
based on their probability to belong to a given activity.
        </p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>For further details the reader is referred to [9].</title>
      <sec id="sec-2-1">
        <title>B. The Activity Prediction Module</title>
        <p>The main task of the the Activity Prediction module is to
provide, for the next Appliance Scheduling module, a possible
scenario in time t ahead in the future, that explains the
probabilities of every activity that can begin in t, calculated thanks
to information about all the activities happened and recognised
before the current time t0. Starting from the assumption that
activities are linked between one another, so that when an
activity Ai occurred at time ti it is possible to evaluate the
probability of another activity Aj to be performed by the
user in a different time tj , the module has to evaluate the
probability in t for every single activity Aj .</p>
        <p>During the training phase, two different kind of probabilities
have been evaluated for every activity under consideration:
p(Ai(ti)) indicate the prior probability for activity Ai of
starting at time ti;
p((Aj jAi)(k t)) indicate the conditional probability of
activity Aj of being carried out since activity Ai has
started (k t) before.</p>
        <p>The period between the current time t0 and the time t in which
the prediction is needed, is split in different k time intervals
of duration ( t).</p>
        <p>All the activities that have been recognised before the
current time t0 are stored with their respective starting time
ti, so that it is known how many time intervals outdistance
every ti up to t, and it is possible to calculate the conditional
probability of activity Aj in t considering all the activities Ai
that occurred in ti. Then, for every (k t) between t0 and t,
the probability of Aj to be happening in t is calculated with
respect to the fact that Ai could be happening in (k t). These
two contributions are added together according to the equation
below:
p(Aj (t)) =</p>
        <p>X p((Aj jAi)(
i
t
t
t
i ))+
X X p((Aj jAi)(k t)) p(Ai(t0 + k t))</p>
        <p>i k
with k 2
0; (t
t0)= t .
(1)</p>
        <p>Every activity coincides with one of the appliances in the
house, so that the probability for each activity in t, calculated
as explained, is then translated in the probability of one
appliance to be used at time t. Therefore, the output from
this module is going to enable the scheduling algorithm to
make the validation necessary for the scheduling of
controllable appliances and for evaluating energy consumption. The
algorithm decides to schedule at time t only those appliances
corresponding to activities that have their value of probability
higher than a certain threshold.</p>
      </sec>
      <sec id="sec-2-2">
        <title>C. The Appliance Scheduling Module</title>
        <p>
          The appliance scheduling algorithm is based on the smart
home energy management system proposed in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. This system
dynamically shifts tasks of controlled appliances to times when
it is more convenient (e.g. off-peak times), after finding a trade
off between the overall energy cost and the annoyance
experienced by users as a consequence of this shift. Accordingly,
appliances are subdivided into three groups:
G1: not controlled loads, i.e., small loads such as lights, and
not controlled high loads such as fridges;
G2: switching controlled high loads, such as washing
machines and dishwashers;
G3: thermostatically controlled high loads, i.e. appliances that
are controlled by a thermostat, such as water heaters.
The energy consumption for an appliance i is defined as
Eicons = Picons tiexec, where Picons is its power consumption
and tiexec is its execution time. While for switching controlled
loads the execution time corresponds to a complete working
cycle, for thermostatically controlled ones it depends on
appliance characteristic parameters and temperature conditions.
As described in more details in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], the execution time of G3
appliances to reach a temperature Tiexp is defined as
texec (Tiexp) =
i
        </p>
        <p>RiCi ln</p>
        <sec id="sec-2-2-1">
          <title>Tiout</title>
        </sec>
        <sec id="sec-2-2-2">
          <title>Tiout</title>
          <p>Tiexp + RiPiheat</p>
        </sec>
        <sec id="sec-2-2-3">
          <title>Tiin + RiPiheat</title>
          <p>(2)
where Tiout(t) and Tiin(t) Piheat are the initial outside and
inside temperature respectively, and Piheat, Ri and Ci are
characteristic parameters for the appliance. More specifically,
Piheat is the heat rate (in Watt), Ri is the equivalent thermal
resistance ( C/Watt) and Ci is the equivalent heat capacity
(Joule/ C). If the appliance is off, Piheat = 0.</p>
          <p>
            The appliance scheduling algorithm then schedules
appliances according to their related cost contribution value, which
includes both the energy consumption- and user
annoyancerelated costs. User annoyance is computed according to the
results of a survey, completed by 427 people, as reported in [
            <xref ref-type="bibr" rid="ref6">6</xref>
            ].
          </p>
          <p>For G2 appliances, the cost to start at time tiST and end at
time tiEND = tiST + tiexec is defined as</p>
          <p>CiG2(tiST ) =</p>
        </sec>
        <sec id="sec-2-2-4">
          <title>Picons tiST</title>
          <p>where (t) is the electricity tariff at time t, and tiST is
the relative satisfaction level for a time interval tiST = tiST
tiP T , which is in inverse proportion with the user annoyance
of shifting the appliance starting time. If tiST = 0, the
cost value CG2(tiST ) ! 1.</p>
          <p>i</p>
          <p>For G3 appliances, the cost to start at time tiST and end at
time tiEND = tiST + tiexec (Tiexp) is defined as</p>
        </sec>
        <sec id="sec-2-2-5">
          <title>TiST</title>
        </sec>
        <sec id="sec-2-2-6">
          <title>2 Picons</title>
          <p>+
( Tiexp)</p>
          <p>The algorithm for modelling the activities and then
discovering what the resident is doing is implemented and tested
using the Aruba real-word dataset from the CASAS smart
environment project of the Washington State University [19].
The data were collected from one smart apartment provided
with motion sensors, contact sensors in the doors or cabinets
and temperature sensors. The events decoded by these sensors
are significant for recording elementary actions that people are
performing, while the aggregation of these elementary actions
defines one activity of interest. To correctly evaluate the
correlation between the sets of events and the observed user’s
activities, without interference from other people, a dataset
with only one resident living in the home was considered.</p>
          <p>To evaluate the proposed system, in addition to the activities
of the Aruba real-word dataset, some other activities have been
simulated as performed by the same user inside this home
scenario, using the same kind of sensors already installed in
the house. The simulated activities are the following three
activities not reported in the real dataset: using the washing
machine, using the dish washer, taking a shower, which, along
with the activity of washing dishes by hand, causes the water
heater to turn on. Taking a shower is supposed to be carried
out by the user in the bathroom, therefore involving the motion
sensors already installed close to this room and assuming that
hot water is used, thus causing the water heater to switch on.
The use of the dish washer is supposed to be performed in
the kitchen, involving the sensors in that area and simulating
the presence of a specific cabinet containing the appropriate
detergent and with a magnet sensor to understand its opening
or closing, so that the activity of loading the dish washer could
be recognised concluded only when this cabinet had been
closed. The same thing was done for the activity of using the
washing machine, by setting up another specific cabinet with
its magnetic sensor, and placing it in a room of the house
where there are not other linked activities.</p>
          <p>The system needs a correspondence between some of the
activities and the use of certain household appliances, in order
to predict energy consumption based on the probability of
the activities to occur. Table I shows the considered activities
along with their corresponding appliance owned by the user.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>V. EXPERIMENTS AND RESULTS</title>
      <sec id="sec-3-1">
        <title>A. Activity Recognition and Prediction Algorithm</title>
        <p>
          With respect to only the four activities corresponding to
controllable appliances, i.e. appliances belonging either to
G2 or G3, the recognition algorithm presented in [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] has an
accuracy of 100% in recognising the activities of taking the
shower and using the washing machine, while for the activity
of using the dish washer it has an accuracy of 66:7% and
for the activity of wash dishes by hand it gives an accuracy
of 69:7%. This result is due to the fact that these two last
activities are more difficult to recognize because they involve
many of the kitchen sensors, which are also associated with
other possible activities. The overall accuracy of the activity
recognition algorithm is of 83:2%.
        </p>
        <p>As for the prediction of future activities, the algorithm has
an overall accuracy of 67%. The activities more accurately
predicted are those with many samples and recurrent starting
time, like the activity “Taking a Shower”, because statistics
about them are quite significant. For other less frequent
activities, i.e “Wash Dishes”, the prediction is instead less
reliable.</p>
      </sec>
      <sec id="sec-3-2">
        <title>B. Scheduling Algorithm</title>
        <p>The algorithm has been compared with two different
situations with respect to the case where no scheduling is involved.</p>
        <p>There are then three possible scenarios:
the first one is the classic situation where appliances are
normally used by the resident and the scheduling is never
programmed (Without Scheduling Algorithm-WSA);
the second one is based on a perfect knowledge of
the time in which the user wants to use some of the
appliances in the house (Scheduling Based on Perfect
Time-SBPT). This case coincides with the possible
scenario in which the user instructs the system about the
exact moment they want the appliance to start, but it
has the disadvantage of requiring continuous interactions
between users and system;
the last one bases its scheduling evaluations on the
probability of using any of the appliance at time t,
calculated as explained in equation 1 (Scheduling Based
on Probability-SBP). This solution allows to avoid
interactions between users and the system, considering only
the system’s previous knowledge about user habits.
The training phase to obtain all the information about user’s
behaviours and preferences, and that allowed the system to
perform the calculations on the probabilities indicated in
subsection III-B, took into consideration two months of data
about performed activities. Due to the fact that the shortest
duration for the activities in exam is around 15 minutes, while
the longest activities can elapse for several hours, conditional
probabilities between activities was valuated choosing
duration of intervals ( t) equal to 15 minutes. The scheduling
algorithm was instead tested on one week of data. For every
interval of time t0 during the testing week, the algorithm
schedules appliances that are going to be used every k t time
intervals after t0, with k 2 N, trying to improve energy savings
and user’s comfort. Simulations were done considering time
intervals of 30 minutes and predicting future activities in t
up to 9 hours forward in the future, so that every half an
hour the scheduling algorithm could re-evaluate its scheduling
based on the new information about previously user performed
activities and with new calculations of probabilities p(Aj (t)).</p>
        <p>
          The obtained results were considered with respect to energy
consumption in one week, comparing the case with scheduling
in relation to the case of normal use of household appliances,
and evaluating if the scheduling could generate some kind of
annoyance for the user. The evaluation of the energy costs has
been made using two different tariffs listed in Table II, based
on some typical Italian tariffs. The annoyance rate is defined
as in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], in relation to a possible shifting of appliance starting
time or, with reference to the water heater, to a variation
in the water temperature with respect to the user preferred
temperature of use. Value 1 of annoyance indicates that there is
not any discomfort for the user in the change of time in which
the appliance was turned on, while a value of 5 indicates the
highest level of annoyance for the user. Annoyance levels are
modelled as a normal distribution with 15% deviation.
a certain value. Depending on the different tariff considered,
energy consumption was calculated to be decreased of 50:4%
with tariff 1 and of 49:2% with tariff 2, in contrast to the
energy consumption with a classic use of appliances and
energy over the week. As expected, greatest savings are
obtained when there is a greater pricing difference between
the higher cost range and the lower cost range. In particular,
thanks to the scheduling, there is an evident better use of the
water heater, since this appliance is scheduled and turned on
only for the strictly necessary duration of time to obtain the
water to be heated enough for when the resident needs to
use it. This result can be verified in Fig.3, which represents
the energy saving over the week differentiated by three of
the appliances of the house: the water heater, the washing
machine and the dish washer. Only those three appliances
are considered because they are the only ones owned in the
house that belong to groups G2 and G3 and that can be
scheduled: the other appliances possessed by the user are
part of G1 group. From Fig. 3 it is evident how most of
the savings come from the scheduling of the water heater,
while there is a lower incidence from washing machine and
dish washer. This is explained by the fact that the preferred
times of using those two appliances are already evaluated as
the best compromise between energy consumption and user
comfort, especially because in most cases they are very distant
in time compared to the periods of non-peak hours. In fact,
        </p>
        <p>
          Table III shows the results about energy saving compar- in Fig.2, where the average annoyance rate is presented, it is
ing the two cases with scheduling against the case without possible to observe how for every appliance the annoyance
scheduling. These results are obtained taking into account rate is always close to the lowest value of 1. The knowledge
the fact that cost savings are coming from a scheduling of of user behaviours has therefore guaranteed the scheduling of
switching controlled high loads to hours where the energy has the appliance with the best trade-off between energy costs and
lower prices and considering that there is a reduction in energy user preferences.
consumption due to a better optimisation in the usage of the A slightly different discussion has to be done with reference
water heater, which is switched on only at times of interest to the scenario in which the scheduling is evaluated based
for the user and not every time the temperature drops below on the probabilities of activities and, accordingly, on the
probabilities of using a certain appliance. Even in this case
there is an evident reduction in energy consumption during the
week, as shown in table III. Most of the saving come again
from the wiser use of the water heater thanks to the scheduling
only at appropriate time. Looking at Fig.2 it is possible to see,
however, how the annoyance rate reaches a higher level. This
is due to the fact that the use of the water heater is linked to
two different activities, as shown in Table I. While activity
6 is always easily recognised and predicted, and therefore
scheduled, activity 4 gives some problems because it is often
confused with other activities [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. Additionally, activity 4 is
an activity that the user does not carry out often so there is
not much statistical data on it. This last problem is common to
the other two activities in exam, and this explains why even
for this appliances there are higher level of annoyance rate
due to the fact that the prediction module has made an error
evaluating the probability of this activity to be performed. The
algorithm has otherwise proved that the prevision about future
activities can still ensure a good evaluation for the scheduling
when the statistical data are reliable.
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>VI. CONCLUSION AND FUTURE WORK</title>
      <p>This paper focuses on a solution for energy and comfort
management inside buildings, with the purpose of reducing
energy waste thanks to a proper control over appliances, while
on the same time ensure the well-being of users. To this aim,
a BECM system is proposed that integrates a solution for two
different problem: the first one concerns the needs for such a
system to be able to know users behaviour and preferences and
to predict usual activities; the second is about the necessity
to manage appliances with respect of that behaviours and
preferences and with respect of energy consumption.</p>
      <p>The system has been tested in a real scenario, evaluating
if the predictions were correct and proposing a coherent
scheduling that could guarantee energy savings. The obtaining
results show that, as expected, the scheduling of the appliances
can guaranteed energy savings, reducing consumption over
a week of at least 49:2% in comparison with classic use
of energy and appliances. The prediction module permitted
a quite accurate scheduling basing on probabilities, even if
some of the activities has given some problem due to the fact
that the statistic data about them were based of few instances.
Furthermore, it was possible to guarantee that the annoyance
rate was never too high, thus respecting user comfort.</p>
      <p>Future works will investigate the adaptability of the
proposed system to different real-case scenario, trying to improve
the prediction module considering a larger training phase
and more instances of the activities and corresponding use
of appliances. Furthermore, it will be evaluated how the
presence of Renewable Energy Sources could affect appliance
scheduling and improve energy savings.</p>
    </sec>
    <sec id="sec-5">
      <title>ACKNOWLEDGEMENTS</title>
      <p>This work was partially funded by the INSIEME MiSE
project, HORIZON 2020, PON 2014/2020 POS. 395, and by
the LEAPH project, POR FESR Sardegna 2014-2020, Asse 1,
Azione 1.1.3.
[12] ——, “Intelligent multi-objective optimization for building energy and
comfort management,” Journal of King Saud University-Engineering
Sciences, vol. 30, no. 2, pp. 195–204, 2018.
[13] M. Fayaz and D. Kim, “Energy consumption optimization and user
comfort management in residential buildings using a bat algorithm and
fuzzy logic,” Energies, vol. 11, no. 1, p. 161, 2018.
[14] P. Du and N. Lu, “Appliance commitment for household load
scheduling,” in PES T&amp;D 2012. IEEE, 2012, pp. 1–1.
[15] G. Bhat, R. Deb et al., “Online human activity recognition using
lowpower wearable devices,” in 2018 IEEE/ACM International Conference
on Computer-Aided Design (ICCAD). IEEE, 2018, pp. 1–8.
[16] M. M. Hassan, M. Z. Uddin et al., “A robust human activity recognition
system using smartphone sensors and deep learning,” Future Generation
Computer Systems, vol. 81, pp. 307–313, 2018.
[17] Y. Liu, L. Nie, L. Liu, and D. S. Rosenblum, “From action to activity:
sensor-based activity recognition,” Neurocomputing, vol. 181, pp. 108–
115, 2016.
[18] N. C. Krishnan and D. J. Cook, “Activity recognition on streaming
sensor data,” Pervasive and mobile computing, vol. 10, pp. 138–154,
2014.
[19] D. J. Cook, “Learning setting-generalized activity models for smart
spaces,” IEEE intelligent systems, vol. 2010, no. 99, p. 1, 2010.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>D.</given-names>
            <surname>Minoli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Sohraby</surname>
          </string-name>
          , and
          <string-name>
            <given-names>B.</given-names>
            <surname>Occhiogrosso</surname>
          </string-name>
          , “
          <article-title>Iot considerations, requirements, and architectures for smart buildings-energy optimization and next-generation building management systems</article-title>
          ,
          <source>” IEEE Internet of Things Journal</source>
          , vol.
          <volume>4</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>269</fpage>
          -
          <lpage>283</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A. I.</given-names>
            <surname>Dounis</surname>
          </string-name>
          and
          <string-name>
            <given-names>C.</given-names>
            <surname>Caraiscos</surname>
          </string-name>
          , “
          <article-title>Advanced control systems engineering for energy and comfort management in a building environment-a review,” Renewable and Sustainable Energy Reviews</article-title>
          , vol.
          <volume>13</volume>
          , no.
          <issue>6-7</issue>
          , pp.
          <fpage>1246</fpage>
          -
          <lpage>1261</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Shafie-Khah</surname>
          </string-name>
          and
          <string-name>
            <given-names>P.</given-names>
            <surname>Siano</surname>
          </string-name>
          , “
          <article-title>A stochastic home energy management system considering satisfaction cost and response fatigue</article-title>
          ,
          <source>” IEEE Transactions on Industrial Informatics</source>
          , vol.
          <volume>14</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>629</fpage>
          -
          <lpage>638</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>L.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Yan</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J. C.</given-names>
            <surname>Lam</surname>
          </string-name>
          , “
          <article-title>Thermal comfort and building energy consumption implications-a review,” Applied energy</article-title>
          , vol.
          <volume>115</volume>
          , pp.
          <fpage>164</fpage>
          -
          <lpage>173</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M. H.</given-names>
            <surname>Shoreh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Siano</surname>
          </string-name>
          et al.,
          <article-title>“A survey of industrial applications of demand response</article-title>
          ,
          <source>” Electric Power Systems Research</source>
          , vol.
          <volume>141</volume>
          , pp.
          <fpage>31</fpage>
          -
          <lpage>49</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>V.</given-names>
            <surname>Pilloni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Floris</surname>
          </string-name>
          et al., “
          <article-title>Smart home energy management including renewable sources: A qoe-driven approach</article-title>
          ,
          <source>” IEEE Transactions on Smart Grid</source>
          , vol.
          <volume>9</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>2006</fpage>
          -
          <lpage>2018</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Pooranian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Abawajy</surname>
          </string-name>
          et al.,
          <article-title>“Scheduling distributed energy resource operation and daily power consumption for a smart building to optimize economic and environmental parameters</article-title>
          ,
          <source>” Energies</source>
          , vol.
          <volume>11</volume>
          , no.
          <issue>6</issue>
          , p.
          <fpage>1348</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Rasheed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Javaid</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ahmad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Khan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            <surname>Qasim</surname>
          </string-name>
          , and
          <string-name>
            <given-names>N.</given-names>
            <surname>Alrajeh</surname>
          </string-name>
          , “
          <article-title>An efficient power scheduling scheme for residential load management in smart homes</article-title>
          ,
          <source>” Applied Sciences</source>
          , vol.
          <volume>5</volume>
          , no.
          <issue>4</issue>
          , pp.
          <fpage>1134</fpage>
          -
          <lpage>1163</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>F.</given-names>
            <surname>Marcello</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Pilloni</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Giusto</surname>
          </string-name>
          , “
          <article-title>Sensor-based early activity recognition inside buildings to support energy and comfort management systems</article-title>
          ,” Energies, vol.
          <volume>12</volume>
          , no.
          <issue>13</issue>
          , p.
          <fpage>2631</fpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S.</given-names>
            <surname>Merabti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Draoui</surname>
          </string-name>
          , and
          <string-name>
            <given-names>F.</given-names>
            <surname>Bounaama</surname>
          </string-name>
          , “
          <article-title>A review of control systems for energy and comfort management in buildings,” in 2016 8th International Conference on Modelling, Identification and Control (ICMIC)</article-title>
          . IEEE,
          <year>2016</year>
          , pp.
          <fpage>478</fpage>
          -
          <lpage>486</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>P. H.</given-names>
            <surname>Shaikh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. B. M.</given-names>
            <surname>Nor</surname>
          </string-name>
          et al.,
          <article-title>“A review on optimized control systems for building energy and comfort management of smart sustainable buildings,” Renewable and Sustainable Energy Reviews</article-title>
          , vol.
          <volume>34</volume>
          , pp.
          <fpage>409</fpage>
          -
          <lpage>429</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>