Skip to content

Sleep tracking #307

Open
Open

Description

@myxor

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?

Activity

  1. danipozo commented on Apr 21, 2021

    @danipozo

    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.

  2. pfeerick commented on Apr 22, 2021

    @pfeerick
    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 ;)

  3. ObiKeahloa commented on May 4, 2021

    @ObiKeahloa
    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)

  4. Raupinger commented on Jul 20, 2021

    @Raupinger
    Contributor

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

  5. ObiKeahloa commented on Jul 21, 2021

    @ObiKeahloa
    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.

  6. ObiKeahloa commented on Jul 27, 2021

    @ObiKeahloa
    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.

  7. changed the title [-]App idea: Sleep tracking[/-] [+]Sleep tracking[/+] on Oct 2, 2021
  8. theuser18 commented on Dec 22, 2021

    @theuser18

    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.

  9. ajack2001my commented on Jan 11, 2022

    @ajack2001my

    Any progress with Sleep Tracking on the PineTime?

  10. Avamander commented on Jan 11, 2022

    @Avamander
    Collaborator

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions