Inﬂuence of Complex Occupant Behavior Models on Cooling Energy Usage Analysis

: The behavior of building occupants has been studied by researchers for building control as well as for predicting energy use. In this study, we analyzed the effect of the application of single and complex behavior models on the simulation results of residential buildings. Two occupant behaviors—window opening and closing and air conditioner (AC) usage—were simulated, which are known to be interconnected. This study had two purposes: The ﬁrst was to integrate data analysis tools (R in this study) and building simulation tools (EnergyPlus in this study) so that two behaviors with interconnectivity could be reﬂected in building simulation analysis. The second purpose was to apply the behavior models in residential buildings to an integrated simulation environment in stages to analyze their relative inﬂuence on the building energy and indoor environment. The results of the study prove that the application of complex behavior is important for research regarding the prediction of actual energy consumption. The results help identify the gap between reality and the existing simulation methods; thereby, they can help improve methods related to energy consumption analysis. We hope that this study and its results will serve as a guide for researchers looking to study occupants’ behavior in the future. Author Contributions: Conceptualization, Y.K., S.-H.M., and J.-H.H.; methodology, S.-H.M.; software, Y.K.; validation, S.-H.M.; formal analysis, Y.K. and S.-H.M.; investigation, S.-H.M.; resources, S.-H.M.; data curation, S.-H.M.; writing—original draft preparation, S.-H.M.; writing—review and editing, Y.K. and S.-H.M.; visualization, S.-H.M.; supervision, J.-H.H.; project administration, S.-H.M.; funding acquisition, S.-H.M. authors read the of the manuscript.


