Energy Slices: Benchmarking with Time Slicing

Benchmarking makes it possible to identify low-performing buildings, establishes a baseline for measuring performance improvements, enables setting of energy conservation targets, and encourages energy savings by creating a competitive environment. Statistical approaches evaluate building energy efficiency by comparing measured energy consumption to other similar buildings typically using annual measurements. However, it is important to consider different time periods in benchmarking because of differences in their consumption patterns. For example, an office can be efficient during the night, but inefficient during operating hours due to occupants’ wasteful behavior. Moreover, benchmarking studies often use a single regression model for different building categories. Selecting the regression model based on actual data would ensure that the model fits the data well. Consequently, this paper proposes Energy Slices, an energy benchmarking approach with time slicing for existing buildings. Time slicing enables separation of time periods with different consumption patterns. The regression model suited for the specific scenario is selected using cross validation, which ensures that the model performs well on previously unseen data. The evaluation is carried out on a case study involving two sports arenas; event energy efficiency is benchmarked to identify low-performing events. The case study demonstrates the Energy Slice procedure and shows the importance of model selection.


Introduction
Buildings account for about 40% of global energy consumption and approximately one-third of greenhouse gas emissions (UNEP 2011). Moreover, existing buildings have been recognized as a crucial factor in achieving aggressive targets for reducing greenhouse gas emissions (Europian Union 2012). Consequently, energy efficiency efforts in this domain can have a major impact on relieving growing energy challenges.
The importance of conserving energy in tandem with recent advancements in sensor technology has resulted in wide expansion of smart metering systems. In the electricity domain, smart meters measure electricity consumption at intervals of 1 hour or less and communicate that information to a central or cloud system. In addition to enabling analysis of energy consumption patterns, these data create opportunities for new ways of energy performance assessment and benchmarking.
Benchmarking is a way of evaluating a building's energy performance by comparing its energy consumption against its own past performance, against similar buildings, or against a performance indicator (Capozzoli et al. 2016). It identifies low-performing buildings for retrofit prioritization, establishes a baseline for measuring performance improvements and for evaluating ongoing commissioning, enables setting of targets for energy improvements, and creates a competitive environment to encourage and promote energy savings. Buildings of the same design may be difficult to compare due to upgrades, differences in occupancy, building use, or climate. By using standardized scores, benchmarking simplifies comparisons among buildings and enables insights required to identify energy savings opportunities.
Benchmarking approaches can be simulation modelbased when the benchmark is calculated using a model of building energy performance, or statistical when data for similar buildings are used to generate a benchmark (Gao and Malkawi 2014). The advantage of the simulation model-based approach is that it can be used before the building is built; however, the disadvantage is that it requires detailed information about the building design and may not accurately reflect actual building use. Statistical approaches require a reasonably sized dataset of similar existing buildings with their historical energy consumption. This approach incorporates occupants' behavior because it uses actual energy consumption data: more economical behavior results in a better score. Statistical approaches are commonly used for benchmarking existing buildings (Li et al. 2014). The Energy Slices approach proposed in this study also belongs to this category.
The actual energy consumption used in benchmarking can be obtained from energy bills or through metering and submetering. Bills and whole-building methods include the energy consumed by all subsystems, whereas submetering enables analysis according to different end use points (disaggregation may also be used to identify subloads from whole-building metering virtually). Both approaches aggregate consumption for specific time periods: for example, bill-based approaches usually consider annual or monthly energy consumption. Nevertheless, it is also important to consider the time component in benchmarking methodologies. For instance, a school may be very efficient over the weekend, but inefficient during weekdays due to occupants' wasteful behavior. Similarly, an office building may show different behavior during working and non-working hours. Including the time component in energy benchmarking can provide a way of determining low-performing time periods and assist in identifying opportunities for improvement.
Based on this observation, this paper proposes Energy Slices, an energy benchmarking approach with time slicing for existing buildings. By assigning energy consumption data to different time slices, the Energy Slices approach enables independent evaluation of periods with different consumption patterns. In addition, by including a procedure to select the best regression model for a specific scenario and using cross validation, the proposed approach also overcomes two other weaknesses of existing statistical benchmarking solutions.
The first weakness relates to the fact that most energy benchmarking studies use a single regression algorithm, such as multiple linear regression, support vector regression, or neural networks. In some cases, a different regression model is built for each building category, but each time, the same regression type is used. For example, Energy Star (Hsu 2016;Lucid 2016) creates a separate regression model for each building type, but they are all based on ordinary weighted least squares. This limitation hinders benchmarking effectiveness because different building types and time slices may be better represented by different models. For instance, linear models (simple, multiple, weighted linear regression, and others) assume a linear correlation between the response variable (energy consumption, energy intensity, or similar) and the independent variables. When this assumption is broken, the model does not represent the data accurately. In contrast, the Energy Slice approach includes a way to choose the regression model that best suits the data being modeled.
The second resolved weakness is that most regression models for benchmarking are built using data from a set of existing buildings (the training set), and then all buildings are evaluated using this model. This approach, however, may cause overfitting: even though the model represents the training data closely, its performance on unseen data is poor. Hong (2014) highlighted the importance of out-of-sample testing in energy forecasting, but this also applies to benchmarking when the model may memorize the training data rather than learning to generalize. To alleviate overfitting and assess how the model will generalize to previously unseen data, this work uses cross validation. Moreover, cross validation provides a way of selecting the regression model as well as its parameters.
The rest of this paper is organized as follows: BBackground^introduces linear regression, support vector regression, neural networks, and random forest models, and BRelated work^reviews related work. The proposed Energy Slice benchmarking approach is presented in BEnergy Slices.^An evaluation using a case study involving two sports arenas is presented in BEvaluation,^and BConclusions^concludes the paper.
are characterized by soft margins; they do not penalize observations within the ɛ deviation from the model prediction (Ben-David and Shalev-Shwartz 2014;Hastie et al. 2009).
Given an input space where N is the number of observations, the main goal of SVR is to find a function that deviates at most ɛ from each observation. The general case of SVR can be described as follows: where Φ(X) is a kernel function that non-linearly maps from the input space X to a feature space. Coefficients W and b are determined as part of the optimization problem that aims to capture observation points within the ɛ boundary from the predicted value.

