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

Sleep Activity Recognition and Characterization from Multi-Source Passively Sensed Data

María Martínez-García, Fernando Moreno-Pino, Pablo M. Olmos, Antonio Artés-RodríguezarXiv 2023 · DOI

Abstract: Accurate sleep monitoring is vital for health assessment, yet traditional methods like polysomnography are intrusive and expensive. This study proposes a novel approach to Sleep Activity Recognition (SAR) using passive data from ubiquitous smartphone sensors. By employing a Heterogeneous Hidden Markov Model (HHMM), the system integrates continuous signals (movement, light) and discrete events (app usage, steps) to estimate sleep patterns. Evaluated against wearable device data from 41 subjects, the model achieved a mean accuracy of 83.5%, rising to 87.8% on high-quality data days. These results highlight the potential for scalable, non-intrusive behavioral health monitoring using existing consumer technology.

1. Introduction

Sleep is a fundamental pillar of health, yet objective measurement outside clinical settings remains challenging. While wearables provide a middle ground between subjective diaries and expensive lab tests, they are not universally adopted. Smartphones, however, are nearly ubiquitous and contain a suite of sensors capable of capturing behavioral proxies. This paper addresses the challenge of using "messy" smartphone data—often characterized by noise and missing values—to reliably characterize sleep patterns without requiring specialized hardware.

2. System Architecture and Methodology

The proposed pipeline transforms raw sensor data into actionable sleep indicators through four primary stages: data acquisition, preprocessing, HHMM-based prediction, and post-processing.

System pipeline for sleep activity recognition and characterization.

The core of this methodology is the Heterogeneous Hidden Markov Model (HHMM). Unlike standard HMMs that typically handle uniform data types, the HHMM jointly models Gaussian distributions for continuous signals (light and movement) and Bernoulli distributions for binary events (app usage and step detection). To enhance interpretability, a semi-supervised learning approach was adopted, where specific latent states were constrained based on active phone usage, guiding the model to accurately distinguish between "awake" and "asleep" states.

3. Data Acquisition and Preprocessing

The study utilized data from 41 subjects over several months, resulting in over 2,200 days of data. Five primary streams were collected: actigraphy (movement), light exposure, app usage, screen unlocks, and step counts.

Visualization of multi-source daily and intra-day sensor data streams.

Data was sampled at 10-minute intervals. Continuous signals were normalized, while discrete events were binarized. As shown in the data sequences, smartphone data is often intermittent; the HHMM architecture is specifically designed to handle these gaps by utilizing posterior conditional probabilities to infer the most likely state during periods of missing observations.

4. Key Results and Insights

The HHMM significantly outperformed baseline models like K-means and Gaussian Mixture Models (GMM).

  • Accuracy: The model achieved 83.5% mean accuracy, which improved to 87.8% on "clean" days with complete sensor reporting.
  • Sensitivity: The system demonstrated high sensitivity (81-88%) in identifying actual sleep periods compared to wearable ground truth.
  • Temporal Precision: The model was particularly effective at detecting wake-up times (Mean Absolute Error of ~29 minutes), likely due to the "phone-first" habit where users interact with their devices shortly after waking. Sleep onset detection was less precise (~51 minutes MAE) as users may remain inactive in bed before falling asleep.

Beyond simple duration, the model allowed for the extraction of the "Circadian Midpoint," enabling the calculation of "Social Jetlag"—the shift in sleep timing between work and free days—which serves as a critical marker for metabolic and mental health risks.

5. Limitations and Future Work

A primary limitation is the difficulty in distinguishing "Time in Bed" from "Time Asleep." Without physiological sensors, the model cannot easily detect Sleep Onset Latency (the time taken to fall asleep in the dark). Future research will focus on personalized post-processing, incorporating individual work schedules and habits to refine sleep onset estimations and further improve the model's robustness across diverse user populations.

Summary updated

BibTeX
@misc{martinezgarcia2023sleep,
  author = {María Martínez-García and Fernando Moreno-Pino and Pablo M. Olmos and Antonio Artés-Rodríguez},
  title = {{Sleep Activity Recognition and Characterization from Multi-Source Passively Sensed Data}},
  year = {2023},
  eprint = {2301.10156},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.10156},
}
Figure