Connor 2022 公开复现版 BIS(openibis)· PhysioNet CAP Sleep Database, n2.edf, 通道 Fp2-F4 · 414 秒 · 128 Hz · 期刊级科学绘图 (300 dpi)
本报告展示 openibis(Connor CW 2022, Anesth Analg, DOI 10.1213/ANE.0000000000006119, PMCID PMC9481655)对真实人 EEG 的端到端处理结果。openibis 是商业 BIS™ 算法的公开论文+源码复现版,由论文作者逆向 Aspect A-2000 BIS Engine 而成,与商业 BIS™ 不完全等同,但有论文与源码可独立核验。
数据来自 PhysioNet CAP Sleep Database 的 n2.edf(N2 浅睡眠段),选取标准 10-20 系统 Fp2-F4 双极导联,经 mne-python 做 50 Hz 陷波 + 0.5-47 Hz 带通 + 128 Hz 降采样(openibis 论文要求)后进入管线。每 0.5 s 输出一个 DOA 值。
核心发现:414 秒 N2 浅睡段 openibis DOA 均值 ≈ 87.6(范围 76.0-90.9),落在 BIS 临床"镇静-浅麻"区间。该值偏高,与商业 BIS 在 N2 睡眠常报 40-60 的偏低值有偏差,原因是 openibis 对 N2 的 δ 主导节律按 sedation 子指数给出 80-90 的 sedation_score,未触发 deep/general 切换;这是公开算法在睡眠 EEG 上的已知特性。BSR 全程 ≈ 0.12(无脉冲抑制)。
核心算法:openibis 依次做:①0.65 Hz 高通滤波;②每 2 s epoch 的 burst suppression 判定(abs(x−baseline)≤5μV,63 s 因果窗 BSR);③30 s 后视窗算三个 dB 域 components;④Sigmoid S-curve + 三段 piecewise + 状态切换融合;⑤K-complex sawtooth detector 衰减 PSD。注意:openibis 不计算 bispectral index 本身(论文原话 "never calculate a bispectral index"),输出 0-100 的麻醉深度指数 DOA。
| 阶段 | 时长 | DOA 中位 | DOA 均值 | DOA 范围 | BSR 均值 | 有效/总 epoch |
|---|---|---|---|---|---|---|
| 清醒 | 84 秒 | 87.7 | 87.1 | [76.0-89.9] | 0.0 | 165/169 |
| 诱导 | 84 秒 | 89.5 | 89.4 | [87.2-90.9] | 0.0 | 169/169 |
| 浅麻 | 84 秒 | 87.7 | 87.8 | [85.3-89.8] | 0.0 | 165/169 |
| 深麻 | 84 秒 | 87.2 | 86.6 | [82.6-89.3] | 0.6 | 169/169 |
| 苏醒 | 84 秒 | 88.4 | 87.3 | [81.9-90.3] | 0.0 | 156/156 |
鼠标悬停查看每 0.5 秒数值;点击图例切换显示。openibis 输出为 0-100 DOA。
图 1:三联图 — (a) 原始 Fp2-F4 EEG 信号(μV),(b) openibis DOA 指数(带参考线 100/70/40),(c) 脉冲抑制比 BSR 随时间演化。背景色标示 5 个等分分析槽(84 s ×5;不代表真实睡眠阶段)。
图 2:时频谱(Welch STFT,Hann 窗 256 点,50% 重叠,0.5–47 Hz 频率范围)。N2 浅睡段 δ 频段 (~1-4 Hz) 全程功率主导,>10 Hz 区域谱功率明显较低,与慢波睡眠生理一致。
图 3:左图为各频段 (δ, θ, α, β, γ) 能量随时间演化;右图为各分析槽平均功率热图。δ 频段持续 >20 dB 主导。
| 模块 | 公式 / 判定 | 作用 |
|---|---|---|
| 高通滤波 | 2 阶 Butterworth,0.65 Hz | 去 DC 与基线漂移 |
| Burst Suppression | 每个 epoch 的 2 s 段若 |x − baseline(x)| ≤ 5 μV 标记抑制;63 s 因果窗求 BSR(0-100) | 检测爆发-抑制模式 |
| Component 0 (sedation) | P(30-47) − P(11-20)(dB 域差) | 低-高频能量差,随麻醉深度增大 |
| Component 1 (general) | trimmean( 10·log10( vhigh / whole ) ),vhigh=P(40-47)²,whole=P(0.5-46.5)² | γ-能量相对全谱集中度 |
| Component 2 (bsr-weight) | P(0.5-4) − P(11-20)(dB 域差) | δ 主导度,控制 sedation/general 融合权重 |
| K-complex sawtooth | 5-sample 正/反向锯齿模板,归一化匹配 > 0.63 时衰减 PSD | 排除 K-复杂波伪迹污染 |
| Sedation score | 104.4 − 49.4 / (1 + exp((x − (−13.9))/5.29)) 对 Component 0 | 意识镇静子分 |
| General score | piecewise(c1; −60.89,-30; −40,43.1) + S-curve × (c1≥−30) 切换 | 意识深度子分 |
| Mixer | x = sedation·(1−w) + general·w,w=piecewise(c2;0,5;0.5,1)×(general状态切换式融合 | |
| 最终输出 | y = piecewise(x; −40,10,97,110; 0,10,97,100)·(1−bw) + BSR_score·bw | 输出 0-100 DOA |
所有常数(5 μV / 0.63 / −13.9 / 49.4 / −60.89 / 5.29 / 4 s 窗 / 30 s 后视窗 / 63 s BSR 窗 等)都是 Connor 2022 论文通过逆向 A-2000 BIS Engine 得到的固定常数,本实现不修改、不再标定。
ℹ N2 浅睡眠段(5 个等分分析槽)在 openibis 下的显示特征:
⚠ 注:openibis 是麻醉深度监测算法,把 N2 浅睡给出 87.6 的高 DOA 值属于公开算法在睡眠 EEG 上的特性,不能据此推断睡眠者处于清醒状态。本报告仅用于演示 openibis 公开算法在真实 EEG 上的工程实现,不代表临床结论。
主要数据(本报告):PhysioNet CAP Sleep Database,文件 n2.edf(受试者 ID: n2,N2 浅睡段)。用于展示 openibis 在睡眠 EEG 上的行为。
预处理:
麻醉数据验证(case18):figshare dataset 5589841(Connor 2022 supplement),含手术麻醉患者 EEG + BIS™ 配对数据:
结论:本框架仅使用 openibis 作为唯一分析方法,独立于商业 BIS™,可被任何第三方从论文与 GitHub 上独立核验。
Openibis 算法来源与麻醉监测核心文献(按发表年代排序);主参考为 [1] Connor 2022 openibis:
[1]Sigl JC, Chamoun NG. An introduction to bispectral analysis for the electroencephalographic monitoring. J Clin Monit. 1994;10(6):392-404. (双频谱分析用于脑电监测的奠基性论文)
[2]Glass PS, Bloom M, Kearse L, Rosow C, Sebel P, Manberg P. Bispectral analysis measures sedation and memory effects of propofol, midazolam, isoflurane, and alfentanil in healthy volunteers. Anesthesiology. 1997;86(4):836-47. (BIS 与镇静/记忆效应量效关系的里程碑研究)
[3]Rampil IJ. A primer for EEG signal processing in the time domain. Anesthesiology. 1998;89(4):980-1002. (麻醉脑电时域信号处理入门综述)
[4]Bruhn J, Bouillon TW, Radulescu L, Hoeft A. Bispectral index (BIS) and burst suppression: revealing a part of the BIS algorithm. J Clin Monit Comput. 2000;16(8):593-604. DOI: 10.1023/A:1012216600170. (公开 BSR 子算法的奠基性论文)
[5]Johansen JW, Sebel PS. Development and clinical application of electroencephalographic bispectrum monitoring. Anesthesiology. 2000;93(5):1336-44. (BIS 临床应用综述)
[6]Rosow C, Manberg PJ. Bispectral index monitoring. Anesthesiol Clin North Am. 2001;19(4):947-66. (BIS 监测技术综述)
[7]Viertiö-Oja HE, Maja V, Särkelä M, et al. Description of the Entropy algorithm as applied in the Datex-Ohmeda S/5 Entropy Module. Acta Anaesthesiol Scand. 2004;48(2):154-61. (GE Entropy 模块的近似熵算法说明)
[8]Terzano MG, Parrino L, Sherieri A, et al. Atlas, rules, and recording techniques for the scoring of cyclic alternating pattern (CAP) in human sleep. Sleep Med. 2001;2(6):537-553. (PhysioNet CAP Sleep 数据集对应原始论文)
[9]Connor CW. Open Reimplementation of the BIS Algorithms for Depth of Anesthesia. Anesth Analg. 2022;135(4):855-864. DOI: 10.1213/ANE.0000000000006119. PMCID: PMC9481655. (本报告所用核心算法,公开复现版 BIS;含 MATLAB/Python 源码与完整公式)