nappinappi

How SleepSense Works

A plain-English look at what the algorithm does and why it works

The formula

SleepSense looks at three things to figure out when your baby needs sleep:

Next nap = How long baby can stay awake at this age + time-of-day adjustment + what we've learned from your baby
1. Age-Based Wake Windows

How long babies at each age can comfortably stay awake before they need sleep. These ranges come from pediatric sleep studies.

2. Time-of-Day Adjustment

Babies (and adults!) naturally get sleepier at certain times of day β€” like mid-morning and early afternoon. We factor that in.

3. Personal Pattern Detection

After 5+ days of tracking, nappi starts to learn your baby's own rhythm and blends it with the general guidelines.

Complete SleepSense reference table

Every number the algorithm uses, all in one place. This is what SleepSense starts with before it learns your baby's personal patterns.

AgeWake WindowNapsTotal SleepNightDay NapsNap LengthBedtimeMin Catnap
0-2 weeks45 min616h8h8h30-45 min9-11 PM30 min
2-4 weeks1h 20m515.5h8h7.5h30-45 min9-11 PM30 min
4-6 weeks1h 35m415.5h8.5h7h30-45 min9-11 PM30 min
6-8 weeks1h 45m415h8.5h6.5h30-60 min8-10 PM30 min
8-10 weeks1h 55m415h9.5h5.5h30-60 min8-10 PM30 min
10-12 weeks2h 5m315h9.5h5.5h30-60 min8-10 PM30 min
3-4 months1h 55m314.5h10h4.5h45-60 min7:30-9 PM35 min
4-5 months1h 55m314h10h4h45-60 min7-8 PM35 min
5-6 months2h 10m314h10.5h3.5h45-90 min7-8 PM35 min
6-7 months2h 25m313.5h10.5h3h60-90 min6:30-7:30 PM40 min
7-8 months2h 40m2-313.5h10.5h3h60-90 min6:30-7:30 PM40 min
8-9 months2h 55m213h10.5h2.5h60-120 min6:30-7:30 PM40 min
9-10 months3h 10m213h10.5h2.5h60-120 min6:30-7:30 PM40 min
10-12 months3h 30m212.5h10h2.5h60-120 min6:30-7:30 PM40 min
12-14 months3h 50m212.5h10h2.5h90-150 min7-8 PM45 min
14-18 months4h 40m1-212h10h2h90-150 min7-8 PM45 min
18-24 months5h 40m112h10.5h1.5h90-150 min7-8 PM45 min
24+ months6h 10m111.5h10.5h1h90-150 min7-8 PM45 min

Wake windows and sleep totals come from different studies and won't always add to exactly 24 hours. That's normal β€” real babies don't follow a formula. SleepSense uses wake windows as the primary driver and adjusts nap durations based on your baby's actual patterns.

How tiredness builds

Your baby's need for sleep doesn't build at a steady rate. It starts slow after waking, ramps up in the middle of awake time, then levels off:

  • Low: Baby just woke up or hasn't been awake very long. Wide awake and happy β€” not ready for sleep yet.
  • Building: Getting closer to nap time. You might start seeing early sleepy cues like yawning or eye-rubbing.
  • Just right: This is the sweet spot. Baby is tired enough to fall asleep easily, but not so tired they're fussy.
  • Overtired: Stayed awake too long. Stress hormones kick in, which can actually make it harder to fall asleep.

Time-of-day patterns

Babies naturally get sleepier at certain times. SleepSense adjusts its predictions based on these patterns:

  • Mid-morning (9-11 AM): A natural dip in energy β€” many babies are ready for their first nap around here (-10% on wake window)
  • Early afternoon (1-3 PM): The sleepiest part of the day for most babies (-15% on wake window)
  • Late afternoon (5-7 PM): A burst of energy β€” the "second wind" that makes late naps tricky (+10% on wake window)
  • Evening (7-9 PM): Energy dips again as the body winds down for the night (-10% on wake window)

Wake windows and nap durations by age

This is the baseline data SleepSense starts with. Naps start short (about 45 minutes) for newborns and get longer as babies learn to string sleep cycles together:

Age-Appropriate Bedtimes

Bedtime naturally shifts earlier as babies grow. Before 3 months, late bedtimes (9-11 PM) are completely normal β€” your baby's internal clock is still developing. By 4-6 months, most families settle into a 7-8 PM bedtime.

Bedtime-Optimized Catnaps

When the last nap would push bedtime too late, SleepSense caps it at one sleep cycle. Just enough sleep to take the edge off so your baby isn't overtired at bedtime, but short enough to keep bedtime on track.

Here's what happens behind the scenes: SleepSense works backwards from your bedtime setting, figures out when the last nap needs to end, and shortens it to one sleep cycle if a full nap would push bedtime too late. It won't cut the awake time before the catnap too short, though β€” baby still needs to be tired enough to actually fall asleep.

Catching up on lost sleep

SleepSense looks at how much your baby slept over the last 3 days and compares it to what's typical for their age. If they're running on less sleep than usual, wake windows get shortened by up to 10% β€” a tired baby needs rest sooner. If they had extra sleep, windows stretch a little. This keeps predictions accurate after a rough night or an unusually long nap day.

Sleep Regressions

Around 4, 8-10, 12, 18, and 24 months, babies go through big developmental leaps that can throw their sleep off. SleepSense knows about these phases and widens its prediction window to give you more flexibility. You'll see a heads-up when your baby is in one, so you know it's normal (and temporary).

Confidence Scoring

Every prediction comes with a confidence level so you know how much to trust it:

Days 1-3: Guidelines mode β€” age-based suggestions while SleepSense gets to know your baby
50-65% β€” Starting to see patterns (3-5 days of tracking)
65-80% β€” Solid patterns forming (5-10 days)
80%+ β€” Highly personalized (10+ days of consistent data)

SleepSense needs at least 3 days of sleep data before it starts making predictions. Until then, it shows age-based guidelines. Once predictions kick in:

Confidence = 50% (general sleep science) + up to 50% (how well it knows your baby)

The research behind it

SleepSense is built on findings from these published studies:

Why babies get sleepy
Adenosine, caffeine, and sleep-wake regulation: state of the science and perspectives - Journal of Sleep Research, 2022

How a chemical called adenosine builds up during awake time and creates the need for sleep.

How babies develop daily rhythms
Development of the circadian system in early life: maternal and environmental factors - Journal of Physiological Anthropology, 2022

Babies start developing regular sleep-wake cycles between 6-12 weeks, getting more predictable over time.

How much babies sleep at each age
Longitudinal Study of Sleep Behavior in Normal Infants - JCSM, 2014

Nighttime sleep grows from about 6.7 hours at 1 month to 11.7 hours at 7 months. Daytime naps go from 3-4 per day at 3 months down to about 2 by 12 months.

How sleep changes in the first two years
The Architecture of Early Childhood Sleep Over the First Two Years - Maternal and Child Health Journal, 2023

Total sleep time goes from about 13.3 hours at 1 month to 12.2 hours at 12 months. Daytime sleep shrinks from 6.5 hours to just 1.5 hours by 18 months.

Why nap timing matters for nighttime sleep
Daytime nap controls toddlers' nighttime sleep - Scientific Reports, 2016

When a nap happens during the day has a real impact on how well (and how long) the baby sleeps at night.

Why personalization matters

Every baby is different. How quickly they get tired depends on:

  • Their unique biology
  • Their environment (light, noise, activity)
  • What developmental stage they're in
  • Their personality and temperament

This is why a standard wake window chart works perfectly for some babies and not at all for others. SleepSense learns what makes your baby tick and adjusts accordingly.

Corrected Age for Premature Babies

Babies born before their due date develop on a different timeline. SleepSense automatically accounts for this when you enter a due date:

  • A baby born 2 months early at 4 months old gets wake windows for a 2-month-old
  • The adjustment applies automatically until 24 months
  • Full-term babies (born on or after due date) are unaffected

Transparency

nappi shows you what's behind every prediction:

  • What factors went into this specific prediction
  • How confident the prediction is, and why
  • Whether it's based on general age guidelines or your baby's own patterns