Dynamic electrocardiogram data processing method and device, electronic equipment and storage medium

The method and device for processing dynamic electrocardiogram data through scatter plot generation and QRS wave searches address the inefficiency of manual heartbeat annotation, improving the analysis efficiency of dynamic electrocardiograms by batch-labeling and segmenting heartbeats.

CN118021315BActive Publication Date: 2024-12-27SHENZHEN SHENGLUO KRYPTON MEDICAL EQUIP TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410232043.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2024-12-27
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

The manual annotation of heartbeats in dynamic electrocardiogram data is time-consuming and inefficient, limiting the effectiveness of doctor diagnosis due to the large volume of data.

Method used

A method and device for processing dynamic electrocardiogram data that includes preprocessing, generating scatter plots, and performing QRS wave searches to batch-label missing waves, clustering beats into templates, and editing heartbeat attributes to improve efficiency.

Benefits of technology

Enables batch processing of missing QRS wave labeling and heartbeat segmentation, enhancing the efficiency of manual analysis of dynamic electrocardiograms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118021315B_ABST
    Figure CN118021315B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of electrocardiogram technology, and provides a dynamic electrocardiogram data processing method, device, electronic device and storage medium, wherein the method comprises: preprocessing dynamic electrocardiogram data to obtain a beat set, the beat set comprising multiple beats; generating and displaying a time-RR interval scatter plot according to the RR intervals of the beats in the beat set; in response to a first selection instruction for the time-RR interval scatter plot, selecting a first target beat indicated by the first selection instruction from the beat set; displaying an electrocardiogram segment corresponding to the first target beat; performing a QRS wave search on the electrocardiogram segment according to a parameter threshold to obtain a missing QRS wave; and dividing the electrocardiogram segment according to the missing QRS wave to update the beat set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electrocardiograms, and in particular, relates to a method and device for processing dynamic electrocardiogram data, an electronic device, and a computer-readable storage medium. Background Art

[0002] In each cardiac cycle, the heart is excited successively by the pacemaker, atrium, and ventricle. Along with the changes in the heart's bioelectricity, the potential changes caused by the heart beat can be recorded through the electrodes on the body surface, thus obtaining an electrocardiogram (ECG). The electrocardiogram is an objective indicator of the occurrence, propagation, and recovery process of cardiac excitement, and is one of the commonly used detection tools for heart diseases. The electrocardiogram includes multiple heartbeats, which can also be called cardiac cycles. Each heartbeat records a heart beat. Under normal circumstances, a heartbeat can include P waves, QRS complexes, T waves, etc., among which the morphological characteristics of the QRS complex are the most obvious.

[0003] Electrocardiogram can be divided into dynamic electrocardiogram and static electrocardiogram. Figure 1 Generally, the ECG is obtained by collecting ECG data for a short period of time when the subject is in a quiet state. The examination time is usually measured in minutes, and the amount of data is very small. The dynamic electrocardiogram is often obtained by fixing a dynamic electrocardiogram (Holter) on the subject and continuously recording the ECG signals in daily life. The duration is usually 24 hours or even longer, and the amount of data is very large.

[0004] For static ECG with small data volume, doctors can directly observe the raw data to give a diagnosis. However, for dynamic ECG with massive data, it is unrealistic to rely solely on doctors to directly observe the raw data for diagnosis. Usually, the dynamic ECG data is preliminarily processed and statistically analyzed to provide reference information for the doctor's diagnosis. Preliminary processing and statistical analysis may not meet the needs, and doctors are still required to manually annotate the heartbeats one by one. This process still consumes a lot of doctors' time, and the actual number of annotated heartbeats is very limited, which is not conducive to the doctor's diagnosis. Summary of the invention

[0005] The embodiments of the present application provide a method and device for processing dynamic electrocardiogram data, an electronic device, and a computer-readable storage medium, which can solve the problem in the related art that it takes too long to mark each heartbeat in a dynamic electrocardiogram.

[0006] In a first aspect, an embodiment of the present application provides a method for processing dynamic ECG data, the method comprising: preprocessing dynamic ECG data to obtain a beat set, the beat set comprising multiple beats; generating and displaying a time-RR interval scatter plot based on the RR intervals of the beats in the beat set; in response to a first selection instruction for the time-RR interval scatter plot, selecting a first target beat indicated by the first selection instruction from the beat set; displaying an ECG segment corresponding to the first target beat; performing a QRS wave search on the ECG segment according to a parameter threshold to obtain a missing QRS wave; and dividing the ECG segments according to the missing QRS wave to update the beat set.

