arrow
Return

Developing window behavior models for residential buildings using XGBoost algorithm

delete2019-12-01
delete113
delete
OA
AI
H
Hao Mo
H
Hejiang Sun *
刘俊杰 cover
刘俊杰 (Junjie Liu)
S
Shen Wei *
DOI:10.1016/j.enbuild.2019.109564delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Buildings account for over 32% of total society energy consumption, and to make buildings more energy efficient dynamic building performance simulation has been widely adopted during the buildings' design to help select most appropriate HVAC (Heating Ventilation and Air Conditioning) systems. Due to the lack of good behavioral models in current simulation packages, many researchers have tried to develop useful behavioral models to improve simulation accuracy, including window behavior models, using field data collected from real buildings. During this work, many mathematical and machine learning methods have been used, and some level of prediction accuracy has been achieved. XGBoost is a recently introduced machine learning algorithm, which has been proven as very powerful in modeling complicated processes in other research fields. In this study, this algorithm has been adopted to model and predict occupant window behavior, aiming to further improve the modeling accuracy from a globally accepted modeling approach, namely, Logistic Regression Analysis. Field data in terms of both occupant window behavior and relevant influential factors were collected from real residential buildings during transitional seasons. Both XGBoost and Logistic Regression Analysis were used to build window behavior models, after a feature selection work, and their prediction performances on an independent dataset were compared. The comparison revealed that XGBoost has solid advantages in modeling occupant window behavior, over Logistic Regression Analysis, and it is expecting that the same finding would be obtained for other behavioral types, such as blind control and air-conditioner operation. (C) 2019 Elsevier B.V. All rights reserved.
Keywords:
Behavior modeling
Window behavior
Logistics regression
XGBoost algorithm
Residential buildings

AI Summary

Brief Overview

In December 2019, Mo, Hao; Sun, Hejiang; Liu, Junjie; and Wei, Shen published the article "Developing window behavior models for residential buildings using XGBoost algorithm" online in ENERGY AND BUILDINGS. The study developed a resident window-opening behavior prediction model based on the XGBoost algorithm, addressing the challenge of the "design–measured performance gap" in building energy consumption simulations caused by unreliable human behavior. By integrating real residential data such as indoor and outdoor temperature and humidity, carbon dioxide concentration, and time, and optimizing feature selection, the model achieved high-precision dynamic predictions of when residents open or close windows. This significantly enhanced the credibility of building energy simulation results, providing a practical new method for the design of smart buildings and low-carbon residences.

Research Abstract

Building operational energy consumption accounts for over 30% of total societal energy consumption. However, the seemingly simple behavior of whether a resident opens a window greatly affects air conditioning loads and indoor air quality. Traditional simulation software often assumes "idealized operation," resulting in design energy consumption that is 20%–40% higher than actual consumption, a phenomenon known as the "performance gap." Previous mainstream approaches used statistical models such as logistic regression to predict window-opening behavior. While structurally simple, these models achieved an average accuracy of only about 60% and struggled to capture the complex decision-making logic of people under different weather conditions, time slots, and indoor environments. This study introduced XGBoost (a machine learning algorithm capable of mining nonlinear patterns) into residential window-opening modeling for the first time. Using 136 days of measured data for model training, the model achieved a prediction accuracy of 81% in independent validation, an improvement of over 20 percentage points compared to traditional methods. These results not only bring building energy consumption simulations closer to real-life conditions but also lay a technical foundation for subsequent modeling of other autonomous behaviors such as air conditioning usage and curtain adjustment.

Background

Accurately predicting residents' window-opening behavior is a key step in improving the reliability of building energy simulations. Its core advantage is that it can significantly reduce the risk of energy estimation errors during the design phase without hardware modifications. It is widely applied in green housing, retrofits of existing buildings, and carbon neutrality planning. However, people are not thermostats—at the same temperature, some open windows due to heat, while others close them to avoid drafts. The choice between morning ventilation and afternoon rain prevention differs substantially. This highly personalized and context-dependent behavior makes it difficult for traditional physical models or simple statistical methods to provide a comprehensive account. Strategy A (such as fixed temperature threshold methods) allows for uniform settings but leads to frequent misjudgments in winter and summer. Strategy B (such as logistic regression) incorporates multiple factors but assumes a linear superposition of variable effects, failing to characterize critical effects where the combined triggers of "high temperature + high humidity + high CO₂" lead to window opening. Consequently, constructing a behavior prediction model that reflects real residential logic while possessing engineering scalability remains a core bottleneck for the practical deployment of smart buildings.

