Skip to content
FocusCurve

How FocusCurve works

FocusCurve uses the two-process model of sleep regulation, proposed by Alexander Borbély in 1982 and refined over four decades. It is one of the most tested ideas in sleep science. Here is what it says, how we turned it into a curve, and where it can be wrong.

An educational estimate from a published sleep model, not medical advice.

Process S: sleep pressure

While you are awake, a pressure to sleep builds up. Biologically it is linked to substances such as adenosine that accumulate in the brain. In the model it rises quickly at first and then more slowly, approaching a ceiling with a time constant of 18.2 hours. During sleep it drains away faster, with a time constant of 4.2 hours. That is why one short night leaves pressure behind the next morning, and why the end of a long day feels heavy.

Process C: the body clock

Independently, a clock in the brain (the suprachiasmatic nucleus) runs a roughly 24-hour rhythm. It promotes wakefulness during your biological day and sleep during your biological night. Its low point falls in the early morning, a few hours before you would wake naturally; its high point comes in the late afternoon or evening. Larks run this clock earlier, owls later.

From two processes to one curve

To turn the model into alertness, we use the scale of the three-process model of Åkerstedt and Folkard: alertness equals a homeostatic part that falls as sleep pressure rises, plus a circadian wave with an amplitude of 2.5 units peaking at 16:48 for a typical sleeper, plus sleep inertia, the grogginess right after waking, which fades with a rate of 1.51 per hour. We then add a modest early-afternoon dip, which the classic model leaves out but which many studies observe.

Your inputs

Your bedtime and wake time give last night's sleep length. Before that night we assume a regular 16-hour day, so the model knows how much sleep pressure you went to bed with. Your chronotype comes from three questions based on the Munich ChronoType Questionnaire: the midpoint of your sleep on free days, corrected for sleep you catch up on. A typical midpoint is about 04:00; each hour later shifts your body clock one hour later. Coffee adds a temporary boost that peaks about 50 minutes after the cup and fades with a five-hour half-life. A nap lowers sleep pressure, with some grogginess afterwards if it is long.

How the windows are found

We sample the curve every five minutes. The post-lunch dip is the deepest local low in the middle of your day. Peak focus is the highest stretch between waking and the dip, after grogginess has cleared. Second wind is the highest stretch after the dip, if your curve really rises again. Wind-down is the last two hours before your suggested bedtime, when evening melatonin usually starts to rise. Bedtime is set for eight hours of sleep before the same wake time tomorrow, a little earlier after a short night, but never deep inside your evening wake-maintenance zone, when your body clock makes sleep hard.

What the model cannot know

Real alertness also depends on light, stress, food, illness, medication, age, nights of accumulated sleep debt and simple individual differences. The parameters are averages from groups of healthy adults, and the alertness score is relative, not a test result. Treat the windows as a starting point and adjust them to what you notice. FocusCurve is not a medical device and is not suitable for judging fitness to drive, fly or work safety-critical shifts.

Parameters

Every number comes from the data file in our source code, with its references. Values we chose ourselves are marked as our calibration.

ParameterValueSource
Sleep pressure rise while awake (time constant)18.2 h[2][3][4]
Sleep pressure fall during sleep (time constant)4.2 h[2][3][4]
Body clock amplitude2.5[5][6]
Body clock peak, typical sleeper16:48[5][6]
Body clock low pointmid-sleep on free days + 0.8 h[5][10][7][8]
Sleep inertia−5 × e^(−1.51 × hours since waking)[5][6][16]
Post-lunch dip1.1 units deep, about 9 h after the body clock lowour calibration[11][12]
Caffeine half-life5 h[19]
Coffee cutoff before bed8 h[18]
Sleep planned for tonight8 h[23]

References

  1. Borbély AA. A two process model of sleep regulation. Human Neurobiology. 1982;1(3):195-204.
  2. Daan S, Beersma DG, Borbély AA. Timing of human sleep: recovery process gated by a circadian pacemaker. American Journal of Physiology. 1984;246(2 Pt 2):R161-R183.
  3. Borbély AA, Daan S, Wirz-Justice A, Deboer T. The two-process model of sleep regulation: a reappraisal. Journal of Sleep Research. 2016;25(2):131-143.
  4. Skeldon AC, Dijk DJ, Derks G. Mathematical models for sleep-wake dynamics: comparison of the two-process model and a mutual inhibition neuronal model. PLoS ONE. 2014;9(8):e103877.
  5. Åkerstedt T, Folkard S. The three-process model of alertness and its extension to performance, sleep latency, and sleep length. Chronobiology International. 1997;14(2):115-123.
  6. Åkerstedt T, Folkard S, Portin C. Predictions from the three-process model of alertness. Aviation, Space, and Environmental Medicine. 2004;75(3 Suppl):A75-A83.
  7. Roenneberg T, Wirz-Justice A, Merrow M. Life between clocks: daily temporal patterns of human chronotypes. Journal of Biological Rhythms. 2003;18(1):80-90.
  8. Roenneberg T, Kuehnle T, Juda M, et al. Epidemiology of the human circadian clock. Sleep Medicine Reviews. 2007;11(6):429-438.
  9. Horne JA, Östberg O. A self-assessment questionnaire to determine morningness-eveningness in human circadian rhythms. International Journal of Chronobiology. 1976;4(2):97-110.
  10. Duffy JF, Dijk DJ, Klerman EB, Czeisler CA. Later endogenous circadian temperature nadir relative to an earlier wake time in older people. American Journal of Physiology. 1998;275(5):R1478-R1487.
  11. Monk TH. The post-lunch dip in performance. Clinics in Sports Medicine. 2005;24(2):e15-e23.
  12. Lavie P. Ultrashort sleep-waking schedule. III. 'Gates' and 'forbidden zones' for sleep. Electroencephalography and Clinical Neurophysiology. 1986;63(5):414-425.
  13. Broughton RJ. Chronobiological aspects and models of sleep and napping. In: Dinges DF, Broughton RJ, eds. Sleep and Alertness. Raven Press; 1989:71-98.
  14. Strogatz SH, Kronauer RE, Czeisler CA. Circadian pacemaker interferes with sleep onset at specific times each day: role in insomnia. American Journal of Physiology. 1987;253(1 Pt 2):R172-R178.
  15. Burgess HJ, Fogg LF. Individual differences in the amount and timing of salivary melatonin secretion. PLoS ONE. 2008;3(8):e3055.
  16. Hilditch CJ, McHill AW. Sleep inertia: current insights. Nature and Science of Sleep. 2019;11:155-165.
  17. Brooks A, Lack L. A brief afternoon nap following nocturnal sleep restriction: which nap duration is most recuperative? Sleep. 2006;29(6):831-840.
  18. Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine. 2013;9(11):1195-1200.
  19. Nehlig A. Interindividual differences in caffeine metabolism and factors driving caffeine consumption. Pharmacological Reviews. 2018;70(2):384-411.
  20. Wieth MB, Zacks RT. Time of day effects on problem solving: when the non-optimal is optimal. Thinking & Reasoning. 2011;17(4):387-401.
  21. Facer-Childs E, Brandstaetter R. The impact of circadian phenotype and time since awakening on diurnal performance in athletes. Current Biology. 2015;25(4):518-522.
  22. Van Dongen HPA, Maislin G, Mullington JM, Dinges DF. The cumulative cost of additional wakefulness: dose-response effects on neurobehavioral functions and sleep physiology from chronic sleep restriction and total sleep deprivation. Sleep. 2003;26(2):117-126.
  23. Watson NF, Badr MS, Belenky G, et al. Recommended amount of sleep for a healthy adult: a joint consensus statement of the AASM and SRS. Sleep. 2015;38(6):843-844.

When will your brain be at its best today?

Draw my curve