[0007] In a second aspect, an embodiment of the present application provides a method for processing dynamic ECG data, the method comprising: preprocessing dynamic ECG data to obtain a beat set, the beat set comprising multiple beats; clustering the beats according to the QRS wave morphology of the beats in the beat set, dividing the beat set into multiple templates, the templates comprising a special template and multiple regular templates, the special template comprising beats that do not meet the clustering criteria; generating and displaying a QRS wave scatter plot according to the QRS wave amplitude and area of ​​the beats in the special template; in response to a third selection instruction for the QRS wave scatter plot, selecting a third target beat indicated by the third selection instruction from the special template; displaying the ECG segment corresponding to the third target beat; in response to a fourth selection instruction for the ECG segment, selecting a fourth target beat indicated by the fourth selection instruction from the ECG segment; in response to a beat attribute editing instruction, modifying the beat attribute of the fourth target beat to a pseudo-error.

[0008] In a third aspect, an embodiment of the present application provides a dynamic ECG data processing device, which includes: a preprocessing module, used to preprocess the dynamic ECG data to obtain a beat set, wherein the beat set includes multiple beats; a generation module, used to generate and display a time-RR interval scatter plot based on the RR intervals of the beats in the beat set; a selection module, used to respond to a first selection instruction for the time-RR interval scatter plot, and select a first target beat indicated by the first selection instruction from the beat set; a display module, used to display the ECG segment corresponding to the first target beat; a search module, used to perform a QRS wave search on the ECG segment according to a parameter threshold to obtain a missing QRS wave; and an update module, used to divide the ECG segment according to the missing QRS wave to update the beat set.

[0009] In a fourth aspect, an embodiment of the present application provides a dynamic ECG data processing device, the device comprising: a preprocessing module, used to preprocess the dynamic ECG data to obtain a beat set, the beat set comprising multiple beats; a clustering module, used to cluster the beats according to the QRS wave morphology of the beats in the beat set, and divide the beat set into multiple templates, the templates comprising a special template and multiple conventional templates, the special template comprising beats that do not meet the clustering criteria; a generation module, used to generate and display a QRS wave scatter plot according to the QRS wave amplitude and area of ​​the beats in the special template; a first selection module, used to select a third target beat indicated by the third selection instruction from the special template in response to a third selection instruction for the QRS wave scatter plot; a display module, used to display the ECG segment corresponding to the third target beat; a second selection module, used to select a fourth target beat indicated by the fourth selection instruction from the ECG segment in response to a fourth selection instruction for the ECG segment; a modification module, used to modify the beat attribute of the fourth target beat to a pseudo-error in response to a beat attribute editing instruction.

[0010] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein when the processor executes the computer program, the dynamic electrocardiogram data processing method described in the first aspect or the second aspect is implemented.

[0011] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the dynamic electrocardiogram data processing method described in the first or second aspect above.

[0012] In a seventh aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the dynamic electrocardiogram data processing method described in the first aspect or the second aspect above.

[0013] Compared with the prior art, the embodiments of the present application have the following beneficial effects: by preprocessing the dynamic electrocardiogram data, a beat set is obtained, and the beat set includes multiple beats; a time-RR interval scatter plot is generated and displayed according to the RR interval of the beats in the beat set; in response to a first selection instruction for the time-RR interval scatter plot, a first target beat indicated by the first selection instruction is selected from the beat set; the electrocardiogram segment corresponding to the first target beat is displayed; a QRS wave search is performed on the electrocardiogram segment according to the parameter threshold to obtain a missing QRS wave; the electrocardiogram segment is divided according to the missing QRS wave to update the beat set. According to the user input or pre-stored parameter threshold, the QRS waves missed in the preprocessing process can be batch-labeled, so that the missing beats are added to the beat set, and batch processing of missing QRS wave labeling and missing beat segmentation is realized, which improves the efficiency of further manual analysis of the dynamic electrocardiogram. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 is a structural schematic diagram of an electronic device provided by an embodiment of the present application;

[0016] Figure 2 It is a flowchart of a method for processing dynamic electrocardiogram data provided in the first embodiment of the present application;

[0017] Figure 3 is a flowchart of a method for processing dynamic electrocardiogram data provided in the second embodiment of the present application;

[0018] Figure 4 is a flowchart of a method for processing dynamic electrocardiogram data provided in the third embodiment of the present application;

[0019] Figure 5 is a flowchart of a method for processing dynamic electrocardiogram data provided in the fourth embodiment of the present application;

[0020] Figure 6 It is a flowchart of a method for processing dynamic electrocardiogram data provided by a specific embodiment of the present application;

[0021] Figure 7 is a schematic diagram of part of the dynamic electrocardiogram data provided by a specific example of the present application;

[0022] Figure 8 yes Figure 7 Schematic diagram of QRS wave positioning results of dynamic ECG data;

[0023] Fig. 9 yes Figure 7 Schematic diagram of QRS wave clustering results of dynamic ECG data;

[0024] Fig.10 It is a schematic diagram of a t-RR scatter plot provided in a specific example of the present application and a QRS wave missing in an electrocardiogram segment corresponding to a selected scatter plot;

[0025] Fig.11 It is a schematic diagram of stripping a waveform overlay of a conventional template provided by a specific example of the present application;

[0026] Fig.12It is a schematic diagram of a QRS wave scatter diagram provided by a specific example of the present application and editing a selected heartbeat attribute in an electrocardiogram segment corresponding to a selected scatter diagram;

[0027] Fig.13 It is a schematic diagram of a time-peak-valley difference scatter plot and a corresponding electrocardiogram segment with P waves marked therein provided in a specific example of the present application;

[0028] Fig.14 It is a flowchart of a method for processing dynamic electrocardiogram data provided by a specific embodiment of the present application;

[0029] Fig.15 It is a structural diagram of a dynamic electrocardiogram data processing device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0030] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0031] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0032] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0033] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0034] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0035] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0036] The dynamic electrocardiogram data processing method provided in the embodiment of the present application can be applied to electronic devices, including but not limited to servers, server clusters, mobile phones, tablet computers, laptop computers, desktop computers, personal digital assistants, wearable devices and other electronic devices with computing functions. The embodiment of the present application does not impose any restrictions on the specific type of electronic devices.

[0037] Figure 1 FIG. 1 is a block diagram of a partial structure of an electronic device provided in an embodiment of the present application. Figure 1 , the electronic device includes: a processor 10, a memory 20, a bus 30, an input device 40, an output device 50 and a communication device 60. The processor 10 and the memory 20 are connected to each other through the bus 30, and the input device 40, the output device 50 and the communication device 60 are also connected to the bus 30. Those skilled in the art can understand that Figure 1 The structure of the electronic device shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0038] Combine the following Figure 1 A detailed introduction to the various components of electronic equipment:

[0039] The processor 10 is the control center of the electronic device, and can run the program stored in the memory 20 to perform various functions and process data. The processor 10 can be a central processing unit (CPU), and the processor 10 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In some embodiments, the processor 10 may include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0040] The memory 20 is used to store an operating system, an application program, a boot loader, data, and other programs, such as program codes of computer programs. The memory 20 can also be used to temporarily store data required for executing the program and generated. The memory 20 may include a high-speed random access memory, and may also include a non-volatile memory, such as a flash memory, a hard disk, a multimedia card, a card-type memory, etc. The memory 20 may include a storage unit disposed inside the electronic device, such as a hard disk of the electronic device, and / or a removable external storage unit, such as a mobile hard disk, a USB flash drive, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, etc.

[0041] The input device 40 may include at least one of a keyboard, a mouse, a touch panel, a joystick, etc., and is used to collect user input operations to generate corresponding operation instructions.

[0042] The output device 50 is used to output information to be provided to the user. The output device 50 generally includes a display, and optionally, a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. can be used. In addition, the output device can further include a speaker.

[0043] The communication device 60 may include a modem, a network card, etc., for establishing a network connection with other electronic devices and communicating with each other.

[0044] The dynamic electrocardiogram data processing method provided in the embodiment of the present application can be implemented as a computer software program. For example, the embodiment of the present application provides a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 60, and / or installed from a removable external storage unit. When the computer program is executed by the processor 10, the various functions defined in the dynamic electrocardiogram data processing method provided in the embodiment of the present application are implemented.

[0045] Figure 2 A schematic flow chart of a method for processing dynamic electrocardiogram data provided in the first embodiment of the present application is shown. As an example but not a limitation, the method can be applied to the above-mentioned electronic device.

[0046] S11: Preprocessing the dynamic electrocardiogram data to obtain a heart beat set, where the heart beat set includes multiple heart beats.

[0047] The dynamic ECG data is waveform data. Generally speaking, its horizontal axis is time and its vertical axis is the sampling value, that is, the collected voltage value. Preprocessing mainly includes noise processing and QRS wave positioning. The specific preprocessing method is not limited here. QRS wave positioning includes the identification of the QRS wave in the dynamic ECG data, and gives the position and number of each QRS wave identified. Then, the dynamic ECG data can be divided according to the position of each QRS wave to obtain a heartbeat set including multiple heartbeats. Since the morphological characteristics of the R wave in the QRS wave group are the most obvious, the position of the QRS wave usually refers to the position of the extreme point of the R wave.

[0048] The main parameters of a heartbeat include position, number, RR interval, QRS wave morphology, etc. The position of a heartbeat can be a single point represented by the position of the QRS wave, or it can be a time range from the start position to the end position of the heartbeat. The number of a heartbeat generally refers to the number of the QRS wave. The RR interval of a heartbeat generally refers to the distance between the QRS wave position of the heartbeat and the QRS wave position of the previous heartbeat, that is, the time length between the moment when the R wave extreme value of the heartbeat is recorded and the moment when the R wave extreme value of the previous heartbeat is recorded.

[0049] S12: Generate and display a time-RR interval scatter plot based on the RR intervals of the heart beats in the heart beat set.

