Submitted:
22 June 2023
Posted:
26 June 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
- We introduce OPTnet, a Transformer-based multi-sensor building occupancy prediction network to learn an effective fused representation.
- To predict accurate occupancy, we process two-week real operating sensor data from a multi-zone office building, including building occupancy, indoor environmental conditions, and HVAC operations.
- Through experimental analysis and comparison, we found that the OPTnet method outperformed existing algorithms (e.g., Decision Tree (DT), Long Short-Term Memory networks (LSTM), Multi-Layer Perceptron (MLP)).
- Considering the long or short occupancy prediction applications, we provide a comprehensive analysis and comparison of diverse time horizons to highlight the importance of choosing the suitable time horizon.
2. Methods
2.1. Data collection
2.2. Data preparation
2.3. Algorithms
2.3.1. Decision Tree
2.3.2. Long Short-Term Memory networks
2.3.3. Multi-Layer Perceptron
2.3.4. Occupancy Prediction Transformer network
2.4. Performance Evaluation
3. Experiments
3.1. Experimental environment
3.2. Experimental data
- The calendar information: We collected the sensor data from 9:00 to 19:00 during the five working days (from Monday to Friday) and weekends (Saturday and Sunday).
- The occupancy information: We captured videos from our cameras. Then, we analyzed and estimated occupancy presence (1 or 0) in each room using advanced artificial intelligence technologies. The time resolution is 1 min. The duty ratios of occupancy in multi-zones are shown in Table 2. The duty ratios are various, showing that the practical dataset is diverse and complete.
- The indoor environment information: We collected the indoor temperature and relative humidity data, directly affecting the occupants’ thermal comfort. The temperature and relative humidity data can be used to predict future occupancy.
- The HVAC control information: Our HVAC system employs FCUs for control. The control signs (FCU temperature feedback, FCU control mode, FCU on/off feedback, and FCU fan feedback) are considered for occupancy prediction.
3.3. Experimental parameters
- The Adam optimizer trained the LSTM and OPTnet model for 20 epochs.
- The learning rate is .
- The batch size is 4.
- The numbers of LSTM and TOPTnet layers are 6.
- The number of fully-connected layers is 5.
- The dropout of the last layer is 0.5.
- MSE loss function.
4. Results and Discussion
4.1. OPTnet V.S. (LSTM,MLP,DT)
- Occupancy patterns in buildings can exhibit long-range dependencies, where the presence or absence of occupants in one area can impact the occupancy in other areas. The self-attention mechanism in the OPTnet allows it to capture such long-range dependencies effectively. In contrast, DT, LSTM, and MLP struggle to model these dependencies explicitly.
- Occupancy patterns often have temporal dynamics, where the presence or absence of occupants at one time influences the future occupancy. The OPTnet, with its self-attention mechanism, can capture these temporal dynamics by attending to relevant past occupancy information at each time step. On the other hand, DT typically considers each time step independently, LSTM focuses on short-term dependencies, and MLP lacks inherent mechanisms for capturing temporal dynamics.
- OPTnet can use parallel computation, making them highly scalable and efficient, especially when dealing with large datasets. This scalability allows the Transformer model to handle complex occupancy prediction tasks efficiently. In comparison, DT, LSTM, and MLP may need to improve scalability and computational efficiency, mainly when dealing with longer sequences or large datasets.
- OPTnet has shown robustness to noisy data due to its ability to attend to relevant information and suppress noise during the attention mechanism. This robustness can benefit occupancy prediction tasks, where the data may contain missing or noisy observations. DT, LSTM, and MLP are more sensitive to noisy data and require additional preprocessing or regularization techniques to handle such scenarios.
4.2. Time horizons V.S. Performance
5. Conclusion
Funding
Conflicts of Interest
References
- Bazazzadeh, H.; Pilechiha, P.; Nadolny, A.; Mahdavinejad, M.; Hashemi safaei, S.s. The impact assessment of climate change on building energy consumption in Poland. Energies 2021, 14, 4084. [CrossRef]
- Kavari, G.; Tahani, M.; Mirhosseini, M. Wind shear effect on aerodynamic performance and energy production of horizontal axis wind turbines with developing blade element momentum theory. Journal of Cleaner Production 2019, 219, 368–376. [CrossRef]
- Kabbaj, O.A.; Péan, L.M.; Masson, J.B.; Marhic, B.; Delahoche, L. Occupancy states forecasting with a hidden Markov model for incomplete data, exploiting daily periodicity. Energy and Buildings 2023, 287, 112985. [CrossRef]
- Li, Z.; Wang, P.; Zhang, J.; Mu, S. A strategy of improving indoor air temperature prediction in HVAC system based on multivariate transfer entropy. Building and Environment 2022, 219, 109164. [CrossRef]
- Idahosa, L.O.; Akotey, J.O. A social constructionist approach to managing HVAC energy consumption using social norms–A randomised field experiment. Energy Policy 2021, 154, 112293. [CrossRef]
- Jung, S.; Jeoung, J.; Hong, T. Occupant-centered real-time control of indoor temperature using deep learning algorithms. Building and Environment 2022, 208, 108633. [CrossRef]
- Xing, T.; Sun, K.; Zhao, Q. MITP-Net: A deep-learning framework for short-term indoor temperature predictions in multi-zone buildings. Building and Environment 2023, 239, 110388. doi:https://doi.org/10.1016/j.buildenv.2023.110388. [CrossRef]
- Li, W.; Zhang, J.; Zhao, T.; Ren, J. Experimental study of an indoor temperature fuzzy control method for thermal comfort and energy saving using wristband device. Building and Environment 2021, 187, 107432. [CrossRef]
- Che, W.W.; Tso, C.Y.; Sun, L.; Ip, D.Y.; Lee, H.; Chao, C.Y.; Lau, A.K. Energy consumption, indoor thermal comfort and air quality in a commercial office with retrofitted heat, ventilation and air conditioning (HVAC) system. Energy and Buildings 2019, 201, 202–215. [CrossRef]
- Yan, D.; Hong, T.; Dong, B.; Mahdavi, A.; D’Oca, S.; Gaetani, I.; Feng, X. IEA EBC Annex 66: Definition and simulation of occupant behavior in buildings. Energy and Buildings 2017, 156, 258–270. [CrossRef]
- Park, J.Y.; Ouf, M.M.; Gunay, B.; Peng, Y.; O’Brien, W.; Kjærgaard, M.B.; Nagy, Z. A critical review of field implementations of occupant-centric building controls. Building and Environment 2019, 165, 106351. [CrossRef]
- Dai, X.; Liu, J.; Zhang, X. A review of studies applying machine learning models to predict occupancy and window-opening behaviours in smart buildings. Energy and Buildings 2020, 223, 110159. [CrossRef]
- Wang, W.; Wang, J.; Chen, J.; Huang, G.; Guo, X. Multi-zone outdoor air coordination through Wi-Fi probe-based occupancy sensing. Energy and Buildings 2018, 159, 495–507. [CrossRef]
- Wang, C.; Pattawi, K.; Lee, H. Energy saving impact of occupancy-driven thermostat for residential buildings. Energy and Buildings 2020, 211, 109791. [CrossRef]
- Jin, Y.; Yan, D.; Chong, A.; Dong, B.; An, J. Building occupancy forecasting: A systematical and critical review. Energy and Buildings 2021, 251, 111345. [CrossRef]
- Sun, K.; Ma, X.; Liu, P.; Zhao, Q. MPSN: Motion-aware Pseudo-Siamese Network for indoor video head detection in buildings. Building and Environment 2022, 222, 109354. doi:https://doi.org/10.1016/j.buildenv.2022.109354. [CrossRef]
- Choi, H.; Um, C.Y.; Kang, K.; Kim, H.; Kim, T. Review of vision-based occupant information sensing systems for occupant-centric control. Building and Environment 2021, 203, 108064. doi:https://doi.org/10.1016/j.buildenv.2021.108064. [CrossRef]
- Esrafilian-Najafabadi, M.; Haghighat, F. Impact of occupancy prediction models on building HVAC control system performance: Application of machine learning techniques. Energy and Buildings 2022, 257, 111808. [CrossRef]
- Esrafilian-Najafabadi, M.; Haghighat, F. Impact of predictor variables on the performance of future occupancy prediction: Feature selection using genetic algorithms and machine learning. Building and Environment 2022, 219, 109152. [CrossRef]
- Sun, K.; Zhao, Q.; Zou, J. A review of building occupancy measurement systems. Energy and Buildings 2020, 216, 109965. doi:https://doi.org/10.1016/j.enbuild.2020.109965. [CrossRef]
- Candanedo, L.M.; Feldheim, V.; Deramaix, D. A methodology based on Hidden Markov Models for occupancy detection and a case study in a low energy residential building. Energy and Buildings 2017, 148, 327–341. [CrossRef]
- Gunay, H.B.; O’Brien, W.; Beausoleil-Morrison, I. Development of an occupancy learning algorithm for terminal heating and cooling units. Building and Environment 2015, 93, 71–85. [CrossRef]
- Sun, Y.; Hao, W.; Chen, Y.; Liu, B. Data-driven occupant-behavior analytics for residential buildings. Energy 2020, 206, 118100. [CrossRef]
- Jiefan, G.; Peng, X.; Zhihong, P.; Yongbao, C.; Ying, J.; Zhe, C. Extracting typical occupancy data of different buildings from mobile positioning data. Energy and buildings 2018, 180, 135–145. [CrossRef]
- Razavi, R.; Gharipour, A.; Fleury, M.; Akpan, I.J. Occupancy detection of residential buildings using smart meter data: A large-scale study. Energy and Buildings 2019, 183, 195–208. [CrossRef]
- Jain, R.K.; Smith, K.M.; Culligan, P.J.; Taylor, J.E. Forecasting energy consumption of multi-family residential buildings using support vector regression: Investigating the impact of temporal and spatial monitoring granularity on performance accuracy. Applied Energy 2014, 123, 168–178. [CrossRef]
- D’Oca, S.; Hong, T. Occupancy schedules learning process through a data mining framework. Energy and Buildings 2015, 88, 395–408. [CrossRef]
- Chen, Y.T.; Piedad Jr, E.; Kuo, C.C. Energy consumption load forecasting using a level-based random forest classifier. Symmetry 2019, 11, 956. [CrossRef]
- Chen, Y.T.; Piedad Jr, E.; Kuo, C.C. Energy consumption load forecasting using a level-based random forest classifier. Symmetry 2019, 11, 956. [CrossRef]
- Benezeth, Y.; Laurent, H.; Emile, B.; Rosenberger, C. Towards a sensor for detecting human presence and characterizing activity. Energy and Buildings 2011, 43, 305–314. [CrossRef]
- Yang, J.; Santamouris, M.; Lee, S.E. Review of occupancy sensing systems and occupancy modeling methodologies for the application in institutional buildings. Energy and Buildings 2016, 121, 344–349. [CrossRef]
- Wang, W.; Chen, J.; Song, X. Modeling and predicting occupancy profile in office space with a Wi-Fi probe-based Dynamic Markov Time-Window Inference approach. Building and Environment 2017, 124, 130–142. [CrossRef]
- Xing, T.; Yan, H.; Sun, K.; Wang, Y.; Wang, X.; Zhao, Q. Honeycomb: An open-source distributed system for smart buildings. Patterns 2022, 3, 100605. [CrossRef]
- Xing, T.; Sun, K.; Zhao, Q. MITP-Net: A deep-learning framework for short-term indoor temperature predictions in multi-zone buildings. Building and Environment 2023, 239, 110388. [CrossRef]
- D’Oca, S.; Hong, T. Occupancy schedules learning process through a data mining framework. Energy and Buildings 2015, 88, 395–408. [CrossRef]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural computation 1997, 9, 1735–1780.
- Amadou Boukary, N.; others. A comparison of time series forecasting learning algorithms on the task of predicting event timing. PhD thesis, 2016.
- Noriega, L. Multilayer perceptron tutorial. School of Computing. Staffordshire University 2005, 4, 5.
- Reed, R.; MarksII, R.J. Neural smithing: supervised learning in feedforward artificial neural networks; Mit Press, 1999.
- Esrafilian-Najafabadi, M.; Haghighat, F. Impact of occupancy prediction models on building HVAC control system performance: Application of machine learning techniques. Energy and Buildings 2022, 257, 111808. [CrossRef]