Neural networks
Neural networks (NN) (Ben-David and Shalev-Shwartz 2014) are supervised learning models inspired by the human brain. NNs are composed of interconnected neurons that can approximate non-linear relationships between input and output variables. Like an SVM, an NN can be used for regression and classification. A common way of representing NNs is with graphs whose nodes are the neurons and whose edges correspond to interactions between them, with arrows pointing in the direction of data transfer among neurons (Hastie et al. 2009).
One of the most common NNs, the feedforward neural network (FFNN), is composed of a flexible number of layers: an input layer, one or more hidden layers, and an output layer. Information moves from the input layer through the hidden layer(s) to the output layer. Each neuron in the input layer represents a feature in the input data space, and the number of neurons in the output layer is equal to the number of output variables. The output of each neuron in a hidden or output layer is determined as follows: where the x i are the neuron inputs, the w ij are synaptic weights connecting the i-th neuron in the input (or hidden) layer to the j-th neuron in the next hidden (or output) layer, and w io is a bias that shifts the decision boundary, but does not depend on any input. φ is an activation function that is usually modelled as a step or as a sigmoid function. During the training phase, weights are adjusted (learned) using backpropagation Energy Efficiency (2018) 11:521-538 523 Background This section introduces the four machine learning approaches used in this work: linear regression (LR), support vector regression (SVR), neural networks (NN), and random forest (RF).

Linear regression
Linear regression (LR) (Hastie et al. 2009) models the relationship between independent and dependent or predictor variables using a linear function. With n independent variables, the model takes the following form (Ben-David and Shalev-Shwartz 2014): where y i is the i-th dependent variable, {x i1 , x i2 , … x in }are the independent variables, and (a 0 , a 1 , a 2 , …a n ) are vectors of regression coefficients of size n + 1 estimated from data.

Support vector regression
Support vector regression (SVR) (Basak et al. 2007) is a subcategory of support vector machine (SVM) learning models that is used for regression. Both SVM and SVR together with an optimization method such as gradient descent.

Random forests
Random forests (RF) (Breiman 2001) are a type of ensemble learning model composed of individual decision trees that are used for both classification and regression. In an RF, each individual tree is trained by an algorithm A on different, but possibly overlapping, parts of the same training data set S. For example, an RF can be an ensemble of B trees {T 1 (X), …, T B (X)}, where X = {x 1 , …, x n } is an n-dimensional feature vector. Each tree may be using a different algorithm and a different part of the data set. The final prediction is obtained by combining the prediction outcomes from all individual trees (Ben-David and Shalev-Shwartz 2014). In the example of B trees, the ensemble produces B outputŝ , whereŶ a , a = 1, …, B, is the value predicted by the a-th tree. The final predictionŶ is made by averaging the predicted values of each tree.

Related work
Several survey papers have discussed the problem of benchmarking building energy consumption (Chung 2011;Li et al. 2014;Pérez-Lombard et al. 2009) and reviewed various concepts involved in assessing building energy efficiency, including benchmarking, energy rating, and energy labeling. They also discussed the development of an energy certification scheme and highlighted main considerations such as what and how it should be calculated. Chung (2011) discussed mathematical methods used in developing benchmarking systems; examples of the models considered include regression models, stochastic frontier analysis, and data envelope analysis. Each method was analyzed to identify its strengths and weaknesses. The author also presented a literature review of how these methods and their variants have been used for building energy benchmarking. Li et al. (2014) reviewed methods for benchmarking building energy consumption against its past or intended performance. They classified the methods presented into three categories: white, gray, and black box methods. Black box methods use data fitting approaches (e.g., linear regression and neural networks) and therefore require large quantities of data for training; statistical approaches belong to this category. White box approaches are based on physical properties of building components and require extensive design documentation; simulation is an example from this category. Gray box methods fall between white and black boxes; they use data fitting together with knowledge of the physical building.
The surveys mentioned (Chung 2011;Li et al. 2014;Pérez-Lombard et al. 2009) included discussion of various statistical approaches and the use of measured energy consumption for benchmarking. However, these approaches do not include a way to select the regression model that is best suited for a specific benchmarking scenario. Moreover, the Energy Slice benchmarking approach presented in our work includes time slicing, which enables separate assessment of periods with different consumption characteristics. Palmer and Walls (2017) assessed the role of benchmarking and disclosure policies adopted in 15 US cities in decreasing energy use and CO 2 emissions. They observed that disclosing other energy information in addition to the Energy Star score is needed. Palmer and Walls also noted that the Energy Star Portfolio Manager has been criticized for using overly small and non-current data set to build the model and not capturing building heterogeneity. Their work highlights (Palmer and Walls 2017) the need for improved benchmarking. Gao and Malkawi (2014) proposed a benchmarking solution based on intelligent clustering. The proposed benchmarking process starts by using a k-means algorithm to classify buildings based on selected features such as area and operating schedule. The resulting clusters contain buildings with similar characteristics. A building's efficiency is indicated by how far it is from the centroid of the cluster to which it belongs. However, like the reviewed surveys (Chung 2011;Li et al. 2014;Pérez-Lombard et al. 2009), Gao and Malkawi (2014) did not consider how to select the b e s t s u i t e d r e g r e s s i o n m o d e l f o r s p e c i f i c benchmarking scenarios or to benchmark over time slices. Capozzoli et al. (2016) presented a methodology for benchmarking annual energy consumption of healthcare centers. The methodology presented consists of two main phases: the first phase segments the heterogeneous health-care centers into homogeneous classes using a classification and regression tree (CART). Next, a linear mixed-effect model is constructed to combine the effects of the input variables. The second phase involves using Monte Carlo simulation to determine the benchmarking value by evaluating the frequency distribution for each class individually. A drawback of this methodology is that it is based on a linear model, which may not reflect reality. In addition, unlike our approach, Capozzoli et al. (2016) did not address separate benchmarking for different time periods. Khayatian et al. (2016) evaluated annual energy performance of residential buildings based on neural networks. They focused on determining the optimal subset of input features, the number of NN layers, and the number of neurons. These features were extracted from previously defined energy certificates issued by a municipality in Italy. Although most benchmarking methods are concerned with overall building energy consumption, Khayatian et al. (2016) focused specifically on heating energy consumption. Again, time slices and algorithm selection were not considered.
Wang (2015) proposed a building energy efficiency benchmarking approach based on Technique for Order Preference by Similarity to Ideal Solution (TOPSIS). Instead of depending on only one criterion, Wang took a multi-criteria approach and included several measurements in the benchmarking process, such as energy intensity per unit of space and energy use per individual occupant. Weights were assigned to energy performance indicators using a combination of principal component analysis (PCA) and multiple linear regression (MLR). Each building was compared to the most and the least energy efficient buildings in terms of multiple indicators in an attempt to achieve a more comprehensive evaluation. Whereas Wang (2015) considered space size and number of occupants through multiple performance indicators, our approach incorporates these dimensions as input variables of the statistical model.
In addition, numerous implementations of building energy benchmarking systems have been developed, such as the Energy Star system proposed in the USA and Canada (ENERGY STAR 2016; Natural Resources Canada 2011), Cal-Arch in the USA (U.S. Department of Energy 2015a), and Energy Smart Office Label in Singapore (Lee and Priyadarsini 2008). Moreover, recent case studies have discussed establishing energy benchmarking baselines for buildings in specific regions worldwide. For example, Yang and Zhang (2016) used a statistical approach to determine the benchmarking baseline for existing residential buildings in China. Juaidi et al. (2016) also used a statistical approach to perform energy benchmarking analysis, but for shopping centers in the Gulf Coast region. Morris et al. (2016) applied multiple linear regression models to benchmark electricity and gas consumption for households across England. Finally, Shabunko et al. (2016) Lee and Priyadarsini (2008) reviewed assessment schemes and showed that assessments typically account for performance-based criteria (such as annual energy use and greenhouse gas emissions) and feature-based criteria (such as types of walls and roofs).
All the reviewed studies contribute to the building benchmarking domain in diverse ways, but unlike our work, they do not consider how to select the statistical model that is best suited for the benchmarking scenario. Moreover, our work uses time slicing to evaluate time periods with different energy use characteristics separately.

Energy Slices
The main objective of this work is to design a generic benchmarking approach that can be used to evaluate the energy efficiency of different buildings as well as to assess the efficiency of distinct time slices. Like Energy Star (Lucid 2016), the Energy Slice approach proposed here includes building a regression model, calculating an energy efficiency ratio, and fitting a probability distribution. However, where Energy Star uses ordinary least squares regression, the Energy Slice approach includes a procedure for selecting the regression model and ensuring that the model will be generalized to unseen data. Moreover, time slicing enables consideration of diverse time periods.
The proposed Energy Slice approach is illustrated in Fig. 1. It consists of two flows: the first one, building benchmarking system, is responsible for creating a statistical model to evaluate energy efficiency relative to a peer group. Its outputs are a regression model and a cumulative probability distribution. The second flow, energy efficiency scoring, is responsible for calculating an energy efficiency score using the regression model and probability distribution provided by the first flow. Details of the proposed flows are provided in the following subsections.
Building benchmarking system Building the benchmarking system involves taking a data set consisting of energy consumption measurements together with contextual information to create artifacts needed for the energy efficiency scoring.

Inputs
Energy consumption data in the Energy Slice approach are obtained from smart meters. This is a crucial requirement because it enables time slicing and therefore separation of time periods with different occupants' behaviors. For instance, in the case of office buildings, hourly (or finer granularity) consumption data make it possible to associate consumption with operating hours.
Like other energy benchmarking solutions, this work also uses weather conditions and building attributes as input. Building energy benchmarking typically considers weather through heating and cooling degree days (Li et al. 2014). In contrast, time slicing requires finer-grained weather data corresponding to observed time segments. For example, energy consumption to maintain a comfortable office may be very different if the outside temperature is − 10°C or + 25°C. Consequently, the granularity of the weather data is determined by the size of the time slices and energy reading intervals: there should be at least one weather reading for each time slice considered, but there is no need for more frequent temperature readings than energy readings. Local hourly weather data are available from a variety of service providers through APIs such as those from Weather Underground (2017). Building attributes are similar to those in a typical whole building benchmarking system (Lucid 2016); depending on the benchmarking objective, they may include building size, number of occupants, number of floors, number of rooms, and other factors.
Finally, time slice attributes constitute the important differentiating factor from other building benchmarking approaches: they describe the context of a specific time slice or period. For example, if benchmarking working and non-working hours for an office building, time slice attributes describe these periods and include attributes such as duration, number of people in the building, operating equipment, and time of day. These are closely related to the objectives of benchmarking and time slicing because they describe the context of specific time periods.

Data preparation
The data preparation step consists of time slicing and attribute selection. Time slicing determines the segments of time that should be considered separately in the benchmarking process. In the case of office buildings, working and non-working hours could be considered separately. If the objective is to benchmark the energy efficiency of events in conference venues, each event should be considered as a separate time slice. Time slices do not necessarily need to be of the same duration, but if they are not, this needs to be accounted for in the regression model by including attributes that describe slice duration. Moreover, time slices do not have to be continuous: for example, an Boffice hoursŝ lice may contain all periods corresponding to working hours. Each time slice represents a single data point for the regression model, therefore other attributes (features) need to describe the time period captured by the slice. The four categories of input attributes are processed differently. Energy consumption data from smart meters or other sensors are summarized to represent total consumption in the period indicated by the slice. Weather condition must be processed to arrive at a single value for each time slice. In the case where time slice duration is in the range of hours, weather attributes may include average temperature, humidity, and wind speed. When a time slice spans several seasons, as in the case of benchmarking annual consumption for working and non-working hours, other measures such as degree days can be used. Building attributes are not dynamic and therefore are used Bas is.^Time slice attributes describe the context of the time slice and, like weather conditions and energy consumption, have a single value for a time slice. Duration must be included whenever time slices are of different lengths.
Attribute selection aims to select the relevant attributes for benchmarking. It can be carried out using filter methods based on measures such as mutual information or using wrapper methods that rely on predictive models to score feature subsets. Although principal component analysis (PCA) is not strictly an attribute selection method, but an attribute reduction technique, it can also be used. PCA takes possibly correlated variables and applies an orthogonal transformation to create a set of linearly uncorrelated variables referred to as principal components (Hastie et al. 2009). Dimensionality is reduced by using only the first n principal components. When the number of attributes is small, attribute selection may not be necessary, and all available attributes can be used for benchmarking.