[0050] The time-RR interval scatter plot is a scatter plot with the position or number of the heartbeat as the horizontal axis and the RR interval of the heartbeat as the vertical axis, and each scatter point represents a heartbeat. Ideally, the preprocessing process can identify all QRS waves. However, in practical applications, due to the influence of factors such as noise, interference, and movement of the inspection object, it is difficult to achieve the ideal situation, that is, there are unidentified, i.e., missed QRS waves.

[0051] Generally speaking, the rhythm of most heart beats is normal, which appears as a thicker horizontal line (i.e., the scatter points are densely distributed) on the time-RR interval scatter plot, while the scatter points corresponding to heart beats with abnormal rhythm are generally sparsely distributed above or below the horizontal line. The rhythm abnormality here may be partially caused by the omission of QRS waves in the preprocessing process. Therefore, the time-RR interval scatter plot can be displayed for doctors to mark the omitted QRS waves.

[0052] Optionally, the time-RR interval scatter plot can be divided into multiple areas according to the size of the ordinate, and the proportion of abnormal heartbeats in each area is counted. The abnormal heartbeat is judged based on the RR interval, for example, the error rate between the RR interval of the heartbeat and the baseline value is calculated. The heartbeat with an error rate greater than the set value is an abnormal heartbeat. The baseline value can be obtained by statistically analyzing the dynamic electrocardiogram data, for example, it can be the average value of the RR interval of the heartbeat represented by the scatter points in the middle thick horizontal line area. Areas with a ratio greater than a preset value can be highlighted in the time-RR interval scatter plot. Compared with areas that are not highlighted, these highlighted areas have a greater probability of including abnormal heartbeats caused by missing QRS waves, thereby providing guidance for doctors' manual annotation operations.

[0053] S13: In response to a first selection instruction for the time-RR interval scattergram, a first target heart beat indicated by the first selection instruction is selected from the heart beat set.

[0054] Specifically, the first selection range indicated by the first selection instruction can be determined, and then the heartbeat represented by the scattered points in the first selection range can be used as the first target heartbeat. The first selection instruction can indicate the selected target in a variety of ways such as box selection, circle selection, click selection, etc., which are not limited here.

[0055] S14: Displaying the ECG segment corresponding to the first target heart beat.

[0056] The ECG segment corresponding to the first target heartbeat refers to a segment of the dynamic ECG data including the first target heartbeat. Generally speaking, the ECG segment is generally centered on the first target heartbeat, and the corresponding duration is relatively short. The number of heartbeats converted is generally several or more than ten, which is convenient for doctors to observe. The ECG segment can be displayed on the same screen as the time-RR interval scatter plot.

[0057] S15: Perform QRS wave search on the ECG segment according to the parameter threshold to obtain the missing QRS wave.

[0058] The parameter threshold includes at least one of peak direction, peak width and peak drop. Peak direction refers to the direction of the R wave, which can be positive or negative. Peak width refers to the width of the QRS wave, generally in ms. Peak drop refers to the difference between the maximum and minimum values ​​in the QRS wave, and its unit is generally mV. The parameter threshold can be pre-stored or entered by a doctor. Generally speaking, the conditions for judging a QRS wave corresponding to the parameter threshold are looser than the standards for judging a QRS wave in a conventional QRS wave recognition algorithm. If the conditions for judging a QRS wave corresponding to the parameter threshold are directly used for QRS wave recognition, a large number of erroneous results may occur.

[0059] In addition, the parameter threshold may also include a range for performing a QRS wave search, for example, the range between the QRS wave position of the first target heart beat and the previous heart beat may be used as the range for performing a QRS wave search. Of course, in some embodiments, this range may be fixed and unmodifiable.

[0060] The QRS wave search can be performed on the ECG segment according to the parameter threshold, and the peak that meets the conditions is the missed QRS wave.

[0061] Optionally, multiple ECG segments may be displayed, and in response to an instruction to select an ECG segment, a QRS wave search may be performed on the selected ECG segment.

[0062] S16: Divide the ECG segments according to the missing QRS waves to update the heart beat set.

[0063] The search range can be re-divided according to the missing QRS waves, the newly added heart beats are added to the heart beat set, and the original heart beats corresponding to the search range are updated.

[0064] Through the implementation of this embodiment, the QRS waves missed in the preprocessing process can be batch labeled according to the user input or pre-stored parameter thresholds, so that the missed heart beats are added to the heart beat set, realizing batch processing of missed QRS wave labeling and missed heart beat segmentation, and improving the efficiency of further manual analysis of the dynamic electrocardiogram.

[0065] Figure 3 A schematic flow chart of a method for processing dynamic electrocardiogram data provided in the second embodiment of the present application is shown. As an example but not a limitation, the method can be applied to the above-mentioned electronic device.

[0066] S11: Preprocessing the dynamic electrocardiogram data to obtain a heart beat set, where the heart beat set includes multiple heart beats.

[0067] S21: Clustering the heart beats in the heart beat set according to their QRS wave morphology, and dividing the heart beat set into multiple templates.

[0068] Templates include special templates and multiple regular templates. The same regular template includes multiple heart beats with the same or similar QRS wave morphology. There is generally only one special template. Heart beats that cannot be classified into the regular template, that is, heart beats that do not meet the clustering criteria are classified into special templates.

[0069] S22: Display the waveform overlay of the center beat of the conventional template.

[0070] S23: In response to the second selection instruction for the waveform overlay image, a second target heart beat indicated by the second selection instruction is selected from the target template indicated by the second selection instruction.

[0071] If only one waveform overlay of a conventional template is displayed, then the conventional template is the target template; if waveform overlays of multiple conventional templates are displayed at the same time, then the template corresponding to the waveform overlay that intersects with the selection range indicated by the second selection instruction is the target template.

[0072] The selection range indicated by the second selection instruction can be determined, and then the heartbeats in the waveform overlay diagram of the target template that intersect with the selection range are used as the second target heartbeats. The second selection instruction can indicate the selected target in a variety of ways such as box selection, circle selection, click selection, etc., which are not limited here.

[0073] S24: Moving the second target heart beat from the target template to the newly added template or other templates.

[0074] The newly added template can be a sub-template of the regular template corresponding to the waveform overlay diagram. Other templates can be special templates.

[0075] S25: In response to the template parameter editing instruction, edit the parameters of the selected template.

[0076] In some embodiments, this step may be omitted. The parameter includes at least one of a template number and a heartbeat attribute.

[0077] Through the implementation of this embodiment, the selected heart beats can be removed from the current regular template in batches by selecting the waveform overlay diagram, thereby realizing batch manual stripping of the heart beats in the regular template, making the QRS wave morphology of the heart beats in the regular template more uniform, and improving the efficiency of further manual analysis of the dynamic electrocardiogram.

[0078] Figure 4 A schematic flow chart of a method for processing dynamic electrocardiogram data provided in the third embodiment of the present application is shown. As an example but not a limitation, the method can be applied to the above-mentioned electronic device.

[0079] S11: Preprocessing the dynamic electrocardiogram data to obtain a heart beat set, where the heart beat set includes multiple heart beats.

[0080] S21: Clustering the heart beats in the heart beat set according to their QRS wave morphology, and dividing the heart beat set into multiple templates.

[0081] Templates include special templates and multiple regular templates.

[0082] S31: Generate and display a QRS wave scatter plot based on the QRS wave amplitude and area of ​​the heart beat in the special template.

[0083] The horizontal axis of the QRS wave scatter plot is the amplitude of the QRS wave, specifically the sampling value of the R wave, in mV; the vertical axis is the area of ​​the QRS wave, which can be calculated by taking the heart beat QRS wave position as the center and summing up the absolute values ​​of the voltages of each sampling point within a specified range (e.g., 100ms) before and after.

[0084] Each scatter point in the QRS wave scatter plot represents a heartbeat. Most of the heartbeats in the dynamic ECG data are real heartbeats, and a small number may be artifacts. Artifacts refer to the bioelectricity caused by non-cardiac pulsations, such as alternating current, muscle tremors, telephone ringing, etc. These bioelectricity may be mistakenly identified as heartbeats because the waveform conforms to the characteristics of the ECG. However, these misidentified heartbeats often have the characteristics of certain pathological changes, which affects the analysis results of the ECG data. However, the relationship between the amplitude and area of ​​the QRS waveform is different from that of the real heartbeat. In the QRS wave scatter plot, the scatter points corresponding to the real heartbeat are generally dense, and artifacts may exist in the sparse scatter points. Therefore, the QRS wave scatter plot can be used to assist doctors in distinguishing heartbeats from artifacts.

[0085] S32: In response to the third selection instruction for the QRS wave scatter diagram, a third target heart beat indicated by the third selection instruction is selected from the special template.

[0086] Specifically, the third selection range indicated by the third selection instruction can be determined, and then the heartbeat represented by the scattered points in the third selection range can be used as the third target heartbeat. The third selection instruction can indicate the selected target in a variety of ways such as box selection, circle selection, click selection, etc., which are not limited here.

[0087] S33: Displaying the ECG segment corresponding to the third target heart beat.

[0088] The ECG segment corresponding to the third target heartbeat refers to a segment of the dynamic ECG data including the third target heartbeat. Generally speaking, the ECG segment is generally centered on the third target heartbeat, and the corresponding duration is relatively short. The number of heartbeats converted is generally a few or a dozen, which is convenient for doctors to observe. The ECG segment can be displayed on the same screen as the QRS wave scatter plot.

[0089] S34: In response to the fourth selection instruction for the ECG segment, a fourth target heart beat indicated by the fourth selection instruction is selected from the ECG segment.

[0090] Specifically, the fourth selection range indicated by the fourth selection instruction may be determined, and then the heartbeat in the fourth selection range may be used as the fourth target heartbeat. The fourth selection instruction may indicate the selected target in a variety of ways such as frame selection, circle selection, click selection, etc., which are not limited here.

[0091] S35: In response to the heartbeat attribute editing instruction, the heartbeat attribute of the fourth target heartbeat is modified to an artifact.

[0092] Beats that are modified as artifacts are removed from the beat set and the special template.

[0093] Through the implementation of this embodiment, the QRS wave scatter plot can be used to assist doctors in batch identification and processing of artifacts, thereby improving the efficiency of manual analysis of dynamic electrocardiograms.

[0094] Figure 5 A schematic flow chart of a method for processing dynamic electrocardiogram data provided in the fourth embodiment of the present application is shown. As an example but not a limitation, the method can be applied to the above-mentioned electronic device.

[0095] S11: Preprocessing the dynamic electrocardiogram data to obtain a heart beat set, where the heart beat set includes multiple heart beats.

[0096] S41: Searching for the maximum point and the minimum point in the specified range of heart beats.

[0097] The designated range is a range defined by a set time difference in front of the QRS wave, which is generally a possible area of ​​the P wave determined according to prior knowledge, for example, 100 ms to 300 ms in front of the QRS wave position.

[0098] S42: Select the heartbeat whose peak-to-valley difference is greater than the threshold as the generated heartbeat.

[0099] The peak-to-valley difference is the difference between the sampling values ​​of the maximum point and the minimum point. The threshold is generally determined based on the sampling value of the P wave in prior knowledge, for example, it may be 0.2 mV.

[0100] S43: Generate and display a time-peak-valley difference scatter plot according to the peak-valley difference of the generated heartbeat, display the ECG segment corresponding to the generated heartbeat, and mark the maximum point in the specified range of the heartbeat in the ECG segment.

[0101] The horizontal axis of the time-peak-to-valley difference scatter plot is the position or number of the heartbeat, and the vertical axis is the peak-to-valley difference. The maximum point in the specified range of the heartbeat in the ECG segment is the possible P wave position of the heartbeat, and these P wave positions are marked for the doctor's confirmation. Specifically, in response to the doctor's selection instruction for the time-peak-to-valley difference scatter plot, the scatter point in the selection range indicated by the instruction can be determined, and the ECG segment corresponding to the scatter point can be displayed. If a modification or deletion instruction for the P wave of the heartbeat in the ECG segment is received, the selected P wave can be modified or deleted in response to the instruction.

[0102] Through the implementation of this embodiment, a time-peak-to-valley difference scatter plot is generated and displayed based on the areas where P waves may appear and the sampling values ​​in the prior knowledge, and possible P waves are searched and marked. The peak-to-valley difference value can assist doctors in determining whether the marked P waves are wrong and perform batch processing on the wrong P waves.

[0103] The various embodiments of the present application can be combined in any manner without conflict, and in the combination, the same process can be omitted.

[0104] The following describes a combination of the above embodiments with reference to the accompanying drawings.

[0105] like Figure 6 As shown, a method for processing dynamic electrocardiogram data provided by a specific embodiment of the present application includes the following process.

[0106] S11: Preprocessing the dynamic electrocardiogram data to obtain a heart beat set, where the heart beat set includes multiple heart beats.

[0107] S12: Generate and display a time-RR interval scatter plot based on the RR intervals of the heart beats in the heart beat set.

[0108] S13: In response to a first selection instruction for the time-RR interval scattergram, a first target heart beat indicated by the first selection instruction is selected from the heart beat set.

[0109] S14: Displaying the ECG segment corresponding to the first target heart beat.

[0110] S15: Perform QRS wave search on the ECG segment according to the parameter threshold to obtain the missing QRS wave.

[0111] S16: Divide the ECG segments according to the missing QRS waves to update the heart beat set.

[0112] S21: Clustering the heart beats in the heart beat set according to their QRS wave morphology, and dividing the heart beat set into multiple templates.

[0113] S22: Display the waveform overlay of the center beat of the conventional template.

[0114] S23: In response to the second selection instruction for the waveform overlay image, a second target heart beat indicated by the second selection instruction is selected from the target template indicated by the second selection instruction.

[0115] S24: Move the second target heart beat from the target template to the special template.

[0116] S31: Generate and display a QRS wave scatter plot based on the QRS wave amplitude and area of ​​the heart beat in the special template.

[0117] S32: In response to the third selection instruction for the QRS wave scatter diagram, a third target heart beat indicated by the third selection instruction is selected from the special template.

[0118] S33: Displaying the ECG segment corresponding to the third target heart beat.

[0119] S34: In response to the fourth selection instruction for the ECG segment, a fourth target heart beat indicated by the fourth selection instruction is selected from the ECG segment.

[0120] S35: In response to the heartbeat attribute editing instruction, the heartbeat attribute of the fourth target heartbeat is modified to an artifact.

[0121] S41: Searching for the maximum point and the minimum point in the specified range of heart beats.

[0122] S42: Select the heartbeat whose peak-to-valley difference is greater than the threshold as the generated heartbeat.

[0123] S43: Generate and display a time-peak-valley difference scatter plot according to the peak-valley difference of the generated heartbeat, display the ECG segment corresponding to the generated heartbeat, and mark the maximum point in the specified range of the heartbeat in the ECG segment.

[0124] In this embodiment, the missing QRS waves and heart beats are first batch labeled, and then the heart beats are clustered, the heart beats in the conventional template are batch stripped, and then the heart beats in the special template are batch identified for artifacts, and finally the P waves of the heart beats are batch labeled, thereby saving computing resources while achieving good dynamic ECG signal processing and analysis effects, and providing convenience for doctors to perform batch processing of dynamic ECG signals.

[0125] Take an example to illustrate the specific process. Some dynamic ECG data collected by the dynamic ECG device are as follows: Figure 7 As shown; pre-processing it to obtain Figure 8 Heartbeats 1-12 as shown; Fig. 9 As shown in , these heartbeats are clustered to obtain multiple templates; Fig.10As shown, a t-RR scatter plot is drawn, and according to the selection instructions for the scatter points in the figure, the corresponding ECG segment is drawn below, in which the missing QRS waves are marked according to the input parameters, and the heart beats corresponding to the missing QRS waves are added to the special template; Fig.11 As shown, a waveform overlay is drawn for the conventional template, and according to the selection instruction of the heart beat in the figure, the selected heart beat is moved from the conventional template to the special template; Fig.12 As shown, a QRS wave scatter plot is drawn for the special template, an ECG segment is drawn on the right for the selected scatter plot in the figure, and the selected heart beat in the ECG segment (the framed part in the figure) is edited as an artifact attribute and removed from the heart beat set and the special template; Fig.13 As shown, for the heartbeats in the heartbeat set, the maximum point and the minimum point are searched in the specified range before the QRS wave position, and the difference between the two is calculated as the peak-to-valley difference, and the heartbeats with a peak-to-valley difference greater than a threshold are screened out as generated heartbeats. A time-peak-to-valley difference scatter plot is drawn according to the peak-to-valley difference of the generated heartbeats, the maximum point in the specified range is marked as a P wave, and the ECG segment corresponding to the generated heartbeat corresponding to the selected scatter point in the scatter plot is displayed below.

[0126] like Fig.14 As shown, a method for processing dynamic electrocardiogram data provided by another specific embodiment of the present application includes the following process.

[0127] S11: Preprocessing the dynamic electrocardiogram data to obtain a heart beat set, where the heart beat set includes multiple heart beats.

[0128] S21: Clustering the heart beats in the heart beat set according to their QRS wave morphology, and dividing the heart beat set into multiple templates.

[0129] S31: Generate and display a QRS wave scatter plot based on the QRS wave amplitude and area of ​​the heart beat in the special template.

[0130] S32: In response to the third selection instruction for the QRS wave scatter diagram, a third target heart beat indicated by the third selection instruction is selected from the special template.

[0131] S33: Displaying the ECG segment corresponding to the third target heart beat.

[0132] S34: In response to the fourth selection instruction for the ECG segment, a fourth target heart beat indicated by the fourth selection instruction is selected from the ECG segment.

[0133] S35: In response to the heartbeat attribute editing instruction, the heartbeat attribute of the fourth target heartbeat is modified to an artifact.

[0134] S41: Searching for the maximum point and the minimum point in the specified range of heart beats.

[0135] S42: Select the heartbeat whose peak-to-valley difference is greater than the threshold as the generated heartbeat.

[0136] S43: Generate and display a time-peak-valley difference scatter plot according to the peak-valley difference of the generated heartbeat, display the ECG segment corresponding to the generated heartbeat, and mark the maximum point in the specified range of the heartbeat in the ECG segment.

[0137] Fig.15 A schematic structural diagram of a dynamic electrocardiogram data processing device provided in an embodiment of the present application is shown, and the dynamic electrocardiogram data processing device includes a preprocessing module 11, a generating module 12, a selecting module 13, a display module 14, a searching module 15 and an updating module 16.

[0138] The preprocessing module 11 is used to preprocess the dynamic electrocardiogram data to obtain a heart beat set, where the heart beat set includes multiple heart beats.

[0139] The generating module 12 is used to generate and display a time-RR interval scatter plot according to the RR intervals of the heart beats in the heart beat set.

[0140] The selection module 13 is configured to select, in response to a first selection instruction for the time-RR interval scatter diagram, a first target heart beat indicated by the first selection instruction from the heart beat set.

[0141] The display module 14 is used to display the ECG segment corresponding to the first target heart beat.

[0142] The search module 15 is used to search the QRS wave of the ECG segment according to the parameter threshold value to obtain the missing QRS wave.

[0143] The updating module 16 is used to divide the ECG segments according to the missing QRS waves to update the heart beat set.

[0144] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / modules / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0145] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0146] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0147] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0149] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0150] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0151] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0153] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for processing dynamic electrocardiogram data, characterized in that: The method comprises: Preprocessing the dynamic electrocardiogram data to obtain a heartbeat set, wherein the heartbeat set includes a plurality of heartbeats; Generate and display a time-RR interval scatter plot according to the RR intervals of the heart beats in the heart beat set; In response to a first selection instruction for the time-RR interval scatter plot, selecting a first target heart beat indicated by the first selection instruction from the heart beat set; Displaying the ECG segment corresponding to the first target heart beat; Performing a QRS wave search on the ECG segment according to a parameter threshold to obtain a missing QRS wave, wherein the parameter threshold includes at least one of a peak direction, a peak width, and a peak drop, and the condition corresponding to the parameter threshold for determining a QRS wave is looser than the standard for determining a QRS wave in a conventional QRS wave recognition algorithm; The electrocardiogram segments are divided according to the missing QRS waves to update the heart beat set.

2. The method according to claim 1, characterized in that The display time-RR interval scatter plot includes: Dividing the time-RR interval scatter plot into multiple regions according to the size of the ordinate; Count the proportion of abnormal heart beats in each area; The area where the ratio is greater than a preset value is highlighted in the time-RR interval scatter plot.

3. The method according to any one of claims 1 to 2, characterized in that: After dividing the electrocardiogram segments according to the missing QRS waves to update the heart beat set, the method further includes: Clustering the heartbeats in the heartbeat set according to their QRS wave morphology, dividing the heartbeat set into a plurality of templates, wherein the templates include a special template and a plurality of regular templates, and the special template includes heartbeats that do not meet the clustering criteria; Displaying a waveform overlay of the heartbeat in the conventional template; In response to a second selection instruction for the waveform overlay diagram, selecting a second target heart beat indicated by the second selection instruction from a target template indicated by the second selection instruction; The second target heart beat is moved from the target template to a newly added template or another template.

4. The method according to claim 3, characterized in that Also includes: In response to the template parameter editing instruction, the parameters of the selected template are edited, wherein the parameters include at least one of a template number and a heartbeat attribute.

5. The method according to claim 3, characterized in that The other template is the special template.

6. The method according to claim 5, characterized in that Also includes: Generate and display a QRS wave scatter plot according to the QRS wave amplitude and area of ​​the heart beat in the special template; In response to a third selection instruction for the QRS wave scatter diagram, selecting a third target heart beat indicated by the third selection instruction from the special template; Displaying the ECG segment corresponding to the third target heart beat; In response to a fourth selection instruction for the ECG segment, selecting a fourth target heart beat indicated by the fourth selection instruction from the ECG segment; In response to the heartbeat attribute editing instruction, the heartbeat attribute of the fourth target heartbeat is modified to an artifact.

7. The method according to any one of claims 1 to 2, characterized in that: Also includes: Searching for a maximum point and a minimum point in a specified range of the heartbeat, wherein the specified range is a range defined by a set time difference in front of the QRS wave; Selecting a heartbeat whose peak-to-valley difference is greater than a threshold as a generated heartbeat, wherein the peak-to-valley difference is the difference between the sampling values ​​of the maximum point and the minimum point; A time-peak-valley difference scatter plot is generated and displayed according to the peak-valley difference of the generated heartbeat, and the ECG segment corresponding to the generated heartbeat is displayed, and the maximum point is marked in the specified range of the heartbeat in the ECG segment.

8. A dynamic electrocardiogram data processing device, characterized in that: The device comprises: A preprocessing module, used for preprocessing the dynamic electrocardiogram data to obtain a heart beat set, wherein the heart beat set includes a plurality of heart beats; A generating module, configured to generate and display a time-RR interval scatter plot according to the RR intervals of the heart beats in the heart beat set; A selection module, configured to select, in response to a first selection instruction for the time-RR interval scatter plot, a first target heart beat indicated by the first selection instruction from the heart beat set; A display module, used for displaying the electrocardiogram segment corresponding to the first target heart beat; A search module, configured to search the ECG segment for QRS waves according to a parameter threshold value to obtain a missing QRS wave, wherein the parameter threshold value includes at least one of a peak direction, a peak width, and a peak drop, and the condition corresponding to the parameter threshold value for judging a QRS wave is looser than the standard for judging a QRS wave in a conventional QRS wave recognition algorithm; An updating module is used to divide the electrocardiogram segments according to the missing QRS waves to update the heart beat set.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for electrocardiogram data processing, storage medium and computer equipment

    CN111419212A

  • Rapid labeling method and device under long-range electrocardio data

    CN112120689A

  • Dynamic electrocardiogram missing QRS wave batch analysis method and system

    CN114847967A

  • Electrocardiosignal feature extraction system based on morphological cardiac beat template clustering

    CN116784860A

  • Electrocardiogram processing method and device, medical equipment and storage medium

    CN116807490A