A Machine Learning Approach for Estimating Person Counts Using Anonymous WiFi Data in a University Library
Related Experiment Video
Updated: Jan 10, 2026

Author Spotlight: Addressing Technical and Subjective Challenges in Measuring Classroom Attention
Published on: December 15, 2023
Lucio Hernando-Cánovas1, Alejandro S Martínez-Sala1, Juan C Sánchez-Aarnoutse1
1Department of Information and Communication Technologies, Universidad Politécnica de Cartagena (UPCT), 30202 Cartagena, Spain.
Abstract:
Accurately estimating indoor occupancy is essential for managing building spaces and infrastructure, with applications ranging from ensuring safe distancing and adequate ventilation during health crises to optimizing energy consumption and resource allocation. However, no existing technology simultaneously achieves accuracy, low-cost, and privacy preservation in indoor occupancy measurement. This study investigates the use of existing WiFi infrastructure as a non-intrusive sensing system, where access points operate as soft sensors that passively collect anonymized connection metadata serving as proxies for human presence. The proposed approach was validated in a university library over eight months, training supervised machine learning regression models on WiFi data and comparing predictions against computer-vision ground truth. The best-performing models (SVR, Ridge, and MLP) consistently achieved R2 ≈ 0.95, with mean absolute errors of about 8 persons and relative errors (SMAPE) below 10% at medium-to-high occupancies. Tree-based ensemble models, particularly XGBoost, exhibited weaker generalization at extreme capacity ranges, likely due to data sparsity and sensitivity to hyperparameters. Importantly, no temporal degradation was observed across the 8-month horizon, confirming the long-term stability of the method. Overall, the results demonstrate that WiFi-based occupancy estimation offers a robust, cost-effective, and privacy-preserving solution for real-world deployments.
Related Concept Videos
Random Sampling Method
Mechanistic Models: Compartment Models in Individual and Population Analysis
Cluster Sampling Method
To choose a cluster sample, divide the population into clusters (groups) and then randomly select some of the clusters. All the members from these clusters are in the cluster sample. For example, if you randomly sample four departments from your...
Data Collection by Observations
An astronomer viewing the motion and brightness of stars in the sky and recording the data is an example of observational data collection. A botanist recording...

