Stimulus-Control Plan
{{ steps.length }} steps
Primary rule: leave bed after {{ awake_threshold_min }} min awake
Pattern {{ patternLabel }} Wake {{ wake_target }} Cycles {{ maxCyclesValue }} Night protocol {{ estimatedNightProtocolMinutes }} min {{ planComplexity }} Clock {{ clockPolicyLabel }}
Bed {{ stimulusStageThresholdLabel }} Out Return Wake
Stimulus control planner inputs
Use the pattern that describes most nights before you tune Advanced steps.
Enter 10-60 minutes in 5-minute steps; 20 minutes matches common CBT-I guidance.
min
Use the same realistic wake time you can keep all week, such as 07:00.
Pick a low-light activity available at night: paper reading, breathing, journaling, or audio.
Choose hidden clocks if checking the time fuels frustration.
Start with Standard; use Strict only when you want firmer leave-bed language.
Choose 1-5 cycles; 3+ adds the escalation block to the night script.
Choose a calm 10-minute action you can do safely in dim light.
Turn on when a shared bedroom needs a pre-agreed night plan.
{{ include_partner_note === '1' ? 'On' : 'Off' }}
Turn on for one repeatable wind-down cue before the bedtime decision.
{{ include_cue_step === '1' ? 'On' : 'Off' }}
Turn on when morning light exposure is part of your routine plan.
{{ include_light_step === '1' ? 'On' : 'Off' }}
Choose nightly for close tracking, every 3 nights or weekly for lighter review.
# Phase Cycle Trigger Action Rationale Priority Copy
Summary Plan horizon - Night routine scope Use the priority checkpoints before the full step list. {{ planHorizonLabel }} -
Preview {{ step.phase }} {{ step.cycle === null ? '—' : step.cycle }} {{ step.trigger }} {{ step.action }} {{ step.rationale }} P{{ step.priority }}
{{ step.id }} {{ step.phase }} {{ step.cycle === null ? '—' : step.cycle }} {{ step.trigger }} {{ step.action }} {{ step.rationale }} {{ step.priority }}
Priority Action Why now Checkpoint Phase Copy
{{ row.priority }} {{ row.action }} {{ row.reason }} {{ row.checkpoint }} {{ row.phase }}
No adherence guidance available.

                
Customize
Advanced
:

Introduction

Stimulus control is a behavioral insomnia method that tries to make the bed a cue for sleep again. Long periods of wakefulness in bed can teach the brain that the bedroom is a place for frustration, clock-checking, planning, or alertness. The method interrupts that pattern by keeping bed time closely tied to sleepiness.

The approach is most relevant when the main problem is trouble falling asleep, repeated night awakenings, or waking too early and staying awake. It is a common part of cognitive behavioral therapy for insomnia, often shortened to CBT-I, and it focuses on repeatable behavior rather than medication. A stimulus-control sleep plan gives the night a clear script before the difficult moment arrives.

The core rule is intentionally simple: go to bed when sleepy, leave bed when wakefulness has clearly taken over, do something calm in low light, and return only when sleepiness comes back. A fixed morning wake time keeps the next day from drifting later after a poor night. Those rules can feel inconvenient at first because they ask the sleeper to stop negotiating with the bed, but that consistency is the point.

A written plan helps because insomnia decisions are harder during the night than during the day. The plan should be short enough to remember when tired, specific enough to follow without improvising, and realistic enough for the bedroom, partner, mobility, and safety limits involved.

This material is informational and behavioral. It does not diagnose insomnia, rule out sleep apnea or another sleep disorder, or replace professional care when sleep problems involve major daytime impairment, breathing pauses, parasomnias, severe mood symptoms, pain, medication questions, or safety risks when getting out of bed.

How to Use This Tool:

