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

Sleep tracking #307

Open
myxor opened this issue Apr 21, 2021 · 9 comments
Open

Sleep tracking #307

myxor opened this issue Apr 21, 2021 · 9 comments

Comments

@myxor
Copy link

myxor commented Apr 21, 2021

New app idea: Sleep tracking

Things to do:

  • Estimate start and end of sleep depending on movement detection (from acceleration sensor)
    • Data from heart rate sensor and touch screen activity could be considered as well
  • Local logging of data for now
  • Store and show data on the phone via companion app (Gadgetbridge has support for this)

Here is a write up on how this works in general: https://en.wikipedia.org/wiki/Actigraphy

What do you think?

@danipozo
Copy link

Two things to note:

  • as far as I know, battery life with HR sensor constantly on hasn't been tested,
  • HR sensor processing needs to improve yet, since measurements can be very unstable.

I think this is a cool thing to have.

@pfeerick
Copy link
Contributor

I would not have thought HR monitoring would be constant when in a sleep mode... more like every 15 minutes to half hour... Plus, if this were being done in sleep mode, unless the accuracy is fixed some other way, it could be by doing a running averaging of the samples over a 30 period, and chucking any outliers that are say 30 above that running average to try and eliminate the spurious readings that sometimes come in.

Either way, This would be nice to see.. someday soon ;)

@ObiKeahloa
Copy link
Contributor

I would rather turn on the Heart Rate every five minutes rather than 15Minutes to half an hour...., we could try and calibrate the heart rate readings with a smartwatch we know works. (Someone who has both)

@Raupinger
Copy link
Contributor

here's a paper on accelerometer based sleep tracking https://www.nature.com/articles/s41598-018-31266-z

@ObiKeahloa
Copy link
Contributor

here's a paper on accelerometer based sleep tracking https://www.nature.com/articles/s41598-018-31266-z

Thanks! I will read it and see what we can do.

@ObiKeahloa
Copy link
Contributor

We could try and have raw accelerometer data with a video of the person wearing it (Creepy I know) so that we can program it to be as accurate as possible , the video could have the person turning on the accelerometer logging (An app for this can be made that logs accelerometer data.) helping us sync the two of them together.

The same person could also wear another smartwatch/fitness tracker (Preferably Apple Watch or Fitbit as they have accurate sleep detection compared to others)

This will give us a small hope , battery life is another concern.

@Avamander Avamander changed the title App idea: Sleep tracking Sleep tracking Oct 2, 2021
@theuser18
Copy link

theuser18 commented Dec 22, 2021

Could it potentially interface with Sleep as Android to offload some of the effort required in measuring sleep? The devs are interested supporting PineTime, but say the APIs required are not in place yet.

@ajack2001my
Copy link

Any progress with Sleep Tracking on the PineTime?

@Avamander
Copy link
Collaborator

There will be progress when someone picks it up and starts working on it. Until that it waits.

@InfiniTimeOrg InfiniTimeOrg locked and limited conversation to collaborators Jan 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

9 participants