Introduction
Packaged air conditioners (ACs) are representative cooling systems that are commonly used in residential buildings as well as in small commercial buildings. The penetration rate of ACs in South Korea is expected to be 1.06 units per household in 2030 [1]. According to the growth trend of the AC market over the last few years, however, the penetration rate appears to have already exceeded this expectation. The increase in the use of ACs could be due to the increased demand for indoor environments driven by the effects of climate change and increasing disposable incomes. Despite the widespread use of ACs, the cooling load has not been included in the evaluation of the energy performance of residential buildings in South Korean systems, and residential devices for cooling are categorized as home appliances in most cases. However, in some East Asian countries with hot and humid climates, the impact of ACs on energy consumption is far too significant for them to be classified simply as home appliances [2][3][4].
Many researchers have used building simulation tools to predict the energy consumption of such cooling devices. Building simulation is performed for real-time control by predicting the energy consumption of a building or to review the effects of applied technologies. Although building simulation tools have different purposes, one of them is to simulate actual buildings. Such tools, however, have various uncertainties associated with their use, such as physical models, meteorological data, and input values, which create a deviation between the actual energy consumption of buildings and that obtained via simulations. There are various factors that cause such deviations, including occupant behavior (OB); hence, researchers have been studying this topic in order bring the simulation values closer to the actual values [5].
Before studies on the derivation of OB models were actively conducted, for most building simulations, values of variables related to OB, such as occupancy status, window opening/closing, and use of cooling and heating devices, were simply assumed (arbitrarily) and applied at the discretion of the simulation performer or based on guidelines for building energy performance analysis. If buildings have poor physical performance, such a simplification of OB information reduces the energy consumption, which may vary depending on OB. With the reinforcement of design standards for the levels of passive houses and with advances in analytical tools, however, OB has increasingly attracted the attention of researchers as the main factor that leads to a deviation between actual energy consumption and simulation results. For passive houses that were constructed between 1990 and 2018, the building performance that was predicted during the design stage was compared with the actual heating energy consumption, and analyses were performed. The analysis results revealed that OB accounted for a standard deviation of up to 50% [6]. Performing energy retrofitting using OB analysis helps in energy conservation; consequently, it results in excellent building energy performance [7]. OB analysis can also help in more accurately evaluating energy conservation measures, as it reduces the number of uncertain variables [8]. Additionally, OB is a main factor to consider when trying to understand the current energy consumption from the perspective of post-occupancy evaluation (POE). In other words, OB analysis is required to understand the current situation and to present a better direction [9]. As occupants have emerged as entities that determine the energy consumption of buildings [10], many related studies have been conducted with a focus on IEA Annex 66 "Definition and Simulation of Occupant Behavior in Buildings" and Annex 79 "Occupant-Centric Building Design and Operation". According to a literature review on OB covering ten years (2009-2018) conducted by Balvedi et al., only three out of the ten most frequently cited studies were related to residential buildings. Although residential buildings also have an energy-saving potential, most studies have focused on commercial buildings, as the factors that determine behavior for residential buildings are relatively limited because of the difficulty with respect to data collection [11].
Studies on OB can be placed in three main categories: (1) identification of factors affecting behavior according to the research purpose and monitoring for data collection, (2) analysis of the collected data and development of behavior models, and (3) a simulation that applies the behavior models. In general, these categories are not covered in one study, but the scope varies depending on the purpose of the study. Studies on the operation of a building's predicted OB consider physical factors and time, which are collected through monitoring. Some studies introduced mathematical models to predict the window opening/closing behavior, which compared the measured data with the simulation data, and reported that behavior models could reproduce the general behavior of actual occupants [12][13][14]. Meanwhile, these results could be derived because the large influence of AC operation on the window opening/closing behavior was excluded [15]. OB changes indoor environments, and the changed indoor environments affect OB. Consider a simple example wherein an occupant decides to open a window in an indoor environment and takes action; the outside air comes inside and changes the indoor environment. The changed environment determines the next action of the occupant. The window opening behavior of the above example may affect the usage behavior of the AC or blinds of the occupant. Imagawa et al. conducted an analysis by integrating the window and AC on/off behavior. They predicted the behavior based on the outdoor temperature and analyzed the combined effect of complex behavior [16,17]. Cong Yu et al. reflected the OB information derived through a survey in a building energy simulation for residential buildings in Hong Kong to improve the accuracy of results; they also recommended that window and AC operation must be considered together in OB [18]. Then, will it be possible to reflect OB models that are complexly related to indoor environments in building energy analyses? Hong et al. developed an ontology that provides a common descriptive language capable of observing, modeling, and simulating OB in building simulations over many years of research [19,20]. Based on this, they provided a standardized structure for describing OB and integrated behavior with building energy modeling and a functional mock-up unit (FMU) by devising an obXML (occupant behavior extensible markup language) schema that includes drivers, needs, actions, and systems (DNAS). They also provided a platform that can be used for operation scenarios of lighting, windows, and heating, ventilation, and air conditioning (HVAC) using an OB modeling tool that integrated EnergyPlus and obFMU [21]. Research on the methodologies for deriving OB models from collected data and applying such models to building simulation tools is currently underway. The importance of linking buildings with occupants by implementing OB when performing building simulations is increasing along with the importance of smart building systems.
This study was conducted with a focus on the effect of the application of behavior models (single or complex) on building simulation results. Thus, this study had two purposes, as shown in Figure 1. The first was to integrate data analysis tools and building simulation tools so that two behaviors with interconnectivity could be reflected in building simulation analysis. For behavioral models that can be predicted by mathematical models, behavioral simulation can be performed using a single tool (EnergyPlus in this study). However, a new approach is required to apply the behavior predicted by machine learning methods to building simulations. In addition, when conducting behavioral simulations in a co-simulation environment, the timestep must also be reviewed, which has become an issue in buildings with high heat capacity because the behavior is predicted by the behavior model based on the timestep. Therefore, the proper timestep is discussed. The second purpose was to apply the behavior models in residential buildings to an integrated simulation environment in stages to analyze their relative influence on the building energy and indoor environment. In this process, the impact of applying a single behavior model and the influence of applying a composite behavior model were analyzed, and in the case of the complex behavior model, a case analysis was conducted according to the behavior preferred by the residents.

Occupant Behavior (OB)
Among the behaviors of occupants, occupant presence is a behavior that must be determined before the occurrence of other behaviors. Because other behavior may occur based on occupant presence, many studies attempted to judge/predict occupant presence [22,23]. The effect of predicting the presence status on the building energy/environment may vary depending on the use of each building. In commercial buildings, multiple zones are generally controlled using a single heat source facility; hence, the accurate prediction of the occupant presence status may result in significant energy savings. However, the occupant presence status in residential buildings is not as significant because the living spaces of occupants are generally relatively small, and the number of occupants is almost fixed.
The main behavior related to ACs will be turning the AC on/off and the adjustment of the temperature. One more important OB is the window opening/closing behavior. The window status determined by OB may affect the AC on/off status, which may conversely affect the window status. In other words, these two behaviors must be simulated together because they affect each other. In this study, behavioral information and changes in cooling energy consumption were simulated according to the reflection of these two behaviors.

