关于「睡眠压力、时钟,以及咖啡因到底做了什么」,《睡眠的算术》给出的定量结论是什么?

结论:第一章写出 Borbély 双过程模型:缺失的睡眠主要以强度偿还——多醒整整一天,补觉只延长到 1.11 倍,慢波代理量却到 1.47 倍;早上补的觉反而更短(0.66),因为时钟把它结束了。咖啡因作为竞争性拮抗剂不清除腺苷(就寝压力恒为 0.626),只改变被感到的份额;在明确声明的工作假设下,慢代谢者早上一杯对早段慢波活动的削减(−22.5%)与快代谢者 17:00 的一杯(−20.3%)相当。

数据口径:本书不是医疗建议,不给任何剂量,不推荐任何产品;持续失眠的一线治疗是失眠的认知行为疗法。 书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的假说;除注明的文献外,书中数据都是合成的。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.66, 1.11, 1.47

A. Entrained day (after 10 simulated days)
   sleep 23:27 -> 07:08   duration 7.68 h
   S at onset 0.633   S at waking 0.102
B. One night of total sleep deprivation, then recovery
   kept awake  0 h past usual bedtime: recovery sleep 23:27 -> 07:08,
      7.68 h (x 1.00 usual), S at onset 0.633, slow-wave proxy x 1.00
   kept awake  8 h past usual bedtime: recovery sleep 07:27 -> 12:29,
      5.03 h (x 0.66 usual), S at onset 0.764, slow-wave proxy x 1.00
   kept awake 16 h past usual bedtime: recovery sleep 15:27 -> 22:37,
      7.17 h (x 0.93 usual), S at onset 0.848, slow-wave proxy x 1.30
   kept awake 24 h past usual bedtime: recovery sleep 23:27 -> 07:58,
      8.52 h (x 1.11 usual), S at onset 0.902, slow-wave proxy x 1.47
Reading: hours of sleep lost are not repaid hour for hour. Recovery sleep
is longer only modestly; most of the repayment is in intensity (higher S at
onset, more slow-wave activity), and the clock (Process C) ends it on time.
查看完整验算程序
# Chapter 1. Borbely's two-process model. Process S (sleep pressure) rises
# toward 1 while awake with time constant TAU_R and decays toward 0 while
# asleep with TAU_D. Process C sets two thresholds that oscillate over 24 h:
# sleep starts when S reaches the upper one, waking happens when S falls to
# the lower one. Parameters are the classical illustrative values (time
# constants 18.2 h and 4.2 h); S is dimensionless. Time step 1 minute; t = 0
# is midnight.
import math

TAU_R, TAU_D = 18.2, 4.2
# thresholds and their peak hour
H0, L0, AMP, PHASE = 0.67, 0.17, 0.10, 16.0
DT = 1.0 / 60

def thr(t, base):
    return base + AMP * math.cos(2 * math.pi * (t - PHASE) / 24.0)

def run(days, no_sleep=None, s0=0.25, t0=7.0):
    """Simulate; returns list of (sleep_on, sleep_off, S_at_onset, area under
    S asleep)."""
    t, S, asleep = t0, s0, False
    bouts, cur = [], None
    while t < t0 + 24 * days:
        if asleep:
            S *= math.exp(-DT / TAU_D)
            cur[3] += S * DT
            if S <= thr(t, L0):
                asleep = False
                cur[1] = t
                bouts.append(tuple(cur))
        else:
            S = 1 - (1 - S) * math.exp(-DT / TAU_R)
            can_sleep = no_sleep is None or not (
                no_sleep[0] <= t < no_sleep[1]
            )
            if S >= thr(t, H0) and can_sleep:
                asleep = True
                cur = [t, None, S, 0.0]
        t += DT
    return bouts

def clock(h):
    h = h % 24
    return "{:02d}:{:02d}".format(int(h), int(round((h - int(h)) * 60)) % 60)

if __name__ == "__main__":
    b = run(10)
    on, off, s_on, area = b[-1]
    print("A. Entrained day (after 10 simulated days)")
    print(
        "   sleep {} -> {}   duration {:.2f} h\n   S at onset {:.3f}   S at"
        " waking {:.3f}".format(
            clock(on), clock(off), off - on, s_on, thr(off, L0)
        )
    )
    base_dur, base_area = off - on, area

    print("\nB. One night of total sleep deprivation, then recovery")
    for extra in (0, 8, 16, 24):
        bb = run(12, no_sleep=(on - 1, on + extra) if extra else None)
        rec = [x for x in bb if x[0] >= on + extra - 0.5][0]
        print(
            "   kept awake {:>2} h past usual bedtime: recovery sleep {} ->"
            " {},\n      {:.2f} h (x {:.2f} usual), S at onset {:.3f},"
            " slow-wave proxy x {:.2f}".format(
                extra,
                clock(rec[0]),
                clock(rec[1]),
                rec[1] - rec[0],
                (rec[1] - rec[0]) / base_dur,
                rec[2],
                rec[3] / base_area,
            )
        )
    print(
        "\nReading: hours of sleep lost are not repaid hour for hour."
        " Recovery sleep"
    )
    print(
        "is longer only modestly; most of the repayment is in intensity"
        " (higher S at"
    )
    print(
        "onset, more slow-wave activity), and the clock (Process C) ends it"
        " on time."
    )

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《双过程睡眠架构、慢波胶质淋巴清除与体温节律相位控制》第 1 章「睡眠压力、时钟,以及咖啡因到底做了什么」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090162

DOI: 10.5281/zenodo.24090162 · 阅读本章所在专著 · 5DL-B-057 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026057,
  author    = {Fan, Yafu},
  title     = {Two-Process Sleep Architecture, Slow-Wave Glymphatic Clearance and Thermoregulatory Phase Control},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.24090162},
  url       = {https://doi.org/10.5281/zenodo.24090162}
}

本书其他章节结论