Regression algorithm construction
This step consists of two parts: regression algorithm selection and building the regression model. In regression algorithm selection, the regression algorithm that provides the best representation of the available data is selected. Note that building regression models on the complete data set and choosing the one with the lowest error rate on the training set may lead to overfitting. To avoid overfitting and biased estimation, the out-ofsample evaluation must be performed; the regression model must be evaluated on data that were not used to build the model. Specifically, the proposed Energy Slice approach uses k-fold cross validation to evaluate the regression models and select the best one, as illustrated  Fig. 2. k-fold cross validation was chosen over the holdout method (simply splitting data into training and validation subsets) because it remedies training-testing split bias and takes advantage of all available data.
For each algorithm from a set of candidate algorithms (steps 1 and 2), k-fold cross validation executes the following steps: the data set is split into k subsets of equal size (step 3). The number of folds equals the number of subsets k. One subset k is reserved for validation, the model is trained on the remaining subsets (step 4), and error is calculated on the validation subset k (step 5). The process is repeated k times, each time using a different validation set (steps 6, 4, and 5). The algorithm performance for previously unseen data is estimated as the average error over all folds (step 7).
Mean absolute percentage error (MAPE) and the coefficient of variance (CV) are used as error measures. MAPE was chosen because it is a relatively easily understandable measure. It expresses accuracy as a percentage and is calculated as follows: where y i is the actual consumption,ŷ i is the predicted consumption, and N is the number of observations. The coefficient of variance (CV) is used as the second measure. The CV measure has often been used in energy prediction studies (Grolinger et al. 2016); it expresses error variation with respect to the mean and is calculated as follows: where y i ,ŷ i , and N represent the same elements as in MAPE and y is the average actual consumption. MAPE and CV errors are estimated for all candidate algorithms, and the algorithm with the lowest error is selected for benchmarking.
Algorithms such as SVR have several parameters that must be selected for optimal model performance. In the Energy Slice approach, parameter selection is performed using grid search as part of the training performed in step 4, as shown in Fig. 2. Combinations of possible parameter values form a grid, and k-fold cross validation is performed for each grid element.
The combination with minimum error is selected as the optimal one. Grolinger et al. (2016) have used this method to select parameters for energy consumption and demand prediction.
Therefore, there are two nested k-fold cross validations in the regression algorithm selection procedure: an outer one evaluates the accuracy of each candidate algorithm as illustrated in Fig. 2, and an inner one selects the appropriate model parameters, which is performed as part of step 4.
After the regression algorithm has been selected, the process continues by building the regression model. During the algorithm selection stage, training was always performed only on a part of the data set because one subset was reserved for evaluation. Now, the regression model is built with the algorithm and parameters selected in the regression algorithm selection step, but with the complete data set. By using the complete set, the model benefits from all available data.
As illustrated in Fig. 1, the output of this step is the regression model that will be used for energy efficiency scoring. The same model is used to score the entities that were used to build it and for new data.

Calculating energy efficiency ratio
The regression model enables calculation of expected/ predicted energy consumption and consequently of the energy efficiency ratio (EER). EER is the ratio between actual and expected energy consumption and is calculated as follows: where y andŷ are the actual and expected (or predicted/ regression) energy consumptions for a time slice. The predicted energy consumptionŷ is obtained from the regression model. EER values greater than one indicate performance below the expectation, and values less than one denote performance above the expectation for specified conditions.
Note that an EER score is calculated for each time slice for each building considered. For instance, when time slices are working and non-working days, each building will have two EERs, one for working and one for non-working days. When benchmarking events from a conference venue, each event will have its own EER value.
Energy Star also calculates the energy efficiency ratio by dividing actual by predicted energy (Environmental Protection Agency 2014). However, in Energy Star, y and y are the actual and predicted annual source energy use intensities. Source energy is the amount of raw fuel that is required to operate the building (Environmental Protection Agency 2014). In the Energy Slice approach, y andŷ are not annual measures, but actual and predicted consumptions for a specific time slice. Moreover, Energy Star converts site energy into source energy to account for the use of different types of energy. The Energy Slice approach is flexible because it can be used for different energy types as long as similar things are compared. For example, the electrical efficiency of working and nonworking hours for different office buildings can be compared if they use the same sources of energy. To compare overall energy efficiency among buildings with different sources of energy, the source energy should be used.

Fitting cumulative probability distribution
The energy efficiency ratio provides an indication of efficiency, but does not denote efficiency relative to a group of peers. To establish a score from 1 to 100 indicating the standing of a sample relative to its group, a cumulative distribution function must be fitted to the data. On this scale, higher numbers indicate better energy efficiency.
This step is similar to Energy Star distribution fitting. Energy efficiency ratios are sorted from smallest to largest, and the cumulative percentage of the population in each ratio is calculated. A cumulative probability distribution (CPD) is then fitted to the data. The CPD is the artifact that will be used for energy efficiency scoring. Figure 3 shows an example of distribution fitting for SVR: the dots represent the calculated cumulative distribution values. Values towards the left part of the graph represent higher efficiency. The solid red line is the fitted CPD.
To select the CPD function from a set of candidates, the Akaike information criterion (AIC) is used (Akaike 2011). This criterion was chosen over others such as the Kolmogorov-Smirnov test and the Anderson-Darling test, because it discourages overfitting by penalizing models with large numbers of parameters. Therefore, it provides a trade-off between model goodness of fit and its complexity. AIC evaluates the relative quality of statistical models: it estimates model quality in comparison to other models, but it does not assess absolute quality. If all candidate models are inaccurate, AIC will still choose the best one. Therefore, quantilequantile (Q-Q) plots can also be used to assess the distributions with top AIC values.

