Sleep Hygiene Path Planner
Turn sleep scores and diary estimates into a ranked hygiene path with safety cautions, sleep-debt checks, and CBT-I window guidance.| Step | Lane | Source | Action | Reason | Timing | Copy |
|---|---|---|---|---|---|---|
| {{ row.priority }} | {{ row.lane }} | {{ row.source }} |
{{ row.action }} | {{ row.reason }} | {{ row.timing }} |
| Signal | Value | Band | Path implication | Source | Copy |
|---|---|---|---|---|---|
| {{ row.signal }} | {{ row.value }} | {{ row.band }} | {{ row.implication }} | {{ row.source }} |
| Step | Anchor | Timing | Action | Guardrail | Source | Copy |
|---|---|---|---|---|---|---|
| {{ row.priority }} | {{ row.anchor }} | {{ row.timing }} | {{ row.action }} | {{ row.guardrail }} | {{ row.source }} |
| Candidate | Window | Bedtime | Projected SE | Review lane | Use | Copy |
|---|---|---|---|---|---|---|
| {{ row.candidate }} | {{ row.windowLabel }} | {{ row.bedtime }} | {{ row.projectedLabel }} | {{ row.reviewLane }} | {{ row.use }} |
Introduction:
Sleep hygiene advice is most useful when it is matched to the reason sleep is going badly. A person who gets too little sleep opportunity because of work, caregiving, school, pain, or an unstable schedule needs a different first step from someone who spends enough time in bed but lies awake for long stretches. Severe daytime sleepiness, drowsy driving, possible breathing pauses, shift work, seizure risk, bipolar disorder, parasomnia risk, and major mood changes can move safety review ahead of habit changes.
The phrase sleep hygiene usually refers to behaviors and conditions that support sleep: regular timing, light exposure, a calm sleeping space, caffeine and alcohol timing, meal timing, naps, wind-down routines, and how the bed is used. Those anchors matter, but they are not the same as treatment for chronic insomnia or a sleep disorder. A dark room and a fixed bedtime cannot settle whether someone is restricting sleep too much, accumulating sleep debt, experiencing excessive sleepiness, or using a sleep window that should be reviewed with clinical context.
- Sleep opportunity
- The protected time available for sleep. Too little opportunity can create debt even when habits look reasonable.
- Sleep efficiency
- Sleep time divided by time in bed. Low efficiency can point toward diary-backed insomnia work rather than another generic habit list.
- Sleep debt
- The shortfall between sleep need and recent average sleep, accumulated across the week.
- Daytime sleepiness
- A safety signal when dozing, driving risk, work risk, or possible untreated sleep apnea is present.
- CBT-I
- Cognitive behavioral therapy for insomnia, a structured approach that can include diaries, stimulus control, cognitive work, and carefully managed sleep-window changes.
Screening totals help sort these signals without pretending that one number explains everything. The Insomnia Severity Index (ISI) describes insomnia symptom burden. The Pittsburgh Sleep Quality Index (PSQI) summarizes sleep quality over several components. The Epworth Sleepiness Scale (ESS) measures usual dozing tendency across everyday situations. DBAS-16 captures the strength of sleep-related beliefs that may increase worry, effort, or rigid rules around bedtime.
The common mistake is treating every poor night as a hygiene failure. More caffeine control may help someone whose evening routine keeps them alert, but it will not replace adequate sleep opportunity. A strict sleep window may help some insomnia plans when guided by diary evidence, but it can be risky when excessive sleepiness, drowsy driving, or untreated breathing concerns are present. Sleep scores and diary estimates are therefore best read as routing clues, not diagnoses.
Sleep-hygiene planning is informational. It does not diagnose insomnia, sleep apnea, narcolepsy, circadian rhythm disorders, medication effects, or mood-related sleep problems. Severe sleepiness, drowsy driving, suspected breathing pauses, seizure risk, bipolar disorder, parasomnia risk, or major mood changes should be reviewed with a qualified clinician.
How to Use This Tool:
Use this tool when you already have screening totals or diary estimates and want an ordered path instead of a one-size-fits-all sleep-hygiene checklist. The cadence rail above the form shows the current time-in-bed window counted back from the fixed wake time.
- Set Main concern to the issue the first step should respect most: insomnia, sleep quality, daytime sleepiness, schedule, or sleep beliefs. The selected concern boosts matching ranked steps without overriding stronger safety or score signals.
- Enter ISI total, PSQI total, ESS total, and DBAS-16 mean. Numeric boxes and sliders are bounded to their displayed ranges, so out-of-range entries are pulled back before calculation.
- Add Sleep need and Average sleep in hours per night. These create the weekly sleep-debt signal shown in the readout and in Screening Signals.
- Enter Diary sleep efficiency, Fixed wake time, and Current time in bed. If CBT-I Window Ladder shows --:-- under Bedtime, correct the wake time to a 24-hour clock value such as 07:00.
- Choose the strongest Safety caution that applies. Sleepy driving, untreated sleep-apnea concern, complex clinical risk, or shift work can hold window changes until review.
- Open Advanced when the default window assumptions do not fit. Window step controls candidate spacing, Minimum window sets the lower bound, and Habit friction changes the weight of schedule, light, caffeine, alcohol, meals, naps, and bed-sleep cues.
- Read Sleep Path Readout and Sleep Path Steps first. Then use Screening Signals, Habit Anchor Plan, CBT-I Window Ladder, Window Efficiency Curve, Sleep Path Map, and JSON to verify why the route was chosen.
Interpreting Results:
Sleep Path Readout names the primary lane and shows badges for urgency, ISI, PSQI, ESS, weekly debt, and sleep efficiency. Treat the lane as the first issue to verify, not as a diagnosis. A high-priority route means one signal is strong enough to move near the top of the plan.
- Sleep Path Steps ranks up to six next actions. If the first step feels wrong, compare it with Screening Signals and the selected Main concern.
- Habit Anchor Plan turns the route into practical anchors for wake time, light, sleep opportunity, substances, naps, bed-sleep cues, and belief pressure.
- CBT-I Window Ladder lists candidate windows, bedtimes, projected sleep efficiency, review lanes, and use notes.
- Window Efficiency Curve and Sleep Path Map visualize planning signals. They are not clinical probability charts.
The strongest false-confidence warning is safety. A tidy habit plan or a green-looking efficiency row does not clear sleep restriction when ESS total is high, sleepy driving is present, breathing pauses are suspected, or a complex clinical caution is selected. Recheck the score source, diary week, and safety caution before acting on a window change.
Technical Details:
The planner keeps each screening scale separate. It does not merge ISI, PSQI, ESS, DBAS-16, weekly debt, and sleep efficiency into one clinical score. Each input is bounded to the visible range, mapped to its own band, and used in both an ordered primary-lane rule and a ranked step list.
The numeric core is deliberately small. Weekly sleep debt estimates the weekly shortfall between entered need and recent average sleep. Projected sleep efficiency estimates how the recent average would fit inside each candidate time-in-bed window.
Formula Core:
For example, 8.0 hours of sleep need and 6.4 hours of average sleep create max(0, 8.0 - 6.4) * 7, or 11.2 hours of weekly sleep debt. If average sleep is 384 minutes and a candidate time-in-bed window is 450 minutes, projected sleep efficiency is 85.3%.
| Signal | Range | Band | Planning meaning |
|---|---|---|---|
| ISI total | 0 to 7 | No clinically significant insomnia | Insomnia burden stays low in the routing logic. |
| ISI total | 8 to 14 | Subthreshold insomnia | Can support monitoring and diary review without selecting the CBT-I diary lane by itself. |
| ISI total | 15 to 21 | Clinical insomnia, moderate severity | With efficiency below 85%, this can select the CBT-I diary route. |
| ISI total | 22 to 28 | Clinical insomnia, severe range | Raises insomnia priority and strengthens the need for qualified context. |
| PSQI total | 0 to 5 | Better sleep-quality range | At or below the common poor-sleep threshold used by the route rule. |
| PSQI total | 6 to 10, 11 to 15, 16 to 21 | Elevated, high, or broad burden | Values above 5 move sleep-quality component review upward. |
| ESS total | 0 to 10 | Normal daytime sleepiness ranges | Safety still depends on selected cautions such as driving or apnea flags. |
| ESS total | 11 to 24 | Mild to severe excessive daytime sleepiness | Pushes daytime-safety review higher, especially at 16 or above. |
| DBAS-16 mean | 0.0 to 3.79 | Lower or building endorsement | Belief review can stay secondary unless selected as the main concern. |
| DBAS-16 mean | 3.8 to 10.0 | Reference crossed or high endorsement | Adds belief review so worry and effort do not drive the plan. |
| Weekly sleep debt | 4.0 to 7.99 h, 8.0 h or more | Moderate or high debt | Can move sleep opportunity ahead when ISI is below 15. |
| Diary sleep efficiency | Below 80%, 80% to 84.99%, 85% to 89.99%, 90% or higher | Tighten review, audit, hold, or expansion review | Shapes diary and window guidance when safety is stable. |
Rule Core:
The primary lane follows the first matching condition below after values are bounded. Ranked steps are scored separately, so the top chart driver can differ from the rule-selected lane.
| First matching condition | Primary lane | Reason |
|---|---|---|
| Safety score is at least 86 | Safety check first | Severe sleepiness, sleepy driving, sleep-apnea concern, or complex clinical risk takes priority over schedule change. |
| ISI is at least 15 and diary sleep efficiency is below 85% | CBT-I diary route | Insomnia burden plus low efficiency needs diary-backed review before time-in-bed changes. |
| Weekly sleep debt is at least 4 hours and ISI is below 15 | Sleep opportunity route | Too little protected sleep time may explain symptoms better than an insomnia-only path. |
| PSQI is greater than 5 | Quality component route | The poor-sleep threshold is crossed, so component drivers deserve review. |
| DBAS-16 mean is at least 3.8 | Belief review route | Sleep-related beliefs and worry may be increasing effort and rigid rules. |
| No earlier condition applies | Hygiene maintenance route | Habit anchors can stay as maintenance unless symptoms or diary evidence change. |
The candidate window logic starts near recent average sleep, rounded to the selected Window step, and never goes below Minimum window. Safety scores at or above 86 hold the current window. When safety is stable, efficiency at 90% or higher with ESS at 10 or below can add one step, while efficiency below 80% with ESS at 10 or below can subtract one step. Candidate rows around the current window are labeled as shorter, current, longer, or recommended.
Projected sleep efficiency below 80% is labeled Tighten review, below 85% is Audit before changing, below 90% is Hold window, 90% to 105% is Expansion review, and above 105% is Tight baseline window. Those labels are planning cues, not prescriptions.
Limitations and Safety Notes:
The output depends on entered totals and diary estimates. It cannot tell whether a score was copied from the right instrument, whether the diary week was typical, whether medication or another condition is involved, or whether a clinician-supervised CBT-I plan is appropriate.
- Do not use the result to start, tighten, or expand sleep restriction when severe sleepiness, drowsy driving, untreated sleep-apnea concern, bipolar disorder, seizure risk, parasomnia risk, or unstable shift work is present.
- The calculation runs in the browser. Current values may appear in the page URL when the setup is shared, so avoid sharing a URL that contains private sleep scores.
- Downloaded tables, charts, and JSON files are records of entered values and computed planning routes. They are not clinical notes.
Worked Examples:
An ISI of 16, PSQI of 9, ESS of 8, DBAS-16 mean of 4.2, 8.0 hours of sleep need, 6.4 hours of average sleep, and 83% diary sleep efficiency usually selects CBT-I diary route. The same inputs also create 11.2 hours of weekly debt, so the path should not be read as insomnia-only.
If those scores are paired with Safety caution set to sleepy driving, the primary lane becomes Safety check first. The recommended row in CBT-I Window Ladder holds the current schedule, and its use note says to keep the window until safety context is reviewed.
A lower-insomnia case can point to sleep opportunity instead. ISI 10, PSQI 4, ESS 6, DBAS-16 mean 2.4, 8.0 hours of sleep need, 7.0 hours of average sleep, and 89% efficiency gives 7 hours of weekly debt. Because ISI is below 15 and debt is at least 4 hours, the primary lane can become Sleep opportunity route.
A troubleshooting example is an invalid Fixed wake time. When the ladder shows --:-- in the Bedtime column, enter a valid 24-hour time such as 06:30 or 07:00. Candidate windows can still be compared by duration and projected efficiency, but bedtime labels need a valid wake anchor.
FAQ:
Can this diagnose insomnia or sleep apnea?
No. It routes entered screening scores, diary estimates, and safety cautions into a planning path. Diagnosis, medication decisions, breathing symptoms, narcolepsy concerns, mood risk, and complex medical history need qualified review.
Why did safety move above the window suggestion?
Safety becomes dominant when the selected caution is sleepy driving, untreated sleep-apnea concern, complex clinical risk, or when ESS is high enough to raise daytime-sleepiness risk.
What if I do not have one of the screening scores?
Enter 0 only when you deliberately want that signal to stay low. If a score is unknown, treat the ranked path as incomplete and give more weight to diary evidence, safety cautions, and qualified review.
Why does the chart driver differ from the primary lane?
The primary lane follows ordered rules, while Sleep Path Map shows normalized priority values for several signals. A large debt value can be the strongest chart driver even when the rule order selects the CBT-I diary route.
Why are bedtime values missing?
The Bedtime column needs a valid Fixed wake time. If it shows --:--, enter a 24-hour clock value such as 06:30 or 07:00.
Glossary:
- ISI
- Insomnia Severity Index, a 0 to 28 insomnia symptom and impact score.
- PSQI
- Pittsburgh Sleep Quality Index, a 0 to 21 sleep-quality score where higher values indicate poorer quality.
- ESS
- Epworth Sleepiness Scale, a 0 to 24 measure of usual daytime dozing tendency.
- DBAS-16
- Dysfunctional Beliefs and Attitudes about Sleep, reported here as a 0 to 10 mean score.
- Sleep efficiency
- Sleep time divided by time in bed, expressed as a percentage.
- Sleep opportunity
- The protected time available for sleep before judging whether insomnia-focused restriction is appropriate.
- CBT-I
- Cognitive behavioral therapy for insomnia, a structured treatment approach that can include diaries, stimulus control, cognitive work, and sleep-window decisions.
References:
- Sleep, Centers for Disease Control and Prevention.
- Sleep Deprivation and Deficiency: Healthy Sleep Habits, National Heart, Lung, and Blood Institute.
- Behavioral and psychological treatments for chronic insomnia disorder in adults, American Academy of Sleep Medicine.
- The Pittsburgh Sleep Quality Index (PSQI), University of Pittsburgh Center for Sleep and Circadian Science.
- About the ESS, Epworth Sleepiness Scale.
- The Insomnia Severity Index: Psychometric Indicators to Detect Insomnia Cases and Evaluate Treatment Response, SLEEP.
- Examining maladaptive beliefs about sleep across insomnia patient groups, Journal of Psychosomatic Research.