Generalizability of Learning-based Occupancy Detection in Residential Buildings (extended version)

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Farjadnia, Mahsa, Eshkofti, Katayoun, Apell, Albin, Hjalmarsson, Tilde, Johansson, Karl Henrik, Fontan, Angela, Molinari, Marco
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915975347044352
author Farjadnia, Mahsa
Eshkofti, Katayoun
Apell, Albin
Hjalmarsson, Tilde
Johansson, Karl Henrik
Fontan, Angela
Molinari, Marco
author_facet Farjadnia, Mahsa
Eshkofti, Katayoun
Apell, Albin
Hjalmarsson, Tilde
Johansson, Karl Henrik
Fontan, Angela
Molinari, Marco
contents This paper investigates non-intrusive occupancy detection methods for residential buildings using environmental sensor data from the KTH Live-In Lab in Stockholm, Sweden. Three machine learning approaches, namely, logistic regression (LR), support vector machines (SVM), and long short-term memory (LSTM) network enhanced with an attention mechanism, are evaluated in terms of predictive performance and computational complexity. The analysis considers the trade-off between sensor availability (investment cost) and prediction accuracy in real applications, as well as the models' cross-apartment generalizability. Hyperparameters for both the SVM and LSTM models are optimized using Bayesian optimization. All three models are evaluated on data collected from apartments not used during training, and on data generated from a calibrated digital model of the testbed. Results show that all models achieve comparable performance on the same-apartment test data (accuracy of approximately 0.83, F1 score of approximately 0.86). When assessed on cross-apartment data, the LSTM model demonstrates the strongest generalization capability (accuracy of 0.84, F1 score of 0.85), while LR provides a competitive, low-complexity alternative for applications that do not require cross-apartment generalization.
format Preprint
id arxiv_https___arxiv_org_abs_2604_14841
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Generalizability of Learning-based Occupancy Detection in Residential Buildings (extended version)
Farjadnia, Mahsa
Eshkofti, Katayoun
Apell, Albin
Hjalmarsson, Tilde
Johansson, Karl Henrik
Fontan, Angela
Molinari, Marco
Systems and Control
This paper investigates non-intrusive occupancy detection methods for residential buildings using environmental sensor data from the KTH Live-In Lab in Stockholm, Sweden. Three machine learning approaches, namely, logistic regression (LR), support vector machines (SVM), and long short-term memory (LSTM) network enhanced with an attention mechanism, are evaluated in terms of predictive performance and computational complexity. The analysis considers the trade-off between sensor availability (investment cost) and prediction accuracy in real applications, as well as the models' cross-apartment generalizability. Hyperparameters for both the SVM and LSTM models are optimized using Bayesian optimization. All three models are evaluated on data collected from apartments not used during training, and on data generated from a calibrated digital model of the testbed. Results show that all models achieve comparable performance on the same-apartment test data (accuracy of approximately 0.83, F1 score of approximately 0.86). When assessed on cross-apartment data, the LSTM model demonstrates the strongest generalization capability (accuracy of 0.84, F1 score of 0.85), while LR provides a competitive, low-complexity alternative for applications that do not require cross-apartment generalization.
title Generalizability of Learning-based Occupancy Detection in Residential Buildings (extended version)
topic Systems and Control
url https://arxiv.org/abs/2604.14841