193:2 •Zakaria et al.
1 INTRODUCTION
Sleep is essential to one’s physical, emotional, and mental health. The National Sleep Foundation (NSF) recom-
mends between 7 to 9 hours as appropriate for adults to maintain general wellness [
21
]. However, sleep deciency
is a common public health problem, with approximately 50 to 70 million Americans suering from chronic sleep
disorders [
3
]. The risk factors associated with insucient sleep are performance and cognitive decits, and its
long-term eects are correlated with severe consequences such as obesity, stress, depression, and stroke [
3
,
21
].
Thus, accurately determining sleep habits remains a topic of immense interest.
The gold standard for measuring sleep is using polysomnography (PSG), a multichannel, multimodal approach
performed in controlled environments like a sleep clinic by trained technicians. These factors make PSG challeng-
ing to use for day-to-day sleep monitoring. More recently, low-cost sleep wearable devices (e.g., FitBit, Jawbone)
[
8
,
12
,
48
] have become popular for sleep monitoring. However, wearables demand behavioral change in users
putting on the device to bed, which can cause reluctance for some [
12
]. To overcome the challenges of continuous
sleep monitoring on a longitudinal basis, researchers have explored contactless methods using radio, and radar
signals [
22
,
47
]. However, the instrumentation of dedicated solutions in the building infrastructure limits their
support for scalability. Recently, using WiFi signals such as channel state (CSI) and backscatter information has
been proposed as viable solutions for sleep tracking [
59
]. This is made possible by both smartphones becoming
common across most income levels [
42
] and WiFi solutions becoming prevalent in public, institutional and
residential locations [
39
,
43
]. These solutions detect when the user has fallen asleep by checking for vibrations
and other signals. Unfortunately, they require custom hardware and are thus hard to deploy at scale, despite
yielding reasonable accuracy.
Smartphones have been used for sleep detection and monitoring. Prior approaches use smartphone activity as
a proxy for user activity and long periods of device inactivity to infer sleep periods. These approaches include
both client-side methods, based on monitoring screen activity [
9
], as well as network-side methods, based on
monitoring WiFi network activity of the device [
28
]. Since users tend to habitually use their mobile device before
they sleep and upon waking up, device activity, or lack thereof, is a feasible approach for detecting sleep periods
[
54
]. While prior work has shown the feasibility of such approaches, they are known to suer from signicant
errors, often more than an hour, when determining sleep time. These challenges motivate the need to develop an
accurate but generally accessible sensing approach that monitor users’ daily sleeping behavior without changing their
routines. Such functionality primarily contributes as a critical resource to the longitudinal requirement in almost
all sleep medicine studies, facilitating complete data collection of fundamental sleep measures in real-time.
In this paper, we present SleepMore, a practical approach to sleep monitoring using passive observations of a
user’s device WiFi activity. Our approach leverages the growing number of mobile devices owned by each user in
recent years (e.g., phone, tablet, laptop, e-readers) [
10
]. While smartphones remain the primary mobile device
for most users, they may use a combination of devices over the day (e.g., use a tablet to stream content prior to
bedtime and use the phone for other activities). We hypothesize that the higher errors of a single device sleep
detection approach [
9
,
28
] can be minimized by observing network activity from all the user’s devices to infer
sleep and wake times accurately.
SleepMore collects network activity information of all devices directly from the WiFi access points (AP) as
features. Then, it employs a two-pronged technique, running both a random forest machine learning classication
and moving average estimation models to predict sleep duration. Specically, it rst classies users in sleep or
awake states and computes condence intervals for these predictions using an innitesimal jackknife variance
estimation method. Outcomes with less than 95% condence level are noted as low condence predictions. From
applying a moving average, the most extended sequence of sleep states is observed as the user’s nocturnal sleep
period, with the start of the sequence denoting bedtime,
𝑇𝑠𝑙𝑒𝑒𝑝
, and the end of sequence denoting wake time,
Proc. ACM Interact. Mob. Wearable Ubiquitous Technol., Vol. 6, No. 4, Article 193. Publication date: December 2022.