Next Article in Journal
On-Coupling Mechanical, Electrical and Thermal Behavior of Submarine Power Phases
Next Article in Special Issue
A Driving Technique for AC-AC Direct Matrix Converters Based on Sigma-Delta Modulation
Previous Article in Journal
Remote Monitoring of Joints Status on In-Service High-Voltage Overhead Lines
Previous Article in Special Issue
Ageing and Efficiency Aware Battery Dispatch for Arbitrage Markets Using Mixed Integer Linear Programming
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Microforecasting Module for Energy Management in Residential and Tertiary Buildings

Dipartimento di Ingegneria Elettrica e dell’Informazione, Politecnico di Bari, 70125 Bari, Italy
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in 18th IEEE - EEEIC, Palermo, Italy, 2018.
All the authors contributed equally to this work.
Energies 2019, 12(6), 1006; https://doi.org/10.3390/en12061006
Submission received: 24 January 2019 / Revised: 9 March 2019 / Accepted: 11 March 2019 / Published: 15 March 2019

Abstract

:
The paper describes the methodology used for developing an electric load microforecasting module to be integrated in the Energy Management System (EMS) architecture designed and tested within the “Energy Router” (ER) project. This Italian R&D project is aimed at providing non-industrial active customers and prosumers with a monitoring and control device that would enable demand response through optimization of their own distributed energy resources (DERs). The optimal control of resources is organized with a hierarchical control structure and performed in two stages. A cloud-based computation platform provides global control functions based on model predictive control whereas a closed-loop local device manages actual monitoring and control of field components. In this architecture, load forecasts on a small scale (a single residential or tertiary building) are needed as inputs of the predictive control problem. The microforecasting module aimed at providing such inputs was designed to be flexible, adaptive, and able to treat data with low time resolution. The module includes alternative forecasting techniques, such as autoregressive integrated moving average (ARIMA), neural networks, and exponential smoothing, allowing the application of the right forecasting strategy each time. The presented test results are based on a dataset acquired during a monitoring campaign in two pilot systems, installed during the ER Project in public buildings.

1. Introduction

The participation of active end users in the creation of advanced services and new business models is one of the main goals in the smartification of the energy sector. Through the setting-up of innovative energy-balancing services or dynamic tariffs, such as the ones that are usually developed within the demand response (DR) schemes [1], active end users and prosumers can become aware and conscious managers of their own energy resources. The integration and coordination of such resources in an urban context is also a key point in the development of smart distribution grids [2] and smart cities [3].
This paper refers to an EMS architecture developed for controlling low voltage energy resources of a small residential or tertiary prosuming unit, and enabling DR. This architecture was developed within the R&D project named “Energy Router” (ER) [4,5,6], carried out in collaboration with several Italian industrial companies. The project aimed at the design, test, prototyping and possible later industrialization, of a controller that manages in real time all available DERs with applications in both residential and tertiary sectors. The ER architecture is typically organized following a hierarchical structure with a local controller responsible for the actual real-time dispatch of resources (generation, storage, controllable loads) and a higher-level global controller built on a cloud platform. The presence of a cloud platform allows the externalizing of all metering, data analysis, and forecast functions. Since the presence of at least one storage unit is assumed, the higher control tier is based on predictive control that permits to optimize charge and discharge time trajectories in a specific time window [7,8], or to adopt rolling horizon techniques [9,10]. The use of predictive control requires the availability of generation and load forecasts with an acceptable level of accuracy. This paper shows the microforecast algorithm proposed for the ER architecture and provides test results based on actual real-time data acquired on two pilot systems implemented in public buildings.
The main issue of a forecasting method in a micro or smart grid is to predict the demand of the loads in the network or the power generated by renewable energy connected to the network for the near future. This is necessary for determining how much power is used from the controllable resources and devices [11]. Therefore, for micro and smart grid applications, the generation and load forecasts required are usually considered short-term forecasting (e.g., a forecast performed in the order of hours or a few days in advance) [12,13]. The scientific literature on the elaboration of forecast models of demand loads highlights a lack of studies conducted on real data, especially for data that are collected in a disaggregated manner (e.g., at the individual user level or residential/commercial or industrial building). Often the used sample consists of an extremely reduced number of users, and data collected (where they have not been artificially generated) have a limited temporal extension.
The studies present in the literature can be mainly grouped into two macro-categories: (i) those which refer to the forecast of domestic consumption [14,15], and (ii) those concerning the forecast of commercial or industrial consumption [13,16,17]. The opportunity to distinguish between these two groups mainly concerns the needs that characterize the two energy profiles and the purposes for which these forecasts are generated. In the first case, in fact, greater variability in the behavior can be observed in the users, who—within a smart grid—can express preferences in optimizing their consumption, which often translate into soft constraints [18,19]. On the other hand, commercial or industrial users can tend to have a repetitive load profiles, and will have some operative constraints of the plants turning in the definition of hard constraints in the planning or optimization of the overall smart grid [18,19].
The approach adopted in this work to obtain the predictions of the generation or consumption of energy is based on the study of the so-called time series. A historical series or a time series is a realization of a stochastic process observed sequentially over time. Therefore, after collecting a historical series of data, it is possible to identify a mathematical model to describe this stochastic process. The study of the theoretical properties of the model thus defined makes it possible to carry out a statistical analysis of the historical series and to predict the future values of the series itself. In recent years there has been a great deal of research to develop automatic prediction algorithms for time series [20], as it represents a crucial need in many different real-world problems [21,22].
This paper is an extended version of the conference paper [23] and is organized as follows. Section 2 introduces the building blocks of the considered Energy Router architecture. The successive Section 3 details the Mircoforecasting module. Next, the experimental campaign is illustrated in Section 4, while results are presented and discussed in the successive Section 5. Finally, some conclusions are drawn in the closing Section 6.

2. The Energy Router Architecture

