Nox Research, Nox Medical, Reykjavík, Iceland.
Division of Sleep and Circadian Disorders, Department of Medicine, Brigham and Women's Hospital and Harvard Medical School, Boston, MA.
Sleep. 2021 Jan 21;44(1). doi: 10.1093/sleep/zsaa168.
Sleep apnea is caused by several endophenotypic traits, namely pharyngeal collapsibility, poor muscle compensation, ventilatory instability (high loop gain), and arousability from sleep (low arousal threshold). Measures of these traits have shown promise for predicting outcomes of therapies (e.g. oral appliances, surgery, hypoglossal nerve stimulation, CPAP, and pharmaceuticals), which may become an integral part of precision sleep medicine. Currently, the methods Sands et al. developed for endotyping sleep apnea from polysomnography (PSG) are embedded in the original authors' code, which is computationally expensive and requires technological expertise to run. We present a reimplementation and validation of the integrity of the original authors' code by reproducing the endo-Phenotyping Using Polysomnography (PUP) method of Sands et al. The original MATLAB methods were reprogrammed in Python; efficient algorithms were developed to detect breaths, calculate normalized ventilation (moving time-average), and model ventilatory drive (intended ventilation). The new implementation (PUPpy) was validated by comparing the endotypes from PUPpy with the original PUP results. Both endotyping methods were applied to 38 manually scored polysomnographic studies. Results of the new implementation were strongly correlated with the original (p < 10-6 for all): ventilation at eupnea V̇ passive (ICC = 0.97), ventilation at arousal onset V̇ active (ICC = 0.97), loop gain (ICC = 0.96), and arousal threshold (ICC = 0.90). We successfully implemented the original PUP method by Sands et al. providing further evidence of its integrity. Additionally, we created a cloud-based version for scaling up sleep apnea endotyping that can be used more easily by a wider audience of researchers and clinicians.
睡眠呼吸暂停是由几个表型特征引起的,即咽腔塌陷、肌肉补偿能力差、通气不稳定(高环路增益)和睡眠觉醒能力(低觉醒阈值)。这些特征的测量方法已经显示出预测治疗效果的潜力(例如口腔矫治器、手术、舌下神经刺激、CPAP 和药物治疗),这可能成为精准睡眠医学的一个组成部分。目前,Sands 等人从多导睡眠图(PSG)中对睡眠呼吸暂停进行表型分析的方法嵌入在原始作者的代码中,该代码计算成本高,运行需要技术专业知识。我们通过重现 Sands 等人的使用多导睡眠图进行表型分析(PUP)方法来重新实现和验证原始作者代码的完整性。原始的 MATLAB 方法被重新编程为 Python;开发了有效的算法来检测呼吸,计算标准化通气(移动时间平均),并对通气驱动进行建模(预期通气)。新实现(PUPpy)通过比较 PUPpy 的表型和原始 PUP 结果来验证。这两种表型分析方法都应用于 38 项手动评分的多导睡眠研究。新实现的结果与原始结果高度相关(所有 p < 10-6):呼吸暂停时的通气量 V̇ 被动(ICC = 0.97)、觉醒起始时的通气量 V̇ 主动(ICC = 0.97)、环路增益(ICC = 0.96)和觉醒阈值(ICC = 0.90)。我们成功地实现了 Sands 等人的原始 PUP 方法,进一步证明了其完整性。此外,我们创建了一个基于云的版本,可以更轻松地由更广泛的研究人员和临床医生使用,用于扩大睡眠呼吸暂停表型分析。