QT interval prolongation identification method and system based on convolutional neural network

The QT interval prolongation identification method through convolutional neural network and attention mechanism solves the problem in the existing technology that waveform detection affects the identification accuracy, realizes end-to-end identification, and improves the convenience and real-time identification of QT interval prolongation. accuracy.

CN115590524BInactive Publication Date: 2024-09-24SUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211116660.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-14
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing QT interval prolongation identification methods rely on waveform detection, which affects the identification accuracy and increases complexity and difficulty, making it difficult to achieve real-time monitoring.

Method used

The QT interval prolongation identification method based on convolutional neural network and attention mechanism is adopted to reduce the model complexity through the residual network structure to achieve end-to-end identification, eliminating the need for human participation in the intermediate links and extracting it directly from the ECG signal. feature.

Benefits of technology

It effectively reduces the model complexity, avoids the problem of waveform positioning accuracy affecting identification accuracy, improves the convenience of auxiliary diagnosis, and achieves the accuracy of real-time identification of QT interval prolongation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115590524B
    Figure CN115590524B
Patent Text Reader

Abstract

The present invention relates to a QT interval prolongation identification method based on a convolutional neural network, including collecting an electrocardiogram of a subject, preprocessing the electrocardiogram signal; performing waveform detection on the preprocessed electrocardiogram signal to obtain a waveform detection result; calculating a QTc value according to the waveform detection result; constructing a QT interval prolongation identification model using a convolutional neural network and an attention mechanism, and using data to train the QT interval prolongation identification model; using the trained QT interval prolongation identification model to predict a signal of an unknown QT interval state, and realizing the identification of QT interval prolongation. The present invention realizes the identification of QT interval prolongation by combining an algorithm of a residual network structure with an attention mechanism, effectively reducing the complexity of the model, avoiding the problem that the accuracy of waveform positioning affects the identification accuracy of QT interval prolongation, and realizing end-to-end identification, eliminating the human participation in the intermediate links, and improving the convenience of auxiliary diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electrocardiogram signal processing, and in particular to a convolutional neural network-based QT interval prolongation identification method and system. Background Art

[0002] Changes in the QT interval are of great value in clinical electrocardiogram diagnosis, especially QT interval prolongation is of great significance in indicating malignant ventricular arrhythmias and sudden cardiac death. The QT interval represents the depolarization and repolarization process of ventricular cells. It is the time from the earliest start of the Q wave in any lead to the latest end of the T wave in any lead (such as Figure 1 As shown in the figure). The length of the QT interval varies with age and gender, and the QT interval varies with different heart rates. A faster heart rate shortens the QT interval, and vice versa. Therefore, in practical applications, various calculations are often used to convert it into a correction value that is not dependent on heart rate, namely the heart rate corrected QT interval (QTc).

[0003] At present, more and more studies have shown that QTc prolongation, whether secondary to systemic diseases such as drugs, electrolyte abnormalities (hypokalemia) or genetics (congenital LQTS), can induce ventricular arrhythmias and sudden cardiac death. In addition, in middle-aged and elderly people, QTc prolongation may also cause increased sympathetic nerve tension, subclinical atherosclerosis or abnormal electrolyte metabolism, thereby increasing the risk of cardiovascular disease, stroke, etc. Therefore, real-time screening for QT interval prolongation has become an indispensable part of electrocardiogram (ECG) evaluation.

[0004] However, the existing evaluation and monitoring of QTc still largely relies on the characteristic waveform detection of ECG signals, and the signal is segmented into individual heartbeats according to the waveform detection results, and then the QTc value of each heartbeat is calculated. On the one hand, the accuracy of waveform detection directly affects the effect of QTc evaluation. On the other hand, the waveform detection and heartbeat segmentation of the ECG increase the complexity of screening for QT interval prolongation, which increases the difficulty of real-time monitoring.

[0005] Therefore, there is an urgent need to provide a QT interval prolongation identification method based on convolutional neural network to solve the above-mentioned problems existing in the prior art in the identification of QT interval prolongation. Summary of the invention

[0006] To this end, the technical problem to be solved by the present invention is to overcome the problems existing in the prior art and propose a QT interval prolongation identification method and system based on convolutional neural network, which utilizes the residual network structure combined with the algorithm of attention mechanism to realize the identification of QT interval prolongation. Compared with the algorithm based on waveform detection and positioning, it effectively reduces the complexity of the model, avoids the problem that the accuracy of waveform positioning affects the accuracy of QT interval prolongation identification, and realizes end-to-end recognition, eliminating the human participation in the intermediate links and improving the convenience of auxiliary diagnosis.

[0007] In order to solve the above technical problems, the present invention provides a method for identifying QT interval prolongation based on a convolutional neural network, comprising:

[0008] S1: Collect the ECG of the subject and pre-process the ECG signal;

[0009] S2: Perform waveform detection on the preprocessed ECG signal to obtain a waveform detection result;

[0010] S3: Calculating the QTc value according to the waveform detection result;

[0011] S4: constructing a QT interval prolongation recognition model using a convolutional neural network and an attention mechanism, and using the data obtained in S3 to train the QT interval prolongation recognition model;

[0012] S5: Use the trained QT interval prolongation recognition model to predict the signal of unknown QT interval state to realize the recognition of QT interval prolongation.

[0013] In one embodiment of the present invention, a wearable Holter monitor is used to collect an electrocardiogram of the subject in S1.

[0014] In one embodiment of the present invention, the method for preprocessing the ECG signal in S1 includes:

[0015] S1-1: Perform low-pass filtering on the collected ECG signal to obtain a denoised signal;

[0016] S1-2: Divide the denoised signal into fixed lengths.

[0017] In one embodiment of the present invention, the method of performing waveform detection on the preprocessed ECG signal in S2 includes:

[0018] S2-1: Decompose the ECG signal using quadratic spline wavelet to obtain waveform components of each subspace, and locate the R wave using the threshold method;

[0019] S2-2: According to the position of the R wave, search the peak points of the Q wave and S wave forward and backward in each subspace, and search the starting and ending points of the QRS wave forward and backward according to the peak points of the Q wave and S wave;

[0020] S2-3: searching for a local maximum value in the T wave search window defined by the RR interval according to the QRS wave end position of the current heartbeat, determining whether there are at least two local maximum values ​​greater than a preset threshold, and if so, determining that the heartbeat has a T wave, and searching for the peak value of the T wave in the search interval in each subspace, and searching for the start and end point positions of the T wave;

[0021] S2-4: Search for the local maximum value in the P wave search window defined by the RR interval according to the starting position of the QRS wave of the current heart beat, and determine whether there are at least two local maxima greater than the preset threshold. If so, it is determined that there is a P wave in the heart beat; and search for the peak value of the P wave in the search interval in each subspace, and search for the starting and ending points of the P wave.

[0022] In one embodiment of the present invention, the method for calculating the QTc value according to the waveform detection result in S3 includes:

[0023] The QTc value was calculated using the following formula:

[0024] QTc=QT / (RR^0.5)

[0025] Where QT is the time interval between the earliest start of the QRS complex and the latest end of the T wave in all leads.

[0026] In one embodiment of the present invention, the method for constructing a QT interval prolongation recognition model using a convolutional neural network and an attention mechanism in S4 includes:

[0027] S4-1: Cut the ECG signal to a fixed length to obtain ECG data;

[0028] S4-2: Perform independent convolution operations on the data of each lead in the ECG data through a depth-wise separable convolution layer and a maximum pooling layer;

[0029] S4-3: By adding an attention mechanism to the residual network structure and using a depthwise separable convolution operation, we extract deep features of all leads at different scales in the ECG signal.

[0030] S4-4: The extracted features are passed through the average pooling layer and the classification layer to output the probabilities of QT interval prolongation and non-prolongation, and a QT interval prolongation recognition model is constructed.

[0031] In addition, the present invention also provides a QT interval prolongation identification system based on convolutional neural network, comprising:

[0032] A data acquisition module, wherein the data acquisition module is used to collect the electrocardiogram of the subject and pre-process the electrocardiogram signal;

[0033] A waveform detection module, which is used to perform waveform detection on the preprocessed ECG signal to obtain a waveform detection result;

[0034] A QTc value calculation module, the QTc value calculation module is used to calculate the QTc value according to the waveform detection result;

[0035] A model construction training module, wherein the model construction training module is used to construct a QT interval prolongation recognition model using a convolutional neural network and an attention mechanism, and train the QT interval prolongation recognition model using data obtained by a QTc value calculation module;

[0036] The QT interval prolongation identification module is used to use the trained QT interval prolongation identification model to predict the signal of the unknown QT interval state to realize the identification of QT interval prolongation.

[0037] In one embodiment of the present invention, the method in which the waveform detection module performs waveform detection on the preprocessed ECG signal includes:

[0038] The quadratic spline wavelet is used to decompose the ECG signal to obtain the waveform components of each subspace, and the threshold method is used to locate the R wave;

[0039] According to the position of the R wave, the peak points of the Q wave and the S wave are searched forward and backward in each subspace, and the starting and ending points of the QRS wave are searched forward and backward according to the peak points of the Q wave and the S wave;

[0040] According to the QRS wave end position of the current heartbeat, the local maximum value is searched in the T wave search window defined by the RR interval, and it is determined whether there are at least two local maximum values ​​greater than the preset threshold. If so, it is determined that there is a T wave in the heartbeat, and the peak value of the T wave in the search interval is searched in each subspace, and the starting and ending points of the T wave are searched;

[0041] According to the starting position of the QRS wave of the current heartbeat, the local maximum value is found in the P wave search window defined by the RR interval to determine whether there are at least two local maxima greater than the preset threshold. If so, it is determined that there is a P wave in the heartbeat; and the peak value of the P wave in the search interval is found in each subspace, and the starting and ending points of the P wave are searched.

[0042] In one embodiment of the present invention, the method in which the QTc value calculation module calculates the QTc value according to the waveform detection result includes:

[0043] The QTc value was calculated using the following formula:

[0044] QTc=QT / (RR^0.5)

[0045] Where QT is the time interval between the earliest start of the QRS complex and the latest end of the T wave in all leads.

[0046] In one embodiment of the present invention, the method for constructing a QT interval prolongation recognition model using a convolutional neural network and an attention mechanism by the model construction training module includes:

[0047] Cut the ECG signal to a fixed length to obtain ECG data;

[0048] Perform independent convolution operations on the data of each lead in the ECG data through a depth-wise separable convolution layer and a maximum pooling layer;

[0049] By adding an attention mechanism to the residual network structure and using a deep separable convolution operation, the deep features of all leads at different scales in the ECG signal are extracted;

[0050] The extracted features are passed through the average pooling layer and the classification layer to output the probabilities of QT interval prolongation and non-prolongation, and a QT interval prolongation recognition model is constructed.

[0051] The above technical solution of the present invention has the following advantages compared with the prior art:

[0052] The present invention utilizes a residual network structure combined with an attention mechanism algorithm to realize the recognition of QT interval prolongation. Compared with the algorithm based on waveform detection and positioning, it effectively reduces the complexity of the model, avoids the problem that the accuracy of waveform positioning affects the accuracy of QT interval prolongation recognition, and realizes end-to-end recognition, eliminating human participation in the intermediate links and improving the convenience of auxiliary diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.

[0054] Figure 1 Schematic diagram of the QT interval.

[0055] Figure 2 The present invention is a flowchart of a method for identifying a prolonged QT interval based on a convolutional neural network.

[0056] Figure 3 This is a diagram showing the effect of a characteristic waveform detection algorithm based on wavelet transform in an embodiment of the present invention.

[0057] Figure 4 Schematic diagram of a QT interval prolongation recognition model combining an attention mechanism and a convolutional neural network algorithm in an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0059] See also Figure 2 As shown, an embodiment of the present invention provides a method for identifying QT interval prolongation based on a convolutional neural network, comprising the following steps:

[0060] S1: Collect the ECG of the subject and pre-process the ECG signal;

[0061] S2: Perform waveform detection on the preprocessed ECG signal to obtain a waveform detection result;

[0062] S3: Calculating the QTc value according to the waveform detection result;