The monitoring and control architecture developed in the ER Project was designed to enable EMS functions for small residential or tertiary end users. The main assumption is that in the near future, any customer at low voltage level could be considered as an active end user, or a prosumer, having at their own disposal a set of grid-connected dispatchable resources such as renewable microsources (most likely rooftop photo-voltaic (PV) generators), storage systems, and controllable loads (interruptible or curtailable loads). Theoretically, the load shifting functions provided by a battery energy storage system (BESS) could be also obtained with an electric vehicle (EV) connected to the grid in vehicle-to-grid (V2G) framework. It is also assumed that the Distribution System Operator (DSO), or even an energy aggregator, will provide time variant price signals on a daily base, according to dynamic energy pricing or DR schemes.
The ER architecture is aimed to provide automation tools and overcome the intrinsic inelasticity characterizing energy customers at low voltage level, and especially in residential or public sectors. Optimal control strategies are used to control distributed resources, exploiting real-time data and price signals received from the grid. Due to the presence of storage systems, the use of predictive control techniques is preferred to pursue optimality in a larger time horizon [9]. In the ER architecture the optimal exploitation of DERs is obtained through the numerical solution of an optimal control problem which pursues the minimization of an objective function representing the energy cost, while assuring that all devices are within their security and technical operating conditions. This problem, which provides time-varying references for all DERs to be followed along a specific time window, is solved within the first tier (L3) of a hierarchical control scheme whose architecture is schematically depicted in the diagram reported in Figure 1.
The overall optimal control strategy is implemented at cloud-level (L3) where a predictive optimal control problem is solved exploiting both real-time system state information and external price signals, and generation and load forecasts as well. Load forecasts are elaborated by the microforecasting application presented in this paper. The layer L2 is the one responsible for collecting measurements from the field and actuating real-time control of distributed microsources. In the ER architecture, this layer is managed by a hardware component (the ER Gateway) whose physical prototype was designed and tested during the project. The ER Gateway is built adopting a multiprotocol approach and can dialogue with the lower layer using most of industrial and home automation protocols (Modbus, Profibus, CAN-BUS, KNX, Zigbee, Z-Wave), and multiple physical media. It collects measurements which are sent to the upper layer and stored on the cloud servers, to build historical data series. The ER Gateway is also responsible for real-time control and therefore it interprets the time-varying optimal set-points given by the upper layer, and sends commands to the controllers of the microsources (layer L1) based on real-time measurements. Controllers at this layer (L1) manage field components (Layer L0) through proprietary protocols. The ER monitoring structure permits to collect wide pieces of information to be stored in the cloud database. Power demand data can be collected with high time resolution that can go up to the physical constraints of the measuring components (usually about one measure per second for a typical industrial automation metering unit). However, due to the randomness of real-time load fluctuation, data used in energy demand forecasts are averaged in larger time intervals (usually 15 min or more) so that they do not lose significance.
Optimal control is performed adopting a rolling horizon strategy as in typical model predictive control applications. This means that the optimal set-points evaluated at L3 are applied by L2 only in a time window shorter than the one used to solve the optimal control problem, because subsequent set-points are recalculated using updated information about the system. This strategy allows for compensation errors due to time resolution or forecasts, and takes into account unexpected events (for example sudden unavailability, weather change, DR events, etc.) [4]. Clearly the availability of a suitable microforecasting tool that can update forecasts using real-time measurements obtained in the control phase may increase the performance of the overall control system.

3. The Microforecasting Module for Energy Management

Although the control strategy adopted in the ER Project proved robustness regarding the possible variability with respect to generation/load forecasts [4], the assumption of deterministic prosumer’s data may not hold in real contexts, or at least it can be misleading [19]. For this reason, the accurate forecasting of the generation/load and the related uncertainties can be considered as a main crucial step for the framework under study. In general, the objective to optimize the final customer’s service in a single building unit is an issue with a great impact on the methodologies needed to perform this microforecasting task; i.e., to provide a specific forecast for every single unit [24]—assuming that each unit has an active role in energy consumption. In fact, aggregation across units and/or across buildings may be inadequate or misleading in these cases [21]. The optimization and control strategies must be based on the single-unit generation/load forecast which is usually based on short-term forecasts, ranging from a few hours to one day. Moreover, it possibly takes into account controllable or non-controllable exogenous variables to represent, for example, prices, occupancy, promotional and calendar events, or weather conditions. Such a distributed and recurrent forecasting activity, involving many units and/or buildings, requires the use of some modular and automatable procedure to be included in a cloud-based system architecture.
The main requirements for a microforecasting implementation are two-fold: (i) a measurement and information system able to assure that short-term (daily/hourly) data are available for each considered unit; (ii) effectiveness and suitable speed of both the forecasting and optimization/control modules included in the system.
Presently, several EMSs already have access to the required information with the possibility to implement and use forecasting modules. Nevertheless, the users or the decision makers should not be exposed to the complexity of these systems [21,25]. Therefore, a modular and adaptive forecasting system would provide relevant support by automatically selecting the best performing model with respect to the current instance. The process is repeated for each individual unit (if needed) in the considered context and for each forecast session adopting a rolling scheme [25] using a fixed-length (e.g., 4–6 h) window to update forecasts and (possibly) re-configure the models. In this way the model’s choice is obtained by setting a small number of parameters keeping the number of samples constant, to preserve results accuracy.

Microforecasting Module Architecture

The forecasting tool was developed in the MATLAB [26] environment, whereas the core of the forecasting module was developed in R [27], an open source statistical computing environment, specifically using the forecast package, developed by Hyndman et al. [28].
Figure 2 depicts the architecture of the forecasting tool, which requires the following input data: (i) historical data of power consumption, including the corresponding date, time, and possible exogenous variables such as the outdoor temperature; (ii) length of the forecasting horizon; (iii) sample size of both training and test sets; (iv) number of samples per hour for both historical data and forecasts; the frequency of the periodic accuracy check (e.g., by default this parameter is set in order to perform the check every 6 h).
The considered time series contain samples of data from the measures, and the acquisition campaign was started after the installation of a set of energy meters and the implementation of a commercial web server. The monitoring system, together with all other installed components, went through an acceptance testing after the completion of works. Moreover, simple coherence tests can be made to generate alarms on suspected bad data. These tests can be made checking the value of voltages and frequency that must stay within the ordinary operative ranges. Furthermore, the monitoring system was designed to be redundant since it measures not only the energy exchanged at the point of common coupling (PCC), but also the one flowing from/to loads, PV generation, and battery. A simple test on energy balance is used to check the coherence of each sampled dataset.
Regarding the proposed forecasting tool, input data, as shown in Figure 2, go through a pre-processing stage. The latter has been implemented to remove duplicate records from time series of historical data and to insert any missing data with interpolated values. The noise is identified and eventually removed, in the event that it significantly affects the quality of the underlying data [25,29]. Then, the short-term seasonality of the time series of power is analyzed.
Pre-processed data and information on noise and seasonality is provided as input to the forecasting core module, which includes multiple alternative forecasting techniques. Namely, (i) an exponential smoothing model using a seasonal-trend decomposition procedure based on loss (STL) [30]; (ii) an autoregressive integrated moving average model (ARIMA) [20]; and (iii) a neural networks (NN) model [28].
Exponential smoothing is an approach that constructs a forecast from a mean, exponentially weighted (hence the name of the method), of past observations; this means that the prediction is obtained starting from the previous observations by attributing a greater weight to the more recent observations and gradually smaller weights to the remotest observations over time.
One of the best-known classes of mathematical models for predicting time series is represented by the ARIMA models. These models are widely used in statistics, econometrics and engineering for several reasons: they are considered one of the best performing models in terms of forecasting; they are used as a benchmark for more sophisticated models; they are easy to implement and have a high degree of flexibility thanks to their mathematical structure.
NN are often used to approximate continuous functions through more general and flexible functional forms compared to classical predictive techniques, particularly in cases where the real system is characterized by a complex relationship between input and output. The most commonly used architecture is the so-called Multilayer Perceptron (MLP) which uses a supervised learning technique called back propagation. The neural network consists of nodes arranged on several levels: the input level, one or more hidden levels, and an output level. The nodes present in each level are not interconnected, but can share one or more inputs. The network will have an output node to process a single forecast (for example for the next hour or the next day); instead, it will have more output nodes to predict a sequence of data (such as the hourly charge of the day after).
A classical persistence model based on a Pseudo Steady State (PSS) method has also been included in the forecasting framework, which assumes that the forecasted power consumption is the same as the corresponding observed value in the day before. A PSS model is very often used as a benchmark for new forecasting models [31,32].
The complete mathematical description of each adopted predictive method was omitted for the sake of brevity, and to focus on the specific contribution of the paper. Anyway, these mathematical models are based on well accepted formulations which are available in the cited literature.
The operations of the forecasting module mainly consist of three steps [20]:
  • Model tuning. Aiming to identify the forecasting model’s parameters, tuning is performed for all the forecasting techniques included in the module. More specifically, two different approaches were implemented, namely a grid search procedure and an automatic tuning method. These algorithmic approaches, characterized by their flexibility, have already been successfully used in several applications [31,33]. In the grid search approach each model parameter can assume its values in predefined intervals; a subset of forecasting models (for each experimented technique) is selected according to a set of so-called in-sample indicators. The main advantage of these approach is that an extremely large set of different configurations (i.e., forecasting models) can be compared and the selected model is, in general, very accurate. On the other hand, the larger the parameters’ intervals the higher the required computational effort, since several statistical analyses and tests must be performed for every considered forecasting model configuration. The other adopted procedure is an automatic tuning method which derives from the R forecast package [28], which can provide efficient algorithms to specifically apply to each forecasting technique.
  • Model selection. According to a set of out-of-sample statistical indicators [34], it compares all the models tuned in step 1) to select the most accurate one with respect to the actual instance. More specifically, we included both absolute and relative statistical indicators: Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), Maximum Absolute Error (MaxAE), Mean Absolute Percentage Error (MAPE), Maximum Absolute Percentage Error MaxAPE), and the coefficient of determination R 2 . They are summarized in Table 1, where the first column reports the indicators and the second column shows their mathematical expression. More in details, y t denotes the observed power data at time t, y ^ t denotes the corresponding forecast provided by the current model, forecasts are computed over the time horizon indexed as { 1 , , n } ; μ in R 2 is the average value of y t over the test set. We performed a non-domination analysis with respect to these indicators; among the non-dominated models, the selection procedures choose the model with the best MAE. The reason for adopting MAE as the criterion for the final choice mainly relies on the interest the user must minimize the absolute deviation from actual power consumption rather than other measures.
  • Forecasting. It provides the power forecasts ahead over the specified time horizon, using the model chosen in the model selection phase (i.e., step 2).
Forecasts can be regularly updated under a rolling horizon scheme, to counteract possible worsening in predictions. It is worth observing that other different techniques may also be integrated in the framework, to provide both load and generation forecasts, using exogenous variables [25,29,31]. In fact, a drawback of classical forecasting models can be the lack of information about the impact of exogenous variables on the time series, and in many cases it may be more profitable to take into account the impact of relevant external phenomena.

4. The Pilot Systems and the Experimental Campaign

This Section is devoted to describing the experimental campaign conducted in this research work. The description is organized in two subsections, namely Section 4.1 and Section 4.2. The first one illustrates the data acquisition campaign on the considered pilot systems, while the second describes the adopted computational settings.

4.1. Data Acquisition Campaign on Pilot Systems

