Description
Is your feature request related to a problem? Please describe.
Current sleep/wake classification algorithms all rely on activity counts, which are difficult to replicate properly for a variety of reasons.
Describe the solution you'd like
A sleep/wake classification algorithm based off the van Hees, 2015 paper
This method was designed purposely to be an easy to describe heuristic. It also showed similar performance to other sleep/wake classification algorithms. It uses two thresholds, 1 - the z-angle range and 2- a length of time. The default parameters are 5 degrees and 5 minutes. So, if the z-angle changes less than 5-degrees in 5-minutes, then the 5-minute period is classified as sleep. If the z-angel changes more than 5-degrees in 5-minutes, then the 5-minute period is classified as wake.