CN116831589A - An optimal lead signal selection method for long-term wearable ECG signals - Google Patents
An optimal lead signal selection method for long-term wearable ECG signals Download PDFInfo
- Publication number
- CN116831589A CN116831589A CN202310271556.3A CN202310271556A CN116831589A CN 116831589 A CN116831589 A CN 116831589A CN 202310271556 A CN202310271556 A CN 202310271556A CN 116831589 A CN116831589 A CN 116831589A
- Authority
- CN
- China
- Prior art keywords
- signal
- quality
- ecg
- graph
- lead signal
- 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.)
- Pending
Links
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/332—Portable devices specially adapted therefor
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/346—Analysis of electrocardiograms
- A61B5/349—Detecting specific parameters of the electrocardiograph cycle
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/346—Analysis of electrocardiograms
- A61B5/349—Detecting specific parameters of the electrocardiograph cycle
- A61B5/352—Detecting R peaks, e.g. for synchronising diagnostic apparatus; Estimating R-R interval
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7203—Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/7264—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
- A61B5/7267—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Cardiology (AREA)
- Physics & Mathematics (AREA)
- Animal Behavior & Ethology (AREA)
- Public Health (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Molecular Biology (AREA)
- Surgery (AREA)
- Biophysics (AREA)
- General Health & Medical Sciences (AREA)
- Pathology (AREA)
- Veterinary Medicine (AREA)
- Artificial Intelligence (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physiology (AREA)
- Psychiatry (AREA)
- Evolutionary Computation (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
Description
技术领域Technical field
本发明属于心电数据处理领域,具体的说,涉及了一种长时程可穿戴心电信号的最优导联信号选取方法。The invention belongs to the field of ECG data processing. Specifically, it relates to an optimal lead signal selection method for long-term wearable ECG signals.
背景技术Background technique
心电图(ECG)是一种经胸腔以时间为单位,记录心脏的电生理活动的技术。利用在人体皮肤表面贴上的电极侦测到心脏的电位传动。ECG的结果通常以波形显示,一个正常完整的心拍基本包括P波、QRS波、T波。心率的测量和评估是以R波与R波的间隔时间来代表。测量ECG信号时需要选择不同的导联系统,在身体多个部位连接传感器电极。常见的导联系统有单导联、8导联、12导联、18导联等。同一时刻不用导联的信号会出现不同的强度,但都能在一定程度上反映心脏的活动信息。Electrocardiogram (ECG) is a technology that records the electrophysiological activity of the heart through the chest through time. The electrical potential transmission of the heart is detected using electrodes attached to the surface of human skin. ECG results are usually displayed in waveforms. A normal and complete heart beat basically includes P wave, QRS wave, and T wave. The measurement and evaluation of heart rate is represented by the interval between R wave and R wave. When measuring ECG signals, you need to choose different lead systems and connect sensor electrodes to multiple parts of the body. Common lead systems include single lead, 8-lead, 12-lead, 18-lead, etc. Signals without leads at the same time will have different intensities, but they can all reflect the heart's activity information to a certain extent.
常规的心电图能对心电活动记录,操作简单、费用较低。但是心血管疾病的发作具有随机性和非持续性,通常患者在医院测量ECG的短时间内不能很好低捕捉疾病。随着物联网技术的快速成熟,通过智能手机APP和专业读图分析软件相结合,实现了24h动态心电信号实时采集的可穿戴动态心电检测仪。动态心电图是通过动态心电图仪在患者日常生活状态下连续24小时或者更长时间记录其心电活动的全过程,并借助计算机进行分析处理,以发现在常规体表心电图检查时不易发现的心脏活动的轨迹。动态心电图虽然采集不受时间和地点的约束,可以随时随地采集,但随之而来的问题是采集设备的信号来源不单有心脏的生理活动,还包括患者活动产生的肌电信号以及外界噪音等,容易出现信号质量不稳定的情况。Conventional electrocardiogram can record cardiac electrical activity, is simple to operate and low in cost. However, the onset of cardiovascular disease is random and non-sustained. Usually, patients cannot capture the disease well in the short time when ECG is measured in the hospital. With the rapid maturity of Internet of Things technology, a wearable dynamic ECG detector that collects 24-hour dynamic ECG signals in real time has been realized through the combination of smartphone APP and professional chart reading and analysis software. Holter electrocardiography is a process of recording the patient's cardiac electrical activity continuously for 24 hours or more in daily life through a dynamic electrocardiograph, and analyzes and processes it with the help of a computer to discover cardiac activity that is not easily found during routine surface electrocardiography examinations. traces of. Although the collection of dynamic electrocardiogram is not restricted by time and place and can be collected anytime and anywhere, the problem that comes with it is that the signal source of the collection equipment not only includes the physiological activity of the heart, but also includes the electromyographic signal generated by the patient's activity and external noise. , prone to unstable signal quality.
心电散点图(Lorenz plot)是利用迭代方法描记的大量连续心电R-R间期图,能够反映非线性系统的特殊演变规律。利用长时程的心电信号描绘的散点图,可以更快更准确地辅助医生了解心脏心脏活动的轨迹活动。心电散点图的信号一般只需要动态心电图的R-R间期信息,如此可以利用简单的信息保留患者心脏活动的轨迹信息,极大减少动态心电信号存储空间。为了保证R-R间期信息的准确性,需要对多导联的心电信号进行质量检测,选出质量最好的导联信号。根据质量最好的导联信号,计算出R-R间期,更大程度上保证散点图的有效性。The ECG scatter plot (Lorenz plot) is a large number of continuous ECG R-R interval diagrams traced using an iterative method, which can reflect the special evolution rules of nonlinear systems. The use of scatter plots drawn by long-term ECG signals can help doctors understand the trajectory of cardiac activity faster and more accurately. The signal of the ECG scattergram generally only requires the R-R interval information of the dynamic ECG. In this way, simple information can be used to retain the trajectory information of the patient's cardiac activity, greatly reducing the storage space of the dynamic ECG signal. In order to ensure the accuracy of R-R interval information, it is necessary to conduct quality inspection on multi-lead ECG signals and select the lead signal with the best quality. Based on the best quality lead signal, the R-R interval is calculated to ensure the effectiveness of the scatter plot to a greater extent.
方案一:重症监护病人心电导联信号质量评估Solution 1: Assessment of ECG signal quality in intensive care patients
ECG信号的综合质量指数(ECGSQI):Comprehensive quality index (ECGSQI) of ECG signal:
bSQI(k)表示用两种R波检测算法识别同一段心电信号得到的两个结果匹配度。iSQI表示导联间逐搏搏动匹配信号质量。kSQI表示ECG信号的峰度(kurtosis),是信号高斯性的度量。当信号的峰度值大于5时,kSQI取为1。sSQI表示ECG信号在不同频带内的功率比值;bSQI(k) represents the matching degree of the two results obtained by using two R-wave detection algorithms to identify the same segment of ECG signals. iSQI represents beat-to-lead beat-to-beat matching signal quality. kSQI represents the kurtosis of the ECG signal, which is a measure of the Gaussianity of the signal. When the kurtosis value of the signal is greater than 5, kSQI is taken as 1. sSQI represents the power ratio of ECG signals in different frequency bands;
缺陷:计算bSQI时,如果由于信号幅值过低,某个QRS识别算法发生漏检或由于高大的P波或T波被误检为QRS波,此时bSQI难以真实反映信号质量。且参数选择是按照麻省理工学院多参数智能重症监护数据库II得出的,具有片面性,不适用于动态心电图。Disadvantage: When calculating bSQI, if a QRS recognition algorithm misses detection because the signal amplitude is too low or a tall P wave or T wave is mistakenly detected as a QRS wave, it is difficult for bSQI to truly reflect the signal quality. And the parameter selection is based on the MIT multi-parameter intelligent critical care database II, which is one-sided and not suitable for dynamic electrocardiography.
方案二:基于简单启发式融合和模糊综合评价的单导联心电信号SQI质量评价机制Option 2: Single-lead ECG signal SQI quality evaluation mechanism based on simple heuristic fusion and fuzzy comprehensive evaluation
根据ECG信号各个SQI:R波匹配程度qSQI;QRS功率谱分布pSQI;峰度kSQI和基线相对功率basSQI。结合柯西分布、矩形分布和梯形分布,量化了SQI的成员函数,建立了模糊向量。选择有界算子进行模糊综合,使用加权隶属函数进行评估和分类。According to each SQI of the ECG signal: R-wave matching degree qSQI; QRS power spectrum distribution pSQI; kurtosis kSQI and baseline relative power basSQI. Combining Cauchy distribution, rectangular distribution and trapezoidal distribution, the membership function of SQI is quantified and the fuzzy vector is established. Bounded operators are selected for fuzzy synthesis, and weighted membership functions are used for evaluation and classification.
缺陷:没有确定ECG质量的黄金指标,该算法只可以区分高质量和低质量的心电图,但是不利于选出最优导联。Disadvantage: There is no golden indicator to determine the quality of ECG. This algorithm can only distinguish between high-quality and low-quality ECGs, but it is not conducive to selecting the optimal leads.
发明内容Contents of the invention
本发明的目的是针对现有技术的不足,本发明提供一种长时程可穿戴心电信号的最优导联信号选取方法。The purpose of the present invention is to address the shortcomings of the existing technology. The present invention provides an optimal lead signal selection method for long-term wearable ECG signals.
为了实现上述目的,本发明所采用的技术方案是:In order to achieve the above objects, the technical solutions adopted by the present invention are:
本发明第一方面提供一种长时程可穿戴心电信号的最优导联信号选取方法,包括:A first aspect of the present invention provides an optimal lead signal selection method for long-term wearable ECG signals, including:
步骤1,读取动态的ECG信号,建立三个质量等级的动态心电信号数据集,即基于信号峰度数据集、基于信号功率数据集、基于不同R峰检测算法匹配数据集;Step 1: Read the dynamic ECG signal and establish three quality levels of dynamic ECG signal data sets, namely, a data set based on signal kurtosis, a data set based on signal power, and a matching data set based on different R peak detection algorithms;
步骤2,分别计算三个质量等级的动态心电信号数据集的质量参数;Step 2: Calculate the quality parameters of dynamic ECG signal data sets of three quality levels respectively;
(1)计算基于信号峰度数据集的质量参数kSQI:(1) Calculate the quality parameter kSQI based on the signal kurtosis data set:
其中,为ECG信号的峰度;in, is the kurtosis of the ECG signal;
kSQI用于反映峰部的尖度,ECG信号的峰度越小,说明越可能是噪声,当kSQI<0时,认为信号质量较差;kSQI is used to reflect the sharpness of the peak. The smaller the kurtosis of the ECG signal, the more likely it is noise. When kSQI<0, the signal quality is considered poor;
(2)计算基于信号功率数据集的质量参数pSQI:(2) Calculate the quality parameter pSQI based on the signal power data set:
根据QRS波的功率谱分布,计算QRS波的能量与心电信号能量的比值;According to the power spectrum distribution of the QRS wave, calculate the ratio of the energy of the QRS wave to the energy of the ECG signal;
其中,是QRS波在6Hz~30Hz波段的功率;/>是心电信号在0Hz~125Hz波段的功率;当pSQI介于0.5~0.72时,信号质量较好;in, It is the power of QRS wave in the 6Hz~30Hz band;/> It is the power of the ECG signal in the 0Hz~125Hz band; when pSQI is between 0.5~0.72, the signal quality is better;
(3)计算基于不同R峰检测算法匹配数据集的质量参数qSQI:(3) Calculate the quality parameter qSQI of matching data sets based on different R peak detection algorithms:
比较两种QRS波检测算法检测到的R波匹配程度;其中,选用的两种QSR波检测算法为基于数字滤波的算法DF和基于长度变换的算法LT;Compare the matching degree of R waves detected by two QRS wave detection algorithms; among them, the two QSR wave detection algorithms selected are the algorithm DF based on digital filtering and the algorithm LT based on length transformation;
分别代表DF算法和LT算法检测出同一段心电信号的QRS波数量,代表同时被两种算法检测出的QRS波数量; Represents the number of QRS waves detected in the same segment of the ECG signal by the DF algorithm and the LT algorithm respectively. Represents the number of QRS waves detected by both algorithms at the same time;
步骤3,融合以上多个SQI的结果,计算某导联信号的综合质量得分:Step 3: Fusion of the above multiple SQI results to calculate the comprehensive quality score of a certain lead signal:
步骤4,分别计算同时间段内的各个导联信号的综合质量得分;Step 4: Calculate the comprehensive quality score of each lead signal in the same time period;
取得分最高的导联信号作为质量最好的心电信号选择出来。The lead signal with the highest score is selected as the best quality ECG signal.
本发明第二方面提供一种长时程可穿戴心电信号的最优导联信号选取系统,包括:A second aspect of the present invention provides an optimal lead signal selection system for long-term wearable ECG signals, including:
数据读取模块,用于读取动态的ECG信号,建立三个质量等级的动态心电信号数据集,即基于信号峰度数据集、基于信号功率数据集、基于不同R峰检测算法匹配数据集;The data reading module is used to read dynamic ECG signals and establish three quality levels of dynamic ECG signal data sets, namely, based on signal kurtosis data sets, based on signal power data sets, and based on different R peak detection algorithm matching data sets. ;
动态心电信号数据集的质量参数计算模块,用于计算三个质量等级的动态心电信号数据集的质量参数,包括kSQI计算模块、pSQI计算模块和qSQI计算模块;The quality parameter calculation module of dynamic ECG signal data sets is used to calculate the quality parameters of dynamic ECG signal data sets of three quality levels, including kSQI calculation module, pSQI calculation module and qSQI calculation module;
kSQI计算模块,用于计算基于信号峰度数据集的质量参数kSQI:The kSQI calculation module is used to calculate the quality parameter kSQI based on the signal kurtosis data set:
其中,为ECG信号的峰度;in, is the kurtosis of the ECG signal;
kSQI用于反映峰部的尖度,ECG信号的峰度越小,说明越可能是噪声,当kSQI<0时,认为信号质量较差;kSQI is used to reflect the sharpness of the peak. The smaller the kurtosis of the ECG signal, the more likely it is noise. When kSQI<0, the signal quality is considered poor;
pSQI计算模块,用于计算基于信号功率数据集的质量参数pSQI:The pSQI calculation module is used to calculate the quality parameter pSQI based on the signal power data set:
根据QRS波的功率谱分布,计算QRS波的能量与心电信号能量的比值;According to the power spectrum distribution of the QRS wave, calculate the ratio of the energy of the QRS wave to the energy of the ECG signal;
其中,是QRS波在6Hz~30Hz波段的功率;/>是心电信号在0Hz~125Hz波段的功率;当pSQI介于0.5~0.72时,信号质量较好;in, It is the power of QRS wave in the 6Hz~30Hz band;/> It is the power of the ECG signal in the 0Hz~125Hz band; when pSQI is between 0.5~0.72, the signal quality is better;
qSQI计算模块,用于计算基于不同R峰检测算法匹配数据集的质量参数qSQI:The qSQI calculation module is used to calculate the quality parameter qSQI of matching data sets based on different R peak detection algorithms:
比较两种QRS波检测算法检测到的R波匹配程度;其中,选用的两种QSR波检测算法为基于数字滤波的算法DF和基于长度变换的算法LT;Compare the matching degree of R waves detected by two QRS wave detection algorithms; among them, the two QSR wave detection algorithms selected are the algorithm DF based on digital filtering and the algorithm LT based on length transformation;
分别代表DF算法和LT算法检测出同一段心电信号的QRS波数量,代表同时被两种算法检测出的QRS波数量; Represents the number of QRS waves detected in the same segment of the ECG signal by the DF algorithm and the LT algorithm respectively. Represents the number of QRS waves detected by both algorithms at the same time;
质量最优导联信号选取模块,用于先融合以上多个SQI的结果,计算某导联信号的综合质量得分,其中,综合质量得分按下式计算:The optimal quality lead signal selection module is used to first fuse the results of the above multiple SQIs and calculate the comprehensive quality score of a certain lead signal. The comprehensive quality score is calculated as follows:
再分别计算同时间段内的各个导联信号的综合质量得分;Then calculate the comprehensive quality score of each lead signal in the same time period;
最后取得分最高的导联信号作为质量最好的心电信号选择出来。Finally, the lead signal with the highest score is selected as the best quality ECG signal.
本发明第三方面提供一种心拍分类方法,包括:A third aspect of the present invention provides a heartbeat classification method, including:
对经过所述长时程可穿戴心电信号的最优导联信号选取方法得到的质量最好的心电信号截取心拍信息;Intercept heart beat information from the best quality ECG signal obtained through the optimal lead signal selection method of long-term wearable ECG signals;
计算截取的心拍信息的QRS波群和R-R间期;Calculate the QRS complex and R-R interval of the intercepted heart beat information;
将计算出的QRS波群和R-R间期作为经验特征与预处理后的心电波形进行特征融合后输入深度学习网络模型,对心拍进行分类。The calculated QRS complex and R-R interval are used as empirical features to fuse with the preprocessed ECG waveform and then input into the deep learning network model to classify the heart beats.
本发明第四方面提供一种散点图描绘方法,对经过所述长时程可穿戴心电信号的最优导联信号选取方法得到的质量最好的长时程心电信号进行R峰识别后绘制散点图;即:A fourth aspect of the present invention provides a scatter plot drawing method, which performs R peak identification on the long-term ECG signal with the best quality obtained through the optimal lead signal selection method of the long-term wearable ECG signal. Then draw a scatter plot; that is:
首先,采用带通滤波器对心电信号进行滤波;First, a bandpass filter is used to filter the ECG signal;
然后,对去噪后的心电信号进行非线性变换;Then, perform nonlinear transformation on the denoised ECG signal;
接着,使用斜率、幅度和宽度判断规则对特征点进行判断,检测出QRS波群;Then, use the slope, amplitude and width judgment rules to judge the feature points and detect the QRS wave group;
最后,根据R峰位置计算R-R间期(R1,R2,…,Rn),将{(R1,R2),(R2,R3),…,(Rn-1,Rn)}的点集合绘制散点图,其中R1代表第1和第2个R波的时间间隔。Finally, calculate the R-R interval (R1, R2,...,Rn) based on the R peak position, and draw the scatter point set of {(R1, R2), (R2, R3),..., (Rn-1, Rn)} Figure, where R1 represents the time interval between the 1st and 2nd R waves.
本发明第五方面提供一种心律类型检测方法,包括以下步骤:A fifth aspect of the present invention provides a heart rhythm type detection method, including the following steps:
(1)通过搜索窗算法,提取采用所述散点图描绘方法描绘的散点图B图的吸引子轮廓线:(1) Through the search window algorithm, extract the attractor contour line of the scatter plot B drawn by the scatter plot drawing method:
(1.1)B图搜索窗是在平面直角坐标系横坐标上宽度固定的矩形窗口,设定B图搜索窗宽度为:(1.1) The B picture search window is a rectangular window with a fixed width on the abscissa of the plane rectangular coordinate system. The width of the B picture search window is set to:
其中,d是B图搜索窗的宽度,是点(0,0)到(N,N)中的横坐标最大值,/>是点(0,0)到(N,N)中的横坐标最小值,10%为设定的阈值标准;Among them, d is the width of the B picture search window, It is the maximum value of the abscissa from point (0,0) to (N,N),/> It is the minimum value of the abscissa from point (0,0) to (N,N), and 10% is the set threshold standard;
(1.2)B图搜索窗从(0,0)到(N,N)点按顺序经历每一个方格;(1.2) The B picture search window goes through each square in sequence from (0,0) to (N,N) points;
(1.3)在一个B图搜索窗覆盖的范围内,记录属于散点图集的点M,定义一个阈值窗为在点集M中高度固定的矩形窗口,这个高度设定为:(1.3) Within the range covered by a B-image search window, record the points M belonging to the scatter atlas, and define a threshold window as a rectangular window with a fixed height in the point set M. The height is set as:
其中,h是点集M中阈值窗的高度,是点集M中所有点的纵坐标最大值,/>是点集M中所有点的纵坐标最小值,10%为设定的阈值标准;Among them, h is the height of the threshold window in the point set M, is the maximum value of the ordinate of all points in the point set M,/> is the minimum value of the ordinate of all points in the point set M, and 10% is the set threshold standard;
(1.4)存储阈值窗内的点集P,将B图搜索窗继续向右移动一个窗格的宽度,重复步骤(1.2)与步骤(1.3),直至结束,最终得到B图边界点集;(1.4) Store the point set P within the threshold window, continue to move the B picture search window to the right by the width of one pane, repeat steps (1.2) and (1.3) until the end, and finally obtain the B picture boundary point set ;
(1.5)将已经得到的B图边界点集进行一次拟合,得到B图斜率/>;(1.5) Combine the obtained boundary point set of B picture Perform a fitting to get the slope of graph B/> ;
(2)通过搜索窗算法,提取采用所述散点图描绘方法描绘的散点图C图的吸引子轮廓线:(2) Through the search window algorithm, extract the attractor contour line of the scatter plot C drawn by the scatter plot drawing method:
(2.1)C图搜索窗是在平面直角坐标系纵坐标上宽度固定的矩形窗口,设定C图搜索窗宽度为:(2.1) The C-picture search window is a rectangular window with a fixed width on the ordinate of the plane rectangular coordinate system. The width of the C-picture search window is set to:
其中,d是C图搜索窗的宽度,是点(0,0)到(N,N)中的横坐标最大值,/>是点(0,0)到(N,N)中的横坐标最小值,10%为设定的阈值标准;Among them, d is the width of the C picture search window, It is the maximum value of the abscissa from point (0,0) to (N,N),/> It is the minimum value of the abscissa from point (0,0) to (N,N), and 10% is the set threshold standard;
(2.2)C图搜索窗从(0,0)到(N,N)点按顺序经历每一个方格;(2.2) The C graph search window goes through each square in sequence from (0,0) to (N,N) points;
(2.3)在一个C图搜索窗覆盖的范围内,记录属于散点图集的点M,定义一个阈值窗为在点集M中高度固定的矩形窗口,这个高度设定为:(2.3) Within the range covered by a C-graph search window, record the points M belonging to the scatter atlas, and define a threshold window as a rectangular window with a fixed height in the point set M. This height is set as:
其中,h是点集M中阈值窗的高度,是点集M中所有点的横坐标最大值,/>是点集M中所有点的横坐标最小值,10%为设定的阈值标准;Among them, h is the height of the threshold window in the point set M, is the maximum value of the abscissa of all points in the point set M,/> is the minimum value of the abscissa of all points in the point set M, and 10% is the set threshold standard;
(2.4)存储阈值窗内的点集P,将C图搜索窗继续向上移动一个窗格的宽度,重复步骤(2.2)与步骤(2.3),直至结束,最终得到C图边界点集;(2.4) Store the point set P within the threshold window, continue to move the C-graph search window upward by the width of one pane, repeat steps (2.2) and (2.3) until the end, and finally obtain the C-graph boundary point set ;
(2.5)将已经得到的C图边界点集进行一次拟合,得到C图斜率/>;(2.5) Combine the already obtained set of boundary points of the C graph Perform a fitting and obtain the slope of the C graph/> ;
(3)根据散点图的分布情况以及吸引子轮廓线斜率检测心律类型(3) Detect the heart rhythm type based on the distribution of the scatter plot and the slope of the attractor contour
(3.1)根据B图、C图情况判断图形为几分布图形,如未检测到B图、C图斜率,则为一分布图形;(3.1) Determine whether the graph is a distribution graph based on the conditions of graphs B and C. If the slope of graphs B and C is not detected, it is a distribution graph;
如B图、C图关于45°轴对称,则为三分布图形或扇形图形;For example, pictures B and C are symmetrical about the 45° axis, which is a three-distribution figure or a sector figure;
若B图和C图都检测到,则为三分布图形或四分布图形;If both picture B and picture C are detected, it is a three-distribution pattern or a four-distribution pattern;
(3.2)根据图形分布情况,再结合B线斜率判断心律类型:(3.2) Determine the heart rhythm type based on the graph distribution and the slope of line B:
(3.2.1)散点图是一分布图形,检测为窦性心搏;(3.2.1) The scatter plot is a distribution graph, which is detected as sinus beat;
(3.2.2)散点图是三分布图形,B线斜率在0.18~0.80之间;(3.2.2) The scatter plot is a three-distribution graph, with the slope of line B Between 0.18~0.80;
或散点图是四分布图形,B线斜率在0.132~050之间,检测为室上性早搏;Or the scatter plot is a four-distribution graph, with the slope of line B Between 0.132 and 050, it is detected as premature supraventricular contraction;
(3.2.3)散点图是四分布图形,B线斜率<0.132;(3.2.3) The scatter plot is a four-distribution graph, with the slope of line B <0.132;
或散点图是三分布图形,B线斜率在0~0.08之间;Or the scatter plot is a three-distribution graph, with the slope of line B Between 0~0.08;
或散点图是二分布图形,B线斜率为0,检测为室性早搏;Or the scatter plot is a two-distribution graph, with the slope of line B If it is 0, it is detected as premature ventricular contraction;
(3.2.4)散点图是扇形图形,B线斜率>0.11,检测为心房颤动;(3.2.4) The scatter plot is a fan-shaped graph, and the slope of line B is >0.11, atrial fibrillation is detected;
(3.2.5)散点图是格子状有序多分布图形,检测为传导比例变化的心房扑动;(3.2.5) The scatter plot is a grid-like ordered multi-distribution graph, which detects atrial flutter with changes in conduction proportion;
(3.2.6)散点图是在扇形图形底边下方存在一条与X轴平行的线性图形,或在扇形区中重叠出现一条斜率近似零的线性图形,检测为心房颤动伴室性早搏;(3.2.6) The scatter plot is a linear graph parallel to the X-axis below the bottom edge of the fan-shaped graph, or a linear graph with a slope of approximately zero overlaps in the fan-shaped area, which is detected as atrial fibrillation with premature ventricular contractions;
(3.2.7)散点图是存在一条与扇形底边完全重叠,或在其上方完全与其平行的线性图形,检测为心房颤动伴室内差异性传导。(3.2.7) The scatter plot is a linear graph that completely overlaps with the bottom edge of the fan shape, or is completely parallel to it above, and is detected as atrial fibrillation with intraventricular differential conduction.
本发明第六方面提供一种最优导联信号选取装置,包括:A sixth aspect of the present invention provides an optimal lead signal selection device, including:
存储器;以及memory; and
耦接至所述存储器的处理器,所述处理器被配置为基于存储在所述存储器中的指令,执行所述的长时程可穿戴心电信号的最优导联信号选取方法。A processor coupled to the memory, the processor being configured to execute the optimal lead signal selection method for long-term wearable ECG signals based on instructions stored in the memory.
本发明第七方面提供一种非瞬时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现所述的长时程可穿戴心电信号的最优导联信号选取方法。A seventh aspect of the present invention provides a non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the optimal lead signal selection of the long-term wearable ECG signal is realized. method.
本发明第八方面提供一种可穿戴动态心电监测仪,采用所述的长时程可穿戴心电信号的最优导联信号选取方法选出质量最好的导联信号;对选出的导联信号,采用所述的心拍分类方法进行心拍分类;或者对选出的导联信号,采用所述的心律类型检测方法进行心律类型检测;An eighth aspect of the present invention provides a wearable dynamic ECG monitor, which uses the optimal lead signal selection method for long-term wearable ECG signals to select the best quality lead signal; For the lead signals, the heart beat classification method is used for heart beat classification; or for the selected lead signals, the heart rhythm type detection method is used for heart rhythm type detection;
或者,or,
配置所述的长时程可穿戴心电信号的最优导联信号选取系统,选出的质量最好的导联信号;对选出的导联信号,采用所述的心拍分类方法进行心拍分类;或者对选出的导联信号,采用所述的心律类型检测方法进行心律类型检测;Configure the optimal lead signal selection system for long-term wearable ECG signals to select the lead signals with the best quality; classify the selected lead signals using the heart beat classification method ; Or for the selected lead signal, use the described heart rhythm type detection method to detect the heart rhythm type;
或者,or,
设置所述的最优导联信号选取装置,采用该装置选出质量最好的导联信号;对选出的导联信号,采用所述的心拍分类方法进行心拍分类;或者对选出的导联信号,采用所述的心律类型检测方法进行心律类型检测;Set up the optimal lead signal selection device and use the device to select the lead signal with the best quality; use the heart beat classification method to classify the selected lead signals; or classify the selected leads Connect the signal, and use the described heart rhythm type detection method to detect the heart rhythm type;
或者,or,
预置所述的非瞬时性计算机可读存储介质,执行非瞬时性计算机可读存储介质中的程序获得质量最好的导联信号;对获得的导联信号,采用所述的心拍分类方法进行心拍分类;或者对获得的导联信号,采用所述的心律类型检测方法进行心律类型检测。Preset the non-transitory computer-readable storage medium, execute the program in the non-transitory computer-readable storage medium to obtain the best quality lead signal; use the described heart beat classification method for the obtained lead signal Classify heart beats; or use the heart rhythm type detection method to detect heart rhythm types on the obtained lead signals.
本发明相对现有技术具有突出的实质性特点和显著进步,具体的说:Compared with the existing technology, the present invention has outstanding substantive features and significant progress. Specifically:
本发明通过信号质量评估算法,对长时程可穿戴心电信号进行分析,能够从同一时间段内、不同导联的信号中挑选出质量较好且较稳定的信号,从而提高可穿戴动态心电检测仪的心电信号的可用性。The present invention analyzes long-term wearable ECG signals through a signal quality assessment algorithm, and can select better quality and more stable signals from signals from different leads within the same time period, thereby improving wearable dynamic ECG signals. Availability of ECG signals from electrical detectors.
附图说明Description of the drawings
图1是实施例1方法的流程框图。Figure 1 is a flow chart of the method of Embodiment 1.
图2是实施例1对多导联心电信号质量的评估示例。Figure 2 is an example of evaluation of multi-lead ECG signal quality in Embodiment 1.
图3是MIT-BIH四种典型疾病的心电信号。Figure 3 shows the ECG signals of four typical diseases of MIT-BIH.
图4是各类心拍QRS波群的差异结果。Figure 4 shows the difference results of various cardiac QRS wave complexes.
图5是各类心拍R-R间期的差异结果。Figure 5 shows the difference results of R-R intervals of various heart beats.
图6是ResNet18的模型结构图。Figure 6 is the model structure diagram of ResNet18.
图7是ResNet34的模型结构图。Figure 7 is the model structure diagram of ResNet34.
图8是心电信号的三种特征输入。Figure 8 shows three characteristic inputs of ECG signals.
图9是实施例5中搜索窗算法实现示意图。Figure 9 is a schematic diagram of the implementation of the search window algorithm in Embodiment 5.
图10是常见心律失常散点图诊断模型。Figure 10 is a common arrhythmia scatter plot diagnostic model.
图11是实施例5中心律类型检测方法分析流程。Figure 11 is the analysis flow of the central rhythm type detection method in Embodiment 5.
具体实施方式Detailed ways
下面通过具体实施方式,对本发明的技术方案做进一步的详细描述。The technical solution of the present invention will be further described in detail below through specific embodiments.
实施例1Example 1
如图1所示,本实施例提供了一种长时程可穿戴心电信号的最优导联信号选取方法,包括:As shown in Figure 1, this embodiment provides an optimal lead signal selection method for long-term wearable ECG signals, including:
步骤1,读取动态的ECG信号,建立三个质量等级的动态心电信号数据集,即基于信号峰度数据集、基于信号功率数据集、基于不同R峰检测算法匹配数据集;Step 1: Read the dynamic ECG signal and establish three quality levels of dynamic ECG signal data sets, namely, a data set based on signal kurtosis, a data set based on signal power, and a matching data set based on different R peak detection algorithms;
步骤2,分别计算三个质量等级的动态心电信号数据集的质量参数;Step 2: Calculate the quality parameters of dynamic ECG signal data sets of three quality levels respectively;
(1)计算基于信号峰度数据集的质量参数kSQI:(1) Calculate the quality parameter kSQI based on the signal kurtosis data set:
其中,为ECG信号的峰度;in, is the kurtosis of the ECG signal;
kSQI用于反映峰部的尖度,ECG信号的峰度越小,说明越可能是噪声,当kSQI<0时,认为信号质量较差;kSQI is used to reflect the sharpness of the peak. The smaller the kurtosis of the ECG signal, the more likely it is noise. When kSQI<0, the signal quality is considered poor;
(2)计算基于信号功率数据集的质量参数pSQI:(2) Calculate the quality parameter pSQI based on the signal power data set:
根据QRS波的功率谱分布,计算QRS波的能量与心电信号能量的比值;According to the power spectrum distribution of the QRS wave, calculate the ratio of the energy of the QRS wave to the energy of the ECG signal;
其中,是QRS波在6Hz~30Hz波段的功率;/>是心电信号在0Hz~125Hz波段的功率;当pSQI介于0.5~0.72时,信号质量较好;in, It is the power of QRS wave in the 6Hz~30Hz band;/> It is the power of the ECG signal in the 0Hz~125Hz band; when pSQI is between 0.5~0.72, the signal quality is better;
(3)计算基于不同R峰检测算法匹配数据集的质量参数qSQI:(3) Calculate the quality parameter qSQI of matching data sets based on different R peak detection algorithms:
比较两种QRS波检测算法检测到的R波匹配程度;其中,选用的两种QSR波检测算法为基于数字滤波的算法DF和基于长度变换的算法LT;Compare the matching degree of R waves detected by two QRS wave detection algorithms; among them, the two QSR wave detection algorithms selected are the algorithm DF based on digital filtering and the algorithm LT based on length transformation;
分别代表DF算法和LT算法检测出同一段心电信号的QRS波数量,代表同时被两种算法检测出的QRS波数量; Represents the number of QRS waves detected in the same segment of the ECG signal by the DF algorithm and the LT algorithm respectively. Represents the number of QRS waves detected by both algorithms at the same time;
步骤3,融合以上多个SQI的结果,计算某导联信号的综合质量得分:Step 3: Fusion of the above multiple SQI results to calculate the comprehensive quality score of a certain lead signal:
步骤4,分别计算同时间段内的各个导联信号的综合质量得分;Step 4: Calculate the comprehensive quality score of each lead signal in the same time period;
取得分最高的导联信号作为质量最好的心电信号选择出来。The lead signal with the highest score is selected as the best quality ECG signal.
结果验证Result verification
图2为采用本实施例方法根据SQI得出的结果。其中,采用的ECG信号频率为250Hz,导联选用8导联系统,分别是I、II、V1、V2、V3、V4、V5、V6。八个子图分别表示相同的10s内八个导联信号的ECG波形图,V3的导联是采用本实施例算法选择的质量最优的导联信号。Figure 2 shows the results obtained based on SQI using the method of this embodiment. Among them, the frequency of the ECG signal used is 250Hz, and the 8-lead system is selected as the lead, which are I, II, V1, V2, V3, V4, V5, and V6. The eight sub-figures respectively represent the ECG waveforms of eight lead signals within the same 10 seconds. The lead of V3 is the lead signal with the best quality selected by the algorithm of this embodiment.
实施例2Example 2
本实施例提供一种长时程可穿戴心电信号的最优导联信号选取系统,包括:This embodiment provides an optimal lead signal selection system for long-term wearable ECG signals, including:
数据读取模块,用于读取动态的ECG信号,建立三个质量等级的动态心电信号数据集;The data reading module is used to read dynamic ECG signals and establish dynamic ECG signal data sets of three quality levels;
动态心电信号数据集的质量参数计算模块,用于计算三个质量等级的动态心电信号数据集的质量参数,包括kSQI计算模块、pSQI计算模块和qSQI计算模块;The quality parameter calculation module of dynamic ECG signal data sets is used to calculate the quality parameters of dynamic ECG signal data sets of three quality levels, including kSQI calculation module, pSQI calculation module and qSQI calculation module;
质量最优导联信号选取模块,用于选择质量最好的导联。The best quality lead signal selection module is used to select the best quality leads.
本实施例系统的具体实现方法,参见实施例1所述的方法,在此不再赘述。For the specific implementation method of the system in this embodiment, please refer to the method described in Embodiment 1, which will not be described again here.
实施例3Example 3
本实施例提供一种心拍分类方法,包括:对经过实施例1或实施例2得到的质量最好的心电信号截取心拍信息,计算出QRS波群和R-R间期作为经验特征;然后将经验特征与预处理后的心电信号进行特征融合输入ResNet,对心拍进行分类。This embodiment provides a heartbeat classification method, which includes: intercepting heartbeat information from the best-quality ECG signal obtained through Embodiment 1 or 2, and calculating the QRS wave complex and R-R interval as empirical features; and then using the experience The features are fused with the preprocessed ECG signal and input into ResNet to classify heartbeats.
(1)基于数字滤波进行QRS波形检测(1) QRS waveform detection based on digital filtering
基于数字滤波的方法一般是由线性滤波、非线性变换和决策规则三个部分组成。首先,采用带通滤波器对选取出的心电信号进行滤波去噪;然后,对滤波去噪后的心电信号进行非线性变换;最后,使用斜率、幅度和宽度判断规则对特征点进行判断,检测出QRS波群并作为心拍信息截取出来。该方法运算简单、速度较快,更适合于处理长时程的动态心电信号的大批量数据,尽快对疾病做出预警工作。Methods based on digital filtering generally consist of three parts: linear filtering, nonlinear transformation and decision rules. First, a band-pass filter is used to filter and denoise the selected ECG signal; then, the filtered and denoised ECG signal is subjected to nonlinear transformation; finally, the slope, amplitude and width judgment rules are used to judge the feature points. , detect the QRS wave complex and intercept it as heartbeat information. This method has simple operation and fast speed, and is more suitable for processing large batches of long-term dynamic ECG data to provide early warning of diseases as soon as possible.
(2)先验知识获取(2) Acquisition of prior knowledge
MIT-BIH心律失常数据库的四种不同心拍类型如图3所示,图3(a)是正常心搏,用N表示;图3(b)是室上性早搏,用S表示;图3(c)是室性早搏,用V表示;图3(d)是其它心拍,用O表示。经过实验得出各类心拍的QRS波群以及R-R间期均存在明显差异,各个类型心拍的QRS波群与R-R间期分布如图4和图5所示。在临床人工心电图诊断知识中,QRS波群特征和心电信号R-R间期特征判别心电信号心拍分类的重要判据,因此,将这两个时限经验特征融合心拍波形的形态特征,共同作为残差网络的输入,增加了模型的可解释性,提高残差网络对异常心拍的鉴别能力。The four different heartbeat types of the MIT-BIH arrhythmia database are shown in Figure 3. Figure 3(a) is a normal heartbeat, represented by N; Figure 3(b) is a supraventricular premature beat, represented by S; Figure 3( c) is a premature ventricular beat, represented by V; Figure 3(d) is other cardiac beats, represented by O. After experiments, it was found that there are obvious differences in the QRS complexes and R-R intervals of various types of heart beats. The distribution of QRS complexes and R-R intervals of each type of heart beats is shown in Figures 4 and 5. In the knowledge of clinical artificial electrocardiogram diagnosis, the QRS wave complex characteristics and the R-R interval characteristics of the ECG signal are important criteria for classifying the ECG signal and heart beats. Therefore, these two time-limited empirical features are combined with the morphological characteristics of the heartbeat waveform to jointly serve as residual The input of the difference network increases the interpretability of the model and improves the residual network's ability to identify abnormal heart beats.
(3)基于深度学习的心拍分类算法(3) Heart beat classification algorithm based on deep learning
通过ResNet18和ResNet34来学习心电信号的形态特征。图6和图7分别为ResNet18和ResNet34的网络结构。Learn the morphological features of ECG signals through ResNet18 and ResNet34. Figures 6 and 7 show the network structures of ResNet18 and ResNet34 respectively.
为了能够进行特征融合,将QRS波群特征和R-R间期特征转换为与心拍等长的波形。鉴于QRS波群是小于心拍波形长度的,为了突出QRS波群,采用时长为128个采样点的矩形脉冲表示QRS波群时限特征。R-R间期一般会超过单个心拍的时长,所以将R-R间期转化成一条时长为128个采样点且幅度值为R-R间隔时长的特征向量。心拍波形的形态特征、QRS时限特征和R-R间期特征如图8所示。将等长的QRS波群特征、R-R间期特征、预处理后的心电波形分为三个特征维度同时输入残差网络模型进行特征融合。In order to enable feature fusion, the QRS complex features and R-R interval features are converted into waveforms that are as long as the heart beat. Since the QRS complex is smaller than the length of the heartbeat waveform, in order to highlight the QRS complex, a rectangular pulse with a duration of 128 sampling points is used to represent the timing characteristics of the QRS complex. The R-R interval generally exceeds the duration of a single heart beat, so the R-R interval is converted into a feature vector with a duration of 128 sampling points and an amplitude value of the R-R interval duration. The morphological characteristics, QRS time limit characteristics and R-R interval characteristics of the cardiac beat waveform are shown in Figure 8. The equal-length QRS complex features, R-R interval features, and preprocessed ECG waveforms are divided into three feature dimensions and simultaneously input into the residual network model for feature fusion.
QRS波群特征、R-R间期特征、预处理后的心电波形经过特征融合后,输入至由ResNet18和ResNet34构成的残差网络模型进行心拍分类训练,通过学习已有标签的心电数据各类特征,改进模型;其中,残差网络模型的输入数据的尺寸是2×128×3,其中2指双通道数据,128指心拍时长,3指心拍特征的维度。After feature fusion, QRS complex features, R-R interval features, and preprocessed ECG waveforms are input to the residual network model composed of ResNet18 and ResNet34 for heart beat classification training. By learning various types of ECG data with existing labels, Features, improved model; among them, the size of the input data of the residual network model is 2×128×3, where 2 refers to the dual-channel data, 128 refers to the heartbeat duration, and 3 refers to the dimension of the heartbeat feature.
残差网络模型对MIT-BIH心律失常数据库中22条包括了44218个正常心拍、1836个室上性早搏心拍、3213个室性早搏心拍和1849个其它类型心拍的测试心电信号数据进行了心拍分类。基于辅助数据集(QT数据集)的检测模型,为残差网络提供了额外的QRS波群和R-R间期两个先验特征,降低了MIT-BIH心律失常数据库样本规模有限的不利影响,提高了网络的泛化能力。The residual network model analyzed 22 pieces of test ECG signal data in the MIT-BIH arrhythmia database, including 44,218 normal heart beats, 1,836 supraventricular premature beats, 3,213 premature ventricular beats, and 1,849 other types of heart beats. Classification. The detection model based on the auxiliary data set (QT data set) provides the residual network with two additional prior features of QRS complex and R-R interval, which reduces the adverse impact of the limited sample size of the MIT-BIH arrhythmia database and improves improves the generalization ability of the network.
实施例4Example 4
本实施例提供一种散点图描绘方法,对经过实施例1或实施例2得到的质量最好的长时程心电信号进行R峰识别后绘制散点图。This embodiment provides a method for drawing a scatter plot. The best quality long-term ECG signal obtained through Embodiment 1 or 2 is identified by R peak and then a scatter plot is drawn.
首先,采用带通滤波器对心电信号进行滤波;First, a bandpass filter is used to filter the ECG signal;
然后,对去噪后的心电信号进行非线性变换;Then, perform nonlinear transformation on the denoised ECG signal;
接着,使用斜率、幅度和宽度判断规则对特征点进行判断,检测出QRS波群;Then, use the slope, amplitude and width judgment rules to judge the feature points and detect the QRS wave group;
最后,根据R峰位置计算R-R间期(R1,R2,…,Rn),将{(R1,R2),(R2,R3),…,(Rn-1,Rn)}的点集合绘制散点图,其中R1代表第1和第2个R波的时间间隔。Finally, calculate the R-R interval (R1, R2,...,Rn) based on the R peak position, and draw the scatter point set of {(R1, R2), (R2, R3),..., (Rn-1, Rn)} Figure, where R1 represents the time interval between the 1st and 2nd R waves.
实施例5Example 5
本实施例提供一种心律类型检测方法,包括以下步骤:This embodiment provides a heart rhythm type detection method, which includes the following steps:
(1)如图9所示,通过搜索窗算法,提取采用实施例4所述散点图描绘方法描绘的散点图B图的吸引子轮廓线:(1) As shown in Figure 9, through the search window algorithm, extract the attractor contour line of the scatter plot B drawn using the scatter plot drawing method described in Embodiment 4:
(1.1)B图搜索窗是在平面直角坐标系横坐标上宽度固定的矩形窗口,设定B图搜索窗宽度为:(1.1) The B picture search window is a rectangular window with a fixed width on the abscissa of the plane rectangular coordinate system. The width of the B picture search window is set to:
其中,d是B图搜索窗的宽度,是点(0,0)到(N,N)中的横坐标最大值,/>是点(0,0)到(N,N)中的横坐标最小值,10%为设定的阈值标准;Among them, d is the width of the B picture search window, It is the maximum value of the abscissa from point (0,0) to (N,N),/> It is the minimum value of the abscissa from point (0,0) to (N,N), and 10% is the set threshold standard;
(1.2)B图搜索窗从(0,0)到(N,N)点按顺序经历每一个方格;(1.2) The B picture search window goes through each square in sequence from (0,0) to (N,N) points;
(1.3)在一个B图搜索窗覆盖的范围内,记录属于散点图集的点M,定义一个阈值窗为在点集M中高度固定的矩形窗口,这个高度设定为:(1.3) Within the range covered by a B-image search window, record the points M belonging to the scatter atlas, and define a threshold window as a rectangular window with a fixed height in the point set M. The height is set as:
其中,h是点集M中阈值窗的高度,是点集M中所有点的纵坐标最大值,/>是点集M中所有点的纵坐标最小值,10%为设定的阈值标准;Among them, h is the height of the threshold window in the point set M, is the maximum value of the ordinate of all points in the point set M,/> is the minimum value of the ordinate of all points in the point set M, and 10% is the set threshold standard;
(1.4)存储阈值窗内的点集P,将B图搜索窗继续向右移动一个窗格的宽度,重复步骤(1.2)与步骤(1.3),直至结束,最终得到B图边界点集;(1.4) Store the point set P within the threshold window, continue to move the B picture search window to the right by the width of one pane, repeat steps (1.2) and (1.3) until the end, and finally obtain the B picture boundary point set ;
(1.5)将已经得到的B图边界点集进行一次拟合,得到B图斜率/>;(1.5) Combine the obtained boundary point set of B picture Perform a fitting to get the slope of graph B/> ;
(2)通过搜索窗算法,提取采用实施例4所述散点图描绘方法描绘的散点图C图的吸引子轮廓线:(2) Through the search window algorithm, extract the attractor contour line of the scatter plot C drawn using the scatter plot drawing method described in Example 4:
(2.1)C图搜索窗是在平面直角坐标系纵坐标上宽度固定的矩形窗口,设定C图搜索窗宽度为:(2.1) The C-picture search window is a rectangular window with a fixed width on the ordinate of the plane rectangular coordinate system. The width of the C-picture search window is set to:
其中,d是C图搜索窗的宽度,是点(0,0)到(N,N)中的横坐标最大值,/>是点(0,0)到(N,N)中的横坐标最小值,10%为设定的阈值标准;Among them, d is the width of the C picture search window, It is the maximum value of the abscissa from point (0,0) to (N,N),/> It is the minimum value of the abscissa from point (0,0) to (N,N), and 10% is the set threshold standard;
(2.2)C图搜索窗从(0,0)到(N,N)点按顺序经历每一个方格;(2.2) The C graph search window goes through each square in sequence from (0,0) to (N,N) points;
(2.3)在一个C图搜索窗覆盖的范围内,记录属于散点图集的点M,定义一个阈值窗为在点集M中高度固定的矩形窗口,这个高度设定为:(2.3) Within the range covered by a C-graph search window, record the points M belonging to the scatter atlas, and define a threshold window as a rectangular window with a fixed height in the point set M. This height is set as:
其中,h是点集M中阈值窗的高度,是点集M中所有点的横坐标最大值,/>是点集M中所有点的横坐标最小值,10%为设定的阈值标准;Among them, h is the height of the threshold window in the point set M, is the maximum value of the abscissa of all points in the point set M,/> is the minimum value of the abscissa of all points in the point set M, and 10% is the set threshold standard;
(2.4)存储阈值窗内的点集P,将C图搜索窗继续向上移动一个窗格的宽度,重复步骤(2.2)与步骤(2.3),直至结束,最终得到C图边界点集;(2.4) Store the point set P within the threshold window, continue to move the C-graph search window upward by the width of one pane, repeat steps (2.2) and (2.3) until the end, and finally obtain the C-graph boundary point set ;
(2.5)将已经得到的C图边界点集进行一次拟合,得到C图斜率/>;(2.5) Combine the already obtained set of boundary points of the C graph Perform a fitting and obtain the slope of the C graph/> ;
(3)根据散点图的分布情况以及吸引子轮廓线斜率检测心律类型(3) Detect the heart rhythm type based on the distribution of the scatter plot and the slope of the attractor contour
如图10所示,心电散点图吸引子呈现不同的形态对应着不同的心律失常类别。如图10-1中所示,一分布棒状图形为窦性心律,如图10-2中所示,三分布多判断为室上性早搏,图10-3中显示的为四分布室上性早搏,图10-4中显示的为四分布室性早搏,如图10-5中的三分布形状判定为三分布室性早搏二联律,如图10-6中所示的二分布图形为持续室早二联律,且大部分二分布都为室早,如图10-7所示的扇形一分布为心房颤动,如图10-8所示格子形为心房扑动,如图10-9所示为房颤伴室性早搏,如图10-11所示为房颤合并房扑,如图10-12所示为特殊三分布。多分布中不同疾病可能具有同一类型的散点簇集合,在Lorenz散点图模型中,需要借助B线斜率进行进一步判断,也即通过混沌理论进行更精确的心律失常类型判断。As shown in Figure 10, the ECG scatter plot attractor presents different shapes corresponding to different arrhythmia categories. As shown in Figure 10-1, the one-distribution rod pattern is sinus rhythm, as shown in Figure 10-2, the three-distribution rod pattern is mostly judged as supraventricular premature beats, and the one shown in Figure 10-3 is four-distribution supraventricular premature beats. Premature beats, shown in Figure 10-4 are four-distribution premature ventricular beats. The three-distribution shape in Figure 10-5 is determined to be three-distribution ventricular premature beats bigemy. The two-distribution pattern shown in Figure 10-6 is Sustained ventricular premature bigeminy, and most of the two distributions are ventricular premature. The fan-shaped distribution shown in Figure 10-7 is atrial fibrillation, and the grid-shaped distribution shown in Figure 10-8 is atrial flutter, as shown in Figure 10- Figure 9 shows atrial fibrillation with premature ventricular contractions, Figure 10-11 shows atrial fibrillation combined with atrial flutter, and Figure 10-12 shows a special three distribution. Different diseases in multi-distribution may have the same type of scatter cluster set. In the Lorenz scatter diagram model, further judgment needs to be made with the slope of the B line, that is, a more accurate judgment of the arrhythmia type is made through chaos theory.
如图11所示,基于吸引子分布与斜率的分析算法流程:As shown in Figure 11, the analysis algorithm flow based on attractor distribution and slope:
(3.1)根据B图、C图情况判断图形为几分布图形,如未检测到B图、C图斜率,则为一分布图形;(3.1) Determine whether the graph is a distribution graph based on the conditions of graphs B and C. If the slope of graphs B and C is not detected, it is a distribution graph;
如B图、C图关于45°轴对称,则为三分布图形或扇形图形;For example, pictures B and C are symmetrical about the 45° axis, which is a three-distribution figure or a sector figure;
若B图和C图都检测到,则为三分布图形或四分布图形。If both picture B and picture C are detected, it is a three-distribution pattern or a four-distribution pattern.
(3.2)根据图形分布情况,再结合B线斜率判断心律类型:(3.2) Determine the heart rhythm type based on the graph distribution and the slope of line B:
(3.2.1)散点图是一分布图形,检测为窦性心搏;(3.2.1) The scatter plot is a distribution graph, which is detected as sinus beat;
(3.2.2)散点图是三分布图形,B线斜率在0.18~0.80之间;(3.2.2) The scatter plot is a three-distribution graph, with the slope of line B Between 0.18~0.80;
或散点图是四分布图形,B线斜率在0.132~050之间,检测为室上性早搏;Or the scatter plot is a four-distribution graph, with the slope of line B Between 0.132 and 050, it is detected as premature supraventricular contraction;
(3.2.3)散点图是四分布图形,B线斜率<0.132;(3.2.3) The scatter plot is a four-distribution graph, with the slope of line B <0.132;
或散点图是三分布图形,B线斜率在0~0.08之间;Or the scatter plot is a three-distribution graph, with the slope of line B Between 0~0.08;
或散点图是二分布图形,B线斜率为0,检测为室性早搏;Or the scatter plot is a two-distribution graph, with the slope of line B If it is 0, it is detected as premature ventricular contraction;
(3.2.4)散点图是扇形图形,B线斜率>0.11,检测为心房颤动;(3.2.4) The scatter plot is a fan-shaped graph, and the slope of line B is >0.11, atrial fibrillation is detected;
(3.2.5)散点图是格子状有序多分布图形,检测为传导比例变化的心房扑动;(3.2.5) The scatter plot is a grid-like ordered multi-distribution graph, which detects atrial flutter with changes in conduction proportion;
(3.2.6)散点图是在扇形图形底边下方存在一条与X轴平行的线性图形,或在扇形区中重叠出现一条斜率近似零的线性图形,检测为心房颤动伴室性早搏;(3.2.6) The scatter plot is a linear graph parallel to the X-axis below the bottom edge of the fan-shaped graph, or a linear graph with a slope of approximately zero overlaps in the fan-shaped area, which is detected as atrial fibrillation with premature ventricular contractions;
(3.2.7)散点图是存在一条与扇形底边完全重叠,或在其上方完全与其平行的线性图形,检测为心房颤动伴室内差异性传导。(3.2.7) The scatter plot is a linear graph that completely overlaps with the bottom edge of the fan shape, or is completely parallel to it above, and is detected as atrial fibrillation with intraventricular differential conduction.
实施例6Example 6
本实施例提供一种最优导联信号选取装置,包括:This embodiment provides an optimal lead signal selection device, including:
存储器;以及memory; and
耦接至所述存储器的处理器,所述处理器被配置为基于存储在所述存储器中的指令,执行实施例1所述的长时程可穿戴心电信号的最优导联信号选取方法。A processor coupled to the memory, the processor being configured to execute the optimal lead signal selection method for long-term wearable ECG signals described in Embodiment 1 based on instructions stored in the memory. .
其中,存储器例如可以包括系统存储器、固定非易失性存储介质等。系统存储器例如存储有操作系统、应用程序、引导装载程序(Boot Loader)以及其他程序等。The memory may include, for example, system memory, fixed non-volatile storage media, etc. The system memory stores, for example, an operating system, application programs, a boot loader, and other programs.
该最优导联信号选取装置还可以包括输入输出接口、网络接口、存储接口等。这些接口以及存储器和处理器之间例如可以通过总线连接。其中,输入输出接口为显示器、鼠标、键盘、触摸屏等输入输出设备提供连接接口。网络接口为各种联网设备提供连接接口。存储接口为SD卡、U盘等外置存储设备提供连接接口。The optimal lead signal selection device may also include input and output interfaces, network interfaces, storage interfaces, etc. These interfaces as well as the memory and the processor can be connected via a bus, for example. Among them, the input and output interface provides connection interfaces for input and output devices such as monitors, mice, keyboards, and touch screens. Network interfaces provide connection interfaces for various networked devices. The storage interface provides connection interfaces for external storage devices such as SD cards and USB disks.
实施例7Example 7
本实施例提供一种非瞬时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现实施例1所述的长时程可穿戴心电信号的最优导联信号选取方法。This embodiment provides a non-transitory computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the optimal lead signal of the long-term wearable ECG signal described in Embodiment 1 is achieved. Select method.
实施例8Example 8
本实施例提供一种可穿戴动态心电监测仪:This embodiment provides a wearable dynamic ECG monitor:
采用实施例1所述的长时程可穿戴心电信号的最优导联信号选取方法选出质量最好的导联信号;对选出的导联信号,采用实施例3所述的心拍分类方法进行心拍分类;或者对选出的导联信号,采用实施例5所述的心律类型检测方法进行心律类型检测。The optimal lead signal selection method for long-term wearable ECG signals described in Example 1 is used to select the lead signal with the best quality; for the selected lead signals, the heart beat classification described in Example 3 is used The method performs cardiac beat classification; or, for the selected lead signals, the heart rhythm type detection method described in Embodiment 5 is used to detect the heart rhythm type.
或者,or,
配置实施例2所述的长时程可穿戴心电信号的最优导联信号选取系统,选出的质量最好的导联信号;对选出的导联信号,采用实施例3所述的心拍分类方法进行心拍分类;或者对选出的导联信号,采用实施例5所述的心律类型检测方法进行心律类型检测。Configure the optimal lead signal selection system for long-term wearable ECG signals described in Embodiment 2, and select the lead signal with the best quality; for the selected lead signal, use the method described in Embodiment 3 The heart beat classification method is used to classify the heart beats; or the selected lead signals are used to detect the heart rhythm type using the heart rhythm type detection method described in Embodiment 5.
或者,or,
设置实施例6所述的最优导联信号选取装置,采用该装置选出质量最好的导联信号;对选出的导联信号,采用实施例3所述的心拍分类方法进行心拍分类;或者对选出的导联信号,采用实施例5所述的心律类型检测方法进行心律类型检测。Set up the optimal lead signal selection device described in Embodiment 6, and use this device to select the lead signal with the best quality; classify the selected lead signals using the heart beat classification method described in Embodiment 3; Or, for the selected lead signals, the heart rhythm type detection method described in Embodiment 5 is used to detect the heart rhythm type.
或者,or,
预置实施例7所述的非瞬时性计算机可读存储介质,执行非瞬时性计算机可读存储介质中的程序获得质量最好的导联信号;对获得的导联信号,采用实施例3所述的心拍分类方法进行心拍分类;或者对获得的导联信号,采用实施例5所述的心律类型检测方法进行心律类型检测。Preset the non-transitory computer-readable storage medium described in Embodiment 7, execute the program in the non-transitory computer-readable storage medium to obtain the lead signal with the best quality; for the obtained lead signal, use the method in Embodiment 3 Classify heart beats using the heart beat classification method described above; or use the heart rhythm type detection method described in Embodiment 5 to detect heart rhythm types on the obtained lead signals.
本领域内的技术人员应当明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机程序代码的计算机非瞬时性可读存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the invention may take the form of a computer program product embodied on one or more computer non-transitory readable storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) embodying computer program code therein. .
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解为可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in a process or processes in a flowchart and/or a block or blocks in a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes in the flowchart and/or in a block or blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限制;尽管参照较佳实施例对本发明进行了详细的说明,所属领域的普通技术人员应当理解:依然可以对本发明的具体实施方式进行修改或者对部分技术特征进行等同替换;而不脱离本发明技术方案的精神,其均应涵盖在本发明请求保护的技术方案范围当中。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention but not to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the present invention can still be modified. Modifications to the specific embodiments of the invention or equivalent substitutions of some of the technical features without departing from the spirit of the technical solution of the present invention shall be covered by the scope of the technical solution claimed by the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310271556.3A CN116831589A (en) | 2023-03-20 | 2023-03-20 | An optimal lead signal selection method for long-term wearable ECG signals |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310271556.3A CN116831589A (en) | 2023-03-20 | 2023-03-20 | An optimal lead signal selection method for long-term wearable ECG signals |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116831589A true CN116831589A (en) | 2023-10-03 |
Family
ID=88165888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310271556.3A Pending CN116831589A (en) | 2023-03-20 | 2023-03-20 | An optimal lead signal selection method for long-term wearable ECG signals |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116831589A (en) |
-
2023
- 2023-03-20 CN CN202310271556.3A patent/CN116831589A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11344243B2 (en) | Artificial intelligence self-learning-based static electrocardiography analysis method and apparatus | |
Lai et al. | Non-standardized patch-based ECG lead together with deep learning based algorithm for automatic screening of atrial fibrillation | |
CN106214145B (en) | Electrocardiogram classification method based on deep learning algorithm | |
CN109411041B (en) | ECG information processing method and ECG workstation system | |
WO2019100560A1 (en) | Artificial intelligence self-learning-based automatic electrocardiography analysis method and apparatus | |
WO2019161609A1 (en) | Method for analyzing multi-parameter monitoring data and multi-parameter monitor | |
CN109411042B (en) | ECG information processing method and ECG workstation | |
JP7429371B2 (en) | Method and system for quantifying and removing asynchronous noise in biophysical signals | |
CN108478209A (en) | Ecg information dynamic monitor method and dynamic monitor system | |
CN108309263A (en) | Multi-parameter monitoring data analysing method and multi-parameter monitoring system | |
CN109998529A (en) | P wave, T wave detecting method in a kind of ECG signal based on Gaussian function fitting | |
US20210007621A1 (en) | Method to analyze cardiac rhythms using beat-to-beat display plots | |
Wu et al. | Personalizing a generic ECG heartbeat classification for arrhythmia detection: a deep learning approach | |
Kruger et al. | Bimodal classification algorithm for atrial fibrillation detection from m-health ECG recordings | |
Zhang et al. | Deep learning-based signal quality assessment for wearable ECGs | |
Yu et al. | Automatic detection of atrial fibrillation from ballistocardiogram (BCG) using wavelet features and machine learning | |
Lee et al. | ECG measurement system for vehicle implementation and heart disease classification using machine learning | |
Kishore et al. | An innovative machine learning approach for classifying ECG signals in healthcare devices | |
CN115337018B (en) | Electrocardiogram signal classification method and system based on overall dynamic characteristics | |
Prasanna Venkatesh et al. | CatBoost-based improved detection of P-wave changes in sinus rhythm and tachycardia conditions: a lead selection study | |
Yang et al. | ECG Signal Processing and Automatic Classification Algorithms | |
Jiménez-Serrano et al. | Multiple cardiac disease detection from minimal-lead ECG combining feedforward neural networks with a one-vs-rest approach | |
CN117257321A (en) | Myocardial ischemia detection method and device based on machine learning and high-frequency electrocardio | |
Gliner et al. | Identification of features for machine learning analysis for automatic arrhythmogenic event classification | |
RU2759069C1 (en) | Method for noninvasive diagnosis of coronary heart disease |
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 |