- Sleep as android сонар
- Sensors
- 1. Motion sensors
- 2. Sonar
- 3. Heart rate sensors
- 4. Breath rate / SpO2 sensors
- 5. Light level sensors
- Duration is shorter, lenght is wrong
- How do I get BT smart heart rate device work with Sleep as Android?
- How does Sleep as Android (actigraphy) compare to Polysomnography?
- How does the Battery saving mode in Sleep tracking work?
- I do not trust the results, it is fake / generating random data
- I have a dog / cat sleeping with me in bed. Will the sleep tracking be accurate?
- Is sonar safe?
- Phone gets hot during tracking
- Quick guide to start with Sleep as Android
- Smart wakeup
- 1. What it does
- 2. Where to find it
- 3. Options
- 4. Advanced options
- Alarm rings before set alarm time
- Alarm sound is too quiet
- Alarms do not play selected ringtone
- Alarms do not ring
- Alarms go off exactly at the alarm time
- Alarms go off exactly at the beginning of smart period
- Alarms go off one hour late (59 minutes)
- Alarms play at max volume
- Calendar skipped my alarm
- Captcha did not work at all
- Duration is shorter, lenght is wrong
- Full screen alarm is not displayed on Android 10
- Google Play Music
- How do I get BT smart heart rate device work with Sleep as Android?
- How does Sleep as Android (actigraphy) compare to Polysomnography?
- How does the Battery saving mode in Sleep tracking work?
- How to disable alarm before alarm time
- I do not trust the results, it is fake / generating random data
- I had to solve Captcha (not at home) when I was not at home
- I have a dog / cat sleeping with me in bed. Will the sleep tracking be accurate?
- Is sonar safe?
- Lockscreen does not unlock on alarm
- My selected Spotify playlist / album is not played on alarm (or different playlist, different album)
- Only the first created alarm goes off
- Phone gets hot during tracking
- Quick guide to start with Sleep as Android
Sleep as android сонар
Сообщение отредактировал treake — 05.04.11, 03:21
А Smart Alarm Clock почил?
А я то и не знал, стоит работает, польза есть или нет уже и не знаю, привык что он звонит по утрам.
cruse
Smart Alarm Оказывается жив (как проект), но у меня на desire он после пары недель использования перестал отслеживать фазы сна, посему был удален, и я не следил за проектом, сейчас специально залез в маркет и увидел новую версию. Однако доверия уже нет. Посмотрим как поведет себя этот. Если также, то жаль, идея то хорошая и реально вставать легче, пусть и раньше, чем необходимо, но не разбитым.
Сообщение отредактировал absolute3 — 18.01.11, 09:26
Очень давно хотел правильно-работающий слиптрекер! Сегодня опробовал, пока ничего не могу сказать конкретно про пробуждение т.к у меня была бессоница где-то с 5 до 8 утра, это можно заметить по графику ниже, плюс к тому же под утро из-за этого решил переставить будильник на 14:00 с запасом на проверку фазы в 2 часа, т.е. он должнен был прозвенеть в период с 12 до 14, и тут к сожалению проснулся сам в 11:40.. Но несмотря на эти неудачи мне уже нравится, куча настроек, в т.ч. указания среднего времени необходимого для сна, производит впечатление умной программы, очень понравились тоны которые можно скачать прямо из меню, правда их всего 4, но они именно такие как я хотел для будильника, пение птиц, шум океана..
Телефон был где-то по середине под подушкой на зарядке, мне почему-то показалось, что так он будет лучше отслеживать;) и наверное зря, потому что под утро я чуть ли не через подушку чувствовал жар от него, посмотрел температуру виджетом — 50 градусов:shok: Понравилось, что трекер действительно работает, строит и сохраняет графики, привожу в пример свой сегодняшний;) буду пробовать дальше..
Сообщение отредактировал toshimself — 19.01.11, 14:11
Источник
Sensors
Sleep as Android measures your sleep using various sensors. You can use sensors that are in your phone, or purchase additional devices and use their sensors, or use a combination.
1. Motion sensors
Basic sleep tracking is done using a motion sensor.
Can be either in the phone or in a connected wearable. If you want to track motion using a wearable, see Smartwatch and Wearables.
Our invention — the sonar — uses your phone’s speaker and microphone to sense movement in the near surroundings. Can be used only on the phone. Can detect breath rate in ideal conditions. Read more about Sonar.
Passive infrared sensor is mounted on the Sleep Phaser and can detect breath rate in addition to coarse movement.
See How to track sleep for details on optimal setup of your sensor in the bedroom for best results.
2. Sonar
Sonar brings contact-less motion tracking. No more need for a device attached to your wrist or in the bed.
You don’t need any new hardware for that – everything is already in your smartphone (check our device compatibility list): microphone, speaker, and required computing power.
During tracking with sonar the phone produces ultrasonic signal (which cannot be heard by most). Even tiny movements distort the reflected signal which allows us to track them when we record them with the microphone.
On many devices Sonar tracking is so precise we are even able to track your abdominal movements and display your Breath-rate in the sleep graph.
Sonar won’t work with connected headphones. |
The sonar sensor might not work on Android 11, when the tracking is started automatically due to changes in the permissions — apps running in the background cannot ask for the mic. To workaround this we would need to have the «Draw over other apps permission» and start a transparent short lived screen before we start the sleep tracking service. Please see the history of the issue here: https://issuetracker.google.com/issues/162913367 |
3. Heart rate sensors
Heart rate is used to better distinguish awake state.
4. Breath rate / SpO2 sensors
Breath rate detection is used to monitor healthy levels of breathing and tries to catch early signs of breathing disturbances.
5. Light level sensors
Ambient light sensors that are present in nearly every smartphone measure the level of ambient light in your bedroom.
Duration is shorter, lenght is wrong
​The Sleep Duration is total sum of all your sleep phases (Light, REM, and Deep), not counting the awake phases — because when awake, you are actually not sleeping.
​So on default settings, the Sleep duration is always a bit shorter than the duration of tracking.
​If you wish your Sleep duration is the same as tracking duration:
Disable the awake detection in Settings → Sleep tracking → Awake detection.
You can also try to adjust the sensitivity of each type of settings to get optimal results. In most cases, too much awake periods are caused by significant HR peaks.
If you are not sure, where those awake periods come from, please use Left в° menu → Support → Report a bug, and send us the application log.
How do I get BT smart heart rate device work with Sleep as Android?
Enable the tracking in Settings → Wearables →Bluetooth Smart (might be hidden under Advanced section).
Try to pair with your device (this may not be required for all devices and OS versions).
Make sure no other app is using your device while sleep tracking.
If nothing helps please send us a debug report using Left в° menu → Support → Report a bug..
BT Smart heart rate tracking only works from Android 4.3 onward |
How does Sleep as Android (actigraphy) compare to Polysomnography?
We use a different input than polysomnographists, and define our own sleep phases, reflecting an objective aspect of sleep, easy to measure with common devices. One naturally needs to ask whether there is any relationship between the EEG-phases and our ACT-phases.
Fortunately, several research teams raised similar questions before (See this one, or this one, or this one, or this one). They measured a bunch of people on a traditional polysomnograph and recorded their physical activity at the same time (By filming them and then counting the movements manually, or by using accelerometer readings). The published analyses show that there indeed is a significant statistical relationship between EEG-phases and body movements.
You can also read about comparison of Sleep as Android algorithms and Sleep lab results on our blog here.
How does the Battery saving mode in Sleep tracking work?
Battery saving mode currently resumes full tracking before the smart wake up period in order to find the best moment for your wake up, so the tracking uses up just a fraction of the battery consumption for the whole night. If the battery would drop under your defined stand-by threshold (default: 10%) the battery saving mode will re-occur.
I do not trust the results, it is fake / generating random data
Accelerometric sensors are really sensitive, which is great for sleep tracking. Normally, what you see when you leave the phone on the table gets immediately dwarfed when you do some more significant move. Just leave phone on the table for a while and you will see a dramatic development, but then move the phone and you will see all the development is really tiny in comparison to the new peak.
So what you see is random noise, given by very small vibrations of the table or in very calm areas by seismic movement. We mark the data relatively, so you always get it distinguished into light and deep sleep. But the algorithm works well only in conditions that are assumed by it, i.e. in the bed with relatively large movement peaks.
To be more specific, if you leave the phone on a table, you can get values perhaps on the scale of 0.000001 to 0.000009 m/s2 (The value is made up here, but it is physically very small). In the bed, you may get values from 1 to 9 m/s2 (which is physically large). The algorithm sees though just that the high value is 9 times higher than the low value, in both cases.
We had to do this because every accelerometer (in different cell phones) measures differently, so we couldn’t assume any standard conversion formula that would respond to absolute values.
So if you use the phone in the bed, it is in fact drastically different from measuring on a calm spot, just like the table.
Please do not hesitate to ask for any clarification at support@urbandroid.org. You can also read more about comparison of our data with the sleep lab results in this post.
I have a dog / cat sleeping with me in bed. Will the sleep tracking be accurate?
This depends on several factors. The general rule is to not allow the pet to move your phone, ideally only your movements should move the device. So in this case it’s best to place Your device either under the pillow or to have an armband or smartwatch/smartband. If your pet is a calm one, it may just work. However, if your pet is used to jump in and out of bed several times a night, the sleep tracking will most probably register these events as light sleep occurrences.
Is sonar safe?
Ultrasound is generally considered safe if it is at normal volume. Regarding health effects, it works in a similar way to normal audible sound, i.e. very loud ultrasound can damage your hearing, whereas at low volume it is safe to hear. When using speakers, smartphones are nowhere close to be able to produce such loud sounds as to damage your hearing.
We also use ultrasound that is very close to the hearing range (around 20 kHz), so the effects of the ultrasound are almost identical to hearing a high pitched sound at the same volume (expect you can’t hear it at all).
The ultrasound volume we use is around 40 dB – which is lower than normal speech volume. You can measure the sound level yourself using e.g. this app.
For pets that are able to hear it, the ultrasound emitted from Sleep as Android is a constant low noise. The situation is similar to e.g. refrigerator noise. It is there, you can hear it, but it’s not so much disturbing. The ultrasound definitely cannot damage your pets hearing at the volume used in Sleep as Android.
Bats can be confused and fly into walls.
The only difference between normal audible sound and our sonar is that the frequency is a little higher (normal frequencies 2 Hz-20 kHz, our sonar frequencies 18 kHz-22 kHz). This is so small difference for the mic and speaker membranes that there is definitely no chance of damage, even with prolonged usage.
Phone gets hot during tracking
Usually this is not caused by the sleep tracking directly as this is usually not consuming too much resources (usually around 1-3% battery per hour of tracking).
The issue appears because we hold a wake lock (keeping the phone awake) – any badly written apps may access the CPU extensively during the sleep tracking time. We suggest checking which services are running before you get to sleep.
For us it is hard to debug this. Also battery statistics are not a hint here as all battery consumption is accounted to the app which holds the lock even it did not consume the battery – this is by design in Android.
To conclude, this issue may happen, although we did not get any similar reports for a very long time now. But the most probable cause is some wrong 3rd party service or app on your device.
To see more on the issue we would need a debug report (menu > report a bug).
A good test would be to reboot your phone before sleep tracking (or kill any unnecessary services running) and see if that helps.
Quick guide to start with Sleep as Android
At first Sleep as Android may look complex with all its options, but in fact it is fairly easy to get started improving your sleep and wake up.
You can delve deep into all the amazing options Sleep as Android provides later on. But to get started just rely on our carefully selected defaults.
Источник
Smart wakeup
1. What it does
Looks for the best moment to wake you up for a great morning.
Waking up in light sleep feels natural — like on a weekend, without any alarm.
In contrast, deep sleep wake up (which is common with ordinary alarm clocks) leads to an unpleasant experience accompanied with feeling of tiredness, sleepiness, disorientation.
With smart wake up, you set up a time window (also called Smart wake up period), in which you’d like to be woken up once it is the right moment.
In some cases this option can render Smart wake up ineffective. It can lead to ignoring the smart period for the sake of reaching sleep duration goal. |
Alarm rings before set alarm time
Smart alarm is enabled (see Smart wake up), so the app is waking you within the smart period, when light sleep is estimated.
If that is not what you expect, disable smart period in Settings → Sleep tracking → Smart period.
You can also try different smart period: shortest period is 5 minutes, longest is 2 hours.
Alarm sound is too quiet
Try shorter period in Settings → Alarms → Gentle volume increase, the shortest period is 1 minutes — the volume goes from zero to full volume during one minute.
Check the volume of the ringtone in Settings → Alarms → Ringtone or in the settings of each individual alarm in per-alarm settings.
Alarms do not play selected ringtone
Make sure that you have selected the correct ringtone — check per-alarm settings and Alarm default settings.
Check if the file has not been moved or deleted and that SD card is available at the time of the alarm.
Check that the app has storage permission to access that file.
When the service is not responding for too long, the app uses a build-in ringtone.
When alarm starts and your phone is locked we are unable to change the playlist or album in your Spotify app. In this case the app will play simply where you last left it.
Alarms do not ring
Make sure no system restrictions are applied to Sleep as Android: Check our guide here.
If the guide won’t help, send us your log using Left в° menu → Support → Report a bug.
Alarms go off exactly at the alarm time
Increase the sensitivity of Smart wakeup in Settings > Sleep tracking > Movement intensity.
If you feel the smart alarm is not working at all, please send us the application log by using Left в° menu → Support → Report a bug.
Alarms go off exactly at the beginning of smart period
Lower the sensitivity of Smart wakeup in Settings → Sleep tracking → Movement intensity.
If you feel the smart alarm is not working at all, please send us the application log by using Left в° menu → Support → Report a bug.
Alarms go off one hour late (59 minutes)
Your smart period is set to Power nap (see power nap)
When this option is selected as your smart wake up method, the warning screen with an explanation needs to be confirmed.
Change the smart wake up period in Settings → Sleep tracking → Smart wake up → Smart period or in Settings → Sleep tracking → Smart wake up → Nap smart period
Alarms play at max volume
Most probably your Backup alarm went off after regular alarm did not wake you up. Backup alarm is triggered when there is no interaction (no snooze, no dismiss) for more than 20 minutes.
Make sure you are using volume strong enough in Settings → Alarms → Ringtone, or enable Gentle Volume increase in Settings → Alarms → Gentle volume increase
Try vibrations (Settings → Alarms → Vibrate).
Send us your log using Left в° menu → Support → Report a bug.
Calendar skipped my alarm
If you are using the Skip alarm for holiday feature, SaA might offer to skip your next alarm even if there is no holiday in your country tomorrow. This is because we use Google public holiday calendar, which is sometimes wrong.
Captcha did not work at all
Send us the application log by using Left в° menu → Support → Report a bug right after you encounter any troubles with the Captcha task. Please, add a short description, what exactly is happening.
Duration is shorter, lenght is wrong
​The Sleep Duration is total sum of all your sleep phases (Light, REM, and Deep), not counting the awake phases — because when awake, you are actually not sleeping.
​So on default settings, the Sleep duration is always a bit shorter than the duration of tracking.
​If you wish your Sleep duration is the same as tracking duration:
Disable the awake detection in Settings → Sleep tracking → Awake detection.
You can also try to adjust the sensitivity of each type of settings to get optimal results. In most cases, too much awake periods are caused by significant HR peaks.
If you are not sure, where those awake periods come from, please use Left в° menu → Support → Report a bug, and send us the application log.
Full screen alarm is not displayed on Android 10
Please note that Google made it impossible to start screens from background on Android 10. This is why we can no longer show the alarm screen with the big buttons under usual settings. On Android 10, the app can just show notifications from background if screen is on when alarm starts. If screen is locked we usually are able to show the full screen alarm.
To get full screen alarms back:
. Enable the option Always fullscreen alarm in Settings → Alarms → Always fullscreen alarm (might be hidden under Advanced in Snooze/Dismiss section).
Google Play Music
Online Google Play Music is not supported. We only support playlists of locally available music created by Google Play Music. |
Sleep will only see playlists:
that are created from local music
Sleep will NOT see playlists:
that are created in Play Music web app (https://play.google.com/music/) and downloaded via Play Music
that are created from music that was downloaded via Play Music app (using the download button inside Play Music)
The reason is that we actually do not support Google Play Music at all. We support Android Playlist API which is supported by Play Music and other media player apps – they can register a list of songs as a playlist (locally on the phone), and then we see this playlist.
However Play Music in fact has another internal way of creating playlists, which is somehow different and not transparent to us, and we are unable to read these playlists.​
That’s why when selecting the playlist in Sleep as Android, sometimes you hear the playlist and sometimes not.
How do I get BT smart heart rate device work with Sleep as Android?
Enable the tracking in Settings → Wearables →Bluetooth Smart (might be hidden under Advanced section).
Try to pair with your device (this may not be required for all devices and OS versions).
Make sure no other app is using your device while sleep tracking.
If nothing helps please send us a debug report using Left в° menu → Support → Report a bug..
BT Smart heart rate tracking only works from Android 4.3 onward |
How does Sleep as Android (actigraphy) compare to Polysomnography?
We use a different input than polysomnographists, and define our own sleep phases, reflecting an objective aspect of sleep, easy to measure with common devices. One naturally needs to ask whether there is any relationship between the EEG-phases and our ACT-phases.
Fortunately, several research teams raised similar questions before (See this one, or this one, or this one, or this one). They measured a bunch of people on a traditional polysomnograph and recorded their physical activity at the same time (By filming them and then counting the movements manually, or by using accelerometer readings). The published analyses show that there indeed is a significant statistical relationship between EEG-phases and body movements.
You can also read about comparison of Sleep as Android algorithms and Sleep lab results on our blog here.
How does the Battery saving mode in Sleep tracking work?
Battery saving mode currently resumes full tracking before the smart wake up period in order to find the best moment for your wake up, so the tracking uses up just a fraction of the battery consumption for the whole night. If the battery would drop under your defined stand-by threshold (default: 10%) the battery saving mode will re-occur.
How to disable alarm before alarm time
You can disable an alarm before the alarm time, if you wake up naturally before the alarm rings.
From notification — 1 hour before alarm time, the «Before alarm notification» appears in your notification bar; expand the notification and choose «Dismiss».
From the tracking graph — if you terminate the tracking, you can dismiss the alarm directly form the resulting graph.
From main screen — long press on the alarm card, and select «Skip next».
Any of these options won’t have any influence on future alarms — if you have repeating alarm, the alarm will ring at the next scheduled time. |
I do not trust the results, it is fake / generating random data
Accelerometric sensors are really sensitive, which is great for sleep tracking. Normally, what you see when you leave the phone on the table gets immediately dwarfed when you do some more significant move. Just leave phone on the table for a while and you will see a dramatic development, but then move the phone and you will see all the development is really tiny in comparison to the new peak.
So what you see is random noise, given by very small vibrations of the table or in very calm areas by seismic movement. We mark the data relatively, so you always get it distinguished into light and deep sleep. But the algorithm works well only in conditions that are assumed by it, i.e. in the bed with relatively large movement peaks.
To be more specific, if you leave the phone on a table, you can get values perhaps on the scale of 0.000001 to 0.000009 m/s2 (The value is made up here, but it is physically very small). In the bed, you may get values from 1 to 9 m/s2 (which is physically large). The algorithm sees though just that the high value is 9 times higher than the low value, in both cases.
We had to do this because every accelerometer (in different cell phones) measures differently, so we couldn’t assume any standard conversion formula that would respond to absolute values.
So if you use the phone in the bed, it is in fact drastically different from measuring on a calm spot, just like the table.
Please do not hesitate to ask for any clarification at support@urbandroid.org. You can also read more about comparison of our data with the sleep lab results in this post.
I had to solve Captcha (not at home) when I was not at home
Not at home feature only works when we see your location is significantly different from the home (В±5km at least) as we do not collect fine location for privacy reasons.
Send us the application log by using Left в° menu → Support → Report a bug.
I have a dog / cat sleeping with me in bed. Will the sleep tracking be accurate?
This depends on several factors. The general rule is to not allow the pet to move your phone, ideally only your movements should move the device. So in this case it’s best to place Your device either under the pillow or to have an armband or smartwatch/smartband. If your pet is a calm one, it may just work. However, if your pet is used to jump in and out of bed several times a night, the sleep tracking will most probably register these events as light sleep occurrences.
Is sonar safe?
Ultrasound is generally considered safe if it is at normal volume. Regarding health effects, it works in a similar way to normal audible sound, i.e. very loud ultrasound can damage your hearing, whereas at low volume it is safe to hear. When using speakers, smartphones are nowhere close to be able to produce such loud sounds as to damage your hearing.
We also use ultrasound that is very close to the hearing range (around 20 kHz), so the effects of the ultrasound are almost identical to hearing a high pitched sound at the same volume (expect you can’t hear it at all).
The ultrasound volume we use is around 40 dB – which is lower than normal speech volume. You can measure the sound level yourself using e.g. this app.
For pets that are able to hear it, the ultrasound emitted from Sleep as Android is a constant low noise. The situation is similar to e.g. refrigerator noise. It is there, you can hear it, but it’s not so much disturbing. The ultrasound definitely cannot damage your pets hearing at the volume used in Sleep as Android.
Bats can be confused and fly into walls.
The only difference between normal audible sound and our sonar is that the frequency is a little higher (normal frequencies 2 Hz-20 kHz, our sonar frequencies 18 kHz-22 kHz). This is so small difference for the mic and speaker membranes that there is definitely no chance of damage, even with prolonged usage.
Lockscreen does not unlock on alarm
Google made it impossible to start screens from the background on newer Android versions. This is why we can no longer show the alarm screen with the big buttons under usual settings. The app can just show notifications from the background if the screen is on when the alarm starts. If the screen is locked we usually are able to show the full-screen alarm.
Go to Settings → Alarms → Always fullscreen alarm (might be hidden under Advanced in Snooze/Dismiss section), and enable this option.
It will take you to the system settings, where you need to grant the Draw over other apps permission.
On Xiaomi/MIUI, you need to grant special permission to Sleep as Android so that it may unlock your screen during alarm.
Go to System Settings → Permissions → Advanced Permissions → select Sleep app and give it permission to access Lockscreen.
If you are using a Captcha task from the Captcha add-on, please, make sure the permission is granted to the add-on as well. |
When alarm goes off, it does not disable the lockscreen and you have to manually unlock the device to tap snooze or dismiss.
You may have Sleep as Android enabled under Border lights. This causes the alarm popup to not display over the lockscreen, as the notification is being shown as a light around the edge of the screen.
Disable Border lights for Sleep as Android in your device’s settings.
My selected Spotify playlist / album is not played on alarm (or different playlist, different album)
Unfortunately our Spotify integration is all reverse engineered and thus may stop working any time Spotify updates their app.
When alarm starts and your phone is locked we are unable to change the playlist or album in your Spotify app. In this case the app will play simply where you last left it. We have not found a fix for this yet.
Only the first created alarm goes off
When multiple alarms are created close together, they might overlap each other.
If you created more alarms to make sure you are waken up, please note, that the app has a Backup alarm feature to make sure you are waken up.
Phone gets hot during tracking
Usually this is not caused by the sleep tracking directly as this is usually not consuming too much resources (usually around 1-3% battery per hour of tracking).
The issue appears because we hold a wake lock (keeping the phone awake) – any badly written apps may access the CPU extensively during the sleep tracking time. We suggest checking which services are running before you get to sleep.
For us it is hard to debug this. Also battery statistics are not a hint here as all battery consumption is accounted to the app which holds the lock even it did not consume the battery – this is by design in Android.
To conclude, this issue may happen, although we did not get any similar reports for a very long time now. But the most probable cause is some wrong 3rd party service or app on your device.
To see more on the issue we would need a debug report (menu > report a bug).
A good test would be to reboot your phone before sleep tracking (or kill any unnecessary services running) and see if that helps.
Quick guide to start with Sleep as Android
At first Sleep as Android may look complex with all its options, but in fact it is fairly easy to get started improving your sleep and wake up.
You can delve deep into all the amazing options Sleep as Android provides later on. But to get started just rely on our carefully selected defaults.
Источник