Literature DB >> 27294030

'nparACT' package for R: A free software tool for the non-parametric analysis of actigraphy data.

Christine Blume1, Nayantara Santhi2, Manuel Schabus1.   

Abstract

For many studies, participants' sleep-wake patterns are monitored and recorded prior to, during and following an experimental or clinical intervention using actigraphy, i.e. the recording of data generated by movements. Often, these data are merely inspected visually without computation of descriptive parameters, in part due to the lack of user-friendly software. To address this deficit, we developed a package for R Core Team [6], that allows computing several non-parametric measures from actigraphy data. Specifically, it computes the interdaily stability (IS), intradaily variability (IV) and relative amplitude (RA) of activity and gives the start times and average activity values of M10 (i.e. the ten hours with maximal activity) and L5 (i.e. the five hours with least activity). Two functions compute these 'classical' parameters and handle either single or multiple files. Two other functions additionally allow computing an L-value (i.e. the least activity value) for a user-defined time span termed 'Lflex' value. A plotting option is included in all functions. The package can be downloaded from the Comprehensive R Archives Network (CRAN). •The package 'nparACT' for R serves the non-parametric analysis of actigraphy data.•Computed parameters include interdaily stability (IS), intradaily variability (IV) and relative amplitude (RA) as well as start times and average activity during the 10 h with maximal and the 5 h with minimal activity (i.e. M10 and L5).

Entities:  

Keywords:  Actigraphy; Amplitude; Circadian rhythm; Internal clock; R; Sleep; Zeitgeber

Year:  2016        PMID: 27294030      PMCID: PMC4890079          DOI: 10.1016/j.mex.2016.05.006

Source DB:  PubMed          Journal:  MethodsX        ISSN: 2215-0161


Method details

Actigraphy is a non-invasive method of monitoring participants’ rest-activity cycles, which is most commonly used in sleep and circadian rhythm research [2], [8]. In many studies, actigraphy recordings are used to ensure that participants adhere to a prescribed sleep-wake rhythm (cf. e.g. [5], [9]). Moreover, actigraphy data can inform about disturbances of the sleep-wake cycle such as circadian rhythm disorders and sleep disorders (for an overview see [1]). It is measured with a wrist-watch-like device, usually worn on the non-dominant hand, for several days before, during and after an experiment. In some cases ankle movements rather than wrist movements are expected to reflect the ‘true’ activity of the participant (e.g. when the upper limbs are spastic) and in these instances the device can be worn on the ankle. Movements the device undergoes are continuously recorded with a previously specified sampling rate (SR; e.g. 4/60 Hz). In most studies, however, the analysis of actigraphy data is limited to a rather crude visual inspection of the general pattern of rest and activity or sleep and wakefulness, which is also reflected in the purposes other available R packages serve. The ‘PhysicalActivity’ package [3] for example only allows analysing device wear and non-wear time intervals and other tools such as the ‘accelerometry’ package [10] even focus solely on the analysis of periods of activity thus completely ignoring rhythmic changes between rest and activity. We think that sometimes, however, a more advanced analysis of rest-activity cycles could yield further information and certain parameters may even become variables of interest. While the ‘GGIR’ package computes the M5 and L5 descriptives (i.e. five hours with minimal and maximal activity) for data obtained with specific devices, it does not calculate other parameters that might be valuable for a comprehensive description of the rest-activity pattern. In particular, parameters quantifying how well the period length of a rhythm matches the earth’s 24 h light-dark cycle, how fragmented a rhythm is and what amplitude the rest-activity pattern has could be of special interest. We assume that the reluctance to further analyse actigraphy data regarding such parameters and thus the underestimation of their scientific value is, partly, due to the lack of adequate analysis tools. We thus developed the package ‘nparACT’ for R Core Team [6], that computes several non-parametric measures from actigraphy data that allow for a quantification of the parameters mentioned above (cf. [11], [12], [13]). The most recent version of the package can be downloaded from the Comprehensive R Archives Network (CRAN) and is, just as R itself, open source. As the package is updated from time to time, we deliberately do not provide a zip file of the package along with this publication.

Method description

Data requirements

