Package: ActiSleep Type: Package Title: Sleep Duration Estimation from Accelerometer Data Version: 1.0.0 Date: 2026-04-16 Authors@R: c( person("Jonggyu", "Baek", email = "Jonggyu.Baek@umassmed.edu", role = "aut"), person("Margaret", "Banker", email = "margaret.banker@northwestern.edu", role = "aut"), person("Nathan", "Szeto", email = "nszeto@umich.edu", role = c("aut", "cre")), person("Alice", "Cleynen", role = "aut"), person("Guillem", "Rigaill", role = "aut"), person("Michel", "Koskas", role = "aut")) Description: 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 . License: GPL-3 URL: https://github.com/n-szeto/ActiSleep BugReports: https://github.com/n-szeto/ActiSleep/issues Imports: lubridate, accelerometry, DBI, RSQLite, methods, utils, stats, Rcpp LinkingTo: Rcpp Depends: R (>= 3.5) Suggests: testthat (>= 3.0.0), knitr, rmarkdown Config/testthat/edition: 3 VignetteBuilder: knitr NeedsCompilation: yes Encoding: UTF-8 RoxygenNote: 7.3.3 Config/pak/sysreqs: cmake libfontconfig1-dev libfreetype6-dev libfribidi-dev make libharfbuzz-dev libicu-dev libpng-dev libuv1-dev libxml2-dev Repository: https://n-szeto.r-universe.dev Date/Publication: 2026-04-16 17:54:21 UTC RemoteUrl: https://github.com/n-szeto/actisleep RemoteRef: HEAD RemoteSha: 4ab48c6ed019254e083971360246d5da008be627 Packaged: 2026-06-16 08:40:37 UTC; root Author: Jonggyu Baek [aut], Margaret Banker [aut], Nathan Szeto [aut, cre], Alice Cleynen [aut], Guillem Rigaill [aut], Michel Koskas [aut] Maintainer: Nathan Szeto