To test how the proposed architecture can be applied to some practical cases, two customized pilot installations of the ER system were developed. In both cases, the installation was made in a public building: a public office belonging the municipal local authority in Monopoli (Bari, Italy) and a public school in Palo del Colle (Bari, Italy). The two pilot systems required the modification of the existing electrical system, the connection of a PV generator and a storage system, and the installation of all necessary components for monitoring and control. This phase was particularly laborious since all interventions had to be made with a minimum impact on current working activities and had to integrate as much as possible the pre-existing legacy components. Moreover, to provide a technical solution ready-to-use that could be replicated in other sites as easily as possible, it was decided to employ only components that were already commercially available.
One of the first required modifications regarded the installation of a suitable monitoring system. Having measurements at the PCC is usually not a problem, since a digital multimeter or a network analyzer is often available at the main switchboard. However, in this case, the idea was to monitor energy consumption of certain sub-systems (for example the circuits supplying a specific controllable load), together with the power exchanged with active elements (PV generation and BESS). To modify as little as possible the existing switchboards, the network analyzer Sun Guard SG-METER-125H was adopted, since it has several features that makes it suitable for retrofit. This measuring instrument is characterized by its small dimensions and by the fact that it can be easily positioned in pre-existing installations or even in the junction boxes (Figure 3). Moreover, this meter can be theoretically coupled with a three-phase miniature current transformer, to monitor electrical variable on sub-circuits that are not fed directly from the main switchboard, where current transformers are usually already installed.
Data can be collected and made accessible via web through a data logger (Sun Guard SGB-PROFESSIONAL-4) that receives all measurements from inverters, network analyzers and weather monitoring stations using Modbus RS-485 and sends them via an ADSL router/modem (or alternatively a UMTS/4G router/modem) to a web server for reporting. Web server and recorded data are accessible via internet from any authenticated device.
Real-time measurements can also be read by the ER Gateway. This device is composed by a master board that includes a Linux embedded module, the communication ports, and a micro-SD flash memory, and by an expansion board for data acquisition (32 I/O channels) and 8 digital output relays. The ER Gateway was developed following a multiprotocol approach and can exchange data using most industrial and home automation protocols. In the simplest implementation, the gateway can receive measurement from the field using Modbus TCP/IP. Measurements are available according to the time stamp resolution used by the meters. A 1 s time stamp resolution is typically guaranteed by most commercial products and provides data refined enough for any kind of application in residential or tertiary sector. More refined measurements (for example every 1ms) could be necessary for smart grids applications were synchronization or fast intervention is needed (for example frequency control or fault protection).
The ER Gateway receives measurements from the field and sends them to the cloud platform using MQTT protocol and Rabbit MQ libraries. The cloud is where system historical data are stored and microforecasting routines can be run. The gateway is programmed to send measurements to the cloud with a chosen time resolution. Since all real-time control routines are run locally at the gateway, the cloud does not need data with low time resolution.
The following test results are referred to a first data acquisition campaign, in which all measurements have been conservatively recorded adopting a 5-min time resolution, even though a 15-min resolution was already found to be subtle enough for the project’s scope [4]. A 15-min time resolution can be considered as the minimum requirement since it represents the time resolution that will be used by second-generation smart meters, soon to be installed in Italy in an on-going massive deployment campaign, following the first deployment of first-generation smart meters in 2000s.

4.2. Experimental Configuration Settings

Computational experiments were performed on both pilot systems, using the settings described below. Forecasting models were built using a 14-day historical data set and then validated using the data samples of the next two days. Historical data are analyzed at 15-minute intervals and the forecasts were elaborated accordingly. The power forecasts are calculated as forecasts made the day before, for the next 24 h. Thus, the training set contains 1344 samples, the validation set 192, and the forecasting set 96, respectively. In addition, every UpdFreq hours the forecasting module checks if an update of the prediction model is necessary applying a rolling horizon approach. The accuracy check compares the predictions and the realized values of the last period (i.e., last UpdFreq hours) adopting the MAPE indicator as criterion, and an accuracy check threshold UpdTh above which is required to update the model. The configuration settings adopted in the experimental campaign are summarized in Table 2 which shows the parameters in the first column, while the descriptions and values adopted are shown in the second and third columns, respectively.

5. Results

