[go: up one dir, main page]

CN118787360A - An ECG signal classification method based on ECG spatiotemporal feature learning - Google Patents

An ECG signal classification method based on ECG spatiotemporal feature learning Download PDF

Info

Publication number
CN118787360A
CN118787360A CN202410819438.6A CN202410819438A CN118787360A CN 118787360 A CN118787360 A CN 118787360A CN 202410819438 A CN202410819438 A CN 202410819438A CN 118787360 A CN118787360 A CN 118787360A
Authority
CN
China
Prior art keywords
layer
nonlinear
ecg
complexity
space
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.)
Granted
Application number
CN202410819438.6A
Other languages
Chinese (zh)
Other versions
CN118787360B (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.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN202410819438.6A priority Critical patent/CN118787360B/en
Publication of CN118787360A publication Critical patent/CN118787360A/en
Application granted granted Critical
Publication of CN118787360B publication Critical patent/CN118787360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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]
    • 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
    • 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
    • A61B5/7207Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal of noise induced by motion artifacts
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • G06F18/253Fusion techniques of extracted features
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/048Activation functions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Biophysics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Biomedical Technology (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Public Health (AREA)
  • Animal Behavior & Ethology (AREA)
  • Pathology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Veterinary Medicine (AREA)
  • Evolutionary Biology (AREA)
  • Surgery (AREA)
  • Medical Informatics (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Cardiology (AREA)
  • Psychiatry (AREA)
  • Physiology (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

本发明公开了一种基于心电时空特征学习的心电信号分类方法。本发明包括:采集人体体表12导联心电信号,将心电信号划分为训练集和测试集,重构信号相空间,计算相空间中信号轨迹点到空间原点的欧氏距离作为非线性心电动态参数;提取信号相空间欧氏距离参数的深层次非线性心电动力学特征,并计算非线性心电动力学特征的时间复杂度和空间复杂度;基于时间复杂度和空间复杂度选择相应的分类器,将训练集的非线性心电动力学特征输入至选择的分类器训练,测试集的非线性心电动力学特征输入至训练好的网络进行识别,完成心电信号的分类。本发明从体表心电信号提取特征,由网络自动进行特征学习和识别,不用进行复杂的图像处理过程,操作简单识别精度高。

The present invention discloses an electrocardiogram signal classification method based on electrocardiogram spatiotemporal feature learning. The present invention comprises: collecting 12-lead electrocardiogram signals on the human body surface, dividing the electrocardiogram signals into a training set and a test set, reconstructing the signal phase space, calculating the Euclidean distance from the signal trajectory point to the spatial origin in the phase space as a nonlinear electrocardiogram dynamic parameter; extracting the deep nonlinear electrocardiogram dynamic characteristics of the Euclidean distance parameter in the signal phase space, and calculating the time complexity and space complexity of the nonlinear electrocardiogram dynamic characteristics; selecting a corresponding classifier based on the time complexity and space complexity, inputting the nonlinear electrocardiogram dynamic characteristics of the training set into the selected classifier for training, and inputting the nonlinear electrocardiogram dynamic characteristics of the test set into the trained network for recognition, and completing the classification of the electrocardiogram signal. The present invention extracts features from the body surface electrocardiogram signals, and the network automatically performs feature learning and recognition, without the need for complex image processing, and has simple operation and high recognition accuracy.

Description

一种基于心电时空特征学习的心电信号分类方法An ECG signal classification method based on ECG spatiotemporal feature learning

技术领域Technical Field

本发明属于模式识别技术领域,具体涉及一种基于心电时空特征学习的心电信号分类方法。The present invention belongs to the technical field of pattern recognition, and in particular relates to an electrocardiogram signal classification method based on electrocardiogram spatiotemporal feature learning.

背景技术Background Art

心电信号(ECG)检测是医疗诊断中的一项关键技术,用于监测和分析心电活动。虽然智能心电检测已经取得了很多进展,但这些工作大多集中在提取心电信号的静态或统计特征上,将心电模式的分类问题转化为静态模式的分类问题。由于静态特征有限,不足以全面描述心电信号的时间性质。而如果想要全面描述心电信号的时间性质,一种可能的方法是提取心电信号的非线性动态特征,并建立一个有效的、动态的心电模式框架。然而,如何提取和表示心电过程中的非线性动力学特征仍然是一个具有挑战性的问题,如何将提取的非线性动力学特征重用于心电分类识别也是一个关键问题。Electrocardiogram (ECG) detection is a key technology in medical diagnosis, which is used to monitor and analyze the ECG activity. Although a lot of progress has been made in intelligent ECG detection, most of these works focus on extracting static or statistical features of ECG signals, converting the classification problem of ECG patterns into a classification problem of static patterns. Since static features are limited, they are not enough to fully describe the temporal properties of ECG signals. If you want to fully describe the temporal properties of ECG signals, one possible approach is to extract the nonlinear dynamic features of ECG signals and establish an effective and dynamic ECG pattern framework. However, how to extract and represent the nonlinear dynamic features in the ECG process is still a challenging problem, and how to reuse the extracted nonlinear dynamic features for ECG classification and recognition is also a key issue.

发明内容Summary of the invention

本发明的目的是克服现有技术存在的问题,通过提取心电信号的非线性动态特征,提供一种更为简洁准确的,基于非线性心电动力学指标的心电信号分类方法。The purpose of the present invention is to overcome the problems existing in the prior art and to provide a more concise and accurate ECG signal classification method based on nonlinear electrocardiographic dynamics indicators by extracting the nonlinear dynamic characteristics of ECG signals.

为解决上述问题,本发明的具体技术方案通过如下步骤实现:To solve the above problems, the specific technical solution of the present invention is implemented through the following steps:

步骤1:采集人体体表12导联的心电信号,将心电信号划分为训练集和测试集,重构信号相空间,并计算相空间中信号轨迹点到空间原点的欧氏距离作为非线性心电动态参数。Step 1: Collect 12-lead ECG signals from the human body surface, divide the ECG signals into training set and test set, reconstruct the signal phase space, and calculate the Euclidean distance from the signal trajectory point to the space origin in the phase space as the nonlinear ECG dynamic parameter.

步骤2:提取信号相空间欧氏距离参数的深层次非线性心电动力学特征,并计算非线性心电动力学特征的时间复杂度和空间复杂度。Step 2: Extract the deep nonlinear electrocardiodynamic features of the Euclidean distance parameters in the signal phase space, and calculate the time complexity and space complexity of the nonlinear electrocardiodynamic features.

步骤3:基于时间复杂度和空间复杂度选择相应的分类器,将训练集的非线性心电动力学特征输入至选择的分类器训练,测试集的非线性心电动力学特征输入至训练好的网络进行识别,完成心电信号的分类。Step 3: Select the corresponding classifier based on time complexity and space complexity, input the nonlinear electrocardiodynamic features of the training set into the selected classifier for training, and input the nonlinear electrocardiodynamic features of the test set into the trained network for recognition to complete the classification of ECG signals.

优选地,所述步骤1,具体包括以下过程:Preferably, the step 1 specifically includes the following process:

(1)对心电信号去除噪声和伪影,划分出训练集和测试集。(1) Remove noise and artifacts from ECG signals and divide them into training set and test set.

(2)重构12导联心电信号的相空间:(2) Reconstruct the phase space of 12-lead ECG signals:

其中,是相空间中第i导联第j个坐标点的信息,它由若干个信息点组成,而τ为时延,d表示相空间的嵌入维数。in, is the information of the jth coordinate point of the ith lead in the phase space, which is given by It is composed of several information points, τ is the time delay, and d represents the embedding dimension of the phase space.

(3)计算相空间中信号轨迹点到空间原点的欧氏距离作为非线性心电动态参数:(3) Calculate the Euclidean distance from the signal trajectory point to the origin of the space in the phase space as the nonlinear electrocardiographic dynamic parameter:

其中,是相空间中第i导联第j个坐标向量距离空间原点的欧式距离。in, is the Euclidean distance from the jth coordinate vector of the ith lead in the phase space to the origin of the space.

优选地,所述步骤2,主要包括以下过程:Preferably, the step 2 mainly includes the following process:

(1)建立非线性心电动力学模型的径向基函数神经网络,将训练集和测试集的非线性心电动态参数输入到非线性心电动力学模型的径向基函数神经网络中,提取以常值神经网络权值矩阵存储的非线性心电动力学特征;(1) Establishing a radial basis function neural network of a nonlinear electrocardiographic dynamics model, inputting the nonlinear electrocardiographic dynamics parameters of the training set and the test set into the radial basis function neural network of the nonlinear electrocardiographic dynamics model, and extracting the nonlinear electrocardiographic dynamics features stored in a constant value neural network weight matrix;

(2)计算非线性心电动力学特征每一维度的时间复杂度和空间复杂度,得到非线性心电动力学总的时间复杂度和空间复杂度。(2) Calculate the time complexity and space complexity of each dimension of the nonlinear electrocardiodynamic characteristics to obtain the total time complexity and space complexity of the nonlinear electrocardiodynamics.

优选地,非线性心电动力学特征,具体计算方式为下式:Preferably, the nonlinear electrocardiographic dynamics characteristic is specifically calculated as follows:

其中,表示第i导联的非线性心电动力学模型,x表示输入信号的状态变量,p表示系统参数。是高斯径向基函数RBF神经网络根据输入轨迹在网络神经元不同距离程度下学习到的收敛权值均值,A是对角矩阵,对角矩阵内部ai是增益参数,表示高斯径向基函数RBF神经网络自动学习到的权值,最后会趋于收敛;S(x)代表高斯径向基函数,里面包含了神经元数量以及位置分布情况等信息;εi代表学习误差;构成了通过RBF神经网络不断对局部非线性心电动态参数轨迹的内在非线性动力学辨识得到的非线性心电动力学特征。in, represents the nonlinear electrocardiographic dynamics model of the i-th lead, x represents the state variable of the input signal, and p represents the system parameter. It is a Gaussian radial basis function RBF neural network According to the input trajectory, the convergence weight mean is learned at different distances from the network neurons. A is a diagonal matrix, and the a i inside the diagonal matrix is the gain parameter. It represents the weights automatically learned by the Gaussian radial basis function RBF neural network, which will eventually converge; S(x) represents the Gaussian radial basis function, which contains information such as the number of neurons and their position distribution; ε i represents the learning error; It constitutes the nonlinear electrocardiographic dynamic characteristics obtained by continuously identifying the intrinsic nonlinear dynamics of the local nonlinear electrocardiographic dynamic parameter trajectory through the RBF neural network.

优选地,对于非线性心电动力学特征每一维度的时间复杂度和空间复杂度,具体计算方式如下:Preferably, the time complexity and space complexity of each dimension of the nonlinear electrocardiodynamic characteristics are specifically calculated as follows:

其中,TCk表示第k个非线性心电动态参数ED序列的时间复杂度,其计算公式为下式:Among them, TC k represents the time complexity of the kth nonlinear electrocardiographic dynamic parameter ED sequence, and its calculation formula is as follows:

其中,lk是第k个新序列中不同子串的数量,Ok(n)表示复杂度计数,n表示新序列的长度;其计算流程为:Where l k is the number of different substrings in the kth new sequence, O k (n) represents the complexity count, and n represents the length of the new sequence; the calculation process is as follows:

(1)取非线性心电动力学特征x的极值点进行升序排序,并转化为新的长度为l的序列F(j′);(1) Take the extreme points of the nonlinear electrocardiodynamic feature x, sort them in ascending order, and transform them into a new sequence F(j′) of length l;

(2)创建符号集合γ={1,…,t},对非线性心电动力学特征的极值点进行转换,得到新的符号序列y(i'):(2) Create a symbol set γ = {1,…,t}, transform the extreme points of the nonlinear electrocardiodynamic characteristics, and obtain a new symbol sequence y(i'):

(3)将符号序列y(i')分解为一系列子串,前子串记录为a={yk(1),yk(2),…,yk(m'-1)},后子串记录为b={yk(m')},则ab={yk(1),yk(2),…,,yk(m'-1),yk(m')},表示剔除ab最后一个元素的子串,即如果b是的子串,更新b={yk(m'),yk(m'+1)},否则更新a={yk(1),yk(2),…,yk(m')},更新b={yk(m'+1)},同时复杂度计数Ok(n)加1;(3) Decompose the symbol sequence y(i') into a series of substrings. The first substring is recorded as a = {y k (1), y k (2), ..., y k (m'-1)}, and the second substring is recorded as b = {y k (m')}. Then ab = {y k (1), y k (2), ..., y k (m'-1), y k (m')}. It means to remove the substring of the last element of ab, that is If b is If the substring is not a string, update b = {y k (m'), y k (m'+1)}, otherwise update a = {y k (1), y k (2), ..., y k (m')}, update b = {y k (m'+1)}, and increase the complexity count O k (n) by 1;

Sk表示第k个非线性心电动态参数ED序列的空间复杂度,其计算公式为下式:S k represents the spatial complexity of the kth nonlinear electrocardiographic dynamic parameter ED sequence, and its calculation formula is as follows:

其中,l'k是第k个新序列中不同子串的数量,Ok(m)表示复杂度计数,m表示新序列的长度;其计算流程为:Where l' k is the number of different substrings in the kth new sequence, Ok (m) represents the complexity count, and m represents the length of the new sequence; the calculation process is as follows:

(1)计算非线性心电动力学特征x每个点的方向导数,得到反映非线性心电动力学特征x每个点的空间变化速率序列r(i)。(1) Calculate the directional derivative of each point of the nonlinear electrocardiodynamic characteristic x to obtain a spatial rate sequence r(i) reflecting each point of the nonlinear electrocardiodynamic characteristic x.

(2)将r(i)分解为一系列子串,其复杂度计算Ok(m)同时间复杂度计数Ok(n)的规则一致。(2) Decompose r(i) into a series of substrings. The complexity calculation O k (m) is consistent with the rule of time complexity counting O k (n).

优选地,所述步骤3中,选择的方法是:Preferably, in step 3, the method of selection is:

当时间复杂度TC远远大于空间复杂度SC时,即TC>>SC,选择空间占优分类模型进行分类识别;When the time complexity TC is much greater than the space complexity SC, that is, TC>>SC, the space-dominant classification model is selected for classification and recognition;

当时间复杂度TC远远小于空间复杂度SC时,即TC<<SC,选择时间占优分类模型进行分类识别;When the time complexity TC is much smaller than the space complexity SC, that is, TC<<SC, the time-dominant classification model is selected for classification and recognition;

当时间复杂度TC和空间复杂度SC满足TC>SC且时,选择时间-空间级联模型进行分类识别。When the time complexity TC and space complexity SC satisfy TC>SC and When , the time-space cascade model is selected for classification and recognition.

当时间复杂度TC和空间复杂度SC满足SC>TC且时,选择空间-时间级联模型进行分类识别。When the time complexity TC and space complexity SC satisfy SC>TC and When , the space-time cascade model is selected for classification and recognition.

优选地,所述空间占优分类模型,具体结构如下:Preferably, the spatially dominant classification model has the following specific structure:

空间占优分类模型包括输入处理层、网络初始化层、密集连接层、全局平均池化层、全连接层,共计五层结构。The spatial dominance classification model includes an input processing layer, a network initialization layer, a dense connection layer, a global average pooling layer, and a fully connected layer, a total of five layers.

(1)第一层是输入处理层,针对12维度的非线性心电动力学特征,具体输入方式为下式:(1) The first layer is the input processing layer. For the 12-dimensional nonlinear electrocardiographic dynamics characteristics, the specific input method is as follows:

I1=C[r(x1),r(x2),...,r(x12)]I 1 =C[r(x 1 ),r(x 2 ),...,r(x 12 )]

其中x1,x2,...,x12是非线性心电动力学特征,r表示将特征执行维度重构操作,C表示对重构后的特征矩阵进行堆叠,堆叠后的三维特征I1作为空间占优分类模型的输入。Where x 1 , x 2 , ..., x 12 are nonlinear electrocardiodynamic features, r represents the dimension reconstruction operation of the features, C represents the stacking of the reconstructed feature matrix, and the stacked three-dimensional feature I 1 is used as the input of the space-dominant classification model.

(2)第二层是网络初始化层,包括64个3×3×3卷积核组成的三维卷积层;(2) The second layer is the network initialization layer, which includes a three-dimensional convolution layer composed of 64 3×3×3 convolution kernels;

(3)第三层为密集连接层,主要由3个密集模块和2个转化层交替组成。其中3个密集模块分别由3、4、6个密集层组成,密集层由核大小为3×3×3的三维卷积层、非线性激活层、随机失活层依次堆叠而成,密集层之间采用密集连接方式;转化层主要由核大小为1×1×1的三维卷积层以及核大小为1×2×2最大池化层组成;(3) The third layer is a dense connection layer, which is mainly composed of 3 dense modules and 2 transformation layers. The 3 dense modules are composed of 3, 4, and 6 dense layers respectively. The dense layers are composed of a 3D convolution layer with a kernel size of 3×3×3, a nonlinear activation layer, and a random dropout layer stacked in sequence. The dense layers are densely connected. The transformation layer is mainly composed of a 3D convolution layer with a kernel size of 1×1×1 and a maximum pooling layer with a kernel size of 1×2×2.

(4)第四层为全局平均池化层,由核大小为12×8×16的平均池化层构成;(4) The fourth layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 12×8×16;

(5)第五层为全连接层,完成对心电信号的分类。(5) The fifth layer is the fully connected layer, which completes the classification of ECG signals.

优选地,所述时间占优分类模型,具体结构如下:Preferably, the time-dominant classification model has the following specific structure:

时间占优分类模型包括网络初始层、残差连接层、全局平均池化层、特征融合层、全连接层,共计五层结构。The time-dominant classification model includes the network initial layer, residual connection layer, global average pooling layer, feature fusion layer, and fully connected layer, a total of five layers.

(1)第一层为网络初始层,由64个核大小为7的卷积核组成的一维卷积层、核大小为3的一维最大池化层组成;(1) The first layer is the initial layer of the network, which consists of a one-dimensional convolution layer composed of 64 convolution kernels with a kernel size of 7 and a one-dimensional maximum pooling layer with a kernel size of 3;

(2)第二层为残差连接层,包括四个残差模块,四个残差模块分别由3、4、6、3个残差层组成,共计16层残差层,每个残差层主要由一维卷积层,归一化层,非线性激活层依次组成,层与层之间采用残差连接;(2) The second layer is the residual connection layer, which includes four residual modules. The four residual modules are composed of 3, 4, 6, and 3 residual layers respectively, totaling 16 residual layers. Each residual layer is mainly composed of a one-dimensional convolution layer, a normalization layer, and a nonlinear activation layer in sequence. Residual connections are used between layers.

(3)第三层为全局平均池化层,由核大小为64的平均池化层组成;(3) The third layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 64;

(4)第四层为特征融合层,具体融合方式为下式:(4) The fourth layer is the feature fusion layer, and the specific fusion method is as follows:

I2=A[y1,y2,...,y12]I 2 =A[y 1 ,y 2 ,...,y 12 ]

其中,y1,y2,...,y12表示每个维度的非线性心电特征经过时间占优分类模型前三层后全局平均池化层输出的特征,A表示采用逐元素相加方式,12维度的时间特征通过特征融合后,变成一维时间特征;Among them, y 1 ,y 2 ,...,y 12 represent the features of the nonlinear ECG features of each dimension after the first three layers of the time-dominant classification model and the global average pooling layer outputs. A represents the element-by-element addition method. After feature fusion, the 12-dimensional time features become one-dimensional time features.

(5)第五层为全连接层,完成对心电信号的分类。(5) The fifth layer is the fully connected layer, which completes the classification of ECG signals.

优选地,所述时间-空间级联模型,具体结构如下:Preferably, the time-space cascade model has the following specific structure:

时间-空间级联模型包括网络初始层、残差连接层、全局平均池化层、特征融合层、空间初始化层、密集连接层、全局平均池化层、全连接层,共计八层结构。The time-space cascade model includes the network initial layer, residual connection layer, global average pooling layer, feature fusion layer, spatial initialization layer, dense connection layer, global average pooling layer, and fully connected layer, a total of eight layers.

(1)第一层为初始层,由64个核大小为7的卷积核组成的一维卷积层和核大小为3的一维最大池化层组成;(1) The first layer is the initial layer, which consists of a one-dimensional convolution layer composed of 64 convolution kernels with a kernel size of 7 and a one-dimensional maximum pooling layer with a kernel size of 3;

(2)第二层为残差连接层,包括四个残差模块,四个残差模块分别由3、4、6、3个残差层组成,共计16层残差层,每个残差层主要由一维卷积层,归一化层,非线性激活层依次组成,层与层之间采用残差连接;(2) The second layer is the residual connection layer, which includes four residual modules. The four residual modules are composed of 3, 4, 6, and 3 residual layers respectively, totaling 16 residual layers. Each residual layer is mainly composed of a one-dimensional convolution layer, a normalization layer, and a nonlinear activation layer in sequence. Residual connections are used between layers.

(3)第三层为全局平均池化层,由核大小为64的平均池化层组成;(3) The third layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 64;

(4)第四层为特征处理层,该层主要负责对输出的12个一维时间特征进行重构堆叠,具体计算方式为下式:(4) The fourth layer is the feature processing layer, which is mainly responsible for reconstructing and stacking the 12 one-dimensional time features output. The specific calculation method is as follows:

I3=C[r(y1),r(y2),...,r(y12)]I 3 =C[r(y 1 ),r(y 2 ),...,r(y 12 )]

其中,y1,y2,...,y12是非线性心电动力学特征经过前三层提取到的一维时间特征向量,r表示将一维时间特征向量执行维度重构操作,C表示对重构后的特征矩阵的深度进行堆叠,堆叠后的三维特征I3作为后续层的输入;Among them, y 1 ,y 2 ,...,y 12 are the one-dimensional time feature vectors extracted from the nonlinear electrocardiodynamic features through the first three layers, r represents the dimension reconstruction operation of the one-dimensional time feature vector, C represents the stacking of the depth of the reconstructed feature matrix, and the stacked three-dimensional feature I 3 is used as the input of the subsequent layer;

(5)第五层是空间初始化层,包括64个3×3×3卷积核组成的三维卷积层;(5) The fifth layer is the spatial initialization layer, which includes a three-dimensional convolution layer composed of 64 3×3×3 convolution kernels;

(6)第六层为密集连接层,主要由3个密集模块和2个转化层交替组成。其中3个密集模块分别由3、4、6个密集层组成,密集层由核大小为3×3×3的三维卷积层、非线性激活层、随机失活层依次堆叠而成,密集层之间采用密集连接方式;转化层主要由核大小为1×1×1的三维卷积层以及核大小为1×2×2最大池化层组成;(6) The sixth layer is a dense connection layer, which is mainly composed of 3 dense modules and 2 transformation layers. The 3 dense modules are composed of 3, 4, and 6 dense layers respectively. The dense layers are composed of a 3D convolution layer with a kernel size of 3×3×3, a nonlinear activation layer, and a random inactivation layer stacked in sequence. The dense layers are densely connected; the transformation layer is mainly composed of a 3D convolution layer with a kernel size of 1×1×1 and a maximum pooling layer with a kernel size of 1×2×2.

(7)第七层为全局平均池化层,由核大小为12×8×16的平均池化层构成;(7) The seventh layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 12×8×16;

(8)第八层为全连接层,完成对心电信号的分类;(8) The eighth layer is a fully connected layer, which completes the classification of ECG signals;

优选地,所述空间-时间级联模型,具体结构如下:Preferably, the space-time cascade model has the following specific structure:

空间-时间级联模型包括网络初始层、残差连接层、全局平均池化层、特征融合层、空间初始化层、密集连接层、全局平均池化层、全连接层,共计八层结构。The spatial-temporal cascade model includes the network initial layer, residual connection layer, global average pooling layer, feature fusion layer, spatial initialization layer, dense connection layer, global average pooling layer, and fully connected layer, a total of eight layers.

(1)第一层为输入处理层,针对12维度的非线性心电动力学特征,具体处理方式为下式:(1) The first layer is the input processing layer. The specific processing method for the 12-dimensional nonlinear electrocardiographic dynamics characteristics is as follows:

I4=C[r(x1),r(x2),...,r(x12)]I 4 =C[r(x 1 ),r(x 2 ),...,r(x 12 )]

其中k1,x2,...,x12是非线性心电动力学特征,r表示将特征执行维度重构操作,C表示对特征矩阵进行堆叠,堆叠后的三维特征I4作空间-时间级联模型的输入;Where k 1 , x 2 , ..., x 12 are nonlinear electrocardiodynamic features, r represents the dimension reconstruction operation of the features, C represents the stacking of feature matrices, and the stacked three-dimensional features I 4 are used as the input of the space-time cascade model;

(2)第二层是空间初始化层,包括64个3×3×3卷积核组成的三维卷积层;(2) The second layer is the spatial initialization layer, which includes a three-dimensional convolution layer composed of 64 3×3×3 convolution kernels;

(3)第三层为密集连接层,主要由3个密集模块和2个转化层交替组成。其中3个密集模块分别由3、4、6个密集层组成,密集层由核大小为3×3×3的三维卷积层、非线性激活层、随机失活层依次堆叠而成,密集层之间采用密集连接方式;转化层主要由核大小为1×1×1的三维卷积层以及核大小为1×2×2最大池化层组成;(3) The third layer is a dense connection layer, which is mainly composed of 3 dense modules and 2 transformation layers. The 3 dense modules are composed of 3, 4, and 6 dense layers respectively. The dense layers are composed of a 3D convolution layer with a kernel size of 3×3×3, a nonlinear activation layer, and a random dropout layer stacked in sequence. The dense layers are densely connected. The transformation layer is mainly composed of a 3D convolution layer with a kernel size of 1×1×1 and a maximum pooling layer with a kernel size of 1×2×2.

(4)第四层为全局平均池化层,由核大小为12×8×16的平均池化层构成;(4) The fourth layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 12×8×16;

(5)第五层为时间初始层,由64个核大小为7的卷积核组成的一维卷积层和核大小为3的一维最大池化层组成;(5) The fifth layer is the temporal initialization layer, which consists of a one-dimensional convolutional layer composed of 64 convolution kernels with a kernel size of 7 and a one-dimensional maximum pooling layer with a kernel size of 3;

(6)第六层为残差连接层,包括四个残差模块,四个残差模块分别由3、4、6、3个残差层组成,共计16层残差层,每个残差层主要由一维卷积层,归一化层,非线性激活层依次组成,层与层之间采用残差连接;(6) The sixth layer is the residual connection layer, which includes four residual modules. The four residual modules are composed of 3, 4, 6, and 3 residual layers respectively, totaling 16 residual layers. Each residual layer is mainly composed of a one-dimensional convolution layer, a normalization layer, and a nonlinear activation layer in sequence. Residual connections are used between layers.

(7)第七层为全局平均池化层,由核大小为18的平均池化层组成;(7) The seventh layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 18;

(8)第八层为全连接层,完成对心电信号的分类。(8) The eighth layer is the fully connected layer, which completes the classification of ECG signals.

本发明与现有技术相比,具有如下优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

1、对体表12导联心电信号的相空间进行重构,所获得非线性心电动态参数ED更能反映出心电信号的内在信息,同时进一步进行非线性特征提取,这种非线性动态表征对心电识别具有较高的判别能力。1. The phase space of the 12-lead ECG signal on the body surface is reconstructed. The obtained nonlinear ECG dynamic parameter ED can better reflect the intrinsic information of the ECG signal. At the same time, nonlinear feature extraction is further performed. This nonlinear dynamic representation has a high discrimination ability for ECG recognition.

2、与常用的单导联心电分类不同,该方法充分利用了12导联心电信号,并根据时间复杂度和空间复杂度结合提取每条导联的时空特征,形成了综合的心电特征方法,对心电信号具有较好的识别能力。2. Different from the commonly used single-lead ECG classification, this method makes full use of the 12-lead ECG signals and extracts the spatiotemporal characteristics of each lead based on the combination of time complexity and space complexity to form a comprehensive ECG feature method with better recognition ability for ECG signals.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明提出的一种基于非线性心电动力学的心电信号分类方法的流程图。FIG1 is a flow chart of an electrocardiogram signal classification method based on nonlinear electrocardiogram dynamics proposed by the present invention.

图2是实施例中对12导联信号中的avR导联的相空间进行重构的三维示意图。FIG2 is a three-dimensional schematic diagram of reconstructing the phase space of the avR lead in the 12-lead signal in an embodiment.

图3是实施例中对12导联信号中的avR导联的非线性心电动态参数ED的示意图。FIG. 3 is a schematic diagram of a nonlinear electrocardiographic dynamic parameter ED of the avR lead in the 12-lead signal in an embodiment.

图4是实施例中空间占优分类模型的结构示意图。FIG. 4 is a schematic diagram of the structure of a space-dominant classification model in an embodiment.

图5是实施例中时间占优分类模型的结构示意图。FIG5 is a schematic diagram of the structure of a time-dominant classification model in an embodiment.

图6是实施例中时间-空间级联模型的结构示意图。FIG6 is a schematic diagram of the structure of a time-space cascade model in an embodiment.

图7是实施例中空间-时间级联模型的结构示意图。FIG. 7 is a schematic diagram of the structure of a space-time cascade model in an embodiment.

具体实施方式DETAILED DESCRIPTION

下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方式不限于此。The present invention is further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.

实施例Example

如图1所示,一种基于非线性心电动力学的心电信号分类方法,包括以下步骤:As shown in FIG1 , a method for classifying electrocardiogram signals based on nonlinear electrocardiogram dynamics includes the following steps:

步骤1:采集人体体表12导联心电信号,将心电信号划分为训练集和测试集,重构信号相空间,并计算相空间中信号轨迹点到空间原点的欧氏距离作为非线性心电动态参数。具体包括以下步骤:Step 1: Collect 12-lead ECG signals from the human body surface, divide the ECG signals into training set and test set, reconstruct the signal phase space, and calculate the Euclidean distance from the signal trajectory point to the origin of the space in the phase space as the nonlinear ECG dynamic parameter. Specifically, the following steps are included:

(1)对心电信号去除噪声和伪影,划分出训练集和测试集;(1) Remove noise and artifacts from ECG signals and divide them into training and test sets;

(2)重构12导联心电信号的相空间:(2) Reconstruct the phase space of 12-lead ECG signals:

其中,是相空间中第i导联第j个坐标点的信息,它由若干个信息点组成,而τ为时延,d是相空间的嵌入维数。本实施例中,τ设置为1,d设置为3,对心电信号的相空间重构的可视化结果见图2所示。in, is the information of the jth coordinate point of the ith lead in the phase space, which is given by It is composed of several information points, τ is the time delay, and d is the embedding dimension of the phase space. In this embodiment, τ is set to 1, d is set to 3, and the visualization result of the phase space reconstruction of the ECG signal is shown in Figure 2.

(3)计算相空间中信号轨迹点到空间原点的欧氏距离作为非线性心电动态参数:(3) Calculate the Euclidean distance from the signal trajectory point to the origin of the space in the phase space as the nonlinear electrocardiographic dynamic parameter:

其中,是相空间中第i导联第j个坐标向量距离空间原点的欧式距离,ED序列的可视化结果见图3所示。in, is the Euclidean distance between the jth coordinate vector of the ith lead in the phase space and the origin of the space. The visualization result of the ED sequence is shown in Figure 3.

步骤2:提取信号相空间欧氏距离参数的深层次非线性心电动力学特征,并计算非线性心电动力学特征的时间复杂度和空间复杂度。具体包括以下步骤:Step 2: Extract the deep nonlinear electrocardiodynamic features of the Euclidean distance parameters in the signal phase space and calculate the time complexity and space complexity of the nonlinear electrocardiodynamic features. Specifically, the following steps are included:

(1)建立非线性心电动力学模型的径向基函数神经网络,将训练集和测试集的非线性心电动态参数输入到非线性心电动力学模型的径向基函数神经网络中,提取以常值神经网络权值矩阵存储的非线性心电动力学特征;(1) Establishing a radial basis function neural network of a nonlinear electrocardiographic dynamics model, inputting the nonlinear electrocardiographic dynamics parameters of the training set and the test set into the radial basis function neural network of the nonlinear electrocardiographic dynamics model, and extracting the nonlinear electrocardiographic dynamics features stored in a constant value neural network weight matrix;

非线性心电动力学特征,具体计算方式为下式:Nonlinear electrocardiographic dynamics characteristics, the specific calculation method is as follows:

其中,表示第i导联的非线性心电动力学模型,x表示输入信号的状态变量,p表示系统参数。是高斯径向基函数RBF神经网络根据输入轨迹在网络神经元不同距离程度下学习到的收敛权值的均值,A是对角矩阵,对角矩阵内部ai是增益参数,设置为0.9,表示高斯径向基函数RBF神经网络自动学习到的权值,最后会趋于收敛;S(x)代表高斯径向基函数,里面包含了神经元数量以及位置分布情况等信息,在本实施例中,RBF神经元设置均匀分布在区域[-2.5,2.5]×[-2.5,2.5]×[-2.5,2.5]中,且宽度设置为0.07;εi代表学习误差;构成了通过RBF神经网络不断对局部非线性心电动态参数轨迹的内在非线性动力学辨识得到的非线性心电动力学特征,最终可以得到非线性心电动力学特征 in, represents the nonlinear electrocardiographic dynamics model of the i-th lead, x represents the state variable of the input signal, and p represents the system parameter. It is a Gaussian radial basis function RBF neural network According to the input trajectory, the average of the convergence weights learned at different distances from the network neurons, A is a diagonal matrix, and a i inside the diagonal matrix is a gain parameter, which is set to 0.9. represents the weights automatically learned by the Gaussian radial basis function RBF neural network, which will eventually converge; S(x) represents the Gaussian radial basis function, which contains information such as the number of neurons and the position distribution. In this embodiment, the RBF neurons are evenly distributed in the area [-2.5, 2.5] × [-2.5, 2.5] × [-2.5, 2.5], and the width is set to 0.07; ε i represents the learning error; The nonlinear electrocardiodynamic characteristics are obtained by continuously identifying the intrinsic nonlinear dynamics of the local nonlinear electrocardiodynamic parameter trajectory through the RBF neural network, and finally the nonlinear electrocardiodynamic characteristics can be obtained.

其中,代表了径向基函数神经网络对12个非线性心电动态参数ED序列学习到的网络收敛权值均值,而则是代表了12个以常值神经网络权值矩阵存储的非线性心电动力学特征。in, represents the mean value of the network convergence weights learned by the radial basis function neural network for the ED sequence of 12 nonlinear ECG dynamic parameters, and It represents 12 nonlinear electrocardiodynamic features stored in a constant neural network weight matrix.

(2)计算非线性心电动力学特征每一维度的时间复杂度和空间复杂度,得到非线性心电动力学总的时间复杂度和空间复杂度。对于非线性心电动力学特征每一维的时间复杂度和空间复杂度,具体计算方式如下:(2) Calculate the time complexity and space complexity of each dimension of the nonlinear electrocardiodynamic characteristics to obtain the total time complexity and space complexity of the nonlinear electrocardiodynamic characteristics. The specific calculation method for the time complexity and space complexity of each dimension of the nonlinear electrocardiodynamic characteristics is as follows:

其中,TCk表示第k个非线性心电动态参数ED序列的时间复杂度,其计算公式为下式:Among them, TC k represents the time complexity of the kth nonlinear electrocardiographic dynamic parameter ED sequence, and its calculation formula is as follows:

其中,lk是第K个新序列中不同子串的数量,Ok(n)表示复杂度计数,n表示新序列的长度;其计算流程为:Where l k is the number of different substrings in the Kth new sequence, O k (n) represents the complexity count, and n represents the length of the new sequence; the calculation process is as follows:

(1)取非线性心电动力学特征x的极值点进行升序排序,并转化为新的长度为l的序列F(j′);(1) Take the extreme points of the nonlinear electrocardiodynamic feature x, sort them in ascending order, and transform them into a new sequence F(j′) of length l;

(2)创建符号集合γ={1,…,t},对非线性心电动力学特征的极值点进行转换,得到新的符号序列y(i'):(2) Create a symbol set γ = {1,…,t}, transform the extreme points of the nonlinear electrocardiodynamic characteristics, and obtain a new symbol sequence y(i'):

(3)将符号序列y(i')分解为一系列子串,前子串记录为a={yk(1),yk(2),…,yk(m'-10},后子串记录为b={yk(m')},则ab={yk(1),yk(2),…,,yk(m'-1),yk(m')},表示剔除ab最后一个元素的子串,即如果b是的子串,更新b={yk(m'),yk(m'+1)},否则更新a={yk(1),yk(2),…,yk(m')},更新b={yk(m'+1)},同时复杂度计数Ok(n)加1;(3) Decompose the symbol sequence y(i') into a series of substrings. The first substring is recorded as a = {y k (1), y k (2), ..., y k (m'-10}, and the second substring is recorded as b = {y k (m')}. Then ab = {y k (1), y k (2), ..., y k (m'-1), y k (m')}. It means to remove the substring of the last element of ab, that is If b is If the substring is not a string, update b = {y k (m'), y k (m'+1)}, otherwise update a = {y k (1), y k (2), ..., y k (m')}, update b = {y k (m'+1)}, and increase the complexity count O k (n) by 1;

SCk表示第k个非线性心电动态参数ED序列的空间复杂度,其计算公式为下式:SC k represents the spatial complexity of the kth nonlinear electrocardiographic dynamic parameter ED sequence, and its calculation formula is as follows:

其中,l'k是第K个新序列中不同子串的数量,Ok(m)表示复杂度计数,m表示新序列的长度;其计算流程为:Where l' k is the number of different substrings in the Kth new sequence, Ok (m) represents the complexity count, and m represents the length of the new sequence; the calculation process is as follows:

(1)计算非线性心电动力学特征x每个点的方向导数,得到反映非线性心电动力学特征x每个点的空间变化速率序列r(i)。(1) Calculate the directional derivative of each point of the nonlinear electrocardiodynamic characteristic x to obtain a spatial rate sequence r(i) reflecting each point of the nonlinear electrocardiodynamic characteristic x.

(2)将r(i)分解为一系列子串,其复杂度计算Ok(m)同时间复杂度计数Ok(n)的规则一致。(2) Decompose r(i) into a series of substrings. The complexity calculation O k (m) is consistent with the rule of time complexity counting O k (n).

步骤3,根据计算得到的时间复杂度和空间复杂度,本实施例对时空网络的选择方法是:Step 3: Based on the calculated time complexity and space complexity, the method for selecting the spatiotemporal network in this embodiment is:

当时间复杂度TC远远大于空间复杂度SC时,即TC>>SC,选择空间占优分类模型进行分类识别,空间占优分类模型如图4所示,具体结构如下:When the time complexity TC is much greater than the space complexity SC, that is, TC>>SC, the space-dominant classification model is selected for classification and recognition. The space-dominant classification model is shown in Figure 4, and its specific structure is as follows:

空间占优分类模型包括输入处理层、网络初始化层、密集连接层、全局平均池化层、全连接层,共计五层结构。The spatial dominance classification model includes an input processing layer, a network initialization layer, a dense connection layer, a global average pooling layer, and a fully connected layer, a total of five layers.

(1)第一层是输入处理层,针对12维度的非线性心电动力学特征,具体输入方式为下式:(1) The first layer is the input processing layer. For the 12-dimensional nonlinear electrocardiographic dynamics characteristics, the specific input method is as follows:

I1=C[r(x1),r(x2),...,r(x12)]I 1 =C[r(x 1 ),r(x 2 ),...,r(x 12 )]

其中x1,x2,...,x12是非线性心电动力学特征,r表示将特征执行维度重构操作,本实施例中,非线性心电动力学特征的长度为2048,而维度重构将每个非线性心电动力学特征重构成维度32×64的二维矩阵特征图,C表示对重构后的特征矩阵进行堆叠,堆叠后的三维特征I1作为空间占优分类模型的输入。Wherein x 1 , x 2 , ..., x 12 are nonlinear electrocardiodynamic features, r indicates that a dimension reconstruction operation is performed on the features. In this embodiment, the length of the nonlinear electrocardiodynamic feature is 2048, and the dimension reconstruction reconstructs each nonlinear electrocardiodynamic feature into a two-dimensional matrix feature map of dimension 32×64. C indicates stacking the reconstructed feature matrix, and the stacked three-dimensional feature I 1 is used as the input of the spatially dominant classification model.

(2)第二层是网络初始化层,包括64个3×3×3卷积核组成的三维卷积层;(2) The second layer is the network initialization layer, which includes a three-dimensional convolution layer composed of 64 3×3×3 convolution kernels;

(3)第三层为密集连接层,主要由3个密集模块和2个转化层交替组成。其中3个密集模块分别由3、4、6个密集层组成,密集层由核大小为3×3×3的三维卷积层、非线性激活层、随机失活层依次堆叠而成,密集层之间采用密集连接方式;转化层主要由核大小为1×1×1的三维卷积层以及核大小为1×2×2最大池化层组成;(3) The third layer is a dense connection layer, which is mainly composed of 3 dense modules and 2 transformation layers. The 3 dense modules are composed of 3, 4, and 6 dense layers respectively. The dense layers are composed of a 3D convolution layer with a kernel size of 3×3×3, a nonlinear activation layer, and a random dropout layer stacked in sequence. The dense layers are densely connected. The transformation layer is mainly composed of a 3D convolution layer with a kernel size of 1×1×1 and a maximum pooling layer with a kernel size of 1×2×2.

(4)第四层为全局平均池化层,由核大小为12×8×16的平均池化层构成;(4) The fourth layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 12×8×16;

(5)第五层为全连接层,完成对心电信号的分类。(5) The fifth layer is the fully connected layer, which completes the classification of ECG signals.

当时间复杂度TC远远小于空间复杂度SC时,即TC<<SC,选择时间占优分类模型进行分类识别,时间占优分类模型如图5所示,具体结构如下:When the time complexity TC is much smaller than the space complexity SC, that is, TC<<SC, the time-dominant classification model is selected for classification and recognition. The time-dominant classification model is shown in Figure 5, and its specific structure is as follows:

时间占优分类模型包括网络初始层、残差连接层、全局平均池化层、特征融合层、全连接层,共计五层结构。The time-dominant classification model includes the network initial layer, residual connection layer, global average pooling layer, feature fusion layer, and fully connected layer, a total of five layers.

(1)第一层为网络初始层,由64个核大小为7的卷积核组成的一维卷积层、核大小为3的一维最大池化层组成;(1) The first layer is the initial layer of the network, which consists of a one-dimensional convolution layer composed of 64 convolution kernels with a kernel size of 7 and a one-dimensional maximum pooling layer with a kernel size of 3;

(2)第二层为残差连接层,包括四个残差模块,四个残差模块分别由3、4、6、3个残差层组成,共计16层残差层,每个残差层主要由一维卷积层,归一化层,非线性激活层依次组成,层与层之间采用残差连接;(2) The second layer is the residual connection layer, which includes four residual modules. The four residual modules are composed of 3, 4, 6, and 3 residual layers respectively, totaling 16 residual layers. Each residual layer is mainly composed of a one-dimensional convolution layer, a normalization layer, and a nonlinear activation layer in sequence. Residual connections are used between layers.

(3)第三层为全局平均池化层,由核大小为64的平均池化层组成;(3) The third layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 64;

(4)第四层为特征融合层,具体融合方式为下式:(4) The fourth layer is the feature fusion layer, and the specific fusion method is as follows:

I2=A[y1,y2,...,y12]I 2 =A[y 1 ,y 2 ,...,y 12 ]

其中,y1,y2,...,y12表示每个维度的非线性心电特征经过时间占优分类模型前三层后全局平均层输出的特征,A表示采用逐元素相加方式,12维度的时间特征通过特征融合后,变成一维时间特征;Among them, y 1 ,y 2 ,...,y 12 represent the features of the nonlinear ECG features of each dimension after the first three layers of the time-dominant classification model and the global average layer output, A represents the element-by-element addition method, and the 12-dimensional time features are transformed into one-dimensional time features after feature fusion;

(5)第五层为全连接层,完成对心电信号的分类。(5) The fifth layer is the fully connected layer, which completes the classification of ECG signals.

当时间复杂度TC和空间复杂度SC满足TC>SC且时,选择时间-空间级联模型进行分类识别,时间-空间级联模型如图6所示,具体结构如下:When the time complexity TC and space complexity SC satisfy TC>SC and When , the time-space cascade model is selected for classification and recognition. The time-space cascade model is shown in Figure 6, and the specific structure is as follows:

时间-空间级联模型包括网络初始层、残差连接层、全局平均池化层、特征融合层、空间初始化层、密集连接层、全局平均池化层、全连接层,共计八层结构。The time-space cascade model includes the network initial layer, residual connection layer, global average pooling layer, feature fusion layer, spatial initialization layer, dense connection layer, global average pooling layer, and fully connected layer, a total of eight layers.

(1)第一层为初始层,由64个核大小为7的卷积核组成的一维卷积层和核大小为3的一维最大池化层组成;(1) The first layer is the initial layer, which consists of a one-dimensional convolution layer composed of 64 convolution kernels with a kernel size of 7 and a one-dimensional maximum pooling layer with a kernel size of 3;

(2)第二层为残差连接层,包括四个残差模块,四个残差模块分别由3、4、6、3个残差层组成,共计16层残差层,每个残差层主要由一维卷积层,归一化层,非线性激活层依次组成,层与层之间采用残差连接;(2) The second layer is the residual connection layer, which includes four residual modules. The four residual modules are composed of 3, 4, 6, and 3 residual layers respectively, totaling 16 residual layers. Each residual layer is mainly composed of a one-dimensional convolution layer, a normalization layer, and a nonlinear activation layer in sequence. Residual connections are used between layers.

(3)第三层为全局平均池化层,由核大小为64的平均池化层组成;(3) The third layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 64;

(4)第四层为特征处理层,该层主要负责对输出的12个一维时间特征进行重构堆叠,具体计算方式为下式:(4) The fourth layer is the feature processing layer, which is mainly responsible for reconstructing and stacking the 12 one-dimensional time features output. The specific calculation method is as follows:

I3=C[r(y1),r(y2),...,r(y12)]I 3 =C[r(y 1 ),r(y 2 ),...,r(y 12 )]

其中,y1,y2,...,y12是非线性心电动力学特征经过前三层提取到的一维时间特征向量,r表示将一维时间特征向量执行维度重构操作,本实施例中,非线性心电动力学特征输出的一维时间特征向量的长度为2048,而维度重构将每个特征向量重构成维度32×64的二维矩阵特征图,C表示对重构后的特征矩阵的深度进行堆叠,堆叠后的三维特征I3作为后续层的输入;Wherein, y 1 ,y 2 ,...,y 12 are one-dimensional time feature vectors extracted by the nonlinear electrocardiodynamic features through the first three layers, r represents the dimension reconstruction operation performed on the one-dimensional time feature vector. In this embodiment, the length of the one-dimensional time feature vector output by the nonlinear electrocardiodynamic features is 2048, and the dimension reconstruction reconstructs each feature vector into a two-dimensional matrix feature map of dimension 32×64, C represents the stacking of the depth of the reconstructed feature matrix, and the stacked three-dimensional feature I 3 is used as the input of the subsequent layer;

(5)第五层是空间初始化层,包括64个3×3×3卷积核组成的三维卷积层;(5) The fifth layer is the spatial initialization layer, which includes a three-dimensional convolution layer composed of 64 3×3×3 convolution kernels;

(6)第六层为密集连接层,主要由3个密集模块和2个转化层交替组成。其中3个密集模块分别由3、4、6个密集层组成,密集层由核大小为3×3×3的三维卷积层、非线性激活层、随机失活层依次堆叠而成,密集层之间采用密集连接方式;转化层主要由核大小为1×1×1的三维卷积层以及核大小为1×2×2最大池化层组成;(6) The sixth layer is a dense connection layer, which is mainly composed of 3 dense modules and 2 transformation layers. The 3 dense modules are composed of 3, 4, and 6 dense layers respectively. The dense layers are composed of a 3D convolution layer with a kernel size of 3×3×3, a nonlinear activation layer, and a random inactivation layer stacked in sequence. The dense layers are densely connected; the transformation layer is mainly composed of a 3D convolution layer with a kernel size of 1×1×1 and a maximum pooling layer with a kernel size of 1×2×2.

(7)第七层为全局平均池化层,由核大小为12×8×16的平均池化层构成;(7) The seventh layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 12×8×16;

(8)第八层为全连接层,完成对心电信号的分类;(8) The eighth layer is a fully connected layer, which completes the classification of ECG signals;

当时间复杂度TC和空间复杂度SC满足SC>TC且时,选择空间-时间级联模型进行分类识别,空间-时间级联模型如图7所示,具体结构如下:When the time complexity TC and space complexity SC satisfy SC>TC and When , the space-time cascade model is selected for classification and recognition. The space-time cascade model is shown in Figure 7, and the specific structure is as follows:

空间-时间级联模型包括输入处理层、空间初始化层、密集连接层、全局平均池化层、时间初始化层、残差连接层、全局平均池化层、全连接层,共计八层结构。The spatial-temporal cascade model includes an input processing layer, a spatial initialization layer, a dense connection layer, a global average pooling layer, a temporal initialization layer, a residual connection layer, a global average pooling layer, and a fully connected layer, a total of eight layers.

(1)第一层为输入处理层,针对12维度的非线性心电动力学特征,具体处理方式为下式:(1) The first layer is the input processing layer. The specific processing method for the 12-dimensional nonlinear electrocardiographic dynamics characteristics is as follows:

I4=C[r(x1),r(x2),...,r(x12)]I 4 =C[r(x 1 ),r(x 2 ),...,r(x 12 )]

其中x1,x2,...,x12是非线性心电动力学特征,r表示将特征执行维度重构操作,本实施例中,非线性心电动力学特征的长度为2048,而维度重构将每个非线性心电动力学特征重构成维度32×64的二维矩阵特征图,C表示对特征矩阵进行堆叠,堆叠后的三维特征I4作为空间-时间级联模型的输入;Wherein x 1 , x 2 , ..., x 12 are nonlinear electrocardiodynamic features, r indicates that a dimension reconstruction operation is performed on the feature. In this embodiment, the length of the nonlinear electrocardiodynamic feature is 2048, and the dimension reconstruction reconstructs each nonlinear electrocardiodynamic feature into a two-dimensional matrix feature map with a dimension of 32×64. C indicates stacking the feature matrix, and the stacked three-dimensional feature I 4 is used as the input of the space-time cascade model.

(2)第二层是空间初始化层,包括64个3×3×3卷积核组成的三维卷积层;(2) The second layer is the spatial initialization layer, which includes a three-dimensional convolution layer composed of 64 3×3×3 convolution kernels;

(3)第三层为密集连接层,主要由3个密集模块和2个转化层交替组成。其中3个密集模块分别由3、4、6个密集层组成,密集层由核大小为3×3×3的三维卷积层、非线性激活层、随机失活层依次堆叠而成,密集层之间采用密集连接方式;转化层主要由核大小为1×1×1的三维卷积层以及核大小为1×2×2最大池化层组成;(3) The third layer is a dense connection layer, which is mainly composed of 3 dense modules and 2 transformation layers. The 3 dense modules are composed of 3, 4, and 6 dense layers respectively. The dense layers are composed of a 3D convolution layer with a kernel size of 3×3×3, a nonlinear activation layer, and a random dropout layer stacked in sequence. The dense layers are densely connected. The transformation layer is mainly composed of a 3D convolution layer with a kernel size of 1×1×1 and a maximum pooling layer with a kernel size of 1×2×2.

(4)第四层为全局平均池化层,由核大小为12×8×16的平均池化层构成;(4) The fourth layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 12×8×16;

(5)第五层为时间初始层,由64个核大小为7的卷积核组成的一维卷积层和核大小为3的一维最大池化层组成;(5) The fifth layer is the temporal initialization layer, which consists of a one-dimensional convolutional layer composed of 64 convolution kernels with a kernel size of 7 and a one-dimensional maximum pooling layer with a kernel size of 3;

(6)第六层为残差连接层,包括四个残差模块,四个残差模块分别由3、4、6、3个残差层组成,共计16层残差层,每个残差层主要由一维卷积层,归一化层,非线性激活层依次组成,层与层之间采用残差连接;(6) The sixth layer is the residual connection layer, which includes four residual modules. The four residual modules are composed of 3, 4, 6, and 3 residual layers respectively, totaling 16 residual layers. Each residual layer is mainly composed of a one-dimensional convolution layer, a normalization layer, and a nonlinear activation layer in sequence. Residual connections are used between layers.

(7)第七层为全局平均池化层,由核大小为18的平均池化层组成;(7) The seventh layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 18;

(8)第八层为全连接层,完成对心电信号的分类。(8) The eighth layer is the fully connected layer, which completes the classification of ECG signals.

实施例中,基于心电时空特征学习的心电信号分类准确率最高可达92%,不采用非线性心电动态参数ED,而采用原信号进行非线性特征提取的准确率最高可达86%。In the embodiment, the accuracy of ECG signal classification based on ECG spatiotemporal feature learning can reach up to 92%, and the accuracy of nonlinear feature extraction using the original signal without using the nonlinear ECG dynamic parameter ED can reach up to 86%.

本实施例中,对12导联心电信号进行心电分类,相比于传统的心电模式分类方法,本方法充分考虑了非线性心电动力学特征,以及相应的时空特征,其心电识别率会更加准确。In this embodiment, 12-lead ECG signals are subjected to ECG classification. Compared with the traditional ECG pattern classification method, this method fully considers the nonlinear electrocardiographic dynamics characteristics and the corresponding spatiotemporal characteristics, and its ECG recognition rate will be more accurate.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims (10)

1.一种基于心电时空特征学习的心电信号分类方法,其特征在于,包含如下步骤:1. A method for classifying electrocardiogram signals based on electrocardiogram spatiotemporal feature learning, characterized in that it comprises the following steps: 步骤1:采集人体体表12导联的心电信号,将心电信号划分为训练集和测试集,重构信号相空间,并计算相空间中信号轨迹点到空间原点的欧氏距离作为非线性心电动态参数;Step 1: Collect 12-lead ECG signals from the human body surface, divide the ECG signals into training set and test set, reconstruct the signal phase space, and calculate the Euclidean distance from the signal trajectory point to the space origin in the phase space as the nonlinear ECG dynamic parameter; 步骤2:提取信号相空间欧氏距离参数的深层次非线性心电动力学特征,并计算非线性心电动力学特征的时间复杂度和空间复杂度;Step 2: Extract the deep nonlinear electrocardiodynamic features of the Euclidean distance parameters in the signal phase space, and calculate the time complexity and space complexity of the nonlinear electrocardiodynamic features; 步骤3:基于时间复杂度和空间复杂度选择相应的分类器,将训练集的非线性心电动力学特征输入至选择的分类器训练,测试集的非线性心电动力学特征输入至训练好的网络进行识别,完成心电信号的分类。Step 3: Select the corresponding classifier based on time complexity and space complexity, input the nonlinear electrocardiodynamic features of the training set into the selected classifier for training, and input the nonlinear electrocardiodynamic features of the test set into the trained network for recognition to complete the classification of ECG signals. 2.根据权利要求1所述的一种基于心电时空特征学习的心电信号分类方法,其特征在于,所述步骤1中,具体包括以下步骤:2. The ECG signal classification method based on ECG spatiotemporal feature learning according to claim 1, characterized in that the step 1 specifically comprises the following steps: 1-1.对心电信号去除噪声和伪影,划分出训练集和测试集;1-1. Remove noise and artifacts from ECG signals and divide them into training set and test set; 1-2.重构12导联心电信号的相空间:1-2. Reconstruct the phase space of 12-lead ECG signals: 其中,是相空间中第i导联第j个坐标点的信息,它由若干个信息点组成,而τ为时延,d表示相空间的嵌入维数;in, is the information of the jth coordinate point of the ith lead in the phase space, which is given by It is composed of several information points, while τ is the time delay and d represents the embedding dimension of the phase space; 1-3.计算相空间中信号轨迹点到空间原点的欧氏距离作为非线性心电动态参数:1-3. Calculate the Euclidean distance from the signal trajectory point to the origin of the space in the phase space as the nonlinear electrocardiographic dynamic parameter: 其中,是相空间中第i导联第j个坐标向量距离空间原点的欧式距离。in, is the Euclidean distance from the jth coordinate vector of the ith lead in the phase space to the origin of the space. 3.根据权利要求1或2所述的一种基于心电时空特征学习的心电信号分类方法,其特征在于,所述步骤2中,具体包括以下步骤:3. The ECG signal classification method based on ECG spatiotemporal feature learning according to claim 1 or 2, characterized in that the step 2 specifically comprises the following steps: 2-1.建立非线性心电动力学模型的径向基函数神经网络,将训练集和测试集的非线性心电动态参数输入到非线性心电动力学模型的径向基函数神经网络中,提取以常值神经网络权值矩阵存储的非线性心电动力学特征;2-1. Establish a radial basis function neural network of a nonlinear electrocardiodynamic model, input the nonlinear electrocardiodynamic parameters of the training set and the test set into the radial basis function neural network of the nonlinear electrocardiodynamic model, and extract the nonlinear electrocardiodynamic features stored in a constant value neural network weight matrix; 2-2.计算非线性心电动力学特征每一维度的时间复杂度和空间复杂度,得到非线性心电动力学总的时间复杂度和空间复杂度。2-2. Calculate the time complexity and space complexity of each dimension of the nonlinear electrocardiodynamic characteristics to obtain the total time complexity and space complexity of nonlinear electrocardiodynamics. 4.根据权利要求3所述的一种基于心电时空特征学习的心电信号分类方法,其特征在于,步骤2-1所述的非线性心电动力学特征,具体计算方式为下式:4. The ECG signal classification method based on ECG spatiotemporal feature learning according to claim 3 is characterized in that the nonlinear electrocardiographic dynamics feature described in step 2-1 is specifically calculated as follows: 其中,表示第i导联的非线性心电动力学模型,x表示输入信号的状态变量,p表示系统参数;是高斯径向基函数RBF神经网络根据输入轨迹在网络神经元不同距离程度下学习到的收敛权值均值,A是对角矩阵,对角矩阵内部ai是增益参数,表示高斯径向基函数RBF神经网络自动学习到的权值,最后会趋于收敛;S(x)代表高斯径向基函数;εi代表学习误差;构成了通过RBF神经网络不断对局部非线性心电动态参数轨迹的内在非线性动力学辨识得到的非线性心电动力学特征。in, represents the nonlinear electrocardiographic dynamics model of the i-th lead, x represents the state variable of the input signal, and p represents the system parameter; It is a Gaussian radial basis function RBF neural network According to the input trajectory, the convergence weight mean is learned at different distances from the network neurons. A is a diagonal matrix, and the a i inside the diagonal matrix is the gain parameter. It represents the weights automatically learned by the Gaussian radial basis function RBF neural network, which will eventually converge; S(x) represents the Gaussian radial basis function; ε i represents the learning error; It constitutes the nonlinear electrocardiographic dynamic characteristics obtained by continuously identifying the intrinsic nonlinear dynamics of the local nonlinear electrocardiographic dynamic parameter trajectory through the RBF neural network. 5.根据权利要求3所述的一种基于心电时空特征学习的心电信号分类方法,其特征在于,步骤2-2所述时间复杂度和空间复杂度,具体计算方式如下:5. According to claim 3, the ECG signal classification method based on ECG spatiotemporal feature learning is characterized in that the time complexity and space complexity of step 2-2 are specifically calculated as follows: 其中,TCk表示第k个非线性心电动态参数ED序列的时间复杂度,其计算公式为下式:Among them, TC k represents the time complexity of the kth nonlinear electrocardiographic dynamic parameter ED sequence, and its calculation formula is as follows: 其中,lk是第k个新序列中不同子串的数量,Ok(n)表示复杂度计数,n表示新序列的长度;其计算流程为:Where l k is the number of different substrings in the kth new sequence, O k (n) represents the complexity count, and n represents the length of the new sequence; the calculation process is as follows: (1)取非线性心电动力学特征x的极值点进行升序排序,并转化为新的长度为l的序列'F(j);(1) Take the extreme points of the nonlinear electrocardiodynamic feature x, sort them in ascending order, and transform them into a new sequence 'F(j) with a length of l; (2)创建符号集合γ={1,…,t},对非线性心电动力学特征的极值点进行转换,得到新的符号序列y(i'):(2) Create a symbol set γ = {1,…,t}, transform the extreme points of the nonlinear electrocardiodynamic characteristics, and obtain a new symbol sequence y(i'): (3)将符号序列y(i')分解为一系列子串,前子串记录为a={yk(1),yk(2),…,yk(m'-1)},后子串记录为b={yk(m')},则ab={yk(1),yk(2),…,,yk(m'-1),yk(m')},表示剔除ab最后一个元素的子串,即如果b是的子串,更新b={yk(m'),yk(m'+1)},否则更新a={yk(1),yk(2),…,yk(m')},更新b={yk(m'+1)},同时复杂度计数Ok(n)加1;(3) Decompose the symbol sequence y(i') into a series of substrings. The first substring is recorded as a = {y k (1), y k (2), ..., y k (m'-1)}, and the second substring is recorded as b = {y k (m')}. Then ab = {y k (1), y k (2), ..., y k (m'-1), y k (m')}. It means to remove the substring of the last element of ab, that is If b is If the substring is not a string, update b = {y k (m'), y k (m'+1)}, otherwise update a = {y k (1), y k (2), ..., y k (m')}, update b = {y k (m'+1)}, and increase the complexity count O k (n) by 1; Sk表示第k个非线性心电动态参数ED序列的空间复杂度,其计算公式为下式:S k represents the spatial complexity of the kth nonlinear electrocardiographic dynamic parameter ED sequence, and its calculation formula is as follows: 其中,l'k是第k个新序列中不同子串的数量,Ok(m)表示复杂度计数,m表示新序列的长度;其计算流程为:Where l' k is the number of different substrings in the kth new sequence, Ok (m) represents the complexity count, and m represents the length of the new sequence; the calculation process is as follows: ①计算非线性心电动力学特征x每个点的方向导数,得到反映非线性心电动力学特征x每个点的空间变化速率序列r(i);① Calculate the directional derivative of each point of the nonlinear electrocardiodynamic characteristic x to obtain the spatial change rate sequence r(i) reflecting each point of the nonlinear electrocardiodynamic characteristic x; ②将r(i)分解为一系列子串,其复杂度计算Ok(m)同时间复杂度计数Ok(n)的规则一致。② Decompose r(i) into a series of substrings. Its complexity calculation O k (m) is consistent with the rule of time complexity counting O k (n). 6.根据权利要求3所述的一种基于心电时空特征学习的心电信号分类方法,其特征在于,所述步骤3中,选择的方法是:6. The ECG signal classification method based on ECG spatiotemporal feature learning according to claim 3, characterized in that in step 3, the method selected is: 当时间复杂度TC远远大于空间复杂度SC时,即TC》SC,选择空间占优分类模型进行分类识别;When the time complexity TC is much greater than the space complexity SC, that is, TC>SC, the space-dominant classification model is selected for classification and recognition; 当时间复杂度TC远远小于空间复杂度SC时,即TC》SC<SC,选择时间占优分类模型进行分类识别;When the time complexity TC is much smaller than the space complexity SC, that is, TC>SC<SC, the time-dominant classification model is selected for classification and recognition; 当时间复杂度TC和空间复杂度SC满足TC>SC且时,选择时间-空间级联模型进行分类识别;When the time complexity TC and space complexity SC satisfy TC>SC and When , the time-space cascade model is selected for classification and recognition; 当时间复杂度TC和空间复杂度SC满足SC>TC且时,选择空间-时间级联模型进行分类识别。When the time complexity TC and space complexity SC satisfy SC>TC and When , the space-time cascade model is selected for classification and recognition. 7.根据权利要求6所述的一种基于心电时空特征学习的心电信号分类方法,其特征在于,所述空间占优分类模型,具体结构如下:7. The ECG signal classification method based on ECG spatiotemporal feature learning according to claim 6 is characterized in that the spatially dominant classification model has the following specific structure: 空间占优分类模型包括输入处理层、网络初始化层、密集连接层、全局平均池化层、全连接层,共计五层结构;The spatially dominant classification model includes an input processing layer, a network initialization layer, a dense connection layer, a global average pooling layer, and a fully connected layer, a total of five layers. (1)第一层是输入处理层,针对12维度的非线性心电动力学特征,具体输入方式为下式:(1) The first layer is the input processing layer. For the 12-dimensional nonlinear electrocardiographic dynamics characteristics, the specific input method is as follows: I1=C[r(x1),r(x2),...,r(x12)]I 1 =C[r(x 1 ),r(x 2 ),...,r(x 12 )] 其中x1,x2,...,x12是非线性心电动力学特征,r表示将特征执行维度重构操作,C表示对重构后的特征矩阵进行堆叠,堆叠后的三维特征I1作为空间占优分类模型的输入;Where x 1 , x 2 , ..., x 12 are nonlinear electrocardiodynamic features, r represents the dimension reconstruction operation of the features, C represents the stacking of the reconstructed feature matrix, and the stacked three-dimensional feature I 1 is used as the input of the spatially dominant classification model; (2)第二层是网络初始化层,包括64个3×3×3卷积核组成的三维卷积层;(2) The second layer is the network initialization layer, which includes a three-dimensional convolution layer composed of 64 3×3×3 convolution kernels; (3)第三层为密集连接层,主要由3个密集模块和2个转化层交替组成;其中3个密集模块分别由3、4、6个密集层组成,密集层由核大小为3×3×3的三维卷积层、非线性激活层、随机失活层依次堆叠而成,密集层之间采用密集连接方式;转化层主要由核大小为1×1×1的三维卷积层以及核大小为1×2×2最大池化层组成;(3) The third layer is a densely connected layer, which is mainly composed of 3 dense modules and 2 transformation layers alternating. The 3 dense modules are composed of 3, 4, and 6 dense layers respectively. The dense layers are composed of a 3D convolutional layer with a kernel size of 3×3×3, a nonlinear activation layer, and a random dropout layer stacked in sequence. The dense layers are densely connected. The transformation layer is mainly composed of a 3D convolutional layer with a kernel size of 1×1×1 and a maximum pooling layer with a kernel size of 1×2×2. (4)第四层为全局平均池化层,由核大小为12×8×16的平均池化层构成;(4) The fourth layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 12×8×16; (5)第五层为全连接层,完成对心电信号的分类。(5) The fifth layer is the fully connected layer, which completes the classification of ECG signals. 8.根据权利要求6所述的一种基于心电时空特征学习的心电信号分类方法,其特征在于,所述时间占优分类模型,具体结构如下:8. The ECG signal classification method based on ECG spatiotemporal feature learning according to claim 6 is characterized in that the time-dominant classification model has the following specific structure: 时间占优分类模型包括网络初始层、残差连接层、全局平均池化层、特征融合层、全连接层,共计五层结构;The time-dominant classification model includes a five-layer structure: the initial network layer, the residual connection layer, the global average pooling layer, the feature fusion layer, and the fully connected layer. (1)第一层为网络初始层,由64个核大小为7的卷积核组成的一维卷积层、核大小为3的一维最大池化层组成;(1) The first layer is the initial layer of the network, which consists of a one-dimensional convolution layer composed of 64 convolution kernels with a kernel size of 7 and a one-dimensional maximum pooling layer with a kernel size of 3; (2)第二层为残差连接层,包括四个残差模块,四个残差模块分别由3、4、6、3个残差层组成,共计16层残差层,每个残差层主要由一维卷积层,归一化层,非线性激活层依次组成,层与层之间采用残差连接;(2) The second layer is the residual connection layer, which includes four residual modules. The four residual modules are composed of 3, 4, 6, and 3 residual layers respectively, totaling 16 residual layers. Each residual layer is mainly composed of a one-dimensional convolution layer, a normalization layer, and a nonlinear activation layer in sequence. Residual connections are used between layers. (3)第三层为全局平均池化层,由核大小为64的平均池化层组成;(3) The third layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 64; (4)第四层为特征融合层,具体融合方式为下式:(4) The fourth layer is the feature fusion layer, and the specific fusion method is as follows: I2=A[y1,y2,...,y12]I 2 =A [y 1 , y 2 ,..., y 12 ] 其中,y1,y2,...,y12表示每个维度的非线性心电特征经过时间占优分类模型前三层后全局平均池化层输出的特征,A表示采用逐元素相加方式,12维度的时间特征通过特征融合后,变成一维时间特征;Among them, y 1 ,y 2 ,...,y 12 represent the features of the nonlinear ECG features of each dimension after the first three layers of the time-dominant classification model and the global average pooling layer outputs. A represents the element-by-element addition method. After feature fusion, the 12-dimensional time features become one-dimensional time features. (5)第五层为全连接层,完成对心电信号的分类。(5) The fifth layer is the fully connected layer, which completes the classification of ECG signals. 9.根据权利要求6所述的一种基于心电时空特征学习的心电信号分类方法,其特征在于,所述时间-空间级联模型,具体结构如下:9. The ECG signal classification method based on ECG spatiotemporal feature learning according to claim 6 is characterized in that the time-space cascade model has the following specific structure: 时间-空间级联模型包括网络初始层、残差连接层、全局平均池化层、特征融合层、空间初始化层、密集连接层、全局平均池化层、全连接层,共计八层结构;The time-space cascade model includes the network initial layer, residual connection layer, global average pooling layer, feature fusion layer, spatial initialization layer, dense connection layer, global average pooling layer, and fully connected layer, a total of eight layers; (1)第一层为初始层,由64个核大小为7的卷积核组成的一维卷积层和核大小为3的一维最大池化层组成;(1) The first layer is the initial layer, which consists of a one-dimensional convolution layer composed of 64 convolution kernels with a kernel size of 7 and a one-dimensional maximum pooling layer with a kernel size of 3; (2)第二层为残差连接层,包括四个残差模块,四个残差模块分别由3、4、6、3个残差层组成,共计16层残差层,每个残差层主要由一维卷积层,归一化层,非线性激活层依次组成,层与层之间采用残差连接;(2) The second layer is the residual connection layer, which includes four residual modules. The four residual modules are composed of 3, 4, 6, and 3 residual layers respectively, totaling 16 residual layers. Each residual layer is mainly composed of a one-dimensional convolution layer, a normalization layer, and a nonlinear activation layer in sequence. Residual connections are used between layers. (3)第三层为全局平均池化层,由核大小为64的平均池化层组成;(3) The third layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 64; (4)第四层为特征处理层,该层主要负责对输出的12个一维时间特征进行重构堆叠,具体计算方式为下式:(4) The fourth layer is the feature processing layer, which is mainly responsible for reconstructing and stacking the 12 one-dimensional time features output. The specific calculation method is as follows: I3=C[r(y1),r(y2),...,r(y12)]I 3 =C[r(y 1 ),r(y 2 ),...,r(y 12 )] 其中,y1,y2,...,y12是非线性心电动力学特征经过前三层提取到的一维时间特征向量,r表示将一维时间特征向量执行维度重构操作,C表示对重构后的特征矩阵的深度进行堆叠,堆叠后的三维特征I3作为后续层的输入;Among them, y 1 ,y 2 ,...,y 12 are the one-dimensional time feature vectors extracted from the nonlinear electrocardiodynamic features through the first three layers, r represents the dimension reconstruction operation of the one-dimensional time feature vector, C represents the stacking of the depth of the reconstructed feature matrix, and the stacked three-dimensional feature I 3 is used as the input of the subsequent layer; (5)第五层是空间初始化层,包括64个3×3×3卷积核组成的三维卷积层;(5) The fifth layer is the spatial initialization layer, which includes a three-dimensional convolution layer composed of 64 3×3×3 convolution kernels; (6)第六层为密集连接层,主要由3个密集模块和2个转化层交替组成;其中3个密集模块分别由3、4、6个密集层组成,密集层由核大小为3×3×3的三维卷积层、非线性激活层、随机失活层依次堆叠而成,密集层之间采用密集连接方式;转化层主要由核大小为1×1×1的三维卷积层以及核大小为1×2×2最大池化层组成;(6) The sixth layer is a densely connected layer, which is mainly composed of 3 dense modules and 2 transformation layers alternating. The 3 dense modules are composed of 3, 4, and 6 dense layers respectively. The dense layers are composed of a 3D convolutional layer with a kernel size of 3×3×3, a nonlinear activation layer, and a random dropout layer stacked in sequence. The dense layers are densely connected. The transformation layer is mainly composed of a 3D convolutional layer with a kernel size of 1×1×1 and a maximum pooling layer with a kernel size of 1×2×2. (7)第七层为全局平均池化层,由核大小为12×8×16的平均池化层构成;(7) The seventh layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 12×8×16; (8)第八层为全连接层,完成对心电信号的分类。(8) The eighth layer is the fully connected layer, which completes the classification of ECG signals. 10.根据权利要求6所述的一种基于心电时空特征学习的心电信号分类方法,其特征在于,所述空间-时间级联模型具体结构如下:10. The ECG signal classification method based on ECG spatiotemporal feature learning according to claim 6, characterized in that the specific structure of the space-time cascade model is as follows: 空间-时间级联模型包括网络初始层、残差连接层、全局平均池化层、特征融合层、空间初始化层、密集连接层、全局平均池化层、全连接层,共计八层结构;The spatial-temporal cascade model includes the network initial layer, residual connection layer, global average pooling layer, feature fusion layer, spatial initialization layer, dense connection layer, global average pooling layer, and fully connected layer, a total of eight layers; (1)第一层为输入处理层,针对12维度的非线性心电动力学特征,具体处理方式为下式:(1) The first layer is the input processing layer. The specific processing method for the 12-dimensional nonlinear electrocardiographic dynamics characteristics is as follows: I4=C[r(x1),r(x2),..,r(x12)]I 4 =C[r(x 1 ),r(x 2 ),..,r(x 12 )] 其中x1,x2,...,x12是非线性心电动力学特征,r表示将特征执行维度重构操作,C表示对特征矩阵进行堆叠,堆叠后的三维特征I4作空间-时间级联模型的输入;Where x 1 , x 2 , ..., x 12 are nonlinear electrocardiodynamic features, r represents the dimension reconstruction operation of the features, C represents the stacking of the feature matrix, and the stacked three-dimensional features I 4 are used as the input of the space-time cascade model; (2)第二层是空间初始化层,包括64个3×3×3卷积核组成的三维卷积层;(2) The second layer is the spatial initialization layer, which includes a three-dimensional convolution layer composed of 64 3×3×3 convolution kernels; (3)第三层为密集连接层,主要由3个密集模块和2个转化层交替组成;其中3个密集模块分别由3、4、6个密集层组成,密集层由核大小为3×3×3的三维卷积层、非线性激活层、随机失活层依次堆叠而成,密集层之间采用密集连接方式;转化层主要由核大小为1×1×1的三维卷积层以及核大小为1×2×2最大池化层组成;(3) The third layer is a densely connected layer, which is mainly composed of 3 dense modules and 2 transformation layers alternating. The 3 dense modules are composed of 3, 4, and 6 dense layers respectively. The dense layers are composed of a 3D convolutional layer with a kernel size of 3×3×3, a nonlinear activation layer, and a random dropout layer stacked in sequence. The dense layers are densely connected. The transformation layer is mainly composed of a 3D convolutional layer with a kernel size of 1×1×1 and a maximum pooling layer with a kernel size of 1×2×2. (4)第四层为全局平均池化层,由核大小为12×8×16的平均池化层构成;(4) The fourth layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 12×8×16; (5)第五层为时间初始层,由64个核大小为7的卷积核组成的一维卷积层和核大小为3的一维最大池化层组成;(5) The fifth layer is the temporal initialization layer, which consists of a one-dimensional convolutional layer composed of 64 convolution kernels with a kernel size of 7 and a one-dimensional maximum pooling layer with a kernel size of 3; (6)第六层为残差连接层,包括四个残差模块,四个残差模块分别由3、4、6、3个残差层组成,共计16层残差层,每个残差层主要由一维卷积层,归一化层,非线性激活层依次组成,层与层之间采用残差连接;(6) The sixth layer is the residual connection layer, which includes four residual modules. The four residual modules are composed of 3, 4, 6, and 3 residual layers respectively, totaling 16 residual layers. Each residual layer is mainly composed of a one-dimensional convolution layer, a normalization layer, and a nonlinear activation layer in sequence. Residual connections are used between layers. (7)第七层为全局平均池化层,由核大小为18的平均池化层组成;(7) The seventh layer is the global average pooling layer, which consists of an average pooling layer with a kernel size of 18; (8)第八层为全连接层,完成对心电信号的分类。(8) The eighth layer is the fully connected layer, which completes the classification of ECG signals.
CN202410819438.6A 2024-06-24 2024-06-24 Electrocardiogram signal classification method based on electrocardio space-time feature learning Active CN118787360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410819438.6A CN118787360B (en) 2024-06-24 2024-06-24 Electrocardiogram signal classification method based on electrocardio space-time feature learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410819438.6A CN118787360B (en) 2024-06-24 2024-06-24 Electrocardiogram signal classification method based on electrocardio space-time feature learning

Publications (2)

Publication Number Publication Date
CN118787360A true CN118787360A (en) 2024-10-18
CN118787360B CN118787360B (en) 2025-03-07

Family

ID=93018993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410819438.6A Active CN118787360B (en) 2024-06-24 2024-06-24 Electrocardiogram signal classification method based on electrocardio space-time feature learning

Country Status (1)

Country Link
CN (1) CN118787360B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230105A1 (en) * 2003-05-15 2004-11-18 Widemed Ltd. Adaptive prediction of changes of physiological/pathological states using processing of biomedical signals
CN107657317A (en) * 2017-09-19 2018-02-02 华南理工大学 A kind of dynamic feature extraction method based on determination study and space-time LZ complexities
CN109498025A (en) * 2018-09-13 2019-03-22 龙岩学院 Knee osteoarthritis diagnostic system based on phase space reconfiguration, Euclidean distance and neural network
CN110097967A (en) * 2018-09-13 2019-08-06 龙岩学院 Knee osteoarthritis diagnostic system based on intrinsic time Scale Decomposition, phase space reconfiguration and neural network
CN110151165A (en) * 2019-04-30 2019-08-23 杭州电子科技大学 A Classification Method of Vector Cardiogram Based on Nonlinear Dynamic Features
US10950352B1 (en) * 2020-07-17 2021-03-16 Prince Mohammad Bin Fahd University System, computer-readable storage medium and method of deep learning of texture in short time series
CN114903497A (en) * 2022-05-12 2022-08-16 大连大学 Atrial fibrillation detection method based on recurrent complex network and convolutional neural network
WO2024051455A1 (en) * 2022-09-05 2024-03-14 大连大学 Capsule network-based motor imagery electroencephalography signal recognition method
US20240143970A1 (en) * 2021-03-08 2024-05-02 The Johns Hopkins University Evolutional deep neural networks

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230105A1 (en) * 2003-05-15 2004-11-18 Widemed Ltd. Adaptive prediction of changes of physiological/pathological states using processing of biomedical signals
CN107657317A (en) * 2017-09-19 2018-02-02 华南理工大学 A kind of dynamic feature extraction method based on determination study and space-time LZ complexities
CN109498025A (en) * 2018-09-13 2019-03-22 龙岩学院 Knee osteoarthritis diagnostic system based on phase space reconfiguration, Euclidean distance and neural network
CN110097967A (en) * 2018-09-13 2019-08-06 龙岩学院 Knee osteoarthritis diagnostic system based on intrinsic time Scale Decomposition, phase space reconfiguration and neural network
CN110151165A (en) * 2019-04-30 2019-08-23 杭州电子科技大学 A Classification Method of Vector Cardiogram Based on Nonlinear Dynamic Features
US10950352B1 (en) * 2020-07-17 2021-03-16 Prince Mohammad Bin Fahd University System, computer-readable storage medium and method of deep learning of texture in short time series
US20240143970A1 (en) * 2021-03-08 2024-05-02 The Johns Hopkins University Evolutional deep neural networks
CN114903497A (en) * 2022-05-12 2022-08-16 大连大学 Atrial fibrillation detection method based on recurrent complex network and convolutional neural network
WO2024051455A1 (en) * 2022-09-05 2024-03-14 大连大学 Capsule network-based motor imagery electroencephalography signal recognition method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
MUQING DENG,等: "An intelligent computer-aided diagnosis method for paroxysmal atrial fibrillation patients with nondiagnostic ECG signals", BIOMEDICAL SIGNAL PROCESSING AND CONTROL, 3 November 2023 (2023-11-03), pages 1 - 12 *
SAHAR GHOBADI,等: "The chaotic behavior of EEG signals during Reiki", 2011 19TH IRANIAN CONFERENCE ON ELECTRICAL ENGINEERING, 31 December 2011 (2011-12-31), pages 1 - 5 *
TIANQI ZHAO,等: "Classification of myocardial infarction based on ECG signals and multi-network stacking model", 2021 40TH CHINESE CONTROL CONFERENCE (CCC), 28 July 2021 (2021-07-28), pages 1 - 5 *
陆宏伟,等: "基于LabVIEW 的便携式房颤检测系统的研制", 中国医学物理学杂志, vol. 28, no. 4, 31 July 2011 (2011-07-31), pages 2792 - 2795 *

Also Published As

Publication number Publication date
CN118787360B (en) 2025-03-07

Similar Documents

Publication Publication Date Title
Li et al. Classification of ECG signals based on 1D convolution neural network
Jun et al. ECG arrhythmia classification using a 2-D convolutional neural network
Cao et al. Atrial fibrillation detection using an improved multi-scale decomposition enhanced residual convolutional neural network
CN106845401B (en) Pest image identification method based on multi-space convolution neural network
CN109645980A (en) A method for classifying abnormal heart rhythm based on deep transfer learning
CN104523264B (en) Electrocardiosignal processing method
CN109389171B (en) Medical image classification method based on multi-granularity convolutional denoising autoencoder technology
CN110119707B (en) A method of human action recognition
CN111310787B (en) Brain function network multi-core fuzzy clustering method based on stacked encoder
CN110522444A (en) A Kernel-CNN-based ECG Signal Recognition and Classification Method
CN111127316A (en) Single face image super-resolution method and system based on SNGAN network
CN116361688A (en) Multi-mode feature fusion model construction method for automatic classification of electrocardiographic rhythms
CN111582041A (en) Electroencephalogram identification method based on CWT and MLMSFFCNN
CN116186593B (en) An ECG signal detection method based on separable convolution and attention mechanism
CN111956208A (en) ECG signal classification method based on ultra-lightweight convolutional neural network
Patel et al. Deep leaning architectures and its applications: A survey
CN110288028B (en) ECG detection method, system, device and computer-readable storage medium
CN114973418A (en) Behavior identification method of cross-modal three-dimensional point cloud sequence space-time characteristic network
CN116628605A (en) A method and device for electricity stealing classification based on ResNet and DSC Attention mechanism
Da et al. Brain CT image classification with deep neural networks
CN116028858A (en) Pre-labeled self-supervision neural network learning heart beat classification method and system
Li et al. A novel motor imagery EEG recognition method based on deep learning
CN115905819A (en) rPPG signal generation method and device based on generation countermeasure network
Zhou et al. Leadwise clustering multi-branch network for multi-label ECG classification
CN110613445A (en) DWNN framework-based electrocardiosignal identification method

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