WO2021031155A1 - Method and device for multi-scale characteristic extraction based on ecg - Google Patents

Method and device for multi-scale characteristic extraction based on ecg Download PDF

Info

Publication number
WO2021031155A1
WO2021031155A1 PCT/CN2019/101810 CN2019101810W WO2021031155A1 WO 2021031155 A1 WO2021031155 A1 WO 2021031155A1 CN 2019101810 W CN2019101810 W CN 2019101810W WO 2021031155 A1 WO2021031155 A1 WO 2021031155A1
Authority
WO
WIPO (PCT)
Prior art keywords
ecg
scale
ecg signal
layer
lead
Prior art date
Application number
PCT/CN2019/101810
Other languages
French (fr)
Chinese (zh)
Inventor
李烨
刘记奎
苗芬
闻博
刘增丁
Original Assignee
中国科学院深圳先进技术研究院
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 中国科学院深圳先进技术研究院 filed Critical 中国科学院深圳先进技术研究院
Priority to PCT/CN2019/101810 priority Critical patent/WO2021031155A1/en
Publication of WO2021031155A1 publication Critical patent/WO2021031155A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons

Definitions

  • the present invention relates to the field of medical information processing, in particular to an ECG-based multi-scale feature extraction method and device.
  • Myocardial infarction is the most common cardiovascular disease. It is mainly caused by the hypoxia of the corresponding downstream myocardium caused by the blockage of the coronary arteries, which in turn leads to necrosis of the myocardium in this area.
  • ECG is the main tool for measuring the electrical activity of the heart.
  • the 12-lead ECG can correspond to the corresponding heart area and is widely used in the clinical diagnosis of myocardial infarction.
  • Clinically, determining the location of myocardial infarction is of great significance for further treatment.
  • Experienced clinicians can determine the location of the infarction based on the coupling relationship between multiple leads.
  • the ST segment is too high and pathological Q waves occur in leads V1 and V2, indicating that the location of myocardial infarction may occur in the anterior wall of the heart; if similar waveform changes occur in leads II, III, and aVF, then It indicates that the infarction occurred in the lower wall of the heart.
  • this judgment often places high demands on the doctor's experience, and it is a time-consuming and laborious process. Therefore, it is necessary to develop an automatic detection system for the location of myocardial infarction.
  • Current researches are mainly based on the combination of feature extraction and traditional machine learning.
  • These methods first acquire features related to myocardial infarction through feature extraction algorithms, such as acquiring Q waves, R waves, S waves, and T waves through feature point detection algorithms, and then Based on these feature points, the corresponding waveform features are extracted, and finally, traditional machine learning algorithms (BP neural network, SVM, K-NN, etc.) are used to classify and recognize the features.
  • feature extraction algorithms such as acquiring Q waves, R waves, S waves, and T waves through feature point detection algorithms
  • feature point detection algorithms Based on these feature points, the corresponding waveform features are extracted, and finally, traditional machine learning algorithms (BP neural network, SVM, K-NN, etc.) are used to classify and recognize the features.
  • the embodiment of the present invention provides an ECG-based multi-scale feature extraction method and device, so as to at least solve the existing technical problem that deeper variation features cannot be extracted when performing feature extraction on ECG signals.
  • an ECG-based multi-scale feature extraction method which includes the following steps:
  • a number of ECG signal identification units are obtained based on the ECG signal interception of one lead, and the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
  • the ECG multi-scale spatial signal in the ECG multi-scale space is extracted through a preset convolutional neural network.
  • obtaining several ECG signal identification units based on the ECG signal interception of one lead includes:
  • k takes the value 2.
  • the multi-scale decomposition of several ECG signal recognition units to construct the ECG multi-scale space includes:
  • the horizontal arrangement is a two-dimensional matrix A1,
  • the horizontal arrangement is a two-dimensional matrix A2,
  • the horizontal arrangement is a two-dimensional matrix A3,...; then A1, A2, A3,... are superimposed into a multi-dimensional matrix; ...Is the wavelet frequency band decomposed by the ECG signal recognition unit according to the multi-scale space construction formula of the ECG signal;
  • the multi-scale space construction formula of ECG signal is as follows:
  • the ECG signal identification unit is subjected to 3-scale decomposition according to the multi-scale space construction formula of the ECG signal.
  • the preset convolutional neural network structure is designed as: input layer ⁇ convolution layer 1 ⁇ convolution layer 2 ⁇ pooling layer 1 ⁇ convolution layer 3 ⁇ convolution layer 4 ⁇ pooling layer 2 ⁇ convolution layer 5 ⁇ Pooling layer 3 ⁇ Convolutional layer 6 ⁇ Pooling layer 4 ⁇ Convolutional layer 7 ⁇ Fully connected layer 1 ⁇ Fully connected layer 2 ⁇ SoftMax classifier ⁇ output layer.
  • the ReLu function is used as the activation function; the training phase of the preset convolutional neural network structure adds the Dropout operation to the fully connected layer 1 and the fully connected layer 2 respectively;
  • the L2 regular term is added to the objective function.
  • the method further includes:
  • performing filtering processing on the collected lead ECG signal includes:
  • the baseline drift of the lead ECG signal is removed by wavelet technology, and the power frequency interference of the ECG signal is removed by the combined denoising method of wavelet and Butterworth filter.
  • an ECG-based multi-scale feature extraction device including:
  • the identification unit intercepting unit is used to obtain several ECG signal identification units based on the ECG signal interception of one lead, and the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
  • the ECG multi-scale space construction unit is used for multi-scale decomposition of several ECG signal recognition units to construct the ECG multi-scale space;
  • the multi-scale feature extraction unit is configured to extract the ECG multi-scale spatial signals in the ECG multi-scale space through a preset convolutional neural network.
  • the ECG-based multi-scale feature extraction method and device in the embodiment of the present invention obtain several ECG signal identification units based on the interception of the ECG signal of one lead.
  • the ECG signal identification unit is that the ECG signal of one lead includes at least one cardiac cycle. Band, it will be more conducive to the convolutional neural network to learn the ECG variability and spatial features of myocardial infarction, and the preset convolutional neural network can extract deeper variability features from the ECG signal.
  • This variability feature has more Strong disease discrimination ability, and according to the spatial learning ability of the convolutional neural network to obtain the spatial characteristics related to the location of the disease, it has important practical reference value for doctors to predict the location of myocardial infarction.
  • FIG. 1 is a flowchart of the ECG-based multi-scale feature extraction method of the present invention
  • FIG. 2 is a preferred flow chart of the ECG-based multi-scale feature extraction method of the present invention.
  • Fig. 3 is a denoising result diagram of the ECG-based multi-scale feature extraction method of the present invention.
  • FIG. 4 is a schematic diagram of the ECG signal recognition unit intercepting the ECG-based multi-scale feature extraction method of the present invention
  • FIG. 5 is a schematic diagram of the 3-dimensional multi-scale space structure of the ECG-based multi-scale feature extraction method of the present invention.
  • FIG. 6 is a block diagram of the ECG-based multi-scale feature extraction device of the present invention.
  • Fig. 7 is a preferred module diagram of the ECG-based multi-scale feature extraction device of the present invention.
  • an ECG-based multi-scale feature extraction method includes the following steps:
  • S101 Obtain several ECG signal identification units based on the ECG signal interception of one lead, where the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
  • S102 Perform multi-scale decomposition of several ECG signal recognition units to construct an ECG multi-scale space
  • S103 Perform multi-scale feature extraction on the ECG multi-scale spatial signal in the ECG multi-scale space through a preset convolutional neural network.
  • a number of ECG signal identification units are obtained based on the interception of the ECG signal of one lead, and the ECG signal identification unit is a band that includes at least one cardiac cycle in the ECG signal of one lead.
  • the convolutional neural network will be more conducive to the convolutional neural network to learn the ECG variability and spatial characteristics of myocardial infarction, and the preset convolutional neural network can extract deeper variability features from the ECG signal.
  • This variability feature has strong The ability to discriminate diseases, and obtain the spatial characteristics related to the location of the disease according to the spatial learning ability of the convolutional neural network, has important practical reference value for doctors to predict the location of myocardial infarction.
  • obtaining several ECG signal identification units based on the ECG signal interception of one lead includes:
  • k takes the value 2.
  • This method actually intercepts the ECG sequence of two cycles, including the second half cycle of the nth cycle (the R wave front is the first half cycle, and the R wave after the R wave is the second half cycle), the n+1th complete cardiac cycle And the first half of the n+2th cycle.
  • the advantage of this method is that each ECG signal recognition unit contains a continuous and complete cardiac cycle.
  • performing multi-scale decomposition of several ECG signal recognition units, and constructing an ECG multi-scale space includes:
  • the horizontal arrangement is a two-dimensional matrix A1,
  • the horizontal arrangement is a two-dimensional matrix A2,
  • the horizontal arrangement is a two-dimensional matrix A3,...; then A1, A2, A3,... are superimposed into a multi-dimensional matrix; ...Is the wavelet frequency band decomposed by the ECG signal recognition unit according to the multi-scale space construction formula of the ECG signal;
  • the multi-scale space construction formula of ECG signal is as follows:
  • the ECG signal identification unit performs 3-scale decomposition according to the multi-scale space construction formula of the ECG signal.
  • the signal of 3 scales was enough to express the ECG variation characteristics of deep-level myocardial infarction.
  • the preset convolutional neural network structure is designed as: input layer ⁇ convolution layer 1 ⁇ convolution layer 2 ⁇ pooling layer 1 ⁇ convolution layer 3 ⁇ convolution layer 4 ⁇ pooling layer 2 ⁇ convolution layer 5 ⁇ Pooling layer 3 ⁇ Convolutional layer 6 ⁇ Pooling layer 4 ⁇ Convolutional layer 7 ⁇ Fully connected layer 1 ⁇ Fully connected layer 2 ⁇ SoftMax classifier ⁇ output layer.
  • the ReLu function is used as the activation function; in the training phase of the preset convolutional neural network structure, the dropout operation is added to the fully connected layer 1 and the fully connected layer 2 respectively;
  • the L2 regular term is added to the objective function. Since the ReLu function has the characteristics of gradient unsaturation and fast calculation speed, which can quickly achieve convergence, the present invention uses the ReLu function as the activation function.
  • the present invention is in the training phase are connected in the whole layer 1 and the layer 2 to the fully connected Dro p out operation.
  • the present invention adds an L2 regular term to the objective function to obtain sparse model parameters and improve the generalization ability of the model.
  • the method before obtaining several ECG signal identification units based on the ECG signal interception of one lead further includes:
  • S100 Perform filtering processing on the collected lead ECG signals to remove related noise interference.
  • performing filtering processing on the collected lead ECG signal includes:
  • the baseline drift of the lead ECG signal is removed by wavelet technology, and the power frequency interference of the ECG signal is removed by the combined denoising method of wavelet and Butterworth filter.
  • the present invention proposes a multi-scale feature extraction method based on the combination of wavelet transform and convolutional neural network.
  • the method can extract deeper variation features from ECG signals.
  • This variation feature not only has a strong ability to discriminate diseases, but also The feature's anti-noise ability is improved, and the spatial features related to the onset location are obtained according to the spatial learning ability of the convolutional neural network, which has important practical reference value for doctors to predict the location of myocardial infarction.
  • the method of the present invention mainly analyzes the 12-lead ECG signal through wavelet transform and convolutional neural network technology to obtain the spatial characteristics related to the location of the onset, thereby facilitating the prediction of the location of myocardial infarction, and providing important information for the doctor to predict the location of the lesion in accordance with.
  • the technology of the present invention is mainly used for auxiliary diagnosis of doctors in hospitals, and cannot directly diagnose diseases.
  • the content is as follows:
  • the ECG signal is pre-processed, and this step is mainly to achieve signal denoising through filtering technology; the second step is to obtain the R-wave apex of the ECG waveform through the waveform detection algorithm for the segmentation of the ECG signal identification unit; third, the segmentation The ECG unit performs multi-scale decomposition and multi-scale spatial construction to obtain multi-scale ECG spatial signals; finally, the disease-related features and spatial features are extracted through the convolutional neural network, and the disease location is classified through the softmax classifier.
  • this method actually intercepts the ECG sequence of two cycles, including the second half cycle of the nth cycle (the R wave front is the first half cycle, and the R wave is the second half cycle), the n+1th cycle The complete cardiac cycle and the first half of the n+2 cycle.
  • the advantage of this method is that because each ECG signal recognition unit contains a continuous and complete cardiac cycle, it will be more conducive to the convolutional neural network to learn the ECG variability and spatial characteristics of myocardial infarction, and then normalize the ECG signal recognition unit Converted to a length of 400 sampling points.
  • ECG multi-scale space construction Multi-scale decomposition of the intercepted ECG signal recognition unit is carried out through wavelet transform technology. In the preliminary experiment of the present invention, it is decomposed in 3 scales. The experiment thinks that the signal of 3 scales is sufficient Express the ECG variation characteristics of deep-level myocardial infarction, but not limited to 3-scale decomposition. Take the 3-scale wavelet decomposition used in previous experimental studies as an example, the multi-scale space construction formula of ECG signal is as follows:
  • ECG multi-scale space The steps for constructing ECG multi-scale space are as follows: firstly take 12 leads The horizontal arrangement is a two-dimensional matrix A1, The horizontal arrangement is a two-dimensional matrix A2, The horizontal arrangement is a two-dimensional matrix A3; then A1, A2, and A3 are superimposed into a three-dimensional matrix, which is represented as shown in Figure 5.
  • the ECG multi-scale spatial signal constructed in step (3) is used for feature extraction and disease identification through a convolutional neural network.
  • the convolutional neural network structure is designed as: input layer ⁇ convolution layer 1 ⁇ convolution layer 2 ⁇ pooling layer 1 ⁇ convolution layer 3 ⁇ convolution layer 4 ⁇ pooling layer 2 ⁇ convolution layer 5 ⁇ pooling layer 3 ⁇ Convolutional layer 6 ⁇ Pooling layer 4 ⁇ Convolutional layer 7 ⁇ Fully connected layer 1 ⁇ Fully connected layer 2 ⁇ SoftMax classifier ⁇ output layer. Since the ReLu function has the characteristics of gradient unsaturation and fast calculation speed, which can quickly achieve convergence, the present invention uses the ReLu function as the activation function.
  • the present invention adds dropout operations to the fully connected layer 1 and the fully connected layer 2 respectively during the training phase.
  • the present invention adds an L2 regular term to the objective function to obtain sparse model parameters and improve the generalization ability of the model.
  • s l the size of the step size of the first layer
  • Output Indicates the height, width and channel number of layer 1-1 output
  • the convolutional neural network structure parameters are defined as follows:
  • Input layer size 400*12*3,
  • Convolutional layer 1 output size: 398*11*32, (Number of channels);
  • the output size of pooling layer 1 198*10*64,
  • Convolutional layer 6 output size: 45*3*64,
  • Convolutional layer 7 output size: 20*1*32,
  • Output layer This layer has 6 output nodes. The output results of this layer are judged by the SoftMax classifier, and the output results are divided into 6 categories (anterior wall myocardial infarction, inferior wall myocardial infarction, anterior wall myocardial infarction, anterior septal myocardial infarction , Inferior wall myocardial infarction and inferior posterior wall myocardial infarction);
  • an ECG-based multi-scale feature extraction device is provided. See FIG. 6, including:
  • the identification unit intercepting unit 201 is configured to obtain several ECG signal identification units based on the ECG signal interception of one lead, and the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
  • the ECG multi-scale space construction unit 202 is used for multi-scale decomposition of several ECG signal recognition units to construct an ECG multi-scale space;
  • the multi-scale feature extraction unit 203 is configured to extract the ECG multi-scale spatial signals in the ECG multi-scale space through a preset convolutional neural network.
  • the ECG-based multi-scale feature extraction device in the embodiment of the present invention obtains several ECG signal identification units based on the interception of the ECG signal of one lead, and the ECG signal identification unit is a band of at least one cardiac cycle included in the ECG signal of one lead, It will be more conducive to the convolutional neural network to learn the ECG variability and spatial characteristics of myocardial infarction, and the preset convolutional neural network can extract deeper variability features from the ECG signal.
  • This variability feature has strong The ability to discriminate diseases, and obtain the spatial characteristics related to the location of the disease according to the spatial learning ability of the convolutional neural network, has important practical reference value for doctors to predict the location of myocardial infarction.
  • the device further includes:
  • the filtering processing unit 200 is configured to perform filtering processing on the collected lead ECG signals.
  • the filter processing unit 200 removes the baseline drift of the lead ECG signal through wavelet technology, and then removes the power frequency interference of the ECG signal through a combined wavelet and Butterworth filter denoising method.
  • the present invention proposes a multi-scale feature extraction device based on the combination of wavelet transform and convolutional neural network.
  • the device can extract deeper variation features from ECG signals.
  • This variation feature not only has a strong ability to discriminate diseases, but also The feature's anti-noise ability is improved, and the spatial features related to the onset location are obtained according to the spatial learning ability of the convolutional neural network, which has important practical reference value for doctors to predict the location of myocardial infarction.
  • the device of the present invention mainly analyzes the 12-lead ECG signal through wavelet transform and convolutional neural network technology to obtain the spatial characteristics related to the location of the onset, thereby facilitating the prediction of the location of myocardial infarction, and providing important information for the doctor to predict the location of the lesion in accordance with.
  • the technology of the present invention is mainly used for auxiliary diagnosis of doctors in hospitals, and cannot directly diagnose diseases.
  • the content is as follows:
  • the ECG signal is pre-processed, and this step is mainly to achieve signal denoising through filtering technology; the second step is to obtain the R-wave apex of the ECG waveform through the waveform detection algorithm for the segmentation of the ECG signal identification unit; third, the segmentation The ECG unit performs multi-scale decomposition and multi-scale spatial construction to obtain multi-scale ECG spatial signals; finally, the disease-related features and spatial features are extracted through the convolutional neural network, and the disease location is classified through the softmax classifier.
  • Filter processing unit 200 filter the collected ECG signals, including removing baseline drift, power frequency interference and other noises. First, the wavelet technique is used to remove the baseline drift, and then the wavelet and Butterworth filter joint denoising method is used to remove other ECG interference noise. The denoising result is shown in Figure 3.
  • Recognition unit intercepting unit 201 Perform key point detection on the ECG signal to obtain the apex of the R wave.
  • this method actually intercepts the ECG sequence of two cycles, including the second half cycle of the nth cycle (the R wave front is the first half cycle, and the R wave is the second half cycle), the n+1th cycle The complete cardiac cycle and the first half of the n+2 cycle.
  • the advantage of this method is that because each ECG signal recognition unit contains a continuous and complete cardiac cycle, it will be more conducive to the convolutional neural network to learn the ECG variability and spatial characteristics of myocardial infarction, and then normalize the ECG signal recognition unit Converted to a length of 400 sampling points.
  • ECG multi-scale space construction unit 202 Multi-scale decomposition is performed on the intercepted ECG signal recognition unit through wavelet transform technology. In the previous experiment of the present invention, it was decomposed into 3 scales. The experiment considered that the 3-scale signal is sufficient to express The ECG variability characteristics of deep-level myocardial infarction, but not limited to 3-scale decomposition. Take the 3-scale wavelet decomposition used in previous experimental studies as an example, the multi-scale space construction formula of ECG signal is as follows:
  • ECG multi-scale space The steps for constructing ECG multi-scale space are as follows: firstly take 12 leads The horizontal arrangement is a two-dimensional matrix A1, The horizontal arrangement is a two-dimensional matrix A2, The horizontal arrangement is a two-dimensional matrix A3; then A1, A2, and A3 are superimposed into a three-dimensional matrix, which is represented as shown in Figure 5.
  • the multi-scale feature extraction unit 203 the ECG multi-scale spatial signal constructed in the ECG multi-scale space construction unit 202 is used for feature extraction and disease identification through a convolutional neural network.
  • the convolutional neural network structure is designed as: input layer ⁇ convolution layer 1 ⁇ convolution layer 2 ⁇ pooling layer 1 ⁇ convolution layer 3 ⁇ convolution layer 4 ⁇ pooling layer 2 ⁇ convolution layer 5 ⁇ pooling layer 3 ⁇ Convolutional layer 6 ⁇ Pooling layer 4 ⁇ Convolutional layer 7 ⁇ Fully connected layer 1 ⁇ Fully connected layer 2 ⁇ SoftMax classifier ⁇ output layer. Since the ReLu function has the characteristics of gradient unsaturation and fast calculation speed, which can quickly achieve convergence, the present invention uses the ReLu function as the activation function.
  • the present invention adds dropout operations to the fully connected layer 1 and the fully connected layer 2 respectively during the training phase.
  • the present invention adds an L2 regular term to the objective function to obtain sparse model parameters and improve the generalization ability of the model.
  • s l the size of the step size of the first layer
  • Output Indicates the height, width and channel number of layer 1-1 output
  • the convolutional neural network structure parameters are defined as follows:
  • Input layer size 400*12*3,
  • Convolutional layer 1 output size: 398*11*32, (Number of channels);
  • the output size of pooling layer 1 198*10*64,
  • Convolutional layer 6 output size: 45*3*64,
  • Convolutional layer 7 output size: 20*1*32,
  • Output layer This layer has 6 output nodes. The output results of this layer are judged by the SoftMax classifier, and the output results are divided into 6 categories (anterior wall myocardial infarction, inferior wall myocardial infarction, anterior wall myocardial infarction, anterior septal myocardial infarction , Inferior wall myocardial infarction and inferior posterior wall myocardial infarction);
  • the preliminary experiments of the present invention are trained and tested on the Penn Tree Bank (PTB) database.
  • PTB Penn Tree Bank
  • the innovations of the ECG-based multi-scale feature extraction method and device of the present invention are at least:
  • the segmentation method of the ECG signal recognition unit that is, by intercepting the segment between the nth R wave and the n+kth R wave apex as the recognition unit;
  • the present invention designs an ECG multi-scale space construction method suitable for convolutional neural network input
  • the present invention adds Dropout operations to fully connected layer 1 and fully connected layer 2 respectively in the training phase, and adds L2 regular term to the objective function.
  • the present invention has the advantages of high accuracy rate and strong anti-interference ability; the present invention can complete the positioning of the myocardial infarction area with at least two ECG cycles, saving golden time for patient rescue.
  • the present invention has carried out model training on a professional PTB database, and has carried out test verification on an independent data set, and the model accuracy rate reaches 97%.
  • the disclosed technical content can be implemented in other ways.
  • the system embodiment described above is only illustrative.
  • the division of units may be a logical function division, and there may be other divisions in actual implementation.
  • multiple units or components may be combined or integrated into Another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present invention essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present invention.
  • the aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code .