Key Highlights

  1. Training the computer to recognize human behavior with real-life data: Daily parameters such as temperature, humidity, air quality, and time in real residences were collected to allow the algorithm to autonomously learn patterns from 136 days of resident behavior. This avoids rule-setting based on expert intuition, aligns more closely with the actual habits of thousands of households, and achieves a prediction accuracy of 81%, which is more than 20 percentage points higher than traditional methods, equivalent to being correct in one additional judgment out of every five.
  2. Looking beyond "heat and cold" to understand "stuffy conditions": The model simultaneously monitors health indicators such as indoor carbon dioxide concentration and PM2.5, effectively functioning as a "breathing sensor" for windows. It can identify behaviors where windows are opened to relieve stuffiness rather than simply to lower the temperature. The model demonstrates particularly stable performance during the transitional spring and autumn seasons.
  3. Lightweight deployment compatible with existing design tools: The model is small in size and fast in computation, allowing it to be directly embedded in mainstream building simulation software (such as EnergyPlus) without additional sensors or network upgrades. It is analogous to upgrading the smart chip in an old calculator, promoting industry upgrading at low cost.

Summary and Outlook

Based on XGBoost machine learning technology, this study excavated the nonlinear correlation mechanism between multi-source environmental parameters and window-opening behavior, achieving high-robustness prediction of residential dynamic window-opening behavior. The technology possesses the dual advantages of high accuracy (81%) and strong generalizability (applicability across climate zones). The results show that in spring and autumn transitional seasons, an F1-score of 0.81 was obtained, and in naturally ventilated southern residences, an overall state accuracy of 82.6% was achieved. This study not only resolves the long-standing industry issue of "behavioral distortion" in building energy simulations but, through the methodological innovation of "data-driven behavior modeling," provides a transferable technical paradigm for the intelligent control of HVAC systems, low-carbon renovation of old residential communities, and carbon emission inference for city-scale building clusters. The research team is currently extending the work to modeling the coordinated control of air conditioning start/stop and shading, with future potential to support millions of households in achieving a new vision of smart living characterized by on-demand energy supply and comfort-oriented carbon reduction.

A model based on Gauss Distribution for predicting window behavior in building
err2019-02-01
err66
errOAAI
errPan, Song; Han, Yiye; Wei, Shen; Wei, Yixua; Xia, Liang; Xie, Lang; Kong, Xiangrui; Yu, Wei
errShare
errSave
A holistic investigation into the seasonal and temporal variations of window opening behavior in residential buildings in Chongqing, China
err2021-01-01
err30
PREAI
errDu, Chenqiu; Yu, Wei; Ma, Yanjiong; Cai, Qicong; Li, Baizhan; Li, Nan; Wang, Wenbo; Yao, Runming
errShare
errSave
errShare
errSave
errShare
errSave
Control algorithms for dynamic windows for residential buildings
err2015-12-01
err38
errOAAI
errFirlag, Szymon; Yazdanian, Mehrangiz; Curcija, Charlie; Kohler, Christian; Vidanovic, Simon; Hart, Robert; Czarnecki, Stephen
errShare
errSave
errShare
errSave
Exploring the relationship between window operation behavior and thermal and air quality factors: A case study of UK residential buildings
err2022-05-01
err16
errOAAI
errWang, Yan; Tahmasebi, Farhang; Cooper, Elizabeth; Stamp, Samuel; Chalabi, Zaid; Burman, Esfandiar; Mumovic, Dejan
errShare
errSave
Comparison of different window behavior modeling approaches during transition season in Beijing, China
err2019-06-01
err42
PREAI
errWei, Yixuan; Yu, Haowei; Pan, Song; Xia, Liang; Xie, Jingchao; Wang, Xinru; Wu, Jinshu; Zhang, Weijie; Li, Qingping
errShare
errSave

Journal

Energy and Buildings cover
Energy and Buildings
IF:
7.1
Papers:
1.6W
Citations:
9.0W

Organization

Tianjin University cover
Tianjin University
Scholars:
9.3K
Papers: 2.7K
Citations: 4.7W
U
University of London
Scholars:
1.7K
Papers: 763
Citations: 14.7W
Cited Papers

Cited Papers

Ranking of interventions to reduce dwelling overheating during heat waves
err2012-12-01
err215
PREAI
errPorritt, S. M.; Cropper, P. C.; Shao, L.; Goodier, C. I.
errShare
errSave
Probability of occupant operation of windows during transition seasons in office buildings
err2015-01-01
err84
PREAI
errLi, Nan; Li, Juncheng; Fan, Ruijuan; Jia, Hongyuan
errShare
errSave
errShare
errSave
errShare
errSave
Democracy and the European Court of Justice
err2011-01-18
err0
errOAAI
errG. Federico Mancini; David T. Keeling
errShare
errSave
researcher View more