AC On/Off
Numerous studies on AC usage behavior have been conducted to analyze influencing factors, which are the preliminary stages of deriving behavior models. The results of previous studies showed that they were mostly conducted with a focus on the physical environmental parameters (especially indoor and outdoor temperatures) among the seven categories that determine behavior (environmental, time-related, contextual, physiological, psychological, social, and random) [24]. Among the studies that have been published since 2014 when active research on OB started, few predicted the AC usage behavior of occupants in residential buildings using physical elements as variables. The AC usage prediction models presented in previous studies are based on various forms, such as a Sigmoid function, Weibull distribution, or operation probability by time [2,3,25].
AC usage behavior is significantly affected by geographical, cultural, and social elements. Therefore, this study attempted to use models derived in South Korea. Few studies have focused on the AC usage behavior of occupants in South Korea, and only one study predicted the on/off status using the Random Forest (RF) algorithm and a support vector machine (SVM). Machine learning methods, such as RF and SVM, are used not only for building-related predictions, but also in various areas, and their excellence as prediction algorithms has been verified by many researchers [26]. RF, an ensemble technique, overcame the shortcomings of decision trees by bagging (or bootstrap aggregating). Bagging is a method used to overcome bias and variance, which are the two components of learning errors. It determines the prediction results by generating N prediction models from training data through random sampling and allowing the individual prediction models to vote. Next, SVM is an algorithm that finds the optimal decision boundary so that the margin for grouping data can be maximized. The large margin means that data can be classified in a stable manner, even when new data are added in the future. SVM introduces a parameter cost (C) to allow errors caused by outliers, and the complexity and generalization performance of the model are determined by the C value. These learning algorithms have been actively used in research related to energy prediction [27][28][29]; however, there are not many cases that have focused on behavior prediction.
Building energy models are required in various cases, such as the examination or optimization of the efficiency of building retrofitting and the preparation of control measures. If machine learning methods must be linked in this instance, the model cannot be solved using a single tool. In other words, it is necessary to construct a co-simulation environment to connect such algorithms with building energy simulations. In this study, the co-simulation of R, a data analysis tool, and EnergyPlus, which is a building energy simulation tool, was performed. The details of the co-simulation are discussed in Section 2.2.

Set Temperature Adjustment
The set temperature has a considerable influence on the calculation of the load of a building. Moon and Han (2011) analyzed the energy-saving effect according to the set temperature under different climatic conditions for typical single-family houses in a cold region (Detroit) and a hot and humid region (Florida) and found that a set temperature of 1 • C caused cooling energy differences of 10.3% and 7.7%, respectively. This shows that thermostat settings have a significant impact on the cooling and heating energy consumption of residential buildings [30].
In South Korea, the cooling set temperature generally applied for building energy analysis is 26 • C. This recommended value is significantly different from the temperatures actually set by occupants. Although public buildings must follow this recommended temperature, the set temperature in residential buildings varies depending on the preferences of occupants. Sun et al. (2017) varied the set temperature according to the energy use propensity of occupants in a study that analyzed the energy measure application effect [31]. Mun et al. (2018) collected signals from remote controls of ACs with Arduino, analyzed the set temperature among the collected information, and concluded that it is difficult to predict the set temperature because the propensity of occupants is reflected in it [32]. In addition, Tushar et al. (2017) designed a temperature control policy for ACs in shared spaces [33]. This verified that temperature control has an important effect on energy determination. Predicting the set temperature is not easy because it is linked with the occupants' propensities and behaviors (including the various factors that affect behavior, such as systems and income levels). Wang et al. (2016) reported on not only the indoor temperature and humidity, but also the feedback of occupants regarding real-time comfort in predicting the set temperature of cooling/heating devices [34]. Based on this background, this study considered that predicting the set temperature is impossible and judged that assuming a normal distribution is the most reasonable at the current level by referring to a previous study [35].

Window Open/Closed State
In this study, a regression model was used to model the window opening/closing status. Logistic regression (LR) is a probabilistic classifier for predicting the binomial or polynomial results by fitting conditional probability to a logistic function. A logistic function can be understood from the same viewpoint as the Bernoulli trials, as shown in Equation (1), and µ(x) in Equation (2) is a logistic function. Differently from the linear regression model, which represents a linear relationship between probability and predicted variables, the LR model has an advantage in predicting the upper and lower intervals of variables. Researchers consider the LR model to be the most appropriate for describing discrete behaviors, such as the opening/closing of windows [36][37][38][39][40][41][42]. The LR model can be generalized into a linear function, as expressed in Equation (3).
where p i is the probability of the occurrence of behavior (%), β m is the LR coefficient, and x m,i is a variable or factor of the inducement of behavior(s). The LR model can be easily applied to building energy simulation [43].

Co-Simulation
Advances in research contents required by the building sector have also led to advances in the tools used; in this process, researchers have conducted various studies through co-simulation [44][45][46][47][48]. In particular, because of the growing need to utilize building energy or environmental information data, it is necessary to integrate data with building energy simulation.
There are two coupling types: internal coupling, which fuses one model with another and has only one solver, and external coupling, which fuses different models with their own solvers and exchanges data with other solvers. Internal coupling requires high development and maintenance costs as well as considerable computation time because the integration must be performed with each program's source code. By contrast, external coupling is easy to implement if only the interface of each program is understood instead of analyzing the source code, and it can utilize distributed computing [49]. External coupling can be classified into static and dynamic synchronization according to the synchronization system and into one-way and two-way data exchange according to the data exchange direction. One-time data exchange for the entire simulation is known as static synchronization, and multiple data exchanges are referred to as dynamic synchronization. If only one program provides data to another, it is referred to as one-way data exchange. If data are exchanged between two programs, the program is referred to as two-way data exchange [49].
In this study, two processes were repeatedly simulated. First, OB was learned and predicted. The predicted behavior was then input into a building energy analysis tool to derive the indoor thermal environment and energy consumption. R [50], which performs object-oriented programming, was used to learn and predict OB, and EnergyPlus [51], a dynamic building energy analysis tool, was utilized to derive the indoor thermal environment and energy consumption.
In the case of this study, the AC operation status was predicted using a machine learning algorithm (i.e., RF), and the indoor thermal environment was affected by two behaviors-window opening/closing and AC on/off status. Therefore, a simulation that considers these is required. In other words, the simulation must be performed while the AC operation prediction information and information on window opening/closing and AC on/off status are exchanged at each timestep of the simulation (EnergyPlus). In addition, the indoor thermal environment and energy consumption are simulated by reflecting the OB predicted at each timestep. Among the results, the indoor thermal environment information must be used again to predict the OB at the next timestep. These two processes are similar to the ping-pong [52] method, in which the next timestep is reached while the results are being exchanged. Conventional building energy analysis tools, however, cannot exchange research results of different types while performing simulations. This is because simulations are performed after entering all the variables, and it is extremely difficult to add or modify variables while a simulation is being performed. Therefore, to address this problem, an environment for co-simulation must be developed so that the research results of different types can be exchanged while the simulation is being performed. Co-simulation aims to overcome or complement these shortcomings by coupling two or more simulation tools and software programs and utilizing their benefits [53]. The building control virtual test bed (BCVTB) provides a middleware environment for co-simulation construction [54]. In this study, for cases where integration with data analysis tools is required, a co-simulation environment was constructed, so that the next timestep could be reached while the results derived by the two simulation tools were exchanged on the BCVTB. In other words, we implemented R for predicting AC and window operation behavior and EnergyPlus for analyzing the indoor thermal environment and energy consumption on BCVTB. The two tools are independently simulated on BCVTB; however, the input and output of each tool are exchanged. Therefore, the simulation of R predicts the behavior at the next timestep by reading and utilizing the variables derived from EnergyPlus. In addition, EnergyPlus reads the behavior information predicted by R and reflects it in the AC operation schedule of the EnergyPlus input file and the window opening factor to perform the simulation. Therefore, in this study, co-simulation corresponds to external coupling, which is a dynamic synchronization scheme that performs two-way data exchange, because the result data of the two programs are exchanged at each timestep. In addition, the variability of the model must be considered in behavior research. When there are many occupants or constant changes, like in hotels, the use of fixed machine learning algorithms has limitations. Therefore, the algorithms must be updated, such as by reinforcement learning. As this study targeted a single household and was based on the premise that the subject of the behavior did not change, the use of a single machine learning algorithm did not cause any significant problems.

Building Energy Simulation with OB
3.1. Overview of the Building Energy Simulation Figure 2 shows an overview of the reference unit [55]. The area of the window in the living room is 6.93 m 2 , and that of the kitchen is 1.95 m 2 ; the floor plan was favorable for cross-ventilation. Generally, there are no interior walls between the kitchen and the living room in South Korea. Therefore, AC usage in the living room affects the air state in the kitchen. To reflect this, a dummy door between the living room and the kitchen was modeled, and the air in the living room and kitchen was allowed to be mixed by assuming that the door was always open through an AirFlowNetwork (AFN) in EnergyPlus. Because the other rooms were separated by doors, the cooling area of the AC was 58.27 m 2 (41.75 m 2 for the living room + 16.52 m 2 for the kitchen). The airtightness level of the unit was adjusted so that the infiltration amount derived by AFN could be 0.15 ACH. This value was obtained by applying a windproof coefficient of 0.05 to the infiltration amount of 3.0 ACH at n50. The typical meteorological year (TMY) data of Seoul (1981-2010) were used as weather data for the simulation, and the simulation period was from August 1 to 7. Table 1 summarizes the standard annual weather data during the simulation period. Next, it was assumed that occupants were always present in the living room or kitchen to maximize the behavior expression possibility, i.e., to minimize the influence of the occupant presence status on the simulation results of other behaviors.

Applying OB Models for Building Energy Simulation
In this study, the window operation model and AC on/off model derived from the same raw data were used. OB varies by country over a broad scope and among household members over a narrow scope. As mentioned previously [5], the cultural and socio-economical characteristics of occupants as well as the influence of the climate of the corresponding region are reflected in behavior models. Therefore, a logit model for window operation and an AC on/off model using the RF algorithm derived from the same raw data were utilized [32].

Logit Model for Window State
The initial variables of the logit model for predicting window opening/closing were indoor temperature and humidity, outdoor temperature and humidity, and horizontal total solar radiation. The data were preprocessed every 10 min before use. Equation (4) shows the window opening/closing behavior model derived through the glm function of R [32].
ln Po where T in is the indoor temperature ( • C), Rh in is the indoor relative humidity (%), T out is the outdoor temperature ( • C), Rh out is outdoor relative humidity (%), and Solar is the horizontal solar radiation (W/m 2 ).
In this study, the logit model was simulated using two methods depending on the analysis case. The model was implemented in the EnergyManagementSystem class of EnergyPlus when only the window opening/closing behavior model was applied, and in R when both the AC model and the behavior model were applied. The details are described in Section 3.3.

RF Model for AC State
The AC operation model used here makes predictions based on the RF algorithm. The number of trees (ntree) was 953, and the number of features in each tree (mtry) was 5. In this instance, the OOB (Out-Of-Bag) error was 1.01%, the F-measure by cross-validation was 0.9, and Cohen's Kappa was 0.83, indicating that the model had a high prediction rate. The details regarding the derivation process and verification of the model are described in [32].

Definition of Cases
As described in Section 1, one of the main factors affecting the energy consumption of ACs is their set temperature, which is determined by occupants. When behavior models are not reflected, i.e., for models in which all conditions for simulation are identical, the tendency of the energy consumption change can be predicted in a problem that has only the set temperature as a variable. By contrast, when performing simulation by applying behavior models, it is impossible to predict the change in energy consumption because the simulation conditions at each timestep may vary depending on the set temperature. Therefore, the set temperature was applied as a variable for case classification in this study. In 2018, Mun et al. found that the set temperature information collected through the infrared signals of the AC remote controls included cases in which specific set temperatures were preferred by occupants and cases with various set temperatures. It was confirmed that the latter set of temperature data had the characteristics of normal distribution [32]. Zhou et al. conducted research on the AC usage behavior of occupants and assumed that the set temperature had a normal distribution [25]. As such, in this study, the set temperature was applied such that 24, 26, and 28 • C could be the average temperatures (minimum of 18 • C and maximum of 30 • C).
Next, four cases were established depending on the reflection of the window opening/closing and AC usage behavior. Table 2 summarizes the simulation cases analyzed in this study; Figure 3 shows the process of each case. (d) * During the simulation, the behavior at timestep t i affects the determination of the behavior at timestep t i+1 . Because these effects occur continuously during the simulation period, it is necessary to analyze the behavior determination order. The OB implementation of these sequences can be linked with the propensity of the corresponding occupants.