Abstract

The present invention relates to a method and a device for multi-scale characteristic extraction based on ECG. The method and the device firstly obtain ECG signal identification units based on a lead ECG signal interception, and performs multi-scale decomposition of the ECG signal identification units to construct an ECG multi-scale space; and then subjects the ECG multi-scale space signals in the ECG multi-scale space to multi-scale characteristic extraction by a preset convolutional neural network. The ECG signal identification units comprise at least one cardiac cycle band which is more conducive for the convolutional neural network to conduct ECG variation characteristic and spatial characteristic learning of myocardial infarction, extract variation characteristics, which have a strong ability to discriminate diseases, from a deeper level from ECG signals through the preset convolutional neural network, and obtain spatial characteristics related to location of the disease according to the spatial learning ability of the convolutional neural network, which has important practical reference value for a doctor to predict the location of the myocardial infarction.

Description

一种基于ECG的多尺度特征提取方法及装置An ECG-based multi-scale feature extraction method and device 技术领域Technical field
本发明涉及医学信息处理领域,具体而言,涉及一种基于ECG的多尺度特征提取方法及装置。The present invention relates to the field of medical information processing, in particular to an ECG-based multi-scale feature extraction method and device.
背景技术Background technique
心肌梗死是最常见的一种心血管疾病,它主要是由于冠状动脉堵塞引起的对应下游心肌缺氧,进而导致该区域的心肌发生坏死。ECG是测量心脏电活动的主要工具,12导联ECG能够对应相应的心脏区域,被广泛的应用于心肌梗死的临床诊断中。在临床上,确定心肌梗死发生位置对于进一步的治疗有重要意义。有经验的临床医生可以根据多个导联发生病变的耦合关系来确定梗死发生的位置。例如,ST段太高和病理性Q波发生在V1导联和V2导联表明心肌梗死的位置可能发生在心脏前侧壁位置;类似的波形改变如果发生在II、III、aVF导联,则预示着梗死发生在心脏的下壁位置。然而,这种判断对于医生的经验往往会有很高的要求,而且是费时和费力的过程。因此,开发心肌梗死位置自动检测系统十分有必要。当前相关研究主要基于特征提取与传统机器学习相结合的方法,这些方法首先通过特征提取算法获取心肌梗死相关特征,如通过特征点检测算法获取Q波、R波、S波以及T波等,然后基于这些特征点提取相应的波形特征,最后使用传统机器学习算法(BP神经网络、SVM、K-NN等)对特征进行分类识别。Myocardial infarction is the most common cardiovascular disease. It is mainly caused by the hypoxia of the corresponding downstream myocardium caused by the blockage of the coronary arteries, which in turn leads to necrosis of the myocardium in this area. ECG is the main tool for measuring the electrical activity of the heart. The 12-lead ECG can correspond to the corresponding heart area and is widely used in the clinical diagnosis of myocardial infarction. Clinically, determining the location of myocardial infarction is of great significance for further treatment. Experienced clinicians can determine the location of the infarction based on the coupling relationship between multiple leads. For example, the ST segment is too high and pathological Q waves occur in leads V1 and V2, indicating that the location of myocardial infarction may occur in the anterior wall of the heart; if similar waveform changes occur in leads II, III, and aVF, then It indicates that the infarction occurred in the lower wall of the heart. However, this judgment often places high demands on the doctor's experience, and it is a time-consuming and laborious process. Therefore, it is necessary to develop an automatic detection system for the location of myocardial infarction. Current researches are mainly based on the combination of feature extraction and traditional machine learning. These methods first acquire features related to myocardial infarction through feature extraction algorithms, such as acquiring Q waves, R waves, S waves, and T waves through feature point detection algorithms, and then Based on these feature points, the corresponding waveform features are extracted, and finally, traditional machine learning algorithms (BP neural network, SVM, K-NN, etc.) are used to classify and recognize the features.
但现有算法一般都需要进行Q波、R波、S波以及T波等的关键点检测,特征提取的准确性依赖于关键点检测的精准度,而关键点检测的精确度直接受到噪声的干扰,因此基于关键点检测的特征提取方法具有抗干扰能力弱的缺点;同时现有算法的模型泛化能力差,准确率低。However, existing algorithms generally need to perform key point detection such as Q wave, R wave, S wave and T wave. The accuracy of feature extraction depends on the accuracy of key point detection, and the accuracy of key point detection is directly affected by noise. Therefore, the feature extraction method based on key point detection has the disadvantage of weak anti-interference ability; at the same time, the existing algorithm has poor model generalization ability and low accuracy.
发明内容Summary of the invention
本发明实施例提供了一种基于ECG的多尺度特征提取方法及装置,以至少解决现有对ECG信号进行特征提取时无法提取更深层次的变异特征的技术问题。The embodiment of the present invention provides an ECG-based multi-scale feature extraction method and device, so as to at least solve the existing technical problem that deeper variation features cannot be extracted when performing feature extraction on ECG signals.
根据本发明的一实施例,提供了一种基于ECG的多尺度特征提取方法,包括以下步骤:According to an embodiment of the present invention, an ECG-based multi-scale feature extraction method is provided, which includes the following steps:
基于一个导联的ECG信号截取获得若干ECG信号识别单元,ECG信号识别单元为一个导联的ECG信号中包括至少一个心动周期的波段;A number of ECG signal identification units are obtained based on the ECG signal interception of one lead, and the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
将若干ECG信号识别单元进行多尺度分解,构建ECG多尺度空间;Multi-scale decomposition of several ECG signal recognition units to construct an ECG multi-scale space;
将ECG多尺度空间中的ECG多尺度空间信号通过预设的卷积神经网络进行多尺度特征提取。The ECG multi-scale spatial signal in the ECG multi-scale space is extracted through a preset convolutional neural network.
进一步地,基于一个导联的ECG信号截取获得若干ECG信号识别单元包括:Further, obtaining several ECG signal identification units based on the ECG signal interception of one lead includes:
对一个导联的ECG信号进行关键点检测获取R波顶点,然后根据检测到的R波顶点位置对每个导联进行ECG信号识别单元截取,截取表达式为:ECG cell=ECG[R(n+k)-R(n)];其中:R(n+k)-R(n)表示第n个R波顶点和第n+k个R波顶点间的ECG序列,n、k=1,2,3,4,…。 Perform key point detection on the ECG signal of a lead to obtain the R wave apex, and then perform the ECG signal recognition unit interception on each lead according to the detected R wave apex position. The interception expression is: ECG cell = ECG[R(n +k)-R(n)]; where: R(n+k)-R(n) represents the ECG sequence between the nth R wave vertex and the n+kth R wave vertex, n, k=1, 2, 3, 4,...
进一步地,k取值2。Further, k takes the value 2.
进一步地,将若干ECG信号识别单元进行多尺度分解,构建ECG多尺度空间包括:Further, the multi-scale decomposition of several ECG signal recognition units to construct the ECG multi-scale space includes:
分别取12个导联的
Figure PCTCN2019101810-appb-000001
横向排列为二维矩阵A1,
Figure PCTCN2019101810-appb-000002
横向排列为二维矩阵A2,
Figure PCTCN2019101810-appb-000003
横向排列为二维矩阵A3,…;然后将A1、A2、A3,…叠加为多维矩阵;其中
Figure PCTCN2019101810-appb-000004
…为ECG信号识别单元根据ECG信号的多尺度空间构建公式被分解的小波频带;
Take 12 leads separately
Figure PCTCN2019101810-appb-000001
The horizontal arrangement is a two-dimensional matrix A1,
Figure PCTCN2019101810-appb-000002
The horizontal arrangement is a two-dimensional matrix A2,
Figure PCTCN2019101810-appb-000003
The horizontal arrangement is a two-dimensional matrix A3,...; then A1, A2, A3,... are superimposed into a multi-dimensional matrix;
Figure PCTCN2019101810-appb-000004
…Is the wavelet frequency band decomposed by the ECG signal recognition unit according to the multi-scale space construction formula of the ECG signal;
ECG信号的多尺度空间构建公式如下:The multi-scale space construction formula of ECG signal is as follows:
Figure PCTCN2019101810-appb-000005
Figure PCTCN2019101810-appb-000005
Figure PCTCN2019101810-appb-000006
Figure PCTCN2019101810-appb-000006
其中c和d分别表示导联信号的近似和细节小波系数,h和g为对应的低通滤波器和高通滤波器,其中n、k=1,2,3,4,…。Where c and d represent the approximate and detailed wavelet coefficients of the lead signal, respectively, h and g are the corresponding low-pass filters and high-pass filters, where n, k = 1, 2, 3, 4,....
进一步地,对ECG信号识别单元根据ECG信号的多尺度空间构建公式进行3尺度分解。Further, the ECG signal identification unit is subjected to 3-scale decomposition according to the multi-scale space construction formula of the ECG signal.
进一步地,预设的卷积神经网络结构设计为:输入层→卷积层1→卷积层2→池化层1→卷积层3→卷积层4→池化层2→卷积层5→池化层3→卷积层6→池化层4→卷积层7→全连接层1→全连接层2→SoftMax分类器→输出层。Furthermore, the preset convolutional neural network structure is designed as: input layer→convolution layer 1→convolution layer 2→pooling layer 1→convolution layer 3→convolution layer 4→pooling layer 2→convolution layer 5→Pooling layer 3→Convolutional layer 6→Pooling layer 4→Convolutional layer 7→Fully connected layer 1→Fully connected layer 2→SoftMax classifier→output layer.
进一步地,在预设的卷积神经网络结构中,使用ReLu函数作为激活函数;预设的卷积神经网络结构的训练阶段分别在全连接层1和全连接层2中加入Dropout操作;在预设的卷积神经网络结构中,在其目标函数中加入L2正则项。Further, in the preset convolutional neural network structure, the ReLu function is used as the activation function; the training phase of the preset convolutional neural network structure adds the Dropout operation to the fully connected layer 1 and the fully connected layer 2 respectively; In the proposed convolutional neural network structure, the L2 regular term is added to the objective function.
进一步地,该方法在基于一个导联的ECG信号截取获得若干ECG信号识别单元之前还包括:Further, before obtaining several ECG signal identification units based on the ECG signal interception of one lead, the method further includes:
对采集的导联ECG信号进行滤波处理。Filter the collected lead ECG signals.
进一步地,对采集的导联ECG信号进行滤波处理包括:Further, performing filtering processing on the collected lead ECG signal includes:
通过小波技术去除导联ECG信号基线漂移,然后通过小波与巴特沃兹滤波器联合去噪方法去除ECG信号的工频干扰。The baseline drift of the lead ECG signal is removed by wavelet technology, and the power frequency interference of the ECG signal is removed by the combined denoising method of wavelet and Butterworth filter.
根据本发明的另一实施例,提供了一种基于ECG的多尺度特征提取装置,包括:According to another embodiment of the present invention, there is provided an ECG-based multi-scale feature extraction device, including:
识别单元截取单元,用于基于一个导联的ECG信号截取获得若干ECG信号 识别单元,ECG信号识别单元为一个导联的ECG信号中包括至少一个心动周期的波段;The identification unit intercepting unit is used to obtain several ECG signal identification units based on the ECG signal interception of one lead, and the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
ECG多尺度空间构建单元,用于将若干ECG信号识别单元进行多尺度分解,构建ECG多尺度空间;The ECG multi-scale space construction unit is used for multi-scale decomposition of several ECG signal recognition units to construct the ECG multi-scale space;
多尺度特征提取单元,用于将ECG多尺度空间中的ECG多尺度空间信号通过预设的卷积神经网络进行多尺度特征提取。The multi-scale feature extraction unit is configured to extract the ECG multi-scale spatial signals in the ECG multi-scale space through a preset convolutional neural network.
本发明实施例中的基于ECG的多尺度特征提取方法及装置,基于一个导联的ECG信号截取获得若干ECG信号识别单元,ECG信号识别单元为一个导联的ECG信号中包括至少一个心动周期的波段,将更加有利于卷积神经网络进行心肌梗死的心电图变异特征与空间特征学习,并通过预设的卷积神经网络能够从心电信号中提取更深层次的变异特征,这种变异特征具有较强的疾病判别能力,并根据卷积神经网络的空间学习能力获取发病位置相关的空间特征,为医生进行心肌梗死的位置预判具有重要的实际参考价值。The ECG-based multi-scale feature extraction method and device in the embodiment of the present invention obtain several ECG signal identification units based on the interception of the ECG signal of one lead. The ECG signal identification unit is that the ECG signal of one lead includes at least one cardiac cycle. Band, it will be more conducive to the convolutional neural network to learn the ECG variability and spatial features of myocardial infarction, and the preset convolutional neural network can extract deeper variability features from the ECG signal. This variability feature has more Strong disease discrimination ability, and according to the spatial learning ability of the convolutional neural network to obtain the spatial characteristics related to the location of the disease, it has important practical reference value for doctors to predict the location of myocardial infarction.
附图说明Description of the drawings
图1为本发明基于ECG的多尺度特征提取方法的流程图;Figure 1 is a flowchart of the ECG-based multi-scale feature extraction method of the present invention;
图2为本发明基于ECG的多尺度特征提取方法的优选流程图;Figure 2 is a preferred flow chart of the ECG-based multi-scale feature extraction method of the present invention;
图3为本发明基于ECG的多尺度特征提取方法的去噪结果图;Fig. 3 is a denoising result diagram of the ECG-based multi-scale feature extraction method of the present invention;
图4为本发明基于ECG的多尺度特征提取方法的ECG信号识别单元截取示意图;4 is a schematic diagram of the ECG signal recognition unit intercepting the ECG-based multi-scale feature extraction method of the present invention;
图5为本发明基于ECG的多尺度特征提取方法的3维多尺度空间构造原理图;FIG. 5 is a schematic diagram of the 3-dimensional multi-scale space structure of the ECG-based multi-scale feature extraction method of the present invention;
图6为本发明基于ECG的多尺度特征提取装置的模块图;6 is a block diagram of the ECG-based multi-scale feature extraction device of the present invention;
图7为本发明基于ECG的多尺度特征提取装置的优选模块图。Fig. 7 is a preferred module diagram of the ECG-based multi-scale feature extraction device of the present invention.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions, and advantages of this application clearer, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and not used to limit the application.
实施例一Example one
根据本发明一实施例,提供了一种基于ECG的多尺度特征提取方法,参见图1,包括以下步骤:According to an embodiment of the present invention, an ECG-based multi-scale feature extraction method is provided. Referring to FIG. 1, the method includes the following steps:
S101:基于一个导联的ECG信号截取获得若干ECG信号识别单元,ECG信号识别单元为一个导联的ECG信号中包括至少一个心动周期的波段;S101: Obtain several ECG signal identification units based on the ECG signal interception of one lead, where the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
S102:将若干ECG信号识别单元进行多尺度分解,构建ECG多尺度空间;S102: Perform multi-scale decomposition of several ECG signal recognition units to construct an ECG multi-scale space;
S103:将ECG多尺度空间中的ECG多尺度空间信号通过预设的卷积神经网络进行多尺度特征提取。S103: Perform multi-scale feature extraction on the ECG multi-scale spatial signal in the ECG multi-scale space through a preset convolutional neural network.
本发明实施例中的基于ECG的多尺度特征提取方法,基于一个导联的ECG信号截取获得若干ECG信号识别单元,ECG信号识别单元为一个导联的ECG信号中包括至少一个心动周期的波段,将更加有利于卷积神经网络进行心肌梗死的心电图变异特征与空间特征学习,并通过预设的卷积神经网络能够从心电信号中提取更深层次的变异特征,这种变异特征具有较强的疾病判别能力,并根据卷积神经网络的空间学习能力获取发病位置相关的空间特征,为医生进行心肌梗死的位置预判具有重要的实际参考价值。In the ECG-based multi-scale feature extraction method in the embodiment of the present invention, a number of ECG signal identification units are obtained based on the interception of the ECG signal of one lead, and the ECG signal identification unit is a band that includes at least one cardiac cycle in the ECG signal of one lead. It will be more conducive to the convolutional neural network to learn the ECG variability and spatial characteristics of myocardial infarction, and the preset convolutional neural network can extract deeper variability features from the ECG signal. This variability feature has strong The ability to discriminate diseases, and obtain the spatial characteristics related to the location of the disease according to the spatial learning ability of the convolutional neural network, has important practical reference value for doctors to predict the location of myocardial infarction.
优选地,基于一个导联的ECG信号截取获得若干ECG信号识别单元包括:Preferably, obtaining several ECG signal identification units based on the ECG signal interception of one lead includes:
对一个导联的ECG信号进行关键点检测获取R波顶点,然后根据检测到的R波顶点位置对每个导联进行ECG信号识别单元截取,截取表达式为:ECG cell=ECG[R(n+k)-R(n)];其中:R(n+k)-R(n)表示第n个R波顶点和第n+k个R 波顶点间的ECG序列,n、k=1,2,3,4,…。这种方法的优势是由于每个ECG信号识别单元包含一个连续完整的心动周期,将更加有利于卷积神经网络进行心肌梗死的心电图变异特征与空间特征学习。 Perform key point detection on the ECG signal of a lead to obtain the R wave apex, and then perform the ECG signal recognition unit interception on each lead according to the detected R wave apex position. The interception expression is: ECG cell = ECG[R(n +k)-R(n)]; where: R(n+k)-R(n) represents the ECG sequence between the nth R wave vertex and the n+kth R wave vertex, n, k=1, 2, 3, 4,... The advantage of this method is that because each ECG signal recognition unit contains a continuous and complete cardiac cycle, it will be more conducive to the convolutional neural network to learn the ECG variability and spatial characteristics of myocardial infarction.
优选地,k取值2。该方法实际上是截取两个周期长度的ECG序列,其中包括第n个周期的后半周期(以R波前为前半周期,R波后为后半周期)、第n+1个完整心动周期以及第n+2个周期的前半周期。这种方法的优势是由于每个ECG信号识别单元包含一个连续完整的心动周期。Preferably, k takes the value 2. This method actually intercepts the ECG sequence of two cycles, including the second half cycle of the nth cycle (the R wave front is the first half cycle, and the R wave after the R wave is the second half cycle), the n+1th complete cardiac cycle And the first half of the n+2th cycle. The advantage of this method is that each ECG signal recognition unit contains a continuous and complete cardiac cycle.
优选地,将若干ECG信号识别单元进行多尺度分解,构建ECG多尺度空间包括:Preferably, performing multi-scale decomposition of several ECG signal recognition units, and constructing an ECG multi-scale space includes:
分别取12个导联的
Figure PCTCN2019101810-appb-000007
横向排列为二维矩阵A1,
Figure PCTCN2019101810-appb-000008
横向排列为二维矩阵A2,
Figure PCTCN2019101810-appb-000009
横向排列为二维矩阵A3,…;然后将A1、A2、A3,…叠加为多维矩阵;其中
Figure PCTCN2019101810-appb-000010
…为ECG信号识别单元根据ECG信号的多尺度空间构建公式被分解的小波频带;
Take 12 leads separately
Figure PCTCN2019101810-appb-000007
The horizontal arrangement is a two-dimensional matrix A1,
Figure PCTCN2019101810-appb-000008
The horizontal arrangement is a two-dimensional matrix A2,
Figure PCTCN2019101810-appb-000009
The horizontal arrangement is a two-dimensional matrix A3,...; then A1, A2, A3,... are superimposed into a multi-dimensional matrix;
Figure PCTCN2019101810-appb-000010
…Is the wavelet frequency band decomposed by the ECG signal recognition unit according to the multi-scale space construction formula of the ECG signal;
ECG信号的多尺度空间构建公式如下:The multi-scale space construction formula of ECG signal is as follows:
Figure PCTCN2019101810-appb-000011
Figure PCTCN2019101810-appb-000011
Figure PCTCN2019101810-appb-000012
Figure PCTCN2019101810-appb-000012
其中c和d分别表示导联信号的近似和细节小波系数,h和g为对应的低通滤波器和高通滤波器,其中n、k=1,2,3,4,…。多尺度的信号足以表达出深层次的心肌梗死的心电图变异特征。Where c and d represent the approximate and detailed wavelet coefficients of the lead signal, respectively, h and g are the corresponding low-pass filters and high-pass filters, where n, k = 1, 2, 3, 4,.... Multi-scale signals are sufficient to express the ECG variation characteristics of deep-level myocardial infarction.
优选地,对ECG信号识别单元根据ECG信号的多尺度空间构建公式进行3尺度分解。在本发明的前期实验中将其进行了3个尺度的分解,实验认为3尺度的信号足以表达出深层次的心肌梗死的心电图变异特征。Preferably, the ECG signal identification unit performs 3-scale decomposition according to the multi-scale space construction formula of the ECG signal. In the previous experiment of the present invention, it was decomposed into 3 scales, and the experiment considered that the signal of 3 scales was enough to express the ECG variation characteristics of deep-level myocardial infarction.
优选地,预设的卷积神经网络结构设计为:输入层→卷积层1→卷积层2 →池化层1→卷积层3→卷积层4→池化层2→卷积层5→池化层3→卷积层6→池化层4→卷积层7→全连接层1→全连接层2→SoftMax分类器→输出层。Preferably, the preset convolutional neural network structure is designed as: input layer → convolution layer 1 → convolution layer 2 → pooling layer 1 → convolution layer 3 → convolution layer 4 → pooling layer 2 → convolution layer 5→Pooling layer 3→Convolutional layer 6→Pooling layer 4→Convolutional layer 7→Fully connected layer 1→Fully connected layer 2→SoftMax classifier→output layer.
优选地,在预设的卷积神经网络结构中,使用ReLu函数作为激活函数;预设的卷积神经网络结构的训练阶段分别在全连接层1和全连接层2中加入Dropout操作;在预设的卷积神经网络结构中,在其目标函数中加入L2正则项。由于ReLu函数具有梯度不饱和及计算速度快的特点,从而能够快速实现收敛,因此本发明使用ReLu函数作为激活函数。为防止训练模型过拟合,本发明在训练阶段分别在全连接层1和全连接层2加入Dro pout操作。为进一步防止训练模型过拟合,本发明在目标函数中加入了L2正则项,以获得稀疏的模型参数,提高模型泛化能力。 Preferably, in the preset convolutional neural network structure, the ReLu function is used as the activation function; in the training phase of the preset convolutional neural network structure, the dropout operation is added to the fully connected layer 1 and the fully connected layer 2 respectively; In the proposed convolutional neural network structure, the L2 regular term is added to the objective function. Since the ReLu function has the characteristics of gradient unsaturation and fast calculation speed, which can quickly achieve convergence, the present invention uses the ReLu function as the activation function. To prevent over-fitting the training model, the present invention is in the training phase are connected in the whole layer 1 and the layer 2 to the fully connected Dro p out operation. In order to further prevent the training model from overfitting, the present invention adds an L2 regular term to the objective function to obtain sparse model parameters and improve the generalization ability of the model.
优选地,参见图2,该方法在基于一个导联的ECG信号截取获得若干ECG信号识别单元之前还包括:Preferably, referring to Fig. 2, the method before obtaining several ECG signal identification units based on the ECG signal interception of one lead further includes:
S100:对采集的导联ECG信号进行滤波处理,去除相关噪声干扰。S100: Perform filtering processing on the collected lead ECG signals to remove related noise interference.
优选地,对采集的导联ECG信号进行滤波处理包括:Preferably, performing filtering processing on the collected lead ECG signal includes:
通过小波技术去除导联ECG信号基线漂移,然后通过小波与巴特沃兹滤波器联合去噪方法去除ECG信号的工频干扰。The baseline drift of the lead ECG signal is removed by wavelet technology, and the power frequency interference of the ECG signal is removed by the combined denoising method of wavelet and Butterworth filter.
下面以具体实施例,对本发明基于ECG的多尺度特征提取方法进行详细说明:In the following, specific embodiments are used to describe in detail the ECG-based multi-scale feature extraction method of the present invention:
本发明提出了基于小波变换与卷积神经网络相结合的多尺度特征提取方法,该方法能够从心电信号中提取更深层次的变异特征,这种变异特征不但具有较强的疾病判别能力,而且提高了特征抗噪声能力,并根据卷积神经网络的空间学习能力获取发病位置相关的空间特征,为医生进行心肌梗死的位置预判具有重要的实际参考价值。The present invention proposes a multi-scale feature extraction method based on the combination of wavelet transform and convolutional neural network. The method can extract deeper variation features from ECG signals. This variation feature not only has a strong ability to discriminate diseases, but also The feature's anti-noise ability is improved, and the spatial features related to the onset location are obtained according to the spatial learning ability of the convolutional neural network, which has important practical reference value for doctors to predict the location of myocardial infarction.
本发明的方法主要通过小波变换和卷积神经网络技术对12导联ECG信号进行分析,获取发病位置相关的空间特征,从而便于心肌梗死发生位置的预判,为医生进行病变位置预测提供重要的依据。本发明技术主要用于医院内医生的辅助诊断,并不能直接进行疾病的诊断。内容如下:The method of the present invention mainly analyzes the 12-lead ECG signal through wavelet transform and convolutional neural network technology to obtain the spatial characteristics related to the location of the onset, thereby facilitating the prediction of the location of myocardial infarction, and providing important information for the doctor to predict the location of the lesion in accordance with. The technology of the present invention is mainly used for auxiliary diagnosis of doctors in hospitals, and cannot directly diagnose diseases. The content is as follows:
首先对心电信号进行预处理,该步骤主要通过滤波技术实现信号去噪;第二步,通过波形检测算法获取ECG波形的R波顶点,用于ECG信号识别单元分割;第三,对分割的ECG单元进行多尺度分解,并进行多尺度空间构建,以获得多尺度的ECG空间信号;最后通过卷积神经网络进行疾病相关特征及空间特征提取,并通过softmax分类器实现发病位置的分类。First, the ECG signal is pre-processed, and this step is mainly to achieve signal denoising through filtering technology; the second step is to obtain the R-wave apex of the ECG waveform through the waveform detection algorithm for the segmentation of the ECG signal identification unit; third, the segmentation The ECG unit performs multi-scale decomposition and multi-scale spatial construction to obtain multi-scale ECG spatial signals; finally, the disease-related features and spatial features are extracted through the convolutional neural network, and the disease location is classified through the softmax classifier.
本发明方法的详细流程如下:The detailed process of the method of the present invention is as follows:
(1).对采集的心电信号进行滤波处理,包括去基线漂移、工频干扰及其它噪声。首先通过小波技术去除基线漂移,然后通过小波与巴特沃兹滤波器联合去噪方法去除ECG其它干扰噪声,去噪结果如图3所示。(1). Filter the collected ECG signals, including removing baseline drift, power frequency interference and other noises. First, the wavelet technique is used to remove the baseline drift, and then the wavelet and Butterworth filter joint denoising method is used to remove other ECG interference noise. The denoising result is shown in Figure 3.
(2).对ECG信号进行关键点检测获取R波顶点,对于12导联ECG信号,由于每个导联的R波位置差异极其微小,因此仅需对其中一个导联进行R波检测,然后根据检测到的R波顶点位置对每个导联进行ECG信号识别单元截取,截取表达式为:ECG cell=ECG[R(n+k)-R(n)];其中:R(n+k)-R(n)表示第n个R波顶点和第n+k个R波顶点间的ECG序列(其中n、k=1,2,3,4,…),在本发明的前期实验中将k设为2,直观的如图4所示。可以看出该方法实际上是截取两个周期长度的ECG序列,其中包括第n个周期的后半周期(以R波前为前半周期,R波后为后半周期)、第n+1个完整心动周期以及第n+2个周期的前半周期。这种方法的优势是由于每个ECG信号识别单元包含一个连续完整的心动周期,将更加有利于卷积神经网络进行心肌梗死的心电图变异特征与空间特 征学习,然后将该ECG信号识别单元归一化为400个采样点的长度。 (2). Perform key point detection on the ECG signal to obtain the apex of the R wave. For the 12-lead ECG signal, since the R wave position difference of each lead is extremely small, only one of the leads needs to be R wave detection, and then According to the detected R wave apex position, the ECG signal recognition unit is intercepted for each lead. The interception expression is: ECG cell =ECG[R(n+k)-R(n)]; where: R(n+k) )-R(n) represents the ECG sequence between the nth R wave apex and the n+kth R wave apex (where n, k=1, 2, 3, 4,...), in the previous experiment of the present invention Set k to 2, intuitively as shown in Figure 4. It can be seen that this method actually intercepts the ECG sequence of two cycles, including the second half cycle of the nth cycle (the R wave front is the first half cycle, and the R wave is the second half cycle), the n+1th cycle The complete cardiac cycle and the first half of the n+2 cycle. The advantage of this method is that because each ECG signal recognition unit contains a continuous and complete cardiac cycle, it will be more conducive to the convolutional neural network to learn the ECG variability and spatial characteristics of myocardial infarction, and then normalize the ECG signal recognition unit Converted to a length of 400 sampling points.
(3).ECG多尺度空间构建:通过小波变换技术对截取的ECG信号识别单元进行多尺度分解,在本发明的前期实验中将其进行了3个尺度的分解,实验认为3尺度的信号足以表达出深层次的心肌梗死的心电图变异特征,但不限于进行3尺度的分解。以前期实验研究中使用的3尺度小波分解为例,ECG信号的多尺度空间构建公式如下:(3) ECG multi-scale space construction: Multi-scale decomposition of the intercepted ECG signal recognition unit is carried out through wavelet transform technology. In the preliminary experiment of the present invention, it is decomposed in 3 scales. The experiment thinks that the signal of 3 scales is sufficient Express the ECG variation characteristics of deep-level myocardial infarction, but not limited to 3-scale decomposition. Take the 3-scale wavelet decomposition used in previous experimental studies as an example, the multi-scale space construction formula of ECG signal is as follows:
Figure PCTCN2019101810-appb-000013
Figure PCTCN2019101810-appb-000013
Figure PCTCN2019101810-appb-000014
Figure PCTCN2019101810-appb-000014
其中c和d分别表示导联信号的近似和细节小波系数,h和g为对应的低通滤波器和高通滤波器,其中n、k=1,2,3,4,…。原始ECG信号识别单元根据该小波分解公式被分解到3个小波频带上,分别用
Figure PCTCN2019101810-appb-000015
表示。ECG多尺度空间构建步骤为:首先分别取12个导联的
Figure PCTCN2019101810-appb-000016
横向排列为二维矩阵A1,
Figure PCTCN2019101810-appb-000017
横向排列为二维矩阵A2,
Figure PCTCN2019101810-appb-000018
横向排列为二维矩阵A3;然后将A1、A2、A3叠加为3维矩阵,其表示如图5所示。
Where c and d represent the approximate and detailed wavelet coefficients of the lead signal, respectively, h and g are the corresponding low-pass filters and high-pass filters, where n, k = 1, 2, 3, 4,.... According to the wavelet decomposition formula, the original ECG signal identification unit is decomposed into 3 wavelet frequency bands, which are respectively used
Figure PCTCN2019101810-appb-000015
Said. The steps for constructing ECG multi-scale space are as follows: firstly take 12 leads
Figure PCTCN2019101810-appb-000016
The horizontal arrangement is a two-dimensional matrix A1,
Figure PCTCN2019101810-appb-000017
The horizontal arrangement is a two-dimensional matrix A2,
Figure PCTCN2019101810-appb-000018
The horizontal arrangement is a two-dimensional matrix A3; then A1, A2, and A3 are superimposed into a three-dimensional matrix, which is represented as shown in Figure 5.
(4).将步骤(3)中构建的ECG多尺度空间信号通过卷积神经网络进行特征提取及疾病识别。该卷积神经网络结构设计为:输入层→卷积层1→卷积层2→池化层1→卷积层3→卷积层4→池化层2→卷积层5→池化层3→卷积层6→池化层4→卷积层7→全连接层1→全连接层2→SoftMax分类器→输出层。由于ReLu函数具有梯度不饱和及计算速度快的特点,从而能够快速实现收敛,因此本发明使用ReLu函数作为激活函数。为防止训练模型过拟合,本发明在训练阶段分别在全连接层1和全连接层2加入Dropout操作。为进一步防止训练模型过拟合,本发明在目标函数中加入了L2正则项,以获得稀疏的模型参数,提高模型泛化能力。(4). The ECG multi-scale spatial signal constructed in step (3) is used for feature extraction and disease identification through a convolutional neural network. The convolutional neural network structure is designed as: input layer → convolution layer 1 → convolution layer 2 → pooling layer 1 → convolution layer 3 → convolution layer 4 → pooling layer 2 → convolution layer 5 → pooling layer 3→Convolutional layer 6→Pooling layer 4→Convolutional layer 7→Fully connected layer 1→Fully connected layer 2→SoftMax classifier→output layer. Since the ReLu function has the characteristics of gradient unsaturation and fast calculation speed, which can quickly achieve convergence, the present invention uses the ReLu function as the activation function. In order to prevent the training model from overfitting, the present invention adds dropout operations to the fully connected layer 1 and the fully connected layer 2 respectively during the training phase. In order to further prevent the training model from overfitting, the present invention adds an L2 regular term to the objective function to obtain sparse model parameters and improve the generalization ability of the model.
为更清楚的定义本发明所采用的卷积神经网络结构,下面用符号化语言进行描述,其符号定义如下:In order to more clearly define the convolutional neural network structure used in the present invention, the following description is made in symbolic language, and the symbols are defined as follows:
l:第1个卷积层;l: the first convolutional layer;
f l:第1层卷积核的尺寸; f l : the size of the first layer convolution kernel;
p l:第1层padding的大小; p l : the size of the first layer padding;
s l:第1层步长的大小; s l : the size of the step size of the first layer;
Figure PCTCN2019101810-appb-000019
第1层通道的个数;
Figure PCTCN2019101810-appb-000019
The number of layer 1 channels;
Figure PCTCN2019101810-appb-000020
第1层卷积核的个数;
Figure PCTCN2019101810-appb-000020
The number of convolution kernels in the first layer;
输入:
Figure PCTCN2019101810-appb-000021
表示1-1层输入的高、宽及通道数;
enter:
Figure PCTCN2019101810-appb-000021
Indicates the height, width and channel number of layer 1-1 input;
输出:
Figure PCTCN2019101810-appb-000022
表示1-1层输出的高、宽及通道数;
Output:
Figure PCTCN2019101810-appb-000022
Indicates the height, width and channel number of layer 1-1 output;
输出图像的大小:
Figure PCTCN2019101810-appb-000023
The size of the output image:
Figure PCTCN2019101810-appb-000023
根据上述符号,卷积神经网络结构参数定义如下:According to the above symbols, the convolutional neural network structure parameters are defined as follows:
输入层尺寸:400*12*3,
Figure PCTCN2019101810-appb-000024
Input layer size: 400*12*3,
Figure PCTCN2019101810-appb-000024
卷积层1超参数:f 1=3*2*3,s 1=1,p 1=0,
Figure PCTCN2019101810-appb-000025
(卷积核个数);
Convolutional layer 1 hyperparameters: f 1 =3*2*3, s 1 =1, p 1 =0,
Figure PCTCN2019101810-appb-000025
(Number of convolution kernels);
卷积层1输出尺寸:398*11*32,
Figure PCTCN2019101810-appb-000026
(通道个数);
Convolutional layer 1 output size: 398*11*32,
Figure PCTCN2019101810-appb-000026
(Number of channels);
卷积层2超参数:f 2=3*2*32,s 2=1,p 2=0,
Figure PCTCN2019101810-appb-000027
(卷积核个数);
Convolutional layer 2 hyperparameters: f 2 =3*2*32, s 2 =1, p 2 =0,
Figure PCTCN2019101810-appb-000027
(Number of convolution kernels);
卷积层2输出尺寸:396*10*64,
Figure PCTCN2019101810-appb-000028
Convolutional layer 2 output size: 396*10*64,
Figure PCTCN2019101810-appb-000028
池化层1超参数:平均池化滤波器尺寸f 3=2*1,s 3=2*1,p 3=0,
Figure PCTCN2019101810-appb-000029
Pooling layer 1 hyperparameters: average pooling filter size f 3 = 2*1, s 3 = 2*1, p 3 =0,
Figure PCTCN2019101810-appb-000029
池化层1输出尺寸:198*10*64,
Figure PCTCN2019101810-appb-000030
The output size of pooling layer 1: 198*10*64,
Figure PCTCN2019101810-appb-000030
卷积层3超参数:f 4=3*2*64,s 4=1,p 4=0,
Figure PCTCN2019101810-appb-000031
(卷积核个数);
Convolutional layer 3 hyperparameters: f 4 =3*2*64, s 4 =1, p 4 =0,
Figure PCTCN2019101810-appb-000031
(Number of convolution kernels);
卷积层3输出尺寸:196*9*128,
Figure PCTCN2019101810-appb-000032
Convolutional layer 3 output size: 196*9*128,
Figure PCTCN2019101810-appb-000032
卷积层4超参数:f 5=3*2*128,s 5=1,p 5=0,
Figure PCTCN2019101810-appb-000033
(卷积核个数);
Convolutional layer 4 hyperparameters: f 5 =3*2*128, s 5 =1, p 5 =0,
Figure PCTCN2019101810-appb-000033
(Number of convolution kernels);
卷积层4输出尺寸:194*8*128,
Figure PCTCN2019101810-appb-000034
Convolutional layer 4 output size: 194*8*128,
Figure PCTCN2019101810-appb-000034
池化层2超参数:平均池化滤波器尺寸f 6=2*1,s 6=2*1,p 6=0,
Figure PCTCN2019101810-appb-000035
Pooling layer 2 hyperparameters: average pooling filter size f 6 =2*1, s 6 =2*1, p 6 =0,
Figure PCTCN2019101810-appb-000035
池化层2输出尺寸:97*8*128,
Figure PCTCN2019101810-appb-000036
Pooling layer 2 output size: 97*8*128,
Figure PCTCN2019101810-appb-000036
卷积层5超参数:f 7=3*3*128,s 7=1,p 7=0,
Figure PCTCN2019101810-appb-000037
(卷积核个数);
Convolutional layer 5 hyperparameters: f 7 =3*3*128, s 7 =1, p 7 =0,
Figure PCTCN2019101810-appb-000037
(Number of convolution kernels);
卷积层5输出尺寸:95*6*64,
Figure PCTCN2019101810-appb-000038
Convolutional layer 5 output size: 95*6*64,
Figure PCTCN2019101810-appb-000038
池化层3超参数:平均池化滤波器尺寸f 8=2*1,s 8=2*1,p 8=0,
Figure PCTCN2019101810-appb-000039
Pooling layer 3 hyperparameters: average pooling filter size f 8 = 2*1, s 8 = 2*1, p 8 =0,
Figure PCTCN2019101810-appb-000039
池化层3输出尺寸:47*6*64,
Figure PCTCN2019101810-appb-000040
Output size of pooling layer 3: 47*6*64,
Figure PCTCN2019101810-appb-000040
卷积层6超参数:f 9=3*3*64,s 9=1,p 9=0,
Figure PCTCN2019101810-appb-000041
(卷积核个数);
Convolutional layer 6 hyperparameters: f 9 =3*3*64, s 9 =1, p 9 =0,
Figure PCTCN2019101810-appb-000041
(Number of convolution kernels);
卷积层6输出尺寸:45*3*64,
Figure PCTCN2019101810-appb-000042
Convolutional layer 6 output size: 45*3*64,
Figure PCTCN2019101810-appb-000042
池化层4超参数:平均池化滤波器尺寸f 10=2*2,s 10=2*1,p 10=0,
Figure PCTCN2019101810-appb-000043
Pooling layer 4 hyperparameters: average pooling filter size f 10 =2*2, s 10 =2*1, p 10 =0,
Figure PCTCN2019101810-appb-000043
池化层4输出尺寸:22*2*64,
Figure PCTCN2019101810-appb-000044
Pooling layer 4 output size: 22*2*64,
Figure PCTCN2019101810-appb-000044
卷积层7超参数:f 11=3*2*32,s 11=1,p 11=0,
Figure PCTCN2019101810-appb-000045
(卷积核个数);
Convolutional layer 7 hyperparameters: f 11 =3*2*32, s 11 =1, p 11 =0,
Figure PCTCN2019101810-appb-000045
(Number of convolution kernels);
卷积层7输出尺寸:20*1*32,
Figure PCTCN2019101810-appb-000046
Convolutional layer 7 output size: 20*1*32,
Figure PCTCN2019101810-appb-000046
全连接层1展开为20*32=640的一维向量,即神经元节点数为640,训练过程中该层进行Dropout操作,其中神经元的保留概率p=0.8;The fully connected layer 1 is expanded into a one-dimensional vector of 20*32=640, that is, the number of neuron nodes is 640. During the training process, this layer performs a dropout operation, and the retention probability of neurons is p=0.8;
全连接层2中神经元节点数为128,训练过程中该层进行Dropout操作,其中神经元的保留概率p=0.8;The number of neuron nodes in the fully connected layer 2 is 128, and this layer performs a dropout operation during the training process, and the retention probability of neurons is p=0.8;
输出层:该层有6个输出节点,该层输出结果通过SoftMax分类器进行判断,将输出结果分为6类(前壁心肌梗死、下壁心肌梗死、前侧壁心肌梗死、前间隔心肌梗死、下侧壁心肌梗死以及下后侧壁心肌梗死);Output layer: This layer has 6 output nodes. The output results of this layer are judged by the SoftMax classifier, and the output results are divided into 6 categories (anterior wall myocardial infarction, inferior wall myocardial infarction, anterior wall myocardial infarction, anterior septal myocardial infarction , Inferior wall myocardial infarction and inferior posterior wall myocardial infarction);
(5).本发明的前期实验在PTB数据库上进行训练与测试。(5). The preliminary experiments of the present invention are trained and tested on the PTB database.
实施例二Example two
根据本发明的另一实施例,提供了一种基于ECG的多尺度特征提取装置, 参见图6,包括:According to another embodiment of the present invention, an ECG-based multi-scale feature extraction device is provided. See FIG. 6, including:
识别单元截取单元201,用于基于一个导联的ECG信号截取获得若干ECG信号识别单元,ECG信号识别单元为一个导联的ECG信号中包括至少一个心动周期的波段;The identification unit intercepting unit 201 is configured to obtain several ECG signal identification units based on the ECG signal interception of one lead, and the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
ECG多尺度空间构建单元202,用于将若干ECG信号识别单元进行多尺度分解,构建ECG多尺度空间;The ECG multi-scale space construction unit 202 is used for multi-scale decomposition of several ECG signal recognition units to construct an ECG multi-scale space;
多尺度特征提取单元203,用于将ECG多尺度空间中的ECG多尺度空间信号通过预设的卷积神经网络进行多尺度特征提取。The multi-scale feature extraction unit 203 is configured to extract the ECG multi-scale spatial signals in the ECG multi-scale space through a preset convolutional neural network.
本发明实施例中的基于ECG的多尺度特征提取装置,基于一个导联的ECG信号截取获得若干ECG信号识别单元,ECG信号识别单元为一个导联的ECG信号中包括至少一个心动周期的波段,将更加有利于卷积神经网络进行心肌梗死的心电图变异特征与空间特征学习,并通过预设的卷积神经网络能够从心电信号中提取更深层次的变异特征,这种变异特征具有较强的疾病判别能力,并根据卷积神经网络的空间学习能力获取发病位置相关的空间特征,为医生进行心肌梗死的位置预判具有重要的实际参考价值。The ECG-based multi-scale feature extraction device in the embodiment of the present invention obtains several ECG signal identification units based on the interception of the ECG signal of one lead, and the ECG signal identification unit is a band of at least one cardiac cycle included in the ECG signal of one lead, It will be more conducive to the convolutional neural network to learn the ECG variability and spatial characteristics of myocardial infarction, and the preset convolutional neural network can extract deeper variability features from the ECG signal. This variability feature has strong The ability to discriminate diseases, and obtain the spatial characteristics related to the location of the disease according to the spatial learning ability of the convolutional neural network, has important practical reference value for doctors to predict the location of myocardial infarction.
优选地,参见图7,该装置还包括:Preferably, referring to Figure 7, the device further includes:
滤波处理单元200,用于对采集的导联ECG信号进行滤波处理。该滤波处理单元200通过小波技术去除导联ECG信号基线漂移,然后通过小波与巴特沃兹滤波器联合去噪方法去除ECG信号的工频干扰。The filtering processing unit 200 is configured to perform filtering processing on the collected lead ECG signals. The filter processing unit 200 removes the baseline drift of the lead ECG signal through wavelet technology, and then removes the power frequency interference of the ECG signal through a combined wavelet and Butterworth filter denoising method.
下面以具体实施例,对本发明基于ECG的多尺度特征提取装置进行详细说明:In the following, specific embodiments are used to describe in detail the ECG-based multi-scale feature extraction device of the present invention:
本发明提出了基于小波变换与卷积神经网络相结合的多尺度特征提取装置,该装置能够从心电信号中提取更深层次的变异特征,这种变异特征不但具 有较强的疾病判别能力,而且提高了特征抗噪声能力,并根据卷积神经网络的空间学习能力获取发病位置相关的空间特征,为医生进行心肌梗死的位置预判具有重要的实际参考价值。The present invention proposes a multi-scale feature extraction device based on the combination of wavelet transform and convolutional neural network. The device can extract deeper variation features from ECG signals. This variation feature not only has a strong ability to discriminate diseases, but also The feature's anti-noise ability is improved, and the spatial features related to the onset location are obtained according to the spatial learning ability of the convolutional neural network, which has important practical reference value for doctors to predict the location of myocardial infarction.
本发明的装置主要通过小波变换和卷积神经网络技术对12导联ECG信号进行分析,获取发病位置相关的空间特征,从而便于心肌梗死发生位置的预判,为医生进行病变位置预测提供重要的依据。本发明技术主要用于医院内医生的辅助诊断,并不能直接进行疾病的诊断。内容如下:The device of the present invention mainly analyzes the 12-lead ECG signal through wavelet transform and convolutional neural network technology to obtain the spatial characteristics related to the location of the onset, thereby facilitating the prediction of the location of myocardial infarction, and providing important information for the doctor to predict the location of the lesion in accordance with. The technology of the present invention is mainly used for auxiliary diagnosis of doctors in hospitals, and cannot directly diagnose diseases. The content is as follows:
首先对心电信号进行预处理,该步骤主要通过滤波技术实现信号去噪;第二步,通过波形检测算法获取ECG波形的R波顶点,用于ECG信号识别单元分割;第三,对分割的ECG单元进行多尺度分解,并进行多尺度空间构建,以获得多尺度的ECG空间信号;最后通过卷积神经网络进行疾病相关特征及空间特征提取,并通过softmax分类器实现发病位置的分类。First, the ECG signal is pre-processed, and this step is mainly to achieve signal denoising through filtering technology; the second step is to obtain the R-wave apex of the ECG waveform through the waveform detection algorithm for the segmentation of the ECG signal identification unit; third, the segmentation The ECG unit performs multi-scale decomposition and multi-scale spatial construction to obtain multi-scale ECG spatial signals; finally, the disease-related features and spatial features are extracted through the convolutional neural network, and the disease location is classified through the softmax classifier.
本发明装置的详细流程如下:The detailed process of the device of the present invention is as follows:
滤波处理单元200:对采集的心电信号进行滤波处理,包括去基线漂移、工频干扰及其它噪声。首先通过小波技术去除基线漂移,然后通过小波与巴特沃兹滤波器联合去噪方法去除ECG其它干扰噪声,去噪结果如图3所示。Filter processing unit 200: filter the collected ECG signals, including removing baseline drift, power frequency interference and other noises. First, the wavelet technique is used to remove the baseline drift, and then the wavelet and Butterworth filter joint denoising method is used to remove other ECG interference noise. The denoising result is shown in Figure 3.
识别单元截取单元201:对ECG信号进行关键点检测获取R波顶点,对于12导联ECG信号,由于每个导联的R波位置差异极其微小,因此仅需对其中一个导联进行R波检测,然后根据检测到的R波顶点位置对每个导联进行ECG信号识别单元截取,截取表达式为:ECG cell=ECG[R(n+k)-R(m)];其中:R(n+k)-R(n)表示第n个R波顶点和第n+k个R波顶点间的ECG序列(其中n、k=1,2,3,4,…),在本发明的前期实验中将k设为2,直观的如图4所示。可以看出该方法实际上是截取两个周期长度的ECG序列,其中包括第n个周期的后半周期 (以R波前为前半周期,R波后为后半周期)、第n+1个完整心动周期以及第n+2个周期的前半周期。这种方法的优势是由于每个ECG信号识别单元包含一个连续完整的心动周期,将更加有利于卷积神经网络进行心肌梗死的心电图变异特征与空间特征学习,然后将该ECG信号识别单元归一化为400个采样点的长度。 Recognition unit intercepting unit 201: Perform key point detection on the ECG signal to obtain the apex of the R wave. For the 12-lead ECG signal, since the R wave position difference of each lead is extremely small, only one of the leads needs to be R wave detection , And then perform ECG signal recognition unit interception for each lead according to the detected R wave apex position, the interception expression is: ECG cell = ECG[R(n+k)-R(m)]; where: R(n +k)-R(n) represents the ECG sequence between the nth R wave apex and the n+kth R wave apex (where n, k=1, 2, 3, 4,...), in the early stage of the present invention In the experiment, k is set to 2, which is intuitively shown in Figure 4. It can be seen that this method actually intercepts the ECG sequence of two cycles, including the second half cycle of the nth cycle (the R wave front is the first half cycle, and the R wave is the second half cycle), the n+1th cycle The complete cardiac cycle and the first half of the n+2 cycle. The advantage of this method is that because each ECG signal recognition unit contains a continuous and complete cardiac cycle, it will be more conducive to the convolutional neural network to learn the ECG variability and spatial characteristics of myocardial infarction, and then normalize the ECG signal recognition unit Converted to a length of 400 sampling points.
ECG多尺度空间构建单元202:通过小波变换技术对截取的ECG信号识别单元进行多尺度分解,在本发明的前期实验中将其进行了3个尺度的分解,实验认为3尺度的信号足以表达出深层次的心肌梗死的心电图变异特征,但不限于进行3尺度的分解。以前期实验研究中使用的3尺度小波分解为例,ECG信号的多尺度空间构建公式如下:ECG multi-scale space construction unit 202: Multi-scale decomposition is performed on the intercepted ECG signal recognition unit through wavelet transform technology. In the previous experiment of the present invention, it was decomposed into 3 scales. The experiment considered that the 3-scale signal is sufficient to express The ECG variability characteristics of deep-level myocardial infarction, but not limited to 3-scale decomposition. Take the 3-scale wavelet decomposition used in previous experimental studies as an example, the multi-scale space construction formula of ECG signal is as follows:
Figure PCTCN2019101810-appb-000047
Figure PCTCN2019101810-appb-000047
Figure PCTCN2019101810-appb-000048
Figure PCTCN2019101810-appb-000048
其中c和d分别表示导联信号的近似和细节小波系数,h和g为对应的低通滤波器和高通滤波器,其中n、k=1,2,3,4,…。原始ECG信号识别单元根据该小波分解公式被分解到3个小波频带上,分别用
Figure PCTCN2019101810-appb-000049
表示。ECG多尺度空间构建步骤为:首先分别取12个导联的
Figure PCTCN2019101810-appb-000050
横向排列为二维矩阵A1,
Figure PCTCN2019101810-appb-000051
横向排列为二维矩阵A2,
Figure PCTCN2019101810-appb-000052
横向排列为二维矩阵A3;然后将A1、A2、A3叠加为3维矩阵,其表示如图5所示。
Where c and d represent the approximate and detailed wavelet coefficients of the lead signal, respectively, h and g are the corresponding low-pass filters and high-pass filters, where n, k = 1, 2, 3, 4,.... According to the wavelet decomposition formula, the original ECG signal identification unit is decomposed into 3 wavelet frequency bands, which are respectively used
Figure PCTCN2019101810-appb-000049
Said. The steps for constructing ECG multi-scale space are as follows: firstly take 12 leads
Figure PCTCN2019101810-appb-000050
The horizontal arrangement is a two-dimensional matrix A1,
Figure PCTCN2019101810-appb-000051
The horizontal arrangement is a two-dimensional matrix A2,
Figure PCTCN2019101810-appb-000052
The horizontal arrangement is a two-dimensional matrix A3; then A1, A2, and A3 are superimposed into a three-dimensional matrix, which is represented as shown in Figure 5.
多尺度特征提取单元203:将ECG多尺度空间构建单元202中构建的ECG多尺度空间信号通过卷积神经网络进行特征提取及疾病识别。该卷积神经网络结构设计为:输入层→卷积层1→卷积层2→池化层1→卷积层3→卷积层4→池化层2→卷积层5→池化层3→卷积层6→池化层4→卷积层7→全连接层1→全连接层2→SoftMax分类器→输出层。由于ReLu函数具有梯度不饱和及计 算速度快的特点,从而能够快速实现收敛,因此本发明使用ReLu函数作为激活函数。为防止训练模型过拟合,本发明在训练阶段分别在全连接层1和全连接层2加入Dropout操作。为进一步防止训练模型过拟合,本发明在目标函数中加入了L2正则项,以获得稀疏的模型参数,提高模型泛化能力。The multi-scale feature extraction unit 203: the ECG multi-scale spatial signal constructed in the ECG multi-scale space construction unit 202 is used for feature extraction and disease identification through a convolutional neural network. The convolutional neural network structure is designed as: input layer → convolution layer 1 → convolution layer 2 → pooling layer 1 → convolution layer 3 → convolution layer 4 → pooling layer 2 → convolution layer 5 → pooling layer 3→Convolutional layer 6→Pooling layer 4→Convolutional layer 7→Fully connected layer 1→Fully connected layer 2→SoftMax classifier→output layer. Since the ReLu function has the characteristics of gradient unsaturation and fast calculation speed, which can quickly achieve convergence, the present invention uses the ReLu function as the activation function. In order to prevent the training model from overfitting, the present invention adds dropout operations to the fully connected layer 1 and the fully connected layer 2 respectively during the training phase. In order to further prevent the training model from overfitting, the present invention adds an L2 regular term to the objective function to obtain sparse model parameters and improve the generalization ability of the model.
为更清楚的定义本发明所采用的卷积神经网络结构,下面用符号化语言进行描述,其符号定义如下:In order to more clearly define the convolutional neural network structure used in the present invention, the following description is made in symbolic language, and the symbols are defined as follows:
l:第1个卷积层;l: the first convolutional layer;
f l:第1层卷积核的尺寸; f l : the size of the first layer convolution kernel;
p l:第1层padding的大小; p l : the size of the first layer padding;
s l:第1层步长的大小; s l : the size of the step size of the first layer;
Figure PCTCN2019101810-appb-000053
第1层通道的个数;
Figure PCTCN2019101810-appb-000053
The number of layer 1 channels;
Figure PCTCN2019101810-appb-000054
第1层卷积核的个数;
Figure PCTCN2019101810-appb-000054
The number of convolution kernels in the first layer;
输入:
Figure PCTCN2019101810-appb-000055
表示1-1层输入的高、宽及通道数;
enter:
Figure PCTCN2019101810-appb-000055
Indicates the height, width and channel number of layer 1-1 input;
输出:
Figure PCTCN2019101810-appb-000056
表示1-1层输出的高、宽及通道数;
Output:
Figure PCTCN2019101810-appb-000056
Indicates the height, width and channel number of layer 1-1 output;
输出图像的大小:
Figure PCTCN2019101810-appb-000057
The size of the output image:
Figure PCTCN2019101810-appb-000057
根据上述符号,卷积神经网络结构参数定义如下:According to the above symbols, the convolutional neural network structure parameters are defined as follows:
输入层尺寸:400*12*3,
Figure PCTCN2019101810-appb-000058
Input layer size: 400*12*3,
Figure PCTCN2019101810-appb-000058
卷积层1超参数:f 1=3*2*3,s 1=1,p 1=0,
Figure PCTCN2019101810-appb-000059
(卷积核个数);
Convolutional layer 1 hyperparameters: f 1 =3*2*3, s 1 =1, p 1 =0,
Figure PCTCN2019101810-appb-000059
(Number of convolution kernels);
卷积层1输出尺寸:398*11*32,
Figure PCTCN2019101810-appb-000060
(通道个数);
Convolutional layer 1 output size: 398*11*32,
Figure PCTCN2019101810-appb-000060
(Number of channels);
卷积层2超参数:f 2=3*2*32,s 2=1,p 2=0,
Figure PCTCN2019101810-appb-000061
(卷积核个数);
Convolutional layer 2 hyperparameters: f 2 =3*2*32, s 2 =1, p 2 =0,
Figure PCTCN2019101810-appb-000061
(Number of convolution kernels);
卷积层2输出尺寸:396*10*64,
Figure PCTCN2019101810-appb-000062
Convolutional layer 2 output size: 396*10*64,
Figure PCTCN2019101810-appb-000062
池化层1超参数:平均池化滤波器尺寸f 3=2*1,s 3=2*1,p 3=0,
Figure PCTCN2019101810-appb-000063
Pooling layer 1 hyperparameters: average pooling filter size f 3 = 2*1, s 3 = 2*1, p 3 =0,
Figure PCTCN2019101810-appb-000063
池化层1输出尺寸:198*10*64,
Figure PCTCN2019101810-appb-000064
The output size of pooling layer 1: 198*10*64,
Figure PCTCN2019101810-appb-000064
卷积层3超参数:f 4=3*2*64,s 4=1,p 4=0,
Figure PCTCN2019101810-appb-000065
(卷积核个数);
Convolutional layer 3 hyperparameters: f 4 =3*2*64, s 4 =1, p 4 =0,
Figure PCTCN2019101810-appb-000065
(Number of convolution kernels);
卷积层3输出尺寸:196*9*128,
Figure PCTCN2019101810-appb-000066
Convolutional layer 3 output size: 196*9*128,
Figure PCTCN2019101810-appb-000066
卷积层4超参数:f 5=3*2*128,s 5=1,p 5=0,
Figure PCTCN2019101810-appb-000067
(卷积核个数);
Convolutional layer 4 hyperparameters: f 5 =3*2*128, s 5 =1, p 5 =0,
Figure PCTCN2019101810-appb-000067
(Number of convolution kernels);
卷积层4输出尺寸:194*8*128,
Figure PCTCN2019101810-appb-000068
Convolutional layer 4 output size: 194*8*128,
Figure PCTCN2019101810-appb-000068
池化层2超参数:平均池化滤波器尺寸f 6=2*1,s 6=2=1,p 6=0,
Figure PCTCN2019101810-appb-000069
Pooling layer 2 hyperparameters: average pooling filter size f 6 =2*1, s 6 =2=1, p 6 =0,
Figure PCTCN2019101810-appb-000069
池化层2输出尺寸:97*8*128,
Figure PCTCN2019101810-appb-000070
Pooling layer 2 output size: 97*8*128,
Figure PCTCN2019101810-appb-000070
卷积层5超参数:f 7=3*3*128,s 7=1,p 7=0,
Figure PCTCN2019101810-appb-000071
(卷积核个数);
Convolutional layer 5 hyperparameters: f 7 =3*3*128, s 7 =1, p 7 =0,
Figure PCTCN2019101810-appb-000071
(Number of convolution kernels);
卷积层5输出尺寸:95*6*64,
Figure PCTCN2019101810-appb-000072
Convolutional layer 5 output size: 95*6*64,
Figure PCTCN2019101810-appb-000072
池化层3超参数:平均池化滤波器尺寸f 8=2*1,s 8=2*1,p 8=0,
Figure PCTCN2019101810-appb-000073
Pooling layer 3 hyperparameters: average pooling filter size f 8 = 2*1, s 8 = 2*1, p 8 =0,
Figure PCTCN2019101810-appb-000073
池化层3输出尺寸:47*6*64,
Figure PCTCN2019101810-appb-000074
Output size of pooling layer 3: 47*6*64,
Figure PCTCN2019101810-appb-000074
卷积层6超参数:f 9=3*3*64,s 9=1,p 9=0,
Figure PCTCN2019101810-appb-000075
(卷积核个数);
Convolutional layer 6 hyperparameters: f 9 =3*3*64, s 9 =1, p 9 =0,
Figure PCTCN2019101810-appb-000075
(Number of convolution kernels);
卷积层6输出尺寸:45*3*64,
Figure PCTCN2019101810-appb-000076
Convolutional layer 6 output size: 45*3*64,
Figure PCTCN2019101810-appb-000076
池化层4超参数:平均池化滤波器尺寸f 10=2*2,s 10=2*1,p 10=0,
Figure PCTCN2019101810-appb-000077
Pooling layer 4 hyperparameters: average pooling filter size f 10 =2*2, s 10 =2*1, p 10 =0,
Figure PCTCN2019101810-appb-000077
池化层4输出尺寸:22*2*64,
Figure PCTCN2019101810-appb-000078
Pooling layer 4 output size: 22*2*64,
Figure PCTCN2019101810-appb-000078
卷积层7超参数:f 11=3*2*32,s 11=1,p 11=0,
Figure PCTCN2019101810-appb-000079
(卷积核个数);
Convolutional layer 7 hyperparameters: f 11 =3*2*32, s 11 =1, p 11 =0,
Figure PCTCN2019101810-appb-000079
(Number of convolution kernels);
卷积层7输出尺寸:20*1*32,
Figure PCTCN2019101810-appb-000080
Convolutional layer 7 output size: 20*1*32,
Figure PCTCN2019101810-appb-000080
全连接层1展开为20*32=640的一维向量,即神经元节点数为640,训练过程中该层进行Dropout操作,其中神经元的保留概率p=0.8;The fully connected layer 1 is expanded into a one-dimensional vector of 20*32=640, that is, the number of neuron nodes is 640. During the training process, this layer performs a dropout operation, and the retention probability of neurons is p=0.8;
全连接层2中神经元节点数为128,训练过程中该层进行Dropout操作,其中神经元的保留概率p=0.8;The number of neuron nodes in the fully connected layer 2 is 128, and this layer performs a dropout operation during the training process, and the retention probability of neurons is p=0.8;
输出层:该层有6个输出节点,该层输出结果通过SoftMax分类器进行判断,将输出结果分为6类(前壁心肌梗死、下壁心肌梗死、前侧壁心肌梗死、 前间隔心肌梗死、下侧壁心肌梗死以及下后侧壁心肌梗死);Output layer: This layer has 6 output nodes. The output results of this layer are judged by the SoftMax classifier, and the output results are divided into 6 categories (anterior wall myocardial infarction, inferior wall myocardial infarction, anterior wall myocardial infarction, anterior septal myocardial infarction , Inferior wall myocardial infarction and inferior posterior wall myocardial infarction);
本发明的前期实验在宾州树岸(Penn Tree Bank,PTB)数据库上进行训练与测试。The preliminary experiments of the present invention are trained and tested on the Penn Tree Bank (PTB) database.
本发明基于ECG的多尺度特征提取方法及装置的创新点至少在于:The innovations of the ECG-based multi-scale feature extraction method and device of the present invention are at least:
1.ECG信号识别单元分割的方式,即通过截取第n个R波和第n+k个R波顶点间的片段作为识别单元;1. The segmentation method of the ECG signal recognition unit, that is, by intercepting the segment between the nth R wave and the n+kth R wave apex as the recognition unit;
2.采用对ECG信号识别单元进行多尺度分解的方法获得多尺度ECG信号识别单元,以获得深层次心肌梗死相关特征;2. Using the method of multi-scale decomposition of the ECG signal recognition unit to obtain the multi-scale ECG signal recognition unit to obtain deep-level myocardial infarction related features;
3.本发明设计了适合卷积神经网络输入的ECG多尺度空间构建方法;3. The present invention designs an ECG multi-scale space construction method suitable for convolutional neural network input;
4.本发明独特设计的卷积神经网络结构;4. The uniquely designed convolutional neural network structure of the present invention;
5.为防止过拟合,本发明在训练阶段分别在全连接层1和全连接层2加入Dropout操作,并在目标函数中加入L2正则项。5. In order to prevent over-fitting, the present invention adds Dropout operations to fully connected layer 1 and fully connected layer 2 respectively in the training phase, and adds L2 regular term to the objective function.
本发明具有准确率高、抗干扰能力强的优势;本发明最少需要两个心电周期就能完成心肌梗死区域的定位,为病人抢救节约黄金时间。本发明已在专业的PTB数据库上进行了模型训练,并在独立数据集上进行了测试验证,模型准确率达到97%。The present invention has the advantages of high accuracy rate and strong anti-interference ability; the present invention can complete the positioning of the myocardial infarction area with at least two ECG cycles, saving golden time for patient rescue. The present invention has carried out model training on a professional PTB database, and has carried out test verification on an independent data set, and the model accuracy rate reaches 97%.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The sequence numbers of the foregoing embodiments of the present invention are only for description, and do not represent the superiority of the embodiments.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的系统实施例仅仅是示意性的,例如单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略, 或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the system embodiment described above is only illustrative. For example, the division of units may be a logical function division, and there may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into Another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present invention. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code .
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications are also It should be regarded as the protection scope of the present invention.