Build the script before bedtime, then read the summary and tables as a practical rehearsal for the next difficult night.

  1. Choose Main sleep pattern first. The choices emphasize trouble falling asleep, frequent night awakenings, early-morning waking, or a mixed pattern, and the generated steps change to match that main problem.
  2. Set Awake-in-bed threshold, Fixed wake time, and Calm fallback activity. The wake time must be a valid clock value such as 06:30 before the summary, action table, guidance, chart, and JSON view can render.
  3. Open Advanced only when the first draft is too loose or too strict. Tune Clock-view policy, Intensity profile, Max night cycles, Escalation action, optional partner, cue, and light switches, and Follow-up cadence.
  4. Watch the summary badges while changing settings. Primary rule shows the leave-bed threshold, Wake shows the morning anchor, Night protocol estimates scripted response time, and Complexity warns when the plan has become long.
  5. Read Action Plan Table from the first bedtime row through the morning row. The most important columns are Trigger, Action, and Priority, because they tell you when to act and which behaviors matter most.
  6. Use Adherence Guidance to check the first few priorities. If the top recommendation is not the behavior you actually need to practice, adjust the pattern, cycle count, or follow-up cadence before exporting the draft.
  7. Open Night Response Path Chart for a quick flow check. If the path looks too busy to follow half-awake, reduce optional steps or night cycles before saving CSV, DOCX, chart, or JSON outputs.

Interpreting Results:

Read the result as a behavior plan, not as a measure of insomnia severity. A longer script or a higher-priority row means the current settings create more instructions, not that the sleep problem is clinically worse.

How to interpret the stimulus-control planner output fields.
Output cue What it means What to verify
Primary rule The out-of-bed cue starts when wakefulness reaches the chosen threshold. Use it as a rough decision cue, not a reason to stare at the clock.
Complexity Simple means up to 9 steps, Moderate means 10 to 13 steps, and Detailed means 14 or more. Choose the shortest plan you can actually follow during a night awakening.
Night protocol The planned response-time estimate from threshold, cycles, and any escalation block. Do not read it as a prediction of how long you will be awake.
Adherence Guidance A ranked list of behaviors to protect in the selected plan. Check that the top rows match the habit you are trying to change.

The common false-confidence mistake is treating a detailed exported plan as automatically better. Before using it, verify that the first leave-bed cycle, fallback activity, and fixed wake row are safe, realistic, and acceptable in the actual bedroom routine.

Technical Details:

Stimulus control is based on conditioning. When bed repeatedly predicts wakefulness, effort, or frustration, the sleep setting can become tied to alertness. The corrective practice is to make bed entry depend on sleepiness, shorten wakeful time in bed, and keep the morning rise time stable enough that the sleep schedule does not slide later after rough nights.

The leave-bed threshold is a behavior cue rather than a precise timing test. Clinical guidance often uses about 20 minutes, but the plan works best when the sleeper recognizes sustained wakefulness without turning the rule into another clock-monitoring habit. That is why the clock policy and fallback activity matter alongside the minute value.

Rule Core

Stimulus-control rules and generated plan effects.
Condition Response Generated effect
Sleepiness is present Go to bed only when sleepy, not by clock pressure alone. Creates the opening bedtime rule in every plan.
Awake in bed for the selected threshold Leave bed and switch to the chosen low-light fallback activity. Creates each leave-bed reset cycle and the summary's primary rule.
Sleepiness returns after the reset Return to bed and restart the threshold if wakefulness comes back. Pairs each out-of-bed step with a return-when-sleepy step.
Maximum cycles are reached Use the selected escalation action before one final return. Adds an escalation row when Max night cycles is 3 or higher.
Morning wake time arrives Wake at the fixed target every day. Adds the morning anchor row and wake badge.

Formula Core

The night-protocol estimate is a planning-load number. It combines the selected threshold with the allowed number of cycles and adds the escalation block only when the plan has at least three night cycles.

m = t×c+e e = 10 when c>=3, otherwise 0
Stimulus-control formula symbols.
Symbol Meaning Unit Visible cue
t Awake-in-bed threshold Minutes Awake-in-bed threshold
c Maximum night cycles Count Max night cycles
e Escalation block Minutes Added when cycles are 3 to 5.
m Night protocol estimate Minutes Night protocol badge

For example, a 20-minute threshold with 3 cycles produces 20 x 3 + 10 = 70 minutes. A 10-minute threshold with 5 cycles produces 10 x 5 + 10 = 60 minutes. The second plan can be shorter by minutes while still having more rows, because plan complexity counts instructions rather than total minutes.

For fair comparison between two drafts, keep the main sleep pattern, threshold, cycle count, and wake time steady. Changing all of them at once rewrites the plan logic more than changing the fallback activity or adding one optional reinforcement step.

Limitations:

The result is a structured behavior draft, not a sleep diagnosis or a substitute for clinician-led CBT-I.

  • The plan does not collect sleep diaries, calculate sleep restriction windows, or evaluate sleep apnea risk.
  • Leaving bed at night may be unsafe for some people because of fall risk, pain, caregiving duties, parasomnias, or shared-room constraints.
  • Clock-hiding and a rough threshold reduce monitoring pressure, but they do not remove the need for professional care when insomnia is persistent or impairing.

Worked Examples:

Frequent awakenings with default settings

A user chooses Frequent night awakenings, leaves the threshold at 20 minutes, sets Fixed wake time to 07:00, keeps clocks hidden, allows 3 night cycles, and keeps the cue and morning-light steps on. The summary shows 13 steps, Complexity = Moderate, and Night protocol = 70 min. That is a workable default when the main target is repeated wakefulness in bed.

A mixed-pattern plan that becomes too detailed

A mixed-pattern draft with a 10-minute threshold, 06:30 wake time, partner note, wind-down cue, morning light, Single check only before leaving bed, 5 cycles, and Strict intensity can reach 21 steps and Complexity = Detailed. The Night protocol may still show 60 min, so the better check is whether the user can remember and follow the rows at night.

Blank results after an incomplete wake time

If Fixed wake time is blank or invalid, the summary and result tabs do not appear. Entering 07:00 restores the Stimulus-Control Plan, Action Plan Table, Adherence Guidance, Night Response Path Chart, and JSON view. If the plan then feels heavy, reduce Max night cycles or optional steps instead of stretching the threshold just to shrink the table.

FAQ:

Is this the same as full CBT-I?

No. It focuses on stimulus-control sequencing and optional reinforcement steps. It does not calculate sleep windows, review sleep-diary averages, restructure sleep thoughts, or diagnose insomnia.

Do I need to wait exactly 20 minutes?

No. The threshold is a rough out-of-bed cue. If checking the clock makes wakefulness worse, use the hidden-clock policy and act when it is clear that sleep is not returning.

Why does the plan repeat leave-bed steps?

Repeated leave-bed and return-when-sleepy steps are the main stimulus-control practice. They receive high priority because they target the bed-awake association directly.

Why are the result tabs missing?

The planner needs a valid Fixed wake time. Enter a standard time such as 06:30 or 07:00, and the summary, tables, chart, and JSON view will return.

What if getting out of bed is unsafe?

Treat the output as a discussion draft. Fall risk, mobility limits, severe pain, parasomnias, or other safety concerns can change what an appropriate night response looks like.

Does the plan upload sleep data?

No tool-specific upload or server-side calculation is defined. The step list, guidance table, chart, and exports are produced in the page.

Glossary:

CBT-I
Cognitive behavioral therapy for insomnia, a structured non-medication treatment approach.
Stimulus control
A behavioral method that reconnects the bed with sleepiness rather than wakefulness.
Sleep drive
The pressure to sleep that builds during wake time and makes bed entry more likely to work.
Wake anchor
The fixed morning rise time that keeps the schedule from drifting later after a poor night.
Conditioned arousal
A learned alertness response tied to the bed, bedroom, or bedtime routine.
Maintenance insomnia
A pattern where sleep is interrupted by repeated awakenings after sleep has started.