Home▸CBT-I & Sleep Technology▸Sleep Diary Stimulus Control Therapy Simulator

🛏 Sleep Diary Stimulus Control Therapy Simulator

This simulator allows users to track their sleep patterns and apply stimulus control therapy techniques to re-establish the association between bed and sleep.

CBT-I & Sleep Technology2DModerate60 FPS
sleep-diary-stimulus-control-simulator ↗ Open standalone

Weak Bed-Sleep Association

Insomnia often forms when the bed stops predicting sleep.

  • 45–90: Avg sleep onset latency (minutes awake in bed)
  • <70%: Sleep efficiency (time asleep vs in bed)
  • High: Conditioned arousal (bed reads as a wake cue)
  • 5–7: Nights affected per week (chronic insomnia pattern)

Classical conditioning gone wrong

Bed paired with wakeful activities becomes a wake cue.

Pavlov's principle: repeated pairing rewires what the bed signals.

The vicious cycle

Frustration in bed breeds more arousal, less sleep.

Why stimulus control helps

Behavioral rules re-link bed strictly with rapid sleep onset.

Bed For Sleep (And Sex) Only

The bedroom is stripped of every non-sleep activity.

  • 100%: Screens removed (phones, TV, laptops out)
  • 0: Reading in bed (moved to another room)
  • Yes: Worry time scheduled (earlier in the evening)
  • >80%: Adherence needed (for fastest results)

Removing competing cues

Screens and books teach the brain bed means wakefulness.

Scheduled worry time

Worries get a fixed slot outside the bedroom.

Bed becomes a single-purpose cue: sleep only.

Sex is the one exception

Intimacy stays permitted; it does not disrupt the association.

Get Up If Not Asleep

Twenty minutes of wakefulness triggers leaving the bed.

  • ~20 min: Wake threshold (before getting up)
  • Sleepy: Return trigger (not just tired)
  • Quiet, dim: Activity while up (no screens or bright light)
  • As needed: Repeats per night (until sleep comes fast)

Breaking the lying-awake habit

Staying in bed awake reinforces the wrong association.

Leave, then return

Get up, do something calm, return only when sleepy.

Every repetition weakens wakeful conditioning in the bed.

No clock-watching

Estimate the twenty minutes; do not stare at a clock.

Consistent Wake Time

One fixed wake time anchors the whole sleep system.

  • <30 min: Wake time variance (even on weekends)
  • Avoided: Naps (protect nighttime sleep drive)
  • Steady: Sleep drive buildup (from consistent wake anchor)
  • 1–2 wks: Circadian stabilization (typical adjustment window)

Anchoring the circadian clock

A fixed wake time regulates the whole sleep-wake rhythm.

No compensation sleep-ins

Sleeping in after a bad night undermines the anchor.

Consistency matters more than any single night's total.

Building sleep pressure

Wakefulness builds adenosine, driving stronger sleep next night.

Restored Bed-Sleep Association

The bed reliably triggers sleep within minutes again.

  • <15 min: Sleep onset latency (down from 45–90)
  • >90%: Sleep efficiency (time asleep in bed)
  • 4–8: Weeks to consolidate (typical CBT-I course)
  • Keep rules: Relapse prevention (maintains the association)

Conditioning fully restored

Bed now predicts sleep, not wakeful struggle.

Part of full CBT-I

Stimulus control pairs with sleep restriction and cognitive work.

Gold-standard insomnia treatment, more durable than sleeping pills.

Keeping gains long-term

Rules stay in place even after sleep improves.

⚙ Under the hood

This simulator allows users to track their sleep patterns and apply stimulus control therapy techniques to re-establish the association between bed and sleep.

CanvasBiomedicine

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)