Effects of the Timestep on OB Simulation
EnergyPlus recalculates the energy/environment at each timestep, which is a discrete bin of time. According to the input and output reference [51] of EnergyPlus, timestep 4 (15 min interval) is recommended for deriving stable results without a significant increase in the computation time. Tabares-Velasco reported that the initial dynamic behavior of a wall was completely inaccurate when the timestep was 1, and that responses that were fast enough to implement the actual phenomenon were observed when the timestep was higher than 4. They also suggested that the system timestep should preferably be 6 or higher (10 min or less) to analyze the cooling peak [56]. For all simulation tools, including EnergyPlus, the timestep generally has only the meaning of discrete time to interpret energy balance equations. In simulations that include behavior models, however, the timestep also has the meaning of the minimum time, in which the behavior determined in the previous timestep is maintained in addition to its original meaning. Therefore, a more appropriate timestep must be selected for sudden changes in indoor conditions or for behavior that has a considerable influence on energy.
According to a survey on the existing literature, there are not many cases in which behavior models have been implemented in simulations. In addition, no cases examined the influence of the timestep in the process. In this study, an additional simulation was performed for Case 4 (the AC status is predicted when the window status prediction result is closed) to analyze the influence of the timestep on the simulation of behavior models. In addition, to analyze the change according to the set temperature, the simulation results are summarized in Table 3.
The simulation results based on the timestep show that the window OB frequency increased, but the duration of one-time opening decreased as the timestep increased. Consequently, the average window opening time was similar and was in the 18.15-19.94% range. This tendency was similar when the set temperatures were 24 and 26 • C. In addition, as the timestep increased, the AC OB frequency increased, but the one-time operation hours decreased. In other words, the same patterns as those of the window behavior analyzed earlier were observed.
When the energy consumption was examined according to the timestep, no significant differences were observed in the energy consumption, as the timestep varied at each set temperature. The peak value, however, exhibited a large difference according to the timestep, and this difference increased as the set temperature decreased. These results were similar to the results of the research on the timestep presented in [56].
Overall, we showed that the increase in the timestep affected the behavior frequency, but it did not have a significant effect on the window opening time and energy consumption. We confirmed, however, that the timestep must be carefully selected when the capacity of a facility has to be calculated or the peak load of the target building has to be analyzed. Because the peak load may increase when the timestep is low, the timestep must be selected considering various conditions, such as computer specifications and simulation time. By contrast, when behavior models are applied to the seasonal load analysis rather than the peak load analysis, the application of timestep 1 appears to be sufficient.
The results reviewed in this study are both behavioral information and energy data of behavioral models that are reflected in building energy analysis. In addition, because the computing time must be considered during co-simulations, a case study was conducted based on timestep 4.  Table 4 summarizes the window opening/closing behavior information from the simulation results of cases that reflected the window operation model. In Case 5, the model in which AC operation was determined first, the window opening/closing frequency was lower than that in Case 4 by 1.52 times because the window opening/closing was predicted only when the AC was off. The window open time was approximately 50% (approximately 13 h per day on average) of the simulation time for Case 2 (the simulation times were 4.3 and 3.8 h for Cases 4 and 5, respectively), indicating that the window was open over a relatively short period of time for Cases 4 and 5. In the case of the time in which one window opening behavior lasts, Cases 4 and 5, which considered both the window opening/closing and AC behaviors, provided a short duration as a result. Next, the simulation results showed that the window opening/closing behavior with the set temperature had no obvious tendencies because the indoor temperature has a positive effect on the window opening/closing probability (the probability of opening the window increases as the indoor temperature increases) in the window operation model applied in this study (Equation (4)); however, it has an insignificant effect on the final behavior determination probability because the standardized coefficient is 0.0086. If the influence of the indoor temperature is large in the window operation model, a tendency may occur. This, however, can be predicted only for Case 2, in which only the window operation model was applied. In Case 4, unlike Case 2, when the prediction result of the window operation model is "closed (opening factor = 0)", the process for predicting the use of AC continues. When it is "opened (opening factor = 1)", however, AC usage is interrupted, and the indoor environment is adjusted by natural ventilation (the determination of AC occurs first in Case 5). While the air change rate was 0.15 ACH on average for Cases 1 and 3, which did not apply the window operation model, it ranged from 2.1 to 5.9 ACH for Cases 2, 4, and 5, which used natural ventilation depending on the set temperature. The air exchange can be a benefit or a loss for the cooling load depending on the indoor/outdoor air conditions. To analyze the effect of applying the window operation model on the cooling load, the window opening/closing status predicted by the simulation, indoor/outdoor air condition, and air change rate were utilized (Equations (5)-(9)), and the results are shown in Figure 4. The influence of window opening and closing behavior on the cooling load was calculated using the amount of ventilation while the windows were opened and the indoor and outdoor air conditions at that time. We used Equations (5)-(9), the opening and closing conditions, the amount of ventilation, the indoor and outdoor dry bulb temperatures, and absolute humidity, which are the simulation results. In the case of the target unit, because the living room and kitchen are one space, the effects on the two spaces were analyzed together.
Q LR = (Q s,lr + Q l,lr )·V window,lr (8) where ρ is the density of air (1.2 kg/m 3 ), C p is the specific heat of air at constant pressure (1.01 kJ/kg·K), L is the latent heat of vaporization of water at 0 • C (2501 kJ/kg), V is the air volume (m 3 ), ACH is the air change rate (1/h), V window is the air volume exchanged through the window (m 3 ), Q is the cooling effect (W), Q s is the sensible heat cooling effect (W), and Q l is the latent heat cooling effect (W). The net cooling effect (net CE, blue bars) through natural ventilation during the window opening time was positively analyzed from a minimum of 124 kWh to a maximum of 356 kWh during the simulation period. In all cases, however, there were instances in which the cooling load was increased by window opening/closing. The increase in the cooling load (adverse CE, black dotted lines) by the window became lower as the AC model was applied and the set temperature increased. The change in adverse CE according to the set temperature was the largest for Case 2, which applied only the window operation model, and the smallest for Case 4, which determined AC status after determining the opening/closing of the window. In Case 2, an adverse CE was observed, which was as high as 105 kWh, when the set temperature was 24 • C. In Cases 4 and 5, by contrast, the window opening/closing behavior was favorable for natural cooling. This is because the conditioned air exchanged heat with the outside air, which had a probabilistically high temperature, because of the opening/closing of the window when the set temperature was low. When the set temperature was high, on the contrary, the opening/closing of the window had a positive natural ventilation cooling effect because it was highly likely that the outside air had a lower temperature than the inside air.
The results show that the cooling effect through natural ventilation cannot be interpreted by the air change rate through the window. In Case 2, the air change rate increased along with the natural cooling effect as the set temperature increased. However, in Cases 4 and 5, which also applied the AC behavior model, this tendency could not be applied. When the set temperatures were 26 and 28 • C in Case 4, the air change rate through the window was the same, but the resulting net CE showed a difference of 55 kWh. In the case of 24 • C of Case 4 and 28 • C of Case 5, the air change rate was also the same; however, the net CE of Case 5 with a higher set temperature was found to be 66 kWh higher. Table 5 summarizes the information on AC operation behavior using the simulation results by case. First, in Case 1, the daily average operation time of the fan was 24 h because the AC behavior model was not reflected, and its one-time operation time was found to be 168 h (7 days) because it was not turned off during the simulation period. For the coil, by contrast, as the set temperature increased, the behavior frequency increased as the duration of the cooling load decreased, but the one-time operation time and daily average operation time decreased as the cooling load decreased. In Case 2, which reflected the window opening/closing behavior, the daily average operation time of the fan can be obtained by subtracting the window opening time from 24 h because the fan is off when the window is on, and it is on when the window is off. In Case 3, the window was always closed, and the AC was operated according to the results predicted by RF. Therefore, the on/off frequency of the fan and coil was high; however, their one-time operation times were short when the set temperature was low. In Case 4, window opening/closing was predicted first, and AC on/off was predicted and reflected in the building energy simulation only when the window was closed. In this case, as the set temperature increased, the on/off frequency of the fan and coil decreased, but their one-time operation times increased. In Case 5, where the AC's on/off state was determined first, the same patterns that were also observed in Case 4 were observed. In Cases 3, 4, and 5, the coil operation time increased as the set temperature increased. This could be because the AC was operated over a long period of time to bear the instantaneously high load when it was turned on. In addition, in Cases 3, 4, and 5, which reflected the AC behavior model, the fan and the coil exhibited the same operation hours when the set temperatures were 24 and 26 • C. This means that the AC operation timing was the same as the timing of the cooling load occurrence. When the set temperature was 28 • C, however, the operation hours of the fan were longer than those of the coil because the AC could be operated even though the indoor temperature was lower than 28 • C.

