Sleep Duration Estimate Algorithm
This code was written by Alice Cleynen, Guillem Rigaill, and Michel Ko...
Daily sleep estimate
Aggregate Accelerometer Data
Calculate Mean Index
Reformat Time Variable
Diary In/Out-bed Times
Estimated sleep interval
Read in AGD filedata
Find specific sleep segment
Provides sleep duration estimates using a Pruned Dynamic Programming (PDP) algorithm that efficiently identifies change-points. PDP applied to physical activity data can identify transitions from wakefulness to sleep and vice versa. 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>.