Skip to content

Commit

Permalink
SRI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rl885 committed Oct 18, 2023
1 parent 7c5467b commit 3895d7b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 11 deletions.
19 changes: 18 additions & 1 deletion services/backup_data.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,21 @@ image:system_backup.png[Google One backup]
If you tap on the CSV or ZIP file that was exported from Sleep (anywhere - in your email attachment, Drive, Dropbox, file manager), the system will offer to open it with Sleep as Android. This will import the included sleep records.

[[manual_import]]
image:import.png[Importing]
image:import.png[Importing]

== Import sleep noise files

If you wish to import sleep noise files to a new phone, you need to do this manually by copying the folder to the storage on the new phone.

Yo

. Save the content of the folder you have as your storage path on the first phone - you can find the storage path at _Settings → Sleep Noise recording → Storage path_.
. On the new phone, decide a location for your new storage path.
. If you copied the whole folder with *sleep-data* folder, copy the whole folder to the chosen location on the new phone.
. If you copied only the sound files, create folder *sleep-data* in your chosen location, and inside this folder, create a sub-folder *rec*. And copy the files to this *rec* folder.
. Choose the storage path on the new phone in _Settings → Sleep Noise recording → Storage path_ to *your_chosen_folder* (not to the *your_chosen_folder\sleep-data\rec\* subfolder).
. Sync the backup file - the sound meta-data will pair with the files copied.

NOTE: The actual sound files should be in *your_chosen_folder\sleep-data\rec\*.


6 changes: 5 additions & 1 deletion sleep/advice.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ a|* Has it recently improved or worsened? (last 7 days compared to last 60 days)
* How does it compare to others in your country?


|Irregularity
|Regularity
a|* Has it recently improved or worsened? (last 7 days compared to last 60 days)
* Is it in healthy bounds for last 60 days average (1 hour - 20 minutes)?
* How does it compare to others in your country?

|Regularity index
a|* Has it recently improved or worsened? (5-point change in last 7 days compared to the last month)
* Is it in healthy bounds (over 80) or unhealthy bounds (less then 60) for the last month ?

|Deep sleep %
a|* Has it recently improved or worsened? (last 7 days compared to last 60 days).
* Is it in healthy bounds for last 60 days average (25% - 75%)?
Expand Down
15 changes: 9 additions & 6 deletions sleep/chrono_jetlag.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,19 @@ image::chrono_weekdays.png[]
[[regularity]]

== Sleep Regularity
To get maximum of your sleep time, it is crucial to sleep regularly – go to sleep at the same time every day and sleep for a fixed period of time.
Sleep regularity is a key to healthy sleep - ideally you go to sleep at the same time every day and sleep for the same period of time. You can read about https://www.sciencedirect.com/science/article/abs/pii/S2352721823001687[how sleep regularity affects the speed of you aging].

Sleep as Android tracks your sleep irregularity and shows you in <</sleep/charts#,Charts>> how irregular your sleep is.

The irregularity shown is the https://en.wikipedia.org/wiki/Variance[variance] of your mid sleep hour.
The regularity shown is the https://en.wikipedia.org/wiki/Variance[variance] of your mid sleep hour and as Sleep regularity index.

Sleep as Android tracks your sleep regularity and shows you in <</sleep/charts#,Charts>> how regular your sleep is.

[[sri]]

=== Sleep Regularity Index
SRI is a metric calculated as the probability of an individual being in the same state (asleep or awake) at any two time points 24 hours apart (range 0–100, with 100 being perfectly regular).
This index can be used for monitoring your risk of health issues - read about the link https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10153326/[between SRI and mortality], or the link https://www.nature.com/articles/s41598-017-03171-4[between SRI and academic performance].
https://sleep.urbandroid.org/sleep-regularity-index/[SRI] is a metric calculated as the probability of an individual being in the same state (asleep or awake) at any two time points 24 hours apart (range 0–100, with 100 being perfectly regular).

It is accounting for awakes, naps, and works well even for polyphasic sleep patterns.

This index can be used for monitoring your risk of health issues - read about the link https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10153326/[between SRI and mortality], the link https://www.nature.com/articles/s41598-017-03171-4[between SRI and academic performance].

You can also read how https://academic.oup.com/sleep/article/44/10/zsab103/6232042[SRI compares to other sleep metrics].
6 changes: 3 additions & 3 deletions sleep/sleepscore.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ Unfavourable: over 20

a|image::irregularity_pie.png[]
*Regularity*
|How regular your sleep is. Variance of your mid-sleep hour.
|How regular your sleep is. https://en.wikipedia.org/wiki/Variance[Variance] of your mid-sleep hour and Sleep Regularity Index.
|Deviation of sleep duration and mid sleep hour.
|SRI, <</sleep/chrono_jetlag#sri,more details here>>
|Healthy: under 0.5 hours for regularity, as close to 100 for SRI as possible.
Unfavourable: over 1 hour
|Healthy: under 0.5 hours for regularity, over 80 for SRI.
Unfavourable: over 1 hour, less then 60 for SRI

a|image::deepsleep_pie.png[]
*Deep Sleep*
Expand Down

0 comments on commit 3895d7b

Please sign in to comment.