The analysis of the power time series derived for both pilot systems showed a daily and a weekly seasonality. In both cases there was a marked reduction in energy consumption during the night and at weekends. As for the pilot case related to the municipal office, this is evident from Figure 4, which shows the daily energy consumption and the corresponding contour plot (where a color scale describes the intensity of power demand) for the duration of a month. The latter clearly shows a regular daily trend, with an increase in energy consumption at around 8:00, remaining essentially stable until 15:00 and subsequently decreasing.
On Thursday, however, after a first reduction around the lunch break, the energy consumption increases again for a time window of three hours of width. This change in behavior is associated with the afternoon work shift, which occurs once a week. The weekends, on the other hand, are characterized by a low general consumption profile, in the same order of magnitude as night-time consumption, as foreseeable by the fact that the municipal office in these days remains closed.
As part of the analysis of seasonality, we report the box plots—calculated for the days of surveys—of aggregate consumption on an hourly basis, distinguishing between midweek (i.e., working days) behavior (Figure 5) and behavior at the weekend (Figure 6). In this case, the consumption trends associated with Thursday are not explicitly reported, but they have been excluded from the data representation in Figure 5. This exclusion makes the representation of the data more “clean”, reducing the number of outliers; in fact, if the Thursday had been included like the other working days, the box plots associated with the time slots 15–18 would have recorded a greater number of outliers.
A similar behavior is observed in the school consumption profile: Figure 7 clearly shows a regular weekly pattern, with lower consumption at night (from 11 p.m. to 8 a.m.) and on the weekends. Power consumption decreases from 1 p.m. to 3 p.m. In the afternoon, consumption remains generally lower than in the morning but higher than at night; this could be related to some afternoon/evening activity taking place during the week.
As for the previous case study, also for the school building in Palo del Colle we report the box plots of aggregate consumption on an hourly basis for both working days (Figure 8) and the weekend (Figure 9). In general, compared to the municipal office, where all activities are strictly regulated by working time and contractual obligations with employees, school activities (and consequently also electricity consumption) seem to be more unpredictable, especially as regards afternoon/evening extra-curricular activities. This peculiarity clearly influences the efficiency of the proposed approach which in fact has generally shown lower accuracy in the prediction of the electric load in the pilot system of the school building.
However, satisfactory or promising results were obtained for both pilot systems even without model updates (i.e., adopting UpdFreq = 24 h), with mean absolute deviations of about 1 kW for the municipal office and 2–3 kW for the school (for which higher power consumptions are registered); MAPE remains around 10–15% for the municipal office, while it gets a bit higher for the school, with values ranging from about 20 to 40%. Examples referring to three different prediction days are shown in Figure 10, Figure 11 and Figure 12 for the municipal office, while a summary of the results and the corresponding statistical indicators are reported in Table 3.
As already noted above, the load profile in the pilot system concerning the school building is less predictable than that concerning the municipal office and the load forecast has proved to be affected by higher errors. Some examples are shown in Table 4 which reports the results related to days 8th, 14th, 19th, 28th November 2017 when PSS and NN models have been selected two times each. The daily forecasts are graphically compared to the observed power consumption for the day 8th November in Figure 13.
Results for day November 19th shown a clear example of how, due to the randomness of electric demand, the forecasts can deviate significantly from actual measurements, especially if consumption is low. In this specific case the error in terms of MAPE is high, but it should be considered that this day is a holiday (Sunday) when the school is closed, and electric demand is very low. Therefore, error figures are higher in relative value (MAPE) but still very small in absolute value (MAE and MaxAE). In fact, in this case, MAE is about 0.6 kW. This is also coherent with the choice of having chosen MAE as the criterion for the final choice in the non-domination analysis in the tuning phase of the models.
In view of these results, some tests were carried out considering the possibility of updating the forecasting model during the day based on new data coming from measurements and the (re)evaluation of the behavior of the current model. This type of update can effectively improve the overall accuracy of the microforecasting module and can also be exploited in the implementation of a model predictive control architecture. In fact, it is possible to evaluate different daily corrections whenever new updated forecasts are available, both for generation and for electric load.
In the case of the Municipal Office, for the considered sample days, the accuracy check never requires model updates, whereas in 3 over 4 sample days they are needed for the school.
Table 5 and Figure 14, Figure 15 and Figure 16 show forecast results obtained for the school power consumption for four different sample days (namely, November 8th, 14th, 19th and 28th) with forecast updates computed every six hours during the day according to the indications obtained from the accuracy check. The latter compares the predictions and the realized values of the last period (i.e., six hours) adopting the MAPE as relevant criterion, and a threshold of 15% above which is required to update the model. Otherwise the system continues to use the current model. It is worth noting that even in the event of an update request, it may happen that the best model is still the current one. Thus, when the update does not occur, in Table 5 symbols “–” are reported.
In the adopted setting, a prediction accuracy check is performed every 6 h and, if necessary, the process is restarted repeating the model selection phase. For the first sample day (i.e., 8th, November) no updates occur and only the initial PSS model is used. Table 5 reports on the errors evaluated with respect to the period which starts when the method has been adopted, and ends at 12:00 p.m. of the same prediction day (i.e., they are not the results of the accuracy check which refer to a previous period). Figure 14, Figure 15 and Figure 16 reports a graphical representation of the results and effects of the model updating. For the day November 14th this led to the generation of the following models: PSS for forecasts from 00:00; STL for the updated forecasts from 6:00 a.m.; NN for updated forecasts from 12:00; STL again for the updated forecasts from 18:00. In the case of day November 19th only three models (i.e., always a NN model has been selected) were calculated as the last update was not necessary. For the case of day November 28th four models are used starting with NN and continuing with two successive STL models, whereas the last update led to the adoption of another NN model. In general, comparing forecasts and observed values shows that updated forecasts improve the results, as they get closer to the observed power consumption. In fact, the statistical indicators tend to improve during the day, as summarized in Table 5. We note that in the graphs shown in Figure 14, Figure 15 and Figure 16, the red solid line represents the result of the prediction of the first selected model if no updates are used, allowing a comparison with the behavior shown in Figure 13 for the day 8th November for which no update occurs.
Forecasting results make evident that there is no ‘one-size-fits-all’ technique which is always more accurate than others; rather, the model adopted strongly depends on the historical data used for forecasting. In fact, results show that the forecasting module may return power forecasts based on different forecasting techniques in different days, as one model turned out to be better than the others for a given day. This is evident in Table 3, where two different techniques have been adopted for forecasting the load of the same system in three different days (namely, October 3rd and November 2nd and 3rd). Also, Table 5 shows the results obtained using sample updates from the field and repeating the model selection phase possibly choosing a different approach.
Computation time always remains in the order of a few minutes for a 24-h-ahead forecasting horizon with a granularity of 15 min; it gets faster if no re-tuning is needed for the forecasting model. The computational time is compatible with the operations of the overall monitoring and control architecture whose time resolution has been set to 15 min, in accordance to the expected performance of the second-generation smart meters that will be soon deployed in Italy. Another source of computation time reduction can be exploited using the parallel computing capabilities of the cloud platform.

6. Conclusions

The research project “Energy Router” had as main objective to design an EMS device dedicated to the optimization and control of energy resources distributed in the context of smart grids. The work presented in this article focuses more specifically on the design and development of the microforecasting module that provides day-by-day estimates of energy consumption for EMS applications. This module has been designed to be flexible enough to include different alternative forecasting techniques, in the knowledge that there is no predictive approach that can dominate others for all operating situations and time series considered in this study. The current version of the module includes exponential smoothing, ARIMA and NN. However, other approaches can also be easily integrated into the system, including the possibility to take into account relevant exogenous variables such as temperature and weather conditions, as well as the use and occupation of the building.
The proposed microforecasting module has been tested and validated on two different public sector pilot systems. The results demonstrated the usefulness of the proposed microforecasting module, as the most appropriate and accurate approach is automatically selected for each instance, in accordance with the criteria specified by the user.
The results obtained show that the proposed approach is valid and promising both in terms of quality and in terms of calculation time needed. The results obtained show small prediction errors that can be easily handled by the subsequent control procedure performed in the ER. These results further support the usefulness of adopting rigorous forecasting methods, rather than relying only on rules based on experience, which could leave specific hidden trends or behaviors unobserved. Further advantages are linked to the subsequent stages dedicated to planning and control, since more accurate predictions can generally reduce systems complexity and variability and consequently facilitate their design and tend to mitigate the total required computational efforts.
Electric demand of a single user is characterized by an inherent volatility that restraints the reliability of microforecasting algorithms with respect to the case of forecasting routines applied to larger aggregations of loads. Even though this is a clear drawback of the proposed approach, to assess the impacts of such limitation, the role of micro-forecasts in the proposed energy management systems (EMS) architecture should be considered. In this specific case, forecasts are employed in EMS to optimize the use of generation, storage, and demand resources of a small-sized prosuming unit. The use of model predictive control (MPC) in a hierarchical control structure has been proved to limit the impacts of forecast errors [4], since it takes into account state updates and adjusts dynamically control actions along the operational window. Moreover, in the proposed EMS, whenever microforecast should significantly fail, and MPC provide results too far from optimality, back-up local control strategies that are not based on predictive control but on simple rules, such as for example self-consumption maximization, can always be applied. In any case, significant forecast errors will only draw the solution far from optimality, but the functionality or the security of the system is ensured by the local controller.
The current work is devoted to providing a better assessment of the impact of forecast errors in the use of distributed resources and in the sizing of storage systems. Future research directions include the improvement of the forecasting method considering: (a) the possibility of taking into account exogenous variables; (b) improving the pre-processing phase; (c) studying the impact of the model updating in a new or more articulated forecasting scheme. These possibilities need to adapt the overall framework to provide data (and forecasts) of adequate accuracy for the considered external variables, and the necessary computation methods for the extension of the forecasting models. Further research work can be devoted to performing long-run experimental campaigns (e.g., over one year) for evaluating the overall performance of the proposed framework also collecting and analyzing the feedback from the field.

