Package: ActiSleep 1.0.0

ActiSleep: Sleep Duration Estimation from Accelerometer Data

Estimates daily sleep duration from wrist or hip accelerometer data using a Pruned Dynamic Programming (PDP) changepoint algorithm. PDP partitions a minute-level activity series into segments, then identifies transitions between sleep and wakefulness by detecting extended periods of low physical activity. Five cost-function models (Poisson, Normal, Negative binomial, Variance, Exponential) accommodate different activity-count distributions. Optional non-wear detection and sleep diary integration are supported. Reference: Baek, Jonggyu, Banker, Margaret, Jansen, Erica C., She, Xichen, Peterson, Karen E., Pitchford, E. Andrew, Song, Peter X. K. (2021) An Efficient Segmentation Algorithm to Estimate Sleep Duration from Actigraphy Data <doi:10.1007/s12561-021-09309-3>.

Authors:Jonggyu Baek [aut], Margaret Banker [aut], Nathan Szeto [aut, cre], Alice Cleynen [aut], Guillem Rigaill [aut], Michel Koskas [aut]

ActiSleep_1.0.0.tar.gz
ActiSleep_1.0.0.zip(r-4.7)ActiSleep_1.0.0.zip(r-4.6)ActiSleep_1.0.0.zip(r-4.5)
ActiSleep_1.0.0.tgz(r-4.6-x86_64)ActiSleep_1.0.0.tgz(r-4.6-arm64)ActiSleep_1.0.0.tgz(r-4.5-x86_64)ActiSleep_1.0.0.tgz(r-4.5-arm64)
ActiSleep_1.0.0.tar.gz(r-4.7-arm64)ActiSleep_1.0.0.tar.gz(r-4.7-x86_64)ActiSleep_1.0.0.tar.gz(r-4.6-arm64)ActiSleep_1.0.0.tar.gz(r-4.6-x86_64)
ActiSleep_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
ActiSleep/json (API)
NEWS

# Install 'ActiSleep' in R:
install.packages('ActiSleep', repos = c('https://n-szeto.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/n-szeto/actisleep/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cpp

3.70 score 9 scripts 210 downloads 2 exports 79 dependencies

Last updated from:4ab48c6ed0. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK208
linux-devel-x86_64OK212
source / vignettesOK255
linux-release-arm64OK184
linux-release-x86_64OK202
macos-release-arm64OK253
macos-release-x86_64OK387
macos-oldrel-arm64OK217
macos-oldrel-x86_64OK376
windows-develOK185
windows-releaseOK197
windows-oldrelOK191
wasm-releaseOK153

Exports:estimate_sleepread_agd

Dependencies:accelerometrybase64encbitbit64blobbslibcachemclicpp11cubaturedata.tableDBIdigestdplyrdvmiscevaluatefarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhtmltoolsisobandjquerylibjsonlitekableExtraknitrlabelinglatticelifecyclelubridatemagrittrMASSMatrixmemoisemimeminqamitoolsmvtnormnumDerivpillarpkgconfigpracmaR6rappdirsrbenchmarkRColorBrewerRcppRcppArmadillorlangrmarkdownRSQLiterstudioapiS7sassscalesstringistringrsurveysurvivalsvglitesystemfontstabtextshapingtibbletidyselecttimechangetinytexutf8vctrsviridisLitewithrxfunxml2yaml

ActiSleep Tutorial

Rendered fromactisleep_tutorial.Rmdusingknitr::rmarkdownon May 17 2026.

Last update: 2026-04-16
Started: 2026-04-16