IMU Sleep Analysis (skdh.sleep
)#
Pipeline sleep processing#
|
Process raw accelerometer data from the wrist to determine various sleep metrics and endpoints. |
Sleep Endpoints#
Compute the total time spent asleep from 1 minute epoch sleep predictions. |
|
Compute the percent time spent asleep from 1 minute epoch sleep predictions. |
|
Compute the number of waking bouts during the total sleep opportunity, excluding the first wake before sleep, and last wake bout after sleep. |
|
Compute the amount of time before the first sleep period in minutes. |
|
Compute the number of minutes awake after the first period of sleep, excluding the last wake period after sleep. |
|
Compute the average duration of a sleep bout. |
|
Compute the average duration of wake bouts during sleep. |
|
Compute the probability of transitioning from sleep state to awake state |
|
Compute the probability of transitioning from awake state to sleep state. |
|
Compute the normalized variability of the sleep bouts, also known as the Gini Index from economics. |
|
Compute the normalized variability of the awake bouts, also known as the Gini Index from economics. |
|
Compute the average hazard summary of the hazard function as a function of the sleep bout duration. |
|
Compute the average hazard summary of the hazard function as a function of the awake bout duration. |
|
Compute the scaling factor for a power law distribution over the sleep bouts lengths. |
|
Compute the scaling factor for a power law distribution over the awake bouts lengths. |
Background Information#
TODO
Adding Custom Sleep Metrics#
TODO