CorvetteCole / GotoSleep

An Android app that helps you manage a healthy sleep schedule. Licensed under the GPLv3 license
GNU General Public License v3.0
63 stars 9 forks source link

Sleep tracking #9

Open lshoravi opened 5 years ago

lshoravi commented 5 years ago

Hi!

I saw that you were thinking about implementing sleep tracking. I'm decently proficient at Java and could try my hand at helping in my free time.

What do you think would be needed to implement sleep tracking?

CorvetteCole commented 5 years ago

I honestly have no idea. It was sort of an up in the air thing from a Reddit thread. If you want to work on it don't worry about the UI though. When you merge your PR I'll integrate it in to the UI

lshoravi commented 5 years ago

Alright! I'll use this issue as an activity log.

I was planning to go for something like Sleep As Android does, where it reads accelerometer data to determine what phase of sleep a person is in, i.e actigraphy.

There's a couple of studies that display example algorithms and data gathering. I'll link them here for documentation. I think they'll be useful for determining activity from movement data.

https://academic.oup.com/sleep/article/15/5/461/2749332 https://www.sciencedirect.com/science/article/pii/S037843711831255X ?via%3Dihub https://www.sciencedirect.com/science/article/pii/S037843711831255X ?via%3Dihub https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5971842/

CorvetteCole commented 5 years ago

the yeah, looks good! If you can create some code that will track the user's sleep when activated and return data somehow I would be happy to work on creating the UI for it.