[0063] S4: constructing a QT interval prolongation recognition model using a convolutional neural network and an attention mechanism, and using the data obtained in S3 to train the QT interval prolongation recognition model;

[0064] S5: Use the trained QT interval prolongation recognition model to predict the signal of unknown QT interval state to realize the recognition of QT interval prolongation.

[0065] The present invention utilizes a residual network structure combined with an attention mechanism algorithm to realize the recognition of QT interval prolongation. Compared with the algorithm based on waveform detection and positioning, it effectively reduces the complexity of the model, avoids the problem that the accuracy of waveform positioning affects the accuracy of QT interval prolongation recognition, and realizes end-to-end recognition, eliminating human participation in the intermediate links and improving the convenience of auxiliary diagnosis.

[0066] In a QT interval prolongation identification method based on a convolutional neural network disclosed in an embodiment of the present invention, a wearable dynamic electrocardiogram monitor is used to collect an electrocardiogram of a subject in S1, and the sampling rate of the electrocardiogram signal data is preferably 500 Hz.

[0067] In a QT interval prolongation identification method based on a convolutional neural network disclosed in an embodiment of the present invention, the method of preprocessing the ECG signal in S1 includes: S1-1: performing low-pass filtering on the collected ECG signal to obtain a denoised signal; S1-2: dividing the denoised signal into fixed lengths. Preferably, the time length is 10s, 5000 points.

[0068] In a QT interval prolongation identification method based on a convolutional neural network disclosed in an embodiment of the present invention, the method of performing waveform detection on the preprocessed electrocardiogram signal in S2 includes:

[0069] S2-1: Decompose the ECG signal using quadratic spline wavelet to obtain waveform components of each subspace, and locate the R wave using the threshold method;

[0070] S2-2: According to the position of the R wave, search the peak points of the Q wave and S wave forward and backward in each subspace, and search the starting and ending points of the QRS wave forward and backward according to the peak points of the Q wave and S wave;

[0071] S2-3: searching for a local maximum value in the T wave search window defined by the RR interval according to the QRS wave end position of the current heartbeat, determining whether there are at least two local maximum values ​​greater than a preset threshold, and if so, determining that the heartbeat has a T wave, and searching for the peak value of the T wave in the search interval in each subspace, and searching for the start and end point positions of the T wave;

[0072] S2-4: Search for the local maximum value in the P wave search window defined by the RR interval according to the starting position of the QRS wave of the current heart beat, and determine whether there are at least two local maxima greater than the preset threshold. If so, it is determined that there is a P wave in the heart beat; and search for the peak value of the P wave in the search interval in each subspace, and search for the starting and ending points of the P wave.

[0073] In summary, the ECG signal obtained from S1 is detected by using a characteristic waveform detection algorithm based on wavelet transform to locate the positions of characteristic waveforms such as P wave, QRS complex, and T wave. Figure 3 As shown, the algorithm can accurately locate the starting and ending points of each characteristic waveform and obtain the waveform detection result.

[0074] In a QT interval prolongation identification method based on a convolutional neural network disclosed in an embodiment of the present invention, the method for calculating the QTc value according to the waveform detection result in S3 includes:

[0075] The QTc value was calculated using the following formula:

[0076] QTc=QT / (RR^0.5)

[0077] Where QT is the time interval between the earliest start of the QRS complex and the latest end of the T wave in all leads.

[0078] In a QT interval prolongation identification method based on a convolutional neural network disclosed in an embodiment of the present invention, the method of constructing a QT interval prolongation identification model using a convolutional neural network and an attention mechanism in S4 includes:

[0079] S4-1: Cut the ECG signal to a fixed length to obtain ECG data;

[0080] S4-2: Perform independent convolution operations on the data of each lead in the ECG data through a depth-wise separable convolution layer and a maximum pooling layer;

[0081] S4-3: By adding an attention mechanism to the residual network structure and using a depthwise separable convolution operation, we extract deep features of all leads at different scales in the ECG signal.

[0082] S4-4: The extracted features are passed through the average pooling layer and the classification layer to output the probabilities of QT interval prolongation and non-prolongation, and a QT interval prolongation recognition model is constructed.