Claims (10)

  1. 一种基于ECG的多尺度特征提取方法,其特征在于,包括以下步骤:An ECG-based multi-scale feature extraction method is characterized by including the following steps:
    基于一个导联的ECG信号截取获得若干ECG信号识别单元,所述ECG信号识别单元为一个导联的所述ECG信号中包括至少一个心动周期的波段;A number of ECG signal identification units are obtained based on an ECG signal interception of one lead, where the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
    将若干所述ECG信号识别单元进行多尺度分解,构建ECG多尺度空间;Performing multi-scale decomposition of several ECG signal recognition units to construct an ECG multi-scale space;
    将所述ECG多尺度空间中的ECG多尺度空间信号通过预设的卷积神经网络进行多尺度特征提取。The ECG multi-scale spatial signal in the ECG multi-scale space is subjected to multi-scale feature extraction through a preset convolutional neural network.
  2. 根据权利要求1所述的基于ECG的多尺度特征提取方法,其特征在于,所述基于一个导联的ECG信号截取获得若干ECG信号识别单元包括:The ECG-based multi-scale feature extraction method according to claim 1, wherein the ECG signal interception based on one lead to obtain several ECG signal identification units comprises:
    对一个导联的所述ECG信号进行关键点检测获取R波顶点,然后根据检测到的R波顶点位置对每个导联进行ECG信号识别单元截取,截取表达式为:ECG cell=ECG[R(n+k)-R(n)];其中:R(n+k)-R(n)表示第n个R波顶点和第n+k个R波顶点间的ECG序列,n、k=1,2,3,4,…,11。 Perform key point detection on the ECG signal of one lead to obtain the R wave apex, and then perform the ECG signal recognition unit interception on each lead according to the detected R wave apex position. The interception expression is: ECG cell =ECG[R (n+k)-R(n)]; where: R(n+k)-R(n) represents the ECG sequence between the nth R wave vertex and the n+kth R wave vertex, n, k= 1, 2, 3, 4,..., 11.
  3. 根据权利要求2所述的基于ECG的多尺度特征提取方法,其特征在于,所述k取值2。The ECG-based multi-scale feature extraction method according to claim 2, wherein the value of k is 2.
  4. 根据权利要求1所述的基于ECG的多尺度特征提取方法,其特征在于,所述将若干所述ECG信号识别单元进行多尺度分解,构建ECG多尺度空间包括:The ECG-based multi-scale feature extraction method according to claim 1, wherein the multi-scale decomposition of the plurality of ECG signal recognition units to construct an ECG multi-scale space comprises:
    分别取12个导联的
    Figure PCTCN2019101810-appb-100001
    横向排列为二维矩阵A1,
    Figure PCTCN2019101810-appb-100002
    横向排列为二维矩阵A2,
    Figure PCTCN2019101810-appb-100003
    横向排列为二维矩阵A3,…;然后将A1、A2、A3,…叠加为多维矩阵;其中
    Figure PCTCN2019101810-appb-100004
    为所述ECG信号识别单元根据ECG信号的多尺度空间构建公式被分解的小波频带;
    Take 12 leads separately
    Figure PCTCN2019101810-appb-100001
    The horizontal arrangement is a two-dimensional matrix A1,
    Figure PCTCN2019101810-appb-100002
    The horizontal arrangement is a two-dimensional matrix A2,
    Figure PCTCN2019101810-appb-100003
    The horizontal arrangement is a two-dimensional matrix A3,...; then A1, A2, A3,... are superimposed into a multi-dimensional matrix;
    Figure PCTCN2019101810-appb-100004
    Construct a wavelet frequency band decomposed by a formula for the ECG signal identification unit according to the multi-scale space of the ECG signal;
    所述ECG信号的多尺度空间构建公式如下:The multi-scale space construction formula of the ECG signal is as follows:
    Figure PCTCN2019101810-appb-100005
    Figure PCTCN2019101810-appb-100005
    Figure PCTCN2019101810-appb-100006
    Figure PCTCN2019101810-appb-100006
    其中c和d分别表示导联信号的近似和细节小波系数,h和g为对应的低通滤波器和高通滤波器,其中n、k=1,2,3,4,…。Where c and d represent the approximate and detailed wavelet coefficients of the lead signal, respectively, h and g are the corresponding low-pass filters and high-pass filters, where n, k = 1, 2, 3, 4,....
  5. 根据权利要求4所述的基于ECG的多尺度特征提取方法,其特征在于,对所述ECG信号识别单元根据ECG信号的多尺度空间构建公式进行3尺度分解。The ECG-based multi-scale feature extraction method according to claim 4, wherein the ECG signal identification unit is subjected to 3-scale decomposition according to the multi-scale space construction formula of the ECG signal.
  6. 根据权利要求1所述的基于ECG的多尺度特征提取方法,其特征在于,所述预设的卷积神经网络结构设计为:输入层→卷积层1→卷积层2→池化层1→卷积层3→卷积层4→池化层2→卷积层5→池化层3→卷积层6→池化层4→卷积层7→全连接层1→全连接层2→SoftMax分类器→输出层。The ECG-based multi-scale feature extraction method according to claim 1, wherein the preset convolutional neural network structure is designed as: input layer → convolution layer 1 → convolution layer 2 → pooling layer 1 → Convolutional layer 3 → Convolutional layer 4 → Pooling layer 2 → Convolutional layer 5 → Pooling layer 3 → Convolutional layer 6 → Pooling layer 4 → Convolutional layer 7 → Fully connected layer 1 → Fully connected layer 2 →SoftMax classifier→output layer.
  7. 根据权利要求6所述的基于ECG的多尺度特征提取方法,其特征在于,在所述预设的卷积神经网络结构中,使用ReLu函数作为激活函数;所述预设的卷积神经网络结构的训练阶段分别在全连接层1和全连接层2中加入Dropout操作;在所述预设的卷积神经网络结构中,在其目标函数中加入L2正则项。The ECG-based multi-scale feature extraction method according to claim 6, wherein in the preset convolutional neural network structure, a ReLu function is used as an activation function; the preset convolutional neural network structure In the training phase of, the Dropout operation is added to the fully connected layer 1 and the fully connected layer 2 respectively; in the preset convolutional neural network structure, the L2 regular term is added to the objective function.
  8. 根据权利要求1所述的基于ECG的多尺度特征提取方法,其特征在于,所述方法在基于一个导联的ECG信号截取获得若干ECG信号识别单元之前还包括:The ECG-based multi-scale feature extraction method according to claim 1, wherein the method further comprises: before obtaining several ECG signal identification units based on the ECG signal interception of one lead:
    对采集的导联ECG信号进行滤波处理。Filter the collected lead ECG signals.
  9. 根据权利要求8所述的基于ECG的多尺度特征提取方法,其特征在于,所述对采集的导联ECG信号进行滤波处理包括:The ECG-based multi-scale feature extraction method according to claim 8, wherein the filtering processing of the collected lead ECG signals comprises:
    通过小波技术去除导联ECG信号基线漂移,然后通过小波与巴特沃兹滤波器联合去噪方法去除ECG信号的工频干扰。The baseline drift of the lead ECG signal is removed by wavelet technology, and the power frequency interference of the ECG signal is removed by the combined denoising method of wavelet and Butterworth filter.
  10. 一种基于ECG的多尺度特征提取装置,其特征在于,包括:An ECG-based multi-scale feature extraction device is characterized in that it includes:
    识别单元截取单元,用于基于一个导联的ECG信号截取获得若干ECG信号识别单元,所述ECG信号识别单元为一个导联的所述ECG信号中包括至少一个心动周期的波段;An identification unit intercepting unit, configured to obtain several ECG signal identification units based on the interception of the ECG signal of one lead, where the ECG signal identification unit is a band including at least one cardiac cycle in the ECG signal of one lead;
    ECG多尺度空间构建单元,用于将若干所述ECG信号识别单元进行多尺度分解,构建ECG多尺度空间;The ECG multi-scale space construction unit is used for multi-scale decomposition of several ECG signal recognition units to construct an ECG multi-scale space;
    多尺度特征提取单元,用于将所述ECG多尺度空间中的ECG多尺度空间信号通过预设的卷积神经网络进行多尺度特征提取。The multi-scale feature extraction unit is configured to extract the ECG multi-scale space signal in the ECG multi-scale space through a preset convolutional neural network.
PCT/CN2019/101810 2019-08-21 2019-08-21 Method and device for multi-scale characteristic extraction based on ecg WO2021031155A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/101810 WO2021031155A1 (en) 2019-08-21 2019-08-21 Method and device for multi-scale characteristic extraction based on ecg

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/101810 WO2021031155A1 (en) 2019-08-21 2019-08-21 Method and device for multi-scale characteristic extraction based on ecg

Publications (1)

Publication Number Publication Date
WO2021031155A1 true WO2021031155A1 (en) 2021-02-25

Family

ID=74659784

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/101810 WO2021031155A1 (en) 2019-08-21 2019-08-21 Method and device for multi-scale characteristic extraction based on ecg

Country Status (1)

Country Link
WO (1) WO2021031155A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11568991B1 (en) 2020-07-23 2023-01-31 Heart Input Output, Inc. Medical diagnostic tool with neural model trained through machine learning for predicting coronary disease from ECG signals
TWI827239B (en) * 2021-10-06 2023-12-21 長庚大學 Method for assisting identification of symptoms

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104367317A (en) * 2014-10-15 2015-02-25 北京理工大学 Electrocardiogram electrocardiosignal classification method with multi-scale characteristics combined
CN107203692A (en) * 2017-05-09 2017-09-26 哈尔滨工业大学(威海) The implementation method of atrial fibrillation detection based on depth convolutional neural networks
CN108836302A (en) * 2018-03-19 2018-11-20 武汉海星通技术股份有限公司 Electrocardiogram intelligent analysis method and system based on deep neural network
CN108926343A (en) * 2018-07-26 2018-12-04 上海移视网络科技有限公司 The qualitative automatic discrimination system of acute myocardial infarction AMI based on CNN neural network
CN109567793A (en) * 2018-11-16 2019-04-05 西北工业大学 A kind of ECG signal processing method towards cardiac arrhythmia classification
CN109864714A (en) * 2019-04-04 2019-06-11 北京邮电大学 A kind of ECG Signal Analysis method based on deep learning

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104367317A (en) * 2014-10-15 2015-02-25 北京理工大学 Electrocardiogram electrocardiosignal classification method with multi-scale characteristics combined
CN107203692A (en) * 2017-05-09 2017-09-26 哈尔滨工业大学(威海) The implementation method of atrial fibrillation detection based on depth convolutional neural networks
CN108836302A (en) * 2018-03-19 2018-11-20 武汉海星通技术股份有限公司 Electrocardiogram intelligent analysis method and system based on deep neural network
CN108926343A (en) * 2018-07-26 2018-12-04 上海移视网络科技有限公司 The qualitative automatic discrimination system of acute myocardial infarction AMI based on CNN neural network
CN109567793A (en) * 2018-11-16 2019-04-05 西北工业大学 A kind of ECG signal processing method towards cardiac arrhythmia classification
CN109864714A (en) * 2019-04-04 2019-06-11 北京邮电大学 A kind of ECG Signal Analysis method based on deep learning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11568991B1 (en) 2020-07-23 2023-01-31 Heart Input Output, Inc. Medical diagnostic tool with neural model trained through machine learning for predicting coronary disease from ECG signals
TWI827239B (en) * 2021-10-06 2023-12-21 長庚大學 Method for assisting identification of symptoms