Cooling Energy Usage
The difference in the behavior information according to the application scope of the behavior models discussed above eventually leads to the difference in the energy consumption. Figure 5 shows the energy consumption according to the set temperature. In all cases, the daily average energy consumption decreased as the set temperature increased. Each case, however, exhibited different trends. The case that exhibited the largest reduction in energy consumption because of the increase in the set temperature was Case 2, which reflected only the window opening/closing behavior. In other words, when the energy consumption was derived by applying only the window opening/closing behavior, the importance of the set temperature could be excessively emphasized. In Cases 3, 4, and 5, in which the AC operation status prediction model was applied, the change rate (∆) was lower than 1. When complex behavior was applied, higher reduction rates were observed compared to those in Case 3, in which only the AC behavior was applied, but lower reduction rates were shown compared to Case 1, in which no behavior was applied. In addition, the reduction tendency was completely linear when no behavior was applied. When behavior was applied, however, especially when complex behavior was applied, the reduction tendency was less linear. As for the energy consumption by case, the case in which no behavior model was applied exhibited the highest energy consumption, and the cases in which complex behavior models were applied showed lower energy consumption than those in which a single behavior model was applied, even though there were slight changes based on the set temperature.
For a more detailed examination, the hourly energy consumption is shown in Figure 6. First, in Case 3, in which AC on/off was determined only by the AC behavior model, the cooling load increased because of the heat gain caused by solar radiation and conduction, and the instantaneous load value was high when the AC was turned on because the window was always closed. Therefore, Case 3 had a higher peak value than the other cases. In Cases 4 and 5, in which both the window operation model and the AC behavior model were applied, the use of AC occurred intermittently compared to that in other cases. The cases also exhibited low peak values because of the natural cooling caused by the opening/closing of the window. When Cases 4 and 5 were compared, the peak value and energy consumption of the case in which the opening/closing of the window (Case 4) is prioritized were lower.
According to the simulation results, Case 5, which determines the use of AC first, exhibited a relatively low probability of opening the window because the AC operation time was extended. In other words, the difference in energy consumption caused by the behavior sequence was up to 7.5% (24 • C). Because our results are limited to those obtained over a week, the OB implementation sequence must be carefully considered if an analysis is conducted over the entire summer period. This behavior sequence will be affected by the propensity of the occupants in terms of energy consumption. The relative consumption levels of occupants need to be identified through energy bills, and then, methods for providing a behavior determination sequence must be examined in the future.

