5D Library › Two-Process Sleep Architecture, Slow-Wave Glymphatic Clearance and Thermoregulatory Phase Control · 中文
Chapter 5. Warm Hands, Cool Core: the Thermal Gate of Sleep
Why temperature
Core body temperature falls in the evening and reaches its lowest point in the second half of the night. Sleep tends to begin on the falling limb of that curve. The fall is not mainly produced by making less heat; it is produced by losing more, and the body’s main valve for losing heat is the blood flow to the hands and feet. When the small vessels of the distal skin dilate, warm blood from the core reaches the skin of the hands and feet, the distal skin warms, and the core cools.
Kräuchi and colleagues measured this directly and found that the difference between distal and proximal skin temperature — the distal-proximal gradient (DPG) — was the best physiological predictor of how quickly people fell asleep, better than core temperature itself (Kräuchi et al. 1999, 2000).
A model with three heat stores
The ninth program writes the body as three coupled heat stores: the core, the proximal skin (trunk) and the distal skin (hands and feet). The control is the conductance from core to distal skin, which rises when the distal vessels dilate. Values are illustrative but of physiological order.
Calculation
The equations. With heat capacities , conductances and , heat production and ambient temperature : and .
Calculation
# Chapter 5. Core, proximal skin and distal skin (hands and feet) as three
# coupled heat stores. Blood flow to the distal skin is the main control: when
# the hand and foot vessels dilate, the conductance k_d from core to distal
# skin rises, the distal skin warms, and the core loses heat. Heat production
# M falls in the evening. All values are illustrative but of physiological
# order (heat capacities in kJ/K, conductances in W/K, ambient 24 C under
# bedding). DPG = distal minus proximal skin temperature. One-minute steps;
# three days are run and the last is reported.
import math
CC, CP, CD = 160e3, 40e3, 8e3
KP, HP, HD, TA = 20.0, 6.0, 3.5, 24.0
def M(h): # heat production, W
return 88.0 + 3.0 * math.cos(2 * math.pi * (h - 15.0) / 24)
def kd(h, dilate_at=21.0, ramp=2.0): # core -> distal conductance, W/K
hh = h % 24
low, high = 4.3, 10.0
if dilate_at <= hh < dilate_at + ramp:
return low + (high - low) * (hh - dilate_at) / ramp
if hh >= dilate_at + ramp or hh < 6.5:
return high
if 6.5 <= hh < 7.5:
return high - (high - low) * (hh - 6.5)
return low
def run(dilate_at=21.0):
Tc, Tp, Td = 37.0, 34.0, 30.0
out = {}
for m in range(3 * 24 * 60):
h = m / 60.0
k = kd(h, dilate_at)
qp, qd = KP * (Tc - Tp), k * (Tc - Td)
Tc += 60 * (M(h) - qp - qd) / CC
Tp += 60 * (qp - HP * (Tp - TA)) / CP
Td += 60 * (qd - HD * (Td - TA)) / CD
if m >= 2 * 24 * 60:
out[round(h - 48, 4)] = (Tc, Tp, Td)
return out
def at(o, h):
return o[round(h, 4)]
if __name__ == "__main__":
base = run()
print("A. A day with distal vasodilation beginning at 21:00")
print(" time core proximal distal DPG")
for h in (12, 18, 21, 22, 23, 24, 27, 29, 31):
Tc, Tp, Td = at(base, h % 24)
print(
" {:02d}:00 {:6.2f} {:6.2f} {:6.2f} {:+5.2f}".format(
h % 24, Tc, Tp, Td, Td - Tp
)
)
cs = [v[0] for v in base.values()]
print(
" core range over the day: {:.2f} C (max {:.2f}, min {:.2f})"
.format(max(cs) - min(cs), max(cs), min(cs))
)
print(
"\nB. When does the core start to fall? Vasodilation early, on time,"
" or late"
)
print(
" dilation starts core at 23:00 core change core 0.20 C"
" below"
)
print(
" 23:00-24:00 its 21:00"
" value at"
)
for d in (20.0, 21.0, 22.5):
o = run(d)
c21 = at(o, 21.0)[0]
t_drop = next(
h for h in sorted(o) if h >= 21.0 and o[h][0] <= c21 - 0.20
)
print(
" {:02d}:{:02d} {:6.2f} {:+6.3f} "
" {:02d}:{:02d}".format(
int(d),
int(round((d % 1) * 60)),
at(o, 23.0)[0],
at(o, 23 + 59 / 60)[0] - at(o, 23.0)[0],
int(t_drop),
int(round((t_drop % 1) * 60)) % 60,
)
)
print(
"\nReading: the core falls about 1 C overnight in this model, and the"
" fall"
)
print(
"begins when the hands and feet open up: distal vasodilation is the"
" valve."
)
print(
"Delaying it by 90 minutes delays the start of the core's decline by"
" over an"
)
print("hour, with the core still near its evening peak at 23:00.")
# A. A day with distal vasodilation beginning at 21:00
# time core proximal distal DPG
# 12:00 36.91 33.90 31.10 -2.80
# 18:00 37.41 34.30 31.39 -2.91
# 21:00 37.47 34.36 31.43 -2.94
# 22:00 37.36 34.32 32.72 -1.60
# 23:00 37.18 34.20 33.67 -0.53
# 00:00 37.02 34.07 33.67 -0.40
# 03:00 36.62 33.75 33.36 -0.38
# 05:00 36.43 33.59 33.22 -0.37
# 07:00 36.34 33.49 32.59 -0.90
# core range over the day: 1.15 C (max 37.47, min 36.33)
#
# B. When does the core start to fall? Vasodilation early, on time, or late
# dilation starts core at 23:00 core change core 0.20 C below
# 23:00-24:00 its 21:00 value at
# 20:00 37.05 -0.139 22:14
# 21:00 37.18 -0.159 22:32
# 22:30 37.41 -0.169 23:47
#
# Reading: the core falls about 1 C overnight in this model, and the fall
# begins when the hands and feet open up: distal vasodilation is the valve.
# Delaying it by 90 minutes delays the start of the core's decline by over an
# hour, with the core still near its evening peak at 23:00.Section A reproduces the shape of the human curve. At 21:00 the DPG is −2.94 °C: the hands and feet are much cooler than the trunk. Once the distal vessels open, the DPG rises to −0.53 by 23:00 and the core, which peaked at 37.47 °C, falls through the night to 36.33 °C — a range of 1.15 °C, of the same order as the human circadian range. No change in heat production is needed for most of this; the valve does it.
Section B asks what happens if the valve opens early or late. Opening at 20:00 brings the core 0.20 °C below its 21:00 value by 22:14; opening at 21:00, by 22:32; opening 90 minutes later, at 22:30, delays it to 23:47, and at 23:00 the core is still at 37.41 °C, near its evening peak. “Cold feet” in this model is not a metaphor: it is a closed valve, and the core cannot start to fall.
Warming to cool
A warm bath or shower before bed seems the wrong way to cool the core. The tenth program runs it through the same model: 20 minutes of heat delivered to the skin, with the distal vessels dilating in response.
Calculation
# Chapter 5. Passive body heating before bed, in the three-store model of p09.
# A warm bath is represented as 200 W delivered to the proximal skin for 20
# minutes, with the distal vessels fully dilated during it and for an hour
# after (the body's response to being heated). Lights out at 23:00. Compared:
# no bath, a bath ending 90 minutes before lights out, and one ending 15
# minutes before. Same parameters as p09.
import math
CC, CP, CD = 160e3, 40e3, 8e3
KP, HP, HD, TA = 20.0, 6.0, 3.5, 24.0
def M(h):
return 88.0 + 3.0 * math.cos(2 * math.pi * (h - 15.0) / 24)
def kd(h, dilate_at=21.0, ramp=2.0):
hh = h % 24
low, high = 4.3, 10.0
if dilate_at <= hh < dilate_at + ramp:
return low + (high - low) * (hh - dilate_at) / ramp
if hh >= dilate_at + ramp or hh < 6.5:
return high
if 6.5 <= hh < 7.5:
return high - (high - low) * (hh - 6.5)
return low
def run(bath_end=None):
Tc, Tp, Td = 37.0, 34.0, 30.0
out = {}
for m in range(3 * 24 * 60):
h = m / 60.0
hh = h % 24
k = kd(h)
heat = 0.0
if bath_end is not None and h >= 48:
if bath_end - 20 / 60 <= hh < bath_end:
heat = 200.0
if bath_end - 20 / 60 <= hh < bath_end + 1.0:
k = 10.0
qp, qd = KP * (Tc - Tp), k * (Tc - Td)
Tc += 60 * (M(h) - qp - qd) / CC
Tp += 60 * (qp - HP * (Tp - TA) + heat) / CP
Td += 60 * (qd - HD * (Td - TA)) / CD
if m >= 2 * 24 * 60:
out[round(h - 48, 4)] = (Tc, Tp, Td)
return out
if __name__ == "__main__":
print(
" bath peak core (time) core at 23:00 change DPG"
" at 23:00"
)
print(" 23:00-23:30")
for label, end in (
("none", None),
("ends 21:30", 21.5),
("ends 22:45", 22.75),
):
o = run(end)
evening = {h: v for h, v in o.items() if 20.0 <= h <= 23.5}
hp = max(evening, key=lambda h: evening[h][0])
c23 = o[23.0]
print(
" {:<12} {:6.2f} ({:02d}:{:02d}) {:6.2f} {:+6.3f} "
" {:+5.2f}".format(
label,
evening[hp][0],
int(hp),
int(round((hp % 1) * 60)) % 60,
c23[0],
o[23.5][0] - c23[0],
c23[2] - c23[1],
)
)
print("\nReading: a bath warms the core briefly, then"
" the dilated hands and feet")
print("dump the heat; ending it 90 minutes before"
" lights-out leaves the core")
print("falling faster at 23:00 than with no bath."
" Ending it 15 minutes before")
print("puts lights-out on the rising or peak part of the curve.")
# bath peak core (time) core at 23:00 change DPG at 23:00
# 23:00-23:30
# none 37.47 (20:43) 37.18 -0.084 -0.53
# ends 21:30 38.03 (22:10) 37.90 -0.124 -0.62
# ends 22:45 37.92 (23:25) 37.82 +0.099 -2.53
#
# Reading: a bath warms the core briefly, then the dilated hands and feet
# dump the heat; ending it 90 minutes before lights-out leaves the core
# falling faster at 23:00 than with no bath. Ending it 15 minutes before
# puts lights-out on the rising or peak part of the curve.A bath ending at 21:30 raises the core to 38.03 °C at 22:10; at 23:00 the core is still warmer than with no bath (37.90 against 37.18), but it is falling faster (−0.124 against −0.084 °C in the next half-hour) because the dilated hands and feet are dumping the extra heat. A bath ending at 22:45 puts lights-out on the rising part of the curve (+0.099 °C in the half-hour after 23:00), with the DPG at −2.53 because the trunk skin is still hot.
The model’s prediction is therefore about timing: heating helps sleep onset, if it does, by steepening the evening decline, and it does that only if it ends long enough before lights-out.
Evidence
What is known. A systematic review and meta-analysis of studies of warm showers or baths before bed found that water-based passive body heating at 104-109 °F (about 40-43 °C) taken 1-2 hours before bedtime was associated with shorter sleep-onset latency and better self-rated sleep quality (Haghayegh et al. 2019). These are the conditions of the studies reviewed, quoted for accuracy, not a recommendation; people with heart disease, low blood pressure or who are pregnant should ask a doctor before hot baths.
Hypothesis · not established
The author’s hypothesis (not established): within individuals, the rate of fall of core temperature in the 30 minutes after lights-out predicts sleep-onset latency better than the core temperature at lights-out, and passive heating shortens sleep-onset latency only when it increases that rate. What would show it to be wrong: sleep-onset latency predicted equally well or better by core temperature at lights-out, or improvements after heating that do not go with a steeper fall.
Summary
The evening fall in core temperature is produced mainly by opening the distal vessels, not by making less heat, and the distal-proximal skin gradient tracks that valve; it is the best physiological predictor of rapid sleep onset. In a three-store model the core falls about 1 °C overnight once the valve opens, and opening it 90 minutes late delays the start of the fall by over an hour. Warming before bed can steepen the evening decline, but only if it ends well before lights-out; ending it just before puts lights-out on the rising part of the curve.
References
Fan, Y. (2026). Two-Process Sleep Architecture, Slow-Wave Glymphatic Clearance and Thermoregulatory Phase Control: Adenosine Homeostasis, Flip-Flop Switch Bistability, Core-Distal Heat Flux and Sleep-Stage Markov Chains [双过程睡眠架构、慢波胶质淋巴清除与体温节律相位控制] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090162 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).