Author Contributions

All the authors contributed equally to this paper.

Funding

The research work which originates this paper was partially funded by the “Regione Puglia (Italy)–Avviso Aiuti a Sostegno dei Cluster Tecnologici Regionali per l’Innovazione” within the project “Energy Router”, under grant number HX8HXI1.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. U.S. Department of Energy Report. Benefits of Demand Response in Electricity Markets and Recommendations for Achieving Them. 2006. Available online: https://eetd.lbl.gov/sites/all/files/publications/report-lbnl-1252d.pdf (accessed on 24 January 2019).
  2. Bruno, S.; La Scala, M.; Stecchi, U. Monitoring and control of a smart distribution network in extended real-time DMS framework. In Proceedings of the CIGRE 2011 Bologna Symposium–The Electric Power System of the Future: Integrating Supergrids and Microgrids, Bologna, Italy, 13–15 September 2011. [Google Scholar]
  3. La Scala, M.; Bruno, S. From Smart Grids to Smart Cities: New Paradigms for Future Networks. In Introduction to M. La Scala, From Smart Grids to Smart Cities: New Challenges in Optimizing Energy Grids; ISTE-Wiley: London, UK; Hoboken, NJ, USA, 2017; pp. xvii–xliii. [Google Scholar]
  4. Bruno, S.; Giannoccaro, G.; la Scala, M. Predictive Control of Demand and Storage for Residential Prosumers. In Proceedings of the ISGT Europe 2017, Torino, Italy, 26–29 September 2017; pp. 1–6. [Google Scholar]
  5. Bruno, S.; Giannoccaro, G.; la Scala, M.; Lopopolo, G. The Energy Router Project: Enabling Control for Prosumers. In Proceedings of the AEIT International Annual Conference, Cagliari, Italy, 20–22 September 2017; pp. 1–6. [Google Scholar]
  6. Bruno, S.; Giannoccaro, G.; la Scala, M. Optimization of Residential Storage and Energy Resources under Demand Response Schemes. In Proceedings of the 19th IEEE MELECON 2018, Marrakech, Morocco, 2–7 May 2018. [Google Scholar]
  7. Sossan, F.; Paolone, M. Integration and Operation of Utility-Scale Battery Energy Storage Systems: The EPFL’s Experience. IFAC-PapersOnLine 2016, 49, 433–438. [Google Scholar] [CrossRef]
  8. Wang, Y.; Lin, X.; Pedram, M. Adaptive control for energy storage systems in households with photovoltaic modules. IEEE Trans. Smart Grid 2014, 5, 992–1001. [Google Scholar] [CrossRef]
  9. Bruno, S.; Dassisti, M.; la Scala, M.; Chimienti, M.; Cignali, C.; Palmisani, E. Predictive Dispatch Across Time of Hybrid Isolated Power Systems. IEEE Trans. Sustain. Energy 2014, 5, 738–746. [Google Scholar] [CrossRef]
  10. Bruno, S.; Dassisti, M.; la Scala, M.; Chimienti, M.; Stigliano, G.; Palmisani, E. Managing networked hybrid-energy systems: A predictive dispatch approach. IFAC Proc. Vol. (IFAC-PapersOnline) 2014, 19, 2394–2399. [Google Scholar] [CrossRef]
  11. Khodayar, M.E.; Wu, H. Demand Forecasting in the Smart Grid Paradigm: Features and Challenges. Electr. J. 2015, 28, 51–62. [Google Scholar] [CrossRef]
  12. Taylor, J.W. Short-term electricity demand forecasting using double seasonal exponential smoothing. J. Oper. Res. Soc. 2003, 54, 799–805. [Google Scholar] [CrossRef] [Green Version]
  13. Xypolytou, E.; Meisel, M.; Sauter, T. Short-term electricity consumption forecast with artificial neural networks—A case study of office buildings. In Proceedings of the 2017 IEEE Manchester, PowerTech, Manchester, UK, 18–22 June 2017; pp. 1–6. [Google Scholar]
  14. Edwards, R.E.; New, J.; Parker, L.E. Predicting future hourly residential electrical consumption: A machine learning case study. Energy Build. 2012, 49, 591–603. [Google Scholar] [CrossRef]
  15. Sun, C.; Sun, F.; Mourab, S.J. Nonlinear predictive energy management of residential buildings with photovoltaics & batteries. J. Power Sources 2016, 325, 723–731. [Google Scholar] [Green Version]
  16. Chen, Y.; Xu, P.; Chu, Y.; Li, W.; Wang, K. Short-term electrical load forecasting using the Support Vector Regression (SVR) model to calculate the demand response baseline for office buildings. Appl. Energy 2017, 195, 659–670. [Google Scholar] [CrossRef]
  17. Ke, X.; Jiang, A.; Lu, N. Load profile analysis and short-term building load forecast for a university campus. In Proceedings of the Power and Energy Society General Meeting (PESGM), Boston, MA, USA, 17–21 July 2016; pp. 1–5. [Google Scholar]
  18. Beaudin, M.; Zareipour, H. Home energy management systems: A review of modelling and complexity. Renew. Sustain. Energy Rev. 2015, 45, 318–335. [Google Scholar] [CrossRef]
  19. Weron, R. Modeling and Forecasting Electricity Loads and Prices: A Statistical Approach; John Wiley & Sons Ltd.: Oxford, UK, 2006. [Google Scholar]
  20. Box, G.E.P.; Jenkins, G.M.; Reinsel, G.C. Time Series Analysis: Forecasting and Control, 4th ed.; Wiley: Oxford, UK, 2008. [Google Scholar]
  21. Armstrong, J. Principles of Forecasting: A Handbook for Researchers and Practitioners; Springer: Berlin, Gremany, 2001. [Google Scholar]
  22. Dellino, G.; Meloni, C. Uncertainty Management in Simulation-Optimization of Complex Systems. Algorithms and Applications; Operations Research/Computer Science Interfaces Series; Springer: Berlin, Germany, 2015; p. 59. [Google Scholar]
  23. Bruno, S.; Dellino, G.; La Scala, M.; Meloni, C. A Microforecasting Module for Energy Consumption in Smart Grids. In Proceedings of the 2018 IEEE International Conference on Environment and Electrical Engineering and 2018 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe), Palermo, Italy, 12–15 June 2018. [Google Scholar]
  24. Dellino, G.; Meloni, C.; Mascolo, S. A Linear Physical Programming approach to Power Flow and Energy Storage Optimization in Smart Grids Models. In Proceedings of the International Conference on Operations Research and Enterprise Systems, ICORES, Lisbon, Portugal, 10–12 January 2015; Volume 1, pp. 224–231. [Google Scholar]
  25. Dellino, G.; Laudadio, T.; Meloni, C.; Mari, R.; Mastronardi, N. Microforecasting methods for fresh food supply chain management: A computational study. Math. Comput. Simul. 2018, 147, 100–120. [Google Scholar] [CrossRef]
  26. MATLAB, 2014; Version 8.4.0 (R2014b); The MathWorks Inc.: Natick, MA, USA, 2014.
  27. Wickham, H.; Grolemund, G. R for Data Science; O’Reilly Media: Sevvan, CA, USA, 2016. [Google Scholar]
  28. Hyndman, R.; Bergmeir, C.; Caceres, G.; O’Hara-Wild, M.; Razbash, S.; Wang, E. Forecast: Forecasting Functions for Time Series and Linear Models. R Package Version 8.3. 2017. Available online: http://pkg.robjhyndman.com/forecast (accessed on 24 January 2019).
  29. Dellino, G.; Laudadio, T.; Meloni, C.; Mari, R.; Mastronardi, N. A reliable Decision Support System for fresh food Supply Chain Management. Int. J. Prod. Res. 2018, 56, 1458–1485. [Google Scholar] [CrossRef]
  30. Cleveland, R.B.; Cleveland, W.S.; McRae, J.; Terpenning, I. STL: A seasonal-trend decomposition procedure based on loess. J. Off. Stat. 1990, 6, 3–73. [Google Scholar]
  31. Dellino, G.; Laudadio, T.; Meloni, C.; Mari, R.; Mastronardi, N.; Vergura, S. Energy Production Forecasting in a PV plant using Transfer Function Models. In Proceedings of the IEEE 15th International Conference on Environment and Electrical Engineering, Rome, Italy, 10–13 June 2015; pp. 1379–1383. [Google Scholar]
  32. Yang, C.; Thatte, A.A.; Xie, L. Multitime-Scale Data-Driven Spatio-Temporal Forecast of Photovoltaic Generation. IEEE Trans. Sustain. Energy 2015, 6, 104–112. [Google Scholar] [CrossRef]
  33. Dellino, G.; Laudadio, T.; Mari, R.; Mastronardi, N.; Meloni, C. Demand forecasting algorithms and supply chain optimization for fresh and perishable biological foods. In MASCOT 2015–IMACS Computational and Applied Mathematics; Mansutti, D., Spitaleri, R.M., Eds.; IMACS: Rome, Italy, 2017; Volume 20, pp. 61–70. [Google Scholar]
  34. Makridakis, S.; Wheelwright, S.C.; Hyndman, R.J. Forecasting Methods and Applications, 3rd ed.; Wiley India Pvt. Limited: Oxford, UK, 2008. [Google Scholar]
