American Journal of Applied Mathematics and Statistics
ISSN (Print): 2328-7306 ISSN (Online): 2328-7292 Website: Editor-in-chief: Mohamed Seddeek
Open Access
Journal Browser
American Journal of Applied Mathematics and Statistics. 2024, 12(1), 1-9
DOI: 10.12691/ajams-12-1-1
Open AccessArticle

Room Occupancy Prediction: Exploring the Power of Machine Learning and Temporal Insights

Siqi Mao1, Yaping Yuan2, Yinpu Li1, , Ziren Wang2, Yuanxin Yao1 and Yixin Kang1

1Department of Statistics, Rice University, Houston, USA

23Department of Statistics, Rice University, Houston, USA

Pub. Date: January 22, 2024

Cite this paper:
Siqi Mao, Yaping Yuan, Yinpu Li, Ziren Wang, Yuanxin Yao and Yixin Kang. Room Occupancy Prediction: Exploring the Power of Machine Learning and Temporal Insights. American Journal of Applied Mathematics and Statistics. 2024; 12(1):1-9. doi: 10.12691/ajams-12-1-1


Energy conservation in buildings is a paramount concern to combat greenhouse gas emissions and combat climate change. The efficient management of room occupancy, involving actions like lighting control and climate adjustment, is a pivotal strategy to curtail energy consumption. In contexts where surveillance technology isn't viable, non-intrusive sensors are employed to estimate room occupancy. In this study, we present a predictive framework for room occupancy that leverages a diverse set of machine learning models, with Random Forest consistently achieving the highest predictive accuracy. Notably, this dataset encompasses both temporal and spatial dimensions, revealing a wealth of information. Intriguingly, our framework demonstrates robust performance even in the absence of explicit temporal modeling. These findings underscore the remarkable predictive power of traditional machine learning models. The success can be attributed to the presence of feature redundancy, the simplicity of linear spatial and temporal patterns, and the advantages of high-frequency data sampling. While these results are compelling, it's essential to remain open to the possibility that explicitly modeling the temporal dimension could unlock deeper insights or further enhance predictive capabilities in specific scenarios. In summary, our research not only validates the effectiveness of our prediction framework for continuous and classification tasks but also underscores the potential for improvements through the inclusion of temporal aspects. The study highlights the promise of machine learning in shaping energy-efficient practices and room occupancy management.

room occupancy prediction classification support vector machine random forest XGBoost Internet-of-Things (IoT)

Creative CommonsThis work is licensed under a Creative Commons Attribution 4.0 International License. To view a copy of this license, visit


Figure of 5


[1]  Cao, Xiaodong, Xilei Dai, and Junjie Liu. "Building energy-consumption status worldwide and the state-of-the-art technologies for zero-energy buildings during the past decade." Energy and buildings 128 (2016): 198-213.
[2]  Huovila, Pekka, et al. "Buildings and climate change: Summary for decision-makers." (2009).
[3]  Jacobson, Mark Z. "Review of solutions to global warming, air pollution, and energy security." Energy & Environmental Science 2.2 (2009): 148-173.
[4]  Li, Nan, and Burcin Becerik-Gerber. "Performance-based evaluation of RFID-based indoor location sensing solutions for the built environment." Advanced Engineering Informatics 25.3 (2011): 535-546.
[5]  Wang, Wei, et al. "Occupancy prediction through Markov based feedback recurrent neural network (M-FRNN) algorithm with WiFi probe technology." Building and Environment 138 (2018): 160-170.
[6]  Tekler, Zeynep Duygu, Raymond Low, and Lucienne Blessing. "An alternative approach to monitor occupancy using bluetooth low energy technology in an office environment." Journal of Physics: Conference Series. Vol. 1343. No. 1. IOP Publishing, 2019.
[7]  Nassif, Nabil. "A robust CO2-based demand-controlled ventilation control strategy for multi-zone HVAC systems." Energy and buildings 45 (2012): 72-81.
[8]  Raykov, Yordan P., et al. "Predicting room occupancy with a single passive infrared (PIR) sensor through behavior extraction." Proceedings of the 2016 ACM international joint conference on pervasive and ubiquitous computing. 2016.
[9]  Shih, Oliver, and Anthony Rowe. "Occupancy estimation using ultrasonic chirps." Proceedings of the ACM/IEEE Sixth International Conference on Cyber-Physical Systems. 2015.
[10]  Uziel, Sebastian, et al. "Networked embedded acoustic processing system for smart building applications." 2013 Conference on Design and Architectures for Signal and Image Processing. IEEE, 2013.
[11]  Liu, Dixin, et al. "Measuring indoor occupancy in intelligent buildings using the fusion of vision sensors." Measurement Science and Technology 24.7 (2013): 074023.
[12]  Tekler, Zeynep Duygu, et al. "Plug-Mate: An IoT-based occupancy-driven plug load management system in smart buildings." Building and Environment 223 (2022): 109472.
[13]  Jordan, Michael I., and Tom M. Mitchell. "Machine learning: Trends, perspectives, and prospects." Science 349.6245 (2015): 255-260.
[14]  Li, Yinpu, Antonio R. Linero, and Jared Murray. "Adaptive conditional distribution estimation with Bayesian decision tree ensembles." Journal of the American Statistical Association 118.543 (2023): 2129-2142.
[15]  Linero, Antonio R., et al. "Bayesian survival tree ensembles with submodel shrinkage." Bayesian Analysis 17.3 (2022): 997-1020.
[16]  Chen, Diana Q., Si-Qi Mao, and Xu-Feng Niu. "Tests and classification methods in adaptive designs with applications." Journal of Applied Statistics 50.6 (2023): 1334-1357.
[17]  Mao, Siqi. Time Series and Machine Learning Models for Financial Markets Forecast. The Florida State University, 2022.
[18]  Kadouche, Rachid, Belkacem Chikhaoui, and Bessam Abdulrazak. "User’s behavior study for smart houses occupant prediction." annals of telecommunications-annales des télécommunications 65 (2010): 539-543.
[19]  Sangogboye, Fisayo Caleb, Kenan Imamovic, and Mikkel Baun Kjærgaard. "Improving occupancy presence prediction via multi-label classification." 2016 IEEE International Conference on Pervasive Computing and Communication Workshops (PerCom Workshops). IEEE, 2016.
[20]  Razavi, Rouzbeh, et al. "Occupancy detection of residential buildings using smart meter data: A large-scale study." Energy and Buildings 183 (2019): 195-208.
[21]  Park, Seunghyeon, et al. "Lstm-based office occupancy detection using smart plug data." 2021 International Conference on Information and Communication Technology Convergence (ICTC). IEEE, 2021.
[22]  Koklu, M., and K. Tutuncu. "Tree based classification methods for occupancy detection." IOP Conference Series: Materials Science and Engineering. Vol. 675. No. 1. IOP Publishing, 2019.
[23]  Li, Yinpu, et al. "Beyond Tides and Time: Machine Learning’s Triumph in Water Quality Forecasting." American Journal of Applied Mathematics and Statistics 11.3 (2023): 89-97.
[24]  Singh, Adarsh Pal, et al. "Machine learning-based occupancy estimation using multivariate sensor nodes." 2018 IEEE Globecom Workshops (GC Wkshps). IEEE, 2018.
[25]  Lundberg, Scott M., and Su-In Lee. "A unified approach to interpreting model predictions." Advances in neural information processing systems 30 (2017).