pyActigraphy: Open-source python package for actigraphy data visualization and analysis
- PMID: 34665807
- PMCID: PMC8555797
- DOI: 10.1371/journal.pcbi.1009514
pyActigraphy: Open-source python package for actigraphy data visualization and analysis
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.
Conflict of interest statement
The authors have declared that no competing interests exist.
Figures




Similar articles
-
ACTman: Automated preprocessing and analysis of actigraphy data.J Sci Med Sport. 2020 May;23(5):481-486. doi: 10.1016/j.jsams.2019.11.009. Epub 2019 Nov 18. J Sci Med Sport. 2020. PMID: 31813761
-
A novel actigraphy data analysis tool and its application to identifying the optimal threshold value in three subject populations.Physiol Meas. 2016 Jul;37(7):N49-61. doi: 10.1088/0967-3334/37/7/N49. Epub 2016 Jun 20. Physiol Meas. 2016. PMID: 27319572
-
Rest-activity circadian rhythm and sleep quality in patients with binge eating disorder.Chronobiol Int. 2018 Feb;35(2):198-207. doi: 10.1080/07420528.2017.1392549. Epub 2017 Nov 16. Chronobiol Int. 2018. PMID: 29144185
-
The role of actigraphy in the study of sleep and circadian rhythms.Sleep. 2003 May 1;26(3):342-92. doi: 10.1093/sleep/26.3.342. Sleep. 2003. PMID: 12749557 Review.
-
Characterizing Behavioral Activity Rhythms in Older Adults Using Actigraphy.Sensors (Basel). 2020 Jan 19;20(2):549. doi: 10.3390/s20020549. Sensors (Basel). 2020. PMID: 31963889 Free PMC article. Review.
Cited by
-
The two ends of the spectrum: comparing chronic schizophrenia and premorbid latent schizotypy by actigraphy.BMC Psychiatry. 2025 May 24;25(1):531. doi: 10.1186/s12888-025-06971-5. BMC Psychiatry. 2025. PMID: 40413462 Free PMC article.
-
Single neurons and networks in the mouse claustrum integrate input from widespread cortical sources.Elife. 2025 Jul 16;13:RP98002. doi: 10.7554/eLife.98002. Elife. 2025. PMID: 40667970 Free PMC article.
-
Combining cardiac monitoring with actigraphy aids nocturnal arousal detection during ambulatory sleep assessment in insomnia.Sleep. 2022 May 12;45(5):zsac031. doi: 10.1093/sleep/zsac031. Epub 2022 Mar 31. Sleep. 2022. PMID: 35554586 Free PMC article.
-
Digital cognitive behavioural therapy for insomnia reduces insomnia in nurses suffering from shift work disorder: A randomised-controlled pilot trial.J Sleep Res. 2024 Dec;33(6):e14193. doi: 10.1111/jsr.14193. Epub 2024 Mar 14. J Sleep Res. 2024. PMID: 38485134 Free PMC article. Clinical Trial.
-
Actigraphy in studies on insomnia: Worth the effort?J Sleep Res. 2023 Feb;32(1):e13750. doi: 10.1111/jsr.13750. Epub 2022 Oct 11. J Sleep Res. 2023. PMID: 36217775 Free PMC article.
References
-
- Van Someren EJW, Oosterman JM, Van Harten B, Vogels RL, Gouw AA, Weinstein HC, et al.. Medial temporal lobe atrophy relates more strongly to sleep-wake rhythm fragmentation than to age or any other known risk. Neurobiology of Learning and Memory. 2018; p. 0–1. - PubMed
Publication types
MeSH terms
LinkOut - more resources
Full Text Sources
Miscellaneous