Figure 1. Multilayer scheme of the “Energy Route” architecture.
Figure 1. Multilayer scheme of the “Energy Route” architecture.
Energies 12 01006 g001
Figure 2. Architecture of the microforecasting tool.
Figure 2. Architecture of the microforecasting tool.
Energies 12 01006 g002
Figure 3. Installation of a compact multi-function network analyzer in a junction box (pilot system in Monopoli).
Figure 3. Installation of a compact multi-function network analyzer in a junction box (pilot system in Monopoli).
Energies 12 01006 g003
Figure 4. Pilot system: Municipal office (Monopoli). Power consumption seasonality.
Figure 4. Pilot system: Municipal office (Monopoli). Power consumption seasonality.
Energies 12 01006 g004
Figure 5. Pilot system: Municipal office (Monopoli). Box plots of working days power consumption. The x-axis reports day ours, while y-axis indicates power consumption (kW).
Figure 5. Pilot system: Municipal office (Monopoli). Box plots of working days power consumption. The x-axis reports day ours, while y-axis indicates power consumption (kW).
Energies 12 01006 g005
Figure 6. Pilot system: Municipal office (Monopoli). Box plots of weekend days power consumption. The x-axis reports day ours, while y-axis indicates power consumption (kW).
Figure 6. Pilot system: Municipal office (Monopoli). Box plots of weekend days power consumption. The x-axis reports day ours, while y-axis indicates power consumption (kW).
Energies 12 01006 g006
Figure 7. Pilot system: School (Palo del Colle). Power consumption seasonality.
Figure 7. Pilot system: School (Palo del Colle). Power consumption seasonality.
Energies 12 01006 g007
Figure 8. Pilot system: School (Palo del Colle). Box plots of working days power consumption. The x-axis reports day ours, while y-axis indicates power consumption (kW).
Figure 8. Pilot system: School (Palo del Colle). Box plots of working days power consumption. The x-axis reports day ours, while y-axis indicates power consumption (kW).
Energies 12 01006 g008
Figure 9. Pilot system: School (Palo del Colle). Box plots of weekend days power consumption. The x-axis reports day ours, while y-axis indicates power consumption (kW).
Figure 9. Pilot system: School (Palo del Colle). Box plots of weekend days power consumption. The x-axis reports day ours, while y-axis indicates power consumption (kW).
Energies 12 01006 g009
Figure 10. Pilot system: Municipal office (Monopoli), Day: 3 October 2017. Daily forecasts vs. observed power consumption.
Figure 10. Pilot system: Municipal office (Monopoli), Day: 3 October 2017. Daily forecasts vs. observed power consumption.
Energies 12 01006 g010
Figure 11. Pilot system: Municipal office (Monopoli), Day: 2 November 2017. Daily forecasts vs. observed power consumption.
Figure 11. Pilot system: Municipal office (Monopoli), Day: 2 November 2017. Daily forecasts vs. observed power consumption.
Energies 12 01006 g011
Figure 12. Pilot system: Municipal office (Monopoli), Day: 3 November 2017. Daily forecasts vs. observed power consumption.
Figure 12. Pilot system: Municipal office (Monopoli), Day: 3 November 2017. Daily forecasts vs. observed power consumption.
Energies 12 01006 g012
Figure 13. Pilot system: School (Palo del Colle), Day: 8 November 2017. Daily forecasts vs. observed power consumption.
Figure 13. Pilot system: School (Palo del Colle), Day: 8 November 2017. Daily forecasts vs. observed power consumption.
Energies 12 01006 g013
Figure 14. Pilot system: School (Palo del Colle), Day: 14 November 17. Daily forecasts vs. observed power consumption.
Figure 14. Pilot system: School (Palo del Colle), Day: 14 November 17. Daily forecasts vs. observed power consumption.
Energies 12 01006 g014
Figure 15. Pilot system: School (Palo del Colle), Day: 19 November 17. Daily forecasts vs. observed power consumption.
Figure 15. Pilot system: School (Palo del Colle), Day: 19 November 17. Daily forecasts vs. observed power consumption.
Energies 12 01006 g015
Figure 16. Pilot system: School (Palo del Colle), Day: 28 November 17. Daily forecasts vs. observed power consumption.
Figure 16. Pilot system: School (Palo del Colle), Day: 28 November 17. Daily forecasts vs. observed power consumption.
Energies 12 01006 g016
Table 1. Adopted Out-of-sample statistical indicators and their mathematical expressions.
Table 1. Adopted Out-of-sample statistical indicators and their mathematical expressions.
Statistical IndicatorMathematical Expression
RMSE 1 n t = 1 n ( y t y ^ t ) 2
MAE 1 n t = 1 n | y t y ^ t |
MaxAE max t = 1 , , n | y t y ^ t |
MAPE 100 · 1 n t = 1 n y t y ^ t y t
MaxAPE max t = 1 , , n y t y ^ t y t
R 2 1 t = 1 n ( y t y ^ t ) 2 t = 1 n ( y t μ ) 2
Table 2. Parameters Settings.
Table 2. Parameters Settings.
ParameterDescriptionAdopted Value
ForecastHorizonForecasting horizon length24 h
NtrainTraining set sample size14 days
NvalidValidation set sample size 2 days
NtestTest set sample size 1 day
tsNo. of time slots per hour 4
UpdFreqAccuracy check frequency 6 or 24 h
UpdThAccuracy check threshold (MAPE) 15%
Table 3. Pilot system: Municipal office (Monopoli). Computational Results (UpdFreq = 24 h).
Table 3. Pilot system: Municipal office (Monopoli). Computational Results (UpdFreq = 24 h).
Prediction DaySelected ModelRMSE (kW)MAE (kW)MaxAE (kW)MAPE (%)MaxAPE (%) R 2
03 October 17PSS0.990.723.2711.7253.170.83
02 November 17PSS1.270.884.8113.4452.300.86
03 November 17NN0.820.582.879.5636.910.88
Table 4. Pilot systems: School (Palo del Colle). Computational Results. (UpdFreq = 24 h).
Table 4. Pilot systems: School (Palo del Colle). Computational Results. (UpdFreq = 24 h).
Prediction DaySelected ModelRMSE (kW)MAE (kW)MaxAE (kW)MAPE (%)MaxAPE (%) R 2
08 November 17PSS2.521.6911.1420.17142.770.79
14 November 17PSS3.973.1811.5938.57172.040.63
19 November 17NN0.750.611.6441.29219.740.16
28 November 17NN2.381.757.0123.00198.290.80
Table 5. Pilot systems: School (Palo del Colle). Computational Results. (UpdFreq = 6 h).
Table 5. Pilot systems: School (Palo del Colle). Computational Results. (UpdFreq = 6 h).
Prediction DayUpdate HourSelected ModelRMSE (kW)MAE (kW)MaxAE (kW)MAPE (%)MaxAPE (%) R 2
08 November 1700:00PSS2.521.6911.1420.17142.770.79
06:00-------
12:00-------
18:00-------
14 November 1700:00PSS3.973.1811.5938.57172.040.63
06:00STL3.943.1010.3726.5682.610.63
12:00NN2.742.077.2416.9856.880.70
18:00STL1.901.236.7215.5775.26−2.51
19 November 1700:00NN0.750.611.6441.29219.740.16
06:00NN0.930.791.8550.82205.39-0.34
12:00NN0.550.461.0437.06138.260.53
18:00-------
28 November 1700:00NN2.381.757.0123.00198.290.80
06:00STL1.961.504.8217.35142.680.81
12:00STL2.271.825.8126.60195.810.61
18:00NN3.162.675.6145.56204.760.10

Share and Cite

MDPI and ACS Style

Bruno, S.; Dellino, G.; La Scala, M.; Meloni, C. A Microforecasting Module for Energy Management in Residential and Tertiary Buildings . Energies 2019, 12, 1006. https://doi.org/10.3390/en12061006

AMA Style

Bruno S, Dellino G, La Scala M, Meloni C. A Microforecasting Module for Energy Management in Residential and Tertiary Buildings . Energies. 2019; 12(6):1006. https://doi.org/10.3390/en12061006

Chicago/Turabian Style

Bruno, Sergio, Gabriella Dellino, Massimo La Scala, and Carlo Meloni. 2019. "A Microforecasting Module for Energy Management in Residential and Tertiary Buildings " Energies 12, no. 6: 1006. https://doi.org/10.3390/en12061006

APA Style

Bruno, S., Dellino, G., La Scala, M., & Meloni, C. (2019). A Microforecasting Module for Energy Management in Residential and Tertiary Buildings . Energies, 12(6), 1006. https://doi.org/10.3390/en12061006

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

Article Metrics

Back to TopTop