0
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      pyActigraphy: Open-source python package for actigraphy data visualization and analysis

      research-article

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          Over the past 40 years, actigraphy has been used to study rest-activity patterns in circadian rhythm and sleep research. Furthermore, considering its simplicity of use, there is a growing interest in the analysis of large population-based samples, using actigraphy. Here, we introduce pyActigraphy, a comprehensive toolbox for data visualization and analysis including multiple sleep detection algorithms and rest-activity rhythm variables. This open-source python package implements methods to read multiple data formats, quantify various properties of rest-activity rhythms, visualize sleep agendas, automatically detect rest periods and perform more advanced signal processing analyses. The development of this package aims to pave the way towards the establishment of a comprehensive open-source software suite, supported by a community of both developers and researchers, that would provide all the necessary tools for in-depth and large scale actigraphy data analyses.

          Author summary

          The possibility to continuously record locomotor movements using accelerometers (actigraphy) has allowed field studies of sleep and rest-activity patterns. It has also enabled large-scale data collections, opening new avenues for research. However, each brand of actigraph devices encodes recordings in its own format and closed-source proprietary softwares are typically used to read and analyse actigraphy data. In order to provide an alternative to these softwares, we developed a comprehensive open-source toolbox for actigraphy data analysis, pyActigraphy. It allows researchers to read actigraphy data from 7 different file formats and gives access to a variety of rest-activity rhythm variables, automatic sleep detection algorithms and more advanced signal processing techniques. Besides, in order to empower researchers and clinicians with respect to their analyses, we created a series of interactive tutorials that illustrate how to implement the key steps of typical actigraphy data analyses. As an open-source project, all kind of user’s contributions to our toolbox are welcome. As increasing evidence points to the predicting value of rest-activity patterns derived from actigraphy for brain integrity, we believe that the development of the pyActigraphy package will not only benefit the sleep and chronobiology research, but also the neuroscientific community at large.

          Related collections

          Most cited references57

          • Record: found
          • Abstract: found
          • Article: not found

          Physical activity in the United States measured by accelerometer.

          To describe physical activity levels of children (6-11 yr), adolescents (12-19 yr), and adults (20+ yr), using objective data obtained with accelerometers from a representative sample of the U.S. population. These results were obtained from the 2003-2004 National Health and Nutritional Examination Survey (NHANES), a cross-sectional study of a complex, multistage probability sample of the civilian, noninstitutionalized U.S. population in the United States. Data are described from 6329 participants who provided at least 1 d of accelerometer data and from 4867 participants who provided four or more days of accelerometer data. Males are more physically active than females. Physical activity declines dramatically across age groups between childhood and adolescence and continues to decline with age. For example, 42% of children ages 6-11 yr obtain the recommended 60 min x d(-1) of physical activity, whereas only 8% of adolescents achieve this goal. Among adults, adherence to the recommendation to obtain 30 min x d(-1) of physical activity is less than 5%. Objective and subjective measures of physical activity give qualitatively similar results regarding gender and age patterns of activity. However, adherence to physical activity recommendations according to accelerometer-measured activity is substantially lower than according to self-report. Great care must be taken when interpreting self-reported physical activity in clinical practice, public health program design and evaluation, and epidemiological research.
            Bookmark
            • Record: found
            • Abstract: found
            • Article: not found

            Automatic sleep/wake identification from wrist activity.

            The purpose of this study was to develop and validate automatic scoring methods to distinguish sleep from wakefulness based on wrist activity. Forty-one subjects (18 normals and 23 with sleep or psychiatric disorders) wore a wrist actigraph during overnight polysomnography. In a randomly selected subsample of 20 subjects, candidate sleep/wake prediction algorithms were iteratively optimized against standard sleep/wake scores. The optimal algorithms obtained for various data collection epoch lengths were then prospectively tested on the remaining 21 subjects. The final algorithms correctly distinguished sleep from wakefulness approximately 88% of the time. Actigraphic sleep percentage and sleep latency estimates correlated 0.82 and 0.90, respectively, with corresponding parameters scored from the polysomnogram (p < 0.0001). Automatic scoring of wrist activity provides valuable information about sleep and wakefulness that could be useful in both clinical and research applications.
              Bookmark
              • Record: found
              • Abstract: found
              • Article: not found

              Validation of accelerometer wear and nonwear time classification algorithm.

              the use of movement monitors (accelerometers) for measuring physical activity (PA) in intervention and population-based studies is becoming a standard methodology for the objective measurement of sedentary and active behaviors and for the validation of subjective PA self-reports. A vital step in PA measurement is the classification of daily time into accelerometer wear and nonwear intervals using its recordings (counts) and an accelerometer-specific algorithm. the purpose of this study was to validate and improve a commonly used algorithm for classifying accelerometer wear and nonwear time intervals using objective movement data obtained in the whole-room indirect calorimeter. we conducted a validation study of a wear or nonwear automatic algorithm using data obtained from 49 adults and 76 youth wearing accelerometers during a strictly monitored 24-h stay in a room calorimeter. The accelerometer wear and nonwear time classified by the algorithm was compared with actual wearing time. Potential improvements to the algorithm were examined using the minimum classification error as an optimization target. the recommended elements in the new algorithm are as follows: 1) zero-count threshold during a nonwear time interval, 2) 90-min time window for consecutive zero or nonzero counts, and 3) allowance of 2-min interval of nonzero counts with the upstream or downstream 30-min consecutive zero-count window for detection of artifactual movements. Compared with the true wearing status, improvements to the algorithm decreased nonwear time misclassification during the waking and the 24-h periods (all P values < 0.001). the accelerometer wear or nonwear time algorithm improvements may lead to more accurate estimation of time spent in sedentary and active behaviors.
                Bookmark

                Author and article information

                Contributors
                Role: ConceptualizationRole: MethodologyRole: SoftwareRole: ValidationRole: Writing – original draftRole: Writing – review & editing
                Role: ConceptualizationRole: Software
                Role: Software
                Role: Writing – review & editing
                Role: Writing – review & editing
                Role: Writing – review & editing
                Role: ConceptualizationRole: Writing – review & editing
                Role: ConceptualizationRole: Funding acquisitionRole: SupervisionRole: Writing – review & editing
                Role: Editor
                Journal
                PLoS Comput Biol
                PLoS Comput Biol
                plos
                PLoS Computational Biology
                Public Library of Science (San Francisco, CA USA )
                1553-734X
                1553-7358
                October 2021
                19 October 2021
                : 17
                : 10
                : e1009514
                Affiliations
                [1 ] GIGA-CRC In vivo Imaging, University of Liège, Liège, Belgium
                [2 ] Psychology and Neuroscience of Cognition, Faculty of Psychology, University of Liège, Liège, Belgium
                Hebrew University of Jerusalem, ISRAEL
                Author notes

                The authors have declared that no competing interests exist.

                Author information
                https://orcid.org/0000-0003-1083-3869
                https://orcid.org/0000-0001-5501-5216
                https://orcid.org/0000-0002-1003-4787
                https://orcid.org/0000-0002-7629-4645
                https://orcid.org/0000-0001-5100-9927
                https://orcid.org/0000-0002-9867-012X
                Article
                PCOMPBIOL-D-21-00538
                10.1371/journal.pcbi.1009514
                8555797
                34665807
                6a680bc5-7d37-4bbc-87e9-c16deae09909
                © 2021 Hammad et al

                This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

                History
                : 22 March 2021
                : 1 October 2021
                Page count
                Figures: 4, Tables: 1, Pages: 16
                Funding
                Funded by: funder-id http://dx.doi.org/10.13039/100010663, H2020 European Research Council;
                Award ID: 757763
                Award Recipient :
                Funded by: Fonds De La Recherche Scientifique - FNRS (BE)
                Award ID: T.0220.20
                Award Recipient :
                Funded by: funder-id http://dx.doi.org/10.13039/501100003134, Fonds pour la Formation à la Recherche dans l’Industrie et dans l’Agriculture;
                Award Recipient :
                The development of the pyActigraphy package is part of the CogNap project that has received funding from the European Research Council under the European Union’s Horizon 2020 research and innovation programme, Grant agreement No. 757763 (to CS). This work was also supported by the Fonds de la Recherche Scientifique - FNRS under Grant nr T.0220.20 (to CS). CS is a research associate and MD is a FRIA grantee of the Fonds de la Recherche Scientifique - FNRS, Belgium ( https://www.frs-fnrs.be/fr/). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
                Categories
                Research Article
                Biology and Life Sciences
                Physiology
                Physiological Processes
                Sleep
                Computer and Information Sciences
                Software Engineering
                Computer Software
                Open Source Software
                Engineering and Technology
                Software Engineering
                Computer Software
                Open Source Software
                Science Policy
                Open Science
                Open Source Software
                Computer and Information Sciences
                Data Management
                Data Visualization
                Biology and Life Sciences
                Chronobiology
                Circadian Rhythms
                Physical Sciences
                Mathematics
                Applied Mathematics
                Algorithms
                Research and Analysis Methods
                Simulation and Modeling
                Algorithms
                Biology and Life Sciences
                Chronobiology
                Computer and Information Sciences
                Software Engineering
                Software Tools
                Engineering and Technology
                Software Engineering
                Software Tools
                Engineering and Technology
                Signal Processing
                Custom metadata
                vor-update-to-uncorrected-proof
                2021-10-29
                The pyActigraphy package is available from the Python Package Index (PyPI) repository: https://pypi.org/project/pyActigraphy. Its source code is hosted by Github ( https://github.com/ghammad/pyActigraphy) and the Zenodo platform ( https://zenodo.org/record/3973012).

                Quantitative & Systems biology
                Quantitative & Systems biology

                Comments

                Comment on this article