Conclusions and Future Work
In this study, the window opening/closing and AC usage behavior models of occupants were implemented and analyzed by linking a building energy analysis tool with a data analysis tool. The input and output of each tool were exchanged, and the process of updating the prediction results using a simulation and an algorithm was utilized for analyzing the OB and building energy consumption using real-time data. In other words, the collected building energy information was updated based on the optimization of operation using the energy demand prediction information.
The OB predicted and applied in this study was the window opening/closing and AC on/off behavior. When the research results according to the application scope and sequence of these two behaviors with interconnectivity were examined, the application of complex behavior was found to be important for research regarding the prediction of actual energy consumption. In the real world, usage of blinds and lighting, as well as windows and ACs, can be behaviors that can be interconnected. In addition, the behavior that occupants give priority to must also be considered during the analysis. This priority of behavior can be approached by linking it with the preferences of occupants in the future.
The fact that the set temperature, one of the main factors that determines the cooling energy consumption of a building, was assumed can be a limitation of this study. Unlike in the past, with the application of an inverter control to the AC, the set temperature was found to have a larger influence on energy consumption than usage time. In this study, the influence of the set temperature on the cooling effect by natural ventilation according to the application of behavior models and on the energy consumption of the AC, as well as its importance, was analyzed. In conclusion, research on the prediction of the set temperature in terms of OB needs to be supplemented in the future. In addition, as of now, we can only treat the results of previous examinations in case-by-case simulations of the matter. We plan to conduct a further demonstrative exploration into the timestep's effect in association with the behavior frequency.
Each behavior model may differ depending on the target country and region or, perhaps, depending on individuals. Therefore, the targets of this study were the relative meanings of the derived results rather than the quantitative meaning, parts to be considered in modeling behavior, and tool integration. The simulation results contribute to identifying the gap between reality and the existing simulation methods, but it is not possible to predict behavior with 100% accuracy. It will be possible, however, to minimize the gap by reflecting hidden influence factors and applying a better algorithm. Furthermore, it is expected that the results of this study can serve as a guide for those who study behavior.