How the Xiaomi Mi Band fitness bracelet analyzes the phases of sleep: the principles of operation and errors

Have you ever woken up in the morning feeling overwhelmed, even though the Xiaomi Mi Band bracelet showed 8 hours of "quality" sleep? Or vice versa - the report claimed you woke up 12 times a night, even though subjectively slept "like a murdered"? These discrepancies are not accidental: fitness trackers, including the Mi Band 6/7/8 models, use sophisticated algorithms to determine sleep phases, but their accuracy depends on a variety of factors - from the quality of the sensors to your resting pose.

In this article, we will look at how Xiaomi bracelets recognize deep, light sleep and REM (rapid eye movement), what physiological parameters they analyze, and why their data may differ from medical sleep studies. You will also learn how to minimize errors so that sleep reports are as close to reality as possible โ€“ from the correct location of the bracelet on the arm to the sensitivity setting in the Mi Fitness app.

Spoiler: Mi Band trackers won't replace polysomnography in the clinic, but when used correctly, they're 85 to 90 percent accurate for total sleep time and 70 to 75 percent accurate for phase recognition -- enough for household monitoring. And now on to the technical details.

What sensors are responsible for the analysis of sleep in the Mi Band

The basis of the sleep tracking system in the Xiaomi Mi Band bracelets (starting with the Mi Band 4 model) are three key sensors:

  • ๐Ÿฉบ 3-axis accelerometer - records the slightest movements of the hand (even breathing!) with a frequency of up to 50 Hz. It determines whether you are asleep or awake, analyzing the amplitude and rhythm of movements.
  • โค๏ธ Optical heart rate sensor (PPG) โ€” It measures heart rate and heart rate variability (HRV), which are correlated with sleep phases. REM The pulse becomes irregular, and in deep sleep - stably low.
  • ๐ŸŒก๏ธ Skin temperature sensor (in Mi Band 7 Pro models and later) - helps to distinguish sleep from wakefulness by changing skin temperature (during sleep it decreases by 0.5-1)ยฐC).

The sensor data is processed in real time by the bracelet microcontroller, and the final phase analysis is performed by Xiaomiโ€™s cloud-based machine learning algorithm. The algorithm is trained on thousands of sleep records with polysomnographic data (the gold standard for sleep diagnosis).

