DeepApnea Deep Learning Based Sleep Apnea Detection Using Smartwatches
DeepApnea Deep Learning Based Sleep Apnea Detection Using Smartwatches
Abstract—Sleep apnea is a serious sleep disorder where pa- sleep monitoring and apnea detection. For example, with the
tients have multiple extended pauses in breath during sleep. wide deployment of wireless technology, many researchers [6]
Although some portable or contactless sleep apnea detection [7] [8] [9] leverage sound waves, WiFi or radio frequency
systems have been proposed, none of them can achieve fine-
grained sleep apnea detection without strict requirements on the signals to measure the chest movements during patients’ sleep.
device or environmental settings. To address this problem, we The chest movement due to breathing can be identified by
present DeepApnea, a deep learning based sleep apnea detection analysing the properties of the wireless signal, i.e., the channel
system that leverages patients’ wrist movement data collected by state information or the shift in carrier frequency. Although
smartwatches to identify different types of sleep apnea events (i.e., wireless technologies can extract breathing information for
central apneas, obstructive apneas, and hypopneas). Through a
clinical study, we identify some special characteristics associated monitoring sleep, they either require customized hardware,
with different types of sleep apnea captured by smartwatch. have strict environmental restrictions, and hence cannot be
However, there are many technical challenges such as how to largely deployed or cannot detect abnormal breathing signals
extract informative apnea features from the noisy data and (i.e., sleep apnea).
how to leverage features extracted from the multi-axis sensing Compared to these systems based on wireless technology,
data. To address these challenges, we first propose signal pre-
processing methods to filter the raw accelerometer (ACC) data, the wristband-based methods [10] [11] [12] and the geophone-
smoothing away noise while preserving the respiratory signal based method [13] [14] can measure the respiration signal
and potential features for identifying sleep apnea. Then, we with widely adopted wearable devices such as smartwatches
design a deep learning architecture to extract features from three or through multiple geophone sensors. However, they can
ACC axes collaboratively, where self attention and cross-axis only provide some coarse-grained sleep data such as the
correlation techniques are leveraged to improve the classification
accuracy. We have implemented DeepApnea on smartwatches respiratory rate, and they are not capable of detecting sleep
and performed a clinical study. Evaluation results demonstrate apnea. ApneaDet [15] is the first smartwatch-based system
that DeepApnea can significantly outperform existing work on which exploits the built-in sensors in smartwatch to detect
identifying different types of sleep apnea. sleep apnea. Specifically, it leverages the accelerometer (ACC)
Index Terms—Apnea Detection, Deep Learning, SmartWatch to monitor the wrist movements, then extracts respiratory
information from the ACC data for apnea detection. How-
I. I NTRODUCTION ever, it was designed for achieving binary classification, i.e.,
Sleep apnea is a serious sleep disorder where patients have differentiating sleep apnea from normal sleep, which limits its
multiple extended pauses in breath during sleep. Sleep apnea is general application.
linked to many diseases, such as high blood pressure, chronic There are three different kinds of respiratory events as-
heart failure, depression, obesity, and daytime fatigue [1]. It sociated with sleep apnea (i.e., central apneas, obstructive
is estimated that more than 22 million Americans suffer from apneas, hypopneas), and distinguishing these different kinds of
sleep apnea [2]. Although the US government spends more respiratory events is very important. This is because different
than 150 billion on sleep apnea [3] every year, about 75% of respiratory events have different etiology (e.g., central apneas
people with moderate and severe apnea are still undiagnosed are caused by the brain stopping the breathing process, while
[4]. obstructive apneas are caused by local collapsibility of the
To diagnose sleep apnea, the commonly used method is upper airway) and they have links to different diseases. Thus,
the polysomnography (PSG) test, which requires the subjects identifying all three types of sleep apnea can help clinicians
to wear more than 20 wired sensors, including the pulse provide better diagnosis and treatment [5].
oximeter, pressure transducer, thermocouple, and electrodes There are many technical challenges for identifying three
placed at different parts of the body. It is uncomfortable for different types of sleep apnea. First, the wrist movement gener-
many patients and can even affect their sleep and the diagnosis ated by breath or lung movement is very subtle. The raw ACC
results [5]. Moreover, such in-lab PSG test is expensive, data recorded by smartwatch contains a large amount of noise,
cumbersome, and time-consuming, and thus many potential which makes it harder to extract the respiratory information.
patients cannot be timely diagnosed, endangering their health. Second, existing machine learning features used for binary
In order to overcome these shortcomings of the PSG test, classification do not work well for multi-classification, i.e.,
many contactless or wearable systems have been proposed for identifying three types of sleep apnea. This is because it is
Authorized licensed use limited to: SHANDONG UNIVERSITY. Downloaded on November 12,2024 at 14:27:50 UTC from IEEE Xplore. Restrictions apply.
979-8-3503-2603-1/24/$31.00 ©2024 IEEE 206
2024 IEEE International Conference on Pervasive Computing and Communications (PerCom)
1 1
relatively easier to differentiate normal sleep from abnormal 1
Central Apnea
Amplitude( U)
Amplitude( U)
Amplitude( U)
Obstructive Apnea
Hypopnea
0 0
0
sleep apnea, but it is much harder to identify different kinds of
1 0 10 20 30 40 50 60 1 0 10 20 30 40 50 60 1 0 10 20 30 40 50 60
sleep apnea events. Third, based on the sleeping posture and Time(s) Time(s) Time(s)
the wrist position, the three ACC axes may carry different (a) hypopnea (b) obstructive apnea (c) central apnea
amount of respiratory information. How to leverage such
Fig. 1. The airflow (nasal pressure)
information to identify sleep apnea remains as a challenge. 3.7 1.1 7.8
ax(m/s2)
ax(m/s2)
7.7
ax(m/s2)
3.9 1.3
4.0 7.6
smartwatch-based system named DeepApnea, which can detect 4.1
0 10 20 30 40 50 60
1.4
0 10 20 30 40 50 60 0 10 20 30 40 50 60
Time(s) Time(s) Time(s)
different types of sleep apnea. We first propose signal prepro-
(a) hypopnea (b) obstructive apnea (c) central apnea
cessing methods to filter the raw ACC data, smoothing away
noise while preserving the respiratory signal and potential Fig. 2. The raw ACC data (x axis), which corresponds to the subfigures in
features for identifying sleep apnea. Then, we design a deep Fig. 1.
learning architecture to extract features from three ACC axes
collaboratively. Specifically, we apply self attention technique Fig. 2 shows the raw ACC data collected using smart-
to accentuate more significant features and apply cross-axis watches. In general, respiration leads to the periodic subtle
correlation technique to exploit the correlations among dif- movement of the chest, abdomen, arms and wrists and these
ferent axes. The extracted deep features and the correlation movements can be recorded by the ACC in smartwatch.
information are merged through aggregated classification to Fig. 2(a) shows the ACC data corresponding to Fig. 1(a).
further improve the classification accuracy. Between the 12th and 36th seconds, labeled by the technician,
The main contributions of the paper are as follows. a hypopnea happens. During this time, the respiration becomes
• To the best of our knowledge, this is the first work to
shallow, so the amplitude change of airflow will decrease
identify three types of sleep apnea (hypopneas, obstruc- and slimier change is reflected on the ACC data. Fig. 2(b)
tive apneas, central apneas) only using wrist-worn ACC (corresponding to Fig. 1(b)) presents the ACC data during
data. an obstructive apnea. In obstructive apnea, after a respiratory
• We propose signal preprocessing techniques to extract
blockage for several seconds, the subject is likely to make
accurate representations of the respiratory signal from the one or several intense breaths before returning to normal
raw noisy ACC data. breathing, leading to the signal spike around the 42th seconds.
• We design a deep learning model to automatically extract
In Fig. 2(c), since the subject holds breath during central
informative apnea features from three ACC axes and apnea, the ACC data are flat and there is no intense spike
wisely fuse these features to improve performance. after this holding.
• We have implemented DeepApnea on smartwatches and
performed clinical study. Evaluation results show that
'