Sensors (Mar 2022)

Using Stream Data Processing for Real-Time Occupancy Detection in Smart Buildings

  • Hamza Elkhoukhi,
  • Mohamed Bakhouya,
  • Driss El Ouadghiri,
  • Majdoulayne Hanifi

DOI
https://doi.org/10.3390/s22062371
Journal volume & issue
Vol. 22, no. 6
p. 2371

Abstract

Read online

Controlling active and passive systems in buildings with the aim of optimizing energy efficiency and maintaining occupants’ comfort is the major task of building management systems. However, most of these systems use a predefined configuration, which usually do not match the occupants’ preferences. Therefore, occupancy detection is imperative for energy use management mainly in residential and industrial buildings. Most works related to data-driven-based occupancy detection have used batch learning techniques, which need to store first and then train the data. It is not appropriate for a non-stationary environment. Therefore, this work sheds more light on the use of non-stationary machine learning techniques. To this end, three machine learning algorithms for stream data processing are presented, tested, and evaluated in term of accuracy and resources performance (i.e., RAM, CPU), with the aim of predicting the number of occupants in smart buildings. A platform architecture that integrates IoT technologies with stream machine learning is implemented and deployed. The experimental results show the effectiveness of this approach and illustrate that the number of occupants can be predicted with an accuracy of more than 83% and without resource wasting (i.e., time of CPU use varied between 0.04s and 3.85 ⋅ 10−11 GB of RAM could be exploited per hour).

Keywords