Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

van Hees 2015 sleep / wake classification algorithm #34

Open
m-patterson-wearable opened this issue Jul 18, 2022 · 1 comment
Open

van Hees 2015 sleep / wake classification algorithm #34

m-patterson-wearable opened this issue Jul 18, 2022 · 1 comment
Labels
feature-request New feature or request

Comments

@m-patterson-wearable
Copy link

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.

@m-patterson-wearable m-patterson-wearable added the feature-request New feature or request label Jul 18, 2022
@m-patterson-wearable m-patterson-wearable changed the title van Hees 2015 sleep / wake classification added van Hees 2015 sleep / wake classification algorithm Jul 18, 2022
@richrobe
Copy link
Member

Hi @m-patterson-wearable, thanks for pointing this out! In fact, we're actually already aware of the 2015 van Hees algorithm and also considered implementing the algorithm for biopsykit. We definitely agree that an algorithm that uses raw acceleration as input instead of activity counts would be beneficial. However, weren't able to do so yet due to time constraints and other higher prioritized feature requests. But we'd be happy to take a contribution to our open-source package... so if you want to implement the algorithm in Python and open a pull request, we'd be happy to merge it 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants