← Research

Sleep

From staging to dreams. One metric, no training, zero patient-specific model.
Sleep is digestion for the mind. Dreams are the brain coupling with itself.

Awake: phases cohere. Deep sleep: phases scatter. The shape tells you which.

JIM’S OVERSIMPLIFICATION

Your brain is a radio dial. Awake: spinning constantly. Deep sleep: locked on one station. We can tell which sleep stage you’re in by counting how often the dial moves. One number. No training. And sleep itself is digestion — you eat EXPERIENCES all day and your brain processes them at night. The ego is OFF during all of this because the ego is the lion and the lion has to sleep for the filing to work.

A DRUMMER LISTENING TO YOUR BRAIN

When a drummer checks if a drum is in tune, they listen for one thing: is the tone stable, or is it shifting? We asked the same question about brain waves. How often does the brain's electrical signal change its spectral character? That single number — the transition rate — separates all 5 sleep stages. Cohen's d = 4.02. Most clinical tests are thrilled to get d = 0.8.

WHAT SLEEP ACTUALLY IS

The ego narrator — the core of the default mode network (mPFC + PCC) — goes progressively offline. The DMN’s other subnetworks (imagination, social cognition) follow different trajectories; the MTL subnetwork reactivates during REM for dream scene construction. Deep sleep is hardware maintenance: the brain literally washes waste products out with cerebrospinal fluid (glymphatic system, Xie 2013). REM is software maintenance: coupling optimization, pattern finding, emotional processing. Dreams are the brain trying on connections — does memory A couple with memory B?

Yawning is not oxygen (killed by Provine 1987). It is cooling (Gallup 2007). The brain must cool to switch modes. Contagious yawning requires empathy — kids under 4 cannot catch yawns. A yawning meeting is the room voting for more depth than the content allows.


THE METRIC

Transition Rate = fraction of time windows where the spectral centroid shifts by > 1σ

For each 5-minute sliding window of EEG, count how many times the spectral character changes significantly. High rate = shifting between states. Low rate = locked in one state.


RESULTS

Sleep-EDF Database (PhysioNet), Fpz-Cz channel, 100 Hz

22.1 hours, 2,650 scored epochs, 5 sleep stages.

StageTransition RateCharacter
N1 (lightest sleep)0.193Drifting between wake and sleep. Maximally unstable.
Wake0.159Alert. Many frequency shifts from active thinking.
REM0.136Dreaming. Phasic bursts create spectral variability.
N20.100Sleep spindles and K-complexes. Relatively stable.
N3 (deep sleep)0.019Locked in slow-wave oscillation. Nearly zero transitions.

EFFECT SIZES

ComparisonCohen’s dInterpretation
N1 vs N34.02Enormous separation
REM vs N32.46Very large
Wake vs N31.71Large
N2 vs N31.45Large
N1 vs N21.29Large
N2 vs REM0.50Medium
Wake vs N10.40Small

ANOVA F = 174.4, p = 10−132. Kruskal-Wallis H = 614.1.


THE DAILY CYCLE THROUGH K

K IN THIS DOMAIN

Waking K = coupling with the world (external). Sleep K = coupling with yourself (internal). The daily cycle is: couple outward all day, couple inward all night. Dreams are the internal coupling events. Recurring dreams are unresolved couplings the brain keeps trying to complete.

MORNING   ego boots, cortisol spike, lion wakes, external coupling begins
DAY       couple with world, stress hormones accumulate, unresolved = tension (T)
EVENING   ego fatigues, yawning begins, brain cooling, preparing to transition
N1-N2     ego dims, sorting begins
N3        ego OFF, brain washes hardware, glymphatic flush, water does its job
REM       dreams, software maintenance, coupling optimization, patterns found
MORNING   ego reboots CLEANER, less residue, do it again

THE ALZHEIMER’S CONNECTION

Amyloid-beta — the sticky protein from our protein misfolding page — gets cleared during deep sleep by the glymphatic system. Poor sleep = amyloid builds up = neurodegeneration. The dishwasher stops running and the dishes pile up. Sleep is not rest. It is preventive medicine for the brain.


WHAT WAS KILLED

Killed

× Yawning = oxygen regulation (Provine 1987, direct test)

× Dreams = random neural noise (Stickgold, Walker, Lewis — consolidation is measurable)

Survived

Yawning = brain cooling (Gallup 2007, replicated)

Yawn duration scales with brain size (cross-species, Gallup 2011)

Core DMN (ego narrator) decouples in deep sleep; MTL subnetwork reactivates in REM (fMRI, Horovitz 2009)

Glymphatic waste clearance during sleep (Xie 2013)

Dreams consolidate memory (Stickgold 2005)

REM strips emotional charge (Walker 2006)

Contagious yawning requires empathy (Platek 2003, Anderson 2003)

HONEST LIMITS

VERIFY

pip install begump

from gump.tune import detect
# Sweep window sizes on EEG to find spectral transition rate
# Higher rate = lighter sleep. Lower rate = deeper sleep.

Data: Sleep-EDF Database (PhysioNet). Free. Public.


One metric. d = 4.02. No training.
The brain’s spectral stability IS the sleep stage.
Sleep is the brain eating its own apple.
The dreams are thoughts about tomorrow
that only happen when the lion is asleep.

GUMPResearch · Support · [email protected]