Improving Indoor Occupancy Prediction using Graph Neural Networks and Positional Encodings
Preprint
- 16 March 2026
- preprint
- Published by Elsevier in SSRN Electronic Journal
Abstract
Managing residential energy efficiently without compromising comfort is challenging. The key difficulty lies in predicting occupancy in real time. Intelligent control strategies are widely used for residential energy management. As sensors become increasingly common in homes, occupancy prediction has gained significant attention as one such approach. Traditional occupancy prediction methods analyze temporal patterns within individual rooms but overlook spatial connectivity. This lack limits the accuracy of occupancy-forecasting methods. Incorporating spatial information could improve prediction accuracy and enhance the effectiveness of occupancy-based energy management. One promising approach to represent such spatial information is through the use of embeddings, which encode spatial connectivity in a data-driven vector space. Another complementary method is to represent the building layout as a graph, where nodes correspond to rooms and edges capture spatial connectivity. In this study, we evaluate multiple occupancy prediction architectures, including Convolutional Neural Networks (CNN) and Long Short-Term Memory networks (LSTM). These models are further enhanced by positional encoding (PE) and Graph Neural Networks (GNN) that explicitly encode spatial connectivity among rooms. Results indicate that spatial embeddings improve predictive performance, with graph-based methods providing the highest performance. Among all models, the hybrid GNN + PE + CNN yielded the best overall performance. However, considering practical heating control scenarios, balancing comfort, energy savings, and computational complexity, we found that LSTM + PE emerges as the most suitable choice.Keywords
This publication has 14 references indexed in Scilit:
- Unsupervised domain adaptation with and without access to source data for estimating occupancy and recognizing activities in smart buildingsBuilding and Environment, 2023
- Semisupervised Learning-Based Occupancy Estimation for Real-Time Energy Management Using Ambient DataIEEE Internet of Things Journal, 2023
- Selective reinforcement graph mining approach for smart building energy and occupant comfort optimizationBuilding and Environment, 2022
- Device-Free Human Motion Detection Using Single Link WiFi Channel Measurements for Building Energy ManagementIEEE Embedded Systems Letters, 2022
- A framework for occupancy prediction based on image information fusion and machine learningBuilding and Environment, 2022
- AI-Based Home Energy Management System Considering Energy Efficiency and Resident SatisfactionIEEE Internet of Things Journal, 2021
- Rule-based scheduling of air conditioning using occupancy forecastingEnergy and AI, 2020
- Real-time occupancy prediction in a large exhibition hall using deep learning approachEnergy and Buildings, 2019
- Case study of an advanced integrated comfort control algorithm with cooling, ventilation, and humidification systems based on occupancy statusBuilding and Environment, 2018
- Development of an occupancy prediction model using indoor environmental data based on machine learning techniquesBuilding and Environment, 2016