1. Introduction
The unpredictable nature of renewable energy sources leads to intermittent generation that gives rise to balancing issues between supply and demand in the electrical grid [
1]. Therefore, smart grids have been introduced for dynamically balancing the load. Demand Side Management (DSM) is a possible approach to adjust the consumption based on the rate of renewable energy production [
2,
3]. Efficiency improvements, controlling the consumption load, and the control of distributed energy resources are among DSM’s possible actions [
4]. Demand-side strategies that incentivize/penalize customers for shifting or reducing their consumption during peak periods are called Demand Response (DR) [
5]. DR programs contribute to improving grid reliability, reducing aggregate electricity prices, and providing opportunities for participants to achieve cost savings [
6].
Buildings are excellent candidates for contributing to grid stability by offering flexibility due to their considerable energy consumption [
7]. Within this setting, a building’s capacity to reduce, shed, shift, modulate, or generate electricity provided by on-site distributed energy resources (DERs) is often called demand flexibility or energy flexibility. The building sector is responsible for a notable share of 36% of global energy consumption, causing about 40% of the total emissions worldwide [
8]. Among this load, heating, ventilation, and air conditioning (HVAC) consumption with a substantial share of 38% [
9] holds a promising potential to contribute to providing flexibility in buildings. Among different categories of buildings, warehouses, which are the buildings that serve as facilities to receive, store, and dispatch goods [
10], are of substantial significance. Warehouses hold a share of 11% of the emissions in the logistics sector [
11], where a significant portion of their emissions is due to HVAC consumption [
12]. HVAC loads are among the thermostatically controlled loads (TCLs) [
13,
14,
15] that offer promising potential for delivering demand flexibility to the grid. Despite the continued increase in warehouse demand, the importance of their energy efficiency and consumption is often neglected [
16]. Warehouses have a high thermal inertia due to their specific architecture with high ceilings and vast indoor spaces, providing them with a high amount of flexibility [
17]. Moreover, enormous uninterrupted rooftop spaces in warehouses provide them with a high capacity for photovoltaic (PV) panel installation [
18], which can be manipulated to deliver flexibility to the grid.
Cooling consumption is extremely important among HVAC loads in buildings, given that its demand has doubled since 2000, as shown in the International Energy Agency (IEA) assessments [
19]. It has emerged as the fastest-growing demand in buildings, and projections indicate that this demand is expected to triple by 2050 [
20,
21,
22]. Moreover, advancements in technologies and higher levels of welfare require more refrigeration loads as well as HVAC loads in warehouses. A lack of refrigeration accounts for approximately 20% of total food losses [
23], which indicates an upward demand for refrigeration load, especially in developing countries. Moreover, due to the significant share of the cooling load in the warehouse facility’s energy consumption, in contrast to the majority of commercial/industrial customers, the corresponding energy demand varies notably with a change in weather conditions. Accordingly, the cooling load holds extreme significance when it comes to warehouses.
Deploying DR strategies has been facilitated through Internet of Things (IoT) technologies and Artificial Intelligence (AI) [
24] in recent years. By recognizing patterns and solving non-linear functions, AI and machine learning (ML) can handle extensive data and contribute to complex computations required to enable DR [
25,
26]. In this context, grid-interactive efficient buildings (GEBs) leverage smart technologies and on-site distributed energy sources to provide DR while optimizing energy costs and meeting occupants’ comfort and productivity requirements [
27]. Consumption and generation in GEBs can be altered based on signals from the grid [
28]. Before receiving a signal, the building follows the typical consumption, also known as the baseline load. In general, the baseline load represents the regular energy consumption of the building in the absence of any DR measures [
29]. Upon receiving the grid signal, the load of the building is reduced for a certain period, followed by a rebound effect. Prediction of the load of the building levels allows planning for participation in DR and responding to these signals. Accurate prediction of building energy consumption ensures grid safety and mitigates financial risks in electricity market management [
30]. Load predictions can be performed on the baseline load during the flexibility event to quantify the energy flexibility offered by the building to compensate the participants [
29]. Numerous works in the literature exist in this field, from averaging methods [
31,
32,
33], control groups [
34], and regression methods [
29,
35,
36,
37]. Alternatively, the load of the building during the demand response can be predicted in advance. Campodonico et al. [
38] employed deep learning neural networks to predict the demand flexibility of the HVAC load in a modeled office building. When the penalty-aware signal was received, predictions for up to 3 h in advance were made. Results were reported considering the Mean Absolute Percentage Error (MAPE), with a maximum value of 3.55% reported during testing.
Identified Research Gap and Contributions of the Current Work
Buildings have a high potential to provide flexibility to the grid through their HVAC consumption and thermal mass. Various studies have tried to address this issue in residential and non-residential buildings. However, the flexibility of warehouses needs to be further investigated. No previous work has investigated demand flexibility prediction in warehouses. Furthermore, with the increasing demand for HVAC cooling loads in warehouses, there are opportunities for interventions that can provide flexibility to the grid that need to be further explored. Prediction of hourly demand flexibility in warehouses could provide warehouse managers with opportunities to respond to DR programs, save costs, enhance the comfort of the occupants, and incorporate the charging of electric vehicles (EVs). Moreover, most of the literature on load prediction has utilised a batch learning approach without investigating the effect of gradually incorporating new data.
Motivated by the identified research gap, this work introduces a method to predict the demand flexibility of the HVAC load (reduced electric load under a flexibility event) enabled through adjusting the cooling system’s setpoints in a modeled warehouse. Modeling was conducted from one hour prior to the initiation of a flexibility event, extending for up to four hours after its onset. Therefore, the contributions of the present study can be listed as follows:
Performing physics-based modeling on warehouse buildings, including office spaces, for three different cooling scenarios aiming to cover various case studies.
Performing adjustments of cooling setpoints to reduce consumption and provide flexibility.
Implementing ML-based pipelines to perform multi-step predictions on five hourly consumption values of the building one hour ahead of the flexibility event. This allows for the simultaneous prediction of the baseline load (the preceding hour), the load reduction resulting from the setpoint adjustment, and the load behavior for up to four hours after the flexibility event.
Comparing the performance of a tree-based machine learning algorithm (random forest (RF) regressor) and an ANN algorithm (MLP) in predicting the electrical load under DSM scenarios.
Employing multi-step forecasting with an expanding window training scheme to emulate the real-case scenarios where flexibility event data are generated progressively over time.
HVAC-based flexibility can effectively be utilized in warehouses for balancing (increasingly utilized) EV vehicle’s charging load, along with participation in DR programs and flexibility markets (available for all types of buildings). The growing utilization of electric trucks in the transport/warehousing sector (suggested in decarbonization programs) raises concerns about the impact of the resulting charging load on the grid, especially in real-world case studies where EVs arrive in the evening and require partial charging for nighttime deliveries [
39]. The proposed methodology can effectively assess the possibility of charging trucks without causing a surge in consumption by reducing the HVAC load. The results of the implemented methodology can thus proactively recommend the optimal number of trucks and how much charging can be provided to them (in terms of kWh) in advance, owing to the fact that predictions of the expected load reduction are provided an hour before the setpoint adjustments are imposed.
Moreover, DR (and participation in flexibility markets) is becoming increasingly popular in the industrial sector owing to the corresponding notable incentives. However, without a tool that determines the extent to which the setpoint adjustment strategy can reduce the load and the resulting load reduction duration, these facilities cannot effectively participate in these programs. This research work was initiated with the intention of addressing the challenges faced by conditioned warehouse facilities to balance the growing EV charging load while participating in demand response programs.
5. Conclusions
The performance of ML-based pipelines in performing short-term predictions on reduced load, under flexibility events, in a modeled warehouse building was assessed in the current work. Physics-based energy simulations were performed using EnergyPlus on a modeled warehouse in Los Angeles, California, under a summer cooling scenario. Flexibility events were imposed using setpoint adjustments in the cooling system at 17:00, leading to a reduced electrical consumption while containing the temperature increase within a limited threshold of 2.1 C. Moreover, the maximum duration of the flexibility event was set to 4 h. Three different cases were introduced, broadening the applicability of the proposed approach to various cooling scenarios. The first case considered the cooling demand only in the storage areas, while the second case included non-conditioned storage with cooling provided for the offices. Finally, the last case considered the cooling load in both storage and office zones. The results of the simulation were employed to train machine-learning-based pipelines to predict (at 16:00 with a total of five outputs) the five hourly values of the building’s consumption, including one hour before the flexibility event and up to four hours after the setpoint adjustment. Therefore, the first hour prediction contained the baseline load consumption of the building at the end of which flexibility measures are imposed (through setpoint adjustment) and the subsequently reduced consumption and rebound effect during the next four hours after the initiation of the flexibility event. Two different forecasting pipelines of RFR and MLP were implemented to compare their performance. Moreover, simulations were performed for two consecutive years and an expanding window scheme was selected as the training method. The first year simulations were employed for validation and second year data were used for testing.
The obtained results indicated that in all the simulated case studies, RFR outperformed the MLP algorithm. Therefore, it can be inferred that the tree-based machine learning algorithm is better suited than the MLP model in this application, which involves expanding windows and limited observations. Moreover, it was shown that the forecasting pipelines with RFR could achieve an average error of less than 3.5% in all three cases with a maximum error of 7%. The accuracy achieved, particularly in the third scenario that incorporated both offices and storage spaces with distinct thermal behavior and demands, demonstrates the reliability of the proposed approach and the implemented machine-learning-based pipelines. It was also observed that flexibility events in case 2 (only offices) would terminate quickly owing to the low thermal inertia observed in the simulation stage, leading to less transient behavior and a higher prediction accuracy for that specific case. Next, the results were reported considering error metrics suggested by ASHRAE standard 14 and IPMVP for calibrated models and were shown to fall within the defined threshold. Furthermore, it was shown that expanding window training that gradually incorporates new data points to emulate online learning enhances the model’s performance consistently as new training opportunities are introduced and also allows retraining the models on the latest shifts in load behavior or environmental characteristics.
Including the extra hour of forecasting ahead of the flexibility event, involving setpoint adjustment, establishes the baseline load consumption in the next hour, after which the flexibility measures are imposed. This will provide an accurate assessment of the load reduction that can be obtained through the proposed setpoint adjustment. Additionally, predicting load values an hour in advance, with the accuracy offered in the current work, provides a reliable tool and sufficient planning time for integrating EV charging or planning to engage in demand response programs. Moreover, the load values for up to four hours after initiating the flexibility measure represent the rebound effect and the resulting load penalty, which can effectively be used in the decision-making mechanism.