Malmö University Publications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Non-Invasive People Counting in Smart Buildings: Employing Machine Learning with Binary PIR Sensors
Malmö University, Faculty of Technology and Society (TS), Department of Computer Science and Media Technology (DVMT). Malmö University, Internet of Things and People (IOTAP).ORCID iD: 0009-0006-2237-3010
Sony (Sweden).ORCID iD: 0000-0002-3265-7627
Malmö University, Faculty of Technology and Society (TS), Department of Computer Science and Media Technology (DVMT). Malmö University, Internet of Things and People (IOTAP).ORCID iD: 0000-0002-2763-8085
Malmö University, Faculty of Technology and Society (TS), Department of Computer Science and Media Technology (DVMT). Malmö University, Internet of Things and People (IOTAP).ORCID iD: 0000-0002-9471-8405
Show others and affiliations
2025 (English)In: Proceedings of the 14th International Conference on Agents and Artificial Intelligence: Volume 3: ICAART / [ed] Ana Paula Rocha; Luc Steels; H. Jaap van den Herik, INSTICC , 2025, p. 394-405Conference paper, Published paper (Refereed)
Abstract [en]

People counting in smart buildings is crucial for the efficient management of building systems such as energy, space allocation, efficiency, and occupant comfort. This study investigates the use of two non-invasive binary Passive Infrared (PIR) sensors for estimating the number of people in seven office rooms with different people counting intervals. Previous studies often relied on sensor fusion or more complex signal-based PIR sensors, which increased hardware costs, raised privacy concerns, and added installation complexity. Our approach addresses these limitations by utilizing fewer sensors, reducing hardware costs, and simplifying installation, making it scalable and flexible for different room configurations, while also ensuring high consideration of privacy. Additionally, binary PIR sensors are typically part of smart building systems, eliminating the need for additional sensors. We employed several machine learning methods to analyze motion detected by binary PIR sensors, imp roving the accuracy of people counting estimates. We analyzed important features by extracting event count, duration, and density from sensor data, along with features from the room’s shape, to estimate the number of people. We used different machine learning models for estimating the number of people. Models like Gradient Boosting, XGBoost, MLP, and LGBM demonstrated superior performance for their strong ability to handle complex, non-linear relationships in sensor data, high-dimensional datasets, and imbalanced data, which are common challenges in people counting tasks using PIR sensors. These models were evaluated using performance metrics such as accuracy and F1-score. Additionally, the results show that features such as passage events and the number of detected events, combined with machine learning algorithms, can achieve good accuracy and reliability in people counting.

Place, publisher, year, edition, pages
INSTICC , 2025. p. 394-405
Series
ICAART, ISSN 2184-3589, E-ISSN 2184-433X
Keywords [en]
Smart Buildings, Occupancy Information, People Counting, Binary PIR Sensors, Machine Learning, Non-Invasive Sensors
National Category
Signal Processing
Identifiers
URN: urn:nbn:se:mau:diva-75263DOI: 10.5220/0013141800003890Scopus ID: 2-s2.0-105001977209ISBN: 978-989-758-737-5 (print)OAI: oai:DiVA.org:mau-75263DiVA, id: diva2:1950522
Conference
17th International Conference on Agents and Artificial Intelligence, Porto, Portugal, February 23-25, 2025
Available from: 2025-04-08 Created: 2025-04-08 Last updated: 2025-10-15Bibliographically approved
In thesis
1. Occupancy information and people counting in smart buildings using noninvasive sensors and machine learning
Open this publication in new window or tab >>Occupancy information and people counting in smart buildings using noninvasive sensors and machine learning
2025 (English)Licentiate thesis, comprehensive summary (Other academic)
Abstract [en]

Occupancy information is a fundamental resource in smart building management, as it provides insight into how spaces are used and allows building systems to respond dynamically. It can capture different levels of detail, ranging from simple presence detection to more advanced forms such as activity recognition. Within this hierarchy, people counting represents a critical level of occupancy information, focusing on estimating the number of individuals in a given space. Accurate people counting enables a wide range of applications, including demand-driven Heating, Ventilation, and Air Conditioning (HVAC) control, optimization of space utilization, compliance with safety and security regulations, and the enhancement of occupant comfort and experience. 

