A method, device and equipment for classifying multi-lead electrocardiogram data
Through the multi-lead ECG data classification method, the preset waveform feature points of the ECG data are identified and the waveform parameters are calculated, which solves the problem of insufficient comprehensive and accurate ECG data classification in the existing technology and achieves higher classification accuracy and Comprehensive, providing effective assistance to doctors' diagnosis.
Patent Information
- Application Number
- CN202410184007.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-02-19
AI Technical Summary
The identification results of existing ECG data abnormality classification algorithms are not comprehensive and accurate enough, and it is difficult to effectively identify various ECG data abnormalities.
The multi-lead ECG data classification method is adopted to obtain multi-lead ECG data, identify the characteristic point positions of the preset waveform, calculate the waveform parameters, and compare them with parameter thresholds to achieve a more comprehensive and accurate ECG data classification.
It improves the comprehensiveness and accuracy of ECG data classification, can more effectively identify multiple ECG data categories, is close to the doctor's diagnostic requirements, and provides doctors with better auxiliary diagnosis.
Smart Images

Figure CN118044821B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a classification method, device and equipment for multi-lead electrocardiogram data. Background Art
[0002] ECG data actually describes the comprehensive potential activity generated by myocardial cells in various parts of the heart during contraction and relaxation. This potential activity is measured by surface electrodes, and after digital signal amplification and hardware filtering, it is finally presented in the form of a waveform. ECG data is mainly used to reflect the electrical excitation process of the heart. Detecting ECG data is an important clinical means for doctors to perform heart examinations and diagnoses. ECG data itself is highly complex, and people of different races, genders, and ages vary greatly in various pathological conditions. In actual clinical diagnosis, physicians are usually required to have rich domain knowledge and accumulate a lot of clinical experience.
[0003] With the widespread application of artificial intelligence, the use of artificial intelligence models for P wave, QRS wave, and T wave recognition can improve the accuracy of ECG data recognition, free doctors from the tedious work of graphic recognition, and focus on the recognition and judgment of abnormal ECG data waveforms, thereby improving doctors' diagnostic efficiency and shortening diagnosis time. At present, the recognition results of P wave, QRS wave, T wave, etc. in ECG data can be used to classify ECG data abnormalities. However, the existing ECG data abnormality classification algorithms can generally only identify specific abnormal classifications, and the recognition results are not comprehensive and accurate enough. Summary of the invention
[0004] In view of this, embodiments of the present application provide a method, device and apparatus for classifying multi-lead ECG data to improve the accuracy of ECG data classification and recognition.
[0005] To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:
[0006] A method for classifying multi-lead electrocardiogram data, the method comprising:
[0007] Acquire multi-lead ECG data, and divide the multi-lead ECG data into multi-lead ECG data of at least one heartbeat;
[0008] Identify the position of characteristic points of a preset waveform in multi-lead ECG data of a single heartbeat, wherein the characteristic points of the preset waveform include a starting point, an end point, and a vertex of the preset waveform;
[0009] Determining waveform parameters of the multi-lead ECG data of the single heartbeat according to the position of feature points of a preset waveform in the multi-lead ECG data of the single heartbeat;
[0010] The waveform parameters of the multi-lead ECG data of the single heartbeat are compared with the corresponding parameter threshold to obtain a classification and recognition result of the single heartbeat, wherein the parameter threshold is determined based on the numerical characteristics and morphological characteristics of the ECG data.
[0011] In a possible implementation, the step of identifying the position of a feature point of a preset waveform in multi-lead ECG data of a single heartbeat includes:
[0012] Segmenting the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to a preset waveform;
[0013] The multi-lead ECG data corresponding to the preset waveform is input into a feature point recognition model corresponding to the preset waveform to obtain the feature point position of the preset waveform in the multi-lead ECG data of a single heartbeat.
[0014] In a possible implementation, the step of segmenting the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to a preset waveform includes:
[0015] Segment the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to P wave, Q wave, R wave, S wave and T wave;
[0016] The step of inputting the multi-lead ECG data corresponding to the preset waveform into a feature point recognition model corresponding to the preset waveform to obtain the feature point position of the preset waveform in the multi-lead ECG data of a single heartbeat includes:
[0017] Input the multi-lead ECG data corresponding to the P wave into the feature point recognition model corresponding to the P wave to obtain the feature point position of the P wave in the multi-lead ECG data of a single heartbeat;
[0018] Input the multi-lead ECG data corresponding to the Q wave into the feature point recognition model corresponding to the Q wave to obtain the feature point position of the Q wave in the multi-lead ECG data of a single heartbeat;
[0019] Input the multi-lead ECG data corresponding to the R wave into the feature point recognition model corresponding to the R wave to obtain the feature point position of the R wave in the multi-lead ECG data of a single heartbeat;
[0020] Input the multi-lead ECG data corresponding to the S wave into the feature point recognition model corresponding to the S wave to obtain the feature point position of the S wave in the multi-lead ECG data of a single heartbeat;
[0021] The multi-lead ECG data corresponding to the T wave is input into the feature point recognition model corresponding to the T wave to obtain the feature point position of the T wave in the multi-lead ECG data of a single heartbeat.
[0022] In a possible implementation, the feature point recognition model corresponding to the preset waveform is a U-net model, which is obtained by training using the multi-lead ECG data to be trained corresponding to the preset waveform and the annotation of the feature point positions in the multi-lead ECG data to be trained.
[0023] In a possible implementation, determining the waveform parameters of the multi-lead ECG data of the single heartbeat according to the position of the feature point of the preset waveform in the multi-lead ECG data of the single heartbeat includes:
[0024] Determining waveform parameters of each lead of the electrocardiogram data of the single heartbeat according to the position of feature points of a preset waveform in each lead of the electrocardiogram data of the single heartbeat;
[0025] The waveform parameters of the multi-lead ECG data of the single heartbeat are determined according to the waveform parameters of the individual lead ECG data of the single heartbeat.
[0026] In one possible implementation, the waveform parameters include one or more of P wave duration, Q wave duration, QRS duration, S wave duration, T wave duration, PR interval, RR interval, QT interval, PR segment, ST segment, P wave amplitude, Q wave amplitude, R wave amplitude, S wave amplitude and T wave amplitude.
[0027] In a possible implementation, comparing the waveform parameters of the multi-lead ECG data of the single heartbeat with the corresponding parameter threshold to obtain the classification and recognition result of the single heartbeat includes:
[0028] Comparing the waveform parameters of the multi-lead ECG data of the single heartbeat with the corresponding parameter thresholds to obtain a first comparison result;
[0029] Comparing the waveform parameters of each lead of the electrocardiogram data of the single heartbeat with the corresponding parameter thresholds respectively to obtain a second comparison result;
[0030] The classification and recognition result of the single heartbeat is determined according to the first comparison result and the second comparison result.
[0031] A classification device for multi-lead electrocardiogram data, the device comprising:
[0032] An acquisition unit, configured to acquire multi-lead ECG data and segment the multi-lead ECG data into multi-lead ECG data of at least one heartbeat;
[0033] An identification unit, used to identify the position of characteristic points of a preset waveform in the multi-lead ECG data of a single heartbeat, wherein the characteristic points of the preset waveform include a starting point, an end point and a vertex of the preset waveform;
[0034] A determination unit, configured to determine waveform parameters of the multi-lead ECG data of the single heartbeat according to the position of a feature point of a preset waveform in the multi-lead ECG data of the single heartbeat;
[0035] A comparison unit is used to compare the waveform parameters of the multi-lead ECG data of the single heartbeat with the corresponding parameter threshold to obtain a classification and recognition result of the single heartbeat, wherein the parameter threshold is determined based on the numerical characteristics and morphological characteristics of the ECG data.
[0036] A multi-lead ECG data classification device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the multi-lead ECG data classification method as described above is implemented.
[0037] A computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the above-mentioned classification method for multi-lead electrocardiogram data.
[0038] It can be seen that the embodiments of the present application have the following beneficial effects:
[0039] The embodiment of the present application can identify the starting point, end point, and vertex of each waveform in the multi-lead ECG data. Based on the recognition result, the waveform parameters of each waveform in the ECG data, such as the time limit, amplitude, and the values of each band and interval, can be calculated. Utilizing the numerical characteristics of the ECG data and the morphological characteristics of the ECG data, and combining with the experience of experts, the parameter thresholds corresponding to the waveform parameters can be set, so as to compare and analyze the waveform parameters with the corresponding parameter thresholds, and output the classification and recognition results of a single heartbeat in the multi-lead ECG data. The embodiment of the present application identifies the starting point, end point, and vertex of each waveform in the multi-lead ECG data, and the recognition of the feature points is more comprehensive; by setting the parameter threshold, various ECG data categories can be identified, which improves the comprehensiveness and accuracy of the ECG data classification. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A flowchart of a method for classifying multi-lead ECG data provided in an embodiment of the present application;
[0041] Figure 2 This is a schematic diagram of ECG data in an embodiment of the present application;
[0042] Figure 3 A schematic diagram of the classification and recognition results in the embodiment of the present application;
[0043] Figure 4 A schematic diagram of a multi-lead ECG data classification device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0045] In order to facilitate understanding and explanation of the technical solution provided by the embodiments of the present application, the background technology of the embodiments of the present application will be described below.
[0046] ECG data actually describes the comprehensive potential activity generated by myocardial cells in various parts of the heart during contraction and relaxation. This potential activity is measured by surface electrodes, and after digital signal amplification and hardware filtering, it is finally presented in the form of a waveform. At present, the identification of P waves, QRS waves, and T waves in ECG data usually only identifies the peak values of P waves, QRS waves, and T waves. Based on this identification result, only one or several common abnormalities in ECG data can be classified.
[0047] Based on this, the embodiments of the present application provide a classification method, device and equipment for multi-lead ECG data, which uses artificial intelligence technology to identify the feature points such as the apex, starting point, and end point of each waveform of the ECG data, and calculates the waveform parameters of each waveform of the ECG data based on the automatically identified ECG data feature points, such as time limit, amplitude, and the values of each band and interval. The ECG data is analyzed using the conventional features of the ECG data and the morphological features of the ECG data, combined with expert experience, and the classification and recognition results of the ECG data are output. By detecting the feature points of the apex, starting point, and end point of each wave of the ECG data, and integrating the diagnostic experience of ECG experts, a reliable basis is provided for the artificial intelligence diagnosis of the ECG data, and the accuracy of the artificial intelligence classification results is improved. The implementation of the embodiments of the present application can be closer to the working environment and diagnostic requirements of doctors, and provide doctors with better auxiliary diagnosis.
[0048] To facilitate understanding of the embodiments of the present application, a classification method for multi-lead ECG data provided in the embodiments of the present application is described below with reference to the accompanying drawings.
[0049] See also Figure 1 As shown in FIG. 1 , this figure is a flow chart of a classification method for multi-lead ECG data provided in an embodiment of the present application, such as Figure 1 As shown, the method may include S101-S104:
[0050] S101: Acquire multi-lead ECG data, and divide the multi-lead ECG data into multi-lead ECG data of at least one heartbeat.
[0051] ECG data is waveform data containing heartbeat-related information obtained by monitoring the heartbeat. Continuous ECG data is composed of a series of discontinuous sampling points with a fixed sampling frequency, and each sampling point is called a signal point or signal value. One piece of ECG data generally includes multi-lead ECG data, such as 12-lead ECG data. The 12 leads include standard limb leads I, II, III, pressurized unipolar limb leads aVR, aVL, aVF, and unipolar precordial leads V1, V2, V3, V4, V5, V6.
[0052] Since the heart beats regularly, the ECG data generated is periodic. A complete ECG waveform is called a heartbeat. Generally, ECG data including multiple complete heartbeats can be obtained. Based on the periodicity of ECG data, ECG data can be segmented into ECG data of one or more heartbeats. In practical applications, multi-lead ECG data is collected, and after cleaning and denoising, the multi-lead ECG data can be segmented into multi-lead ECG data of one or more heartbeats.
[0053] S102: Identify the position of characteristic points of a preset waveform in the multi-lead ECG data of a single heartbeat, where the characteristic points of the preset waveform include a starting point, an end point, and a vertex of the preset waveform.
[0054] See also Figure 2 As shown, ECG data is composed of the following waves, segments and intervals that appear repeatedly. In order of occurrence, they are P wave, Q wave, R wave, S wave, T wave and U wave, etc. Q wave, R wave and S wave can form QRS wave group. The width of each wave is called time limit, including P wave time limit, QRS wave group time limit, T wave time limit, U wave time limit, etc. The end point of the previous wave to the starting point of the next wave is called "segment", including PR segment and ST segment. "Interval" includes PR interval (i.e. the distance from the starting point of P wave to the starting point of QRS wave group), QT interval (i.e. the distance from the starting point of QRS wave group to the end point of T wave), ST interval (the distance from the end point of S wave to the end point of T wave) and RR interval (i.e. the distance between the peak values of two heartbeat R waves). Among them, the P wave represents the atrial depolarization process of the heart; the PR interval is the P wave and the PR segment, which represents the start of atrial depolarization to ventricular depolarization; the QRS complex represents the ventricular depolarization process; ST-T represents the entire ventricular repolarization process; and the QT interval represents the entire ventricular activity process. The units of intervals, time limits, and segments can be expressed in milliseconds (ms) or seconds (s). The amplitudes of P, Q, R, S, T, and U waves can be expressed in millivolts (mV). The amplitude of the positive wave is measured vertically from the upper edge of the baseline to the wave top; the amplitude of the negative wave is measured vertically from the lower edge of the baseline to the wave trough.
[0055] In an embodiment of the present application, the positions of characteristic points such as the starting point, the vertex and the end point of a preset waveform in multi-lead ECG data can be identified. The preset waveform can be a P wave, a Q wave, an R wave, an S wave and a T wave, for example, the starting point, the vertex and the end point of the P wave, the Q wave, the R wave, the S wave and the T wave are identified. The preset waveform can also be a P wave, a QRS complex and a T wave, etc. It is understandable that if the preset waveform has a bidirectional or bimodal waveform, the vertices of the preset waveform can be two. In practical applications, the characteristic point positions of the preset waveform of each lead ECG data in the multi-lead ECG data of a single heartbeat can be identified respectively. For example, the characteristic point positions of the P wave, Q wave, R wave, S wave and T wave of the I lead ECG data are identified, and the characteristic point positions of the P wave, Q wave, R wave, S wave and T wave of the II lead ECG data are identified, and so on. In this way, the identification of characteristic points in the multi-lead ECG data is more comprehensive, so as to facilitate the subsequent classification of the multi-lead ECG data.
[0056] For the specific implementation process of S102 identifying the position of the characteristic point of the preset waveform in the multi-lead ECG data of a single heartbeat, please refer to the description of the subsequent embodiments.
[0057] S103: Determine waveform parameters of the multi-lead ECG data of a single heartbeat according to the position of feature points of a preset waveform in the multi-lead ECG data of a single heartbeat.
[0058] After obtaining the characteristic point position of the preset waveform in the multi-lead ECG data of a single heartbeat, the waveform parameters of the multi-lead ECG data can be calculated according to the definition of each waveform parameter. For example, the time limit, amplitude, interval between wave peaks and corresponding band values of each preset waveform. In a possible implementation, the waveform parameters may include one or more of the P wave time limit, Q wave time limit, QRS time limit, S wave time limit, T wave time limit, PR interval, RR interval, QT interval, PR segment, ST segment, P wave amplitude, Q wave amplitude, R wave amplitude, S wave amplitude and T wave amplitude.
[0059] In the embodiment of the present application, a possible implementation of S103 determining the waveform parameters of the multi-lead ECG data of a single heartbeat according to the position of the characteristic points of the preset waveform in the multi-lead ECG data of a single heartbeat includes:
[0060] A1: Determine the waveform parameters of each lead of the electrocardiogram data of a single heartbeat according to the position of the characteristic points of the preset waveform in each lead of the electrocardiogram data of a single heartbeat.
[0061] A2: Determine waveform parameters of multi-lead ECG data of a single heartbeat according to waveform parameters of each lead ECG data of a single heartbeat.
[0062] That is, for the multi-lead ECG data of a single heartbeat, after identifying the characteristic point position of the preset waveform of each lead ECG data, the waveform parameters of each lead ECG data can be calculated. Then, based on the waveform parameters of each lead ECG data, the waveform parameters of the multi-lead ECG data can be comprehensively calculated.
[0063] S104: Compare the waveform parameters of the multi-lead ECG data of a single heartbeat with the corresponding parameter threshold to obtain a classification and recognition result of the single heartbeat, wherein the parameter threshold is determined based on the numerical characteristics and morphological characteristics of the ECG data.
[0064] In clinical ECG data diagnosis, doctors use a series of ECG data morphological features, such as wide and deformed QRS, double peaks of P wave, bidirectional, inverted T wave, bidirectional, etc., in addition to the commonly used ECG data numerical features such as P wave, QRS complex, interval and amplitude of T wave. The embodiment of the present application starts with the thinking process and specific methods of doctors diagnosing ECG data, and combines the numerical features of ECG data and the morphological features of ECG data to design a set of parameter thresholds that conform to the diagnostic rules in the doctor's working environment. Each classification recognition result has a corresponding parameter threshold corresponding to different waveform parameters. By comparing the waveform parameters of multi-lead ECG data with the corresponding parameter thresholds, the classification recognition results of a single heartbeat can be obtained. In practical applications, the classification recognition results can include sinus beats, atrial premature beats, ventricular premature beats, junctional premature beats, atrial paced heartbeats, ventricular paced heartbeats, etc. Sinus beats belong to normal heartbeats. Except for sinus beats, other classification recognition results belong to abnormal heartbeats. For example, the sinus beat range of the P wave duration is a1, the sinus beat range of the QRS complex duration is a2..., if all waveform parameters belong to the sinus beat range, the classification and recognition result of a single heartbeat can be determined to be a sinus beat. For another example, the atrial premature beat range of the P wave duration is b1, the atrial premature beat range of the QRS complex duration is b2..., if all waveform parameters belong to the atrial premature beat range, the classification and recognition result of a single heartbeat can be determined to be an atrial premature beat.
[0065] In practical applications, the numerical features of ECG data may include:
[0066] (1) P wave: Sinus P wave may have different shapes in different leads. The P wave in leads V3-V6 is upright (positive), and the P wave in lead aVR is inverted (negative). It is generally rounded and blunt. The top of the P wave in leads I, II, and aVF may have a slight notch, and the interval between the two peaks does not exceed 30ms. The width of the P wave does not exceed 0.11s, the amplitude of the P wave in limb leads does not exceed 0.25mV, and the amplitude of the P wave in precordial leads does not exceed 0.20mV.
[0067] (2) PR interval: the distance from the starting point of the P wave to the starting point of the QRS complex. The PR interval of an adult is generally 0.12 to 0.20 seconds.
[0068] (3) QRS complex: represents the potential and time changes produced during the depolarization and earliest repolarization of the ventricular septum, left and right ventricles. The QRS complex duration in normal adults is 0.06 to 0.11 seconds.
[0069] (4) ST segment: The horizontal line from the end of the QRS complex to the beginning of the T wave is called the ST segment. In normal people, the ST segment is located on the baseline, and may also be slightly displaced. Normally, the ST downward deviation in any lead should not exceed 0.05mV, and the ST upward elevation should not exceed 0.1mV.
[0070] (5) T wave: represents the ventricular repolarization wave. The T wave is blunt and round, lasts for a long time, and its direction is often consistent with the main wave direction of the QRS complex. The amplitude of the T wave should not be less than 1 / 10 of the R wave in the same lead, generally 0.1-0.5mV.
[0071] (6) QT interval: The distance from the start of the QRS complex to the end of the T wave, including the entire process from the beginning of ventricular depolarization to the end of ventricular repolarization. The QT interval is closely related to the heart rate. The faster the heart rate, the shorter the QT interval; conversely, the longer it is. Generally, when the heart rate is around 70 beats / min, the QT interval is about 0.40s.
[0072] List some of the ECG data morphological features:
[0073] (1) P wave: P wave inversion, P wave positive and negative bidirectional, etc.
[0074] (2) T wave: The T wave is inverted and deepened; the T wave is high, pointed, and tent-shaped.
[0075] (3) Left bundle branch block: 1) Leads I, aVL, V5, and V6 show unidirectional R-type; 2) Leads V1 and V2 show QS or rS type, with r < 30 ms; 3) ST segment elevation is dominated by S waves, while ST segment depression is dominated by R waves; 4) Based on the width of the QRS complex, left bundle branch block can be further divided into complete left bundle branch block and incomplete left bundle branch block.
[0076] (4) Right bundle branch block: 1) V1 lead presents rsR', rR, R, qR type, etc.; 2) V5 and V6 leads present Rs, qRs type, with the R duration / S duration ratio <1.0, and the S wave is wide and blunt; 3) Based on the width of the QRS complex, right bundle branch block can be further divided into complete right bundle branch block and incomplete right bundle branch block.
[0077] (5) Junctional beat: 1) The QRS complex morphology is consistent with the sinus QRS complex; 2) There is an inverted P wave, called the P reverse (P-) wave. The P-wave can be before the QRS complex, between the QRS complexes, or after the QRS complexes. When the P-wave is before the QRS complex, the PR interval is <120ms.
[0078] (6) Ventricular heart beats: 1) There is no sinus P wave before the QRS complex, and the duration of the QRS complex is wide and deformed; 2) There are fat R waves in leads V2 and V3, and the R duration is greater than or equal to 30ms; 3) The time from the start of the R wave to the peak of the R wave in lead II is greater than or equal to 50ms, and the time from the start of the R wave to the peak of the R wave in lead aVR is greater than or equal to 50ms.
[0079] The above numerical features of ECG data and morphological features of ECG data are merely exemplary descriptions, and the embodiments of the present application do not limit the numerical features of ECG data and morphological features of ECG data.
[0080] According to the numerical characteristics and morphological characteristics of the ECG data, the parameter thresholds of the waveform parameters corresponding to the classification and recognition results can be determined, thereby achieving the classification of multi-lead ECG data.
[0081] In a possible implementation, S104 compares the waveform parameters of the multi-lead ECG data of a single heartbeat with the corresponding parameter thresholds to obtain the classification and recognition result of the single heartbeat, which may include:
[0082] B1: Compare the waveform parameters of the multi-lead ECG data of a single heartbeat with the corresponding parameter thresholds to obtain a first comparison result.
[0083] B2: Compare the waveform parameters of each lead of the electrocardiogram data of a single heartbeat with the corresponding parameter thresholds to obtain a second comparison result.
[0084] B3: Determine the classification and recognition result of a single heartbeat based on the first comparison result and the second comparison result.
[0085] Based on the above description, some parameter thresholds correspond to the waveform parameters of the multi-lead ECG data as a whole, and some parameter thresholds correspond to the waveform parameters of the ECG data of a certain lead. Therefore, for the multi-lead ECG data of a single heartbeat, the waveform parameters of the multi-lead ECG data as a whole can be compared with the corresponding parameter thresholds to obtain a first comparison result, and the waveform parameters of the single lead ECG data can be compared with the corresponding parameter thresholds to obtain a second comparison result. The first comparison result and the second comparison result are combined to obtain a classification and recognition result of a single heartbeat.
[0086] See also Figure 3As shown, a schematic diagram of the classification and recognition results of multi-lead ECG data is shown. In the figure, each feature point is marked in the ECG data, and the classification and recognition results of each heartbeat are marked. The one marked with N is a sinus beat, and the one marked with V is an abnormal heartbeat, for example, V is a ventricular premature beat.
[0087] In an embodiment of the present application, feature points such as the starting point, end point, and vertex of each waveform in multi-lead ECG data can be identified. Based on the identification results, the waveform parameters of each waveform in the ECG data, such as the time limit, amplitude, and the values of each band and interval, can be calculated. Utilizing the numerical features of the ECG data and the morphological features of the ECG data, and combining expert experience, parameter thresholds corresponding to the waveform parameters can be set, thereby comparing and analyzing the waveform parameters with the corresponding parameter thresholds, and outputting the classification and identification results of a single heartbeat in the multi-lead ECG data. The embodiment of the present application identifies feature points such as the starting point, end point, and vertex of each waveform in the multi-lead ECG data, and the feature point identification is more comprehensive; by setting parameter thresholds, various ECG data categories can be identified, which improves the comprehensiveness and accuracy of ECG data classification.
[0088] In order to more accurately identify the feature point positions of a preset waveform, the embodiment of the present application identifies the feature point positions based on a convolutional neural network model based on deep learning.
[0089] First, it is necessary to establish a feature point recognition model corresponding to the preset waveform. In order to establish a feature point recognition model corresponding to the preset waveform, it is necessary to obtain multi-lead ECG data to be trained. In practical applications, the multi-lead ECG data to be trained of a preset length, such as 10s of multi-lead ECG data to be trained, is intercepted, and the ECG data is annotated by relevant personnel. The annotation includes: the position of the feature points of the preset waveform, such as the starting point, vertex and end point of the P wave, Q wave, R wave, S wave, T wave and U wave. In addition, the classification results of each heartbeat can also be annotated, such as sinus beat, atrial premature beat, ventricular premature beat, junctional premature beat, atrial paced heartbeat, ventricular paced heartbeat, etc.
[0090] Then, the feature point recognition model corresponding to the preset waveform is obtained by training the multi-lead ECG data to be trained corresponding to the preset waveform and the annotation of the feature point positions in the multi-lead ECG data to be trained. The feature point recognition model corresponding to the preset waveform can be a U-net model. That is, a convolutional neural network CNN based on the U-net framework is used, and the loss function uses the square sum of the distance between the real coordinate point and the predicted coordinate point to train the feature point recognition model corresponding to the preset waveform. The last two layers of the feature point recognition model are fully connected layers, which can output the feature point positions.
[0091] The multi-lead ECG data of a single heartbeat is input into the corresponding feature point recognition model to obtain the feature point positions of the P wave, the Q wave, the R wave, the S wave, and the T wave in the multi-lead ECG data of a single heartbeat.
[0092] The feature point recognition model can be a single model: for example, the P-QRS-T feature point recognition model; it can also be multiple models, such as the feature point recognition model corresponding to the P wave, the feature point recognition model corresponding to the Q wave, the feature point recognition model corresponding to the R wave, the feature point recognition model corresponding to the S wave, the feature point recognition model corresponding to the T wave, etc.
[0093] In a possible implementation, when the feature point recognition model is a P-QRS-T feature point recognition model, the implementation of S102 identifying the feature point position of a preset waveform in the multi-lead ECG data of a single heartbeat may include: the multi-lead ECG data of a single heartbeat may be input into the corresponding feature point recognition model to obtain the feature point position of the preset waveform in the multi-lead ECG data of a single heartbeat. For example, the multi-lead ECG data of a single heartbeat is input into the P-QRS-T feature point recognition model to directly obtain the feature point positions corresponding to the P wave, Q wave, R wave, S wave and T wave. In a possible implementation, when the feature point recognition model is a feature point recognition model corresponding to the preset waveforms, respectively, the implementation of S102 identifying the feature point position of a preset waveform in the multi-lead ECG data of a single heartbeat may include:
[0094] C1: Segment the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to a preset waveform.
[0095] C2: Input the multi-lead ECG data corresponding to the preset waveform into the feature point recognition model corresponding to the preset waveform to obtain the feature point position of the preset waveform in the multi-lead ECG data of a single heartbeat.
[0096] In this embodiment, the multi-lead ECG data is first segmented into multi-lead ECG data corresponding to a preset waveform, and a corresponding feature point recognition model is input to obtain the feature point positions of the preset waveform in the multi-lead ECG data.
[0097] Since the preset waveforms may be P wave, Q wave, R wave, S wave and T wave, characteristic point recognition models corresponding to P wave, Q wave, R wave, S wave and T wave may be established.
[0098] In a possible implementation, C1 may divide the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to a preset waveform, for example:
[0099] The multi-lead ECG data of a single heartbeat are divided into multi-lead ECG data corresponding to P wave, Q wave, R wave, S wave and T wave.
[0100] C2 inputs the multi-lead ECG data corresponding to the preset waveform into the feature point recognition model corresponding to the preset waveform, and the implementation of obtaining the feature point position of the preset waveform in the multi-lead ECG data of a single heartbeat may include:
[0101] Input the multi-lead ECG data corresponding to the P wave into the feature point recognition model corresponding to the P wave to obtain the feature point position of the P wave in the multi-lead ECG data of a single heartbeat;
[0102] Input the multi-lead ECG data corresponding to the Q wave into the feature point recognition model corresponding to the Q wave to obtain the feature point position of the Q wave in the multi-lead ECG data of a single heartbeat;
[0103] Input the multi-lead ECG data corresponding to the R wave into the feature point recognition model corresponding to the R wave to obtain the feature point position of the R wave in the multi-lead ECG data of a single heartbeat;
[0104] Input the multi-lead ECG data corresponding to the S wave into the feature point recognition model corresponding to the S wave to obtain the feature point position of the S wave in the multi-lead ECG data of a single heartbeat;
[0105] The multi-lead ECG data corresponding to the T wave is input into the feature point recognition model corresponding to the T wave to obtain the feature point position of the T wave in the multi-lead ECG data of a single heartbeat.
[0106] The multi-lead ECG data of a single heartbeat is divided into multi-lead ECG data corresponding to P wave, Q wave, R wave, S wave and T wave. Then the feature point recognition models corresponding to P wave, Q wave, R wave, S wave and T wave are input respectively to obtain the feature point positions of the starting point, vertex and end point output by each feature point recognition model, thereby realizing comprehensive detection of feature points.
[0107] In addition, by using the multi-lead ECG data to be trained as the multi-lead ECG data in the classification method of the multi-lead ECG data provided in the embodiment of the present application, a classification and recognition result of a single heartbeat can be obtained. Compared with the classification result of each heartbeat marked in the multi-lead ECG data to be trained, the classification method of the multi-lead ECG data provided in the embodiment of the present application can be adjusted, for example, the parameter threshold can be adjusted, so that the application of the classification method of the multi-lead ECG data provided in the embodiment of the present application is more accurate.
[0108] Based on the multi-lead ECG data classification method provided by the above method embodiment, the present application embodiment also provides a multi-lead ECG data classification device, which will be described below in conjunction with the accompanying drawings.
[0109] See also Figure 4 As shown in FIG. 1 , this figure is a schematic diagram of the structure of a multi-lead ECG data classification device provided in an embodiment of the present application. Figure 4As shown, the classification device for multi-lead ECG data includes:
[0110] An acquisition unit 401 is used to acquire multi-lead ECG data and divide the multi-lead ECG data into multi-lead ECG data of at least one heartbeat;
[0111] An identification unit 402 is used to identify the position of characteristic points of a preset waveform in the multi-lead ECG data of a single heartbeat, wherein the characteristic points of the preset waveform include a starting point, an end point and a vertex of the preset waveform;
[0112] A determination unit 403, configured to determine waveform parameters of the multi-lead ECG data of the single heartbeat according to the position of a feature point of a preset waveform in the multi-lead ECG data of the single heartbeat;
[0113] The comparison unit 404 is used to compare the waveform parameters of the multi-lead ECG data of the single heartbeat with the corresponding parameter threshold to obtain the classification and recognition result of the single heartbeat, and the parameter threshold is determined according to the numerical characteristics and morphological characteristics of the ECG data.
[0114] In a possible implementation, the identification unit includes:
[0115] A segmentation subunit, used for segmenting the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to a preset waveform;
[0116] The acquisition subunit is used to input the multi-lead ECG data corresponding to the preset waveform into the feature point recognition model corresponding to the preset waveform to obtain the feature point position of the preset waveform in the multi-lead ECG data of a single heartbeat.
[0117] In a possible implementation manner, the segmentation subunit is specifically used for:
[0118] Segment the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to P wave, Q wave, R wave, S wave and T wave;
[0119] The acquisition subunit is specifically used for:
[0120] Input the multi-lead ECG data corresponding to the P wave into the feature point recognition model corresponding to the P wave to obtain the feature point position of the P wave in the multi-lead ECG data of a single heartbeat;
[0121] Input the multi-lead ECG data corresponding to the Q wave into the feature point recognition model corresponding to the Q wave to obtain the feature point position of the Q wave in the multi-lead ECG data of a single heartbeat;
[0122] Input the multi-lead ECG data corresponding to the R wave into the feature point recognition model corresponding to the R wave to obtain the feature point position of the R wave in the multi-lead ECG data of a single heartbeat;
[0123] Input the multi-lead ECG data corresponding to the S wave into the feature point recognition model corresponding to the S wave to obtain the feature point position of the S wave in the multi-lead ECG data of a single heartbeat;
[0124] The multi-lead ECG data corresponding to the T wave is input into the feature point recognition model corresponding to the T wave to obtain the feature point position of the T wave in the multi-lead ECG data of a single heartbeat.
[0125] In a possible implementation, the feature point recognition model corresponding to the preset waveform is a U-net model, which is obtained by training using the multi-lead ECG data to be trained corresponding to the preset waveform and the annotation of the feature point positions in the multi-lead ECG data to be trained.
[0126] In a possible implementation manner, the determining unit includes:
[0127] A first determining subunit, configured to determine waveform parameters of each lead of the electrocardiogram data of the single heartbeat according to the position of a feature point of a preset waveform in each lead of the electrocardiogram data of the single heartbeat;
[0128] The second determining subunit is used to determine the waveform parameters of the multi-lead ECG data of the single heartbeat according to the waveform parameters of the individual lead ECG data of the single heartbeat.
[0129] In one possible implementation, the waveform parameters include one or more of P wave duration, Q wave duration, QRS duration, S wave duration, T wave duration, PR interval, RR interval, QT interval, PR segment, ST segment, P wave amplitude, Q wave amplitude, R wave amplitude, S wave amplitude and T wave amplitude.
[0130] In a possible implementation, the comparison unit includes:
[0131] A first comparison subunit, configured to compare the waveform parameters of the multi-lead ECG data of the single heartbeat with corresponding parameter thresholds to obtain a first comparison result;
[0132] A second comparison subunit is used to compare the waveform parameters of each lead electrocardiogram data of the single heartbeat with the corresponding parameter thresholds to obtain a second comparison result;
[0133] The third determining subunit is used to determine the classification and recognition result of the single heartbeat according to the first comparison result and the second comparison result.
[0134] In addition, an embodiment of the present application also provides a multi-lead ECG data classification device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the multi-lead ECG data classification method as described in any one of the above items is implemented.
[0135] In addition, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the multi-lead ECG data classification method as described in any one of the above items.
[0136] In this way, the embodiment of the present application can identify the starting point, end point, vertex and other characteristic points of each waveform in the multi-lead ECG data. Based on the recognition result, the waveform parameters of each waveform in the ECG data, such as the time limit, amplitude, and the values of each band and interval, can be calculated. Utilizing the numerical characteristics of the ECG data and the morphological characteristics of the ECG data, and combining with the expert experience, the parameter thresholds corresponding to the waveform parameters can be set, so as to compare and analyze the waveform parameters with the corresponding parameter thresholds, and output the classification and recognition results of a single heartbeat in the multi-lead ECG data. The embodiment of the present application identifies the starting point, end point, vertex and other characteristic points of each waveform in the multi-lead ECG data, and the characteristic point recognition is more comprehensive; by setting the parameter threshold, various ECG data categories can be identified, which improves the comprehensiveness and accuracy of the ECG data classification.
[0137] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0138] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0139] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0140] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0141] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A classification method for multi-lead ECG data, characterized in that: The method comprises: Acquire multi-lead ECG data, and divide the multi-lead ECG data into multi-lead ECG data of at least one heartbeat; Identify the position of characteristic points of a preset waveform in multi-lead ECG data of a single heartbeat, wherein the characteristic points of the preset waveform include a starting point, an end point, and a vertex of the preset waveform; Determining waveform parameters of the multi-lead ECG data of the single heartbeat according to the position of feature points of a preset waveform in the multi-lead ECG data of the single heartbeat; The waveform parameters of the multi-lead ECG data of the single heartbeat are compared with the corresponding parameter thresholds to obtain a classification and recognition result of the single heartbeat. The parameter threshold is determined based on the numerical characteristics and morphological characteristics of the ECG data. Each type of the classification and recognition result corresponds to a corresponding parameter threshold for different waveform parameters, and the threshold parameters are settable.
2. The method according to claim 1, characterized in that The method of identifying the position of a characteristic point of a preset waveform in the multi-lead ECG data of a single heartbeat includes: Segmenting the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to a preset waveform; The multi-lead ECG data corresponding to the preset waveform is input into a feature point recognition model corresponding to the preset waveform to obtain the feature point position of the preset waveform in the multi-lead ECG data of a single heartbeat.
3. The method according to claim 2, characterized in that The method of dividing the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to a preset waveform includes: Segment the multi-lead ECG data of a single heartbeat into multi-lead ECG data corresponding to P wave, Q wave, R wave, S wave and T wave; The step of inputting the multi-lead ECG data corresponding to the preset waveform into a feature point recognition model corresponding to the preset waveform to obtain the feature point position of the preset waveform in the multi-lead ECG data of a single heartbeat includes: Input the multi-lead ECG data corresponding to the P wave into the feature point recognition model corresponding to the P wave to obtain the feature point position of the P wave in the multi-lead ECG data of a single heartbeat; Input the multi-lead ECG data corresponding to the Q wave into the feature point recognition model corresponding to the Q wave to obtain the feature point position of the Q wave in the multi-lead ECG data of a single heartbeat; Input the multi-lead ECG data corresponding to the R wave into the feature point recognition model corresponding to the R wave to obtain the feature point position of the R wave in the multi-lead ECG data of a single heartbeat; Input the multi-lead ECG data corresponding to the S wave into the feature point recognition model corresponding to the S wave to obtain the feature point position of the S wave in the multi-lead ECG data of a single heartbeat; The multi-lead ECG data corresponding to the T wave is input into the feature point recognition model corresponding to the T wave to obtain the feature point position of the T wave in the multi-lead ECG data of a single heartbeat.
4. The method according to claim 2, characterized in that: The feature point recognition model corresponding to the preset waveform is a U-net model, which is obtained by training using the multi-lead ECG data to be trained corresponding to the preset waveform and the annotation of the feature point positions in the multi-lead ECG data to be trained.
5. The method according to claim 1, characterized in that: The step of determining the waveform parameters of the multi-lead ECG data of the single heartbeat according to the position of the characteristic points of the preset waveform in the multi-lead ECG data of the single heartbeat comprises: Determining waveform parameters of each lead of the electrocardiogram data of the single heartbeat according to the position of feature points of a preset waveform in each lead of the electrocardiogram data of the single heartbeat; The waveform parameters of the multi-lead ECG data of the single heartbeat are determined according to the waveform parameters of the individual lead ECG data of the single heartbeat.
6. The method according to claim 1 or 5, characterized in that: The waveform parameters include one or more of P wave duration, Q wave duration, QRS duration, S wave duration, T wave duration, PR interval, RR interval, QT interval, PR segment, ST segment, P wave amplitude, Q wave amplitude, R wave amplitude, S wave amplitude and T wave amplitude.
7. The method according to claim 5, characterized in that The step of comparing the waveform parameters of the multi-lead ECG data of the single heartbeat with the corresponding parameter thresholds to obtain the classification and recognition result of the single heartbeat includes: Comparing the waveform parameters of the multi-lead ECG data of the single heartbeat with the corresponding parameter thresholds to obtain a first comparison result; Comparing the waveform parameters of each lead of the electrocardiogram data of the single heartbeat with the corresponding parameter thresholds respectively to obtain a second comparison result; The classification and recognition result of the single heartbeat is determined according to the first comparison result and the second comparison result.
8. A classification device for multi-lead electrocardiogram data, characterized in that: The device comprises: An acquisition unit, configured to acquire multi-lead ECG data and segment the multi-lead ECG data into multi-lead ECG data of at least one heartbeat; An identification unit, used to identify the position of characteristic points of a preset waveform in the multi-lead ECG data of a single heartbeat, wherein the characteristic points of the preset waveform include the starting point, the end point and the vertex of the preset waveform, and each type of the classification and identification results corresponds to a different waveform parameter and has a corresponding parameter threshold, and the threshold parameter is configurable; A determination unit, configured to determine waveform parameters of the multi-lead ECG data of the single heartbeat according to the position of a feature point of a preset waveform in the multi-lead ECG data of the single heartbeat; A comparison unit is used to compare the waveform parameters of the multi-lead ECG data of the single heartbeat with the corresponding parameter threshold to obtain a classification and recognition result of the single heartbeat, wherein the parameter threshold is determined based on the numerical characteristics and morphological characteristics of the ECG data.
9. A classification device for multi-lead ECG data, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for classifying multi-lead ECG data as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the multi-lead ECG data classification method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Dynamic electrocardiogram analysis method and device based on artificial intelligent self-learning
CN107951485A
Method and system for automatically determining electrocardiogram state of user based on artificial intelligence
CN108836310A
Method and device for recognizing electrocardiograph, storage medium and computer equipment
CN110037680A
12-lead T-wave extraction method integrating U-net network and filtering method
CN112587152A
Multi-lead dynamic heart beat real-time classification method, device and equipment and storage medium
CN113180687A