Confounding factors such as the dependence of rest-activity patterns on the day of the week can impair the interpretability of the data. Actigraphy data should therefore be acquired over the course of a whole week or multiple weeks, unless, of course, workdays are of special interest. In repeated measures designs the same days of the week should be recorded on each occasion as otherwise the interpretability of the results may suffer. We moreover recommend recordings to cover at least five workdays or a whole week to obtain reliable estimates of the parameters (cf. also [12]). As participants do usually not wear the actigraph continuously during the recording period (e.g. they take it off for showering or exercising), recordings typically contain ‘invalid’ data. Although the ‘nparACT’ package does not offer an option to exclude these periods and impute the respective values, users are advised to consider this as an additional step during preparation of the data for further analysis using ‘nparACT’. Following recording, data are usually transferred from the device to a computer using manufacturer-specific software. For devices that sample at a high frequency (e.g. 60 Hz), data can normally be downsampled within this software. The ‘nparACT’ package can handle any type of sampling rate and will downsample data to 1/60 Hz if necessary, but data files with lower input sampling rates will speed up the analyses. Besides this, most devices nowadays record movements in three dimensions and software provided by the manufacturer usually includes an option to integrate the three axes into one activity value. This must be done prior to processing data within the package. Finally, the input file must contain one column with date and/or time and one column with actigraphy values. The former must be of form “YYYY-MM-DD HH:MM:SS” or “YYYY/MM/DD HH:MM:SS” (i.e. an unambiguous date format). Date and/or time must be in the first, activity values in the second column. For the data structure please also see the ‘sleepstudy’ example data that comes with the package. If one of the functions for the analysis of multiple files is used, data must be text files or comma separated values (CSV) files. This is not necessary for analysing single actigraphy files as in this case the file has to be loaded into the R environment before functions can be applied in a separate step.

Preprocessing options

Analyses should be based on data spanning full days only as interdaily stability (IS) and intradaily variability (IV) depend on the day/night ratio. Data are cut to full days if the fullday argument is set to TRUE, which is the default. Furthermore, in some cases it may be desirable to decrease the sensitivity of activity detection post hoc. While this requires caution as well as a careful consideration of pros and cons, we have included an option to define a cut-off value below which all activity values are set to zero. The default value of the cutoff is 1, in which case all values are taken into account as they are.

Non-parametric actigraphy measures

The package computes the interdaily stability (IS), intradaily variability (IV) and relative amplitude (RA) of activity values. Moreover, it gives the start times and average activity of M10 (i.e. 10 h with maximal activity) and L5 (i.e. five hours with least activity). Interdaily stability IS quantifies the stability of rest-activity rhythms or the invariability of the rhythm between different days. It, thus, describes the coupling of the rhythm to external zeitgebers, that is environmental cues such as light that entrain an organism’s internal biological clock to the earth’s 24 h cycle. IS varies between 0 (Gaussian noise) and 1 with values closer to 1 indicating stronger coupling to a zeitgeber with a period length of 24 h. Among various zeitgebers, sunlight is thought to be the strongest one, but also social factors such as worktimes, nutrition and maybe even sleep itself have been suggested to influence the rhythm [4], [7]. It is computed according to the following formula. Formula (1): Interdaily stability (IS). n is the total number of sampling points and p is the number of sampling points per day while are the hourly means, is the grand average of all data and denotes the activity value from each sampling point. Please note that x are hourly values in ‘nparACT’. Intradaily variability In contrast to IS, IV quantifies the fragmentation of a rest-activity pattern. IV converges to zero for a perfect sine wave and approaches two for Gaussian noise. It may even be higher than two if a definite ultradian component with a period length of two hours is present in the rest-activity cycle. IV is computed according to the following formula. Formula (2): Intradaily variability (IV). n is the total number of sampling points and p is the number of sampling points per day is the grand average of all data and denotes the activity value from each sampling point. Please note that x are hourly values in nparACT. Relative amplitude RA is a non-parametric parameter, which can be calculated from the M10 and L5 values, that is the ten hours with maximal (M10) and the five hours with minimal (L5) activity. Usually, M10 covers 10 h during the day and may be influenced by e.g. daytime napping. L5, on the other hand, should reflect movements during the night as well as arousals and awakenings. The formula for the computation of RA is: Formula (3): Relative amplitude (RA). M10 is the averaged activity of the ten consecutive hours with maximal activity, L5 is the averaged activity of the five consecutive hours with minimal activity To find M10 and L5 averages for ten and five hours are calculated on a minute-wise level across days. More precisely, minute-wise averages are first calculated across days. Subsequently, averages for five and 10 h are computed (e.g. for L5 from 6:00 to 11:00, from 6:01 to 11:01 and so on) across 24 h yielding a total of 1440 values. From these, the maximal value from the 10 h averages and the minimal value from the five hour averages are picked as well as the times of the day when M10 and L5 start. Lflex In the package, we additionally included the possibility to find the lowest activity during a user-defined time window, termed the Lflex value. This way one could, for instance, look for the 7.5 h with least activity in a group of insomniacs and see whether their average activity levels during this time or whether the start time deviates from a healthy control group.