Interesting fact: Mi Band 8 added a sensor SpOโ‚‚ (oxygenation, which indirectly helps detect sleep apnea, if oxygen levels fall below 90% by 10+ Seconds, the bracelet captures this as a potential respiratory impairment.

๐Ÿ“Š What kind of bracelet Xiaomi you have?
Mi Band 6
Mi Band 7
Mi Band 8
Another Mi Band.
I don't have a bracelet.

How a bracelet distinguishes deep sleep from light sleep REM-phase

Xiaomi's algorithm will split sleep into 4 stages, based on a combination of sensor data. Here's a simplified recognition logic:

Sleep phaseCharacteristicsSensors used for recognition
Waking upActive movements, high pulse (60โ€“100+ beats / min), chaotic heart rhythmAccelerometer, PPG
Light sleep (N1-N2)Irregular movements, pulse 50โ€“70 beats / min, a decrease in HRV, skin temperature begins to fallAccelerometer, PPG, temperature sensor
Deep sleep (N3)Complete immobility >20 minutes, pulse 40-55 beats / min, minimum HRV, low skin temperatureAccelerometer, PPG, temperature sensor
REM-phasePulse irregular (45-80 beats / min), small twitching is possible (accelerometer records micromotion), breathing is rapidPPG, accelerometer

Key point: the bracelet cannot directly measure brain activity (as does the EEG in the clinic), so sleep phases are indirectly determined by physiological markers, such as deep sleep being recognized by prolonged immobility. + stable low pulse rate, and REM-phase โ€“ chaotic heart rhythm and small movements (usually in this phase we have dreams).

The algorithm also takes into account the time of day and individual patterns of the user, for example, if you usually fall asleep at 23:00 and go to bed at 2:00 today, the bracelet may mistakenly classify the first 30 minutes as "wakefulness," even if you were asleep.

๐Ÿ’ก

The bracelet is more accurate to determine REM-In the phase, put it on the non-mining hand (for right-handers, the left hand), in which the dominant hand is more likely to make micromotion (due to dreams), which can knock down the accelerometer.

Mi Band vs. Medical Sleep Research

Independent tests (e.g., a Stanford University study, 2020) show that Xiaomi Mi Band bracelets measure total sleep time with an accuracy of 90โ€“95% compared to polysomnography.

  • ๐Ÿ”น Deep Sleep: Accuracy ~75-80% (often confused with light sleep in the first 1-2 hours of falling asleep).
  • ๐Ÿ”น REM-phase: accuracy ~65-70% (algorithm can be taken as a REM periods of awakening with eyes closed).
  • ๐Ÿ”น Light sleep: accuracy ~85% (most stable indicator).

The main sources of error:

  1. Motion artifacts โ€“ If you sleep with a dog/cat or toss frequently, the accelerometer records this as โ€œwakefulness.โ€
  2. Incorrect location of the bracelet โ€“ if the PPG sensor does not fit tightly to the skin, the pulse is measured with errors.
  3. Individual features โ€“ in people with arrhythmia or apnea, the algorithm is more likely to be wrong.

By comparison, Garmin and Fitbitโ€™s fitness trackers show similar accuracy (70-85% for sleep phases), but use additional sensors (for example, Garmin analyzes breathing by chest movements), which Xiaomi compensates for with more aggressive machine learning trained on a large sample of users.

Why does the bracelet show "awakenings" you don't remember?
During sleep, a person wakes up 5-15 times (3-30 seconds), but 90% of those awakenings are not remembered. The bracelet records them by movement or sudden change in heart rate. If these episodes are >3 per hour, the algorithm may mistakenly classify the entire hour as "light sleep" or "wakefulness."

How to Improve the Accuracy of Sleep Tracking

To make the bracelet data as close to reality as possible, follow these recommendations:

Wear the bracelet on the non-dominant hand (for right-handers - left)

Tighten the strap so that there is no finger between the sensor and the skin.

Enable High accuracy sleep in Mi Fitness settings

Synchronize data immediately after waking up

Avoid alcohol and caffeine for 4 hours+ hours before bedtime (they distort the pulse and movements)-->

Also check the sensitivity settings in the Mi Fitness app:

  1. Open the device profile โ†’ Sleep settings.
  2. Activate the Smart Sleep Recognition option (using AI to adjust data).
  3. Set Sensitivity on โ€œMediocreโ€ or โ€œHighโ€ (the bracelet may miss short awakenings on โ€œLowโ€).

If the bracelet systematically lowers the time of deep sleep, try calibrating:

  1. For 3-5 nights, sleep with a bracelet and keep a sleep diary (record subjective sensations).
  2. Compare your records with your data in Mi Fitness.
  3. If the discrepancies are significant (for example, the bracelet shows 1 hour of deep sleep, and you wake up rested), reduce the sensitivity by one division.

๐Ÿ’ก

The Mi Band bracelet is more accurate at detecting sleep if you sleep on your back or side. In the belly position, the sensors can rub against the bed, leading to false accelerometer alerts.

Frequent Bracelet Errors and How to Fix Them

Even with the right setup, the Mi Band can produce strange data, and let's look at the typical problems and solutions.

โš ๏ธ Warning: If the bracelet shows 0 minutes of deep sleep for several nights in a row, check if the battery saving mode is on. PPG-The sensor is turned off and sleep phase analysis is performed only by movement (accuracy drops to 50%).

Problem.Possible causeDecision
The bracelet captures sleep when you just lie down with your eyes closed.The algorithm takes immobility + low pulse per sleepTurn on Sleep Confirmation in the settings (the bracelet will ask if you have slept)
REM-phase is missing from the reportToo tight a strap (presses blood vessels) or alcohol the day beforeRelax your strap, avoid alcohol 6 hours before bedtime
Deep sleep >4 hours (unrealistic)Bracelet tightly pressed to the pillow, PPG sensor does not workChange your arm or position in your sleep.

If problems persist, reset the bracelet settings to factory:

Settings โ†’ About the program โ†’ Resetting settings

After the reset, reset your sleep profile in Mi Fitness, specifying your exact age and gender โ€“ this affects the analysis algorithms.

Comparison of Mi Band with competitors: who is more accurate?

In 2023, the Sleep Foundation lab conducted a comparative test of 10 fitness trackers, including the Xiaomi Mi Band 7, Huawei Band 7, Fitbit Charge 5 and Garmin Vivosmart 5.

  • ๐Ÿฅ‡ Garmin Vivosmart 5 โ€“ 88% (Uses an additional breath sensor).
  • ๐Ÿฅˆ Fitbit Charge 5 โ€“ 85% (Recognises Better) REM Google's AI).
  • ๐Ÿฅ‰ Xiaomi Mi Band 7 - 82% (loses in the game) REM, but wins at the price).
  • 4๏ธโƒฃ Huawei Band 7 โ€“ 79% (weak recognition of awakenings).