| Device | Brand/Model | Parameter details |
| FCU | FP-102 and FP-136 | Low: |
| Medium: | ||
| High: | ||
| ITS | HL(HaiLin)-SRT2R1 | Range: to |
| Accuracy: | ||
| OTS | HL(HaiLin)-SOT6R4 | Range: to |
| Accuracy: | ||
| Camera | TC471-HD | Range: |
| Resolution: | ||
| 30fps | ||
| Nano | Nvidia Jetson Nano-B01 | GPU: 128 NVIDIA CUDA cores |
| RAM: 4G |
| Weeks | Zone 1 | Zone 2 | Zone 4 | Zone 5 | Zone 6 | Zone 7 |
| Week 1 | 0.314 | 0.504 | 0.919 | 0.405 | 0.898 | 0.611 |
| Weeke2 | 0.084 | 0.854 | 0.816 | 0.353 | 0.898 | 0.256 |
| Time horizon | Week-1 | Week-2 | ||||||
|---|---|---|---|---|---|---|---|---|
| Zone 1 | ||||||||
| DT | LSTM | MLP | OPTnet | DT | LSTM | MLP | OPTnet | |
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 2 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 4 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 5 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 6 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 7 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins |
| Time horizon | Week-1 | Week-2 | ||||||
|---|---|---|---|---|---|---|---|---|
| Zone 1 | ||||||||
| DT | LSTM | MLP | OPTnet | DT | LSTM | MLP | OPTnet | |
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 2 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 4 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 5 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 6 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins | ||||||||
| Zone 7 | ||||||||
| 1 min | ||||||||
| 2 mins | ||||||||
| 5 mins | ||||||||
| 10 mins | ||||||||
| 20 mins | ||||||||
| 30 mins |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