Functions

The package comprises two function families besides several auxiliary functions, which may be used to customise the package by experienced R users. The ‘base’ family, (i.e. ‘nparACT_base’ and the ‘nparACT_base_loop’) computes the classic non-parametric actigraphy measures IS, IV, RA and the M10 and L5 values and their start times. The ‘flex’ family (i.e. ‘nparACT_flex’ and ‘nparACT_flex_loop’) additionally computes the Lflex value for a user-defined time window. Both families each comprise one function that is suitable for the analysis of a single actigraphy file and one function that loops though multiple files. All functions give a result matrix containing the parameters computed.

Plots

Users can choose whether they would like to receive plots by setting the plotting parameter of the function to plot = TRUE (default) or plot = FALSE. For single files, (a) a classic dual-day display plot, (b) a plot of minute-wise averages of activity across 24 h as well as a (c) plot for hourly averages across 24 h is produced. For multiple files only the grand average of hourly activity values across 24 h are plotted similarly to Fig. 1c.
Fig. 1

Plots for single actigraphy files. (a) Classic dual-day display plot, (b) plot of minute-wise averages of activity across 24 h, (c) plot for hourly averages across 24 h.

Conflict of interest

The authors declare no conflict of interest.
  10 in total

1.  Bright light therapy: improved sensitivity to its effects on rest-activity rhythms in Alzheimer patients by application of nonparametric methods.

Authors:  E J Van Someren; D F Swaab; C C Colenda; W Cohen; W V McCall; P B Rosenquist
Journal:  Chronobiol Int       Date:  1999-07       Impact factor: 2.877

2.  The SBSM Guide to Actigraphy Monitoring: Clinical and Research Applications.

Authors:  Sonia Ancoli-Israel; Jennifer L Martin; Terri Blackwell; Luis Buenaver; Lianqi Liu; Lisa J Meltzer; Avi Sadeh; Adam P Spira; Daniel J Taylor
Journal:  Behav Sleep Med       Date:  2015       Impact factor: 2.964

3.  Scheduling of sleep/darkness affects the circadian phase of night shift workers.

Authors:  Nayantara Santhi; Jeanne F Duffy; Todd S Horowitz; Charles A Czeisler
Journal:  Neurosci Lett       Date:  2005-08-26       Impact factor: 3.046

4.  The human circadian clock entrains to sun time.

Authors:  Till Roenneberg; C Jairaj Kumar; Martha Merrow
Journal:  Curr Biol       Date:  2007-01-23       Impact factor: 10.834

Review 5.  The role and validity of actigraphy in sleep medicine: an update.

Authors:  Avi Sadeh
Journal:  Sleep Med Rev       Date:  2011-01-14       Impact factor: 11.609

6.  Long-term fitness training improves the circadian rest-activity rhythm in healthy elderly males.

Authors:  E J Van Someren; C Lijzenga; M Mirmiran; D F Swaab
Journal:  J Biol Rhythms       Date:  1997-04       Impact factor: 3.182

Review 7.  The role of actigraphy in the study of sleep and circadian rhythms.

Authors:  Sonia Ancoli-Israel; Roger Cole; Cathy Alessi; Mark Chambers; William Moorcroft; Charles P Pollak
Journal:  Sleep       Date:  2003-05-01       Impact factor: 5.849

8.  Is sleep per se a zeitgeber in humans?

Authors:  Konstantin V Danilenko; Christian Cajochen; Anna Wirz-Justice
Journal:  J Biol Rhythms       Date:  2003-04       Impact factor: 3.182