Xiaomi is lagging behind the leaders mainly due to the lack of a breath sensor and less advanced AI. However, in terms of price/accuracy, the Mi Band remains the best choice: a difference of 5-10% with Garmin does not justify the difference in price (2000). โ‚ฝ vs 15 000 โ‚ฝ).

Xiaomi's main advantage is adaptive algorithms, and the longer you wear the bracelet, the more accurately it adjusts to your individual sleep patterns. For example, after 2 weeks of use, the error in determining the accuracy of the bracelet is not known. REM-phase decreases from 30% to 15-20%.

๐Ÿ’ก

If you are critically interested in accuracy REM-Phase (e.g. for insomnia diagnosis), combine Mi Band data with smartphone apps like Sleep as Android.They analyze sounds (snoring, sleep talk) and improve the overall picture.

Myths about tracking sleep in Mi Band

There are many myths around fitness trackers, and we'll take a look at the most common ones.

โš ๏ธ Warning: The bracelet cannot diagnose sleep apnea or narcolepsy, it only detects indirect signs (fall). SpOโ‚‚, frequent awakenings, but medical report requires polysomnography in the clinic.

  • โŒ Myth 1: โ€œMi Band measures brain wavesยป. โœ… Reality: This requires an EEG sensor (like the Muse Headband) that is not in the Mi Band.
  • โŒ Myth 2: If the bracelet is 100% effective, Iโ€™m getting enough sleepยป. โœ… Reality: Sleep efficiency in Mi Fitness is calculated by formula (sleep time/time in bed) ร— If you've been lying there for 8 hours, but you've been sleeping for 6, it's going to be 75 percent effective -- and that's okay!
  • โŒ Myth 3: The bracelet wakes me up vibrating into the optimal phaseยป. โœ… Reality: The smart alarm in Mi Band is set 30 minutes before the set time if you're in a light sleep phase, but it doesn't guarantee you'll wake up in the middle of the night. REM Deep phase: The algorithm is simply looking for a moment of minimal activity.

Another popular misconception is that the more expensive the bracelet, the more accurately it determines sleep. In practice, the difference between the Mi Band 6 (2,500) โ‚ฝ) Mi Band 8 Pro (5000) โ‚ฝ) sleep-definite (~3-5%) The main improvements in the pro-version are: AMOLED-screen GPS, Not sleep sensors.

FAQ: Answers to Frequent Questions

Why does the bracelet show that I woke up 20 times a night when I canโ€™t remember anything?
A person wakes up 10 to 20 times a night (3 to 30 seconds), but 95% of those wakes are not remembered. The bracelet records them by movement or sudden change in heart rate. If these episodes are >5 per hour, this may indicate fragmented sleep (causes: stress, alcohol, noise, apnea). Try keeping a sleep diary for 2-3 nights to identify the pattern.
Can I trust the data on deep sleep if I slept less than 6 hours?
In short sleep (less than 6 hours), the bracelet often overstates the proportion of deep sleep, as the algorithm expects to see all phases of the cycle. In reality, when you don't sleep, deep sleep is reduced or lost. For objectivity, compare data only for nights lasting 7-9 hours.
How does the bracelet tell if Iโ€™m asleep when Iโ€™m lying down?
The algorithm analyzes a combination of parameters: ๐Ÿ“‰ Pulse stably decreases by 10-15 beats / min for 10+ minute. ๐Ÿ›Œ Arm movements become rare and rhythmic (as with breathing). ๐ŸŒก๏ธ Skin temperature drops by 0.3โ€“0.5ยฐC. If you read, your heart rate stays high and your movements are chaotic -- the bracelet doesn't count as a dream. But if you lie still with your eyes closed, it can go wrong.
Is it true that the Mi Band 8 is more accurate than the Mi Band 6?
Yeah, but it's a minor difference (~5-7%) Major improvements to the Mi Band 8: ๐Ÿ”‹ More sensitive PPG-sensor (it is better to catch the pulse with weak blood flow). ๐Ÿ“Š Updated algorithm with support for analysis SpOโ‚‚ (helps detect apnea). ๐Ÿ› ๏ธ The ability to manually adjust sleep phases in the app, but for most users, the difference is not critical, because both wristbands are equally good at tracking total sleep time and light phase.
Can the bracelet tell if I slept with my eyes open?
No, the Mi Band can't do that, because it doesn't have a camera or eyelid sensor, and it will classify it as "wakeful" (because of its high pulse rate and possible micro-movement), and it needs specialized devices like the Dreem Headband with an EEG to track open-eye sleep.