Closed ReinderVosDeWael closed 1 month ago
GGIR sleep detection implements two default algorithms for sleep detection (generally speaking, and simplified, this can be broken down as follows):
The sleep onset-wakeup times are defined by the start of the first SIB that overlaps with the SPT window and the end of the last SIB that overlaps with the SPT window.
Some questions for the next meeting (writing as I come across them):
Description
The goal of this task is to build in the main GGIR sleep detection algorithm. The class should be built to allow for the implementation of more algorithms, but those are beyond the scope of this PR.
Tasks
run()
method taking in (probably)enmo
,anglez
,nonwear
and any other necessary data._
) as is needed for code organization.Freeform Notes
Given the complexity of the GGIR algorithm (https://github.com/wadpac/GGIR/blob/master/R/g.part4.R), the exact implementation should be considered flexible.