Lagerland Lagerland

Methodology · Public, citable, falsifiable

Shift Recovery Score —
how it is actually calculated.

The Shift Recovery Score is the metric AfterShift is built around. It is not a sleep score in the consumer sense; it is a forward-looking estimate of how recovered you are before your next scheduled shift. This page explains the four inputs, what each weighting reflects, what the score deliberately does not do, and what the literature on shift-work fatigue actually backs.

What the score is — and is not.

What it is
  • A single 0–100 estimate, refreshed daily and before each shift
  • Forward-looking: the question is "how recovered are you for the next block?", not "how good was last night?"
  • Shift-aware: calibrated against your actual rotation, not a 9-to-5 baseline
  • Nap-aware: pre-shift and recovery naps actually move the number
  • Informational: meant to inform a decision, not to make one for you
What it deliberately is not
  • Not a medical assessment and not a diagnosis of Shift Work Disorder
  • Not a replacement for clinical sleep evaluation if your sleep is significantly impaired
  • Not a productivity score, fitness score, or generic wellness number
  • Not derived from heart-rate variability alone — HRV is one signal among several, never the sole input
  • Not benchmarked against other users; the score is relative to your own recent baseline

The four inputs.

Every Shift Recovery Score is a weighted combination of four signals. The weights are tuned over time; we update this page when they change.

01
Sleep quality — stage composition (Core, Deep, REM)
From Apple Health, AfterShift reads the breakdown of your primary sleep block into Awake, Core, Deep, and REM. Quality is interpreted against your own recent average, not a population norm — what a 30-year-old nurse on permanent nights produces in a daytime sleep window is structurally different from a 9-to-5 baseline, and the score does not penalise the difference. Deep sleep at 11 a.m. after a night shift is read as the win it actually is. If you do not wear an Apple Watch and only have iPhone sleep tracking, the stage breakdown is coarser; the score adjusts the confidence weighting accordingly.
02
Sleep continuity — how fragmented the block was
A six-hour sleep broken three times is structurally different from an unbroken six hours, and the literature on shift-work fatigue treats them as different. AfterShift counts wake bouts, measures their distribution within the block, and downweights fragmented sleep. The continuity penalty is largest for fragmentation in the second half of the sleep block (where REM is dense) and smallest for a single short wake near the beginning. The fragmentation score is reported separately on the Trends view so you can see which nights broke up, not just that your total dropped.
03
Nap contribution — length and timing
This is the input most generic sleep apps get wrong. AfterShift weights recent naps by both length and timing relative to the next shift. A 20-minute pre-shift nap reduces sleep inertia and adds modestly to the score without risking deep-sleep entry. A 90-minute prophylactic nap before a night shift, well-timed, adds significantly more because it captures a full sleep cycle including REM. A 45-minute nap is the worst length for shift workers because it tends to end in slow-wave sleep, producing sleep inertia that costs more than the rest provides — and the score reflects that. Naps logged manually and naps detected from Apple Health are weighted the same; we do not punish manual entries.
04
Proximity to your next shift — recovery decay
The score is not a fixed number that stays the same all day. Recovery decays as the next shift approaches: a Recovery Score of 78 measured the morning after a night shift, with 16 hours until the next block, drops naturally as you spend those 16 hours awake. The decay curve is informed by total time awake, time of day relative to your circadian phase (you decay faster between roughly 2–6 a.m. than at any other time of day, regardless of how rested you are), and whether you have logged a recovery nap inside the window. This is why opening the app right before a shift gives the most useful read.

What the literature does — and does not — support.

Honest framing of what we are confident about, what we are using as a working model, and what is contested.

Well-established in the literature
  • Rotating and night shifts impair sleep continuity and total sleep time relative to day work — robustly replicated
  • Prophylactic naps before night shifts reduce subjective fatigue and improve performance metrics during the shift
  • The circadian low between roughly 02:00 and 06:00 is the period of highest fatigue and lowest alertness, almost independent of recent sleep
  • Caffeine half-life is roughly 5 hours in average adults — meaningful for cutoff timing
  • Forward rotation (day → evening → night) generally adapts better than backward rotation
Working models, not settled science
  • Exact weights for stage composition vs continuity in a recovery score — there is no consensus formula in the literature; ours is calibrated empirically
  • Optimal nap length for a given shift type — broad guidance exists (short-restorative ~20 min vs full-cycle ~90 min); precise individual optima are not pinned down
  • How much a single bad night within a block actually costs compared to a chronically short week — modelled, not measured per individual

For the underlying science, we recommend the U.S. NIOSH shift work training module and the AASM ICSD-3 entry on Shift Work Disorder as starting points. Both are written for clinicians but readable for technically minded shift workers.

How the score should — and should not — change your behaviour.

Use it to inform a decision
  • Decide whether to take a pre-shift nap, and roughly how long
  • Decide when to stop caffeine before your post-shift sleep window
  • Spot the weakest day inside a rotation block before fatigue compounds
  • Talk to a clinician with data, not a vague "I feel tired"
Do not use it to
  • Diagnose a sleep disorder — see a sleep specialist if your sleep is significantly impaired
  • Decide whether to drive after a shift — that is a binary safety judgment, not a 0–100 score
  • Optimise yourself into never feeling tired — shift work imposes real biological costs that no app can eliminate
  • Compare yourself to other AfterShift users; the score is calibrated to your own baseline

See it in your week

Open AfterShift.

Sleep & recovery built around your shifts — not a 9-to-5 baseline. Naps weighted into the score. Caffeine timed to your actual next shift. Private by default.