[0083] Specifically, the residual network structure is used as the basic model, and different weights are assigned to each dimension of the learned features after being processed by the attention module. Four residual attention modules are used, and each residual attention module uses a different convolution kernel to fully mine information at different scales. The specific model is as follows Figure 4 As shown in Figure 1, the deep separable convolution operation is used instead of the traditional convolutional network to fully explore the information of each input lead, and finally the multi-scale multi-lead features are integrated and then connected to the classification layer. At this point, the QT interval prolongation recognition model is built. The specific structural parameters of the model are shown in Table 1.

[0084] Table 1 Specific structural parameters of the QT interval prolongation identification model

[0085] Model parameters Settings Input layer size (5000,3) Number of residual attention modules 4 Convolution kernel size 1×11、1×7、1×5,1×3 Output feature dimension 512 Output Dimensions 2

[0086] In a QT interval prolongation identification method based on a convolutional neural network disclosed in an embodiment of the present invention, the specific process of model training described in S4 includes: inputting the processed data and corresponding labels into the constructed QT interval prolongation identification model, wherein the input is 3 leads, the training method is the adam algorithm, and the parameters are set as follows: learning rate lr=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-08, clipvalue=0.5; the loss function is the cross entropy loss function; the model is trained for 500 rounds to obtain the final trained QT interval prolongation identification model.

[0087] The present invention has at least the following five effects: 1) It does not rely on waveform detection and specific numerical values ​​of the QT interval to identify QT interval prolongation, but directly uses deep learning to achieve end-to-end QT interval prolongation identification and screening; 2) Based on the use of deep separable convolution instead of traditional convolution operations, while reducing model parameters, the feature information of each lead at different scales is fully extracted to improve the classification performance of the model; 3) The end-to-end model constructed by convolutional neural network does not require waveform detection, reduces the impact caused by the accuracy of waveform detection, and simplifies the recognition process of QT interval prolongation; 4) The residual network structure and the attention mechanism are fused to fully extract the information of each lead while increasing the weight of the leads with stronger correlation, further improving the accuracy of model classification; 5) Different residual network layers use different convolution kernel sizes to extract the features of signals at different scales, while improving the recognition accuracy of the model, it also enhances the robustness of the model.

[0088] A QT interval prolongation identification system based on a convolutional neural network disclosed in an embodiment of the present invention is introduced below. The QT interval prolongation identification system based on a convolutional neural network described below and the QT interval prolongation identification method based on a convolutional neural network described above can correspond to each other.

[0089] The embodiment of the present invention also provides a QT interval prolongation identification system based on a convolutional neural network, comprising:

[0090] A data acquisition module, wherein the data acquisition module is used to collect the electrocardiogram of the subject and pre-process the electrocardiogram signal;

[0091] A waveform detection module, which is used to perform waveform detection on the preprocessed ECG signal to obtain a waveform detection result;

[0092] A QTc value calculation module, the QTc value calculation module is used to calculate the QTc value according to the waveform detection result;

[0093] A model construction training module, wherein the model construction training module is used to construct a QT interval prolongation recognition model using a convolutional neural network and an attention mechanism, and train the QT interval prolongation recognition model using data obtained by a QTc value calculation module;

[0094] The QT interval prolongation identification module is used to use the trained QT interval prolongation identification model to predict the signal of the unknown QT interval state to realize the identification of QT interval prolongation.

[0095] In one embodiment of the present invention, the method in which the waveform detection module performs waveform detection on the preprocessed ECG signal includes:

[0096] The quadratic spline wavelet is used to decompose the ECG signal to obtain the waveform components of each subspace, and the threshold method is used to locate the R wave;

[0097] According to the position of the R wave, the peak points of the Q wave and the S wave are searched forward and backward in each subspace, and the starting and ending points of the QRS wave are searched forward and backward according to the peak points of the Q wave and the S wave;

[0098] According to the QRS wave end position of the current heartbeat, the local maximum value is searched in the T wave search window defined by the RR interval, and it is determined whether there are at least two local maximum values ​​greater than the preset threshold. If so, it is determined that there is a T wave in the heartbeat, and the peak value of the T wave in the search interval is searched in each subspace, and the starting and ending points of the T wave are searched;

[0099] According to the starting position of the QRS wave of the current heartbeat, the local maximum value is found in the P wave search window defined by the RR interval to determine whether there are at least two local maxima greater than the preset threshold. If so, it is determined that there is a P wave in the heartbeat; and the peak value of the P wave in the search interval is found in each subspace, and the starting and ending points of the P wave are searched.

[0100] In one embodiment of the present invention, the method in which the QTc value calculation module calculates the QTc value according to the waveform detection result includes:

[0101] The QTc value was calculated using the following formula:

[0102] QTc=QT / (RR^0.5)

[0103] Where QT is the time interval between the earliest start of the QRS complex and the latest end of the T wave in all leads.

[0104] In one embodiment of the present invention, the method for constructing a QT interval prolongation recognition model using a convolutional neural network and an attention mechanism by the model construction training module includes:

[0105] Cut the ECG signal to a fixed length to obtain ECG data;

[0106] Perform independent convolution operations on the data of each lead in the ECG data through a depth-wise separable convolution layer and a maximum pooling layer;

[0107] By adding an attention mechanism to the residual network structure and using a deep separable convolution operation, the deep features of all leads at different scales in the ECG signal are extracted;

[0108] The extracted features are passed through the average pooling layer and the classification layer to output the probabilities of QT interval prolongation and non-prolongation, and a QT interval prolongation recognition model is constructed.

[0109] The QT interval prolongation identification system based on convolutional neural network of this embodiment is used to implement the aforementioned QT interval prolongation identification method based on convolutional neural network. Therefore, the specific implementation method of the system can be seen in the embodiment part of the QT interval prolongation identification method based on convolutional neural network in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be introduced in detail here.

[0110] In addition, since the QT interval prolongation identification system based on convolutional neural network of this embodiment is used to implement the aforementioned QT interval prolongation identification method based on convolutional neural network, its function corresponds to that of the above method and will not be repeated here.

[0111] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0112] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0113] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0115] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A method for identifying QT interval prolongation based on convolutional neural network, characterized in that: include: S1: Collect the ECG of the subject and pre-process the ECG signal; S2: Perform waveform detection on the preprocessed ECG signal to obtain a waveform detection result; S3: Calculating the QTc value according to the waveform detection result; S4: constructing a QT interval prolongation recognition model using a convolutional neural network and an attention mechanism, and using the data obtained in S3 to train the QT interval prolongation recognition model; S5: Use the trained QT interval prolongation recognition model to predict the signal of unknown QT interval state to realize the recognition of QT interval prolongation; The method for performing waveform detection on the preprocessed ECG signal in S2 includes: S2-1: Decompose the ECG signal using quadratic spline wavelet to obtain waveform components of each subspace, and locate the R wave using the threshold method; S2-2: According to the position of the R wave, search the peak points of the Q wave and S wave forward and backward in each subspace, and search the starting and ending points of the QRS wave forward and backward according to the peak points of the Q wave and S wave; S2-3: searching for a local maximum value in the T wave search window defined by the RR interval according to the QRS wave end position of the current heartbeat, determining whether there are at least two local maximum values ​​greater than a preset threshold, and if so, determining that the heartbeat has a T wave, and searching for the peak value of the T wave in the search window in each subspace, and searching for the start and end point positions of the T wave; S2-4: Search for the local maximum value in the P wave search window defined by the RR interval according to the starting position of the QRS wave of the current heart beat, and determine whether there are at least two local maxima greater than the preset threshold. If so, it is determined that there is a P wave in the heart beat; and search for the peak value of the P wave in the search window in each subspace, and search for the starting and ending points of the P wave.

2. The method for identifying QT interval prolongation based on a convolutional neural network as claimed in claim 1, characterized in that: In S1, a wearable dynamic ECG monitor is used to collect the subject's electrocardiogram.

3. The method for identifying QT interval prolongation based on convolutional neural network according to claim 1, characterized in that: The method for preprocessing the ECG signal in S1 includes: S1-1: Perform low-pass filtering on the collected ECG signal to obtain a denoised signal; S1-2: Divide the denoised signal into fixed lengths.

4. The method for identifying QT interval prolongation based on convolutional neural network according to claim 1, characterized in that: The method for calculating the QTc value according to the waveform detection result in S3 includes: The QTc value was calculated using the following formula: Where QT is the time interval between the earliest start of the QRS complex and the latest end of the T wave in all leads.

5. The method for identifying QT interval prolongation based on convolutional neural network according to claim 1, characterized in that: The method of using convolutional neural network and attention mechanism to build a QT interval prolongation recognition model in S4 includes: S4-1: Cut the ECG signal to a fixed length to obtain ECG data; S4-2: Perform independent convolution operations on the data of each lead in the ECG data through a depth-wise separable convolution layer and a maximum pooling layer; S4-3: By adding an attention mechanism to the residual network structure and using a depthwise separable convolution operation, we extract deep features of all leads at different scales in the ECG signal. S4-4: The extracted features are passed through the average pooling layer and the classification layer to output the probabilities of QT interval prolongation and non-prolongation, and a QT interval prolongation recognition model is constructed.

6. A QT interval prolongation identification system based on convolutional neural network, characterized in that: include: A data acquisition module, wherein the data acquisition module is used to collect the electrocardiogram of the subject and pre-process the electrocardiogram signal; A waveform detection module, which is used to perform waveform detection on the preprocessed ECG signal to obtain a waveform detection result; A QTc value calculation module, the QTc value calculation module is used to calculate the QTc value according to the waveform detection result; A model construction training module, wherein the model construction training module is used to construct a QT interval prolongation recognition model using a convolutional neural network and an attention mechanism, and train the QT interval prolongation recognition model using data obtained by a QTc value calculation module; A QT interval prolongation identification module, wherein the QT interval prolongation identification module is used to predict the signal of the unknown QT interval state using the trained QT interval prolongation identification model to realize the identification of QT interval prolongation; The method in which the waveform detection module performs waveform detection on the preprocessed ECG signal includes: The quadratic spline wavelet is used to decompose the ECG signal to obtain the waveform components of each subspace, and the threshold method is used to locate the R wave; According to the position of the R wave, the peak points of the Q wave and the S wave are searched forward and backward in each subspace, and the starting and ending points of the QRS wave are searched forward and backward according to the peak points of the Q wave and the S wave; According to the QRS wave end position of the current heartbeat, the local maximum value is searched in the T wave search window defined by the RR interval, and it is determined whether there are at least two local maximum values ​​greater than the preset threshold value. If so, it is determined that there is a T wave in the heartbeat, and the peak value of the T wave in the search window is searched in each subspace, and the start and end point positions of the T wave are searched; According to the starting position of the QRS wave of the current heartbeat, the local maximum value is found in the P wave search window defined by the RR interval to determine whether there are at least two local maxima greater than the preset threshold. If so, it is determined that there is a P wave in the heartbeat; and the peak value of the P wave in the search window is found in each subspace, and the starting and ending points of the P wave are searched.

7. The QT interval prolongation identification system based on convolutional neural network as claimed in claim 6, characterized in that: The method in which the QTc value calculation module calculates the QTc value according to the waveform detection result includes: The QTc value was calculated using the following formula: Where QT is the time interval between the earliest start of the QRS complex and the latest end of the T wave in all leads.

8. The QT interval prolongation identification system based on convolutional neural network as claimed in claim 6, characterized in that: The method of constructing a QT interval prolongation recognition model by using a convolutional neural network and an attention mechanism in the model construction training module includes: Cut the ECG signal to a fixed length to obtain ECG data; Perform independent convolution operations on the data of each lead in the ECG data through a depth-wise separable convolution layer and a maximum pooling layer; By adding an attention mechanism to the residual network structure and using a deep separable convolution operation, the deep features of all leads at different scales in the ECG signal are extracted; The extracted features are passed through the average pooling layer and the classification layer to output the probabilities of QT interval prolongation and non-prolongation, and a QT interval prolongation recognition model is constructed.