1. Introduction
From the beginning of the nineteenth century, social and economic development among sophisticated societies was triggered by the large-scale use of fossil fuels. Petroleum and coal were the main sources of energy, which not only have been burned in excessive amounts but also over a long period of time. This has had long term negative effects on our environment such as contamination and climate warming caused by the harmful gases released into the atmosphere and dangerous waste spills. Given these negative impacts and the fact that these resources are becoming scarce, it is necessary to find solutions that will make countries less reliant on fossil fuels. The main advantage of renewable energies is that their use does not imply as many negative consequences for our environment, as they reduce the amount of pollutants released into the atmosphere. Thus, we must be firmly committed to using renewable and clean sources of energy. In addition, their territorial distribution is more disperse. The EU launched an integrated policy for energy and climate change. Its aim is to move Europe towards a sustainable future and an economy that produces low carbon emissions and consumes less energy [
1].
This new paradigm also affects the generation of electrical energy, where competition increased after a decentralized approach has been adopted. In many countries, this model is already beginning to capture part of the revenues of conventional business, undermining its benefits and adding complexity to the already difficult task of balancing supply and demand. Overcapacity, low prices in the electricity market for increased renewable production and a reform that penalizes investment in clean energy resources, add to this difficulty. Meanwhile, the European Commission has set very ambitious green energy targets to be achieved by 2030, such as the use of 27% of clean resources, 36% less CO
2 emissions and a 27% increase in energy efficiency [
2,
3].
Proposals focusing on energy efficiency that we found in the state of the art have numerous weaknesses. The work of Zhao et al., proposes the use of a multi-agent architecture for decision-making in energy system management [
4]. However, this system lacks knowledge on the environment and thus cannot make appropriate decisions; this is because it does not use external sources to incorporate information (e.g., feedbacks with information on other users in similar situations). Other authors, like Fischer, address the topic of energy efficiency by studying the effectiveness of feedback techniques. Fischer reviews other studies and the factors they indicate as determinants of efficiency, he also conducts an analysis to find the factors of the highest importance [
5]. Ayres et al. have also used feedback techniques to allow customers to learn how to reduce their electricity and natural gas consumption, so that public utilities can reduce energy consumption at low cost [
6]. Suciu et al. in [
7] propose a tool that estimates potential savings which can be achieved by adopting photovoltaic solutions in Small and Medium Enterprises (SMEs). Some proposals focus on the proper regulation of temperature, so that room temperature does not change drastically from one moment to another. When users make optimal decisions (efficiency measures) about the use of heating and air conditioning, they are able to reduce energy waste and lower the cost of bills. Among these measures we find, for example, the proper regulation of temperature, so that room temperature does not change drastically from one moment to another. An increase by one degree in the temperature implies a 7% increase in the consumption of energy. Temperature is regulated using the heat of the sun to heat the building or house and by airing the building when the outside temperature is greater, since this will lower the contrast between inside and outside temperature. An essential aspect is detecting the air leaks in the building where the heat and cold enter, causing more energy to be consumed. It is also important to know which areas of the building or flat are occupied and at what times, so that the heating can be switched off or lowered and programmed to be switched on when the person returns to the house.
The authors of [
8] proposed measures that allow one to make better use of energy in buildings and reduce annual gas bills by 70%. Public office buildings urgently require the implementation of energy saving solutions. This is because amount of energy they consume is much higher in comparison to other types of buildings and houses. The users of public buildings are often not careful about saving energy (switching lights on/off), as they do not have to pay the energy bill. Thus, it is necessary to propose effective measures that will change user habits, especially in public buildings [
9]. Changing the user’s habits in their own home is not as difficult because whenever they make correct decisions (efficiency measures) about the use of heating and air conditioning, they reduce energy waste and lower the cost of their bills.
From the above works we can see that it is necessary to identify the factors that contribute to increased energy consumption to be able to maintain the desired temperature without increasing its use while heating the building in winter or cooling it in summer. Some of these factors include the location of the building, the state of the building and climate conditions [
10]. Although these factors predetermine the energy use to be greater, the behavior of the people who work in these building also has a major influence. However, it is not enough to discern the actors and factors that influence energy saving and energy efficiency. The saving potential is dependent on a wide range of factors, such as local stakeholders on the energy market, regulations, weather, environment, energy prices and availability or financing opportunities. Thus, what we need to do is to combine and improve previous approaches, with the aim of developing effective solutions that will help users save energy.
In the reviewed literature, we did not find any architecture that would collect all the necessary data and provide solutions to the problems that have been described in the previous paragraph. For this reason, this work proposes an energy efficiency model which allows one to save energy in homes and buildings through temperature management. Energetic efficiency is achieved in this architecture through a temperature monitoring approach in all the rooms, corridors and all the exterior walls of the building. Data from diverse types of sensors and third-party sources is used to provide additional information which is used by our optimization algorithm in the process of data analysis. This allow the system to recommend the best possible energy saving techniques in the building and to propose changes in the habits of the inhabitants [
11]. Minor et al. present a CBR approach for inert energy management systems that aims to reduce energy wastage in overheating and over cooling for buildings [
12].
The goal of the work presented in this article is to provide a new system for the analysis of the parameters that influence the consumption of energy. On the basis of this analysis the system will make decisions that will optimize the use of energy. This system has been developed using a multi-agent system as the base architecture for technical implementation. The information required for the analysis is obtained through the temperature and occupancy data provided by the sensors; this is possible thanks to the deployment of a WSN which facilitates communication between the different devices that make up the system. The communication between the hardware and software of the system (sensors, actuators, etc.) is performed by the agents.
The main contributions of this paper are as follows: acquisition of information related to the inhabitants in a non-intrusive way thanks to the use of sensors or a CBR system, conjunction of the current indoor and outdoor temperature together with the future temperature to prevent temperature jumps of the HVAC system that make the energy consumption increase strongly. All this has allowed the development of a system that uses a combination of information from the habits and preferences of inhabitants and the variables that influence energy expenditure to achieve energy savings.
The rest of the article is structured as follows:
Section 2 describes diverse state of the art proposals in the area of temperature control systems and studies on behaviour analysis for this type of systems. We also look at the progress achieved in this area and outline the technologies employed by these systems.
Section 3 provides a full description of the system proposed in this work, including the functionality of each of its components.
Section 4 details the case study and discusses the results obtained through an empirical implementation in a real scenario; the proposed system is deployed in an office building and monitors the temperature of each room. Finally,
Section 5 sets out the main conclusions drawn from this research.
3. System Overview
This section focuses on the technical details related to the system proposed in this work. It describes many different technical aspects, such as the collection of data with sensors, transmission and communication of data between the devices and the system, conversion of data into useful information, use of this information in the decision-making process which allows to achieve efficient use of energy.
3.1. Arquitecture
Multi-agent system agents use their communication capabilities to obtain the data collected by the sensors and IoT devices, destined for the collection of indoor and outdoor temperature and occupation data. This data is sent to other agents that perform analysis tasks. In turn, other agents obtain data from weather forecasts and analyze the behavior of the users [
54,
55] and even interact with the work calendar in order to know of the periods in which temperature should be reduced (in the absence of workers) and increased (prior to their return). These characteristics enable to program gradual changes in the temperature and do not allow abrupt changes in the temperature that cause high energy consumption. This is why the multi-agent system presented in this paper aims to optimally manage the temperature of an office building, including monitoring and real-time control of radiators or air conditioning. It also establishes temperature patterns that fit the energy efficiency frames and the comfort of the facility users. In order to fulfil this purpose, the multi-agent system is specifically designed to analyze sensor data and include data from external information sources [
56]. The GAIA approach has been used in the development of the multi-agent system, since this methodology is focused on the analysis and design of software systems based on intelligent agents [
57]. The system’s functionality is carried out by the agents in the system, where each agent is assigned a different role. The agents are grouped into five layers, according to the affinity of the activities each of them perform, as shown in
Figure 1.
Data acquisition layer: a layer that consists of four types of agents (indoor temperature agent, outdoor temperature agent and presence agent). The indoor and outdoor temperature agents collect temperature every 60 s. These agents are connected with the distributed sensors by means of the middleware. Knowledge about the presence of users in the offices is obtained through Passive Infrared Sensors (PIR). One of the problems that may arise is that if the employees are not seated in their work place, the PIR sensor will not detect their presence, however, although they are in the office. To counteract this problem, pressure mats have been placed at the entrance of each office, this allows to obtain knowledge on the number of people that enter and leave the office. Thus, even if the PIR sensors do not detect people in their work place, the number of people in the office is kept record of.
Information management layer: which is responsible for carrying out data analysis processes, namely analyzing temperature, presence, calendar and user behaviour data, so that decisions can be taken subsequently. Specifically, the difference in the indoor temperature of the rooms that are exposed to the outside and those that are surrounded by the other rooms from all sides. The user behavior analysis agent analyzes the behavior patterns of the users in each room, by establishing a schedule for the times at which they usually leave and enter the room, periods of stay, if they are present on weekends. This information is stored in a database intended for this purpose. The weather forecast agent makes requests for the meteorological information to OpenWeatherMap (
http://openweathermap.org/api), this information is used in the process of increasing or decreasing the temperature based on the forecast of temperatures for the following days. In this way, the system makes a gradual increase or decrease in temperature. The academic calendar agent communicates with the agent manager in order to inform him of vacation periods, thanks to this agent, the agents in the execution layer can take this information into account when making decisions.
Execution layer: this layer makes decisions on the basis of the information received from the other agents that make up the system. The activate/deactivate air conditioning agent executes the action of turning the air conditioning on or off, the activate/deactivate radiators agent executes the action of turning the radiators on or off. The temperature increase/decrease of the radiators/air conditioning agent executes the action of increasing or decreasing temperature the radiators or the air conditioning in each of the rooms or in the common area, by some degrees. These actions are carried out through the communication between the agents and the Smart thermostat.
Workflow management layer: which includes an agent in charge of the workflow of the rest of the layers. It is also responsible for establishing the correct order for the activity of each agent. The workflow analysis agent collects information about the settings and can repeat previously performed sequences for expression analysis. This aspect allows to automate repetitive analysis tasks. These workflows are stored in a database that is managed by the workflow management agent, which stores and retrieves the settings.
Simulation layer: this layer manages the case-based reasoning system (CBR). The CBR performs tasks in four different steps, in order to obtain a workflow that adapts to the conditions of the presented problem. First, the multi-agent system retrieves the relevant cases in order to solve the problem using the workflow memory. Once a relevant case is recovered, this workflow is previously adapted to suit the new problem; to changes in temperature conditions, user presence, events in the academic calendar, etc., once adapted, it is reused in the new problem. Later, the review step is performed in order to avoid unwanted steps in the workflow for the following process: for the retaining of the solution in a database. The system first simulates the solutions provided by the CBR, in this way only the most relevant actions are chosen for the reduction of energy consumption and those that allow to obtain the greatest savings are chosen. This layer has an agent with the user allows to interact to know the consumption data, and see the data that are collected in real time by each sensor deployed.
An IoT architecture that obtains and analyzes personal data requires the incorporation of security procedures that keep the privacy of such data intact and prevent external vulnerabilities. For that reason, each part of the multi-agent architecture (devices, field gateway, cloud gateway and connections) presents different associated security problems. Authentication of the devices is done through transport layer security (TLS) and IPsec, also using the pre-shared key (PSK), TLS RSA/PSK, IPSec and RFC 4279 are used in the field gateway. To prevent traffic interception or interference of communication between the device and the gateway, traffic is encrypted using PSK/RSA.
3.2. Data Adquisition
This section details the way in which the system collects the occupancy data, indoor and outdoor temperature, and the forecast of climatic conditions.
3.2.1. Obtaining Employee Presence Data
The sensing system is simple and allows to detect occupation and to collect values for the outside and inside temperature of the office. The prototypes are programming in C using Arduido IDE.
PIR sensors: Knowledge about the presence of users in the offices is obtained through the deployment of passive infrared sensors (PIRs). These sensors are called passive because, instead of emitting radiation, they receive it. They capture presence by detecting the difference between the heat emitted by the users and the space in which they are. Once deployed, these sensors need a period of adaptation, in which these processes, “get accustomed” to the infrared radiation of the environment. In
Figure 2 the presence detection system to be deployed in the work area is displayed in front of each worker. This simple system consists of the PIR sensor, a led, a resistance of 100 Ω, and is powered with a signal of 3.3 V. To prevent false detections by solar rays or other light sources, the sensor incorporates a small plastic lens that acts as a special light filter to eliminate this possibility. Once a non-presence detection occurs, this signal is sent to the PIR sensor in the Data acquisition layer, so that the system knows that the worker is not located in the workplace. In this way, if the presence system does not detect any workers in the whole office, the system changes its behaviour when adjusting the temperature. PIR sensors will only provide information about the presence or absence of people in their workplace. In order to have accurate knowledge on the presence of people in the office, pressure mats are used; they keep track of the number of people who have entered the office. If the PIR sensors report that there are no people in their workplace, the data obtained by the pressure mats are used. These pressure mats count the entrance and the exit of people in the office and in this way the number of people in it is obtained.
Temperature sensors: It is necessary for the system to the indoor temperature values of the offices since it allows it to incorporate this information into the temperature adjustment algorithm. This is done thanks to the DHT22 sensor that is used to obtain temperature and humidity values, this sensor can be seen in
Figure 3. In cases where the offices are exposed to the outside, the system also needs to collect outdoor temperature. The importance of obtaining external temperature data lies in the ability to know how the heat is wasted or how the cold air enters form the outside, these data allow the system to regulate the temperature better. This sensor allows us to measure temperatures between −40 °C and 125 °C with an accuracy of 0.5 °C, humidity measurement between 0% and 100% with an accuracy of 2–5% and a sampling frequency of 0.5 Hz.
3.2.2. Obtaining Temperature Data from Offices
To obtain the meteorological forecast of the next days (a week or fortnight) meteorological information provided by the OpenWeatherMap API is used. OpenWeatherMap is a weather service based on the VANE Geospatial Data Science platform for the collection, processing and distribution of information about our planet through easy-to-use tools and APIs. In this regard, the architecture includes a Weather Forecast Agent who is responsible for obtaining the forecast information for the next week or fortnight (according to the configuration settings) by making requests to the OpenWeatherMap API. In
Figure 4 we can observe the Weather Forecast Agent obtaining the minimum and maximum temperature of the day, the average temperature in the morning, in the afternoon and at night. These measurements are sent to the Manager Agent who will send the information to the Decision-Making Agent if the information has changed, or if the Calendar DB Agent has notified that the next week is festive and therefore the weather forecasts of no interest.
3.2.3. Using Calendar Data to Make Decisions
The collection of data on the presence of employees in the workplace, the outdoor and indoor temperature, or weather forecasts, is necessary for the proper adjustment of temperature and the decisions that the system has to make. However, equally important to the acquisition of data is prior knowledge of whether there will be any human activity in the offices. The knowledge of whether the employees will be in the offices can be acquired thanks to the work calendar of the country, the region and the sector in which the employees in the office work. If there is a period of one week or a fortnight of inactivity, the system will lower the temperature or turn off various radiators or air conditioning in order to minimize energy consumption. However, the system will not turn everything off as it will then require more energy to reheat or cool the offices before workers come back; this would result in consumption being greater to what could have been saved.
3.3. Data Transmission
The data collected by the outdoor and indoor temperature sensors, PIR sensors and pressure mats are used by the agents in charge of each of these sensors send the recollected data. The multi-agent system architecture is open, this means that it is possible to include new technology (new sensors) in it, so in this regard the architecture has been provided with a standard data transmission. The use of this form of data transmission prevents us from having to develop a new functionality in the agents in charge of receiving information from the sensors. The communication protocol used by the architecture is BACnet [
58]. The radiators, heating and air conditioning systems that are part of the system are compatible with this protocol, which allows for the individual or group control of these devices via WiFi or ZigBee connection [
59]. When the data is sent by ZigBee there is a hub that collects and transmits the data to the multi-agent system as shown in
Figure 5, unlike the data sent by the sensors that communicate via WiFi that are sent directly to the system by REST services. In this way, the communication of each device is replaced with a common set of communication rules which use a common language so that all devices communicate in the same way [
60].
In the presented architecture, the enable/disable radiators agent, activate/deactivate radiators agent, enable/disable air conditioning agent and activate/deactivate air conditioning agent can communicate with the radiators, heating and air conditioning systems of the area through the Java distribution of this protocol (
https://github.com/infiniteautomation/BACnet4J).
3.4. Learning Schedules Using a CBR
In this section, it is described how the proposed CBR framework was adopted to the present study, in order to predict the work schedule of the employees’ in each office. The use of a CBR is required for the process of learning schedules, once the cases have been constructed with the data collected during the baseline period. This automatic learning is necessary in order to store data about the habits of the employees in each office.
The system predicts the schedule of each office in a two-stage process. The first stage obtains the data collected by the installed presence sensors (form the time presence is detected in the offices, until the time no employee is present). In the second stage of prediction, a model of each worker’s schedule is made, generating the pattern of entry and exit of each worker into the office. Once the prevailing schedules for each office have been identified (i.e., a case has been built), the database that stores the CBR cases is constructed with the prevailing schedules of each office.
To determine what the most influent parameters are, the correlation analysis and Kruskal–Wallis [
61] methods were used. Kruskal–Wallis method is used to test if a dataset has originated from the same distribution, determining the dependency between the studied variable and the rest of variables. Once the most influent parameters are known, the estimation is carried out by the CBR agent as shown in
Figure 6, which has previously trained a Multi-Layer Perceptron (MLP) where the inputs are timenow, timeback, timebackPeriod, timeleave, timeleavePeriod and timeperiodDay.
The input and output values of the neural network are rescued in the range [0.2, 0.8] since the selected activation function is sigmoidal and we do not want any extreme values in the training. In the middle layer 2
n + 1 neurons are placed where
n is the number of neurons in the input layer. This criterion is based on Kolmogorov’s theorem [
62]. In the recovery phase, the system recovers the previously trained network associated with the structure of the corresponding greenhouse. In the adaptation phase, the network is used to generate the prediction. Finally, the data and training are updated in the revise phase, once the target temperature has been reached and the amount of energy required is known. The ANN is trained periodically both manually, by using a graphic user interface to facilitate the process, and automatically, when a defined number of new cases has been included in the system. In manual training, the evolution of the error is analyzed with a set of training data. When the error begins to reduce at a slower rate, the neuronal network is validated with the test data. The training continues, while the error produced in the data of the test reduces.
Once the schedule of the employees of each office participating in the case study has been estimated, the overall schedule must be assessed in order to be use by our optimization algorithm. The CBR system predicts the working hours of the employees of each office, so that the data collected from each employee of each office can be used by the in the optimization algorithm for energy consumption.
3.5. Energy Saving Algorithm
The developed savings algorithm is based on the analysis of the collected data, it considers the variables that are implied in the temperature changes in the offices. The algorithm has a dual functionality: conditioning (temperature adjustment) and decision making (turning off or on the air conditioning or individual radiators). Programmable thermostats can be used to define a fixed setback schedule that optimizes temperature, minimizing abrupt changes (temperature increase/decrease by several degrees in a short period of time) by means of temperature and occupancy values. Most programmable thermostats on the market provide four programmable parameters (comfort temperature, energy-saving temperature, energy-saving period, temperature setback) that create backoff periods. This algorithm uses the knowledge provided by the CBR to learn about when workers leave the office each day
timeleave, and the time that elapses before they return
timeleavePeriod, either on the same day (lunch period) or until the next day
timeback, also the
timebackPeriod that the workers spend in the office. The temperature parameters: indoor temperature
tmpindoor and outdoor temperature
tmpoutdoor, and desired temperature
tmpdesired and forecast temperature
tmpforecast variables are obtained by the sensors. Other parameters that are considered are: the status of the various air conditioners and radiators
devicestatus. During the adjustment period, the HVAC system will increase or decrease the temperature to the temperature desired by the office workers. In
Table 1 the description of all the variables used in the energy saving algorithm is indicated. Algorithm 1 uses the information processed by the multi-agent system (Sensors information, timetables learned, work calendar and temperature prediction).
Algorithm 1 Energy saving algorithm |
1: procedure energySaving(period) |
2: if timeperiod == Academic ∧ presence == Yes then |
3: tmpnow = tmpdesired − tmpindoor |
4: if roomtype == Private then |
5: if ((Tback − 60 min × tmpnow ≤ time) ∧ timebackPeriod > 60 min) ∨ (Tback ≤ time + 30 min ∧ timebackPeriod > 60 min) then |
6: if tmpnow > 0 then |
7: while proxTback − 60 min × tmpnow do |
8: thermostattmp + 1 ▷ Increased temperature |
9: else if tmpnow < 0 then |
10: while proxTback − 60 min × tmpnow do |
11: thermostattmp − 1 ▷ Decrease temperature |
12: else if roomtype == Common then |
13. if timeperiodDay ƒ = Night then |
14: n = timenow |
15: if timeperiodDay == Morning then |
16: while timeperiodDay = Morning do |
17: thermostatstmp = |
18: if tmpdesired = thermostatstmp then |
19: break loop |
20: else if timeperiodDay == Afternoon then |
21: while timeperiodDay = Afternoon do |
22: thermostatstmp = |
23: if tmpdesired = thermostatstmp then |
24: break loop |
25: else if timeperiodDay == Evening then |
26: while timeperiodDay = Evening do |
27: thermostatstmp = |
28: if tmpdesired = thermostatstmp then |
29: break loop |
30: else |
31: thermostatsstatus = Off |
32: else if timeperiod == NonAcademic ∧ timeperiod ≥ 10 days then |
33: thermostatsstatus = Off |
34: thermostatsstatus = Off |
35: else |
36: thermostatsstatus = On |
The use of the algorithm allows the CBR agent to learn behaviour patterns, along with the other variables. This results in energy savings thanks to the knowledge of the workers’ schedules in the different offices and learn schedules to program intelligent thermostats [
63].
One of the innovations of this algorithm is that it uses the learning capacity of the agents in the architecture to learn about the workers’ schedules and behaviour; this allows for a more in-depth analysis of the data since it is done automatically. Before conducting an in-depth analysis, the system checks if the data collected are equal to those collected for previous analyses, if so, the corresponding action is carried out automatically; it also helps to reduces costs. Moreover, this learning ability has been employed in gene selection works with very good results [
40].
4. Case-Study
In order to make a valid evaluation of the system and to demonstrate that it constitutes an advancement in energy saving that is not caused by a temporary change in the behavior of users; different control groups in the case study setting are chosen for validation.
The International Performance Measurement and Verification Protocol (IPMVP), which is the basis of the common European ICT PSP Methodology for calculating energy savings in buildings, proposes four different procedures for settling in the non-intervention consumption [
64,
65]. The first method consists in isolating the key parameters, the second method is the isolation of all parameters, the third method is whole facility and finally the fourth method consists in calibrated simulation. Out of these four options only the third option is useful for measuring the utility of the proposed system, since it does not have to assume a constant energy demand, also the variation in demand can be modeled with precision. The following subsection details the setting in which the validation of the proposed system has been performed.
4.1. Experimental Set-Up
In order to verify the efficiency of the proposed system in the optimization of energy consumption, a monitoring and evaluation experiment has been designed, in it the dependent and independent variables have been designed and they will be used to evaluate the effects that the operation of the system produces in the building. The case study was divided in three phases and an office control group was chosen for the evaluation. This approach consists in monitoring the consumption in the offices before applying the system. In the case study both groups will be included; the offices that implement the system and those that don’t. Furthermore, in last phase of the case study the system will operate in both groups.
In these three stages, the variables that depend on energy savings (energy consumption, energy consumption behavior, awareness, demand peaks, on-site activity), and independent variables (price energy, perceived physical comfort, usability and utility) as shown in
Figure 7. The dependent variables are the objective variables of the system; the system acts on them in order to obtain energy savings. Moreover, the independent variables are factors that may have an impact on the dependent variables. For the three steps described above, the dependent and independent variables will be collected. Thus, when the values of these variables were collected for both the experimental group and the control group in the same period, both groups experienced the same meteorological conditions, energy prices or holidays, in order to validate the results obtained.
The setting in which the case study was carried out, consisted of seven offices which were positioned differently within the building (Edificio I+D+I, University of Salamanca), as shown in
Figure 8.
These offices have the following characteristics: they are all located on the same floor in the building, they have a different cardinal point and their size is different, as shown in
Table 2.
The experiment is divided into three stages (baseline, mid-term evaluation, final evaluation) and each period lasts three weeks (from 9 January to 12 March), which allows for the correct evaluation of the system’s efficiency. The choice of the date in which the experiment was performed was due to the fact that in this period the number of feast days per month is similar and the maximum and minimum temperature did not vary as much from week to week. As described previously, in the baseline stage (9 January–29 January), only the case study group (offices 1, 4 and 5) and the control group (2, 3, 6 and 7) were monitored. In the mid-term evaluation stage (30 January–19 February), both groups were monitored and the system was already in operation in the offices belonging to the case study group. In the final evaluation stage (20 February–12 March) the system was operating in both in the case study group as well as the control group. In
Figure 9 we can see how the sensors used for data collection are deployed in one of the offices. A presence sensor was deployed at each workstation, an external temperature sensor at each window and an indoor temperature sensor in each corner of the office.
4.2. Agents Coordination for Obtaining Energy Efficiency through the Communication of the Information
Thanks to the use of the multi-agent system, data from the indoor (
tmpindoor), outdoor (
tmpoutdoor) temperature sensors, presence of workers (presence) in the case study offices were collected every 30 min. This information is managed by the data acquisition layer, as shown in
Figure 10.
The remaining information required by the algorithm is obtained by the agents that form the information management layer and through communication with the data acquisition layer. This information is related to the meteorological forecast or period type (
tmpforecast,
timeperiod) and the other variables used by the algorithm, which are obtained by the CBR
(timeback,
timebackPeriod,
timeleave,
timeleavePeriod). The variables that are associated with the presence of employees in the offices are used by the user behavior analysis agent in order to store related data and generate more solutions for the optimization of energy consumption. In
Figure 11 we can see the communication between the agents in the information management layer, in the process of obtaining the forecast data for the coming days, they obtain the behavior of the users (storage in the database of the CBR) and make an analysis of all the data.
The variables used in the analysis (roomtype, thermostatstatus, thermostattmp, timenow, timeperiodDay, tmpnow, tmpdesired) are obtained by the agents that are part of the execution layer.
4.3. Experimental Results
This section describes the results of implementing the system in a working environment (office building), since one of the objectives of the system is to be self-adaptive to the conditions and characteristics of any building. In order to verify that the system behaves effectively in terms of adaptability, it has been tested in an office building which has many different spaces and characteristics (location in the building, floor, geometric shape, dimensions, etc.) as described in the previous section. During the three weeks of the baseline period, the system has only collected data from the offices without taking any action. In the mid-term evaluation, the system has collected the values of all the variables, but only made decisions in offices 1, 4 and 5 and finally in the final evaluation (intervention period) the system already collected values and made decisions in all the offices, as seen in
Table 3.
In
Table 4 we can observe the consumption per stage (baseline and mid-term) of experimental and control group and the savings. In
Table 5 we can see the results of the Student’s
t test and the Levene test. The difference between the average baseline period and mid-term period is also significantly lower for the latter in all cases, with a
p-value of 0.000 or close for all the different means. These results demonstrate the effectiveness of the algorithm in terms of energy savings.
In
Table 6 we can observe the consumption per stage (mid-term and final evaluation) of the experimental and control group and the savings. In
Table 7 we can see the results of the Student’s
t test and the Levene test. The difference between the average of the mid-term period and Final evaluation was also lower for the final evaluation period in all cases, with a
p-value of 0.000 for all means. Standard deviations do not show significant differences between groups. This reinforces the result, showing that energy savings are achieved, as individuals within different groups tend to behave in the same way. These results reinforce the validity of applying a multi-agent system to collect consumption data and user behavior to obtain a behavior change that has an impact on energy savings by optimizing consumption. This decision-making process is done by communicating the agents of the carrying out action layer, as shown in
Figure 12.
As shown in
Figure 13 and Figure 16, in addition to monitoring the data during the two intervention periods, the system made its own decisions (programming the HVAC system temperature, switching on or off heating or cooling functions) energy consumption has followed a more stable linear trend. This indicates the stability of the temperature in the office and therefore that there are no sudden changes in energy consumption.
In
Figure 14 we can confirm that the trend showing consumption is linear downwards from the start of the day (first day of the mid-term evaluation in office 4). In
Table 8 we can observe the degrees of temperature that has increased or decreased and the increase or decrease of energy consumption, between the periods baseline evaluation and mid-term evaluation and mid-term evaluation and final evaluation. In the graph of
Figure 15, the trend of temperature increase in the mid-term evaluation period with respect to baseline evaluation and of the final evaluation with regard to mid-term evaluation is perceived, this causes a lower energy consumption in all the offices, being clearly much less consumption between the offices of the experimental group than in the offices of the control group. This reduction in energy consumption in a different proportion in mid-term evaluation and in a greater proportion in the control group in the final evaluation period (similar to the experimental group) certifies the effectiveness of the system in the optimization of energy consumption.
Figure 16 shows how the consumption does not exceed 3000 kWh in Intervention period, being noticeable as it is even smaller in final evaluation due to the increase of the external temperatures.
It is clearer that an increase in the difference between outdoor and indoor temperatures increases energy consumption, and in the mid-term evaluation the consumption between offices is the same, and similar in final evaluation period (
Table 9).
Apart from all the data that we can obtain thanks to the system with which we have generated graphs that allow us to accurately evaluate the operation of the system, through the visualization agent you can make comparisons about consumption in the different periods of which the experiment as shown in
Figure 17.
It also allows to export all the data by means of diverse grouping methods (day, week, month, year) to show the current consumption, climatological details among others. In
Figure 18 we can see the current consumption, the forecast of the invoice for that month, and the estimated CO
2 production.
5. Conclusions
This paper has presented a novel multi-agent based approach for the optimization of energy consumption, caused by inefficient use of HVAC systems. The use of a multi-agent system in this energy management problem has been fundamental, since it allowed us to find out how users interacted with these devices and other external factors that had an influence on consumption. To get an understanding of the building’s internal and external climatic conditions, as well as office occupancy, the multi-agent system uses data from the sensors distributed in the offices. In addition, the system has knowledge of the weather forecast planned for the coming days, as well as the non-working or holiday periods; in this way, it is able to set the radiators and air conditioning optimally. The multi-agent system helped us to achieve energy savings in the office building by correctly programming the temperature of the radiators and air conditioning, by adjusting it to changes (radiators, air conditioning on/off) without making abrupt shifts; since this would increase the consumption of energy drastically.
A case-study in an office building during nine weeks has shown that the proposed solution achieves that the consumption of electrical energy is lower in the set of rooms managed by the multi-agent system. It can also be deduced that the decrease in the difference between outdoor and indoor temperature does not lead to a linear decrease in energy consumption. As can be seen in the results obtained, the algorithm developed for making decisions related to the on or off of the radiators or the air conditioning or the increase or decrease in the temperature of the radiators or the individual air conditioning accomplish an average energy savings of 41% in the rooms of an office building. Future lines of research will be concerned with incorporating agreement technologies in order that the optimisation is carried out taking into account all user comfort parameters.