1. Introduction
Actigraphy, the use of wrist-worn tri-axial accelerometers to track movement patterns, is a technology that has been used for over 25 years in clinical sleep research [
1]. Actigraphic data can be used to impute sleep and wake states, and are most valid when detecting waking up during sleep using algorithms that are variations on threshold moving averages (i.e., when the activity is of sufficient length or duration at night to indicate an awakening) [
1,
2]. While actigraphy is not a perfect representation of sleep [
3], and can both over- and underestimate sleep depending on the circumstances [
4], it has several advantages over polysomnography, the criterion standard for the determination of sleep and wakefulness. Notably, as compared to polysomnography, actigraphy is less invasive, less expensive, more amenable to long duration (weeks to months) recording, and can yield insight into daytime behavior.
Given the advantages of actigraphy, these devices have been used in several large studies to examine longitudinal changes in behavior (e.g., UK Biobank [
5], Osteoporotic Fractures in Men [
6], Study of Osteoporotic Fractures [
7]). As actigraphs are marketed as water-resistant or waterproof, most studies direct participants to continuously wear the actigraph, including during periods of bathing, swimming, or washing dishes. Despite these instructions, many individuals will remove the actigraph for intermittent durations and at random times. This becomes problematic as most of the available actigraphs do not have automatic off-wrist detection, and off-wrist periods would be automatically scored as continuous episodes of “sleep” due to the prolonged lack of activity. As such, it has been proposed that actigraphic records should be manually inspected to exclude off-wrist periods [
8,
9,
10]. These periods are visually distinct from sleep as they have no movement, while sleep is characterized by sporadic, brief periods of movement. While manual inspection is appropriate and useful in smaller data sets, the ability to collect weeks of actigraphy data from thousands of individuals precludes this type of hand-curation. To facilitate the accurate actigraphy data analysis of large data sets, the goal of this study was to investigate the degree to which off-wrist and inactive periods could be automatically identified. As off-wrist periods are typically longer than inactive periods, our a priori assumption was that a fixed duration threshold could adequately discriminate inactive and off-wrist periods. Given the different collection frequencies that are often used for actigraphy data, we also examined the impact of collection frequency, as well as the use of different devices, on the performance of automated off-wrist detection.
2. Results
We examined records from 125 individuals who wore one of three different devices for approximately two weeks (
Table 1). Our participants were young (mean ± sd; 26.5 ± 5.32) and mostly male (61.1%). Out of 125 data files, 74.4% (93 files) contained off-wrist data, as identified by hand curation. From the Motionlogger AMI, 71.7% (71 files) contained off-wrist periods. For the Actiwatch 2, 88.5% of the files contained off-wrist data (all of the 120 s epoch data, 16 of the 60 s epoch data). Further specifications of inactivity and off-wrist periods can be found in
Table 1.
On both devices, the lengths of inactive events, defined as episodes of consecutive zeroes that are not considered off-wrist periods, were shorter compared to off-wrist periods (
Table 1,
Figure 1). For example, as is visualized in
Figure 1, 99% of inactive events are shorter than 24 (Motionlogger) or 44 min (Actiwatch 2). These same thresholds would capture only 83% (Motionlogger) and 48% (Actiwatch 2) of the off-wrist periods. To confirm the initial findings, the divided Motionlogger dataset revealed similar thresholds—99% of inactivity data were shorter than 24 min (training), which would capture only 83% of the off-wrist periods. The thresholds as determined in the training dataset would result in capturing 98% of inactivity data and 81% of off-wrist periods in the testing dataset.
To compare the performances of different thresholds for discriminating off-wrist from inactive, we used ROC analysis. True positives were defined as inactive periods correctly identified as inactive, while true negatives were defined as off-wrist periods correctly identified as off-wrist. These are plotted for different threshold lengths (
Figure 2). The optimal threshold (i.e., one equally balancing the accurate detection of both inactive and off-wrist) for the Motionlogger was 3 min (Youden’s Index (
J) = 0.37), while the optimal threshold for the Actiwatch 2 was 14 min (
J = 0.89). There were similar optimal thresholds for the train (3 min,
J = 0.37) and test (4 min,
J = 0.43) datasets as for the two different interval collection periods in the Actiwatch 2 data—18 min (60 s intervals,
J = 0.92) and 16 min (120 s intervals,
J = 0.81).
One could argue, however, that it is more important to minimize the misclassification of intervals of inactivity as off-wrist, as such a misclassification would lead to either the exclusion or imputation of valid data. Therefore, we also calculated the optimum threshold based on the maximization of sensitivity (
Table 2). The greater capture of all of the inactive episodes (i.e., higher sensitivity) results in a larger cut-off point, which increases the number of off-wrist periods misclassified as inactive (i.e., lower specificity).
3. Discussion
Using a temporal threshold, periods during which an actigraph is not worn can be discriminated from periods when individuals are wearing the actigraph but are in a quiescent state. The accuracy of this discrimination appears to be dependent on the collection interval of the actigraph. Using a 30 s data bin (Motionlogger), a threshold of 11 min accurately classified 95% of the inactive data (i.e., less than 5% of the inactive data are longer than 11 min) and 35% of the off-wrist data (i.e., 65% of the off-wrist data are shorter than 11 min). This was confirmed by analysis conducted on the training and testing datasets. With a 60 s data bin (Actiwatch 2), a threshold of 20 min accurately classified 95% of the inactive data and 92% of the off-wrist data. With a 120 s data bin (Actiwatch 2), a threshold of 30 min accurately classified 95% of the inactive data and 66% of the off-wrist data. Moving the threshold to longer durations increases the capture of more of the inactive data, but at a cost of losing the accurate classification of off-wrist periods. For example, moving the Motionlogger (30 s bin) threshold to 24 min will capture an additional 4% of the inactive data, but at a cost of the misclassification of 18% more of the off-wrist data. As such, our suggestion is to use the 95% accuracy thresholds to delineate data as off-wrist. There are many off-wrist periods lasting shorter periods than these thresholds, but these are not discriminable from inactive periods through the use of a threshold alone. Whether imputation of these short periods impacts actigraphy-based metrics of sleep and circadian rhythms remains open for further study.
The current analyses focus on inactive periods, defined as a consecutive string of zeroes. The presence of an activity count higher than zero does not necessitate wakefulness [
11], nor is a consecutive string of zeroes necessarily sleep. While many articles have been written on the best way to impute sleep from movement [
12], this is not the goal of the current analysis. The inactive data that we identified in these actigraph records occur at all times of day and night. The studies in which these individuals participated had a common set of instructions to maintain a regular sleep schedule at night. It would, therefore, be likely that most of the inactive periods occurring at night are consistent with sleep. The inactive periods during the daytime or evening, however, could be brief naps or periods of limited physical behavior (e.g., sitting on a couch). Whether these inactive periods represent sleep or quiescent behavior, however, is not relevant to the current analysis, which was focused on separating valid data from data collected during times at which the device was not being worn.
There were many more inactive events of similar length recorded by the Motionlogger than Actiwatch 2. There were also many more off-wrist events recorded by the Motionlogger, but these were typically shorter than those recorded by the Actiwatch 2. Since we were not able to examine the same recording frequencies on both devices, we cannot determine the exact cause of these differences, but they are most likely due to differences in the sensitivity of the devices and differences in the collection frequency (
Table 1). Future studies should consider whether both or either of these two variables have a significant impact on differentiating off-wrist from inactive periods.
Another limitation of this study is that we examined healthy, young individuals with generally good sleep quality. We cannot conclude that the use of a threshold developed in this population would provide universally similar results in different populations, such as individuals with insomnia, older individuals, or individuals with musculoskeletal issues. Further studies in these types of specific populations are necessary. Our study does indicate, however, that in healthy young individuals, off-wrist periods can be separated from inactivity data, based on a simple temporal threshold. Higher thresholds result in greater accuracy in terms of capturing inactive periods, but will miss many off-wrist periods. Depending on the goal of the analysis, a threshold can be chosen to favor inactivity inclusion or accurate off-wrist detection. In cases in which hand scoring is not feasible, to increase automated scoring accuracy, this analysis could be applied to datasets as a pre-processing step.
4. Materials and Methods
We examined actigraphy data from 125 healthy, young individuals who had participated in a variety of in-laboratory protocols at different times of year. All participants had signed informed consent prior to any experimental procedures. All methods conform to the principals laid out in the Declaration of Helsinki. Actigraphy data were collected at home and with the instructions that individuals should wear their actigraph continuously for at least seven days and maintain a regular sleep–wake schedule. These data were collected with two different devices, the Motionlogger (n = 99, Ambulatory Monitoring Inc., Ardsley, NY, USA) and Actiwatch 2 (n = 26, Philips, Bend, OR, USA). Data were collected in 30 s epochs with the Motionlogger and at two different epoch lengths with the Actiwatch 2 (60 s epochs, n = 20; 120 s epochs, n = 6). During screening, all participants also completed the Pittsburgh Sleep Quality Index (PSQI); the entry criterion was the absence of significant sleep disruption (PSQI < 5).
To mark off-wrist and inactivity periods, ActionW (Motionlogger; v.2.7, Ambulatory Monitoring Inc, Ardsley, NY, USA) and Actiware (Actiwatch 2; v.5, Respironics, Bend, OR, USA) were used to visualize data. Off-wrist periods were visually defined by a sudden drop in activity to zero, followed by prolonged periods of zero activity counts without any activity bouts (
Figure 3). Periods of inactivity were marked by a sudden drop in activity, followed by periods in which activity counts of zero were interrupted by low-density, low-activity bouts, and concluded by a steep increase in activity (
Figure 3). Light data (wrist-recorded illumination in lux) were used as supplemental information, as these data did not consistently discriminate inactivity from off-wrist periods. The sleep-detection algorithms are insufficient to discriminate inactivity from sleep and, as such, we chose to not delineate our inactive periods into the categories of “sleep,” “nap,” or “inactive”. Actigraphy data were manually scored epoch-by-epoch on an individual level for all recorded days.
R-studio (version 3.6.0, Rstudio, Boston, MA, USA) was used for data analysis. For automated data processing, the length of all strings of consecutive bouts in which activity = 0 were calculated. For example, if there were 15 consecutive 30 s epochs in which activity = 0, this would be counted as one event with a length of 7.5 min. Events were further defined as being valid or “off-wrist” by visual marking. Data were both plotted with cumulative frequency percentage and analyzed with receiver operating characteristic (ROC) curves. The performance of ROC curves was determined by calculating Youden’s Index (sensitivity + specificity − 1), such that sensitivity is determined by true positives (inactive accurately classified as inactive) divided by all positives (number of episodes below that threshold) and specificity is true negatives (off-wrist accurately classified as off-wrist) divided by all negatives (number of episodes above that threshold) [
13]. Data for the ROC analyses were calculated within participants and then averaged across participants. To validate findings, the complete analysis was repeated on a training subset (74.7%,
n = 74) of the Motionlogger dataset (
n = 99). Thresholds determined in this training subset were tested in the remaining dataset (testing, 25.3%,
n = 25).
Author Contributions
Conceptualization, R.L. and J.M.Z.; methodology, R.L. and J.M.Z.; formal analysis: R.L.; original draft preparation, R.L.; writing, review and editing, J.M.Z.; visualization, R.L.; supervision, J.M.Z.; funding acquisition, J.M.Z. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the U.S. Department of Defense (NNo).
Acknowledgments
We thank all participants and Yvonne Quevedo, Ann Wang, and Kelly Tanner for assistance in data collection.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Ancoli-Israel, S.; Cole, R.; Alessi, C.; Chambers, M.; Moorcroft, W.; Pollak, C. The role of actigraphy in the study of sleep and circadian rhythms. Sleep 2003, 26, 342–392. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Sadeh, A.; Acebo, C. The role of actigraphy in sleep medicine. Sleep Med. Rev. 2002, 6, 113–124. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Tyron, W.W. Issues of validity in actigraphic sleep assessment. Sleep 2004, 27, 158–165. [Google Scholar] [CrossRef] [Green Version]
- Rupp, T.L.; Balkin, T.J. Comparison of Motionlogger Watch and Actiwatch actigraphs to polysomnography for sleep/wake estimation in healthy young adults. Behav. Res. Methods 2011, 43, 1152–1160. [Google Scholar] [CrossRef] [Green Version]
- Doherty, A.; Jackson, D.; Hammerla, N.; Plötz, T.; Olivier, P.; Granat, M.H.; White, T.; Van Hees, V.T.; Trenell, M.I.; Owen, C.G.; et al. Large scale population assessment of physical activity using wrist worn accelerometers: The UK biobank study. PLoS ONE 2017, 12, e0169649. [Google Scholar] [CrossRef]
- Blackwell, T.; Ancoli-Israel, S.; Redline, S.; Stone, K.L. Factors that may influence the classification of sleep-wake by wrist actigraphy: The MrOS sleep study. J. Clin. Sleep Med. 2011, 7, 357–367. [Google Scholar] [CrossRef] [Green Version]
- Blackwell, T.; Ancoli-Israel, S.; Gehrman, P.R.; Schneider, J.L.; Pedula, K.L.; Stone, K.L. Actigraphy scoring reliability in the study of osteoporotic fractures. Sleep 2005, 28, 1599–1605. [Google Scholar] [CrossRef] [Green Version]
- Peter, J.; Hauri, J.W. Wrist actigraphy in insomnia. Sleep 1992, 15, 293–301. [Google Scholar]
- Boyne, K.; Sherry, D.D.; Gallagher, P.R.; Olsen, M.; Brooks, L.J. Accuracy of computer algorithms and the human eye in scoring actigraphy. Sleep Breath. 2013, 17, 411–417. [Google Scholar] [CrossRef] [PubMed]
- Morgenthaler, T.; Alessi, C.; Friedman, L.; Owens, J.; Kapur, V.; Boehlecke, B.; Brown, T.; Chesson, A.; Coleman, J.; Lee-Chiong, T.; et al. Practice parameters for the use of actigraphy in the assessment of sleep and sleep disorders: An update for 2007. Sleep 2007, 30, 519–529. [Google Scholar] [CrossRef] [Green Version]
- Gimeno, V.; Sagales, T.; Miguel, L.; Ballarin, M. The statistical distribution of wrist movements during sleep. Neuropsychobiology 1998, 38, 108–112. [Google Scholar] [CrossRef] [PubMed]
- Blackwell, T.; Redline, S.; Ancoli-Israel, S.; Schneider, J.L.; Surovec, S.; Johnson, N.L.; Cauley, J.A.; Stone, K.L. Comparison of sleep parameters from actigraphy and polysomnography in older women: The SOF study. Sleep 2008, 31, 283–291. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Youden, W.J. Index for rating diagnostic tests. Cancer 1950, 3, 32–35. [Google Scholar] [CrossRef]
| Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).