[go: up one dir, main page]

CN111166294B - Automatic sleep apnea detection method and device based on inter-heartbeat period - Google Patents

Automatic sleep apnea detection method and device based on inter-heartbeat period Download PDF

Info

Publication number
CN111166294B
CN111166294B CN202010077427.7A CN202010077427A CN111166294B CN 111166294 B CN111166294 B CN 111166294B CN 202010077427 A CN202010077427 A CN 202010077427A CN 111166294 B CN111166294 B CN 111166294B
Authority
CN
China
Prior art keywords
sleep apnea
heart rate
heartbeat interval
feature
rate variability
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010077427.7A
Other languages
Chinese (zh)
Other versions
CN111166294A (en
Inventor
王晶
林友芳
韩升
万怀宇
武志昊
董兴业
张硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jiaotong University
Original Assignee
Beijing Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jiaotong University filed Critical Beijing Jiaotong University
Priority to CN202010077427.7A priority Critical patent/CN111166294B/en
Publication of CN111166294A publication Critical patent/CN111166294A/en
Application granted granted Critical
Publication of CN111166294B publication Critical patent/CN111166294B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4818Sleep apnoea
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
    • A61B5/0205Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
    • A61B5/024Measuring pulse rate or heart rate
    • A61B5/02405Determining heart rate variability
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
    • A61B5/024Measuring pulse rate or heart rate
    • A61B5/0245Measuring pulse rate or heart rate by using sensing means generating electric signals, i.e. ECG signals
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Cardiology (AREA)
  • Animal Behavior & Ethology (AREA)
  • Veterinary Medicine (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Pathology (AREA)
  • Physiology (AREA)
  • Signal Processing (AREA)
  • Pulmonology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychiatry (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

本发明提供了一种基于心跳间期的睡眠呼吸暂停自动检测方法和装置,用于解决现有技术中睡眠呼吸暂停检测不准确、精度不高的问题。所述睡眠呼吸暂停自动检测方法首先采集睡眠时的心跳间期信息,再通过残差神经网络对所述心跳间期信息自动提取特征,并进一步提取心率变异性特征,再将所述自动提取特征和心率变异性特征集合进行融合,从而判断是否出现呼吸暂停。本发明通过提取心电图ECG信号中的心跳间期特征,并将此特征在残差神经网络中进行深入分析,结合了心率变异性特征,且所述残差神经网络中的所有权重都可以在临床上进行微调,提高了提高了睡眠检测的灵性性、准确性和精确性;同时只需要单导心电信息,采集过程简单便捷,具有相当的普适性。

Figure 202010077427

The present invention provides an automatic detection method and device for sleep apnea based on heartbeat interval, which are used to solve the problems of inaccurate and low-precision detection of sleep apnea in the prior art. The method for automatic detection of sleep apnea first collects heartbeat interval information during sleep, then automatically extracts features from the heartbeat interval information through a residual neural network, further extracts heart rate variability features, and then extracts the automatically extracted features. It is fused with the heart rate variability feature set to determine whether apnea occurs. The present invention combines the heart rate variability feature by extracting the heartbeat interval feature in the ECG signal of the electrocardiogram, and deeply analyzing the feature in the residual neural network, and all the weights in the residual neural network can be used in clinical practice. The fine-tuning on the above improves the spirituality, accuracy and precision of sleep detection; at the same time, only single-lead ECG information is required, and the collection process is simple and convenient, and has considerable universality.

Figure 202010077427

Description

一种基于心跳间期的睡眠呼吸暂停自动检测方法及装置A method and device for automatic detection of sleep apnea based on heartbeat interval

技术领域technical field

本发明属于医学数据监测领域,具体涉及一种基于心跳间期的睡眠呼吸暂停自动检测方法及装置。The invention belongs to the field of medical data monitoring, in particular to a method and device for automatic detection of sleep apnea based on heartbeat interval.

背景技术Background technique

睡眠呼吸暂停(Sleep Apnea,SA)是导致睡眠障碍的常见呼吸病症。在快速眼动睡眠中,气道被颏舌肌、肌腱和脂肪组织完全阻塞至少10秒,或者持续10秒出现气流减少超过50%、氧气去饱和度超过3%的呼吸不足现象,都被称为呼吸暂停。根据调查,近30多年以来,睡眠呼吸暂停一直影响着全世界的人们,且在2008年患病人数就已达到了全球成人的6%。越来越多的呼吸暂停患者由于没有被及时诊断和干预,面临着心血管疾病以及临床抑郁症的风险。许多实验都研究了呼吸暂停的危害,结果表明呼吸暂停与几种内源性生理现象和疾病之间存在很大的相关性。Sleep Apnea (SA) is a common breathing disorder that causes sleep disorders. During REM sleep, complete obstruction of the airway by the genioglossus muscle, tendon, and adipose tissue for at least 10 seconds, or hypopnea with a decrease in airflow of more than 50% and oxygen desaturation by more than 3% for 10 seconds, is called for apnea. According to the survey, sleep apnea has been affecting people all over the world for more than 30 years, and in 2008, the number of patients had reached 6% of global adults. An increasing number of patients with apnea are at risk of cardiovascular disease and clinical depression due to undiagnosed and uninterrupted interventions. Numerous experiments have investigated the hazards of apnea, and the results have shown a strong correlation between apnea and several endogenous physiological phenomena and diseases.

睡眠呼吸暂停是长期、有害的,但在诊断后可以进行治疗。气道正压(PositiveAirway Pressure,PAP)治疗和腭咽成形术(Palatopharyngoplasty,PPP)治疗等疗法在早期诊断中是很有效的。因此,及时诊断对于呼吸暂停的治疗过程至关重要。传统上通过多导睡眠图(Polysomnogram,PSG)信号来诊断呼吸暂停综合征严重程度,但在收集PSG信号来检测呼吸暂停时,患者被要求与侵入式设备一起睡眠过夜,还需要医学专家和诊所环境。这种传统的呼吸暂停检测过程过于复杂且价格高昂,因此需要能够在非侵入式设备上快速准确执行的新方法。Sleep apnea is long-term, harmful, but can be treated after diagnosis. Treatments such as positive airway pressure (PAP) and palatopharyngoplasty (PPP) are very effective in early diagnosis. Therefore, timely diagnosis is crucial for the treatment process of apnea. Polysomnogram (PSG) signals have traditionally been used to diagnose apnea syndrome severity, but when PSG signals are collected to detect apnea, patients are required to sleep overnight with invasive devices, medical specialists and clinics surroundings. This traditional apnea detection process is too complex and expensive, requiring new methods that can be performed quickly and accurately on non-invasive devices.

现有技术中,检测睡眠呼吸暂停的一种有效解决方案是使用单导联心电图(ECG)信号来检测呼吸暂停,目前通常通过人工设计各种功能。例如,通过从ECG信号中提取特征,放入邻近算法(kNN)、支持向量机(SVM)等各种分类器中进行分类,或者通过深度神经网络进行自动特征提取及分类。但在100Hz左右采样的ECG信号限制了神经网络的深度,从而影响睡眠呼吸检测的准确性和精度。因此,现有的睡眠呼吸检测方法在用户体验、灵活性及准确性方面都存在一定的缺陷。In the prior art, an effective solution for detecting sleep apnea is to use a single-lead electrocardiogram (ECG) signal to detect apnea, and currently, various functions are usually designed manually. For example, by extracting features from ECG signals, put them into various classifiers such as proximity algorithm (kNN) and support vector machine (SVM) for classification, or perform automatic feature extraction and classification through deep neural networks. But the ECG signal sampled at around 100Hz limits the depth of the neural network, which affects the accuracy and precision of sleep breathing detection. Therefore, the existing sleep breathing detection methods have certain defects in terms of user experience, flexibility and accuracy.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种基于心跳间期的睡眠呼吸暂停自动检测方法和装置,通过提取心电图ECG信号中的心跳间期特征,并将此特征在残差神经网络中进行深入分析,结合心率变异性特征,判断是否出现呼吸暂停,提高睡眠呼吸暂停检测的准确性和灵活性。The embodiments of the present invention provide a method and device for automatic detection of sleep apnea based on heartbeat interval. By extracting the heartbeat interval feature in the ECG signal of the electrocardiogram, and deeply analyzing the feature in the residual neural network, combined with the heart rate Variability characteristics, determine whether apnea occurs, and improve the accuracy and flexibility of sleep apnea detection.

为了实现上述目的,本发明实施例采用的技术方案如下。In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present invention are as follows.

第一方面,本发明实施例提供了一种基于心跳间期的睡眠呼吸暂停自动检测方法,所述方法包括如下步骤:In a first aspect, an embodiment of the present invention provides an automatic detection method for sleep apnea based on heartbeat interval, the method comprising the following steps:

步骤S1,采集睡眠时的人体心电图ECG信号,根据心电周期PQRST五个波中的R波,进行相邻心电的心跳间期信息提取,生成心跳间期时间序列;Step S1, collects the human electrocardiogram ECG signal during sleep, and extracts the heartbeat interval information of adjacent electrocardiograms according to the R wave in the five waves of the electrocardiogram cycle PQRST, and generates a heartbeat interval time series;

步骤S2,基于预设的残差神经网络对所述心跳间期时间序列进行特征自动提取,得到第一心率变异性特征;Step S2, automatic feature extraction is performed on the heartbeat interval time series based on a preset residual neural network to obtain a first HRV feature;

步骤S3,基于心跳间期时间序列进行心率变异性特征提取,获得第二心率变异性特征;Step S3, performing heart rate variability feature extraction based on the heartbeat interval time series to obtain a second heart rate variability feature;

步骤S4,将所述残差神经网络自动提取的第一心率变异性特征和所述第二心率变异性特征集合进行特征融合,一起输入到分类器,判断是否出现呼吸暂停。Step S4, the first HRV feature automatically extracted by the residual neural network and the second HRV feature set are feature-fused, and input to the classifier together to determine whether apnea occurs.

可选地,所述步骤S1中生成心跳间期时间序列,进一步为,使用线性插值对所提取的心跳间期信息采用2Hz频率进行重采样,生成心跳间期时间序列。Optionally, in the step S1, a heartbeat interval time series is generated, and further, a linear interpolation is used to resample the extracted heartbeat interval information at a frequency of 2 Hz to generate a heartbeat interval time series.

可选地,所述步骤S2中对心跳间期时间序列进行特征自动提取,进一步为:使用卷积神经网络CNN和反向传播BP算法训练所述残差神经网络,完成特征自动提取。Optionally, in the step S2, automatic feature extraction is performed on the heartbeat interval time series, further comprising: using a convolutional neural network CNN and a back-propagation BP algorithm to train the residual neural network to complete automatic feature extraction.

可选地,所述卷积神经网络共由33层一维卷积层构成,通过与批量归一化层、dropout层、ReLu函数层的结构组合,组成16个残差块。Optionally, the convolutional neural network is composed of 33 one-dimensional convolutional layers in total, and 16 residual blocks are formed by combining with the structure of the batch normalization layer, the dropout layer, and the ReLu function layer.

可选地,所述ReLu函数层中,一维卷积层是CNN的核心,激活函数h的输入向量为X,输出是下一层的输入,第l层卷积层的输出Y(l) conv为:Optionally, in the ReLu function layer, the one-dimensional convolutional layer is the core of the CNN, the input vector of the activation function h is X, the output is the input of the next layer, and the output of the first convolutional layer is Y (l) conv is:

Figure BDA0002378877450000021
Figure BDA0002378877450000021

式(1)中,

Figure BDA0002378877450000022
是卷积计算,B为偏置矩阵,W为具有固定大小的权值向量。In formula (1),
Figure BDA0002378877450000022
is the convolution calculation, B is the bias matrix, and W is the weight vector with fixed size.

可选地,所述卷积层之间采用平均池化层。Optionally, an average pooling layer is used between the convolutional layers.

可选地,在所述16个残差块中,建立一个短路连接,将残差块的输入添加到残差块的输出中,并在短路连接中进行投影,以使输入大小与输出大小相匹配,从而完成神经网络特征的自动提取。Optionally, among the 16 residual blocks, a short-circuit connection is established, the input of the residual block is added to the output of the residual block, and a projection is performed in the short-circuit connection, so that the input size is the same as the output size. Matching, so as to complete the automatic extraction of neural network features.

可选地,所述步骤S3中心率变异性特征,包括:心跳间期的平均值、心跳间期的标准差、心跳间期的偏度、心跳间期的峰度、NN50度量值、pNN50指标、相邻心跳间期之间差异的标准差、相邻心跳间期之间差异平方平均值的平方根、Allan因子、心跳间期的极低频、心跳间期的低频、心跳间期的高频、心跳间期的低频LF与高频HF之比。Optionally, described step S3 heart rate variability characteristics, including: the mean value of heartbeat interval, the standard deviation of heartbeat interval, the skewness of heartbeat interval, the kurtosis of heartbeat interval, NN50 measurement value, pNN50 index , the standard deviation of the difference between adjacent heartbeat intervals, the square root of the square mean of the difference between adjacent heartbeat intervals, the Allan factor, the very low frequency of the heartbeat interval, the low frequency of the heartbeat interval, the high frequency of the heartbeat interval, The ratio of low frequency LF to high frequency HF in the heartbeat interval.

可选地,所述步骤S4中的判断是否出现呼吸暂停,进一步为:Optionally, judging whether apnea occurs in the step S4 is further:

将所述残差神经网络自动提取的第一心率变异性特征与所述人工提取的第二心率变异性特征融合为一个特征向量,并输入到一层全连接神经网络分类器中;所述特征向量经过所述分类器后得到未标准化的判别值x,通过输出函数sigmoid(x)将所述判别值转化为当前时间段内患者出现睡眠呼吸暂停的伪概率;当判别值x为非负时,伪概率大于等于50%,判断当前时间段内患者出现睡眠呼吸暂停,预测标签值

Figure BDA0002378877450000023
等于1;当判别值x为负时,伪概率小于50%,判断当前时间段内患者未出现睡眠呼吸暂停,预测标签值
Figure BDA0002378877450000024
等于0。The first HRV feature automatically extracted by the residual neural network and the manually extracted second HRV feature are fused into a feature vector, and input into a layer of fully connected neural network classifier; the feature After the vector passes through the classifier, an unstandardized discriminant value x is obtained, and the discriminant value is converted into the pseudo probability of sleep apnea in the patient in the current time period through the output function sigmoid(x); when the discriminant value x is non-negative , the pseudo probability is greater than or equal to 50%, it is judged that the patient has sleep apnea in the current time period, and the label value is predicted
Figure BDA0002378877450000023
Equal to 1; when the discriminant value x is negative, the pseudo probability is less than 50%, it is judged that the patient does not have sleep apnea in the current time period, and the label value is predicted
Figure BDA0002378877450000024
equal to 0.

第二方面,本发明实施例提供了一种基于心跳间期的睡眠呼吸暂停自动检测装置,所述睡眠呼吸暂停自动检测装置包括:心跳间期信息采集模块、深度特征提取模块、心率变异性特征提取模块、睡眠呼吸暂停判断模块;其中,In a second aspect, an embodiment of the present invention provides an automatic detection device for sleep apnea based on heartbeat interval. The automatic detection device for sleep apnea includes: a heartbeat interval information collection module, a depth feature extraction module, and a heart rate variability feature. Extraction module, sleep apnea judgment module; wherein,

心跳间期信息采集模块同时与所述深度特征提取模块和心率变异性特征提取模块相连,用于采集睡眠时的人体心电图ECG信号,根据心电周期PQRST五个波中的R波,进行相邻心电的心跳间期信息提取,生成心跳间期时间序列,并将所述心跳间期时间序列发送给所述深度特征提取模块和心率变异性特征提取模块;The heartbeat interval information collection module is connected with the depth feature extraction module and the heart rate variability feature extraction module at the same time, and is used to collect the ECG signal of the human body electrocardiogram during sleep. Extracting heartbeat interval information of the electrocardiogram, generating a heartbeat interval time series, and sending the heartbeat interval time series to the depth feature extraction module and the heart rate variability feature extraction module;

所述深度特征提取模块用于根据所述生成心跳间期时间序列并基于预设的残差神经网络自动提取特征,并将所述自动提取特征发送给所述睡眠呼吸暂停判断模块;The depth feature extraction module is configured to automatically extract features according to the generated heartbeat interval time series and based on a preset residual neural network, and send the automatically extracted features to the sleep apnea judgment module;

所述心率变异性特征提取模块用于根据所述生成心跳间期时间序列提取心率变异性特征,并将所述心率变异性特征发送给所述睡眠呼吸暂停判断模块;The heart rate variability feature extraction module is configured to extract the heart rate variability feature according to the generated heartbeat interval time series, and send the heart rate variability feature to the sleep apnea judgment module;

所述睡眠呼吸暂停判断模块同时与所述深度特征提取模块和心率变异性特征提取模块相连,用于根据所接收的自动提取特征和心率变异性特征判断是否出现睡眠呼吸暂停。The sleep apnea judging module is connected with the depth feature extraction module and the heart rate variability feature extraction module at the same time, and is used for judging whether sleep apnea occurs according to the received automatic extraction features and heart rate variability features.

本发明具有如下有益效果:本发明实施例所述基于心跳间期的睡眠呼吸暂停自动检测方法和装置,首先采集睡眠时的心跳间期信息,再通过残差神经网络对所述心跳间期信息自动提取特征,并进一步提取心率变异性特征,再将所述自动提取特征和心率变异性特征集合进行融合,从而判断是否出现呼吸暂停,具有很大的灵活性,提高了睡眠呼吸暂停检测的准确性和检测精度。The present invention has the following beneficial effects: the method and device for automatic detection of sleep apnea based on heartbeat interval according to the embodiment of the present invention first collect heartbeat interval information during sleep, and then use a residual neural network to analyze the heartbeat interval information. Automatically extract features, further extract heart rate variability features, and then fuse the automatically extracted features and heart rate variability feature sets to determine whether apnea occurs, which has great flexibility and improves the accuracy of sleep apnea detection. performance and detection accuracy.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1为本发明实施例基于心跳间期的睡眠呼吸暂停自动检测方法的流程示意图;1 is a schematic flowchart of an automatic detection method for sleep apnea based on heartbeat interval according to an embodiment of the present invention;

图2为本发明实施例睡眠呼吸暂停自动检测方法中残差神经网络计算流程图;2 is a flow chart of calculating a residual neural network in a method for automatic detection of sleep apnea according to an embodiment of the present invention;

图3为本发明实施例基于心跳间期的睡眠呼吸暂停自动检测装置结构示意图。FIG. 3 is a schematic structural diagram of an apparatus for automatic detection of sleep apnea based on heartbeat interval according to an embodiment of the present invention.

具体实施方式Detailed ways

下面通过参考示范性实施例,对本发明技术问题、技术方案和优点进行详细阐明。以下所述示范性实施例仅用于解释本发明,而不能解释为对本发明的限制。本领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语)具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非在这里进行定义,否则不会用理想化或过于正式的含义来解释。The technical problems, technical solutions and advantages of the present invention will be explained in detail below by referring to the exemplary embodiments. The exemplary embodiments described below are only for explaining the present invention, and should not be construed as limiting the present invention. It will be understood by those of ordinary skill in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art, and not in idealized or overly formal meanings unless defined herein to explain.

本发明实施例通过提取心电图ECG信号中的心跳间期(Heartbeat Interval,HI)的特征,并将此特征在残差神经网络(Residual Network,RN)中进行深入分析,对睡眠呼吸暂停进行检测。所述残差神经网络,结合了心率变异性特征(Heart Rate Variability,HRV),是利用网络压缩技术在可穿戴设备或智能电话上应用的一种深度算法,且所述残差神经网络中的所有权重都可以进行微调,与人工设计的功能相比,具有很大的灵活性。The embodiments of the present invention detect sleep apnea by extracting a heartbeat interval (HI) feature in an ECG signal, and performing an in-depth analysis of the feature in a residual neural network (Residual Network, RN). The residual neural network, combined with Heart Rate Variability (HRV), is a deep algorithm applied on wearable devices or smart phones by using network compression technology, and the residual neural network is a deep algorithm. All weights can be fine-tuned, giving a lot of flexibility compared to hand-designed features.

为便于对本发明实施方式的理解,下面将结合附图以几个具体实施例为例做进一步的解释说明,且各个实施例并不构成对本发明技术方案的限定。In order to facilitate the understanding of the embodiments of the present invention, the following will take several specific embodiments as examples for further explanation and description in conjunction with the accompanying drawings, and each embodiment does not constitute a limitation on the technical solutions of the present invention.

第一实施例first embodiment

本实施例提供了一种基于心跳间期的睡眠呼吸暂停自动检测方法,图1所示为所述睡眠呼吸暂停自动检测方法流程示意图。如图1所示,所述基于心跳间期的睡眠呼吸暂停自动检测方法包括如下步骤:This embodiment provides an automatic detection method for sleep apnea based on a heartbeat interval, and FIG. 1 is a schematic flowchart of the automatic detection method for sleep apnea. As shown in Figure 1, the method for automatic detection of sleep apnea based on heartbeat interval includes the following steps:

步骤S1,采集睡眠时的人体心电图ECG信号,根据心电周期PQRST五个波中的R波,进行相邻心电的心跳间期信息提取,生成心跳间期时间序列。In step S1, the ECG signal of the human body electrocardiogram during sleep is collected, and the heartbeat interval information of adjacent ECGs is extracted according to the R wave in the five waves of the electrocardiogram cycle PQRST to generate a heartbeat interval time series.

本步骤中,所述采集睡眠时的人体心电图ECG信号,可利用移动设备等简单舒适的设备进行采集。优选地,采样频率为100Hz。所述生成心跳间期时间序列,进一步为,使用线性插值对所提取的心跳间期信息采用2Hz频率进行重采样,生成心跳间期时间序列。In this step, the collection of the human electrocardiogram ECG signal during sleep may be performed by using a simple and comfortable device such as a mobile device. Preferably, the sampling frequency is 100 Hz. The step of generating a heartbeat interval time series is further by using linear interpolation to resample the extracted heartbeat interval information at a frequency of 2 Hz to generate a heartbeat interval time series.

步骤S2,基于预设的残差神经网络对所述心跳间期时间序列进行特征自动提取,得到第一心率变异性特征。Step S2: Automatic feature extraction is performed on the heartbeat interval time series based on a preset residual neural network to obtain a first HRV feature.

本步骤中,所述对心跳间期时间序列进行特征自动提取,进一步为:使用卷积神经网络(CNN)和反向传播(Backpropagation,BP)算法训练所述残差神经网络,完成特征自动提取。In this step, the automatic feature extraction of the heartbeat interval time series is further: using a convolutional neural network (CNN) and a backpropagation (Backpropagation, BP) algorithm to train the residual neural network to complete the automatic feature extraction .

图2为本实施例残差神经网络计算流程图。通过深度特征提取,得到第一心率变异性特征。如图2所示,时长为3分钟的心跳间期时间序列输入后,先是经过5个大小为1*20的一维卷积层提取到128个特征映射(feature maps),后面加上批量归一化(batchnormalization,BN)层进行归一化和ReLu函数层进行激活,然后通过一个大小为1*2的平均池化层(average pooling)进行平均池化;紧接着是16个相同的残差块依次相连,每个残差块都是令传进来的feature maps经过2个大小为1*3的一维卷积层、2个BN层、2个Relu函数层后与自己本身相加,短路连接是用于将残差块的输入与输出相加;最后再经过一个大小为1*3的卷积层和一个average pooling层,得到的512个feature maps即为自动提取的第一心率变异性特征。FIG. 2 is a flow chart of calculating the residual neural network in this embodiment. Through deep feature extraction, the first HRV feature is obtained. As shown in Figure 2, after the heartbeat interval time series with a duration of 3 minutes is input, 128 feature maps are first extracted through 5 one-dimensional convolutional layers of size 1*20, followed by batch normalization. The batch normalization (BN) layer is normalized and the ReLu function layer is activated, and then average pooled by an average pooling layer of size 1*2; followed by 16 identical residuals The blocks are connected in sequence, and each residual block is to add the incoming feature maps to itself after passing through 2 one-dimensional convolution layers of size 1*3, 2 BN layers, and 2 Relu function layers, short-circuiting The connection is used to add the input and output of the residual block; finally, through a convolutional layer of size 1*3 and an average pooling layer, the obtained 512 feature maps are the automatically extracted first heart rate variability feature.

其中一维卷积层是CNN的核心,在卷积层中,具有固定大小的权值向量W将逐条地乘以输入数据,即为卷积操作,卷积结果加上偏置项B组成激活函数h的输入。激活函数h的输出将是下一层的输入。输入向量为X,则第l层卷积层的输出Y为:The one-dimensional convolution layer is the core of CNN. In the convolution layer, the weight vector W with a fixed size will be multiplied by the input data one by one, which is the convolution operation. The convolution result plus the bias term B constitutes the activation Input to function h. The output of the activation function h will be the input to the next layer. The input vector is X, then the output Y of the lth convolutional layer is:

Figure BDA0002378877450000041
Figure BDA0002378877450000041

式(1)中,

Figure BDA0002378877450000042
是卷积计算,B为偏置矩阵,W为具有固定大小的权值向量。In formula (1),
Figure BDA0002378877450000042
is the convolution calculation, B is the bias matrix, and W is the weight vector with fixed size.

本实施例中,卷积层中的所有激活函数h都是ReLU函数,以加速训练并降低神经网络中的最终错误率。In this embodiment, all activation functions h in the convolutional layer are ReLU functions to speed up training and reduce the final error rate in the neural network.

输入x的ReLU函数是:The ReLU function for input x is:

hRelU(x)=max(0,x) (2)h RelU (x)=max(0,x) (2)

CNN中有两种类型的池化层:平均池化层和最大池化层。最大池化层用于减少由不良权重初始化引起的平均值偏移误差,或卷积层中使用Xavier初始化,也可以减少平均值偏移误差。平均池化层能够减少卷积层输出中的标准差误差。由测量误差和其他生理机制引起的噪声可能导致心跳间期的标准偏差误差。此外,也可以使用平均滤波器进行心跳间期校正。本实施例中,在卷积层之间使用平均池化层,以减少卷积层输出中由测量误差和其他生理机制引起的心跳间期的标准偏差误差。There are two types of pooling layers in CNN: average pooling layers and max pooling layers. A max pooling layer used to reduce mean shift error caused by poor weight initialization, or using Xavier initialization in convolutional layers, can also reduce mean shift error. The average pooling layer can reduce the standard deviation error in the output of the convolutional layer. Noise caused by measurement errors and other physiological mechanisms can contribute to standard deviation errors in the heartbeat interval. In addition, an averaging filter can also be used for inter-beat correction. In this embodiment, an average pooling layer is used between the convolutional layers to reduce the standard deviation error of the heartbeat interval caused by measurement error and other physiological mechanisms in the output of the convolutional layer.

批量归一化层(BN层)用于减少所述残差神经网络中的内部协变量偏移,归一化输入X的标准偏差Var和期望E:A batch normalization layer (BN layer) is used to reduce the internal covariate shift in the residual neural network, normalizing the standard deviation Var of the input X and the expectation E:

Figure BDA0002378877450000051
Figure BDA0002378877450000051

式(3)中,E(x)和Var(x)是输入X的期望和偏差,x是输入样本,∈是平滑项,用于避免除零,通常将其设置为可忽略不计的非常小的正数。神经网络中的批量归一化层(BN层)可以实现数据白化的功能。In Eq. (3), E(x) and Var(x) are the expectation and bias of the input X, x is the input sample, and ∈ is the smoothing term to avoid division by zero, which is usually set to be negligibly very small. positive number. The batch normalization layer (BN layer) in the neural network can realize the function of data whitening.

残差神经网络的16个残差块中,每个残差块都是由两个一维卷积层、两个BN层和两个Relu函数层组成,用输入X来定义它的输出Y:Among the 16 residual blocks of the residual neural network, each residual block is composed of two one-dimensional convolutional layers, two BN layers and two Relu function layers. The input X is used to define its output Y:

Y=F(X,{W}) (4)Y=F(X,{W}) (4)

式(4)中,F代表块的映射,并且集合{W}表示块中的所有参数,得到残差块的输出Yr为:In formula (4), F represents the mapping of the block, and the set {W} represents all parameters in the block, and the output Y r of the residual block is obtained as:

Yr=Y+X=F(X,{W})+X (5)Y r =Y+X=F(X,{W})+X (5)

当Y的维度大于X时,对X投影以保持两个矩阵的相同维度。When the dimension of Y is greater than X, project X to keep the same dimension of both matrices.

采用BP算法计算第i个参数Wi的梯度Gi是:Using the BP algorithm to calculate the gradient G i of the i -th parameter Wi is:

Figure BDA0002378877450000052
Figure BDA0002378877450000052

当Gi等于零时,

Figure BDA0002378877450000053
可能为零;当梯度等于零时,卷积层停止训练。When G i is equal to zero,
Figure BDA0002378877450000053
May be zero; when the gradient equals zero, the convolutional layer stops training.

残差块中的梯度

Figure BDA0002378877450000054
是Gradients in Residual Blocks
Figure BDA0002378877450000054
Yes

Figure BDA0002378877450000055
Figure BDA0002378877450000055

Figure BDA0002378877450000056
始终是残差网络中前一个残余块的输出,为非零。
Figure BDA0002378877450000056
Always the output of the previous residual block in the residual network, non-zero.

在所述16个残差块中,建立一个短路连接,将残差块的输入添加到其输出中,并在短路连接中进行投影,以使输入大小与输出大小相匹配。Among the 16 residual blocks, a short-circuit connection is established, the input of the residual block is added to its output, and a projection is made in the short-circuit connection so that the input size matches the output size.

步骤S3,基于心跳间期时间序列进行心率变异性特征提取,获得第二心率变异性特征。Step S3, extracting the heart rate variability feature based on the heartbeat interval time series to obtain the second heart rate variability feature.

本步骤中,所述心率变异性特征为逐次心跳周期之间心率的微小变异,也指心跳间期之间的微小变化,对心跳间期进行线性和非线性数据特征提取可获取心率变异性信息。In this step, the heart rate variability feature is the small variation of heart rate between successive heartbeat cycles, and also refers to the small change between heartbeat intervals. The heart rate variability information can be obtained by extracting linear and nonlinear data features for the heartbeat interval. .

在图2所示的残差神经网络计算流程中,输入时长为3分钟的心跳间期时间序列,通过对每一分钟进行人工特征提取,这样同一种特征就可以计算得到三个结果,最后得到第二心率变异性特征如图2所示,所述第二心率变异性特征种类,包括:心跳间期的平均值、心跳间期的标准差、心跳间期的偏度、心跳间期的峰度、NN50度量值、pNN50指标、相邻心跳间期之间差异的标准差、相邻心跳间期之间差异平方平均值的平方根、Allan因子、心跳间期的极低频、心跳间期的低频、心跳间期的高频、心跳间期的低频LF与高频HF之比。所有的第二心率变异性特征形成一个特征向量。In the residual neural network calculation process shown in Figure 2, the heartbeat interval time series with a duration of 3 minutes is input, and artificial feature extraction is performed for each minute, so that the same feature can be calculated to obtain three results, and finally get The second HRV feature is shown in FIG. 2 , and the second HRV feature types include: the average value of the heartbeat interval, the standard deviation of the heartbeat interval, the skewness of the heartbeat interval, and the peak value of the heartbeat interval Degree, NN50 measure, pNN50 index, standard deviation of the difference between adjacent heartbeat intervals, square root of the mean squared difference between adjacent heartbeat intervals, Allan factor, very low frequency of heartbeat interval, low frequency of heartbeat interval , the high frequency of the heartbeat interval, the ratio of the low frequency LF to the high frequency HF of the heartbeat interval. All the second HRV features form a feature vector.

所述基于心跳间期时间序列进行第二心率变异性特征提取,进一步包括以下步骤:The second heart rate variability feature extraction based on the heartbeat interval time series further includes the following steps:

步骤S301,计算心跳间期的平均值(mean of RR intervals,Mean RR);Step S301, calculating the mean of RR intervals (mean of RR intervals, Mean RR);

步骤S302,计算心跳间期的标准差(Standard deviation of RR intervals,SDRR);Step S302, calculating the standard deviation of the heartbeat interval (Standard deviation of RR intervals, SDRR);

步骤S303,计算心跳间期的偏度(Skewness of RR intervals,Skewness RR);Step S303, calculating the skewness of the heartbeat interval (Skewness of RR intervals, Skewness RR);

步骤S304,计算心跳间期的峰度(Kurtosis of RR intervals,Kurtosis RR);Step S304, calculating the kurtosis of the heartbeat interval (Kurtosis of RR intervals, Kurtosis RR);

步骤S305,计算NN50度量值(变体1),所述NN50度量值(变体1)为相邻心跳间期对中第一心跳间期时长大于第二个心跳间期时长至少50ms的间期对数量(number of pairsof adjacent normal to normal intervals differing by more than 50ms,NN50);Step S305, calculate the NN50 metric value (variant 1), and the NN50 metric value (variant 1) is the interval in which the duration of the first heartbeat interval in the adjacent heartbeat interval is greater than the duration of the second heartbeat interval by at least 50ms Number of pairs (number of pairs of adjacent normal to normal intervals differing by more than 50ms, NN50);

步骤S306,计算NN50度量值(变体2),所述NN50度量值(变体2)为第二心跳间期超过第一个心跳间期超过50ms的相邻心跳间期对的数量;Step S306, calculate NN50 metric value (variant 2), described NN50 metric value (variant 2) is the number of adjacent heartbeat interval pairs that the second heartbeat interval exceeds the first heartbeat interval to exceed 50ms;

步骤S307,计算变体1的pNN50指标,为每个NN50指标除以心跳间期总数(Percentof NN50in the total number of RR intervals,PNN50);Step S307, calculating the pNN50 index of variant 1, dividing each NN50 index by the total number of heartbeat intervals (Percentof NN50 in the total number of RR intervals, PNN50);

步骤S308,计算变体2的pNN50指标,为每个NN50指标除以心跳间期总数;Step S308, calculating the pNN50 index of variant 2, dividing each NN50 index by the total number of heartbeat intervals;

步骤S309,计算相邻心跳间期之间差异的标准差(Standard deviation ofSuccessive Difference between adjacent cycles,SDSD);Step S309, calculating the standard deviation of the difference between adjacent heartbeat intervals (Standard deviation of Successive Difference between adjacent cycles, SDSD);

步骤S310,计算相邻心跳间期之间差异平方平均值的平方根(The root meansquare of difference between adjacent NN intervals,R MSSD);Step S310, calculating the square root of the mean square of difference between adjacent heartbeat intervals (The root mean square of difference between adjacent NN intervals, R MSSD);

步骤S311,计算Allan因子A(T)在时间刻度5,10,15,20和25s进行评估Step S311, calculate the Allan factor A(T) for evaluation at time scales 5, 10, 15, 20 and 25s

Figure BDA0002378877450000061
Figure BDA0002378877450000061

式(8)中,Ni(T)是长度为T的窗口中QRS检测点的数量,从iT延伸到(i+1)T,E是期望算子;In formula (8), N i (T) is the number of QRS detection points in the window of length T, extending from iT to (i+1)T, and E is the expectation operator;

步骤S312,计算心跳间期的极低频(very low frequencies,VLF);Step S312, calculating very low frequencies (VLF) in the heartbeat interval;

步骤S313,计算心跳间期的低频(Low frequency,LF);Step S313, calculating the low frequency (Low frequency, LF) of the heartbeat interval;

步骤S314,计算心跳间期的高频(High Frequency,HF);Step S314, calculating the high frequency (High Frequency, HF) of the heartbeat interval;

步骤S315,计算心跳间期的LF与HF之比。In step S315, the ratio of LF to HF in the heartbeat interval is calculated.

步骤S4,将所述残差神经网络自动提取的第一心率变异性特征和所述第二心率变异性特征集合进行特征融合,一起输入到分类器,判断是否出现呼吸暂停。Step S4, the first HRV feature automatically extracted by the residual neural network and the second HRV feature set are feature-fused, and input to the classifier together to determine whether apnea occurs.

本步骤将所述残差神经网络自动提取的第一心率变异性特征与所述人工提取的第二心率变异性特征融合为一个特征向量,输入到分类器中。所述特征向量经过一层全连接神经网络分类器后得到未标准化的判别值x,通过输出函数sigmoid(x)将此判别值转化为当前时段内患者出现睡眠呼吸暂停的伪概率,其值范围在0-100%之间,输入x的sigmoid函数如下表示:In this step, the first HRV feature automatically extracted by the residual neural network and the manually extracted second HRV feature are fused into a feature vector, which is input into the classifier. The feature vector obtains an unstandardized discriminant value x after passing through a layer of fully connected neural network classifier, and this discriminant value is converted into the pseudo probability of sleep apnea in the patient in the current period through the output function sigmoid(x). Between 0-100%, the sigmoid function of input x is represented as follows:

Figure BDA0002378877450000071
Figure BDA0002378877450000071

训练时,当真实标签为y并且预测标签为

Figure BDA0002378877450000072
时,二元交叉熵损失函数为:When training, when the true label is y and the predicted label is
Figure BDA0002378877450000072
When , the binary cross-entropy loss function is:

Figure BDA0002378877450000073
Figure BDA0002378877450000073

基于伪概率,预测标签

Figure BDA0002378877450000074
的计算方法为:Predict labels based on pseudo-probabilities
Figure BDA0002378877450000074
The calculation method is:

Figure BDA0002378877450000075
Figure BDA0002378877450000075

当判别值x为非负时,伪概率大于等于50%,判断当前时间段内患者出现睡眠呼吸暂停,预测标签值

Figure BDA0002378877450000076
等于1;当判别值x为负时,伪概率会小于50%,判断当前时间段内患者未出现睡眠呼吸暂停,预测标签值
Figure BDA0002378877450000077
等于0。When the discriminant value x is non-negative, the pseudo probability is greater than or equal to 50%, it is judged that the patient has sleep apnea in the current time period, and the label value is predicted.
Figure BDA0002378877450000076
Equal to 1; when the discriminant value x is negative, the pseudo probability will be less than 50%, judging that the patient does not have sleep apnea in the current time period, and predicting the label value
Figure BDA0002378877450000077
equal to 0.

由以上技术方案可以看出,本实施例所述基于心跳间期的睡眠呼吸暂停自动检测方法,首先采集睡眠时的心跳间期信息,再通过残差神经网络对所述心跳间期信息自动提取第一心率变异性特征,并进一步提取第二心率变异性特征,再将所述第一心率变异性特征和第二心率变异性特征集合进行融合,从而判断是否出现呼吸暂停。所述睡眠呼吸暂停自动检测方法只需要单导心电信息,采集过程简单便捷,并且精准地检测出是否出现了睡眠呼吸暂停,提高了睡眠检测的灵性性、准确性和精确性。It can be seen from the above technical solutions that the method for automatic detection of sleep apnea based on heartbeat interval described in this embodiment first collects heartbeat interval information during sleep, and then automatically extracts the heartbeat interval information through a residual neural network. The first HRV feature is extracted, the second HRV feature is further extracted, and the first HRV feature and the second HRV feature set are fused to determine whether apnea occurs. The method for automatic detection of sleep apnea only needs single-lead electrocardiogram information, the collection process is simple and convenient, and whether sleep apnea occurs can be accurately detected, thereby improving the spirituality, accuracy and precision of sleep detection.

第二实施例Second Embodiment

本实施例提供了一种基于心跳间期的睡眠呼吸暂停自动检测装置,图3所示为所述自动检测装置结构示意图。如图3所示,所述睡眠呼吸暂停自动检测装置包括:心跳间期信息采集模块、深度特征提取模块、心率变异性特征提取模块、睡眠呼吸暂停判断模块;其中,This embodiment provides an automatic detection device for sleep apnea based on heartbeat interval, and FIG. 3 is a schematic structural diagram of the automatic detection device. As shown in Figure 3, the sleep apnea automatic detection device includes: a heartbeat interval information collection module, a depth feature extraction module, a heart rate variability feature extraction module, and a sleep apnea judgment module; wherein,

所述心跳间期信息采集模块同时与所述深度特征提取模块和心率变异性特征提取模块相连,用于采集睡眠时的人体心电图ECG信号,根据心电周期PQRST五个波中的R波,进行相邻心电的心跳间期信息提取,生成心跳间期时间序列,并将所述心跳间期时间序列发送给所述自动提取特征模块和心率变异性特征提取模块;The heartbeat interval information collection module is connected with the depth feature extraction module and the heart rate variability feature extraction module at the same time, and is used to collect the human electrocardiogram ECG signal during sleep. Extracting the heartbeat interval information of adjacent ECGs, generating a heartbeat interval time series, and sending the heartbeat interval time series to the automatic feature extraction module and the heart rate variability feature extraction module;

所述深度特征提取模块用于根据所述生成心跳间期时间序列并基于预设的残差神经网络自动提取特征,得到第一心率变异性特征,并将所述自动提取特征发送给所述睡眠呼吸暂停判断模块;The deep feature extraction module is configured to automatically extract features according to the generated heartbeat interval time series and based on a preset residual neural network to obtain a first heart rate variability feature, and send the automatically extracted features to the sleeper Apnea judgment module;

所述心率变异性特征提取模块用于基于心跳间期时间序列进行心率变异性特征提取,获得第二心率变异性特征,并将所述心率变异性特征发送给所述睡眠呼吸暂停判断模块;The heart rate variability feature extraction module is configured to perform heart rate variability feature extraction based on the heartbeat interval time series, obtain a second heart rate variability feature, and send the heart rate variability feature to the sleep apnea judgment module;

所述睡眠呼吸暂停判断模块同时与所述深度特征提取模块和心率变异性特征提取模块相连,用于根据所接收的自动提取特征和心率变异性特征判断是否出现睡眠呼吸暂停。The sleep apnea judging module is connected with the depth feature extraction module and the heart rate variability feature extraction module at the same time, and is used for judging whether sleep apnea occurs according to the received automatic extraction features and heart rate variability features.

本实施例所述基于心跳间期的睡眠呼吸暂停自动检测装置,是与第一实施例所述基于心跳间期的睡眠呼吸暂停自动检测方法相对应的技术方案,实施例之间相同或相似的部分互相参见,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明,在此不再赘述。The device for automatic detection of sleep apnea based on heartbeat interval described in this embodiment is a technical solution corresponding to the automatic detection method for sleep apnea based on heartbeat interval described in the first embodiment, and the embodiments are the same or similar. With partial reference to each other, each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus or system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial descriptions of the method embodiments, which will not be repeated here.

由以上技术方案可以看出,本实施例所述基于心跳间期的睡眠呼吸暂停自动检测装置,适合广大受众群体,具有普适性,为患者提供精准、快速的疾病辅助诊断服务,可及时发现心脑血管疾病内源的发病隐患。It can be seen from the above technical solutions that the automatic detection device for sleep apnea based on the heartbeat interval described in this embodiment is suitable for a wide audience, has universality, and provides accurate and fast auxiliary disease diagnosis services for patients, which can be discovered in time. Endogenous risk of cardiovascular and cerebrovascular diseases.

以上所述是本发明的优选实施方式,应当指出,本发明并不受限于以上所公开的示范性实施例,说明书的实质仅仅是帮助相关领域技术人员综合理解本发明的具体细节。对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,在本发明揭露的技术范围做出的若干改进和润饰、可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。The above descriptions are the preferred embodiments of the present invention. It should be noted that the present invention is not limited to the exemplary embodiments disclosed above, and the essence of the description is only to help those skilled in the relevant art to comprehensively understand the specific details of the present invention. For those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and modifications, and easily conceivable changes or substitutions made within the technical scope of the present invention should be covered in the within the protection scope of the present invention.

Claims (6)

1. An automatic sleep apnea detecting device based on a heartbeat interval, comprising: the device comprises a heartbeat interval information acquisition module, a depth feature extraction module, a heart rate variability feature extraction module and a sleep apnea judgment module; wherein,
the heartbeat interval information acquisition module is simultaneously connected with the depth characteristic extraction module and the heart rate variability characteristic extraction module and is used for acquiring a human electrocardiogram ECG signal during sleeping, extracting heartbeat interval information of adjacent electrocardios by adopting 2Hz frequency according to R waves in five waves of an electrocardio period PQRST by using linear interpolation values according to the extracted heartbeat interval information, generating a heartbeat interval time sequence and sending the heartbeat interval time sequence to the depth characteristic extraction module and the heart rate variability characteristic extraction module;
the depth feature extraction module is used for training the residual error neural network by using a Convolutional Neural Network (CNN) and a Back Propagation (BP) algorithm according to the generated heartbeat interval time sequence and based on a preset residual error neural network, automatically extracting features to obtain a first heart rate variability feature, and sending the automatically extracted features to the sleep apnea judgment module; the convolutional neural network is composed of 33 layers of one-dimensional convolutional layers in total, and is combined with a batch normalization layer, a dropout layer and a ReLu function layer to form 16 residual blocks;
the heart rate variability feature extraction module is used for extracting heart rate variability features based on the heart rate interval time sequence, extracting artificial features for each minute in the heart rate interval time sequence with the duration of 3 minutes input in the residual error neural network to obtain a second heart rate variability feature, and sending the heart rate variability feature to the sleep apnea judgment module;
the sleep apnea judging module is simultaneously connected with the depth feature extracting module and the heart rate variability feature extracting module, and is used for performing feature fusion on the first heart rate variability feature and the second heart rate variability feature set, inputting the feature fusion into the classifier, and judging whether sleep apnea occurs.
2. The automatic sleep apnea detecting device of claim 1, wherein in the ReLu function layer, the one-dimensional convolutional layer is a core of CNN, an input vector of an activation function h is X, an output is an input of a next layer, and an output Y of the one-dimensional convolutional layer is:
Figure FDA0003142925750000011
in the formula (1), the reaction mixture is,
Figure FDA0003142925750000012
is a convolution calculationB is a bias matrix and W is a weight vector with a fixed size.
3. The automatic sleep apnea detection device of claim 1, wherein an averaging pooling layer is employed between said convolutional layers.
4. The automatic sleep apnea detecting device of claim 1, wherein a short circuit connection is established among said 16 residual blocks for adding the input of the residual block to the output of the residual block, and projection is performed in the short circuit connection to match the input size with the output size, so as to complete automatic extraction of neural network features.
5. An automatic sleep apnea detection device as recited in claim 1, wherein said heart rate variability feature comprises: mean values of the intervals of the heart beats, standard deviations of the intervals of the heart beats, skewness of the intervals of the heart beats, kurtosis of the intervals of the heart beats, NN50 metric values, pNN50 index, standard deviations of the differences between adjacent intervals of the heart beats, square root of the mean squared difference of the differences between adjacent intervals of the heart beats, alan factor, very low frequencies of the intervals of the heart beats, high frequencies of the intervals of the heart beats, and a ratio of low frequencies LF and high frequencies HF of the intervals of the heart beats.
6. The automatic sleep apnea detecting device of claim 1, wherein said sleep apnea determining module is further configured to determine whether sleep apnea occurs by:
the first heart rate variability features automatically extracted by the residual error neural network and the second heart rate variability features manually extracted are fused into a feature vector and input into a layer of fully-connected neural network classifier; the feature vector passes through the classifier to obtain an unnormalized discrimination value x, and the discrimination value is converted into a pseudo probability that the patient has sleep apnea in the current time period through an output function sigmoid (x); when the discrimination value x is not negative, the false probability is greater than or equal to 50%, and the discrimination is carried outPredicting the label value when the patient has sleep apnea in the current time period
Figure FDA0003142925750000021
Equal to 1; when the discrimination value x is negative, the pseudo probability is less than 50%, the patient is judged not to have sleep apnea in the current time period, and the label value is predicted
Figure FDA0003142925750000022
Equal to 0.
CN202010077427.7A 2020-01-29 2020-01-29 Automatic sleep apnea detection method and device based on inter-heartbeat period Active CN111166294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010077427.7A CN111166294B (en) 2020-01-29 2020-01-29 Automatic sleep apnea detection method and device based on inter-heartbeat period

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010077427.7A CN111166294B (en) 2020-01-29 2020-01-29 Automatic sleep apnea detection method and device based on inter-heartbeat period

Publications (2)

Publication Number Publication Date
CN111166294A CN111166294A (en) 2020-05-19
CN111166294B true CN111166294B (en) 2021-09-14

Family

ID=70620740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010077427.7A Active CN111166294B (en) 2020-01-29 2020-01-29 Automatic sleep apnea detection method and device based on inter-heartbeat period

Country Status (1)

Country Link
CN (1) CN111166294B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113450901A (en) * 2020-05-28 2021-09-28 孙羽 Control method and device of respiratory support system and respiratory support system
CN112426147B (en) * 2020-10-21 2023-08-08 华南师范大学 Sleep respiratory event detection model processing method, system and storage medium
CN112617856A (en) * 2020-12-14 2021-04-09 上海交通大学 Coronary heart disease electrocardiogram screening system and method based on residual error neural network
CN113243890B (en) * 2021-05-10 2023-01-13 清华大学深圳国际研究生院 Sleep apnea syndrome recognition device
CN116339509A (en) * 2021-06-25 2023-06-27 内蒙古工业大学 A control method and control device for an intelligent terminal device
CN114073495B (en) * 2021-12-03 2024-03-22 中山大学·深圳 Sleep apnea detection method and device based on information similarity
TWI837948B (en) * 2022-11-15 2024-04-01 國立勤益科技大學 Method for fully detecting apnea and hypopnea events

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080051669A1 (en) * 2006-08-28 2008-02-28 Wolfgang Meyer Diagnosis of sleep apnea
CN101816822A (en) * 2010-05-27 2010-09-01 天津大学 Setting method of functional electrical stimulation PID (Proportion Integration Differentiation) parameter double source characteristic fusion particle swarm
CN104545888A (en) * 2014-12-27 2015-04-29 迪姆软件(北京)有限公司 Sleep apnea collecting and analyzing system based on dynamic electrocardiogram and respiratory wave collection
CN106343977A (en) * 2016-09-21 2017-01-25 中国人民解放军国防科学技术大学 UAV (unmanned aerial vehicle) operator state monitoring system based on multi-sensor fusion
US20180310876A1 (en) * 2015-05-19 2018-11-01 Shanghai Megahealth Technologies Co., Ltd Noncontact detection method of sleep stages and sleep-disordered breathing

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000010455A1 (en) * 1998-08-24 2000-03-02 Emory University Method and apparatus for predicting the onset of seizures based on features derived from signals indicative of brain activity
US20050054940A1 (en) * 2003-04-23 2005-03-10 Almen Adam J. Apparatus and method for monitoring heart rate variability
US10213152B2 (en) * 2011-02-14 2019-02-26 The Board Of Regents Of The University Of Texas System System and method for real-time measurement of sleep quality
CN103949010A (en) * 2014-05-05 2014-07-30 吉林大学 Application of high-frequency current for treating OSA
EP3237040A1 (en) * 2014-12-22 2017-11-01 Medicus Engineering ApS Closed-loop control of insulin infusion and system for measuring autonomic nervous system modulation
KR20240001168A (en) * 2015-01-06 2024-01-03 데이비드 버톤 Mobile wearable monitoring systems
CN104636492B (en) * 2015-03-04 2017-12-05 浪潮电子信息产业股份有限公司 Dynamic data grading method based on fuzzy integral feature fusion
CN107126203A (en) * 2016-02-28 2017-09-05 南京全时陪伴健康科技有限公司 Human health information measures display system in real time
CN106361277A (en) * 2016-08-26 2017-02-01 中山大学 Sleep apnea syndrome assessment method based on electrocardiogram signals
TWI725255B (en) * 2017-11-20 2021-04-21 金寶電子工業股份有限公司 Wearable device capable of detecting sleep apnea and signal analysis method thereof
CN108182974B (en) * 2017-12-27 2021-01-05 深圳和而泰数据资源与云技术有限公司 Disease evaluation method, terminal device and computer readable medium
CN108606798B (en) * 2018-05-10 2021-03-02 东北大学 Non-contact atrial fibrillation intelligent detection system based on deep convolution residual error network
CN109106350A (en) * 2018-09-20 2019-01-01 中山大学 The preliminary screening method of the Sleep Apnea-hypopnea Syndrome of low physiological stress
CN109394188B (en) * 2018-11-27 2022-03-08 中山大学 Method, device and equipment for detecting respiratory anomaly based on heart rate variability
CN109674474B (en) * 2018-11-30 2021-12-03 深圳和而泰智能控制股份有限公司 Sleep apnea recognition method, device and computer readable medium
CN110151138B (en) * 2019-05-29 2021-08-24 中山大学 Sleep apnea segment detection method and device based on convolutional neural network
CN110309758B (en) * 2019-06-26 2021-12-03 广州视源电子科技股份有限公司 Electrocardiosignal feature extraction method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080051669A1 (en) * 2006-08-28 2008-02-28 Wolfgang Meyer Diagnosis of sleep apnea
CN101816822A (en) * 2010-05-27 2010-09-01 天津大学 Setting method of functional electrical stimulation PID (Proportion Integration Differentiation) parameter double source characteristic fusion particle swarm
CN104545888A (en) * 2014-12-27 2015-04-29 迪姆软件(北京)有限公司 Sleep apnea collecting and analyzing system based on dynamic electrocardiogram and respiratory wave collection
US20180310876A1 (en) * 2015-05-19 2018-11-01 Shanghai Megahealth Technologies Co., Ltd Noncontact detection method of sleep stages and sleep-disordered breathing
CN106343977A (en) * 2016-09-21 2017-01-25 中国人民解放军国防科学技术大学 UAV (unmanned aerial vehicle) operator state monitoring system based on multi-sensor fusion

Also Published As

Publication number Publication date
CN111166294A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111166294B (en) Automatic sleep apnea detection method and device based on inter-heartbeat period
CN109157202B (en) Cardiovascular disease early warning system based on multi-physiological signal deep fusion
US11517212B2 (en) Electrocardiogram information dynamic monitoring method and dynamic monitoring system
KR101210828B1 (en) Apparatus and method improving accuracy of wrist blood pressure by using multiple bio-signal
WO2019161608A1 (en) Multi-parameter monitoring data analysis method and multi-parameter monitoring system
CN101732040B (en) Non-invasive multipath pulse wave detection device, system and analytical system
CN104173043B (en) Electrocardio data analysis method suitable for mobile platform
CN108577830B (en) User-oriented physical sign information dynamic monitoring method and system
Wang et al. Photoplethysmography-based blood pressure estimation combining filter-wrapper collaborated feature selection with LASSO-LSTM model
WO2019161609A1 (en) Method for analyzing multi-parameter monitoring data and multi-parameter monitor
WO2017024457A1 (en) Blood-pressure continuous-measurement device, measurement model establishment method, and system
CN103800003B (en) A kind of ECG detecting method and detector
CN109288515B (en) Method and device for periodic monitoring of premature beats in wearable ECG signals
TW201019901A (en) Sleep analysis system and analysis method thereof
WO2018040680A1 (en) Method and apparatus for determining blood pressure
CN110236508A (en) A kind of non-invasive blood pressure continuous monitoring method
CN107296600A (en) A kind of quick 12 lead electrocardiosignal method for evaluating quality
CN112274121B (en) A non-invasive arteriosclerosis detection method and device based on multiple pulse waves
CN114587347B (en) Pulmonary function detection method, system, device, computer equipment and storage medium
Jiang et al. A robust wrist pulse acquisition system based on multisensor collaboration and signal quality assessment
CN117562554A (en) Portable sleep monitoring and quality assessment method and system
CN111839488B (en) Device and method for non-invasive continuous blood pressure measurement based on pulse wave
CN116803340A (en) A non-invasive blood pressure detection method based on multi-source data fusion and graph neural network
CN109394206B (en) Real-time monitoring method and device based on premature beat signal in wearable electrocardiosignal
CN117357079A (en) Human blood pressure measuring method based on individual correction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
OL01 Intention to license declared
OL01 Intention to license declared