NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

WiSleep: Scalable Sleep Monitoring and Analytics Using Passive WiFi Sensing

Priyanka Mary Mammen, Camellia Zakaria, Tergel Molom-Ochir, Amee Trivedi, Prashant J. Shenoy, Rajesh Balan

Abstract

Sleep deprivation is a pervasive public health issue, particularly in high-stress environments like university campuses. Traditional monitoring methods, such as polysomnography or wearable devices, face significant barriers to large-scale adoption due to cost, user burden, and privacy concerns. This paper presents WiSleep, a network-centric system that leverages existing WiFi infrastructure to monitor sleep patterns passively. By analyzing smartphone WiFi connection logs through an unsupervised ensemble of Bayesian change point detection models, WiSleep achieves approximately 88% accuracy in sleep duration estimation. The system is designed for massive scalability, capable of processing data for tens of thousands of users on a single commodity server without requiring any user-side software or hardware.

Introduction

Monitoring sleep at a population level is a critical challenge for public health. While clinical methods like polysomnography provide high-fidelity data, they are impractical for long-term, large-scale studies. Consumer-grade wearables and smartphone applications have gained popularity but often suffer from "adoption pushback"—users frequently forget to charge or wear devices, and many are wary of the battery drain and privacy implications of background-running apps.

WiSleep addresses these gaps by shifting the sensing burden from the user to the network infrastructure. By utilizing the smartphone as a proxy for the user’s state, WiSleep provides a zero-effort, privacy-preserving solution that is ready for deployment across existing enterprise WiFi networks.

Comparison of WiSleep with existing sleep monitoring approaches.

Methodology: The Network-Centric Approach

The fundamental premise of WiSleep is that a user’s interaction with their smartphone—and consequently the phone's interaction with the WiFi network—serves as a reliable indicator of their wakefulness. When a user is active, the device generates frequent "association" events with WiFi Access Points (APs). Conversely, during sleep, the device typically enters a power-saving state, resulting in only sporadic "heartbeat" or background maintenance events.

Bayesian Change Point Detection

To translate these noisy network logs into meaningful sleep data, WiSleep employs an unsupervised ensemble model based on Bayesian Change Point Detection. The system assumes that WiFi event rates follow a Poisson process and seeks to identify two primary transitions:

  1. Sleep Onset: A significant drop in network activity, typically following the cessation of phone use.
  2. Wake-up: A significant rise in network activity as the user resumes phone use.
WiFi event patterns illustrating the transition between phone use and sleep states.

The Ensemble Model

Recognizing that user habits vary widely, WiSleep utilizes an ensemble of three sub-models to ensure robustness:

  • Location-based Model: Filters AP metadata to prioritize events occurring in residential areas (e.g., dorms).
  • Normal Prior Model: Optimized for users with regular, consistent sleep schedules.
  • Hierarchical Prior Model: Designed to adapt to the highly irregular sleep patterns common among students.

These models are integrated using Bayesian Model Averaging (BMA) and weighted via the Watanabe-Akaike Information Criterion (WAIC). This statistical framework allows the system to filter out "ping-pong" effects (devices jumping between APs) and background noise like automatic software updates.

Evaluation and Results

The performance of WiSleep was validated using a ground-truth dataset of 20 participants over one month, comparing WiFi-inferred data against Fitbit logs and manual sleep diaries.

  • Accuracy and Precision: WiSleep achieved an average accuracy of 88.50% and an F-score of 0.84, significantly outperforming traditional rule-based heuristics (0.46).
  • Timing Precision: The system demonstrated a mean error of 60 minutes for sleep onset and 39 minutes for wake-up time. While individual errors exist, the system is highly effective for identifying population-level trends.
  • Scalability: In stress tests using synthetic traces of 20,000 users, WiSleep processed one user's daily data in roughly 4 seconds. A single server can manage the analytics for a large university campus within a 24-hour cycle.

Discussion and Limitations

While WiSleep offers a scalable alternative to traditional monitoring, it relies on the smartphone as a proxy. If a user leaves their phone in a different room or uses non-mobile devices (like a smart TV) for late-night activity, the accuracy of the proxy decreases. Furthermore, while the system excels at detecting sleep duration, it cannot currently differentiate between sleep stages (e.g., REM vs. deep sleep) or detect medical conditions like apnea.

Future work aims to incorporate more granular network usage patterns to detect stress and mental health indicators, such as "doomscrolling" versus passive background updates, providing a more holistic view of user well-being.

Conclusion

WiSleep demonstrates that coarse-grained network logs, when processed with sophisticated statistical models, can provide valuable insights into population-level sleep health. By leveraging existing infrastructure, WiSleep offers a path toward large-scale wellness monitoring that is both cost-effective and minimally intrusive.

Summary updated

BibTeX
@misc{mammen2021wisleep,
  author = {Priyanka Mary Mammen and Camellia Zakaria and Tergel Molom-Ochir and Amee Trivedi and Prashant J. Shenoy and Rajesh Balan},
  title = {{WiSleep: Scalable Sleep Monitoring and Analytics Using Passive WiFi Sensing}},
  year = {2021},
  eprint = {2102.03690},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.03690},
}
Figure