9.  Alterations in the circadian rest-activity rhythm in aging and Alzheimer's disease.

Authors:  W Witting; I H Kwa; P Eikelenboom; M Mirmiran; D F Swaab
Journal:  Biol Psychiatry       Date:  1990-03-15       Impact factor: 13.382

10.  Oscillatory theta activity during memory formation and its impact on overnight consolidation: a missing link?

Authors:  Dominik P J Heib; Kerstin Hoedlmoser; Peter Anderer; Georg Gruber; Josef Zeitlhofer; Manuel Schabus
Journal:  J Cogn Neurosci       Date:  2015-03-16       Impact factor: 3.225

  10 in total
  30 in total

1.  Rest-activity rhythm profiles associated with manic-hypomanic and depressive symptoms.

Authors:  Stephen F Smagula; Robert T Krafty; Julian F Thayer; Daniel J Buysse; Martica H Hall
Journal:  J Psychiatr Res       Date:  2018-04-21       Impact factor: 4.791

2.  Rest-activity rhythms and white matter microstructure across the lifespan.

Authors:  Megan McMahon; Yoshita Malneedi; Darrell A Worthy; David M Schnyer
Journal:  Sleep       Date:  2021-06-11       Impact factor: 5.849

3.  Rest-activity rhythms characteristics and seasonal changes in seasonal affective disorder.

Authors:  Stephen F Smagula; Caitlin M DuPont; Megan A Miller; Robert T Krafty; Brant P Hasler; Peter L Franzen; Kathryn A Roecklein
Journal:  Chronobiol Int       Date:  2018-07-19       Impact factor: 2.877

4.  Actigraphy-Derived Daily Rest-Activity Patterns and Body Mass Index in Community-Dwelling Adults.

Authors:  Elizabeth M Cespedes Feliciano; Mirja Quante; Jia Weng; Jonathan A Mitchell; Peter James; Catherine R Marinac; Sara Mariani; Susan Redline; Jacqueline Kerr; Suneeta Godbole; Alicia Manteiga; Daniel Wang; J Aaron Hipp
Journal:  Sleep       Date:  2017-12-01       Impact factor: 5.849

5.  Stress-Induced Behavioral Quiescence and Abnormal Rest-Activity Rhythms During Critical Illness.

Authors:  Matthew B Maas; Bryan D Lizza; Minjee Kim; Sabra M Abbott; Maged Gendy; Kathryn J Reid; Phyllis C Zee
Journal:  Crit Care Med       Date:  2020-06       Impact factor: 7.598

Review 6.  Assessment of Circadian Rhythms.

Authors:  Kathryn J Reid
Journal:  Neurol Clin       Date:  2019-08       Impact factor: 3.806

7.  Twin-based heritability of actimetry traits.

Authors:  Philip R Gehrman; Arpita Ghorai; Matthew Goodman; Richard McCluskey; Holly Barilla; Laura Almasy; Till Roenneberg; Maja Bucan
Journal:  Genes Brain Behav       Date:  2019-05-24       Impact factor: 3.449

8.  Regional Gray Matter Volume Links Rest-Activity Rhythm Fragmentation With Past Cognitive Decline.

Authors:  Stephen F Smagula; Lana Chahine; Andrea Metti; Anusha Rangarajan; Howard J Aizenstein; Qu Tian; Caterina Rosano
Journal:  Am J Geriatr Psychiatry       Date:  2019-07-19       Impact factor: 4.105

9.  Disrupted diurnal oscillation of gut-derived Short chain fatty acids in shift workers drinking alcohol: Possible mechanism for loss of resiliency of intestinal barrier in disrupted circadian host.

Authors:  Garth R Swanson; Joel Siskin; Annika Gorenz; Maliha Shaikh; Shohreh Raeisi; Louis Fogg; Christopher Forsyth; Ali Keshavarzian
Journal:  Transl Res       Date:  2020-05-05       Impact factor: 7.012

10.  Sleep Characteristics and Rest-Activity Rhythms Are Associated with Gastrointestinal Symptoms Among Adults with Inflammatory Bowel Disease.

Authors:  Samantha Conley; Sangchoon Jeon; Vanessa Lehner; Deborah D Proctor; Nancy S Redeker
Journal:  Dig Dis Sci       Date:  2020-03-19       Impact factor: 3.199

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.