SLEEP_SCORE

Good sleep is crucial for pretty much everything we do.

Sleep is a powerful stress-reliever. It improves concentration, regulates mood, and sharpens judgment skills and decision-making. A lack of sleep not only reduces mental clarity but negatively impacts your ability to cope with stressful situations. So getting a good night’s sleep is incredibly important for your health. In fact, it’s just as important as eating a balanced, nutritious diet and exercising.

Getting enough sleep has many benefits. It can help you:

  • get sick less often

  • reduce stress and improve your mood

  • get along better with people

  • increase concentration abilities and cognitive speed

  • make good decisions and avoid injuries

How much sleep is enough sleep?

The amount of sleep each person needs depends on many factors, including age. For most adults, 7 to 8 hours a night appears to be the best amount of sleep, although some people may need as few as 5 hours or as many as 10 hours of sleep each day.

Your sleep is not directly recorded, only your taps on your smartphone are captured and analysed by our algorithm. This includes, for example, when you check the time on your smartphone at night.

When monitoring your sleep, these components are used:

  • Duration of sleep

  • Regularity of sleep

  • Sleep interruptions (taps during the night)

  • Longest sleep session without interruption

The data reflects your sleep patterns over the past 7 days and the most weight is placed on the previous night. This data is fed into a validated algorithm that predicts and estimates the likelihood of when you sleep.

Checkout our scientific literature about sleep:

Functions

Link copied to clipboard
Link copied to clipboard
open override fun getMetric(mvpDao: MVPDao): Flow<List<StatisticEntity>>
Link copied to clipboard
open override fun getReferencePopulationRange(basicInfo: BasicInfo): Range

Use this function to retrieve the reference population values for the current user. You need to provide the BasicInfo that you can obtain from QA.basicInfo.

Link copied to clipboard
open override fun getStat(apiService: ApiService, identityId: String, participationId: String, from: String, to: String): Flow<ApiResponse<List<StatisticEntity>>>
Link copied to clipboard
open override fun insertOrUpdateMetric(mvpDao: MVPDao, statistics: List<StatisticEntity>)
Link copied to clipboard
open override fun prepareReturnData(values: List<StatisticEntity>, from: Long, to: Long): TimeSeries<Double>
Link copied to clipboard