An occupancy-based model, which divided the occupancy and electricity consumption into basic and variable parts, was proposed for the prediction of the building electricity consumption [
34]. In this study, a two-part model for the prediction of building energy consumption was established. The energy consumption generated to meet the basic operation requirements of public buildings is defined as the basic energy consumption of public buildings. The energy consumed by occupants directly operating energy-consuming equipment is deemed as the variable energy consumption. The former is usually related to factors such as the area and function of a public building, while the latter depends on the strength of occupant activities. Therefore, building energy consumption can be expressed by Equation (1).
where
is the total building energy consumption in a certain time period, kWh;
is the basic energy consumption in a certain time period, kWh; and
is the variable energy consumption in a certain time period, kWh.
2.1.2. Variable Energy Consumption Prediction Method Based on the Agent-Based Model
The main sources of variable energy consumption in office buildings are the occupants and energy-consuming equipment in the building. The variable energy consumption prediction aims to study the interactions between occupant behaviors and energy-consuming equipment. Considering that different occupant behavior habits will lead to different preferences in the usage behaviors of energy-consuming equipment, occupant types should be divided according to their preferences and habits to accurately describe occupant behaviors. Energy-consuming equipment in office buildings can be divided into environment-related and environment-independent energy-consuming equipment according to whether their operation is related to environmental factors. The representative environment-related energy-consuming equipment includes air conditioners, lighting fixtures, and shading facilities, while the representative environment-independent energy-consuming equipment includes sockets (computers), water dispensers, etc. In this study, AnyLogic discrete event simulation software based on JAVA is employed to build an agent-based device usage model.
- (1)
Preference description of energy-using behaviors based on Bayesian conditional probability distribution.
Clustering is a data-mining method that groups elements based on similarities and representative elements, which allows the simultaneous evaluation of several variables [
36]. One of the most widely used algorithms in this category is the k-means algorithm because of its high performance and simplicity, [
37]. The k-means clustering algorithm is chosen to classify occupants’ preferences. First,
points are randomly extracted as the cluster centers, and then the distances of the remaining objects relative to the cluster centers are calculated, and they are finally assigned to the clusters
where the nearest centers are located, ensuring that the sum of squared errors for all objects is minimized under
and
.
where
is the cluster
;
is the object in
; and
is the cluster centroid of
, which can be calculated by Equation (4).
where
is the number of objects in the cluster
. When the objects in each cluster change, the cluster center is recalculated, and the process is repeated until no objects are reassigned and the cluster centers do not change.
The Bayesian conditional probability can be adopted to classify the occupants’ energy-using and preference types in different scenarios and describe the equipment-using probability. When several occupants are present in the office space, the use demand for the environment-related equipment in the current scenario can be independently judged by this method, and the probability of each occupant using the equipment can be obtained. For the equipment, there are only two states under the current scenario: either it is used by occupants in the operation state, or it is not used in the shutdown state. When the probability of the equipment in the shutdown state is calculated, the probability of the equipment in the operation state can be obtained accordingly, which can be expressed by Equation (5).
where
is the probability of the equipment in the operation state in a multi-occupant office space, [0,1];
is the total number of occupants in the current office space; and
is the probability of the i-th occupant using the equipment in the current scenario, [0,1].
- (2)
Usage behaviors of environment-related equipment.
Based on the idea of agent modeling, occupants and air conditioners in the office can be set as agents to describe the occupants’ adjustment behaviors with the air conditioner and the air conditioner’s operation state in different scenarios. Occupants, lighting fixtures, and shading facilities are set as different agents to describe the interaction between occupants and lighting fixtures and shading facilities, and to explore the usage rules of lighting fixtures and shading facilities under different conditions. The modeling process and internal operation rules of agent-based air conditioners, lighting fixtures, and shading facilities usage behaviors are shown as
Figure 1.
The questionnaire method is usually used to obtain the adjustment willingness of the occupants to the ambient temperature and Bayesian conditional probability under different thermal comfort conditions, and then the air conditioner use probability () under different environmental conditions can be obtained.
Combined with the clustering results of occupants’ preferences for air conditioner temperature settings, the probability of air conditioners operating at a certain temperature
) under different conditions can be achieved, which is expressed by Equation (6).
where
is the air conditioner operation probability at a certain temperature and
is the air conditioner use probability under the current environment and occupant conditions.
Survival analysis can be used to describe the probability that a certain time in the existence of an individual or group occurs over a period of time (defined as survival time). Survival models provide a better relationship between event occurrence and time period than other methods. The air conditioner is turned on during work time and will be kept on for a long time until the occupants leave the building at the end of the day. In most cases, the probability of an air conditioner being turned off during office hours is related to the length of time that occupants are away from the office. Typically, the longer the absent time is, the higher the shutdown probability will be, which is consistent with logistic distribution. The survival model thus provides a good description of the probability change of the air conditioner operation status. Log-logistic is a type of parametric survival model, which assumes that survival times follow a known logistic distribution.
The log-logistic model is established to describe the change in air conditioner shutdown probability due to the increase in occupants’ leaving time, and its survival function is shown as Equation (7).
where
is the shape parameter;
is the scale parameter;
is the duration, min; and
is the survival probability. Therefore, the probability distribution is shown as Equation (8).
where
is the air conditioner shutdown probability;
is the occupants’ leaving time, min; and
and
are the parameters.
The use of luminaries and shading facilities interact with each other and together affect the energy consumption of lighting in buildings. The Weibull three-parameter distribution takes the physiological and psychological factors of occupants into account, which is a more reasonable action probability description method suitable for small samples and has good adaptability to experimental data. Thus, this study adopts the Weibull distribution to describe occupants’ usage behaviors with illumination and shading.
When the light environment is insufficient, the lighting fixtures may be turned on or the shading facilities may be pulled up to introduce natural light. Therefore, the behaviors of turning on the luminaries and pulling up the shading facilities to enhance the work surface illumination are collectively referred to as illumination enhancement behavior, and the illumination enhancement behavior probability (
) can be expressed by Equation (9).
When the work surface illumination exceeds the occupants’ minimum comfortable illumination, the shading facilities may be pulled down. The shading down behavior probability (
) can be calculated by Equation (10).
where
is the work surface illumination,
;
and
are, respectively, the occupants’ maximum and minimum work surface comfortable illumination,
;
is the shape parameter, reflecting the sensitivity of behaviors to environmental changes; and
is the scale parameter, reflecting the scale factor for environmental stimuli. Let
and the dimension of
is the same as that of
.
is the dimensionless of environment variables
.
As with air conditioner usage behavior, lighting off behavior also follows the survival model.
- (3)
Usage behaviors of environment-independent equipment.
Due to the similarity of socket-related equipment usage behaviors, the usage behaviors for sockets are thus simplified to the usage behaviors for computers in this study. The computer usage behaviors can be divided into switching behavior and power adjustment behavior. The power adjustment behavior means that the computer operation power is adjusted to different levels for different occupants’ use demand. The socket operation power levels at off state and full load are set to 0 and 1, respectively. For the sockets under low load and medium load state, the power levels are determined by the ratio of their power to full load, respectively. To describe the socket usage behaviors, occupants and sockets are set as different agents to explore the interaction between them in this study. The modeling process and internal operation rules of agent-based socket usage behaviors are shown in
Figure 2.
The multivariate normal distribution is a generalization of the univariate normal distribution and is usually used to solve situations where data under the same set contains multiple distributions. According to the occupant behavior and power consumption characteristics of typical household appliances [
38], it reveals that there is an obvious correlation between the pattern of water intake and commuting pattern of people in the building, showing the characteristics of multi-peaked distribution, which is suitable for the description by using the combination of multiple normal distributions. At the same time, the expression of multivariate normal distribution is easy to handle, and the results of the theoretical derivation are concise. Therefore, multivariate normal distribution is used when considering the variation pattern of the number of occupants taking water from drinking dispensers over time.
The pattern of variation in the number of occupants taking water from the water dispenser over time can be described by the combination of multiple normal distributions, which is shown in Equation (11).
where
is the number of occupants going to the water dispenser during
t period, and
, and
are fitting parameters of normal distribution.