Energy efficiency scoring
After the regression model has been created and the cumulative probability distribution has been fitted to the data, the model is ready to score energy efficiency. Scoring can be carried out on the same data that were used for building the benchmarking system as well as on new data. When the model is used for the same data, the preparation step has already been completed, as illustrated in Fig. 1, and the data are ready for energy efficiency calculation.
New data, or data that were not used to build the system, must have the same attributes as the data used to build the model. Inputs should include energy consumption, weather conditions, building attributes, and time slice attributes.
To match the structure of the data used to build the benchmarking system, new data must undergo data preparation. This involves only time slicing; attribute selection process, which was part of data preparation during system construction, is not performed here because the attributes have already been selected. The time slicing step performed during energy efficiency scoring is the same as the one in building the benchmarking system (BData preparation^).
Next, the expected (predicted) energyŷ is calculated for new and/or old data using the regression model. The exact calculation depends on the regression model and the selected regression algorithm. Subsequently, the energy efficiency ratio is obtained according to Eq. (6).
Next, for each entity with its corresponding energy efficiency ratio, the cumulative distribution value (CDV) is calculated based on the fitted distribution function. This step is illustrated in Fig. 3 with dashed lines. The obtained cumulative distribution values are on a scale from 0 to 1.
Finally, the Energy Efficiency Scores (EES) are calculated as follows:

Evaluation
This section presents an evaluation of the Energy Slice approach described in this paper by using it to assess the energy consumption efficiency of events that were held in two entertainment arenas in Canada. Identifying low-performing events assists in finding opportunities for energy improvement and promotes energy efficiency. Figure 4 illustrates electricity consumption over a few days in one of these arenas, with vertical bars representing event duration. It can be observed that the patterns are very different for event and non-event days. During event days, an increase in energy consumption starts in the morning, and its peak can reach several times that of a non-event day. Therefore, it is important to consider the efficiency of individual events.
The data set used in the experiments consisted of 795 events that were held between January 1, 2012 and April 20, 2016 in two Canadian entertainment arenas: Budweiser Gardens, located in London, ON, and GM Centre, located in Oshawa, ON. The data set contained a variety of events, such as hockey and basketball games, concerts, and musical performances.
All experiments were implemented in the R language (R Core Team 2014). The Bstats,^Be1071,B randomforest,^and Bneuralnet^packages were used to implement LR, SVR, RF, and NN, respectively.
BInputs and data preparation^discusses the data set used and the data preparation. BRegression algorithm construction^discusses regression algorithm construction, and BCalculating energy efficiency ratios and fitting the cumulative probability distribution^presents the results of the distribution fitting experiments. Finally, BBenchmarking results^presents the benchmarking results, and BDiscussion^compares them with an alternative formulation in which event setup (preparation) was also considered.

Inputs and data preparation
Input data were prepared for benchmarking by using the time slicing procedure. Table 1 presents an overview of the prepared attributes for each event. Because the number of available attributes was relatively small, attribute selection was not carried out, and all attributes were used for benchmarking.
The attributes were classified as energy consumption, weather conditions, building attributes, and time slice attributes as defined in BBuilding benchmarking system.^Note that each event represents only a time slice of the total arena energy consumption. Other benchmarking solutions consider aggregate annual or monthly data only, which hinders their ability to evaluate specific time periods.
Energy consumption data were obtained through the Green Button standard interface (North American Energy Standards Board 2016). London Hydro, the local electrical utility involved with this project, has developed the first cloud-based Green Button Connect My Data test environment to enable data access to academic partners with the customer's consent. Data were originally recorded at 15-min intervals for both where CDV is the cumulative distribution value. The resulting efficiency scores range from 0 for the worst performers to 100 for the best performers. For example, a score of 70 corresponds to the 0.3 point in the cumulative distribution and indicates that only 30% of the population performed better than the sample being evaluated.
arenas. The energy consumption of an event was calculated as the aggregate consumption for the event duration.
Weather condition data were obtained from the Weather Underground (2017) and represent the average temperature and humidity during each event.
The building attributes group in this case study only included building size as square footage. It is possible to include other attributes that possibly impact energy consumption, such as a number of offices or the size of open spaces.
Time slice attributes describe the context of a specific time slice. Because in this case study time slices represent individual events, time slice attributes are used to describe events. For instance, the event schedule is captured by attributes including day of year, hour of day, and day of week. The arena seating configuration, which indicates the maximum seating capacity for a specific setup, was used as an approximation of event attendance because attendance was not available.

