关于「α 振荡:Welch 谱估计、Jansen—Rit 模型与六例脑电」,《井穴揿针与卒中后认知》给出的定量结论是什么?
结论:论文的脑电部分是 6 例、无对照的自身前后比较,只展示了一位受试者的频谱与定性描述,文中还有闭眼与睁眼记录的矛盾、分段方法不明等问题。「Welch 估计的方差是周期图的 1/k」只对不重叠的分段成立;50% 重叠加 Hann 窗时为 1/K 的 1.054 倍,75% 重叠时为 1.909 倍;但单个 5 分钟记录的谱估计已经足够稳定,问题在于样本与设计。Jansen—Rit 模型可以写出「连接强度下降、α 塌陷、连接恢复、α 回来」的轨迹,但增加外部输入并不能恢复 α,而且谱形状不能唯一确定参数。没有治疗效应时,6 人中至少 5 人「α 升高」的概率在有共同时间漂移时可达约 40%,在本模拟设定下伯杰效应约为 3 倍。「刺激后 α 恢复」在论文中没有得到检验。
数据口径:卒中后在双手十二井穴贴上长 0.9 毫米的揿针并每天按揉,能否借指端密集的感觉传入改善认知?本书是教学与研究用的数学模型与方法学讨论,不是医疗建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的模型和假说;除注明的文献数据外,书中数据都是合成的。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 1.054, 1.909, 50, 75
| (simulation s.e. about 6% of the value) | |
| overlap K | 1/K theory simulated theory x K |
| 0 % | 16 0.0625 0.0625 0.0552 1.000 |
| 50 % | 31 0.0323 0.0340 0.0345 1.054 |
| 75 % | 61 0.0164 0.0313 0.0319 1.909 |
| Hann, 50 % overlap: rho(1) | 0.1667 (exactly 1/6), rho(1)^2 = 0.0278 |
| EEG case, 5 min at 1,000 Hz, 2-s Hann windows, 50 % overlap: K | 299, |
| relative s.d. of each spectral value sqrt(0.00353) | 0.059 |
核心公式
查看完整验算程序
# Chapter 4. Variance of the Welch estimate. Lu (2024, 3.2.6.1) says it is 1/k of the
# periodogram's; that holds for NON-overlapping segments. For white noise with overlap,
# Var / E^2 = (1/K) [1 + 2 sum_{j=1}^{K-1} (1 - j/K) rho(j)^2],
# rho(j) = sum_n w[n] w[n + jD] / sum_n w[n]^2 (Welch 1967; Percival & Walden 1993),
# checked by simulation (N = 4,096, segments of 256, bin 20, 500 replicates each).
import math, random
M, N, BIN, REPS = 256, 4096, 20, 500
W = [0.5 * (1 - math.cos(2 * math.pi * n / M)) for n in range(M)] # Hann
U = math.fsum(w * w for w in W)
C = [W[n] * math.cos(2 * math.pi * BIN * n / M) for n in range(M)]
S = [W[n] * math.sin(2 * math.pi * BIN * n / M) for n in range(M)]
def theory(D):
K = (N - M) // D + 1
rho = [math.fsum(W[n] * W[n + j * D] for n in range(M - j * D)) / U
for j in range(1, K) if j * D < M]
return K, (1 + 2 * math.fsum((1 - j / K) * r * r for j, r in enumerate(rho, 1))) / K
def welch_once(x, D):
vals = []
for s0 in range(0, N - M + 1, D):
re = math.fsum(C[n] * x[s0 + n] for n in range(M))
im = math.fsum(S[n] * x[s0 + n] for n in range(M))
vals.append((re * re + im * im) / U)
return math.fsum(vals) / len(vals)
def simulate(D, seed):
rng = random.Random(seed); est = []
for _ in range(REPS):
x = [rng.gauss(0.0, 1.0) for _ in range(N)]
est.append(welch_once(x, D))
m = math.fsum(est) / REPS
return math.fsum((e - m) ** 2 for e in est) / (REPS - 1) / (m * m)
if __name__ == "__main__":
print(f"(simulation s.e. about {math.sqrt(2 / (REPS - 1)):.0%} of the value)")
print("overlap K 1/K theory simulated theory x K")
for lab, D in (("0 %", M), ("50 %", M // 2), ("75 %", M // 4)):
K, th = theory(D)
print(f"{lab:6s} {K:4d} {1 / K:8.4f} {th:9.4f} {simulate(D, 1967 + D):10.4f}"
f" {th * K:10.3f}")
rho1 = math.fsum(W[n] * W[n + M // 2] for n in range(M // 2)) / U
print(f"Hann, 50 % overlap: rho(1) = {rho1:.4f} (exactly 1/6),"
f" rho(1)^2 = {rho1 ** 2:.4f}")
K = (300_000 - 2000) // 1000 + 1
K2, th2 = K, (1 + 2 * (1 - 1 / K) * rho1 ** 2) / K
print("EEG case, 5 min at 1,000 Hz, 2-s Hann windows, 50 % overlap:"
f" K = {K2},"
f"\n relative s.d. of each spectral value sqrt({th2:.5f}) ="
f" {math.sqrt(th2):.3f}")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《指—脑皮层放大、远端微针传入与卒中后认知网络重建的计算神经学》第 4 章「α 振荡:Welch 谱估计、Jansen—Rit 模型与六例脑电」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23839915
DOI: 10.5281/zenodo.23839915 · 阅读本章所在专著 · 5DL-B-052 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026052,
author = {Fan, Yafu},
title = {Finger–Brain Cortical Magnification, Distal Microneedle Afference and Computational Neurology of Post-Stroke Cognitive Network Reconstruction},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.23839915},
url = {https://doi.org/10.5281/zenodo.23839915}
}