arXiv:2611.00550cs.AIOct 2026

Manuscript Offprint

arXiv:2611.00550

Governing Equations of Human Sleep Macro-Structure:Symbolic Discovery from 1,106 Nights

Junhui Gao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Human sleep is organized into a small number of cycles per night: deep sleep dominates early cycles, REM lengthens toward morning, and light sleep clusters at cycle boundaries. These regularities have long been described qualitatively but never distilled into closed-form laws from large-scale data. A total of 1,106 nights (Sleep-EDF 153 + SHHS 953) are segmented into REM-anchored cycles, and four cycle-indexed statistics follow simple closed-form equations: cycle length declines nearly linearly (R2=0.996R^2=0.996), REM duration follows an inverted U (R2=0.873R^2=0.873), deep-sleep (N3) run length decays exponentially (R2=0.987R^2=0.987) with a time constant of 2.94 cycles, consistent with the homeostatic Process S of the two-process model, and light-sleep (N1) run length follows a U shape (R2=0.956R^2=0.956), confirming a “long–short–long” pattern across the night. The laws are reproduced by per-night differentiable fitting (142/142 and 773/773 nights converge), by unconstrained symbolic regression (PySR), and by a 500-night generative synthesizer built from them. Their robustness is established against the two main methodological threats: bootstrap CIs computed by resampling whole nights (1,000 replications) exclude zero for every shape term, and a five-level scan of the REM-merge segmentation threshold preserves every qualitative form. These appear to be the first closed-form laws governing the macro-structure of sleep, distilled and tested across an age-mixed sample (healthy young adults and community-based older adults).

1 Introduction

Sleep is organized at two scales. At the micro-scale, the night is divided into 30-second epochs and each epoch is assigned one of five stages (Wake, N1, N2, N3, REM) by standardized scoring rules [1, 2]. This epoch-level sequence is what machine learning has learned to predict with increasing accuracy, from single-channel CNNs [3] to fully convolutional and transformer architectures [4, 5, 6]. At the macro-scale, the same night is organized into 4–6 sleep cycles, each containing a progression from light sleep through deep sleep to REM, and the properties of these cycles change systematically across the night. Deep-sleep (slow-wave) intensity is maximal in the first cycle and declines toward morning; REM episodes lengthen across the night; and light sleep (N1) punctuates the transitions between deeper stages and REM [7, 8, 9].

This macro-scale organization is not merely descriptive folklore. It is the core prediction surface of the two-process model of sleep regulation [10, 11], in which a homeostatic process (Process S) accumulates during wakefulness and decays during sleep, and a circadian process (Process C) modulates sleep propensity [12]. The model successfully explains the timing of slow-wave activity and REM [13, 11], and quantitative sleep-regulation models instantiate its assumptions as coupled differential equations [13]. Yet the gap addressed here is that the structure-level regularities of the hypnogram itself (how long each stage persists in the kk-th cycle of the night) have never been extracted as closed-form laws from large-scale polysomnography. The curves visibly decay, peak, or rise; no closed-form expression has been written down and tested across thousands of nights.

Two consequences follow from the absence of such laws. First, the understanding of sleep architecture remains qualitative: statements such as “deep sleep is front-loaded” cannot be falsified, compared across datasets, or linked to model parameters. Second, the discovery-style questions of sleep science (is the N3 decline exponential? does

N1 follow a U shape?) remain unquantified, even though the data to answer them have existed in public repositories for two decades.

The pipeline developed here addresses these gaps by applying the AI-for-science paradigm of distilling closed-form empirical laws from data [14, 15, 16, 17] to the hypnogram itself. This work:

  1. Segment 1,106 nights (Sleep-EDF Expanded 153 nights, SHHS 953 nights) into REM-anchored sleep cycles with a transparent, reproducible algorithm, and define four cycle-indexed macro-structure statistics: cycle length, total REM duration, longest N3 run, and mean N1 run length.

  2. Discover closed-form empirical laws for all four statistics by two complementary levels of library fitting (population means and per-night differentiable fits) plus an unconstrained symbolic search (PySR) that imposes no template, and validate the laws by generating 500 synthetic nights from them.

Throughout, governing is used descriptively: the equations summarize the per-cycle evolution of stage-run statistics and are empirical fits rather than mechanistic derivations.

The main results are four closed-form laws (Section 4.3): cycle length declines with a slight, near-linear downward curvature ( R2=0.996R^{2}=0.996), REM follows an inverted U ( R2=0.873R^{2}=0.873), N3 runs decay exponentially with a time constant of 2.94 cycles ( R2=0.987R^{2}=0.987), and N1 run length follows a U shape ( R2=0.956R^{2}=0.956), quantitatively confirming the “long–short–long” N1 pattern across the night. The laws are verified individually per night, reproduced without a template by PySR, and support a 500-night synthesizer whose statistics match real data. Bootstrap CIs computed by resampling whole nights exclude zero for every shape term, and a five-level scan of the segmentation threshold preserves all four qualitative forms, so the shapes are not artifacts of the extraction rule.

References (18)