Regression algorithm construction
After the data were prepared, building the benchmarking system continued by selecting the regression model that best described the available data.
To demonstrate the importance of the algorithm selection step, the experiments in this section considered four regression methods: LR, SVR, NN, and RF. To show that it is not sufficient to evaluate models on the complete data set and to provide evidence that out-of-sample evaluation is necessary, each algorithm was assessed in two ways: & Without k-fold: training was carried out on the complete data set, and the error rate was evaluated on the same set. Similar procedures are typically used by existing benchmarking solutions (Environmental Protection Agency 2014; Hong 2014). However, calculating the error on the same data set that was used for training is not considered proper statistical evaluation (Hastie et al. 2009). & With k-fold: training and evaluation were carried out according to k-fold (k = 5) cross validation and therefore followed proper statistical procedures by considering an out-of-sample evaluation. The reported values are the average of all k-fold trainings a s d e s c r i b e d i n BR e g r e s s i o n a l g o r i t h m construction.T able 2 shows the MAPE and CVerror metrics for all four methods, with and without k-fold evaluation. Note that for both cases and for each training round, grid search with k-fold evaluation was also used to select the best parameters for each algorithm. Table 2 shows that without k-fold cross validation, the RF method was the one with the lowest error according to both MAPE and CV measures. However, when k-fold cross validation was included, SVR was the method with the best performance. These results show the importance of performing a thorough analysis of regression models. RF would have been chosen if the training had been performed over the entire data set and evaluated on the same set, but the k-fold cross validation showed that SVR had better generalization capacity. Without the k-fold cross validation, the selected model would have fit the training data very well, but it would have performed poorly on previously unseen data. This demonstrates the need for out-of-sample evaluation, specifically cross validation, when selecting a regression model. Based on the results shown in Table 2, SVR was selected as the regression method for event benchmarking. Next, the regression model was built with the selected algorithm and with the complete data set. Rebuilding the selected model in this way makes use of all available data.
Calculating energy efficiency ratios and fitting the cumulative probability distribution The regression model, in this case study, the one built using SVR, enables calculation of the expected/ predicted energy consumption for each event. Based on these predictions, the energy efficiency ratios (EERs) can also be obtained, as described by Eq. (6). Finally, fitting a cumulative probability distribution to the calculated EERs transforms the EERs into energy efficiency scores.
To select a cumulative distribution, the AIC values for candidate distributions were calculated using the Bpropagate^package in R. Table 3 shows the top five distributions and their corresponding AIC values. It can be observed that the AIC values for the top two distributions, scaled/shifted t and Johnson SU, are quite close. Therefore, their fit to the observed data was analyzed using quantilequantile (Q-Q) plots. Figure 5 shows Q-Q plots for the Johnson SU and shifted/scaled t distributions.
For the middle range of energy efficiency ratios, both Johnson SU and t distributions fit the data very well. For low and high ranges of EER, there is a divergence from the optimum line for both Johnson SU and shifted/scaled t distributions. Nevertheless, for high EER values, the shifted/scaled t distribution fit the data better than the Johnson SU distribution, which corroborates the AIC values obtained.

Benchmarking results
Based on the selected regression model (SVR) and fitted cumulative distribution (shifted/scaled t distribution), the energy efficiency scores for all events were calculated as described in BEnergy efficiency scoring.^Figure 6 shows the resulting score distribution, which has an almost uniform shape. The average score was 49.58, and the standard deviation was 28.87.
The scores were further analyzed to validate the results. Figure 7 shows the events' energy consumption versus their energy efficiency scores. Data points of different color and shape are used to differentiate among hockey, basketball, and other types of events. The graph shows that hockey games tended to consume more energy than other events. This was expected because maintaining ice requires relatively large electricity consumption. In particular, most hockey games consumed much more electricity than basketball games. Nevertheless, this did not result in hockey games having lower scores than basketball games. As illustrated in Fig. 7, efficiency scores for both hockey and basketball games varied from very low to very high. Some hockey games achieved similar energy efficiency scores to basketball games while consuming much more energy (the hockey curve is to the right from the basketball one). This is a desirable behavior because the nature of hockey events drives higher energy consumption, and they should not be directly compared with bas-  Table 4 shows two events A and B, respectively: a hockey and a basketball game. Although the hockey event energy consumption is much higher than the basketball event consumption, both received the same score. This is because hockey events are expected to consume more electricity due to their nature. This example together with Fig. 7 demonstrates that the proposed benchmarking approach can differentiate among various types of events and benchmark them appropriately.
The Energy Slice approach also showed good capability to differentiate between efficient and inefficient events within a single category. For instance, hockey games consumed on average 15.3 kWh per minute of an event. The top 10 scored hockey games consumed only 12.45 kWh, whereas the bottom 10 consumed 24.22 kWh. A similar observation applies to basketball games. The average energy consumption for a basketball game was 10.17 kWh per minute. The top 10 energy consuming games used on average 8.98 kWh per minute, whereas the bottom 10 consumed on average 12.19 kWh per minute.
Example 2 in Table 4 compares two hockey events. Although their energy consumptions are quite similar, the events received very different scores, 81 and 9. However, the event attributes indicate that the average temperature during event C was 25°C, whereas during event D was 14°C. Because hockey events require much more electricity for cooling the ice when the outside temperature is high, it can be expected that consumption would be significantly greater for higher temperatures. Therefore, although event C had similar consumption to event D, it received a much higher score (81) because it achieved this consumption during a higher temperature period. This demonstrates that the Energy Slice approach can also account for event context, specifically outdoor temperature.

