[go: up one dir, main page]

CN113633293B - Heart-derived sudden death early warning method for chaotically detecting T-wave electricity alternation - Google Patents

Heart-derived sudden death early warning method for chaotically detecting T-wave electricity alternation Download PDF

Info

Publication number
CN113633293B
CN113633293B CN202110861353.0A CN202110861353A CN113633293B CN 113633293 B CN113633293 B CN 113633293B CN 202110861353 A CN202110861353 A CN 202110861353A CN 113633293 B CN113633293 B CN 113633293B
Authority
CN
China
Prior art keywords
dimension
data
error
ecg data
sudden cardiac
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
CN202110861353.0A
Other languages
Chinese (zh)
Other versions
CN113633293A (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.)
Foshan University
Original Assignee
Foshan 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 Foshan University filed Critical Foshan University
Priority to CN202110861353.0A priority Critical patent/CN113633293B/en
Publication of CN113633293A publication Critical patent/CN113633293A/en
Application granted granted Critical
Publication of CN113633293B publication Critical patent/CN113633293B/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/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]
    • A61B5/346Analysis of electrocardiograms
    • A61B5/349Detecting specific parameters of the electrocardiograph cycle
    • A61B5/355Detecting T-waves
    • 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]
    • A61B5/346Analysis of electrocardiograms
    • 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/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • 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/7225Details of analog processing, e.g. isolation amplifier, gain or sensitivity adjustment, filtering, baseline or drift compensation
    • 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
    • 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
    • A61B5/725Details of waveform analysis using specific filters therefor, e.g. Kalman or adaptive filters

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Molecular Biology (AREA)
  • Animal Behavior & Ethology (AREA)
  • Pathology (AREA)
  • Physics & Mathematics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Signal Processing (AREA)
  • Surgery (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Cardiology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physiology (AREA)
  • Psychiatry (AREA)
  • Power Engineering (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

本发明公开了一种混沌检测T波电交替的心源性猝死预警方法,包括以下步骤:获取心电数据;对心电数据进行去干扰噪声;对心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数;计算得到第一误差和第二误差,第一误差为关联维数与关联维数的平均值之间的差值的绝对值,第二误差为最大Lyapunov指数与最大Lyapunov指数的平均值之间的差值的绝对值;判断第一误差是否小于第一阈值,判断第二误差是否小于第二阈值;当第一误差小于第一阈值,或第二误差小于第二阈值,发出心源性猝死预警。本发明能够寻找对TWA检测可行性较高的混沌特征,对TWA进行有效检测,对心源性猝死做到较好地预警。

Figure 202110861353

The invention discloses a method for early warning of sudden cardiac death for chaotic detection of T-wave electrical alternation. The detection method calculates the correlation dimension and the maximum Lyapunov exponent; calculates the first error and the second error, the first error is the absolute value of the difference between the correlation dimension and the average value of the correlation dimension, and the second error is the largest The absolute value of the difference between the Lyapunov exponent and the average value of the maximum Lyapunov exponent; judge whether the first error is less than the first threshold, and judge whether the second error is less than the second threshold; when the first error is less than the first threshold, or the second If the error is less than the second threshold, a sudden cardiac death warning is issued. The invention can search for chaotic features with high feasibility for TWA detection, effectively detect TWA, and provide better early warning for sudden cardiac death.

Figure 202110861353

Description

混沌检测T波电交替的心源性猝死预警方法Sudden cardiac death early warning method based on chaos detection of T wave electrical alternation

技术领域technical field

本发明涉及生物医学技术领域,特别涉及一种混沌检测T波电交替的心源性猝死预警方法。The invention relates to the technical field of biomedicine, in particular to a method for early warning of sudden cardiac death for chaotic detection of T wave electrical alternation.

背景技术Background technique

心源性猝死(SuddenCardiacDeath,SCD)定义为在没有任何可能致命的先决条件下,出现症状后最多一小时内失去知觉意识,主要临床表现为意识骤然丧失,急速的、致命性的、非外伤性的生理性死亡,且院外救治率极低。近年来知名人士因心源性猝死而抢救无效不幸死亡的案例时有发生,且当前心源性猝死已不再是老年人的专属,逐渐显露出低龄化的迹象,很多90后的年轻人也难免于此,这显然是给人类敲响了警钟。心源性猝死发病急骤,一旦发病,患者往往得不到及时的抢救而丧失生命。此时,若能提前捕捉到心脏猝死的征兆,便能为患者后续的治疗争取充裕的时间,尽可能避免因突发猝死而抢救不及时的状况出现,有效地提高发病者的存活率,因此,对心源性猝死风险的早发现成为了刻不容缓的需求。Sudden Cardiac Death (SCD) is defined as loss of consciousness within a maximum of one hour after the onset of symptoms without any potentially fatal preconditions, the main clinical manifestation is sudden loss of consciousness, rapid, fatal, non-traumatic Physiological death, and the out-of-hospital treatment rate is extremely low. In recent years, there have been cases of famous people who died of sudden cardiac death due to ineffective rescue, and the current sudden cardiac death is no longer exclusive to the elderly, gradually showing signs of younger age, and many young people born in the 1990s also Inevitably, this is obviously a wake-up call to mankind. Sudden cardiac death is a sudden onset, and once it occurs, patients often lose their lives without timely rescue. At this time, if the signs of sudden cardiac death can be captured in advance, it will be possible to obtain sufficient time for the patient’s follow-up treatment, avoid the situation where the rescue is not timely due to sudden sudden death, and effectively improve the survival rate of the patient. Therefore, , the early detection of the risk of sudden cardiac death has become an urgent need.

心源性猝死发病急骤,一旦发病,患者往往得不到及时的抢救而丧失生命。此时,若能提前捕捉到心脏猝死的征兆,便能为患者后续的治疗争取充裕的时间,尽可能避免因突发猝死而抢救不及时的状况出现,有效地提高发病者的存活率。根据相关文献资料可知,T波电交替(TWaveAlternans,TWA)是一种病理性心电活动,TWA作为预测心源性猝死的一种工具,其研究价值较高和应用前景较广。Sudden cardiac death is a sudden onset, and once it occurs, patients often lose their lives without timely rescue. At this time, if the signs of sudden cardiac death can be captured in advance, we can gain sufficient time for the follow-up treatment of the patient, avoid the situation where the rescue is not timely due to sudden death, and effectively improve the survival rate of the patient. According to the relevant literature, T Wave Alternans (TWA) is a pathological cardiac activity. As a tool for predicting sudden cardiac death, TWA has high research value and broad application prospects.

发明内容SUMMARY OF THE INVENTION

本发明旨在至少解决现有技术中存在的技术问题。为此,本发明提出一种混沌检测T波电交替的心源性猝死预警方法,能够寻找对TWA检测可行性较高的混沌特征,对TWA进行有效检测,对心源性猝死做到较好地预警。The present invention aims to at least solve the technical problems existing in the prior art. Therefore, the present invention proposes a sudden cardiac death early warning method for chaotic detection of T-wave electrical alternation, which can search for chaotic features with high feasibility for TWA detection, effectively detect TWA, and achieve a better response to sudden cardiac death. early warning.

本发明还提出一种具有上述混沌检测T波电交替的心源性猝死预警方法的混沌检测T波电交替的心源性猝死预警系统。The present invention also provides a sudden cardiac death early warning system for chaotic detection of T wave electrical alternation with the above-mentioned chaotic detection T wave electrical alternation early warning method for sudden cardiac death.

本发明还提出一种计算机可读存储介质。The present invention also provides a computer-readable storage medium.

第一方面,本实施例提供了一种混沌检测T波电交替的心源性猝死预警方法,包括以下步骤:In a first aspect, this embodiment provides a method for early warning of sudden cardiac death for chaotic detection of T-wave electrical alternation, including the following steps:

获取心电数据;Obtain ECG data;

对所述心电数据进行去干扰噪声;performing noise removal on the ECG data;

对所述心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数;Using the chaos detection method to calculate the T-wave alternation data of the ECG data to obtain the correlation dimension and the maximum Lyapunov exponent;

计算得到第一误差和第二误差,所述第一误差为所述关联维数与所述关联维数的平均值之间的差值的绝对值,所述第二误差为所述最大Lyapunov指数与所述最大Lyapunov指数的平均值之间的差值的绝对值;Calculate the first error and the second error, the first error is the absolute value of the difference between the correlation dimension and the average value of the correlation dimension, and the second error is the maximum Lyapunov exponent the absolute value of the difference from the mean of the maximum Lyapunov exponent;

判断所述第一误差是否小于第一阈值,判断所述第二误差是否小于第二阈值;judging whether the first error is less than a first threshold, and judging whether the second error is less than a second threshold;

当所述第一误差小于第一阈值,或所述第二误差小于第二阈值,发出心源性猝死预警。When the first error is smaller than the first threshold, or the second error is smaller than the second threshold, a sudden cardiac death warning is issued.

根据本发明实施例的混沌检测T波电交替的心源性猝死预警方法,至少具有如下有益效果:The method for early warning of sudden cardiac death for chaotic detection of T-wave electrical alternation according to the embodiment of the present invention has at least the following beneficial effects:

首先获取心电数据,再对心电数据进行预处理以去除干扰噪声,主要包括肌电干扰、工频干扰和基线漂移,肌电信号是一种几乎无法避免的干扰信号,是由人体活动、其他部位肌肉的紧张和颤动所导致,主要为采集心电数据时电极片所在区域的肌肉抽搐引起的干扰,无规律的,是一种高斯白噪声,属于高频干扰,频率一般分布在30Hz~2000Hz之间体现在心电波形上的是一种变化速率快,微小无规则可寻的纹波。工频干扰是由心电采集设备连接的电源及外界电磁场引起的,属于交流信号,主要体现在心电图上有明显的正弦波叠加,具象一点就是心电波形上会有很多细小的毛刺。基线漂移一般是由于人体呼吸、心电图机电极片微小移位、皮肤表面阻抗等因素导致的。基线漂移会使得信号数据段连同基准线上下的浮动或扭曲,变化较为缓慢,频率较低,一般小于1Hz。这种干扰对于后续心电分析研究有着较大的影响,特别是对ST段识别的准确率造成极大的影响。由于T波电交替就出现在心电波形上的ST波段,因此基线漂移一定要尽可能处理掉,减少对TWA检测的影响。First obtain ECG data, and then preprocess the ECG data to remove interference noise, mainly including EMG interference, power frequency interference and baseline drift. EMG signal is an almost unavoidable interference signal, which is caused by human activities, The tension and tremor of muscles in other parts are mainly caused by the interference caused by muscle twitches in the area where the electrode pads are located when collecting ECG data. The irregularity is a kind of Gaussian white noise, which belongs to high-frequency interference, and the frequency is generally distributed in the range of 30Hz~ Between 2000Hz, the ECG waveform is a kind of ripple with fast change rate, small and irregular. The power frequency interference is caused by the power supply connected to the ECG acquisition equipment and the external electromagnetic field. It belongs to the AC signal. It is mainly reflected in the superposition of obvious sine waves on the ECG. The concrete point is that there will be many tiny burrs on the ECG waveform. Baseline drift is generally caused by factors such as human respiration, slight displacement of electrocardiograph electrode pads, and skin surface impedance. Baseline drift will cause the signal data segment to float or distort along with the baseline, the change is relatively slow, and the frequency is low, generally less than 1Hz. This kind of interference has a great impact on the follow-up ECG analysis research, especially on the accuracy of ST segment identification. Since T wave alternation appears in the ST band on the ECG waveform, baseline drift must be dealt with as much as possible to reduce the impact on TWA detection.

然后对心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数;计算得到第一误差和第二误差,第一误差为关联维数与关联维数的平均值之间的差值的绝对值,第二误差为最大Lyapunov指数与最大Lyapunov指数的平均值之间的差值的绝对值;判断第一误差是否小于第一阈值,判断第二误差是否小于第二阈值;当第一误差小于第一阈值,或第二误差小于第二阈值,发出心源性猝死预警。本实施例提供的混沌检测T波电交替的心源性猝死预警方法,能够寻找对TWA检测可行性较高的混沌特征,对TWA进行有效检测,对心源性猝死做到较好地预警。Then use the chaos detection method to calculate the correlation dimension and the maximum Lyapunov exponent for the T wave electrical alternation data of the ECG data; calculate the first error and the second error, and the first error is the sum of the correlation dimension and the average value of the correlation dimension The absolute value of the difference between the two, the second error is the absolute value of the difference between the maximum Lyapunov index and the average value of the maximum Lyapunov index; judge whether the first error is less than the first threshold, and judge whether the second error is less than the second threshold ; When the first error is smaller than the first threshold, or the second error is smaller than the second threshold, a sudden cardiac death warning is issued. The method for early warning of sudden cardiac death for chaotic detection of T-wave electrical alternation provided in this embodiment can search for chaotic features with high feasibility for TWA detection, effectively detect TWA, and achieve better early warning of sudden cardiac death.

根据本发明的一些实施例,在所述对所述心电数据进行预处理去干扰噪声之前,还包括步骤:According to some embodiments of the present invention, before the preprocessing of the ECG data to remove interference noise, the method further includes the steps of:

选择所述心电数据的导联和采样时刻点;Select the lead and sampling time point of the ECG data;

对所述心电数据做可视化处理。Visualize the ECG data.

根据本发明的一些实施例,所述对所述心电数据进行预处理去干扰噪声,包括步骤;According to some embodiments of the present invention, the preprocessing of the ECG data to remove interference noise includes steps;

对所述心电数据进行预处理去除肌电干扰、工频干扰和矫正基线漂移。The ECG data are preprocessed to remove EMG interference, power frequency interference and to correct baseline drift.

根据本发明的一些实施例,所述对所述心电数据进行预处理去除肌电干扰、工频干扰和基线漂移,包括步骤;According to some embodiments of the present invention, the preprocessing of the ECG data to remove myoelectric interference, power frequency interference and baseline drift includes steps;

使用巴特沃斯低通滤波器滤除所述肌电干扰;filtering out the EMG interference using a Butterworth low-pass filter;

使用50Hz或60Hz的工频陷波器滤除所述工频干扰;Use a 50Hz or 60Hz power frequency notch filter to filter out the power frequency interference;

使用中值滤波Kaiser窗函数法对所述基线漂移进行矫正。The baseline drift was corrected using the median filtered Kaiser window method.

根据本发明的一些实施例,在所述对所述心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数之前,还包括步骤:According to some embodiments of the present invention, before the correlation dimension and the maximum Lyapunov exponent are obtained by calculating the T wave electrical alternation data of the ECG data using the chaos detection method, the method further includes the steps:

选择功率谱,对时间序列进行相空间重构。Select the power spectrum to perform phase-space reconstruction of the time series.

根据本发明的一些实施例,在判断所述第一误差是否小于第一阈值,判断所述第二误差是否小于第二阈值之后,包括步骤:According to some embodiments of the present invention, after judging whether the first error is smaller than a first threshold and judging whether the second error is smaller than a second threshold, the steps include:

当所述第一误差大于第一阈值,且所述第二误差大于第二阈值,结束进程。When the first error is greater than the first threshold and the second error is greater than the second threshold, the process ends.

第二方面,本实施例提供了一种混沌检测T波电交替的心源性猝死预警系统,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面所述的混沌检测T波电交替的心源性猝死预警方法。In a second aspect, this embodiment provides a sudden cardiac death early warning system for chaotic detection of T-wave electrical alternation, including: a memory, a processor, and a computer program stored in the memory and running on the processor, the processing When the computer executes the computer program, the method for early warning of sudden cardiac death for detecting T wave electrical alternation in chaos according to the first aspect is realized.

根据本发明实施例的混沌检测T波电交替的心源性猝死预警系统,至少具有如下有益效果:混沌检测T波电交替的心源性猝死预警系统应用了如第一方面所述的混沌检测T波电交替的心源性猝死预警方法,能够寻找对TWA检测可行性较高的混沌特征,对TWA进行有效检测,对心源性猝死做到较好地预警。According to the embodiment of the present invention, the early warning system for sudden cardiac death for detecting T-wave electrical alternation in chaos has at least the following beneficial effects: The T-wave alternation early warning method for sudden cardiac death can find chaotic features with high feasibility for TWA detection, effectively detect TWA, and achieve better early warning of sudden cardiac death.

第三方面,本实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如第一方面所述的混沌检测T波电交替的心源性猝死预警方法。In a third aspect, this embodiment provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the chaos described in the first aspect A method for early warning of sudden cardiac death by detecting T wave alternation.

本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.

附图说明Description of drawings

本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中摘要附图要与说明书附图的其中一幅完全一致:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, the abstract of which is intended to be in full conformity with one of the accompanying drawings of the specification:

图1是本发明一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的流程图;1 is a flowchart of a method for early warning of sudden cardiac death for chaotic detection of T-wave electrical alternation provided by an embodiment of the present invention;

图2是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的TWA心电图;2 is a TWA electrocardiogram of a method for early warning of sudden cardiac death for chaotic detection of T-wave electrical alternation provided by another embodiment of the present invention;

图3是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的滤波去除P波后的S-T波结果图;Fig. 3 is the S-T wave result diagram after filtering and removing P wave of the method for early warning of sudden cardiac death for chaotic detection of T wave electrical alternation provided by another embodiment of the present invention;

图4是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的滤波去除P波后的S-T波结果图;Fig. 4 is the S-T wave result figure after filtering and removing P wave of the method for early warning of sudden cardiac death for chaotic detection of T wave electrical alternation provided by another embodiment of the present invention;

图5是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的滤波去除P波后的S-T波结果图;5 is a diagram showing the result of S-T wave after filtering and removing P wave in a method for early warning of sudden cardiac death for chaotic detection of T wave electrical alternation provided by another embodiment of the present invention;

图6是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的相空间重构案例图;6 is a case diagram of phase space reconstruction of a method for early warning of sudden cardiac death for chaotic detection of T-wave electrical alternation provided by another embodiment of the present invention;

图7是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的TWA心电数据求解关联维数结果图;Fig. 7 is the TWA electrocardiographic data solving correlation dimension result diagram of the method for early warning of sudden cardiac death for chaotic detection of T wave electrical alternation provided by another embodiment of the present invention;

图8是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警系统的结构图。FIG. 8 is a structural diagram of a sudden cardiac death early warning system for chaotic detection of T-wave electrical alternation provided by another embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

需要说明的是,虽然在系统示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于系统中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional modules are divided in the schematic diagram of the system and the logical sequence is shown in the flowchart, in some cases, the modules can be divided differently from the system, or executed in the order in the flowchart. steps shown or described. The terms "first", "second" and the like in the description and claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

近年来,TWA被视为SCD的预测因子,也证实了作为一种无创检测手段的TWA在预测心源性猝死方面大有前景。然而TWA是人体体表心电图中很难用肉眼观察到的,且容易被各类噪声干扰甚至湮灭的异常现象。因此,心电图中TWA的准确检测是一个具有挑战性的问题。根据检测原理对TWA检测方法进行分类,大致分为时域检测法、变换域检测法。In recent years, TWA has been regarded as a predictor of SCD, and it has also confirmed that TWA as a non-invasive detection method has great promise in predicting sudden cardiac death. However, TWA is an abnormal phenomenon that is difficult to observe with the naked eye in the human body surface electrocardiogram, and is easily disturbed or even annihilated by various kinds of noise. Therefore, accurate detection of TWA in ECG is a challenging problem. According to the detection principle, TWA detection methods are classified into time domain detection methods and transform domain detection methods.

时域检测法主要是通过时域上的符号变换对信号进行定性和定量分析,并对比TWA时域诊断标准来判断TWA存在与否。常见的有相关分析法。相关分析法是以连续心动周期内的心电信号为对象,计算该段信号中所有T波的平均幅值,并利用T波当前幅值与平均幅值的互相关和自相关函数等信息构建相关指数,以此作为TWA的检测指标,记为交替相关指数。The time domain detection method mainly analyzes the signal qualitatively and quantitatively through the symbol transformation in the time domain, and compares the TWA time domain diagnostic criteria to judge the existence of TWA. Correlation analysis is common. The correlation analysis method takes the ECG signal in the continuous cardiac cycle as the object, calculates the average amplitude of all T waves in the signal, and uses the information such as the cross-correlation and auto-correlation function between the current amplitude and the average amplitude of the T wave to construct. The correlation index, which is used as the detection index of TWA, is recorded as the alternating correlation index.

TWA变换域检测方法以短时傅里叶变换或频谱变换为基础。谱分析法(SpectralMethod,SM)主要是将数字化后的心电信号按照每次心拍跳动进行分段,并把它们看作一个矢量,然后在一定窗口对向量信号进行频谱分析和TWA检测。The TWA transform domain detection method is based on short-time Fourier transform or spectral transform. The Spectral Method (SM) mainly divides the digitized ECG signal into segments according to each heartbeat, and regards them as a vector, and then performs spectrum analysis and TWA detection on the vector signal in a certain window.

非线性原理检测TWA方法:拉普拉斯似然比法,其心思想是建立非高斯的TWA概率模型,通过模型分析TWA,但该方法的缺点在于明显的抗噪性差及稳健性低。Non-linear principle detection TWA method: Laplace likelihood ratio method, the idea is to establish a non-Gaussian TWA probability model, and analyze TWA through the model, but the shortcomings of this method are obvious poor anti-noise and low robustness.

本发明提供了一种混沌检测T波电交替的心源性猝死预警方法,能够寻找对TWA检测可行性较高的混沌特征,对TWA进行有效检测,对心源性猝死做到较好地预警。The invention provides a sudden cardiac death early warning method for chaotic detection of T wave electrical alternation, which can search for chaotic features with high feasibility for TWA detection, effectively detect TWA, and achieve better early warning of sudden cardiac death. .

下面结合附图,对本发明实施例作进一步阐述。The embodiments of the present invention will be further described below with reference to the accompanying drawings.

参照图1,图1是本发明一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的流程图,混沌检测T波电交替的心源性猝死预警方法包括但不仅限于步骤S110至步骤S160。Referring to FIG. 1 , FIG. 1 is a flowchart of a method for early warning of sudden cardiac death for chaotic detection of T wave electrical alternation provided by an embodiment of the present invention, and the method for early warning of sudden cardiac death for chaotic detection of T wave electrical alternation includes but is not limited to step S110 Go to step S160.

步骤S110,获取心电数据;Step S110, acquiring ECG data;

步骤S120,对心电数据进行去干扰噪声;Step S120, performing noise removal on the ECG data;

步骤S130,对心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数;Step S130, using the chaos detection method to calculate the T-wave alternation data of the ECG data to obtain the correlation dimension and the maximum Lyapunov exponent;

步骤S140,计算得到第一误差和第二误差,第一误差为关联维数与关联维数的平均值之间的差值的绝对值,第二误差为最大Lyapunov指数与最大Lyapunov指数的平均值之间的差值的绝对值;Step S140, calculate and obtain the first error and the second error, the first error is the absolute value of the difference between the correlation dimension and the average value of the correlation dimension, and the second error is the average value of the maximum Lyapunov exponent and the maximum Lyapunov exponent the absolute value of the difference between;

步骤S150,判断第一误差是否小于第一阈值,判断第二误差是否小于第二阈值;Step S150, judging whether the first error is smaller than the first threshold, and judging whether the second error is smaller than the second threshold;

步骤S160,当第一误差小于第一阈值,或第二误差小于第二阈值,发出心源性猝死预警。Step S160, when the first error is smaller than the first threshold, or the second error is smaller than the second threshold, a sudden cardiac death warning is issued.

在一实施例中,首先获取心电数据,再对心电数据进行预处理以去除干扰噪声,主要包括肌电干扰、工频干扰和基线漂移,肌电信号是一种几乎无法避免的干扰信号,是由人体活动、其他部位肌肉的紧张和颤动所导致,主要为采集心电数据时电极片所在区域的肌肉抽搐引起的干扰,无规律的,是一种高斯白噪声,属于高频干扰,频率一般分布在30Hz~2000Hz之间体现在心电波形上的是一种变化速率快,微小无规则可寻的纹波。工频干扰是由心电采集设备连接的电源及外界电磁场引起的,属于交流信号,主要体现在心电图上有明显的正弦波叠加,具象一点就是心电波形上会有很多细小的毛刺。基线漂移一般是由于人体呼吸、心电图机电极片微小移位、皮肤表面阻抗等因素导致的。基线漂移会使得信号数据段连同基准线上下的浮动或扭曲,变化较为缓慢,频率较低,一般小于1Hz。这种干扰对于后续心电分析研究有着较大的影响,特别是对ST段识别的准确率造成极大的影响。由于T波电交替就出现在心电波形上的ST波段,因此基线漂移一定要尽可能处理掉,减少对TWA检测的影响。然后对心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数;计算得到第一误差和第二误差,第一误差为关联维数与关联维数的平均值之间的差值的绝对值,第二误差为最大Lyapunov指数与最大Lyapunov指数的平均值之间的差值的绝对值;判断第一误差是否小于第一阈值,判断第二误差是否小于第二阈值;当第一误差小于第一阈值,或第二误差小于第二阈值,发出心源性猝死预警。In one embodiment, ECG data is obtained first, and then the ECG data is preprocessed to remove interference noise, which mainly includes EMG interference, power frequency interference and baseline drift. EMG signals are almost unavoidable interference signals. , which is caused by human activity and the tension and vibration of muscles in other parts, mainly due to the interference caused by the muscle twitching in the area where the electrode pads are located when collecting ECG data. The frequency is generally distributed between 30Hz and 2000Hz. What is reflected in the ECG waveform is a ripple with a fast change rate and small irregularities. The power frequency interference is caused by the power supply connected to the ECG acquisition equipment and the external electromagnetic field. It belongs to the AC signal. It is mainly reflected in the superposition of obvious sine waves on the ECG. The concrete point is that there will be many tiny burrs on the ECG waveform. Baseline drift is generally caused by factors such as human respiration, slight displacement of electrocardiograph electrode pads, and skin surface impedance. Baseline drift will cause the signal data segment to float or distort along with the baseline, the change is relatively slow, and the frequency is low, generally less than 1Hz. This kind of interference has a great impact on the follow-up ECG analysis research, especially on the accuracy of ST segment identification. Since T wave alternation appears in the ST band on the ECG waveform, baseline drift must be dealt with as much as possible to reduce the impact on TWA detection. Then use the chaos detection method to calculate the correlation dimension and the maximum Lyapunov exponent for the T wave electrical alternation data of the ECG data; calculate the first error and the second error, and the first error is the sum of the correlation dimension and the average value of the correlation dimension The absolute value of the difference between the two, the second error is the absolute value of the difference between the maximum Lyapunov index and the average value of the maximum Lyapunov index; judge whether the first error is less than the first threshold, and judge whether the second error is less than the second threshold ; When the first error is smaller than the first threshold, or the second error is smaller than the second threshold, a sudden cardiac death warning is issued.

在一实施例中,获取心电数据,选择所述心电数据的导联和采样时刻点,对所述心电数据做可视化处理,对心电数据进行预处理去干扰噪声,对心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数,计算得到第一误差和第二误差,第一误差为关联维数与关联维数的平均值之间的差值的绝对值,第二误差为最大Lyapunov指数与最大Lyapunov指数的平均值之间的差值的绝对值;判断第一误差是否小于第一阈值,判断第二误差是否小于第二阈值;当第一误差小于第一阈值,或第二误差小于第二阈值,发出心源性猝死预警。In one embodiment, ECG data is acquired, leads and sampling time points of the ECG data are selected, the ECG data is visualized, the ECG data is preprocessed to remove noise, and Using the chaos detection method to calculate the correlation dimension and the maximum Lyapunov exponent, the first error and the second error are calculated, and the first error is the difference between the correlation dimension and the average value of the correlation dimension. Absolute value, the second error is the absolute value of the difference between the maximum Lyapunov exponent and the average value of the maximum Lyapunov exponent; judge whether the first error is less than the first threshold, and judge whether the second error is less than the second threshold; when the first error If it is less than the first threshold, or the second error is less than the second threshold, a sudden cardiac death warning is issued.

参考图2至图5,图2是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的TWA心电图,图3是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的滤波去除P波后的S-T波结果图,图4是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的滤波去除P波后的S-T波结果图,图5是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的滤波去除P波后的S-T波结果图。Referring to FIG. 2 to FIG. 5, FIG. 2 is a TWA electrocardiogram of a method for early warning of sudden cardiac death with chaotic detection of T-wave electrical alternation provided by another embodiment of the present invention, and FIG. 3 is a T-wave detection of chaos provided by another embodiment of the present invention. Figure 4 shows the result of filtering and removing the P wave in the electrical alternating sudden cardiac death early warning method after filtering and removing the P wave. Figure 5 is a result diagram of the S-T wave after filtering and removing the P wave in the method for early warning of sudden cardiac death for chaotic detection of T wave electrical alternation provided by another embodiment of the present invention.

心电数据T波段截取,T波是心电图的重要组成成分,它反映了心室肌的复极过程。T波电交替现象是T波异常的一种,研究表明,心源性猝死和T波电交替现在有直接联系,可以通过检测T波电交替现象来提前预测患有心源性猝死的可能性。在心电数据中,与R波相比,T波特征并不明显,变化细微,利用混沌系统对微弱信号的有效检测正好可以解决T波异常问题。The ECG data is taken from the T-band. T-wave is an important component of the ECG, which reflects the repolarization process of the ventricular myocardium. T-wave alternation is a kind of abnormal T-wave. Studies have shown that there is a direct connection between sudden cardiac death and T-wave alternation. The possibility of sudden cardiac death can be predicted in advance by detecting T-wave alternation. In the ECG data, compared with the R wave, the characteristics of the T wave are not obvious and the changes are subtle. The effective detection of the weak signal by the chaotic system can just solve the problem of the abnormal T wave.

检测T波电交替现象首先需要将S-T波波段进行截取。本文将利用小波包算法通过提取心电图的T波所处的频率范围的波形,确定心电图的T波的时域边界并在单周期心电图中提取T波。To detect the electrical alternation of T wave, it is necessary to intercept the S-T wave band first. This paper will use the wavelet packet algorithm to determine the time domain boundary of the T wave of the ECG by extracting the waveform of the frequency range of the T wave of the ECG, and extract the T wave in the single-cycle ECG.

根据心电图的QRS波群、T波的频谱图分析可知,QRS波的带宽频率集中在为0~38Hz,积累了将近99%的能量,QRS波峰能量集中在8~16Hz附近;T波带宽为0~8Hz,波峰能量集中在1~8Hz的频率范围内。According to the analysis of the spectrum of the QRS complex and T wave of the electrocardiogram, the bandwidth frequency of the QRS wave is concentrated at 0 to 38 Hz, accumulating nearly 99% of the energy, and the peak energy of the QRS wave is concentrated in the vicinity of 8 to 16 Hz; the bandwidth of the T wave is 0 ~8Hz, the peak energy is concentrated in the frequency range of 1~8Hz.

小波包算法是小波分解的推广,可以有效将信号按照频率进行有效分解成不同频率的信号,这些信号的重新叠加组合又将变为原信号。针对心电图的波群带宽频率分布情况,S-T波段主要分布在带宽为0~8Hz频率范围内。通过小波包分解,对于一个采样频率为mHz的样本信号,总的信号S表示为:The wavelet packet algorithm is a generalization of wavelet decomposition, which can effectively decompose the signal into signals of different frequencies according to the frequency, and the re-superposition and combination of these signals will become the original signal. According to the frequency distribution of the complex bandwidth of the ECG, the S-T band is mainly distributed in the frequency range of 0 to 8 Hz. Through wavelet packet decomposition, for a sample signal with a sampling frequency of mHz, the total signal S is expressed as:

Figure BDA0003185865820000081
Figure BDA0003185865820000081

其分解的信号频带为:The decomposed signal frequency bands are:

Figure BDA0003185865820000091
Figure BDA0003185865820000091

以EuropeanST-TDatabase数据集为例,其10秒数据长度为2500,则其频率为250HZ,将其分解为5层,则根节点(5,0)频带为0-8HZ,即为S-T波段。Taking the EuropeanST-TDatabase dataset as an example, its 10-second data length is 2500, and its frequency is 250HZ. If it is decomposed into 5 layers, the root node (5,0) frequency band is 0-8HZ, which is the S-T band.

在一实施例中,获取心电数据;对心电数据进行预处理去干扰噪声;对心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数;计算得到第一误差和第二误差,第一误差为关联维数与关联维数的平均值之间的差值的绝对值,第二误差为最大Lyapunov指数与最大Lyapunov指数的平均值之间的差值的绝对值;判断第一误差是否小于第一阈值,判断第二误差是否小于第二阈值;当第一误差小于第一阈值,或第二误差小于第二阈值,发出心源性猝死预警。其中,对心电数据进行预处理去干扰噪声包括去肌电干扰、去工频干扰和去基线漂移,肌电信号是一种几乎无法避免的干扰信号,是由人体活动、其他部位肌肉的紧张和颤动所导致,主要为采集心电数据时电极片所在区域的肌肉抽搐引起的干扰,无规律的,是一种高斯白噪声,属于高频干扰,频率一般分布在30Hz~2000Hz之间体现在心电波形上的是一种变化速率快,微小无规则可寻的纹波。工频干扰是由心电采集设备连接的电源及外界电磁场引起的,属于交流信号,主要体现在心电图上有明显的正弦波叠加,具象一点就是心电波形上会有很多细小的毛刺,中国大部分地区的工频一般是50Hz,而美国的工频是60Hz。In one embodiment, the electrocardiographic data is acquired; the electrocardiographic data is preprocessed to remove interference noise; the T wave electrical alternation data of the electrocardiographic data is calculated by the chaos detection method to obtain the correlation dimension and the maximum Lyapunov exponent; Error and second error, the first error is the absolute value of the difference between the associated dimension and the mean of the associated dimension, and the second error is the absolute value of the difference between the maximum Lyapunov exponent and the mean of the maximum Lyapunov exponent value; determine whether the first error is smaller than the first threshold, and determine whether the second error is smaller than the second threshold; when the first error is smaller than the first threshold, or the second error is smaller than the second threshold, a sudden cardiac death warning is issued. Among them, preprocessing ECG data to remove interference noise includes removing EMG interference, removing power frequency interference and removing baseline drift. It is mainly caused by the muscle twitching in the area where the electrode pads are located when collecting ECG data. The irregularity is a kind of Gaussian white noise, which belongs to high-frequency interference. The frequency is generally distributed between 30Hz and 2000Hz. On the electrical waveform is a ripple with a fast rate of change, small and irregular. The power frequency interference is caused by the power supply connected to the ECG acquisition equipment and the external electromagnetic field. It belongs to the AC signal. It is mainly reflected in the superposition of obvious sine waves on the ECG. The concrete point is that there will be many tiny burrs on the ECG waveform. The power frequency in some areas is generally 50Hz, while the power frequency in the United States is 60Hz.

基线漂移一般是由于人体呼吸、心电图机电极片微小移位、皮肤表面阻抗等因素导致的,基线漂移会使得信号数据段连同基准线上下的浮动或扭曲,变化较为缓慢,频率较低,一般小于1Hz,这种干扰对于后续心电分析研究有着较大的影响,特别是对ST段识别的准确率造成极大的影响,由于T波电交替就出现在心电波形上的ST波段,因此基线漂移一定要尽可能处理掉,减少对TWA检测的影响。Baseline drift is generally caused by factors such as human respiration, slight displacement of electrocardiograph electrode pads, and skin surface impedance. 1Hz, this kind of interference has a great impact on the follow-up ECG analysis research, especially on the accuracy of ST segment identification. Since the T wave alternation appears in the ST band on the ECG waveform, the baseline drifts It must be disposed of as much as possible to reduce the impact on TWA detection.

可以理解的是,选用巴特沃斯(Butterworth)低通滤波器进行去肌电干扰,低通滤波器的原理为频率响应会随着频率的升高而减小,能够最大限度地使通频带内部的信号流通,阻带则会随着频率的升高越来越趋近为0。中国大部分地区的工频一般是50Hz,而美国的工频是60Hz,去除工频干扰选用50/60Hz的工频陷波器,陷波器的特点鲜明,设计难度低,在保证去工频干扰效果的同时计算速度也快,以国际标准数据库的数据为例,其频率按美国标准为60Hz,设计阻带截止频率为59Hz和61Hz。利用中值滤波Kaiser窗函数法可以有效矫正基线漂移的问题。It can be understood that the Butterworth low-pass filter is used to remove EMG interference. The principle of the low-pass filter is that the frequency response will decrease with the increase of frequency, which can maximize the internal frequency of the passband. As the signal flows, the stopband will approach 0 more and more as the frequency increases. The power frequency in most parts of China is generally 50Hz, while the power frequency in the United States is 60Hz. To remove the power frequency interference, use a 50/60Hz power frequency notch filter. The notch filter has distinct characteristics and low design difficulty. The calculation speed of the interference effect is also fast. Taking the data of the international standard database as an example, the frequency is 60Hz according to the American standard, and the design stopband cutoff frequencies are 59Hz and 61Hz. The problem of baseline drift can be effectively corrected by using the median filter Kaiser window function method.

假设心电波形信号为x(n),0≤n≤N-1,利用窗宽为L=2k+1的中值滤波对x(n)进行处理,延拓信号波形首尾的k点:Assuming that the ECG waveform signal is x(n), 0≤n≤N-1, use the median filter with a window width of L=2k+1 to process x(n), and extend the k points at the beginning and end of the signal waveform:

Figure BDA0003185865820000101
Figure BDA0003185865820000101

对处理得到的新延拓信号x(n),-k≤n≤N+k-1,从n=0到n=N-1逐点进行中值滤波得到基线漂移:For the new continuation signal x(n) obtained by processing, -k≤n≤N+k-1, perform median filtering point by point from n=0 to n=N-1 to obtain the baseline drift:

X(n)=med[x(n-k),x(n-k+1),…,x(n),x(n+1),…,x(n+k)],n=0,1,…,N-1式中,X(n)为基线漂移波形,med[·]为中值算子。原始波形x(n)减去X(n)得到滤除基线漂移后的信号:X(n)=med[x(n-k),x(n-k+1),...,x(n),x(n+1),...,x(n+k)],n=0,1 ,…,N-1 where X(n) is the baseline drift waveform, and med[·] is the median operator. Subtract X(n) from the original waveform x(n) to get the signal after filtering out the baseline drift:

Figure BDA0003185865820000102
Figure BDA0003185865820000102

参考图6,图6是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的相空间重构案例图;图7是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警方法的TWA心电数据求解关联维数结果图。Referring to FIG. 6, FIG. 6 is a case diagram of a phase space reconstruction of a method for early warning of sudden cardiac death with chaotic detection of T-wave electrical alternation provided by another embodiment of the present invention; FIG. 7 is a chaotic detection T provided by another embodiment of the present invention. Correlation dimension result diagram of TWA ECG data solution of wave-electric alternating sudden cardiac death early warning method.

在一实施例中,在对心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数之前,还包括步骤:选择功率谱,对时间序列进行相空间重构。In an embodiment, before using the chaos detection method to calculate the correlation dimension and the maximum Lyapunov exponent for the T wave electrical alternation data of the ECG data, the method further includes the steps of: selecting a power spectrum and reconstructing the time series in phase space.

相空间重构:为了尽量地展开被隐藏的混沌吸引子,因为混沌吸引子往往能够体现原时间序列难以捕捉的混沌规律性。混沌理论认为,系统内的各个分量互相关联,相关分量的信息就隐含在任一分量的发展过程中。为了获取系统完整且准确的定性信息,这往往需要了解全面且充分的状态演化信息。Phase space reconstruction: In order to expand the hidden chaotic attractor as much as possible, because the chaotic attractor can often reflect the chaotic regularity that is difficult to capture in the original time series. Chaos theory believes that each component in the system is related to each other, and the information of the relevant component is implicit in the development process of any component. In order to obtain complete and accurate qualitative information of the system, it is often necessary to understand comprehensive and sufficient state evolution information.

假设给定一时间序列{x(i),i=1,2,3,…,N},序列长度为N,基于两个重要参数(延迟时间τ和嵌入维数m),对{x(i)}进行相空间重构,得到新的相空间矩阵是一个高维向量组成的矩阵:Assuming a given time series {x(i), i=1,2,3,...,N}, the sequence length is N, based on two important parameters (delay time τ and embedding dimension m), for {x( i)} perform phase space reconstruction, and the new phase space matrix is a matrix composed of high-dimensional vectors:

Figure BDA0003185865820000111
Figure BDA0003185865820000111

Nm个相空间的相点可表示为:The phase points of N m phase spaces can be expressed as:

X(i)=[x(i),x(i+τ),x(i+2τ),…,x(i+(m-1)τ)]i=1,2,…,MX(i)=[x(i),x(i+τ),x(i+2τ),…,x(i+(m-1)τ)]i=1,2,…,M

重构一个合适的相空间,关键在于延迟时间和嵌入维数m的选取:To reconstruct a suitable phase space, the key lies in the selection of delay time and embedding dimension m:

(1)关于延迟时间τ:τ过于小,可能会出现延迟变量之间的相关性太过于紧密导致时间序列只是从一维空间变成多维同样变量的序列组,无法探寻出背后隐藏的特征信息。反之,如果选的太大,重构的局面将会呈现出较为严峻的自我折迭现象。(1) Regarding the delay time τ: If τ is too small, the correlation between the delay variables may be too close, so that the time series is only changed from a one-dimensional space to a multi-dimensional sequence group of the same variables, and the hidden feature information behind it cannot be explored. . On the contrary, if the selection is too large, the situation of reconstruction will show a more severe self-folding phenomenon.

(2)关于嵌入维数m:m过大,计算量明显变大,会极大地增加了不必要的工作量和降低了工作的效率。若m太低,存在的缺点将凸显出来,吸引子会自交,打开不完全,不能精准且充分的表征系统的动力学行为。(2) About the embedding dimension m: if m is too large, the amount of calculation will increase significantly, which will greatly increase the unnecessary workload and reduce the efficiency of the work. If m is too low, the existing shortcomings will be highlighted, the attractor will self-intersect, the opening is incomplete, and the dynamic behavior of the system cannot be accurately and fully characterized.

本实验采用C-C算法,其思想认为时间序列含有噪声且长度有限时,两者是互相关联的参量,密不可分,需同时确定。该算法有限样本下操作简单,计算量小,极大缩减计算时间,且其抗噪能力较强。延迟时间τ依赖于时间窗口τw=(m-1)τ,利用关联积分同时估计出τ和τw,进而确定嵌入维数m。The CC algorithm is used in this experiment. The idea is that when the time series contains noise and the length is limited, the two are interrelated parameters, which are inseparable and need to be determined at the same time. The algorithm is simple in operation with limited samples, small in computation, greatly reduces computation time, and has strong anti-noise ability. The delay time τ depends on the time window τ w =(m-1)τ, and τ and τ w are estimated at the same time by correlation integration, and then the embedding dimension m is determined.

原时间序列为x(i),i=1,2,…,N,将其分成t个不相交的子序列,定义长度为:The original time series is x(i), i=1,2,...,N, which is divided into t disjoint subsequences, and the defined length is:

l=[N/t]l=[N/t]

式中,[·]表示取整。t个子序列展开如下:In the formula, [·] means rounding. The t subsequences are expanded as follows:

Figure BDA0003185865820000112
Figure BDA0003185865820000112

分别计算每个子序列的统计量S(m,N,r,τ):Calculate the statistic S(m, N, r, τ) for each subsequence separately:

Figure BDA0003185865820000121
Figure BDA0003185865820000121

式中,Cl表示第l个子序列的关联积分,可用来表征邻域半径大于相空间中In the formula, C l represents the correlation integral of the l-th subsequence, which can be used to characterize that the radius of the neighborhood is larger than that in the phase space.

任意两点间距离的概率,定义如下:The probability of the distance between any two points is defined as:

Figure BDA0003185865820000122
Figure BDA0003185865820000122

式中,M=N-(m-1)t,r代表着空间距离阈值,θ(x)为HeavisideIn the formula, M=N-(m-1)t, r represents the spatial distance threshold, and θ(x) is Heaviside

阶跃函数,空间向量Xi和Xj间距离采用无穷范数。Step function, the distance between space vectors X i and X j adopts infinite norm.

当N→∞时,有:When N→∞, there are:

Figure BDA0003185865820000123
Figure BDA0003185865820000123

据BDS统计,若时间序列是独立同分布,则当N→∞时,S(m,r,τ)恒为0。S(m,r,τ)~τ反映了序列的自相关性,当其第一次过零点或对所有r差值最小时,According to BDS statistics, if the time series is independent and identically distributed, when N→∞, S(m,r,τ) is always 0. S(m, r, τ) ~ τ reflects the autocorrelation of the sequence, when its first zero-crossing point or the minimum difference for all r values,

重构后的混沌吸引子在相空间的运动轨迹完全打开。The trajectory of the reconstructed chaotic attractor in the phase space is completely opened.

定义关于r的最大偏差ΔS(m,τ):Define the maximum deviation ΔS(m,τ) with respect to r:

ΔS(m,τ)=max{S(m,ri,τ)}-min{S(m,ri,τ)}ΔS(m,τ)=max{S(m,r i ,τ)}-min{S(m,r i ,τ)}

式中,ΔS(m,τ)用来度量S(m,r,τ)~τ对所有r的最大偏差。In the formula, ΔS(m, τ) is used to measure the maximum deviation of S(m, r, τ) ~ τ for all r.

最优延迟时间取S(m,r,τ)~τ的第一个零点或ΔS(m,τ)~τ的第一个极小点。The optimal delay time takes the first zero point of S(m,r,τ)~τ or the first minimum point of ΔS(m,τ)~τ.

Figure BDA0003185865820000124
Figure BDA0003185865820000124

Figure BDA0003185865820000125
Figure BDA0003185865820000125

Figure BDA0003185865820000126
Figure BDA0003185865820000126

找到

Figure BDA0003185865820000127
第一个零点或
Figure BDA0003185865820000128
的第一个局部极小点,定位这两点的时间,一turn up
Figure BDA0003185865820000127
the first zero or
Figure BDA0003185865820000128
The first local minimum point of , the time to locate these two points, a

般以这两个时间作为最优延迟时间τ。而嵌入窗宽τw是从Scor(t)中选取全局最小点对应的时间作为τw。进一步能确定最佳嵌入维数m。Generally, these two times are taken as the optimal delay time τ. The embedded window width τ w is the time corresponding to the global minimum point selected from S cor (t) as τ w . Further, the optimal embedding dimension m can be determined.

m=τw/τ+1m=τ w /τ+1

在一实施例中,对心电数据的T波电交替数据使用混沌检测法计算得到关联维数和最大Lyapunov指数,包括步骤:In one embodiment, the correlation dimension and the maximum Lyapunov exponent are calculated to obtain the correlation dimension and the maximum Lyapunov exponent for the T wave electrical alternation data of the ECG data, including the steps:

选取第一空间向量和第二空间向量,根据第一空间向量和第二空间向量计算得到关联积分,根据关联积分计算得到关联维数。The first space vector and the second space vector are selected, the correlation integral is calculated according to the first space vector and the second space vector, and the correlation dimension is calculated according to the correlation integral.

在一实施例中,在判断第一误差是否小于第一阈值,判断第二误差是否小于第二阈值之后,包括步骤:In one embodiment, after judging whether the first error is smaller than the first threshold and judging whether the second error is smaller than the second threshold, the steps include:

当第一误差大于第一阈值,且第二误差大于第二阈值,结束进程。When the first error is greater than the first threshold and the second error is greater than the second threshold, the process ends.

可以理解的是,关联维数的计算:混沌系统相空间中的吸引子轨迹会形成具有无穷嵌套的自相似结构,而这一现象可用关联维数进行刻画。因此将关联维数作为混沌检测分析的一个重要参数。It is understandable that the calculation of the correlation dimension: the attractor trajectories in the phase space of the chaotic system will form a self-similar structure with infinite nesting, and this phenomenon can be described by the correlation dimension. Therefore, the correlation dimension is regarded as an important parameter of chaos detection and analysis.

对任一时间序列{x(i),i=1,2,3,…,N}进行相空间重构后,选取任意两个空间向量X(i)和X(j)统计两者之间的距离小于等于任意给定的邻域半径r的点数对数量占所有点数对的比例,即关联积分:After reconstructing the phase space of any time series {x(i), i=1, 2, 3, ..., N}, select any two space vectors X(i) and X(j) to count the difference between the two The number of point pairs whose distance is less than or equal to any given neighborhood radius r accounts for the proportion of all point pairs, that is, the associated integral:

Figure BDA0003185865820000131
Figure BDA0003185865820000131

式中,M=N-(m-1)t,r代表着空间距离阈值,θ(x)为Heaviside阶跃函数,空间向量Xi和Xj间距离采用无穷范数。对充分小的r关联积分满足C(r)∝rD,增长趋势为指数倍,定义关联维数:In the formula, M=N-(m-1)t, r represents the spatial distance threshold, θ(x) is the Heaviside step function, and the distance between the spatial vectors X i and X j adopts the infinite norm. For a sufficiently small r correlation integral satisfying C(r)∝r D , the growth trend is exponential, and the correlation dimension is defined:

Figure BDA0003185865820000132
Figure BDA0003185865820000132

D可由曲线lnC(r)~ln(r)线性部分斜率估计出来:D can be estimated from the slope of the linear part of the curve lnC(r) ~ ln(r):

Figure BDA0003185865820000133
Figure BDA0003185865820000133

随着相空间维数的不断增加,但D值却不跟着一起改变时,即可认定为是关联维数D。该方法简单易行,应用日渐广泛,但对噪声较敏感,有时计算结果存在较大的误差。As the dimension of the phase space continues to increase, but the value of D does not change along with it, it can be regarded as the associated dimension D. This method is simple and easy to implement, and it is widely used, but it is sensitive to noise, and sometimes there is a large error in the calculation results.

Figure BDA0003185865820000141
Figure BDA0003185865820000141

最大李雅普诺夫指数的计算:Lyapunov指数是指相空间内邻近轨迹的平均发散速率指数。由混沌理论可知,只要Lyapunov指数出现正值则标志着混沌的产生,且数值越大,意味着混沌程度越强。反之,若Lyapunov指数为负值就可表明系统是有序态,且运动处于稳定与收敛状态。因此可以通过Lyapunov指数的正负情况来检验系统是否出现混沌。在得到一个重构相空间Y(ti)后:Calculation of the maximum Lyapunov exponent: The Lyapunov exponent refers to the average divergence rate index of adjacent trajectories in the phase space. It can be known from chaos theory that as long as the Lyapunov exponent has a positive value, it indicates the generation of chaos, and the larger the value, the stronger the degree of chaos. On the contrary, if the Lyapunov exponent is negative, it can indicate that the system is in an ordered state, and the motion is in a stable and convergent state. Therefore, it is possible to check whether the system is chaotic by the positive and negative conditions of the Lyapunov exponent. After getting a reconstructed phase space Y(t i ):

Y(ti)=[x(ti),x(ti+τ),…,x(ti+(m-1)τ)]i=1,2,…,NY(t i )=[x(t i ),x(t i+τ ),…,x(t i+(m-1)τ )]i=1,2,…,N

取初始点Y(t0),寻找其最邻近点,记为Y0(t0)。设其与最近相邻点Y0(t0)的初始距离为L0,即两点间最小距离。追踪这两个相点的时间演化,直到t1时刻,Take the initial point Y(t 0 ) and find its nearest neighbor, denoted as Y 0 (t 0 ). Let its initial distance from the nearest adjacent point Y 0 (t 0 ) be L 0 , that is, the minimum distance between two points. Trace the time evolution of these two phase points until time t 1 ,

两相点的间距超过某规定值,定义如下:The distance between two phase points exceeds a certain value, which is defined as follows:

L'0=|Y(t1)-Y0(t1)|>εL' 0 =|Y(t 1 )-Y 0 (t 1 )|>ε

ε>0时,保留Y(t1),并在Y(t1)邻近另外寻找一个相点Y1(t1),使得When ε>0, keep Y(t 1 ), and find another phase point Y 1 (t 1 ) near Y(t 1 ), so that

L1=|Y(t1)-Y1(t1)|<εL 1 =|Y(t 1 )-Y 1 (t 1 )|<ε

继续重复以上过程,直到历遍整个序列的点,Y(t)到达时间序列的终点N。Continue to repeat the above process until the point of traversing the entire sequence, Y(t) reaches the end point N of the time series.

假设跟踪演化过程总共迭代了M次,则最大Lyapunov指数(LLE)为:Assuming that the tracking evolution process is iterated M times in total, the maximum Lyapunov exponent (LLE) is:

Figure BDA0003185865820000142
Figure BDA0003185865820000142

延迟时间τ与嵌入维数m由C-C算法计算相空间重构得出。部分结果如下表:The delay time τ and the embedding dimension m are calculated by the C-C algorithm to reconstruct the phase space. Some of the results are as follows:

Figure BDA0003185865820000151
Figure BDA0003185865820000151

数据表明,心脏系统处于混沌状态,且病态的明显比正常的混沌性弱。从中还获取到另一个重要的信息,即TWA患者的最小与其它三类都有较明显的差别,因此选择最大Lyapunov指数与关联维数一起作为检测TWA的混沌特征。The data show that the cardiac system is in a chaotic state, and the morbid state is significantly weaker than the normal chaotic state. Another important information is also obtained, that is, the minimum of TWA patients is significantly different from the other three categories, so the maximum Lyapunov exponent is selected together with the correlation dimension as the chaotic feature of TWA detection.

基于混沌特征的心源性猝死检测设计,对于TWA患者与健康人及其它疾病患者,在两个混沌特征(关联维数和最大Lyapunov指数)具有显著的区分度。The design of sudden cardiac death detection based on chaotic features has a significant degree of discrimination in two chaotic features (correlation dimension and maximum Lyapunov exponent) for TWA patients, healthy people and patients with other diseases.

定义误差值ε1Define the error value ε 1 :

Figure BDA0003185865820000152
Figure BDA0003185865820000152

其中,

Figure BDA0003185865820000153
代表着关联维数的平均值,D′代表着与
Figure BDA0003185865820000154
差值最大的关联维数值。in,
Figure BDA0003185865820000153
Represents the average value of the associated dimension, and D' represents the
Figure BDA0003185865820000154
The associated dimension value with the largest difference.

同样,定义误差值ε2:Likewise, define the error value ε 2 :

Figure BDA0003185865820000155
Figure BDA0003185865820000155

其中,

Figure BDA0003185865820000156
代表着最大Lyapunov指数的平均值,L′代表着与
Figure BDA0003185865820000157
差值最大的最大Lyapunov指数。in,
Figure BDA0003185865820000156
represents the mean value of the largest Lyapunov exponent, and L′ represents the
Figure BDA0003185865820000157
The largest Lyapunov exponent with the largest difference.

计算已有国际数据库(论文选用100组)中TWA患者的关联维数D求均值得到TWA患者的关联维数

Figure BDA0003185865820000158
为0.877,得关联维数的误差值
Figure BDA0003185865820000159
同理,最大Lyapunov指数
Figure BDA00031858658200001510
均值为0.0423,其误差值
Figure BDA00031858658200001511
将ε1、ε2作为TWA的检测指标。Calculate the correlation dimension D of TWA patients in the existing international database (100 groups are selected in this paper) and calculate the mean value to obtain the correlation dimension of TWA patients
Figure BDA0003185865820000158
is 0.877, the error value of the associated dimension is obtained
Figure BDA0003185865820000159
Similarly, the maximum Lyapunov exponent
Figure BDA00031858658200001510
The mean is 0.0423, and its error value
Figure BDA00031858658200001511
ε 1 and ε 2 are used as detection indicators of TWA.

假设输入一条待测心电数据{x(i),i=1,2,3,…,N},通过混沌检测,计算关联维数和最大Lyapunov指数值,得到该时间序列关联维数D1和最大Lyapunov指数L1,计算关联维数的平均值

Figure BDA0003185865820000161
与待测时间序列关联维数D1之间差的绝对值和最大Lyapunov指数平均值
Figure BDA0003185865820000162
与待测时间序列最大Lyapunov指数L1之间差的绝对值。若满足
Figure BDA0003185865820000163
Figure BDA0003185865820000164
即可判定该待测心电数据属于TWA数据而做出警示,从而达到心源性猝死的预警目的。Assuming that a piece of ECG data to be measured {x(i), i=1,2,3,...,N} is input, the correlation dimension and the maximum Lyapunov exponent value are calculated through chaos detection, and the correlation dimension D 1 of the time series is obtained. and the largest Lyapunov exponent L 1 , calculate the mean of the associated dimension
Figure BDA0003185865820000161
The absolute value of the difference between the dimension D 1 associated with the time series under test and the mean value of the maximum Lyapunov exponent
Figure BDA0003185865820000162
The absolute value of the difference with the maximum Lyapunov exponent L 1 of the time series to be tested. if satisfied
Figure BDA0003185865820000163
and
Figure BDA0003185865820000164
It can be determined that the ECG data to be measured belongs to TWA data and an alert is made, so as to achieve the purpose of early warning of sudden cardiac death.

参考图8,图8是本发明另一个实施例提供的混沌检测T波电交替的心源性猝死预警系统的结构图。Referring to FIG. 8 , FIG. 8 is a structural diagram of a sudden cardiac death early warning system for chaotic detection of T wave electrical alternation provided by another embodiment of the present invention.

本发明还提供了一种混沌检测T波电交替的心源性猝死预警系统,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的混沌检测T波电交替的心源性猝死预警方法。混沌检测T波电交替的心源性猝死预警系统应用了如第一方面所述的混沌检测T波电交替的心源性猝死预警方法,能够寻找对TWA检测可行性较高的混沌特征,对TWA进行有效检测,对心源性猝死做到较好地预警。The present invention also provides a sudden cardiac death early warning system for chaotic detection of T wave electrical alternation, comprising: a memory, a processor and a computer program stored in the memory and running on the processor, the processor executing the The computer program realizes the above-mentioned sudden cardiac death early warning method of chaotic detection of T wave electrical alternation. The early warning system for sudden cardiac death with chaotic detection of T wave electrical alternation applies the sudden cardiac death early warning method for chaotic detection of T wave electrical alternation as described in the first aspect, which can find chaotic features with high feasibility for TWA detection. TWA can perform effective detection and better early warning of sudden cardiac death.

此外,本发明的一个实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个控制处理器执行,例如,控制处理器能够执行图1中的方法步骤S110至步骤S160。In addition, an embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions, the computer-executable instructions being executed by one or more control processors, eg, controlling The processor can execute the method steps S110 to S160 in FIG. 1 .

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data flexible, removable and non-removable media. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .

以上是对本发明的较佳实施进行了具体说明,但本发明并不局限于上述实施方式,熟悉本领域的技术人员在不违背本发明精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本发明权利要求所限定的范围内。The preferred implementation of the present invention has been specifically described above, but the present invention is not limited to the above-mentioned embodiments. Those skilled in the art can also make various equivalent deformations or replacements on the premise of not violating the spirit of the present invention. These Equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.

Claims (8)

1.一种混沌检测T波电交替的心源性猝死预警系统,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如下步骤:1. a chaotic detection T-wave electrical alternation of a sudden cardiac death early warning system, comprising: memory, a processor and a computer program that is stored on the memory and can be run on the processor, it is characterized in that, the processor executes all When the computer program is described, the following steps are implemented: 从人体体表心电图中获取心电数据;Obtain ECG data from human body surface ECG; 对所述心电数据进行去干扰噪声;performing noise removal on the ECG data; 对所述心电数据的T波电交替数据使用混沌检测法计算得到所述心电数据的关联维数D1和所述心电数据的最大Lyapunov指数L1Using the chaos detection method to calculate the T wave electrical alternation data of the ECG data to obtain the correlation dimension D 1 of the ECG data and the maximum Lyapunov exponent L 1 of the ECG data; 获取历史TWA患者的关联维数D和最大Lyapunov指数L,并基于关联维数D计算关联维数的平均值
Figure FDA0003750243200000011
基于最大Lyapunov指数L计算最大Lyapunov指数的平均值
Figure FDA0003750243200000012
Obtain the association dimension D and the maximum Lyapunov exponent L of the historical TWA patients, and calculate the average value of the association dimension based on the association dimension D
Figure FDA0003750243200000011
Calculate the mean of the largest Lyapunov exponent based on the largest Lyapunov exponent L
Figure FDA0003750243200000012
基于关联维数的平均值
Figure FDA0003750243200000013
和最大Lyapunov指数的平均值
Figure FDA0003750243200000014
计算得到第一误差ε1和第二误差ε2;其中:
Average based on correlation dimension
Figure FDA0003750243200000013
and the mean of the largest Lyapunov exponent
Figure FDA0003750243200000014
The first error ε 1 and the second error ε 2 are obtained by calculation; wherein:
Figure FDA0003750243200000015
Figure FDA0003750243200000015
Figure FDA0003750243200000016
Figure FDA0003750243200000016
其中,D′表示历史TWA患者的关联维数D与关联维数的平均值
Figure FDA0003750243200000017
之间的差值最大的关联维数;L′表示历史TWA患者的最大Lyapunov指数L与最大Lyapunov指数的平均值
Figure FDA0003750243200000018
之间的差值最大的最大Lyapunov指数;|.|表示绝对值函数;
Among them, D' represents the average of the association dimension D and the association dimension of the historical TWA patients
Figure FDA0003750243200000017
The relationship dimension with the largest difference between
Figure FDA0003750243200000018
The largest Lyapunov exponent with the largest difference between; |.| represents the absolute value function;
计算
Figure FDA0003750243200000019
Figure FDA00037502432000000110
Figure FDA00037502432000000111
Figure FDA00037502432000000112
则判定所述心电数据属于TWA,并发出心源性猝死预警。
calculate
Figure FDA0003750243200000019
and
Figure FDA00037502432000000110
when
Figure FDA00037502432000000111
and
Figure FDA00037502432000000112
Then, it is determined that the ECG data belongs to TWA, and a sudden cardiac death warning is issued.
2.根据权利要求1所述的混沌检测T波电交替的心源性猝死预警系统,其特征在于,在所述对所述心电数据进行预处理去干扰噪声之前,还包括步骤:2. The sudden cardiac death early warning system of chaotic detection T wave electrical alternation according to claim 1, is characterized in that, before the described electrocardiographic data is preprocessed to remove interference noise, it also comprises the step: 选择所述心电数据的导联和采样时刻点;Select the lead and sampling time point of the ECG data; 对所述心电数据做可视化处理。Visualize the ECG data. 3.根据权利要求1所述的混沌检测T波电交替的心源性猝死预警系统,其特征在于,所述对所述心电数据进行预处理去干扰噪声,包括步骤;3. The sudden cardiac death early warning system for chaotic detection of T-wave electrical alternation according to claim 1, characterized in that, the described electrocardiographic data is preprocessed to remove interference noise, comprising steps; 对所述心电数据进行预处理去除肌电干扰、工频干扰和矫正基线漂移。The ECG data are preprocessed to remove EMG interference, power frequency interference and to correct baseline drift. 4.根据权利要求3所述的混沌检测T波电交替的心源性猝死预警系统,其特征在于,所述对所述心电数据进行预处理去除肌电干扰、工频干扰和基线漂移,包括步骤;4. The early warning system of sudden cardiac death according to claim 3, characterized in that, described electrocardiographic data is preprocessed to remove electromyographic interference, power frequency interference and baseline drift, includes steps; 使用巴特沃斯低通滤波器滤除所述肌电干扰;filtering out the EMG interference using a Butterworth low-pass filter; 使用50Hz或60Hz的工频陷波器滤除所述工频干扰;Use a 50Hz or 60Hz power frequency notch filter to filter out the power frequency interference; 使用中值滤波Kaiser窗函数法对所述基线漂移进行矫正。The baseline drift was corrected using the median filtered Kaiser window method. 5.根据权利要求1所述的混沌检测T波电交替的心源性猝死预警系统,其特征在于,在所述对所述心电数据的T波电交替数据使用混沌检测法计算得到所述心电数据的关联维数D1和所述心电数据的最大Lyapunov指数L1之前,还包括步骤:5. The early warning system of sudden cardiac death for chaotic detection of T-wave electrical alternation according to claim 1, characterized in that, in the T-wave electrical alternation data of the ECG data, the chaotic detection method is used to calculate and obtain the described Before the correlation dimension D 1 of the electrocardiographic data and the maximum Lyapunov exponent L 1 of the electrocardiographic data, further steps are included: 选择功率谱,对时间序列进行相空间重构。Select the power spectrum to perform phase-space reconstruction of the time series. 6.根据权利要求5所述的混沌检测T波电交替的心源性猝死预警系统,其特征在于,所述对所述心电数据的T波电交替数据使用混沌检测法计算得到所述心电数据的关联维数D1,包括步骤:6 . The early warning system of sudden cardiac death for chaotic detection of T-wave electrical alternation according to claim 5 , wherein, the T-wave electrical alternation data of the ECG data is calculated to obtain the cardiac arrest by using a chaotic detection method. Correlation dimension D 1 of electrical data, including steps: 从相空间重构中选取第一空间向量和第二空间向量,根据所述第一空间向量和所述第二空间向量计算得到关联积分,根据所述关联积分计算得到所述心电数据的关联维数D1Select the first space vector and the second space vector from the phase space reconstruction, calculate the correlation integral according to the first space vector and the second space vector, and calculate the correlation of the ECG data according to the correlation integral dimension D 1 . 7.根据权利要求1所述的混沌检测T波电交替的心源性猝死预警系统,其特征在于,在所述计算
Figure FDA0003750243200000021
Figure FDA0003750243200000022
之后,还包括步骤:
7. The early warning system for sudden cardiac death with chaotic detection of T wave electrical alternation according to claim 1, characterized in that, in the calculation
Figure FDA0003750243200000021
and
Figure FDA0003750243200000022
After that, also include steps:
Figure FDA0003750243200000023
Figure FDA0003750243200000024
结束进程。
when
Figure FDA0003750243200000023
and
Figure FDA0003750243200000024
end process.
8.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如下步骤:8. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to perform the following steps: 从人体体表心电图中获取心电数据;Obtain ECG data from human body surface ECG; 对所述心电数据进行去干扰噪声;performing noise removal on the ECG data; 对所述心电数据的T波电交替数据使用混沌检测法计算得到所述心电数据的关联维数D1和所述心电数据的最大Lyapunov指数L1Using the chaos detection method to calculate the T wave electrical alternation data of the ECG data to obtain the correlation dimension D 1 of the ECG data and the maximum Lyapunov exponent L 1 of the ECG data; 获取历史TWA患者的关联维数D和最大Lyapunov指数L,并基于关联维数D计算关联维数的平均值
Figure FDA0003750243200000031
基于最大Lyapunov指数L计算最大Lyapunov指数的平均值
Figure FDA0003750243200000032
Obtain the association dimension D and the maximum Lyapunov exponent L of the historical TWA patients, and calculate the average value of the association dimension based on the association dimension D
Figure FDA0003750243200000031
Calculate the mean of the largest Lyapunov exponent based on the largest Lyapunov exponent L
Figure FDA0003750243200000032
基于关联维数的平均值
Figure FDA0003750243200000033
和最大Lyapunov指数的平均值
Figure FDA0003750243200000034
计算得到第一误差ε1和第二误差ε2;其中:
Average based on correlation dimension
Figure FDA0003750243200000033
and the mean of the largest Lyapunov exponent
Figure FDA0003750243200000034
The first error ε 1 and the second error ε 2 are obtained by calculation; wherein:
Figure FDA0003750243200000035
Figure FDA0003750243200000035
Figure FDA0003750243200000036
Figure FDA0003750243200000036
其中,D′表示历史TWA患者的关联维数D与关联维数的平均值
Figure FDA0003750243200000037
之间的差值最大的关联维数;L′表示历史TWA患者的最大Lyapunov指数L与最大Lyapunov指数的平均值
Figure FDA0003750243200000038
之间的差值最大的最大Lyapunov指数;|.|表示绝对值函数;
Among them, D' represents the average of the association dimension D and the association dimension of the historical TWA patients
Figure FDA0003750243200000037
The relationship dimension with the largest difference between
Figure FDA0003750243200000038
The largest Lyapunov exponent with the largest difference between; |.| represents the absolute value function;
计算
Figure FDA0003750243200000039
Figure FDA00037502432000000310
Figure FDA00037502432000000311
Figure FDA00037502432000000312
则判定所述心电数据属于TWA,并发出心源性猝死预警。
calculate
Figure FDA0003750243200000039
and
Figure FDA00037502432000000310
when
Figure FDA00037502432000000311
and
Figure FDA00037502432000000312
Then, it is determined that the ECG data belongs to TWA, and a sudden cardiac death warning is issued.
CN202110861353.0A 2021-07-29 2021-07-29 Heart-derived sudden death early warning method for chaotically detecting T-wave electricity alternation Active CN113633293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110861353.0A CN113633293B (en) 2021-07-29 2021-07-29 Heart-derived sudden death early warning method for chaotically detecting T-wave electricity alternation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110861353.0A CN113633293B (en) 2021-07-29 2021-07-29 Heart-derived sudden death early warning method for chaotically detecting T-wave electricity alternation

Publications (2)

Publication Number Publication Date
CN113633293A CN113633293A (en) 2021-11-12
CN113633293B true CN113633293B (en) 2022-09-16

Family

ID=78418819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110861353.0A Active CN113633293B (en) 2021-07-29 2021-07-29 Heart-derived sudden death early warning method for chaotically detecting T-wave electricity alternation

Country Status (1)

Country Link
CN (1) CN113633293B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116226745B (en) * 2023-05-09 2023-08-11 海阳市辛安镇畜牧兽医站 Hatching abnormality alarm method based on environment data between hatching

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103006207A (en) * 2013-01-11 2013-04-03 山东师范大学 Electrocardiosignal analysis method of T wave alternans scatter diagram method based on morphology
US9408543B1 (en) * 2012-08-17 2016-08-09 Analytics For Life Non-invasive method and system for characterizing cardiovascular systems for all-cause mortality and sudden cardiac death risk
CN107212881A (en) * 2017-05-26 2017-09-29 广东工业大学 A kind of T ripples electrical alternations detection method

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5842997A (en) * 1991-02-20 1998-12-01 Georgetown University Non-invasive, dynamic tracking of cardiac vulnerability by simultaneous analysis of heart rate variability and T-wave alternans
US20090177102A1 (en) * 2008-01-07 2009-07-09 The General Electric Company System, method and device for predicting sudden cardiac death risk
US9585589B2 (en) * 2009-12-31 2017-03-07 Cerner Innovation, Inc. Computerized systems and methods for stability-theoretic prediction and prevention of sudden cardiac death
CN101807915B (en) * 2010-04-15 2012-05-30 复旦大学 Phase frequency detector and charge pump circuits applying to integral frequency division phase-locked loop
CN102512157B (en) * 2011-12-15 2014-08-20 重庆大学 Dynamic electrocardiogram T wave alternate quantitative analysis method based on models
US9968265B2 (en) * 2012-08-17 2018-05-15 Analytics For Life Method and system for characterizing cardiovascular systems from single channel data
CN107408144B (en) * 2014-11-14 2021-07-06 Zoll医疗公司 Medical Aura Estimates
CN106691410B (en) * 2016-12-13 2024-01-16 佛山科学技术学院 Pulse and red blood cell concentration monitor and method
US11432756B2 (en) * 2018-10-24 2022-09-06 Chi-Hua Foundation Multi-channel real-time cardiovascular performance evaluation system and method cardiovascular performance evaluation system and method
CN109938695A (en) * 2019-03-08 2019-06-28 度特斯(大连)实业有限公司 A kind of human body diseases Risk Forecast Method and equipment based on heterogeneous degree index
CN110299205A (en) * 2019-07-23 2019-10-01 上海图灵医疗科技有限公司 Biomedicine signals characteristic processing and evaluating method, device and application based on artificial intelligence
CN112494026B (en) * 2020-09-07 2023-08-29 南京云思创智信息科技有限公司 Non-contact-based remote sudden cardiac death early warning method
CN112545528B (en) * 2020-12-28 2022-07-12 北京理工大学 ECG T-wave feature extraction method based on fractional Fourier transform and tensor decomposition
CN112617851A (en) * 2021-01-06 2021-04-09 北京航空航天大学 Mental load classification method and system based on electrocardiosignals

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9408543B1 (en) * 2012-08-17 2016-08-09 Analytics For Life Non-invasive method and system for characterizing cardiovascular systems for all-cause mortality and sudden cardiac death risk
CN103006207A (en) * 2013-01-11 2013-04-03 山东师范大学 Electrocardiosignal analysis method of T wave alternans scatter diagram method based on morphology
CN107212881A (en) * 2017-05-26 2017-09-29 广东工业大学 A kind of T ripples electrical alternations detection method

Also Published As

Publication number Publication date
CN113633293A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN103549950B (en) Improved difference threshold detection algorithm for mobile ECG (electrocardiogram) monitoring
Oweis et al. QRS detection and heart rate variability analysis: A survey
Kathirvel et al. An efficient R-peak detection based on new nonlinear transformation and first-order Gaussian differentiator
CN107788969B (en) Automatic detection method for QRS wave group in electrocardiosignal
Rooijakkers et al. Low-complexity R-peak detection for ambulatory fetal monitoring
CN103083013B (en) Electrocardio signal QRS complex wave detection method based on morphology and wavelet transform
Nallathambi et al. Integrate and fire pulse train automaton for QRS detection
Raj et al. Development of robust, fast and efficient QRS complex detector: a methodological review
Kshirsagar et al. Classification of ECG-signals using artificial neural networks
Mahesh et al. ECG arrhythmia classification based on logistic model tree
Talatov et al. Algorithmic and software analysis and processing of ECG signals
Shen et al. Atrial fibrillation detection algorithm based on manual extraction features and automatic extraction features
Sasikala et al. Extraction of P wave and T wave in Electrocardiogram using Wavelet Transform
CN113633293B (en) Heart-derived sudden death early warning method for chaotically detecting T-wave electricity alternation
Mondal et al. Fast CNN Based Electrocardiogram Signal Quality Assessment Using Fourier Magnitude Spectrum for Resource-Constrained ECG Diagnosis Devices
Sahoo et al. Feature extraction of ECG signal based on wavelet transform for arrhythmia detection
Barmase et al. Wavelet transform-based analysis of QRS complex in ECG signals
CN114886403A (en) Malignant arrhythmia identification and prediction system based on pulse main wave interval
Murthy et al. ECG signal denoising and ischemic event feature extraction using Daubechies wavelets
CN113974647B (en) System and method for reconstructing risk factors of sudden cardiac death
Zhao et al. [Retracted] An Early Warning of Atrial Fibrillation Based on Short‐Time ECG Signals
khiled AL-Jibory et al. Preparing of ECG Dataset for Biometric ID Identification with Creative Techniques
Sahay et al. A survey approach on ECG feature extraction techniques
Yang et al. ECG Signal Processing and Automatic Classification Algorithms
Elmansouri et al. New Electrocardiogram signal analysis in a research laboratory using LabVIEW

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
CP03 Change of name, title or address

Address after: No.33 Guangyun Road, Shishan town, Nanhai District, Foshan City, Guangdong Province

Patentee after: Foshan University

Country or region after: China

Address before: No.33 Guangyun Road, Shishan town, Nanhai District, Foshan City, Guangdong Province

Patentee before: FOSHAN University

Country or region before: China

CP03 Change of name, title or address