Dynamic electrocardiogram analysis method and system based on a two-stage template of waveform rhythm

Through a dynamic ECG analysis method based on two-stage waveform rhythm templates, the template is generated using clustering and classification algorithms and analyzed in two batch audit interfaces, the problem of inefficiency in the existing technology is solved, and rapid and accurate massive ECG data analysis is achieved.

CN115868995BActive Publication Date: 2025-08-01BIOX INSTR CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211565791.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-07
Publication Date
2025-08-01
Estimated Expiration
2042-12-07

AI Technical Summary

Technical Problem

The existing dynamic electrocardiogram analysis methods are inefficient when facing massive data, or are technically difficult, which makes it difficult for technicians in primary medical units to quickly master.

Method used

A dynamic ECG analysis method based on two-stage waveform rhythm templates is adopted. By generating waveform templates and rhythm templates, they are analyzed in two batch review interfaces respectively, and templates are generated using clustering and classification algorithms, and batch review and modification are carried out in combination with linkage logic tools.

Benefits of technology

It improves the efficiency of dynamic ECG analysis, reduces technical difficulty, and enables technicians in primary medical units to quickly and accurately analyze massive ECG data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115868995B_ABST
    Figure CN115868995B_ABST
Patent Text Reader

Abstract

The present invention provides a method for analyzing ambulatory electrocardiogram based on a two-stage template of waveform rhythm, which can analyze ambulatory electrocardiogram comprehensively and quickly. At the same time, the method is simple, the process is fixed, and it is easy to master, especially suitable for analyzing a large number of ambulatory electrocardiograms. In the technical solution of this application, the analysis process of ambulatory electrocardiogram is divided into two analysis stages: the analysis process based on waveform template and the analysis process based on rhythm template; all the waveforms of heart beats are batch-reviewed through the waveform superposition diagram corresponding to the clustering template, and the clutter template is browsed one by one in the way of sample diagram; through the generation process of the rhythm template, the missed beat template and supraventricular premature beat template that the analysts mainly focus on are screened out, and combined with other graphic tools, the data in the missed beat template and supraventricular premature beat template are comprehensively reviewed. At the same time, this application also discloses an ambulatory electrocardiogram analysis system based on a two-stage template of waveform rhythm.
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, and specifically to a dynamic electrocardiogram analysis method and system based on a two-stage template of waveform rhythm. Background Art

[0002] Dynamic electrocardiogram is a method for continuously recording and compiling the electrocardiogram changes of the heart during activity and rest for a long time. At present, with the development of mobile Internet technology and the demand for home monitoring, dynamic electrocardiogram tends to monitor a large amount of electrocardiogram data of the human body for 7 to 30 days or longer. At the same time, with the popularization of home electrocardiogram acquisition devices, the analysis of a large amount of electrocardiogram data has increased rapidly in grass-roots medical units.

[0003] The existing dynamic electrocardiogram analysis methods mainly include two types, namely: the traditional template editing method and the batch processing method represented by the scatter plot. The traditional template editing method is to gather heartbeats with the same QRS wave morphology into multiple templates by means of computer-aided algorithms. Clinicians only need to review a small number of templates instead of observing each heartbeat one by one; the operation process of the template editing method is fixed, and the interface involved mainly presents the electrocardiogram waveform, and the training is simple and easy for doctors to master. However, each template only represents heartbeats with the same QRS wave morphology, and their rhythm characteristics are still different. When detecting abnormal heartbeats related to rhythm, doctors still need to observe each heartbeat one by one, consuming a lot of time. If the traditional template editing method is used to analyze a large amount of dynamic electrocardiogram data, the analysis efficiency is low.

[0004] The batch processing method represented by the scatter plot advocates presenting the waveforms or rhythms of a large amount of heartbeats in a single graph through information stacking display algorithm technology, and assisting in designing corresponding batch modification tools to achieve batch modification of a large amount of data. Electrocardiogram analysts can achieve full heartbeat review and rapid batch correction of incorrect heartbeats by observing specific graphs. However, although the batch processing method represented by the scatter plot has a high degree of operation freedom, doctors need to independently select the operation process according to the case based on their own observation and judgment of the data and their mastery of various tools. Especially in the batch processing method represented by the scatter plot, the graph representing a large amount of heartbeat information is formed through abstract processing, which requires relatively high capabilities of technical personnel and needs long-term training to be fully mastered. For many grass-roots technical personnel, they cannot quickly master this method and cannot use this method when facing a large amount of electrocardiogram analysis. Summary of the Invention

[0005] In order to solve the problems of low analysis efficiency in existing ambulatory electrocardiogram analysis methods or great technical difficulty that is difficult to master quickly, the present invention provides an ambulatory electrocardiogram analysis method based on a two-stage template of waveform rhythm, which can analyze ambulatory electrocardiograms comprehensively and quickly. At the same time, the method is simple, the process is fixed, and it is easy to master, especially suitable for the analysis of a large number of ambulatory electrocardiograms. At the same time, the present application also discloses an ambulatory electrocardiogram analysis system based on a two-stage template of waveform rhythm.

[0006] The technical solution of the present invention is as follows: An ambulatory electrocardiogram analysis method based on a two-stage template of waveform rhythm, characterized in that it includes the following steps:

[0007] S1: Obtain the electrocardiogram wave samples of all heart beats to be analyzed, denoted as: electrocardiogram wave samples to be analyzed;

[0008] S2: Classify the electrocardiogram wave samples to be analyzed according to waveforms to generate waveform templates;

[0009] The template types of the waveform templates include: N, V, and X;

[0010] Type N represents: sinus heart beat; Type V represents: ventricular heart beat; Type X represents other heart beats;

[0011] S3: Generate other graphical tools for analysis based on the waveform templates, and display all the graphical tools for analysis on the batch review interface of the waveform templates;

[0012] The batch review interface of the waveform templates includes:

[0013] Waveform templates: Each type of heart beat sample of each template type is displayed as a set respectively, and each template type is displayed as an overlapping average waveform of all samples, and the clutter template is displayed as a question mark;

[0014] Sample graphs for waveform approval: A large number of specified heart beat sample waveforms are displayed in a list form, and each display is centered on the R wave, and the electrocardiogram wave of the heart beat is displayed according to the specified width;

[0015] Waveform superposition graphs for waveform approval: Superposition graphs of the waveforms of the specified samples;

[0016] Standard graphs for waveform approval: Centered on the specified time, display the electrocardiogram waves of a certain time period of the specified channel;

[0017] S4: Construct the linkage logic for waveform template approval among the various graphs in the batch review interface;

[0018] S5: Based on the linkage logic for waveform template approval, support batch analysis and modification of the electrocardiogram wave samples to be analyzed from the waveform angle;

[0019] The modified ECG wave sample to be analyzed is recorded as: ECG wave sample to be processed;

[0020] S6: Classifying all the to-be-processed ECG samples according to the lag rate and lead amount of the samples to generate a rhythm template;

[0021] The template types of the rhythm template include: leaky wave template and supraventricular premature template;

[0022] S7: generating other analysis graphic tools based on the to-be-processed ECG sample, and displaying the rhythm template and other analysis graphic tools on a batch review interface of the rhythm template;

[0023] The rhythm template batch review interface includes:

[0024] Rhythm template: Displays the heartbeat samples of each template type as a set. The leaky wave template is displayed as +, and the supraventricular premature template is displayed as the earliest sample.

[0025] Rhythm approval sample chart: Displays a large number of specified heart beat sample waveforms in a list format. Each display shows the heart beat ECG waveform with the R wave as the center and the specified width.

[0026] tRR scatter plot for rhythm approval: plot scatter plots with the time of each heartbeat as the horizontal axis and the RR interval as the vertical axis; the default time zone of the scatter plot is 1 hour;

[0027] Standard chart for rhythm approval: displays the ECG waves of a specified channel for a certain period of time, centered on a specified time.

[0028] S8: Constructing linkage logic for rhythm template approval between various graphic tools in the batch review interface;

[0029] S9: Based on the rhythm template batch review interface and the rhythm template approval linkage logic, batch review and batch processing of sample data are realized to complete the analysis of the dynamic electrocardiogram.

[0030] It is further characterized by:

[0031] The waveform template approval linkage logic includes:

[0032] Click the waveform template processing: draw a waveform overlay diagram and a waveform approval sample diagram using all samples included in the waveform template, and use the QRS wave position of the sample with the shortest time included in the waveform template as the time waveform approval standard diagram;

[0033] Select the waveform overlay for waveform approval:

[0034] Denote the set of heartbeat samples in the selected area of the waveform overlay diagram for waveform approval as: the set to be redrawn;

[0035] Using the set to be redrawn as input data, redraw the sample diagram for waveform approval; draw the standard diagram for waveform approval with the position of the QRS wave of the sample heartbeat with the smallest time in the set to be redrawn as the time center;

[0036] Select the sample diagram for waveform approval: draw the standard diagram for waveform approval with the position of the QRS wave of the first selected sample heartbeat in the sample diagram for waveform approval as the time center;

[0037] The linked logic for rhythm template approval includes:

[0038] Processing of clicking on the rhythm template: draw the sample diagram for rhythm approval with all the samples included in the rhythm template; draw the tRR scatter diagram for rhythm approval with the hour interval where the time of the QRS wave of the sample heartbeat with the smallest time included in the rhythm template is located; draw the standard diagram for rhythm approval with the time of the QRS wave of the sample heartbeat with the smallest time included in the rhythm template as the center;

[0039] Select the sample diagram for rhythm approval: draw the standard diagram for rhythm approval with the position of the QRS wave of the first selected sample heartbeat as the time center; redraw the tRR scatter diagram for rhythm approval with the hour interval where the time of the QRS wave of the first selected sample heartbeat is located. Represent the time position of this sample with a thick vertical line in the tRR scatter diagram, form a scatter point for this heartbeat sample represented by a thickened circle, represent the reference RR interval of this heartbeat with a thickened circle on the vertical line, and display its advance information or lag rate information;

[0040] Select the tRR scatter diagram for rhythm approval: in the set of heartbeats corresponding to the selected scatter points, redraw the standard diagram with the time of the QRS wave of the heartbeat with the smallest time as the center.

[0041] A dynamic electrocardiogram analysis system based on a two-stage waveform rhythm template, characterized in that it includes: a data import module, a waveform template batch review module, and a rhythm template batch review module;

[0042] The data import module supports batch import of electrocardiogram samples to be analyzed, generates waveform templates based on the electrocardiogram samples to be analyzed, and transfers the waveform templates to the waveform template batch review interface;

[0043] The waveform template batch review module includes: a waveform template batch review interface and a linked logic for waveform template approval;

[0044] The waveform template batch review interface includes: waveform templates, sample diagrams for waveform approval, waveform overlay diagrams for waveform approval, and standard diagrams for waveform approval;

[0045] The waveform template batch review module displays the received waveform template in the waveform template area of the waveform template batch review interface; receives the user's selection of the waveform template area, and draws a sample graph for waveform approval, a waveform superposition graph for waveform approval, and a standard graph for waveform approval according to the linkage logic for waveform template approval;

[0046] The waveform template batch review module receives the user's operations on each graph in the waveform template batch review interface, and realizes the linked modification between each graph based on the linkage logic for waveform template approval; the user operations supported by the waveform template batch review module include: clicking the rhythm template, box-selecting the sample graph for rhythm approval, and box-selecting the tRR scatter plot for rhythm approval;

[0047] The waveform template batch review module records the received electrocardiogram sample to be analyzed after the user's modification as: the electrocardiogram sample to be processed, and transfers the electrocardiogram sample to be processed to the rhythm template batch review module;

[0048] The rhythm template batch review module includes: a rhythm template batch review interface and a linkage logic for rhythm template approval;

[0049] The rhythm template batch review interface includes: a rhythm template, a sample graph for rhythm approval, a tRR scatter plot for rhythm approval, and a standard graph for rhythm approval;

[0050] After receiving the electrocardiogram sample to be processed, the rhythm template batch review module generates the rhythm template and displays it in the display area of the rhythm template in the rhythm template batch review interface; draws the tRR scatter plot for rhythm approval with the time of each electrocardiogram sample to be processed as the abscissa and the RR interval as the ordinate, and displays it; the rhythm template batch review module receives the user's selection of the rhythm template area, and draws the sample graph for rhythm approval and the standard graph for rhythm approval;

[0051] The waveform template batch review module receives the user's operations on each graph in the rhythm template batch review interface, and realizes the linked modification between each graph based on the linkage logic for waveform template approval; supports the user to perform batch review and batch processing of sample data;

[0052] The batch review includes:

[0053] Displaying the RR interval advance amount based on the tRR scatter plot for rhythm approval: displaying the RR interval advance amount corresponding to the time region of the specified start and end points in digital form in the batch review interface;

[0054] tRR scatter plot switching interval for rhythm approval: It is implemented by setting a switching button to switch the display of the hourly interval of the tRR scatter plot for rhythm approval forward or backward;

[0055] The batch processing includes:

[0056] Batch modify the heartbeat attributes based on the sample graph for rhythm approval: Batch modify the attributes of the selected heartbeats to S or N;

[0057] Batch insert heartbeats based on the sample graph for rhythm approval: Among the selected heartbeats, find the extreme points that meet the requirements according to the specified height threshold, and insert QRS waves of the specified type before the extreme points;

[0058] Batch modify the heartbeat attributes based on the tRR scatter plot for rhythm approval: Batch modify the attributes of the selected heartbeats to S or N;

[0059] Modify the start and end times of the area based on the tRR scatter plot for rhythm approval: The default start and end times of the modified area of the tRR scatter plot for rhythm approval are 1 hour. When the user needs to narrow the start and end times, modify the start and end times of the area.

[0060] Its further feature is that:

[0061] In the area of the rhythm template, there is also an area for manually modifying the template. The templates manually modified by the user are stored separately in the area for manually modifying the template;

[0062] Generating the waveform template in the data import module specifically includes the following steps:

[0063] a1: Preset a clustering stop condition;

[0064] Initialize the sample with i = 1;

[0065] Record all the heart electrical wave samples to be analyzed as: samples to be calculated;

[0066] a2: Calculate the samples to be calculated through the QRS wave clustering algorithm to form a clustering template i;

[0067] a3: i = i + 1;

[0068] a4: Remove the samples in the clustering template i from the samples to be calculated, and obtain the remaining heart electrical wave samples to be analyzed, recorded as: samples to be calculated;

[0069] Loop steps a2~a3 until the clustering stop condition is met;

[0070] a5: Remove all the heart electrical wave samples in the clustering templates from the heart electrical wave samples to be analyzed, and the remaining heart electrical wave samples are recorded as: samples to be separated;

[0071] a6: Calculate the superimposed average value of all sample waveforms in each clustering template one by one, and input it into the QRS wave classification algorithm. According to the template types included in the QRS wave classification algorithm, obtain the template type corresponding to each clustering template;

[0072] The template types include: N, V, and X;

[0073] Type N represents: sinus beat; Type V represents: ventricular beat; Type X represents other beats;

[0074] a7: Input the samples to be classified one by one into the QRS wave classification algorithm, obtain the type corresponding to each sample, find the corresponding template type according to the type corresponding to each sample, and place the samples of the same type into one template, denoted as: clutter template;

[0075] a8: Denote all clustering templates and clutter templates together as: waveform template;

[0076] The clustering stop condition is: stop the calculation when any of the following conditions is met;

[0077] Condition 1: i = maximum template quantity TmplNumLmt;

[0078] Condition 2: remaining sample quantity TmplSplLmt ≤ 1% of the electrocardiogram samples to be analyzed;

[0079] Among them, the maximum template quantity TmplNumLmt is the maximum supported template data volume during template analysis;

[0080] The remaining sample quantity TmplSplLmt is the average clutter quantity included in the electrocardiogram samples;

[0081] Generating the rhythm template specifically includes the following steps:

[0082] b1: Obtain each electrocardiogram sample to be processed one by one, denoted as: current beat;

[0083] b2: Calculate the attribute parameters of the current beat;

[0084] The attribute parameters include: clutter parameter, hysteresis rate, and lead;

[0085] Clutter parameter = RR sum / RR dom

[0086] Hysteresis rate = (RR - RR dom ) / RR dom

[0087] Lead = (RR dom - RR) / RR dom

[0088] where RR sum is the sum of the current heartbeat RR interval and the next heartbeat RR interval, and RR dom is the dominant RR interval of the current heartbeat; RR is the RR interval of the current heartbeat;

[0089] b3: Classify the current heartbeat into the corresponding rhythm template based on the attribute parameter;

[0090] The rhythm templates include: a missed beat template and a supraventricular premature beat template;

[0091] Specifically, it includes the following steps:

[0092] If the attribute of the current heartbeat is N and the following missed beat template judgment conditions are met, then: the current heartbeat is classified into the missed beat template;

[0093] Missed beat template judgment condition 1: The attributes of the adjacent heartbeats before and after the current heartbeat are not X;

[0094] Missed beat template judgment condition 2: Hysteresis rate > 1.8;

[0095] Missed beat template judgment condition 3: There is at least one extreme point in the baseline region of the current heartbeat;

[0096] where

[0097] The extreme point is: the maximum - minimum amplitude difference within a 200 - ms window centered on this point exceeds V thd * 0.5;

[0098] The baseline region: starting from 200 ms in front of the current heartbeat and ending at 300 ms behind the R wave of the previous heartbeat;

[0099] V thd is: the maximum - minimum amplitude difference within a 200 - ms window centered on the R wave of the current heartbeat;

[0100] If the attribute of the current heartbeat is N and the following supraventricular premature beat template judgment conditions are met, then: the attribute of the current heartbeat becomes S, and the current heartbeat is classified into the supraventricular premature beat template;

[0101] Supraventricular premature beat template judgment condition 1: The attributes of the adjacent heartbeats before and after the current heartbeat are not X;

[0102] Supraventricular premature beat template judgment condition 2: Lead > 0.25;

[0103] If the attribute of the current heartbeat is X and the clutter parameter ∈ [0.8, 1.2], then delete the current heartbeat;

[0104] Modifying the regional start and end times based on the rhythm approval tRR scatter plot specifically includes the following steps:

[0105] c1: Assume that the current tRR start and end times are: tStart, tEnd

[0106] Specify the time center point of the redraw area as tMid, then:

[0107] K=(tEnd-tMid) / (tMid-tSart)

[0108] c2: Set the start and end time of the redraw area to: tStart', tEnd';

[0109] Specify the starting time tStart' of the redraw area, then:

[0110] tEnd'=K*(tMid-tSart')+tMid;

[0111] The rhythm template batch review interface also includes:

[0112] Display the RR interval advance based on the tRR scatter graph for rhythm approval: display the RR interval advance corresponding to the time zone of the specified start and end points in digital form in the batch review interface; switch the interval based on the tRR scatter graph for rhythm approval: set a switch button to switch forward or backward to display the hour interval of the tRR scatter graph for rhythm approval.

[0113] The dynamic electrocardiogram analysis method based on the waveform rhythm two-stage template provided by the present invention constructs two review interfaces that are displayed successively: the waveform template batch review interface and the rhythm template batch review interface. Through the two review interfaces, the analysis process of the dynamic electrocardiogram is divided into two analysis stages: the analysis process based on the waveform template and the analysis process based on the rhythm template. The settings of the two processes not only conform to the principle of first looking at the waveform and then the rhythm to determine the type of heartbeat in the medical electrocardiogram interpretation process, but also in this method, the process is segmented, which can reduce the probability of problems such as omission caused by insufficient personal experience of technicians. In the process of generating the waveform template, a clustering template is generated through a clustering method, a clutter template is generated through a classification algorithm, and all the waveforms of the heartbeats are batch-reviewed through the waveform superposition diagram corresponding to the clustering template. The clutter template is browsed one by one through the sample diagram to ensure that the analyst comprehensively reviews the waveforms of all QRS waves; through the generation process of the rhythm template, the missed beat template and the supraventricular premature beat template that the analyst mainly focuses on are screened out, and combined with the sample diagram for rhythm approval, the tRR scatter diagram for rhythm approval, and the standard diagram for rhythm approval, the data in the missed beat template and the supraventricular premature beat template are comprehensively reviewed to ensure that the analyst will not miss any; that is, based on the two analysis stages of the waveform template and the rhythm template, it is ensured that all the heartbeats that need to be focused on can be confirmed by the analyst from both the waveform and rhythm perspectives. Moreover, by displaying different templates and analysis graphic tools through the review interface, the waveforms and rhythms of each heartbeat are displayed to the analyst from different angles. Compared with the existing method that only uses scatter diagrams for analysis, this application uses a more visualized analysis interface to ensure that technicians can quickly master the analysis method of this application; in the technical solution of this application, in each analysis stage, a template is generated first and then reviewed. The generation process of the template is automatically generated based on the electrocardiogram sample to be analyzed according to a preset data processing method. The review stage provides review tools and batch analysis and modification tools for technicians based on the two review interfaces, which is not only convenient for doctors to batch review and improve the editing efficiency, but also through the display of data by the two review interfaces, it can ensure that technicians can quickly understand the analysis results comprehensively, especially suitable for the process of analyzing a large amount of electrocardiogram data. BRIEF DESCRIPTION OF THE DRAWINGS

[0114] Figure 1 It is a module schematic diagram of the dynamic electrocardiogram analysis system with the waveform rhythm two-stage template in this application;

[0115] Figure 2 It is an embodiment of the waveform template batch review interface;

[0116] Figure 3 It is an embodiment of the rhythm template batch review interface;

[0117] Figure 4It is a schematic diagram of the rhythm template generation process. Specific embodiments

[0118] As Figure 1 shown, the present invention includes a dynamic electrocardiogram analysis system based on a two-stage waveform rhythm template, which includes: a data import module, a waveform template batch review module, and a rhythm template batch review module.

[0119] The data import module supports batch import of electrocardiogram wave samples to be analyzed, generates waveform templates based on the electrocardiogram wave samples to be analyzed, and transfers the waveform templates to the waveform template batch review interface.

[0120] Generating a waveform template in the data import module specifically includes the following steps:

[0121] a1: Preset a clustering stop condition;

[0122] Initialize the sample with i = 1;

[0123] Record all the electrocardiogram wave samples to be analyzed as: samples to be calculated;

[0124] a2: Calculate the samples to be calculated through the QRS wave clustering algorithm to form a clustering template i;

[0125] a3: i = i + 1;

[0126] a4: Remove the samples in the clustering template i from the samples to be calculated, and obtain the remaining electrocardiogram wave samples to be analyzed, recorded as: samples to be calculated;

[0127] Loop steps a2 to a3 until the clustering stop condition is met;

[0128] a5: Remove all the electrocardiogram wave samples in the clustering templates from the electrocardiogram wave samples to be analyzed, and the remaining electrocardiogram wave samples are recorded as: samples to be classified;

[0129] a6: Calculate the superimposed average value of all the sample waveforms in each clustering template one by one, and input it into the QRS wave classification algorithm. According to the template types included in the QRS wave classification algorithm, obtain the corresponding template type for each clustering template;

[0130] The template types include: N, V, and X;

[0131] Type N represents: sinus beat; Type V represents: ventricular beat; Type X represents other beats;

[0132] a7: Input the samples to be classified into the QRS wave classification algorithm one by one, obtain the corresponding type for each sample, find the corresponding template type according to the type of each sample, and place the samples of the same type into one template, recorded as: clutter template;

[0133] a8: Denote all clustering templates and clutter templates uniformly as: waveform templates.

[0134] Among them, the clustering stop condition is: when any of the following conditions is met, stop the calculation;

[0135] Condition 1: i = the maximum number of templates TmplNumLmt;

[0136] Condition 2: The remaining number of samples TmplSplLmt ≤ 1% of the electrocardiogram samples to be analyzed;

[0137] Among them, the maximum number of templates TmplNumLmt is the maximum supported template data volume during template analysis;

[0138] The remaining number of samples TmplSplLmt is the average number of clutter included in the electrocardiogram samples.

[0139] From the perspective of the analyst's browsing, forming too many templates will lead to cumbersome operations, which in turn will lead to a decrease in analysis efficiency and an increase in error rate. In this embodiment, the maximum number of templates acceptable to the analyst is set to 20 (TmplNumLmt = 20), which can not only ensure the analysis efficiency but also avoid errors caused by excessive operations. Usually, the electrocardiograms of a specific person only have several typical forms, so they can be perfectly clustered without generating clutter templates. Clutter templates are generally caused by waveform jitter that cannot be clustered due to interference, or extremely special heart diseases that cause complex and variable electrocardiograms. In this embodiment, it is assumed that the time ratio of interference in an electrocardiogram record does not exceed 1%. Therefore, Condition 2 is set to: The remaining number of samples TmplSplLmt ≤ 1% of the electrocardiogram samples to be analyzed. Through the control of Condition 1 and Condition 2, it is ensured that the generated waveform templates meet the conditions in actual production and life and also conform to the characteristics of the electrocardiogram record data itself.

[0140] The input of the data import module is all electrocardiogram samples to be analyzed, and the output is: waveform templates, including several clustering sub-templates and clutter sub-templates of N, V, and X types.

[0141] In this application, the QRS wave clustering algorithm and QRS wave classification algorithm in the prior art are used to cluster and judge the template types of the electrocardiogram samples to be analyzed. Among them, the QRS wave clustering algorithm calculates the similarity between QRS waves among samples of different heartbeats, and clusters some samples with similar QRS waves together to form a set, which is called a template; the QRS wave classification algorithm classifies and judges according to the sample waveforms of the input heartbeats, and outputs the corresponding template types of the templates, including: N, V, and X types.

[0142] The waveform template batch review module includes: a waveform template batch review interface and a linkage logic for waveform template approval;

[0143] As shown Figure 2 in the waveform template batch review interface, there are: waveform template, sample graph for waveform approval (marked as sample graph in the figure), waveform superposition graph for waveform approval (marked as waveform superposition graph in the figure), and standard graph for waveform approval (marked as standard graph in the figure);

[0144] The waveform template batch review module displays the received waveform template in the waveform template area of the waveform template batch review interface; receives the user's selection of the waveform template area, and draws the sample graph for waveform approval, the waveform superposition graph for waveform approval, and the standard graph for waveform approval according to the linkage logic for waveform template approval.

[0145] The waveform template batch review module receives the user's operations on each graphic tool in the waveform template batch review interface, and realizes the linked modification between each graphic tool based on the linkage logic for waveform template approval; the user operations supported by the waveform template batch review module include: clicking the rhythm template, box-selecting the sample graph for rhythm approval, and box-selecting the tRR scatter plot for rhythm approval.

[0146] The linkage logic for waveform template approval includes:

[0147] Processing for clicking the waveform template: Drawing the waveform superposition graph for waveform approval and the sample graph for waveform approval with all the samples included in the waveform template, and using the position of the QRS wave of the sample with the minimum time included in the waveform template as the time center for the standard graph of waveform approval;

[0148] Box-selecting the waveform superposition graph for waveform approval:

[0149] Denoting the set of heart beat samples in the box-selected area of the waveform superposition graph for waveform approval as: the set to be redrawn;

[0150] Using the set to be redrawn as the input data to redraw the sample graph for waveform approval; using the position of the QRS wave of the sample with the minimum time in the set to be redrawn as the time center to draw the standard graph of waveform approval;

[0151] Box-selecting the sample graph for waveform approval: Drawing the standard graph of waveform approval with the position of the QRS wave of the first box-selected sample in the sample graph for waveform approval as the time center.

[0152] The waveform template batch review module denotes the sample of the electrocardiogram to be analyzed after the user's modification as: the sample of the electrocardiogram to be processed, and transfers the sample of the electrocardiogram to be processed to the rhythm template batch review module.

[0153] Specifically in implementation, the sample graph for waveform approval supports the operation of mouse box-selection and modification of heart beat attributes, the standard graph for waveform approval supports the operation of mouse box-selection to change the heart beat attributes of the selected area, and the waveform superposition graph for waveform approval supports the operation of mouse box-selection for template stripping and heart beat editing attributes.

[0154] Based on the waveform template batch review interface provided by the waveform template batch review module, analysts can comprehensively review the waveforms of electrocardiogram samples to be analyzed through waveform templates, waveform approval sample diagrams, waveform approval waveform superimposed diagrams, and waveform approval standard diagrams. The clustering template can review the waveforms of all heartbeats through the waveform approval waveform superimposed diagram, and the clutter template is browsed one by one through the sample diagram to ensure that analysts comprehensively review the waveforms of QRS waves and reduce the probability of omission; in this application, the review interface is vivid and comprehensive, not only easy to master, but also reduces the probability of omission of waveform review by analysts.

[0155] Based on the linkage logic for waveform template approval in the waveform template batch review module, analysts can complete batch modification of electrocardiogram samples to be analyzed through operations such as clicking on the waveform template, selecting the waveform approval waveform superimposed diagram by box, and selecting the waveform approval sample diagram by box. For example: clicking on the waveform template or clutter template, combined with the waveform approval waveform superimposed diagram and the waveform approval sample diagram, batch modify some samples to X or N or V. Based on the waveform template batch review interface, batch process the data, greatly improving the analysis efficiency, especially suitable for scenarios of batch review and modification of massive data.

[0156] The rhythm template batch review module includes: a rhythm template batch review interface and a linkage logic for rhythm template approval.

[0157] After receiving the electrocardiogram samples to be processed, the rhythm template batch review module generates a rhythm template and displays it in the display area of the rhythm template in the rhythm template batch review interface; draws a tRR scatter diagram for rhythm approval with the time of each electrocardiogram sample to be processed as the abscissa and the RR interval as the ordinate and displays it; the rhythm template batch review module receives the user's selection of the rhythm template area and draws a sample diagram for rhythm approval and a standard diagram for rhythm approval.

[0158] In the rhythm template batch review module, generating a rhythm template, as Figure 4 shown, specifically includes the following steps:

[0159] b1: Obtain each electrocardiogram sample to be processed one by one, denoted as: the current heartbeat;

[0160] b2: Calculate the attribute parameters of the current heartbeat;

[0161] The attribute parameters include: clutter parameter, lag rate, and lead amount:

[0162] Clutter parameter = RR sum / RR dom

[0163] Lag rate =(RR - RRdom ) / RR dom

[0164] Lead = (RR dom - RR) / RR dom

[0165] where RR sum is the sum of the current heartbeat RR interval and the RR interval of the next heartbeat, and RR dom is the dominant RR interval of the current heartbeat; RR is the RR interval of the current heartbeat;

[0166] b3: Classify the current heartbeat into the corresponding rhythm template based on the attribute parameters;

[0167] The rhythm templates include: the dropped beat template and the supraventricular premature beat template;

[0168] Specifically, it includes the following steps:

[0169] If the attribute of the current heartbeat is N and the following dropped beat template judgment conditions are met, then: the current heartbeat is classified into the dropped beat template;

[0170] Dropped beat template judgment condition 1: The attributes of the adjacent heartbeats before and after the current heartbeat are not X;

[0171] Dropped beat template judgment condition 2: The hysteresis rate > 1.8;

[0172] Dropped beat template judgment condition 3: There is at least one extreme point in the baseline region of the current heartbeat;

[0173] where

[0174] The extreme point is: the maximum - minimum amplitude difference within a 200 - ms window centered on this point exceeds V thd * 0.5;

[0175] Baseline region: Starting from 200 ms in front of the current heartbeat and ending at 300 ms behind the R wave of the previous heartbeat;

[0176] V thd is: the maximum - minimum amplitude difference within a 200 - ms window centered on the R wave of the current heartbeat;

[0177] If the attribute of the current heartbeat is N and the following supraventricular premature beat template judgment conditions are met, then: the attribute of the current heartbeat becomes S, and at the same time, the current heartbeat is classified into the supraventricular premature beat template;

[0178] Supraventricular premature beat template judgment condition 1: The attributes of the adjacent heartbeats before and after the current heartbeat are not X;

[0179] Supraventricular premature beat template judgment condition 2: The lead > 0.25;

[0180] If the attribute of the current heartbeat is X and the clutter parameter ∈ [0.8, 1.2], then delete the current heartbeat.

[0181] Through the rhythm template generation process, this method will filter out the leaky wave template and supraventricular premature beat template that analysts are mainly concerned about. In the specific implementation, the rhythm template batch review module scans all X-attribute heart beats, deletes some X-attribute heart beats, scans all N-attribute heart beats, and then Figure 4 The logic of , generates leaky wave template and supraventricular premature template. Among them, the dominant RR interval RR of the current heartbeat dom For the calculation method, please refer to the patent document: Method for obtaining the dominant heart rate of the heartbeat based on the forward and reverse propagation algorithm, application number: CN202110191004.2.

[0182] like Figure 3 As shown, the rhythm template batch review interface includes: rhythm templates, rhythm approval sample graphs, rhythm approval tRR scatter plots, and rhythm approval standard graphs. Specifically, the rhythm approval sample graph supports mouse selection and modification of heartbeat attributes; the rhythm approval standard graph supports mouse selection to modify heartbeat attributes within a specific area.

[0183] In the rhythm template batch review interface, through the combination of the dominant RR interval and the tRR scatter plot, the actual work is simulated, in which analysts refer to the previous memory of the dominant sinus rhythm when judging the image, compare it with the current heart beat information, and quickly browse the process of processing leakage waves and supraventricular heart beat problems, to ensure that the technical solution of this application can meet actual needs and be easily accepted by analysts.

[0184] The waveform template batch review module receives user operations on various graphic tools in the rhythm template batch review interface and implements linkage modification between various graphic tools based on the waveform template approval linkage logic. Supported operations include: clicking on the rhythm template, selecting the rhythm approval sample graph, and selecting the rhythm approval tRR scatter graph. The rhythm template approval linkage logic corresponding to these operations includes:

[0185] Click the rhythm template processing: draw the sample graph for rhythm approval with all samples contained in the rhythm template; draw the tRR scatter graph for rhythm approval with the hour interval of the time of the sample heart beat QRS wave with the smallest time contained in the rhythm template; draw the standard graph for rhythm approval with the time of the sample heart beat QRS wave with the smallest time contained in the rhythm template as the center.

[0186] Sample diagram for rhythm approval by box selection: Draw a standard diagram for rhythm approval with the position of the QRS wave of the first sampled heartbeat selected by box as the time center; Redraw the tRR scatter plot for rhythm approval with the hour interval in which the time of the QRS wave of the first sampled heartbeat selected by box is located. Represent the time position of this sample with a thick vertical line in the tRR scatter plot, form a scatter point for this heartbeat sample and represent it with a thickened circle, represent the reference RR interval of this heartbeat with a thickened circle on the vertical line, and display its advance information (RR interval is less than the reference RR interval) or lag rate information (RR interval is greater than the reference RR interval);

[0187] tRR scatter plot for rhythm approval by box selection: In the set of heartbeats corresponding to the scatter points selected by box, redraw the standard diagram with the QRS time of the heartbeat with the minimum time as the center.

[0188] Meanwhile, the waveform template batch review module supports users to perform batch review and batch processing of sample data; Batch review includes:

[0189] Display the RR interval advance based on the tRR scatter plot for rhythm approval: Display the RR interval advance corresponding to the time region between the specified start and end points in digital form on the batch review interface; As Figure 3 In the shown embodiment, re-judge the supraventricular premature beats in this time region with the number above the scroll bar (RR interval advance) as the threshold. Usually, it is necessary to increase the supraventricular premature advance at the moment when the sinus arrhythmia is more serious. In this application, based on the display of the RR interval advance, combined with other batch processing operations, it is ensured that the analyst can manually set the RR interval advance separately for different regions. It solves the need of the analyst in actual work to change the supraventricular premature advance threshold by time period.

[0190] Switch intervals based on the tRR scatter plot for rhythm approval: Implement by setting a switch button to switch the hour interval of the tRR scatter plot for rhythm approval forward or backward; As Figure 3 In the shown embodiment, the upper left arrow button: Switch the hour interval of the tRR scatter plot forward or backward to ensure that the analyst can easily select the observation time region.

[0191] Batch processing includes:

[0192] Batch modify the heartbeat attributes based on the sample diagram for rhythm approval: Batch modify the attributes of the selected heartbeats to S or N;

[0193] Batch insert heartbeats based on the sample diagram for rhythm approval: Among the selected heartbeats, find the extreme points that meet the requirements according to the specified height threshold, and insert QRS waves of the specified type before the extreme points;

[0194] Batch modify the heartbeat attributes based on the tRR scatter plot for rhythm approval: Batch modify the attributes of the selected heartbeats to S or N;

[0195] Modify the start and end times of the modified area of the tRR scatter plot for rhythm approval: The default start and end times of the modified area of the tRR scatter plot for rhythm approval are 1 hour. When the user needs to narrow the start and end times, modify the start and end times of the area.

[0196] In the specific implementation, the area of the rhythm template also includes a manually modified template area. The templates manually modified by the user are stored separately in the manually modified template area, ensuring that analysts can quickly and clearly review the templates they have adjusted and improving the efficiency of analysis and review.

[0197] Modify the start and end times of the area based on the tRR scatter plot for rhythm approval, which specifically includes the following steps:

[0198] c1: Let the current start and end times of tRR be: tStart, tEnd

[0199] Specify the time center point of the redrawn area as tMid, then there is:

[0200] K = (tEnd - tMid) / (tMid - tSart)

[0201] c2: Let the start and end times of the redrawn area be: tStart’, tEnd’;

[0202] Specify the start time tStart’ of the redrawn area, then there is:

[0203] tEnd’ = K * (tMid - tSart’) + tMid;

[0204] In this application, by modifying the start and end times of the area of the tRR scatter plot for rhythm approval, the amplification of data in a specific specified time area is realized, ensuring that analysts can analyze data more quickly and accurately.

[0205] The rhythm template batch review interface also includes:

[0206] Display the RR interval advance amount based on the tRR scatter plot for rhythm approval: Display the RR interval advance amount corresponding to the time area of the specified start and end points in digital form in the batch review interface; Switch intervals based on the tRR scatter plot for rhythm approval: Set a switch button to realize forward or backward switching to display the hourly interval of the tRR scatter plot for rhythm approval.

[0207] Based on the Figure 3 rhythm batch review interface shown, ensure that analysts can batch process missed beats and supraventricular beats. For example: For the use of the missed beat template, the function of batch inserting heart beats based on the sample plot for rhythm approval:

[0208] d1: Preset a height threshold (percentage of the current QRS wave height); specify the type of QRS wave to be inserted.

[0209] d2: Click on the missed beat template, select the samples in the missed beat template, and right-click to run the batch insert heartbeat function through the right-click menu.

[0210] d3: For all the selected heartbeats, perform the following operations one by one to complete the batch insert heartbeat operation:

[0211] Find the extreme point between the current heartbeat and the previous heartbeat, confirm the height ratio between the height of the extreme point and the height of the current heartbeat. If the height ratio is lower than the preset height threshold, insert the specified type of QRS wave.

[0212] If the height ratio is not less than the height threshold, there is no need to insert.

[0213] For example, based on the function of displaying the RR interval advance amount and the function of batch modifying the start and end times of the region, modify the supraventricular premature beat template:

[0214] e1: Click on the supraventricular premature beat template, and by viewing the tRR scatter plot where different samples are located, observe the situation of the S attribute in the tRR scatter plot.

[0215] e2: Scroll the right scroll bar, and use the number of the RR interval advance amount above the scroll bar as the threshold.

[0216] e3: Based on the RR interval advance amount, re-judge the supraventricular premature beats in this time region. Implement the requirement that the analyst hopes to change the supraventricular premature beat advance amount threshold in different time periods.

[0217] Based on the above dynamic electrocardiogram analysis method based on the two-stage template of waveform rhythm implemented by the dynamic electrocardiogram analysis system, it includes the following steps.

[0218] S1: Based on the data import module, obtain the electrocardiogram wave samples of all heartbeats to be analyzed, denoted as: electrocardiogram wave samples to be analyzed.

[0219] S2: Classify the electrocardiogram wave samples to be analyzed according to the waveform to generate a waveform template.

[0220] The template types of the waveform template include: N, V, and X.

[0221] Type N represents: sinus heartbeat; type V represents: ventricular heartbeat; type X represents other heartbeats.

[0222] S3: Display the waveform template on the batch review interface of the waveform template, generate other analysis graphic tools based on the waveform template, and display all the analysis graphic tools on the batch review interface of the waveform template.

[0223] The waveform template batch review interface includes:

[0224] As Figure 2 shown, the waveform template: The heartbeat samples of each template type are displayed separately as a set, and each template type is displayed as an overlay average waveform of all samples. The clutter template is displayed as a "question mark";

[0225] Sample graph for waveform approval: A large number of specified heartbeat sample waveforms are displayed in a list form. Each display is centered on the R wave, and the electrocardiogram waveform of the heartbeat is displayed according to the specified width; in this embodiment, since for the waveform template, it is not necessary to observe the previous heartbeat situation, the specified width is set to 500 ms;

[0226] Waveform overlay graph for waveform approval: The waveform overlay graph of the specified samples;

[0227] Standard graph for waveform approval: Centered on the specified time, the electrocardiogram of a certain time period of the specified channel is displayed.

[0228] S4: Construct the linkage logic for waveform template approval among the various graphs in the batch review interface,

[0229] The linkage logic for waveform template approval enables the batch modification process to be synchronized among the various graphs, ensuring that while the analyst can batch modify the data, the synchronization and linkage among the various templates and graphs are maintained.

[0230] S5: Based on the linkage logic for waveform template approval, support the analyst to perform batch analysis and modification of the electrocardiogram samples to be analyzed from the perspective of the QRS waveform.

[0231] The modified electrocardiogram samples to be analyzed are denoted as: electrocardiogram samples to be processed.

[0232] S6: Classify all the electrocardiogram samples to be processed according to the lag rate and lead of the samples, and generate a rhythm template;

[0233] The template types of the rhythm template include: missed beat template and supraventricular premature beat template.

[0234] S7: Generate other graphical tools for analysis based on the electrocardiogram samples to be processed, and display both the rhythm template and other graphical tools for analysis on the batch review interface of the rhythm template;

[0235] As Figure 3 shown, the rhythm template batch review interface includes:

[0236] Rhythm template: The heartbeat samples of each template type are displayed separately as a set. The missed beat template is displayed as a "+", and the supraventricular premature beat template is displayed with the sample with the earliest time;

[0237] Sample diagram for rhythm approval: It shows a large number of specified heartbeat sample waveforms in a list form. Each display shows the electrocardiogram waveform of the heartbeat centered on the R wave and with a specified width; for the rhythm template, it is necessary to observe the previous and subsequent heartbeats, so the specified width is set to 2000 ms.

[0238] tRR scatter plot for rhythm approval: Scatter points are plotted with the time of each heartbeat as the abscissa and the RR interval as the ordinate; the default value of the time range of the scatter plot is 1 hour.

[0239] Standard diagram for rhythm approval: It shows the electrocardiogram of a certain time period of the specified channel centered on the specified time.

[0240] S8: Construct the linkage logic for rhythm template approval among various graphical tools in the batch review interface.

[0241] S9: Based on the batch review interface of the rhythm template and the linkage logic for rhythm template approval, support analysts to achieve batch review and batch processing of sample data, and complete the analysis of ambulatory electrocardiogram.

[0242] In the technical solution of this application, based on the waveform template and the rhythm template, the ambulatory electrocardiogram analysis process is divided into two segments, which not only conforms to the principle of first looking at the waveform and then looking at the rhythm to determine the heartbeat type in the medical electrocardiogram interpretation process; at the same time, specific editing tools are designed for each analysis segment based on the ambulatory electrocardiogram analysis system, which can not only guide analysts to analyze according to this method, but also, based on the batch review and batch modification tools provided in the waveform template batch review interface and the rhythm template batch review interface of this application, greatly facilitate the batch review of analysts and improve the editing efficiency.

Claims

1. A method for analyzing dynamic electrocardiogram based on a two-stage template of waveform rhythm, characterized in that, It includes the following steps: S1: Obtain the electrocardiogram wave samples of all heartbeats to be analyzed, denoted as: electrocardiogram wave samples to be analyzed; S2: Classify the electrocardiogram wave samples to be analyzed according to waveforms to generate waveform templates; The template types of the waveform templates include: N, V, and X; Type N indicates: sinus heartbeat; Type V indicates: ventricular heartbeat; Type X indicates other heartbeats; S3: Generate other analysis graphic tools based on the waveform templates, and display all the analysis graphic tools on the batch review interface of the waveform templates; The batch review interface of the waveform templates includes: Waveform templates: Each type of heartbeat sample of each template type is displayed as a set respectively. Each template type is displayed as an overlay average waveform of all samples, and the clutter template is displayed as?; Sample graphs for waveform approval: Display the waveforms of specified heartbeat samples in a list form. Each display is centered on the R wave and displays the electrocardiogram wave of the heartbeat according to the specified width; Waveform overlay graphs for waveform approval: Waveform overlay graphs of specified samples; Standard graphs for waveform approval: Display the electrocardiogram waves of a certain time period of a specified channel centered on the specified time; S4: Construct the linkage logic for waveform template approval among the various graphs in the batch review interface; S5: Based on the linkage logic for waveform template approval, support batch analysis and modification of the electrocardiogram wave samples to be analyzed from the waveform angle; Denote the modified electrocardiogram wave samples to be analyzed as: electrocardiogram wave samples to be processed; S6: Classify all the electrocardiogram wave samples to be processed according to the lag rate and lead of the samples to generate rhythm templates; The template types of the rhythm templates include: missed wave templates and supraventricular premature templates; S7: Generate other analysis graphic tools based on the electrocardiogram wave samples to be processed, and display the rhythm templates and other analysis graphic tools on the batch review interface of the rhythm templates; The batch review interface of the rhythm templates includes: Rhythm templates: Each type of heartbeat sample of each template type is displayed as a set respectively. The missed wave template is displayed as +, and the supraventricular premature template is displayed with the sample with the earliest time; Sample graphs for rhythm approval: Display the waveforms of specified heartbeat samples in a list form. Each display is centered on the R wave and displays the electrocardiogram wave of the heartbeat according to the specified width; tRR scatter plots for rhythm approval: Plot scatter points with the time of each heartbeat as the abscissa and the RR interval as the ordinate; the default value of the time area of the scatter plot is 1 hour; Standard graphs for rhythm approval: Display the electrocardiogram waves of a certain time period of a specified channel centered on the specified time; S8: Construct the linkage logic for rhythm template approval among the various graphic tools in the batch review interface; S9: Based on the batch review interface of the rhythm templates and the linkage logic for rhythm template approval, implement batch review and batch processing of sample data to complete the analysis of the dynamic electrocardiogram; The linkage logic for waveform template approval includes: Processing by clicking on the waveform template: Draw waveform overlay graphs for waveform approval and sample graphs for waveform approval with all the samples included in the waveform template, and use the position of the QRS wave of the sample heartbeat with the smallest time included in the waveform template as the standard graph of the time waveform for waveform approval; Select the waveform superposition diagram for waveform approval: Denote the set of heartbeat samples in the selected area of the waveform superposition diagram for waveform approval as the set to be redrawn; Using the set to be redrawn as input data, redraw the sample diagram for waveform approval; draw the standard diagram for waveform approval with the position of the QRS wave of the sample heartbeat with the smallest time in the set to be redrawn as the time center; Select the sample diagram for waveform approval: draw the standard diagram for waveform approval with the position of the QRS wave of the first selected sample heartbeat in the sample diagram for waveform approval as the time center; The linked logic for rhythm template approval includes: Processing for clicking on the rhythm template: draw the sample diagram for rhythm approval with all the samples included in the rhythm template; draw the tRR scatter plot for rhythm approval with the hour interval where the time of the QRS wave of the sample heartbeat with the smallest time included in the rhythm template is located; draw the standard diagram for rhythm approval with the time of the QRS wave of the sample heartbeat with the smallest time included in the rhythm template as the center; Select the sample diagram for rhythm approval: draw the standard diagram for rhythm approval with the position of the QRS wave of the first selected sample heartbeat as the time center; redraw the tRR scatter plot for rhythm approval with the hour interval where the time of the QRS wave of the first selected sample heartbeat is located. Represent the time position of this sample with a thick vertical line in the tRR scatter plot, form a scatter point for this heartbeat sample represented by a thickened circle, represent the reference RR interval of this heartbeat with a thickened circle on the vertical line, and display its advance information or lag rate information; Select the tRR scatter plot for rhythm approval: select the set of heartbeats corresponding to the scatter points and redraw the standard diagram with the time of the QRS wave of the heartbeat with the smallest time as the center.

2. A dynamic electrocardiogram analysis system for implementing the dynamic electrocardiogram analysis method based on the two-stage template of waveform rhythm according to claim 1, characterized in that, It includes: A data import module, a waveform template batch review module, and a rhythm template batch review module; The data import module supports batch import of the electrocardiogram samples to be analyzed. Based on the electrocardiogram samples to be analyzed, generate a waveform template and transfer the waveform template to the waveform template batch review interface; The waveform template batch review module includes: a waveform template batch review interface and a linked logic for waveform template approval; The waveform template batch review interface includes: a waveform template, a sample diagram for waveform approval, a waveform superposition diagram for waveform approval, and a standard diagram for waveform approval; The waveform template batch review module displays the received waveform template in the waveform template area of the waveform template batch review interface; receives the user's selection of the waveform template area, and draws the sample diagram for waveform approval, the waveform superposition diagram for waveform approval, and the standard diagram for waveform approval according to the linked logic for waveform template approval; The waveform template batch review module receives the user's operations on each graph in the waveform template batch review interface and realizes the linked modification between each graph based on the linked logic for waveform template approval; the user operations supported by the waveform template batch review module include: clicking on the waveform template, selecting the waveform superposition diagram for waveform approval, and selecting the sample diagram for waveform approval; The waveform template batch review module records the analyzed electrocardiogram sample modified by the user as: the electrocardiogram sample to be processed, and transfers the electrocardiogram sample to be processed to the rhythm template batch review module; The rhythm template batch review module includes: a rhythm template batch review interface and a linked logic for rhythm template approval; The rhythm template batch review interface includes: a rhythm template, a sample graph for rhythm approval, a tRR scatter plot for rhythm approval, and a standard graph for rhythm approval; After receiving the electrocardiogram sample to be processed, the rhythm template batch review module generates the rhythm template and displays it in the display area of the rhythm template in the rhythm template batch review interface; taking the time of each electrocardiogram sample to be processed as the abscissa and the RR interval as the ordinate, the tRR scatter plot for rhythm approval is plotted and displayed; the rhythm template batch review module receives the user's selection of the rhythm template area, and plots the sample graph for rhythm approval and the standard graph for rhythm approval; The rhythm template batch review module receives the user's operations on each graph in the rhythm template batch review interface, and realizes the linked modification between each graph based on the linked logic for rhythm template approval; supports the user to perform batch review and batch processing of sample data; The batch review includes: Displaying the RR interval advance amount based on the tRR scatter plot for rhythm approval: displaying the RR interval advance amount corresponding to the time region of the specified start and end points in digital form in the batch review interface; Switching intervals based on the tRR scatter plot for rhythm approval: realized by setting a switching button to switch the hour interval of the tRR scatter plot for rhythm approval forward or backward; The batch processing includes: Batch modifying the heartbeat attributes based on the sample graph for rhythm approval: batch modifying the attributes of the selected heartbeats to S or N; Batch inserting heartbeats based on the sample graph for rhythm approval: among the selected heartbeats, according to the specified height threshold, finding the extreme points that meet the requirements, and inserting QRS waves of the specified type before the extreme points; Batch modifying the heartbeat attributes based on the tRR scatter plot for rhythm approval: batch modifying the attributes of the selected heartbeats to S or N; Modifying the start and end times of the region based on the tRR scatter plot for rhythm approval: the start and end times of the modified region of the tRR scatter plot for rhythm approval are defaulted to 1 hour, and when the user needs to narrow the start and end times, the start and end times of the region are modified.

3. The dynamic electrocardiogram analysis system based on a two-stage template of waveform rhythm according to claim 2, wherein: In the region of the rhythm template, there is also a manually modified template region, and the templates manually modified by the user are stored separately in the manually modified template region; Generating the waveform template in the data import module specifically includes the following steps: a1: Presetting a clustering stop condition; Initializing the sample requires i = 1; Recording all the analyzed electrocardiogram samples as: samples to be calculated; a2: Calculating the samples to be calculated through the QRS wave clustering algorithm to form a clustering template i; a3: i = i + 1; a4: Removing the samples in the clustering template i from the samples to be calculated, and obtaining the remaining analyzed electrocardiogram samples, recorded as: samples to be calculated; Repeat steps a2 to a3 until the clustering stop condition is met; a5: Remove all the clustered template electrocardiogram samples from the electrocardiogram samples to be analyzed, and the remaining electrocardiogram samples are denoted as: samples to be classified; a6: Calculate the superimposed average value of all the sample waveforms in each clustering template one by one and input it into the QRS wave classification algorithm. According to the template types included in the QRS wave classification algorithm, obtain the corresponding template type for each clustering template; The template types include: N, V, and X; Type N represents: sinus beat; Type V represents: ventricular beat; Type X represents other beats; a7: Input the samples to be classified into the QRS wave classification algorithm one by one, obtain the corresponding type for each sample, find the corresponding template type according to the type of each sample, and place the samples of the same type into one template, denoted as: clutter template; a8: Denote all the clustering templates and clutter templates together as: waveform templates.

4. The dynamic electrocardiogram analysis system based on a two-stage template of waveform rhythm according to claim 3, wherein: The clustering stop condition is: stop the calculation when any of the following conditions is met; Condition 1: i = the maximum number of templates TmplNumLmt; Condition 2: The remaining number of samples TmplSplLmt ≤ 1% of the number of electrocardiogram samples to be analyzed; Among them, the maximum number of templates TmplNumLmt is the maximum supported template data volume during template analysis; The remaining number of samples TmplSplLmt is the average number of clutter in the electrocardiogram samples.

5. The dynamic electrocardiogram analysis system based on a two-stage template of waveform rhythm according to claim 2, characterized in that: Generating the rhythm template specifically includes the following steps: b1: Obtain each of the electrocardiogram samples to be processed one by one, denoted as: current beat; b2: Calculate the attribute parameters of the current beat; The attribute parameters include: clutter parameter, hysteresis rate, and lead time: Clutter parameter = RR sum / RR dom Lag rate = (RR - RR dom ) / RR dom Lead = (RR dom - RR) / RR dom where RR sum is the sum of the current heartbeat RR interval and the RR interval of the next heartbeat, and RR dom is the dominant RR interval of the current heartbeat; RR is the RR interval of the current heartbeat; b3: Classify the current beat into the corresponding rhythm template based on the attribute parameters; The rhythm templates include: missed beat template and supraventricular premature beat template; Specifically include the following steps: If the attribute of the current beat is N and the following missed beat template judgment conditions are met at the same time, then: the current beat is classified into the missed beat template; Missed beat template judgment condition 1: The attributes of the adjacent beats before and after the current beat are not X; Missed beat template judgment condition 2: Hysteresis rate > 1.8; Missed beat template judgment condition 3: There is at least one extreme point in the baseline area of the current beat; Among them, The extreme point is defined as follows: the maximum-minimum amplitude difference within a 200-ms window centered at this point exceeds V thd *0.5; The baseline area: starting from 200 ms in front of the current beat to the area 300 ms behind the R wave of the previous beat; V thd is: the difference between the maximum and minimum amplitudes within a 200 ms window centered on the current R wave of the heartbeat; If the attribute of the current beat is N and the following supraventricular premature beat template judgment conditions are met at the same time, then: the attribute of the current beat becomes S, and the current beat is classified into the supraventricular premature beat template; Supraventricular premature beat template judgment condition 1: The attributes of the adjacent beats before and after the current beat are not X; Supraventricular premature beat template judgment condition 2: Lead time > 0.25; If the attribute of the current beat is X and the clutter parameter ∈ [0.8, 1.2], then delete the current beat.

6. The dynamic electrocardiogram analysis system based on the waveform rhythm two-stage template according to claim 2, characterized in that: Modifying the start and end times of the region based on the rhythm approval tRR scatter plot specifically includes the following steps: c1: Let: the current tRR start and end times be: tStart, tEnd Specify the time center point of the redrawn region as tMid, then there is: K=(tEnd-tMid) / (tMid-tSart) c2: Set the start and end time of the redraw area to: tStart', tEnd'; Specify the starting time tStart' of the redraw area, then: tEnd'=K*(tMid-tSart')+tMid.

7. The dynamic electrocardiogram analysis system based on a two-stage template of waveform rhythm according to claim 2, characterized in that: The rhythm template batch review interface also includes: Display the RR interval advance based on the tRR scatter graph for rhythm approval: display the RR interval advance corresponding to the time zone of the specified start and end points in digital form in the batch review interface; switch the interval based on the tRR scatter graph for rhythm approval: set a switch button to switch forward or backward to display the hour interval of the tRR scatter graph for rhythm approval.

Citation Information

Patent Citations

  • Method for obtaining dominant heart rate of heart beat based on forward and reverse propagation algorithm

    CN112842350A

  • Automatic analysis method of dynamic electrocardiogram

    CN110693483A

  • Biological signal processing device and generation method of data for electrocardiogram analysis

    JP2022054202A