Unobtrusive Sleep Monitoring Using Smartphones
Total Page:16
File Type:pdf, Size:1020Kb
Unobtrusive Sleep Monitoring using Smartphones Zhenyu Chenyz∗∗, Mu Liny, Fanglin Cheny, Nicholas D. Laneyy, Giuseppe Cardonezz Rui Wangy, Tianxing Liy, Yiqiang Chenz∗∗, Tanzeem Choudhury∗, Andrew T. Campbelly yDartmouth College, zChinese Academy of Sciences, yyMicrosoft Research Asia, ∗Cornell University zzUniversity of Bologna, ∗∗Beijing Key Laboratory of Mobile Computing and Pervasive Device Abstract—How we feel is greatly influenced by how well we These technologies use embedded accelerometers and EEG sleep. Emerging quantified-self apps and wearable devices allow sensors; for example, the Zeo headband uses a combination people to measure and keep track of sleep duration, patterns of inertial sensors and EEG; the Jawbone wristband and Fitbit and quality. However, these approaches are intrusive, placing a burden on the users to modify their daily sleep related habits are based on embedded accelerometers. Many of these devices in order to gain sleep data; for example, users have to wear interact with a smartphone over local bluetooth radio for cumbersome devices (e.g., a headband) or inform the app when storage, communication with the cloud and data visualization. they go to sleep and wake up. In this paper, we present a radically However, these approaches are intrusive, cumbersome to use, different approach for measuring sleep duration based on a novel and place a burden on users to modify their daily sleep related best effort sleep (BES) model. BES infers sleep using smartphones in a completely unobtrusive way – that is, the user is completely habits in order to gain sleep data; for example, users have to removed from the monitoring process and does not interact with wear devices (e.g., a headband) and in some cases inform the phone beyond normal user behavior. A sensor-based inference the app when they go to sleep (e.g., the Jawbone needs the algorithm predicts sleep duration by exploiting a collection of user to remember to toggle the device to sleep mode or the soft hints that tie sleep duration to various smartphone usage readings are of little use) and wake up – as a result, the user patterns (e.g., the time and length of smartphone usage or recharge events) and environmental observations (e.g., prolonged has to wear the device (e.g., Zeo can irritate the skin and cause silence and darkness). We perform quantitative and qualitative headaches) and make sure the monitoring setup is correct (e.g., comparisons between two smartphone only approaches that we the phone and device are communicating, the correct switches developed (i.e., BES model and a sleep-with-the-phone approach) are toggled). and two popular commercial wearable systems (i.e., the Zeo In this paper, we present a radically different approach headband and Jawbone wristband). Results from our one-week 8-person study look very promising and show that the BES for measuring sleep duration based on a novel best effort model can accurately infer sleep duration (± 42 minutes) using a sleep (BES) model. BES infers sleep using smartphones in completely “hands off” approach that can cope with the natural a completely unobtrusive way – that is, the user is completely variation in users’ sleep routines and environments. removed from the monitoring process and does not interact Index Terms—mHealth; activity recognition; sleep monitoring; with the phone beyond normal user behavior. The BES model smartphone sensing uses a sensor-based inference algorithm on the phone to pre- dict sleep duration by exploiting a collection of soft hints that I. INTRODUCTION tie sleep duration to various smartphone usage patterns (e.g., Sleep quality and quantity impacts personal health. For the time and length of smartphone usage or recharge events) example, poor long-term sleep patterns can lead to a wide and environmental observations (e.g., prolonged silence and range of health related problems, such as, high-blood pressure, darkness). high stress, anxiety, diabetes and depression. Quality of sleep BES presents a novel approach to sleep monitoring not can be evaluated partially via physiological measurements, proposed before. Because BES is a self contained smartphone such as respiration rhythm, alternation between deep and rapid app it has a number of advantages over other approaches: eye movement (REM) sleep phases, and partially via personal First, it is unobtrusive and “hands off” for the user – reducing self-evaluation [1]. The optimal way to monitor sleep quan- potential usability issues. Next, the user does not have to wear tity and quality is through polysomnographic studies, which a device nor interact with the phone in any special manner use a polysomnogram to monitor sleep. A polysomnogram to compute sleep duration. Third, and importantly, it offers monitors: brain waves using electroencephalography (EEG), a vision of very large scale sleep monitoring well beyond eye movements using electrooculography, muscle contractions what is feasible with wearables such as the Zeo and Jawbone. using electrocardiography, blood oxygen levels using pulse The wide-scale adoption of smartphone’s in the population oximetry, snoring using a microphone, and finally, restlessness make it now feasible to conduct very large studies simply using a camera. The complexity and cost of polysomnograms by downloading an app to your phone. Clearly, there are make them impractical for large-scale long-term (i.e., weeks, disadvantages of BES over these commercial wearable sleep months) sleep monitoring. monitoring systems. The Zeo and Jawbone, for example, can Recently, a number of commercial wearable devices (e.g., measure sleep quality and patterns to a varying degree. In Zeo [2], Fitbit [3] and Jawbone [12]) have emerged that contrast, BES only estimates sleep duration, which is, however, make monitoring sleep more accessible to the general public. a coarse indicator of sleep quality; that is, sleep duration correlates to wellbeing [4] and is influenced by a wide range as the morning arrives or because users wake up and turn of health conditions such as affective disorders, depression, the lights on in their house. anxiety, hypertension, heart diseases and diabetes. Schlosberg • Phone Usage features. Phone usage statistics is another and Benjamin report in [5] that heavily stressed people, for rich source for predicting users’ sleep duration. For example, can suffer from a significant reduction in their total instance, when people go to bed they typically lock the amount of sleep, take longer to fall asleep and wake more phone (or by default the phone will do this after a period frequently during the night. on non-use) and start the recharging process. Or they We present the design, implementation and evaluation of the will choose to simply turn the phone off. Therefore, the BES model, which is implemented as part of a broader mobile duration of phone lock (F2), phone recharging (F3) and health app called BeWell [6], [7]. We evaluate four different phone off (F4) are also good statistical estimators of sleep approaches to sleep measurement: (i) our BES model; (ii) our duration. In BES, we implement a background service “sleep-with-the-phone” (SWP) model; (iii) the Jawbone wrist- using existing Android APIs that can automatically record band; and (iv) the Zeo headband. We conduct an experimental this duration data. study with 8 participants who use all four methods for one • Stationary feature (F5). Typically, a user’s phone is in week – that is, each participant in the study wears the Jawbone a completely static state during sleeping hours. We say and Zeo devices, and, as the name suggests, sleeps with one typically because the user may use their phone during the phone next to their pillow (namely, the SWP smartphone) over night but in general it is mostly in a static state. Therefore 7 nights. Note, that the BES and SWP models represent pure the duration while the phone is completely still often smartphone approaches with no external device interaction. In correlates with the sleep period of the user. Again, these contrast, the Zeo and Jawbone are commercial products and are not deterministic features but the “stationarity” of the require the user to wear devices and interact with the phone phone represents a rough approximation of sleep duration. to collect, store and visualize the sleep data. Some users may wake up and perform a few activities This paper is structured as follows. First, we detail the before picking up their phone; others may pick it up as design of the BES model in Section II. Following this, we soon as they wake – for example, to turn off the phone describe the comparison sleep monitoring systems in Section alarm clock. Under BES, the stationarity of the phone III. We present results from our study in Section IV that are is robustly recognized using the Jigsaw [15] activity then discussed in Section V. Section VI describes related work. classification pipeline that processes inertial sensor data Finally, we present some concluding remarks in Section VII. (e.g., the accelerometer). • Silence feature (F6). Similarly, the phone experiences II. BEST EFFORT SLEEP (BES) MODEL “quiet” at night and the duration of this context correlates In the following section, we describe the BES model that with sleep. Again, there are many exceptions that make is studied in this paper and currently implemented as part of this an approximation – the noise around people vary with the BeWell [6] smartphone app available in Google Play [8]. lifestyle and living conditions. BES uses the microphone The BES model unobtrusively estimates user sleep duration by and the extraction of discriminative audio features to leveraging a series of phone usage and user context statistics classify “quiet” and “noisy” acoustic environments. This collected by BeWell. Specifically, BES keeps track on a daily process is performed by the SoundSense [14] audio basis of the total duration of phone-lock, phone-off, phone- classification pipeline, embedded in the BeWell App.