Institute of Biophysics and Biomedical Engineering, Bulgarian Academy of Sciences, Acad. G. Bonchev Str. Bl 105, 1113 Sofia, Bulgaria.
Schiller Médical, 4 Rue Louis Pasteur, 67160 Wissembourg, France.
Sensors (Basel). 2020 May 19;20(10):2875. doi: 10.3390/s20102875.
Deep neural networks (DNN) are state-of-the-art machine learning algorithms that can be learned to self-extract significant features of the electrocardiogram (ECG) and can generally provide high-output diagnostic accuracy if subjected to robust training and optimization on large datasets at high computational cost. So far, limited research and optimization of DNNs in shock advisory systems is found on large ECG arrhythmia databases from out-of-hospital cardiac arrests (OHCA). The objective of this study is to optimize the hyperparameters (HPs) of deep convolutional neural networks (CNN) for detection of shockable (Sh) and nonshockable (NSh) rhythms, and to validate the best HP settings for short and long analysis durations (2-10 s). Large numbers of (Sh + NSh) ECG samples were used for training (720 + 3170) and validation (739 + 5921) from Holters and defibrillators in OHCA. An end-to-end deep CNN architecture was implemented with one-lead raw ECG input layer (5 s, 125 Hz, 2.5 uV/LSB), configurable number of 5 to 23 hidden layers and output layer with diagnostic probability ∈ [0: Sh,1: NSh]. The hidden layers contain N convolutional blocks × 3 layers (Conv1D (filters = Fi, kernel size = Ki), max-pooling (pool size = 2), dropout (rate = 0.3)), one global max-pooling and one dense layer. Random search optimization of HPs = {N, Fi, Ki}, i = 1, … N in a large grid of N = [1, 2, … 7], Fi = [5;50], Ki = [5;100] was performed. During training, the model with maximal balanced accuracy BAC = (Sensitivity + Specificity)/2 over 400 epochs was stored. The optimization principle is based on finding the common HPs space of a few top-ranked models and prediction of a robust HP setting by their median value. The optimal models for 1-7 CNN layers were trained with different learning rates LR = [10; 10] and the best model was finally validated on 2-10 s analysis durations. A number of 4216 random search models were trained. The optimal models with more than three convolutional layers did not exhibit substantial differences in performance BAC = (99.31-99.5%). Among them, the best model was found with {N = 5, Fi = {20, 15, 15, 10, 5}, Ki = {10, 10, 10, 10, 10}, 7521 trainable parameters} with maximal validation performance for 5-s analysis (BAC = 99.5%, Se = 99.6%, Sp = 99.4%) and tolerable drop in performance (<2% points) for very short 2-s analysis (BAC = 98.2%, Se = 97.6%, Sp = 98.7%). DNN application in future-generation shock advisory systems can improve the detection performance of Sh and NSh rhythms and can considerably shorten the analysis duration complying with resuscitation guidelines for minimal hands-off pauses.
深度神经网络(DNN)是一种先进的机器学习算法,可用于自我提取心电图(ECG)的重要特征,如果在大型数据集上进行稳健的训练和优化,以高计算成本,通常可以提供高输出的诊断准确性。到目前为止,在院外心脏骤停(OHCA)的大型 ECG 心律失常数据库中,对休克预警系统中的 DNN 进行了有限的研究和优化。本研究的目的是优化深度卷积神经网络(CNN)的超参数(HP),以检测可电击(Sh)和不可电击(NSh)节律,并验证最佳 HP 设置用于短和长分析持续时间(2-10 s)。大量(Sh + NSh)ECG 样本用于训练(720 + 3170)和验证(739 + 5921)来自 OHCA 的 Holters 和除颤器。实施了端到端深度 CNN 架构,具有一个导联原始 ECG 输入层(5 s,125 Hz,2.5 uV/LSB),可配置 5 到 23 个隐藏层的数量和具有诊断概率 ∈ [0:Sh,1:NSh]的输出层。隐藏层包含 N 个卷积块×3 层(Conv1D(滤波器= Fi,内核大小= Ki),最大池化(池大小= 2),辍学(率= 0.3)),一个全局最大池化和一个密集层。在大型网格 N = [1, 2, … 7]中对 HPs = {N, Fi, Ki},i = 1,... N 进行随机搜索优化。在 400 个时期的最大平衡准确性 BAC =(敏感性+特异性)/2上存储具有最大 BAC 的模型。优化原理基于找到少数排名最高的模型的公共 HP 空间,并通过它们的中位数预测稳健的 HP 设置。使用不同的学习率 LR = [10; 10]对 1-7 个 CNN 层的最佳模型进行训练,并最终在 2-10 s 的分析持续时间上验证最佳模型。训练了 4216 个随机搜索模型。具有超过三个卷积层的最佳模型在性能 BAC =(99.31-99.5%)方面没有显示出实质性差异。其中,最佳模型是使用 {N = 5, Fi = {20, 15, 15, 10, 5}, Ki = {10, 10, 10, 10, 10}, 7521 个可训练参数} 找到的,在 5 s 分析时具有最大验证性能(BAC = 99.5%,Se = 99.6%,Sp = 99.4%),并且非常短的 2 s 分析(BAC = 98.2%,Se = 97.6%,Sp = 98.7%)性能下降可容忍(<2%)。在未来一代的休克预警系统中应用 DNN 可以提高 Sh 和 NSh 节律的检测性能,并可以大大缩短符合复苏指南的分析持续时间,以尽量减少手控暂停。