Discussion
The experiments described in the previous subsections showed that the Energy Slice approach developed in this research can be effectively used to score the energy efficiency of time slices of entertainment arenas (events).
Obviously, the greatest difficulty in developing a benchmarking approach is to assess its quality. To the best of the authors' knowledge, there is no other approach that could be used in the same context and therefore compared with this research.
Nonetheless, BRegression algorithm constructiond emonstrated the need for the algorithm selection step described in Fig. 2, and BBenchmarking results^demonstrated that the resulting scores conform to intuition. Moreover, scores were independently assessed by specialists from the local electricity distribution company and the facility operators. These specialists believed the scores produced were coherent and could be successfully related to differences in comparable event operations.
However, to evaluate the Energy Slice approach in more depth, two additional experiments were conducted. The first one compared scores when different regression algorithms were used. In the second experiment, the benchmarking behavior for a different time slicing approach was analyzed.

Experiment 1
Table 5 compares efficiency scores obtained with different algorithms. Each cell contains the average absolute difference between the scores produced by the algorithms in the corresponding row and column. For instance, the average absolute difference between LR and SVR scores is 15.93. Note that the absolute difference is used because otherwise the average could become approximately zero by summing negative and positive differences.
The smallest difference was 13.14 between SVR and RF. This indicates that if RF algorithm was selected instead of SVR, the difference in final scores would be on average 13.14. Similarly, if LR was used instead of SVR, the difference in final scores would be on average 15.93. These experiments demonstrated the importance of using out-of-sample evaluation for algorithm selection described in Fig. 2 and the impact of algorithm selection on the final score.

Experiment 2
In this experiment, the scores were recalculated considering the time slice of an event from the start of its setup (preparation) to its end time. The reasoning behind this experiment is that the increase in energy consumption due to event setup should be included in the efficiency evaluation. This contrasts with the previous experiments, which considered only the event duration (event start to event end) as the time slice. To enable this analysis, the following attributes were also added: In addition, the total event energy consumption was also updated to include consumption during event setup. Figure 8 shows how the original and updated scores compare with each other. The average absolute score difference was 16.83, and the standard deviation was 15.38. There were 53 events whose scores were unchanged. Several events experienced a large change: score decrease indicates inefficiencies in setup whereas increase denotes energy efficient setup. Figure 9 shows a histogram of the (non-absolute) score differences. Most events lie in the range [− 20,20], which demonstrates that the Energy Slice approach is stable with regard to changes in the time slicing. Nevertheless, the histogram also shows that approximately one-third of the events had larger changes in their scores. Figure 10 helps to understand these larger changes better. In this graph, the x-axis represents the setup duration relative to the event duration, whereas the yaxis represents the setup energy consumption relative to the event consumption. The dashed black line represents the data points in which the relationship between these variables is one. On this line, one unit of increase in duration represents a proportional increase in energy consumption. Therefore, the data points below the dashed line represent events that are spending less energy on setup than expected. Conversely, the data points above the line represent events with less efficient setup.
The graph shows that, once again, the benchmarking results comply with intuition. Blue circle data points represent the 30 events that had the largest increase in score by considering event setup in the time slice. Note that most of these data points are below the black line (they had efficient setups). On the other hand, points marked by red diamonds represent the 30 events with the largest decrease in score. In this case, they are mostly above the line. For the sake of comparison, all events with no change in the score are also plotted.
To explore changes in efficiency scores in more depth, two events, event A from the bottom 30 and event B from the top 30, were analyzed. Figure 11 shows their energy consumption together with event and setup duration. Event A exhibited very high energy consumption during setup, even exceeding the consumption during the event. On the other side, event B was much more efficient during the preparation stage, as indicated by lower energy consumption. Consequently, event A's score decreased, whereas event B's score increased when setup was included in the observations.

Conclusions
This paper has presented Energy Slices, a novel statistics-based benchmarking approach that considers time slices of building energy consumption. By doing so, this approach can analyze different time periods of a building's operation and find new opportunities for improvement and cost reduction. For instance, an office building may have different levels of efficiency during working and nonworking periods due to the wasteful behavior of its occupants. Benchmarking solutions that analyze monthly or yearly data may not detect this inefficiency because they consider only aggregated information.
In addition to time-slicing capabilities, the Energy Slice approach also includes a procedure to select the regression model that best describes the analyzed data. This procedure aims to guarantee that the baseline used in the energy efficiency ratio calculation accurately represents the group of buildings under consideration. This approach contrasts with existing benchmarking processes that use a single model type for every building type and scenario.
Finally, the Energy Slice approach was evaluated through a case study in which events occurring in Canadian entertainment arenas were benchmarked. The results show that the Energy Slice approach is robust and produces scores for events that are consistent with their energy consumption efficiency.
Traditionally, benchmarking assesses the building energy performance by assigning a score that can be used for retrofit prioritization, goal setting, and improvements evaluation. Time slice approach goes beyond traditional benchmarking by providing the ability to  identify low-performing time periods, and therefore, it assists in identifying improvement opportunities. Future work will explore the application of the proposed approach to different scenarios such as separate evaluation of office working and non-working hours or assessment of energy performance in different seasons.