Despite its importance, people counting with non-privacy-invasive sensors remains a challenging task.Vision-based and device-tracking approaches often achieve high accuracy but raise concerns over privacy, cost, and scalability, limiting their practical use. While non-privacy-invasive methods have been widely explored, they still lack low-cost and scalable solutions that leverage sensors already embedded in smart buildings. Binary PIR devices, for example, are common in building automation systems for presence detection, yet their potential for multi-person counting remains underexplored. No comprehensive review has mapped the role of binary and signal-based PIR sensors across different levels of occupancy information or examined their integration with machine learning in real-world settings. Previous studies have typically focused on controlled lab setups or dense multi-sensor deployments, which limit generalizability. In addition, contextual booking data has rarely been incorporated directly into occupancy estimation models. Finally, advanced temporal deep learning models such as Transformers, along with systematic analyses of historical window size and feature importance based on environmental data, are still underexplored, leaving open opportunities to optimize both modeling strategies and sensor deployment in real-world smart buildings.

 This thesis addresses these gaps through four studies. First, a systematic literature review synthesizes the role of binary and signal-based PIR sensors across different levels of occupancy information, identifying research gaps and motivating new approaches. Second, an event-based framework demonstrates that reliable occupancy estimates can be achieved using only two binary PIR sensors combined with machine learning. Third, a context-aware extension integrates PIR data with booking records, improving estimation accuracy and exposing patterns of underutilization, overbooking, and mismatches between planned and actual usage. Finally, a fixed-interval time-series framework evaluates advanced deep learning architectures, including RNNs, LSTMs, GRUs, CNN-LSTMs, and Transformers, showing how temporal context length and multimodal feature sets influence performance.

Taken together, these studies advance the state of the art by demonstrating that accurate, scalable, and privacy-preserving people counting does not require invasive or costly infrastructures. By leveraging PIR sensors already present in many buildings, enriched with contextual and environmental data and analyzed through modern machine learning techniques, smart buildings can achieve reliable occupancy estimation. Beyond technical performance, the findings highlight the broader operational value of occupancy information for efficient space management, energy savings, and improved occupant experience, while laying the foundation for next-generation intelligent building systems.

Place, publisher, year, edition, pages
Malmö University Press, 2025. p. 40
Series
Studies in Computer Science ; 38
Keywords
Occupancy estimation, People counting, PIR sensors, Machine learning, Deep learning, Time-series modeling, Data fusion, Smart buildings.
National Category
Computer Sciences
Identifiers
urn:nbn:se:mau:diva-80055 (URN)10.24834/isbn.9789178776788 (DOI)978-91-7877-677-1 (ISBN)978-91-7877-678-8 (ISBN)
Presentation
2025-10-24, C0315,, Niagara, Malmö University, 10:25 (English)
Opponent
Supervisors
Note

Paper IV in dissertation as manuscript and not included in the fulltext online

Available from: 2025-10-15 Created: 2025-10-15 Last updated: 2025-12-04Bibliographically approved

Open Access in DiVA

fulltext(2179 kB)149 downloads
File information
File name FULLTEXT01.pdfFile size 2179 kBChecksum SHA-512
daddfffe3b27d2bb24538dbed111301c4c6ea34bd98e5e94b6d38639d033153215c7821572f90b133c338e6ac0dc4f0481faff555da8905a1b1f83eabf96d5c6
Type fulltextMimetype application/pdf

Other links

Publisher's full textScopus

Authority records

Shokrollahi, AzadMalekian, RezaPersson, Jan A.Sarkheyli-Hägele, Arezoo

Search in DiVA

By author/editor
Shokrollahi, AzadKarlsson, FredrikMalekian, RezaPersson, Jan A.Sarkheyli-Hägele, Arezoo
By organisation
Department of Computer Science and Media Technology (DVMT)Internet of Things and People (IOTAP)
Signal Processing

Search outside of DiVA

GoogleGoogle Scholar
Total: 150 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

doi
isbn
urn-nbn

Altmetric score

doi
isbn
urn-nbn
Total: 482 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf