2. Let's briefly introduce the principle of sleep detection: according to the use state of the mobile phone, the change of light in the environment where the mobile phone is located and other factors, combined with the alarm clock time of the mobile phone, judge the user's bedtime and wake-up time, and calculate the sleep duration. Then the body movement during sleep is collected by the mobile phone sensor, and the characteristics of deep sleep are analyzed.
3. Xiaomi Health detects sleep through mobile phones. On the one hand, we need to constantly optimize the algorithm, on the other hand, we need to pay attention to some conditions when using it: 1. Make a work and rest plan, use the work and rest management function in the clock, set the bedtime and wake-up time, and try to work and rest as planned. Especially recommended for users who are used to sleeping during the day.
4. When sleeping, put your mobile phone on the pillow. Try to put your mobile phone on a soft mattress, no more than 50 cm away from your body. The closer the distance, the easier it is to be detected. If the mobile phone is far away from the body or still, it may lead to no obvious body movement and it is impossible to analyze deep sleep.
5. In order to prevent the health APP process from being killed, it is recommended that you lock the health APP in the background, turn on the "self-start" permission in System Settings-Health, and set the power saving policy to "unlimited".