Forecasting hot water demand aiming at domestic energy efficiency
Abstract
Este trabalho pretende apresentar uma abordagem para a previsão do consumo de água quente ao nível doméstico, com a principal finalidade de controlo autónomo da temperatura da água por parte de um aparelho de acumulação de água quente mediante as necessidades de consumo dos residentes, pelo que será um contributo para a eficiência energética, num contexto de Smart Cities.
Full text
FACULDADE DE ENGENHARIA DA UNIVERSIDADE DO PORTO Forecasting Hot Water Demand aiming at Domestic Energy Efficiency Carlos Daniel Saraiva Fernandes Master in Informatics and Computing Engineering Advisor: Rosaldo José Fernandes Rossetti (PhD) Co-advisor: Nuno André Silva (Eng) June, 2016
© Carlos Fernandes, 2016
Abstract In smart houses context, in addition to the development of more energy efficient domestic appliances, is essential to understand households’ energy usage habits, in order to uncover saving opportunities. These opportunities reflect not only financial savings for the households, but also in the reduction of utility load. With the technological developments, some domestic appliances are able to store data related to their usage by the households, which enables tracing the usage profiles and use that information to leverage domestic energy efficiency by many ways. This dissertation particularly focuses on hot water control as a resource to optimize (representing an average of 24% of the total energy consumption in the households), proposing a data analysis approach that is able to model hot water consumption in dwellings so that a water heater can act more efficiently when needed and heat only the necessary water volume.
Acknowledgments I would like to thank to my advisor Prof Rosaldo Rossetti, for giving me full support doing this research project and all the help and suggestions provided to overcome some challenges that we faced. Also, to my co-advisor Nuno Silva, for all the support provided during the project and for giving me this great opportunity to do an internship at Bosch Thermotechnology that made this dissertation a much exciting and richer experience inside the industry world. I also thank to all colleagues from Bosch for all the support and friendship, specially to Sérgio Conceição, Diogo Guimarães and Tânia Correia. I also thank to my friends for all the support and companionship during, not only this work, but also during all the course, specially to “Team Fernandes”. Finally, and the most important, I thank to my grandparents, parents and my brother for all the support and teachings during my whole life. Carlos Fernandes
“I have not failed. I’ve just found 10,000 ways that won’t work.” Thomas A. Edison
Contents 1 Introduction.. ................................................................................................................... 1 1.1 Context……………………………………………………………………………. 1 1.2 Motivation………………………………………………………………………… 1 1.3 Objectives………………………………………………………………………… 2 1.4 Document Structure……………………………………………………………… 3 2 State of the art……………………………………………………………………………. 5 2.1 Data analytics research towards energy efficiency………………………………. 5 2.2 Modeling and forecasting DHW techniques……………………………………… 16 3 Methodology……………………………………………………………………………… 26 3.1 Data Generation and Simulation Scenarios………………………………………. 27 3.2 Time Series decomposition……………………………………………………….. 32 3.3 Time Series preliminary analysis…………………………………………………. 34 3.4 DHW Forecasting algorithms……………………………………………………… 34 3.5 Model Evaluation………………………………………………………………….. 36 4 Results……… ………....................................................................................................... 38 4.1 Time Series Analysis……………………………………………………………..... 38 4.2 L dwelling…………………………………………………………..……………….. 39 4.2.1 Time Series decomposition…………………………………….…………….. 39 4.2.2 Hot water usage profiles……………………………………………………. 43 4.2.3 Model evaluation………………………………………………………….. 43 4.2.4 Forecasts…………………………………………………………………… 44 4.3 M dwelling…………………………………………………………………………… 45 4.3.1 Time Series decomposition…………………………………………………. 45 4.3.2 Hot water usage profiles…………………………………………………….. 49 4.3.3 Model evaluation…………………………………………………………... 50 4.3.4 Forecasts…………………………………………………………………… 51 4.4 S dwelling……………………………………………………………………………. 52 4.4.1 Time Series decomposition…………………………………………………. 52 4.4.2 Hot water usage profiles………………………………………………….…. 56 4.4.3 Model evaluation………………………………………………………....... 56 4.4.4 Forecasts…………………………………………………………………… 57 5 Conclusions and Future work…….. …………………………………………………... 59 References..................................... ..................................................................................... 61 Annexes......................................... ................……………………………………………. 63
Introduction 1 Chapter 1 Introduction 1.1 Context The DHW (Domestic Hot Water) consumption represents a large part of energy cost of residential end-users. There are two main kinds of water heating appliances: instantaneous and storage devices, respectively. The first type heats up the water on demand, while in the second type, the DHW is commonly stored in a water tank of variable size whose total capacity is heated up and maintained within a user-defined setpoint temperature by an electrical resistance (EWS – Electrical Water Storage), throughout the day. However, the DHW is not required during all day, the whole heated volume is rarely tapped by end-users and the required energy to keep the whole volume at the desired temperature is wasted through heat losses. A solution to overcome this problem is to heat only the DHW volume that residents need in order to adjust and control only the necessary energy. With the technological improvements on the domestic appliances ECUs (electronic control units), it is possible to store information about the hot water tappings in the appliance ECU. With a flow meter installed on the device, it is possible to obtain the volumetric consumption for each tapping in a regular temporal basis. This way, DHW usage data is available to be analyzed in order to uncover energy saving opportunities. This dissertation is a research project developed at Bosch Thermotechnology (Aveiro, Portugal). 1.2 Motivation Since the early 80’s, companies and the government tried to incentive the population to lower their energy demand through several methods. This way, it would be possible not only to achieve financial savings by the households but also lower the need for investment on the electrical grid. [1]. Furthermore, the European commission has itself established a 20% energy
Introduction 2 savings target by 2020 [2], and part of these savings can be achieved by understanding energy usage habits and trying to control domestic appliances in a more energy efficient way. The EWS appliance operates offering hot water throughout the day, but is clear that there are periods when it is not required. This leads to energy waste. A new working mode for this appliance could arise from this dissertation – “Smart Mode” – where the appliance learns hot water usage profiles and is able to heat only the DHW volume that residents need, when they need. Some studies about forecasting hot water consumption have been carried out but isn’t a spread subject in the informatics field. 1.3 Objectives This dissertation has the main goal of studying a new approach in order to model DHW consumption using simple and low computational resources consuming algorithms that can be implemented in the appliance ECU in a cost-effective way, so that is possible to forecast hot water demand allowing the appliance to control the water setpoint temperature according to the specific usage profiles. The following sub-goals can be identified: Study DHW forecasting and modeling techniques; Generate DHW consumption data; Decompose generated data; Implement DHW forecasting algorithms; Evaluate the developed models; Conclude about the developed models.
Introduction 3 1.4 Document Structure This document is organized in five chapters. Chapter 2 presents the state of the art regarding data analytics researches towards energy efficiency and also modeling and forecasting DHW techniques. Chapter 3 shows the methodology used to achieve the goals described in this chapter. Chapter 4 presents the results obtained from our simulation framework. Finally, Chapter 5 draws the major conclusions and future work to be carried out.
4
State of the Art 5 Chapter 2 State of the art 2.1 Data analytics research towards energy efficiency Several studies related to data collection and analysis have been made in order to understand the energy consumption behavior by the population, within a residential context. This sub-chapter presents a summary of some of those studies considered relevant for the dissertation context, and its main conclusions. Energy Saving Trust [UK, 2008] has made a study which involved collecting DHW consumption data in 120 apartments [3]. The main goal was to measure the DHW volume consumed and energy spent for this purpose, as well as factors that influence the DHW volumetric consumption in dwellings. It also intended to identify DHW usage patterns, in terms of volume and temperature, and the identification of house sites where hot water is consumed. For this study, sensors were placed in the boiler outlet (or similar device which performs heating and supply of hot water) which allowed DHW measurement of the water volumetric amount and temperature. In order to obtain information about where in the house the hot water is consumed, extra sensors were placed in some apartments. This study concluded that the average consumption of hot water is fixed at 122 liters / day with a confidence interval of + - 18 liters / day to 95%. The geographical area, number of occupants and division between adults and children were also recorded for each apartment, which was important to characterize the DHW volumetric consumption and check the main influential factors. To understand which attributes have more influence on the DHW consumption amount, a covariance analysis was performed - ANCOVA. Table 2.1 shows the results, wherein a probability equal to 100% indicates that the factor can be left without decreasing model quality, on the other hand a probability of 0% indicates that the attribute is essential for model formulation. It is possible to
State of the Art 6 observe that the number of occupants is the main factor that determines the amount of consumed hot water, while the number of children is not considered a relevant factor. Factor Probability Nº of children 67% Region 20% Boiler type 12% Nº of occupants 0% Table 2.1: Importance of several attributes in order to determine the volumetric DHW consumption [Source: (Energy Saving Trust, 2008)]. Domestic energy model BRE (BREDEM) defines the average daily volumetric DHW demand ( ) at the household level according to the number of occupants N, as expressed in the equation (2.1) (2.1) Relating the DHW volumetric consumption along the day, the research has obtained the results presented in figure 2.1, considering the average of all apartments it is possible to observe two usage peaks that indicate occupants routine. Figure 2.1 – Distribution of the DHW consumed along a day [Source: (Energy Saving Trust, 2008)].
State of the Art 7 Considering the amount of energy required to heat the water, this study has established a linear regression that describes the energy amount required for heating the water as a function of the total volumetric DHW consumed, as presented in figure 2.2. Figure 2.2: Linear regression describing the energy consumed according to the DHW usage [Source: (Energy Saving Trust, 2008)] Figure 2.3: Energy spent along a day, with DHW heating purpose [Source: (Energy Saving Trust, 2008)] Another goal of this study was to analyze the DHW heating patterns: temperatures experienced by the households along the day, as well as the hours of the day which water is heated.
State of the Art 8 Figure 2.4: Average DHW temperature [Source: (Energy Saving Trust, 2008)]. Regarding DHW heating times, the study observed diverse results between the different apartments. Figures 2.5 and 2.6 show, respectively, heating times per hour regarding an apartment and an average of all the sample. Figure 2.5: Time intervals when water is heated for an apartment [Source: (Energy Saving Trust, 2008)]
State of the Art 9 Figure 2.6: Time intervals when the water is heated, for all apartments sample [Source: (Energy Saving Trust, 2008)]. This study also concluded that the DHW usage on the different house sites (shower, bath, bathroom basin, kitchen basin) is according to the graph present on figure 2.7. In figure 2.8, is possible to observe the average frequency of its usage on a given day, on each hour. Figure 2.7: Comparison between DHW usage, on several domestic tasks [Source: (Energy Saving Trust, 2008)].
State of the Art 16 2.2 Modeling and forecasting DHW techniques Lomet et al (2015) [6] proposed a model in order to estimate the daily DHW consumption from single family houses equipped with solar hot water tank. The goal is not to require strong computation resources and information about the residents. Thus, this model can be embedded and integrated in a planning and control strategy. Authors refer to previous studies in this field that focus the use of neural networks, grey-box modeling approaches and regression which is also used to model data in the energy field. However, these models consume a lot computational resources. On the other hand, authors refer to the probability based or moving average models that don’t consume a lot of resources but need strong assumptions of the DHW profiles which do not take into account isolated fluctuations of the consumption. The model developed by the authors is designed from a data mining study realized on real usages of 8 residences equipped with solar water tank. This study highlights a weekly periodicity, random fluctuations and the different profiles of consumption following the residence, the season, and the day of the week. Therefore, to take into account these results, authors proposed a time series model whose form is fixed for all residences and whose parameters are tuned for each residence. The proposed ARMA process considers the DHW consumption of the previous days and the day of the previous week. The data were gathered through the measurement of the real uses of DHW consumption for 8 residential homes in France over two years between 2009 and 2011. The timestamp, the inlet and outlet temperatures of the tank and the consumed volume were given per day, but the location and the number of residents is unknown. The preliminary analysis revealed that the presence of DHW consumption early in the day involves a significant one in the evening, and a day for which a consumption is observed in the morning presents almost every time a nonnegligible one at the end of the day. Otherwise, the consumption is short time and irregular in consumed volume and when it is drawn as shown in figure 2.12. Figure 2.12: Consumed volume in liters per day for the residence A.
State of the Art 17 Authors also analyzed residents’ behavior with respect to their consumption in eight residences in order to highlight the different phenomena which impact the daily consumed volume. The statistical analysis of these data highlights that different factors have an influence on the DHW consumed volume. Thus, the season has a strong influence since the needs are lower in summer than in winter. Moreover the consumed volume depends on the month which decreases also during February and August as shown in figure 2.13. These graphs represent the average of consumed volume of DHW per month of the year and the average of the consumed DHW volume per day of occupancy for the residence A. This last one highlights that the decreases observed during February and August on the left graph are due to the lower number of days in February and to the absence of the residents since these decreases do not appear when we consider the average of consumption per days of occupancy. Figure 2.13: Average of consumed volume in liters per month of the year for the residence A: on the left, the graph represents the average of the consumed volume per month; on the right, the average of the consumed DHW volume per day of occupancy. Another result is the definition of different consumption profiles which vary following the residence and the day of the week as illustrated in Figure 2.14. These boxplots represent the consumed volume in liters per day of the week for the residences A (left subfigure) and C (right subfigure). It is possible to observe that the consumed volume on Wednesday is generally up two times compared to the average volume of Monday for the residence A because the school is closed (in France) while this is not the case for the residence C: generally, the profile of a typical week depends on the considered residence. The model used to forecast the DHW consumption has to be adaptable to the different daily profiles of each residence.
State of the Art 18 Figure 2.14: Boxplot of the consumed volume in liters per day of the week for the residences A (in the left) and C (in the right). Even if the consumption profiles are different for each residence, all of them present a periodic pattern of the consumption of one week as shown in figure 2.15. Authors also conclude that there are significant consumption peaks each seven days, which means that the values are correlated with a periodicity of a week. Figure 2.15: Autocorrelogram of the DHW consumed volume per day of the residence C and D (lag in days). Although the DHW consumption of the 8 residences presents various profiles, is possible to observe similar trends like the decrease in summer and the periodicity of one week. Authors proposed a model for time series with an autoregressive part to integrate all the preliminary observations. Since the DHW consumption is given in liters per day and the observations follow a temporal dimension in discrete time, they can be defined as a time series model like ARIMA in order to analyze the previous behavior and predict the future behavior. An ARIMA model is a generalization of the ARMA model and allows to take into account the non-stationarity and the periodicity of the data. An ARIMA process of order is defined by three
State of the Art 19 components: the autoregressive model of order p, the integration of order d, the moving average of order q, and given by (2.4) Where is an ARMA process of order given by (2.5) Where the parameters and are linear coefficients and a white noise. To set the general form of the model, authors considered the results of the data analysis presented before which highlights a periodicity of one week for each residence. Moreover, to take into account promptly the variations of the consumption due to the absence of the residents during the holidays and other sudden changes, authors also consider in the model the DHW consumed volume of the previous days. Different numbers of previous days and numbers of weeks have been integrated in the model for example. Finally, authors retained the model that minimizes the forecasting error. Thus, the form of the model is fixed for all residences as in the equation (2.6), where is a constant value (the mean of DHW consumed volume). (2.6) Thus only the coefficient values and depend on the residence. Basically, these parameters are tuned through a learning phase based on a historical dataset. The developed model was compared to estimations given by the daily average consumption and by the moving average on the same day of the week during the last two months. Figures 2.16 an 2.17 show the forecasts and error distribution of the ARMA model for three residences. On the left, the testing dataset and the estimations are represented: the upper figure is the forecasts of the mean, the middle figure is the PG model estimations and the bottom figure is the developed ARMA model forecasts. On the right, the error distribution and median for each (in red) are plotted.
State of the Art 20 Figure 2.16: Autocorrelogram of the DHW consumed volume per day of the residence C and D (lag in days). Figure 2.17: Autocorrelogram of the DHW consumed volume per day of the residence C and D (lag in days).
State of the Art 21 Linas Gelažanskas * and Kelum A. A. Gamage (2015)] [7] analyzed a set of hot water consumption data from residential dwellings and fitted some forecasting models, such as exponential smoothing, seasonal autoregressive integrated moving average, seasonal decomposition and a combination of them, in order to test different prediction techniques. The developed models were compared against some benchmark models - mean, naive and seasonal naïve. The data were collected by the Energy Monitoring Company in conjunction with and on behalf of the Energy Saving Trust with funding of the Sustainable Energy Policy Division of the Department of Environment, Food and Rural Affairs (Defra), UK [30]. The initial dataset contained hot water consumption measurements from about 120 residential houses. The records included temperature information from various locations, where hot water was supplied. Total volumetric consumption was also measured. The data were collected during the years 2006 and 2007. Figure 2.18 shows the performance of benchmark models for single house DHW consumption. It is possible to observe that both the mean and naive models do not perform well for 24 h ahead forecasting. A better performance is observed from seasonal naive models, and this suggests that seasonality plays a key role. Figure 2.18: Exemplar benchmark model forecasts for an individual dwelling. Figure 2.19 shows an example forecast for total hot water consumption. Since this time series involves information from many consumers, the aggregate profile is more stable and repetitive compared to profiles from individual dwellings, thus seasonal naive models perform reasonably
State of the Art 22 well. Figure 2.19: Exemplar benchmark model forecasts for aggregate hot water consumption. Authors also evaluated the performance of each forecasting models using two different error measures, and they are in equations (2.7) and (2.8). (2.7) (2.8) The first step developing the models was performing the time series stationarity analysis in order to determine whether the original time series need any nonlinear transformation to become stationary. Based on the previous tests results, authors concluded that a level of differencing was inevitable. Nearly all data become stationary when the first order differential is taken. Authors looked at the hot water usage time plots, autocorrelation functions, as well as the partial autocorrelation functions, and concluded that is clear that there is daily and weekly seasonality involved. Seasonal factors are calculated by taking the average consumption of the same hours from different weeks (seasons) and then normalizing it to mean consumption. Figure 2.20 shows
State of the Art 23 the overlaid daily seasonal plot of average seasonal factors. It can be observed that there is very strict repetitiveness from Monday to Friday. The weekend is slightly lagging, supposedly because people tend to start their day later during the non-working days. It can also be seen that the hot water consumption profile is generally flat during the weekend. In addition, the Sunday evening peak is highest, most likely due to certain household activities before the start of a new week. Figure 2.20: Seasonal plot of mean seasonal factors. Forecasting models analyzed by the authors can handle seasonality, thus it is not necessary to de-seasonalise the data beforehand. Basically, “STL and ETS” and “STL and ARIMA” do exactly the same process: they first de-seasonalize the data, apply the forecasting method and then re-seasonalize the data. The forecasting results of hot water usage in individual dwellings are positive and promising. Every forecasting method outperformed the chosen benchmark models. On average, they perform more than 30% better than the seasonal naive benchmark model.
State of the Art 24 Figure 2.21: Model fitting results for individual dwelling consumption.
25
Methodology 32 3.2 Time Series decomposition The chosen approach for this forecasting problem is a time series-based approach. This subsection focus on how the time series is decomposed in order to remove seasonality from the data. A time series decomposition tool was developed. It receives the data produced by the DHWcalc tool and groups the accumulated volumetric DHW consumptions by weekday, generating seven text files (from Monday until Sunday, one for each weekday). These text files contain 24 DHW consumption values on each line, each column corresponding to an hour of the day (from 0:00 – 23:00). This division is taken because, as Gelažanskas and Gamage (2015) [7] showed, there is a weekly seasonality when using DHW by the households, as a consequence of their routines that repeat as a pattern on each weekday. Figure 3.8: Time series decomposition Java tool interface Considering the following dataset produced by DHWcalc, where each position of the list is an accumulated volumetric consumption on a given hour of the day. -- Begin dataset 1/1/2016 (Mon) [0,0,0,0,0,0,33,8,0,0,8,24,7,8,8,0,0,12,0,7,0,0,0,0] 2/1/2016 (Tue) [0,0,0,0,0,0,108,16,0,0,0,8,0,0,0,0,0,0,8,7,0,0,0,0] 3/1/2016 (Wed) [0,0,0,0,0,0,15,0,0,0,0,8,8,10,0,0,0,17,10,0,6,0,0,0] 4/1/2016 (Thu) [0,0,0,0,0,0,55,0,0,0,0,9,0,0,0,0,0,16,20,0,7,10,0,0] 5/1/2016 (Fri) [0,0,0,0,0,0,100,0,6,0,0,25,0,0,0,0,0,0,8,6,17,0,0,0] 6/1/2016 (Sat) [0,0,0,15,0,0,70,69,0,0,0,6,0,0,15,7,0,0,0,9,0,9,0,0] 7/1/2016 (Sun) [0,0,0,0,0,9,26,35,6,6,0,9,0,0,17,16,0,7,0,6,0,0,0,0] 8/1/2016 (Mon) [0,0,0,0,0,0,50,0,0,0,0,7,0,0,9,0,0,0,7,0,0,0,0,0] 9/1/2016 (Tue) [0,0,0,0,0,0,54,0,0,0,0,24,0,0,0,0,0,8,0,25,7,0,0,0] 10/1/2016 (Wed) [0,0,0,0,0,0,49,0,0,0,0,23,0,0,0,8,0,10,0,8,8,0,0,0] 11/1/2016 (Thu) [0,0,0,0,0,0,42,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,9,0] 12/1/2016 (Fri) [0,0,0,0,0,0,23,0,0,0,0,16,0,0,0,0,0,0,0,15,0,9,0,0] 13/1/2016 (Sat) [0,0,0,0,0,0,58,72,0,0,0,15,0,0,21,7,0,0,0,0,32,0,0,7] 14/1/2016 (Sun) [0,0,8,0,0,0,31,41,8,0,0,0,0,0,6,18,7,0,8,0,0,0,0,0] 15/1/2016 (Mon) [0,0,0,0,0,0,56,0,0,0,8,0,0,0,0,0,0,0,9,17,7,0,0,0] 16/1/2016 (Tue) [0,0,0,0,0,0,80,0,0,0,0,15,0,0,0,9,0,9,0,0,7,0,0,0] 17/1/2016 (Wed) [0,0,0,0,0,0,65,0,0,0,0,26,0,0,0,0,0,6,6,0,9,0,0,0] 18/1/2016 (Thu) [0,0,0,0,0,0,55,0,0,0,0,15,8,0,0,6,0,6,0,7,9,0,0,0] 19/1/2016 (Fri) [0,0,0,0,0,0,59,0,10,0,0,16,0,0,0,0,0,0,9,0,0,0,0,0] 20/1/2016 (Sat) [10,0,6,0,0,9,32,29,0,0,0,0,0,0,17,15,0,0,0,11,0,15,0,0] 21/1/2016 (Sun) [0,0,0,0,0,0,26,22,7,0,0,0,7,0,25,19,0,0,0,9,11,0,0,0]
Methodology 33 22/1/2016 (Mon) [0,0,0,0,0,0,79,0,0,0,0,14,0,0,0,0,8,0,15,7,7,0,0,0] 23/1/2016 (Tue) [0,0,0,0,0,0,31,0,8,0,0,8,0,0,0,0,0,9,18,0,19,0,0,0] 24/1/2016 (Wed) [0,0,0,0,0,0,54,0,8,0,0,9,0,0,0,0,0,0,6,6,0,0,0,0] 25/1/2016 (Thu) [0,0,0,0,0,0,76,0,8,0,0,23,0,0,0,0,0,0,7,0,7,0,0,0] 26/1/2016 (Fri) [0,0,0,0,0,0,50,0,0,0,0,33,8,0,0,0,9,8,8,0,0,0,0,0] 27/1/2016 (Sat) [0,0,0,9,0,0,34,15,0,0,0,0,0,0,34,17,0,0,0,8,10,0,0,0] 28/1/2016 (Sun) [0,0,0,0,0,0,21,32,0,0,0,0,0,0,25,15,0,0,6,0,0,16,0,0] 29/1/2016 (Mon) [0,0,0,0,0,0,100,0,0,0,7,38,0,0,0,0,0,7,9,0,15,0,0,0] 30/1/2016 (Tue) [0,0,0,0,0,0,26,0,0,0,9,41,0,8,0,0,0,22,0,6,18,0,0,0] -- End dataset The tool decomposes the series by weekday: WEEKDAY: MON [0, 0, 0, 0, 0, 0, 33, 8, 0, 0, 8, 24, 7, 8, 8, 0, 0, 12, 0, 7, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 7, 0, 0, 9, 0, 0, 0, 7, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 56, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 9, 17, 7, 0, 0, 0] [0, 0, 0, 0, 0, 0, 79, 0, 0, 0, 0, 14, 0, 0, 0, 0, 8, 0, 15, 7, 7, 0, 0, 0] [0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 7, 38, 0, 0, 0, 0, 0, 7, 9, 0, 15, 0, 0, 0] WEEKDAY: TUE [0, 0, 0, 0, 0, 0, 108, 16, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 8, 7, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 8, 0, 25, 7, 0, 0, 0] [0, 0, 0, 0, 0, 0, 80, 0, 0, 0, 0, 15, 0, 0, 0, 9, 0, 9, 0, 0, 7, 0, 0, 0] [0, 0, 0, 0, 0, 0, 31, 0, 8, 0, 0, 8, 0, 0, 0, 0, 0, 9, 18, 0, 19, 0, 0, 0] [0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 9, 41, 0, 8, 0, 0, 0, 22, 0, 6, 18, 0, 0, 0] WEEKDAY: WED [0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 8, 8, 10, 0, 0, 0, 17, 10, 0, 6, 0, 0, 0] [0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 23, 0, 0, 0, 8, 0, 10, 0, 8, 8, 0, 0, 0] [0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 6, 6, 0, 9, 0, 0, 0] [0, 0, 0, 0, 0, 0, 54, 0, 8, 0, 0, 9, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0] WEEKDAY: THU [0, 0, 0, 0, 0, 0, 55, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 16, 20, 0, 7, 10, 0, 0] [0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0] [0, 0, 0, 0, 0, 0, 55, 0, 0, 0, 0, 15, 8, 0, 0, 6, 0, 6, 0, 7, 9, 0, 0, 0] [0, 0, 0, 0, 0, 0, 76, 0, 8, 0, 0, 23, 0, 0, 0, 0, 0, 0, 7, 0, 7, 0, 0, 0] WEEKDAY: FRI [0, 0, 0, 0, 0, 0, 100, 0, 6, 0, 0, 25, 0, 0, 0, 0, 0, 0, 8, 6, 17, 0, 0, 0] [0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 15, 0, 9, 0, 0] [0, 0, 0, 0, 0, 0, 59, 0, 10, 0, 0, 16, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 33, 8, 0, 0, 0, 9, 8, 8, 0, 0, 0, 0, 0] WEEKDAY: SAT [0, 0, 0, 15, 0, 0, 70, 69, 0, 0, 0, 6, 0, 0, 15, 7, 0, 0, 0, 9, 0, 9, 0, 0] [0, 0, 0, 0, 0, 0, 58, 72, 0, 0, 0, 15, 0, 0, 21, 7, 0, 0, 0, 0, 32, 0, 0, 7] [10, 0, 6, 0, 0, 9, 32, 29, 0, 0, 0, 0, 0, 0, 17, 15, 0, 0, 0, 11, 0, 15, 0, 0] [0, 0, 0, 9, 0, 0, 34, 15, 0, 0, 0, 0, 0, 0, 34, 17, 0, 0, 0, 8, 10, 0, 0, 0] WEEKDAY: SUN [0, 0, 0, 0, 0, 9, 26, 35, 6, 6, 0, 9, 0, 0, 17, 16, 0, 7, 0, 6, 0, 0, 0, 0] [0, 0, 8, 0, 0, 0, 31, 41, 8, 0, 0, 0, 0, 0, 6, 18, 7, 0, 8, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 26, 22, 7, 0, 0, 0, 7, 0, 25, 19, 0, 0, 0, 9, 11, 0, 0, 0] [0, 0, 0, 0, 0, 0, 21, 32, 0, 0, 0, 0, 0, 0, 25, 15, 0, 0, 6, 0, 0, 16, 0, 0]
Methodology 34 and 24 (number of hours in a day) * 7 (number of weekdays) = 168 time series that have been generated. For each weekday, there are 24 series corresponding to each hour of the day. 3.3 Time Series preliminary analysis A preliminary analysis of the time series was performed for one year sample data generated by DHWcalc. The main goal was to visually check if there is obvious seasonality or trend in the data, according to the performed time series decomposition. Furthermore, two stationarity tests were performed to all the time series: Augmented Dickey Fuller test; Philip-Perron test. These tests aim to test the null hypothesis of whether a unit root is present in a time series sample. A unit root is a feature of processes that evolve through time that can cause problems in statistical inference involving time series models. These tests are based on the p-value, which is the probability of the null hypothesis (i.e, the non-stationarity of the process) being true. So large p-values are indicative of non-stationarity, and small p-values suggest stationarity. We used the usual 5% threshold, so differencing is required if the p-value is greater than 0.05, for each time series. These tests were executed using R software. Philip-Perron test could be used without the need of performing the augmented dickey fuller, although we decided to perform this second test because, as Davidson and MacKinnon (2004) reported [14], the Phillips–Perron test performs worse in finite samples than the augmented Dickey–Fuller test. 3.4 DHW Forecasting algorithms Since the system will be deployed in the appliance ECU and as a consequence there are limited resources available, more complex learning algorithms such as neural networks were not considered. Forecasting was performed according to three algorithms: Naïve Simple Exponential Smoothing Cumulative Moving Average
Methodology 35 Naïve is based on the assumption that the next value of the time series will be equal to the previous observed value. Being the forecasted value for the time instant and the observed value in time instant t, equation (3.4) shows the calculation of the forecasted values with respect to the past values. (3.4) Exponential smoothing refers to the use of an exponentially weighted moving average (EWMA) to “smooth” a time series. Having the original time series, it is possible to create a smoothed time series. Being the observed value of the original time series on instant t, α the smoothing constant and the smoothed value on instant , The next smoothed value is given according to the equation (3.5). For , the smoothed value is equal to the observed value. (3.5) The smoothing constant α determines the level at which previous observations have impact on the forecasted values. Large weights result in faster changes in the fitted line, while small weights result in slower changes. In order to find the best smoothing constant, R software HoltWinters() function was used, with Alpha and Beta parameters equal to false. It is able to fit a exponential smoothing model to the time series and automatically find the best smoothing constant, i.e, the value that minimizes the error of the fitted model with respect to the observed values. Figure 3.9 shows an example of using R in order to fit an exponential smoothing model to the Monday 23h time series. Figure 3.9: Using R to fit an exponential smoothing curve to the data.
Methodology 36 On a cumulative moving average approach, forecasting is based on the average of all of the data up until the current datum point. Being CMA(t) the forecasted value for time instant t, it is given by the equation (3.6). (3.6) 3.5 Model Evaluation In order to evaluate the forecasting models, two accuracy measures were considered. On first place, the models were evaluated as a classification problem: this measure aims to evaluate the percentage of times that the model predicts correctly when DHW is needed, by each weekday. Data is labelled according to the DHW volumetric consumption values. DHW volumetric consumption (L) Label <= 5 DHW_not_needed >5 DHW_needed Table 3.2: Labelling data resultant from forecasts and real consumptions. In order to compare the models with respect to the average hourly forecast precision by each weekday, the MAE - Mean Absolute Error - was used. This measure shows how far the predictions are from the observed values. Being the forecasted value for time instant t and the observed value, MAE is according to the equation (3.7). (3.7)
Methodology 37
Results 38 Chapter 4 Results 4.1 Time Series Analysis A dataset containing one year hot water consumption data was generated. Using R software, the time series are plotted and it was possible to conclude, after a visual inspection of all the time series after decomposition, that no apparent trend or seasonality is observed. Figure 4.1: Time series sample for Monday. Augmented Dickey Fuller and Philip-Perron tests were also performed in order to test the null hypothesis of non-stationarity based on the p-values. As stated in the methodology section, a p-value < 5% means that the hypothesis of non-stationarity can be safely dropped and the time series is assumed as stationary. The results are presented on table 4.1.
Results 39 # of time series p-value < 5% p-value > 5% Total Augmented Dickey Fuller 135 33 168 Philip-Perron 168 0 168 Table 4.1: Stationarity tests for one year DHW consumption data sample. After looking at the table 4.1, we can conclude that using the Philip-Perron stationarity test all the time series are considered to be stationary, while with the Augmented Dickey Fuller test a small number of time series present a p-value > 5%. Still, there is the possibility of some outlier generation by the tool and we can conclude that no differencing is needed in this step. 4.2 L dwelling This subsection presents the results related to the L dwelling dataset (dataset representing a large family with 6 occupants and 268L/day average daily DHW consumption). 4.2.1 Time Series decomposition Large dwelling time series data produced by DHWcalc were decomposed by the developed time series decomposition tool and the hourly DHW accumulated consumption information for each weekday (Monday – Sunday) was generated. Figures 4.2 – 4.8 show the decomposition. Each line color represents a different hour of the day. Figure 4.2: Time series from 0 – 23 h for Monday. (L dwelling)
Results 40 Figure 4.3: Time series from 0 – 23 h for Tuesday. (L dwelling) Figure 4.4: Time series from 0 – 23 h for Wednesday. (L dwelling)
Results 41 Figure 4.5: Time series from 0 – 23 h for Thursday. (L dwelling) Figure 4.6: Time series from 0 – 23 h for Friday. (L dwelling)
Results 48 Figure 4.15: Time series from 0 – 23 h for Friday. (M Dwelling) Figure 4.16: Time series from 0 – 23 h for Saturday. (M Dwelling)
Results 49 Figure 4.17: Time series from 0 – 23 h for Sunday. (M Dwelling) Like in L dwelling, it’s possible to observe that for all weekdays, the most part of the series representing the different hours of the days are equal to zero. Surprisingly, for all week and weekend days, the 6AM time series presents the highest DHW consumption values. It’s possible to observe a decrease in the volumetric consumption when compared to L dwelling, as expected. 4.3.2 Hot water usage profiles Like in the L dwelling dataset, hot water usage profiles are generated and 168 plots (7 weekdays * 24 hours) like in the figure 4.18 are generated, where each line color represents a different algorithm. It’s important to refer that, just as happened in the large dataset, many times the best smoothing constant when using the simple exponential smoothing algorithm to model DHW consumption, it was equal to 1, which makes the exponential smoothing fitting line be the same as the Naïve one.
Results 50 Figure 4.18: Hot water usage profile for Monday weekday, hour: 12:00 AM. (Medium dwelling) 4.1.1 Model Evaluation Tables 4.5 and 4.6 show the error for each forecasting algorithm, based on MAE distance measure, and the classifier accuracy, respectively. Weekday Naïve Exponential Smoothing CMA Monday 4 3.76 3.73 Tuesday 3.56 3.45 4.01 Wednesday 4.34 3.40 4.17 Thursday 3.14 2.45 2.86 Friday 4.9 4.28 4.88 Saturday 4.3 3.47 4.09 Sunday 4.63 4.22 4.59 Average 4.12 3.58 4.05 Table 4.4: Average hourly forecasting error (in liters) for M dwelling dataset, for each algorithm. Weekday Naïve Exponential Smoothing CMA Monday 79.2 % 78.1 % 72.9 % Tuesday 88.5 % 89.6 % 86.5 % Wednesday 84.4 % 87.5 % 87.5 % Thursday 83.3 % 87.5 % 82.3 % Friday 89.5 % 90.7 % 86.3 % Saturday 88.5 % 91.8 % 87.5 % Sunday 90.6 % 94.6 % 87.5 %
Results 51 Average 86.3 % 88.5 % 84.4 % Table 4.5: Classifier precision for M dwelling dataset, for each algorithm. As happened with L dwelling, exponential Smoothing is the best performing algorithm, although the Naïve approach also shows reasonable results. This time, also CMA outperformed Naïve with respect to the forecasting precision. 4.3.4 Forecasts Figure 4.19 shows the forecasts for three days of the week (Monday – Wednesday). As seen with large dwelling dataset, gray area mean that no DHW is expected to be required. After observing the image, the same conclusion as with the large dwelling can be drawn: it is clear that the most part of the day is not expected to have DHW available and small draw-offs are present during the most hours of the day, and that allows great saving opportunities. As happened with L dwelling, the other days (Thursday-Sunday) presented a similar behavior in terms of DHW forecasting which reveals strong seasonality on the data. For more details about the one week ahead forecasts please check annex A.2 Figure 4.19: Forecasted values for three days ahead (M Dwelling).
Results 52 4.2 S dwelling This subsection presents the results related to the S dwelling dataset (dataset representing a small family with 2 occupants and 138L/day average daily DHW consumption). 4.2.1 Time Series decomposition Small dwelling time series data produced by DHWcalc were decomposed by the developed time series decomposition tool and the hourly DHW accumulated consumption information for each weekday (Monday – Sunday) was generated. Figures 4.18 – 4.24 show the decomposition. Each line color represents a different hour of the day. Figure 4.20: Time series from 0 – 23 h for Monday. (S Dwelling)
Results 53 Figure 4.21: Time series from 0 – 23 h for Tuesday. (S Dwelling) Figure 4.22: Time series from 0 – 23 h for Wednesday. (S Dwelling)
Results 54 Figure 4.23: Time series from 0 – 23 h for Thursday. (S Dwelling) Figure 4.24: Time series from 0 – 23 h for Friday. (S Dwelling)
Results 55 Figure 4.25: Time series from 0 – 23 h for Saturday. (S Dwelling) Figure 4.26: Time series from 0 – 23 h for Sunday. (S Dwelling)
Results 56 With this dataset, it’s possible to observe that only on Tuesday the 6AM hour presents the most DHW demand, while in the other days it is variable. It’s also possible to observe a decrease in the volumetric consumption when compared to M dwelling, as expected. 4.2.2 Hot water usage profiles Like in them M and L dwelling dataset, hot water usage profiles are generated and 168 plots (7 weekdays * 24 hours) like in the figure 4.27 are generated, where each line color represents a different algorithm. It’s important to refer that, just as happened in the large dataset, many times the best smoothing constant when using the simple exponential smoothing algorithm to model DHW consumption, it was equal to 1, which makes the exponential smoothing fitting line be the same as the Naïve one. Figure 4.27: Hot water usage profile for Monday weekday, hour: 5:00 AM. (small dwelling) 4.2.3 Model Evaluation Tables 4.8 and 4.9 show the error for each forecasting algorithm, based on MAE distance measure, and the classifier accuracy, respectively. Weekday Naïve Exponential Smoothing CMA Monday 3.26 2.66 3.07 Tuesday 4.38 3.59 5.16 Wednesday 4.63 3.62 3.99
Results 57 Thursday 4.1 3.28 3.53 Friday 4.03 2.75 3.42 Saturday 4.3 3.27 4.43 Sunday 5.19 4.23 4.58 Average 4.27 3.34 4.02 Table 4.6: Classifier precision for small dwelling dataset, for each algorithm. Weekday Naïve Exponential Smoothing CMA Monday 80.2 % 85.4 % 81.3 % Tuesday 88.5 % 89.6 % 86.5 % Wednesday 67.7 % 77.1 % 76 % Thursday 75 % 80.2 % 86.5 % Friday 81.2 % 85.4 % 87.5 % Saturday 68 % 77.1 % 71.9 % Sunday 77.1 % 81.3 % 79.2 % Average 77 % 82 % 81 % Table 4.7: Classifier precision for small dwelling dataset, for each algorithm. As happened with M and L sized dwellings, exponential Smoothing is the best performing algorithm, although for this dataset the CMA approach shows better results than Naive. It was an unexpected result that could have happened because of the generation of some outliers by the tool. 4.4.4 Forecasts Figure 4.28 shows the three days ahead forecasts for each hour of the day, from Monday until Wednesday. As seen with large and medium dwelling dataset, gray area mean that no DHW is expected to be required. After observing the image, the same conclusion as with the large and medium dwellings can be drawn: it is clear that the most part of the day is not expected to have DHW available and small draw-offs are present during the most hours of the day, and that allows great saving opportunities. For more details about the one week ahead forecasts please check annex A.3.
64 14:00 0 0 3 15:00 0 0 0 16:00 0 0 2 17:00 7 7 4 18:00 9 9 8 19:00 0 7 6 20:00 15 15 6 21:00 0 0 0 22:00 0 0 0 23:00 0 0 0 Tuesday 0:00 0 0 0 1:00 0 0 0 2:00 0 0 0 3:00 0 0 0 4:00 0 0 0 5:00 0 0 0 6:00 26 30 60 7:00 0 0 3 8:00 0 0 2 9:00 0 0 0 10:00 9 9 2 11:00 41 22 19 12:00 0 0 0 13:00 8 8 2 14:00 0 0 0 15:00 0 0 2 16:00 0 0 0 17:00 22 22 13 18:00 0 8 5
65 19:00 6 7 8 20:00 18 18 10 21:00 0 0 0 22:00 0 0 0 23:00 0 0 0 Wednesday 0:00 0 0 0 1:00 0 0 0 2:00 0 0 0 3:00 0 0 0 4:00 0 0 0 5:00 0 0 0 6:00 26 26 41 7:00 0 0 0 8:00 0 0 2 9:00 0 0 0 10:00 0 0 0 11:00 8 12 15 12:00 0 0 2 13:00 0 0 2 14:00 0 0 0 15:00 0 0 2 16:00 0 0 0 17:00 0 0 7 18:00 6 6 6 19:00 7 4 4 20:00 18 6 8 21:00 0 0 0 22:00 0 0 0 23:00 0 0 0
66 Thursday 0:00 0 0 0 1:00 0 0 0 2:00 0 0 0 3:00 0 0 0 4:00 0 0 0 5:00 0 0 0 6:00 75 55 61 7:00 0 0 0 8:00 8 8 3 9:00 0 0 0 10:00 0 0 0 11:00 20 20 15 12:00 0 0 2 13:00 0 0 0 14:00 0 0 0 15:00 5 0 3 16:00 0 0 0 17:00 0 0 3 18:00 0 0 4 19:00 7 0 3 20:00 8 7 6 21:00 0 0 2 22:00 0 0 2 23:00 0 0 0 0:00 0 0 0 1:00 0 0 0 2:00 0 0 0 3:00 0 0 0 4:00 0 0 0
67 Friday 5:00 0 0 0 6:00 75 75 87 7:00 0 0 0 8:00 0 6 3 9:00 0 0 0 10:00 0 0 0 11:00 20 25 22 12:00 0 0 0 13:00 0 0 0 14:00 0 0 0 15:00 5 5 1 16:00 0 0 0 17:00 0 0 0 18:00 8 8 7 19:00 7 6 6 20:00 0 0 3 21:00 0 0 2 22:00 0 0 0 23:00 0 0 0 Saturday 0:00 0 0 0 1:00 0 0 0 2:00 0 0 0 3:00 0 0 0 4:00 0 0 0 5:00 0 0 2 6:00 37 37 46 7:00 20 20 41 8:00 0 0 0 9:00 0 0 0
68 10:00 0 0 0 11:00 17 6 8 12:00 0 0 0 13:00 0 0 0 14:00 30 30 23 15:00 17 17 15 16:00 0 0 0 17:00 0 0 0 18:00 0 0 0 19:00 7 9 9 20:00 0 0 8 21:00 0 0 0 22:00 75 75 71 23:00 0 0 0 Sunday 0:00 0 0 0 1:00 0 0 0 2:00 0 0 2 3:00 0 0 0 4:00 0 0 0 5:00 0 0 2 6:00 37 37 28 7:00 20 20 30 8:00 0 6 4 9:00 0 0 1 10:00 0 0 0 11:00 0 9 2 12:00 0 0 0 13:00 0 0 0 14:00 30 27 21
69 15:00 17 17 17 16:00 0 0 1 17:00 0 0 1 18:00 0 0 3 19:00 7 6 4 20:00 0 0 0 21:00 0 0 0 22:00 33 33 28 23:00 0 0 0 Annex A.2: One week ahead DHW forecasts for M dwelling dataset Weekday Hour Naive ExpSmooth CMA Monday 0:00 6 2 1 1:00 0 0 0 2:00 0 0 0 3:00 0 0 0 4:00 0 0 1 5:00 29 31 33 6:00 49 49 12 7:00 6 10 5 8:00 1 2 3 9:00 2 5 5 10:00 0 2 3 11:00 0 1 2 12:00 0 2 2 13:00 0 2 3 14:00 5 4 5
70 15:00 12 5 4 16:00 7 4 3 17:00 5 5 5 18:00 0 5 1 19:00 0 0 1 20:00 0 3 3 21:00 0 0 1 22:00 0 0 0 23:00 0 0 0 Tuesday 0:00 0 0 0 1:00 0 0 0 2:00 0 0 0 3:00 0 0 0 4:00 6 4 3 5:00 8 8 5 6:00 55 55 36 7:00 0 0 0 8:00 0 0 0 9:00 0 0 0 10:00 0 0 0 11:00 3 0 2 12:00 1 5 6 13:00 6 6 5 14:00 1 0 1 15:00 13 13 6 16:00 1 1 3 17:00 0 0 9 18:00 6 6 30 19:00 22 22 25
71 20:00 2 2 2 21:00 0 0 0 22:00 0 0 0 23:00 0 0 0 Wednesday 0:00 0 0 0 1:00 0 0 1 2:00 0 0 0 3:00 0 0 0 4:00 0 3 2 5:00 8 0 12 6:00 39 40 41 7:00 10 10 5 8:00 0 3 3 9:00 10 3 5 10:00 5 8 6 11:00 1 7 4 12:00 0 0 2 13:00 6 9 8 14:00 0 0 9 15:00 5 4 5 16:00 0 0 0 17:00 30 30 36 18:00 10 10 8 19:00 5 2 3 20:00 1 1 4 21:00 0 0 0 22:00 0 0 0 23:00 0 0 0 0:00 0 0 0
72 Thursday 1:00 0 0 0 2:00 0 0 0 3:00 0 0 1 4:00 8 8 2 5:00 0 1 1 6:00 33 36 39 7:00 0 1 1 8:00 5 5 4 9:00 7 3 2 10:00 12 5 7 11:00 0 1 2 12:00 5 5 3 13:00 7 2 3 14:00 13 4 3 15:00 0 2 2 16:00 7 7 5 17:00 2 5 4 18:00 2 11 7 19:00 30 30 17 20:00 2 2 1 21:00 7 0 4 22:00 0 1 1 23:00 0 0 0 0:00 0 0 0 1:00 0 0 0 2:00 0 0 0 3:00 0 0 0 4:00 0 0 1 5:00 0 0 0
73 Friday 6:00 42 42 38 7:00 6 6 18 8:00 8 8 4 9:00 13 4 6 10:00 1 0 2 11:00 4 0 4 12:00 0 6 4 13:00 4 4 9 14:00 2 0 3 15:00 11 6 5 16:00 0 2 4 17:00 3 3 1 18:00 0 0 9 19:00 5 5 13 20:00 0 0 3 21:00 0 0 1 22:00 0 0 1 23:00 0 0 0 Saturday 0:00 0 0 0 1:00 0 0 0 2:00 0 0 0 3:00 0 0 0 4:00 0 0 0 5:00 0 0 0 6:00 100 100 58 7:00 0 0 0 8:00 0 0 4 9:00 0 5 4 10:00 2 2 3
80 11:00 17 6 8 12:00 0 0 0 13:00 0 0 0 14:00 30 30 23 15:00 17 17 15 16:00 0 0 0 17:00 0 0 0 18:00 0 0 0 19:00 7 9 9 20:00 0 0 8 21:00 0 0 0 22:00 75 75 71 23:00 0 0 0 Sunday 0:00 0 0 0 1:00 0 0 0 2:00 0 0 2 3:00 0 0 0 4:00 0 0 0 5:00 0 0 2 6:00 37 37 28 7:00 20 20 30 8:00 0 6 4 9:00 0 0 1 10:00 0 0 0 11:00 0 9 2 12:00 0 0 0 13:00 0 0 0 14:00 30 27 21 15:00 17 17 17
81 16:00 0 0 1 17:00 0 0 1 18:00 0 0 3 19:00 7 6 4 20:00 0 0 0 21:00 0 0 0 22:00 33 33 28 23:00 0 0 0