Similar Documents

Publication Publication Date Title
Li et al. Patient-specific ECG classification by deeper CNN from generic to dedicated
Acharya et al. Automated detection of arrhythmias using different intervals of tachycardia ECG segments with convolutional neural network
CN110495877B (en) Multi-scale feature extraction method and device based on ECG
Li et al. Deep convolutional neural network based ECG classification system using information fusion and one-hot encoding techniques
Oh et al. Automated diagnosis of arrhythmia using combination of CNN and LSTM techniques with variable length heart beats
Hammad et al. Detection of abnormal heart conditions based on characteristics of ECG signals
Acharya et al. A deep convolutional neural network model to classify heartbeats
de Albuquerque et al. Robust automated cardiac arrhythmia detection in ECG beat signals
Xu et al. Interpretation of electrocardiogram (ECG) rhythm by combined CNN and BiLSTM
Gupta et al. Chaos theory: an emerging tool for arrhythmia detection
Wang et al. Arrhythmia classification algorithm based on multi-head self-attention mechanism
Rajagopal et al. Evaluation of effect of unsupervised dimensionality reduction techniques on automated arrhythmia classification
CN111990989A (en) Electrocardiosignal identification method based on generation countermeasure and convolution cyclic network
Zeng et al. Classification of myocardial infarction based on hybrid feature extraction and artificial intelligence tools by adopting tunable-Q wavelet transform (TQWT), variational mode decomposition (VMD) and neural networks
Feng et al. Unsupervised semantic-aware adaptive feature fusion network for arrhythmia detection
Wu et al. Personalizing a generic ECG heartbeat classification for arrhythmia detection: a deep learning approach
Peláez et al. Ischemia classification via ECG using MLP neural networks
Ullah et al. An end-to-end cardiac arrhythmia recognition method with an effective densenet model on imbalanced datasets using ecg signal
Wang et al. Application of multi-feature fusion and random forests to the automated detection of myocardial infarction
Khan et al. Electrocardiogram heartbeat classification using convolutional neural networks for the detection of cardiac Arrhythmia
WO2021031155A1 (en) Method and device for multi-scale characteristic extraction based on ecg
Prakash et al. A system for automatic cardiac arrhythmia recognition using electrocardiogram signal
Tseng et al. Sliding large kernel of deep learning algorithm for mobile electrocardiogram diagnosis
Yang et al. A novel method for automated congestive heart failure and coronary artery disease recognition using THC-Net
Singhal et al. A systematic review on artificial intelligence-based techniques for diagnosis of cardiovascular arrhythmia diseases: challenges and opportunities

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19942177

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 19942177

Country of ref document: EP

Kind code of ref document: A1