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

By using linear segmentation method to identify key points and screen j points in dynamic electrocardiogram, the problem of insufficient anti-interference ability in the existing technology is solved, the accuracy of the voltage value of the ST segment is improved, and the diagnosis of cardiovascular disease is improved. sex.

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

Patent Information

Application Number
CN202410262411.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2024-12-06
Estimated Expiration
2044-03-07

AI Technical Summary

Technical Problem

In the prior art, the j-point recognition method has weak anti-interference ability and is difficult to apply to dynamic electrocardiograms, resulting in insufficient accuracy of the voltage value of the ST segment, affecting the diagnosis of cardiovascular diseases.

Method used

The linear segmentation method is used to preprocess the dynamic ECG data, identify the set of key points, and filter out j points based on the slope of the line segment to reduce false key points and improve the accuracy of j points.

Benefits of technology

It effectively improves the accuracy of the voltage value of the ST segment, thereby improving the accuracy of auxiliary diagnosis of cardiovascular diseases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118177817B_ABST
    Figure CN118177817B_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 the dynamic electrocardiogram data to obtain multiple heart beats; using a linear segmentation method to detect within a specified range of the heart beats to obtain a key point set, the specified range includes point R, and the key point set includes multiple key points; and selecting point j from the key point set according to the slope of the line segment with the key point as the endpoint.
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 ECG is often obtained by fixing a dynamic electrocardiogram (Holter) on the subject to continuously record the ECG signals in daily life. The duration is usually 24 hours or even longer, and the amount of data is very large. In addition, compared with the static ECG, the subject's movement and surrounding environment bring strong interference.

[0004] The ST segment in an electrocardiogram refers to the part between the end of the QRS complex and the beginning of the T wave, and is usually used to screen and diagnose cardiovascular diseases, such as myocardial infarction, myocardial ischemia, etc. In the diagnostic process, a commonly used indicator is the voltage value of the ST segment, which can be specifically the voltage difference between the j+x point and the reference point. The j point is the point where the QRS complex ends and the ST segment begins, and x is a set time difference, which can be fixed or adjusted according to the heart rate. Therefore, the accuracy of the ST segment voltage value depends on the accuracy of the j point identification. In related technologies, the j point identification mainly uses the secant method, the slope method, etc. These methods have weak anti-interference capabilities and are only applicable to static electrocardiograms. Dynamic electrocardiograms still require j point identification methods with stronger anti-interference capabilities. 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 that the j-point identification method in the related art has weak anti-interference ability and is not suitable for 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 the dynamic ECG data to obtain multiple heart beats; using a linear segmentation method to detect within a specified range of the heart beats to obtain a set of key points, the specified range includes point R, and the key point set includes multiple key points; and selecting point j from the key point set according to the slope of the line segment with the key point as the endpoint.

[0007] In the second 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 multiple heart beats; a detection module, used to use a linear segmentation method to detect within a specified range of heart beats to obtain a key point set, the specified range includes point R, and the key point set includes multiple key points; a screening module, used to screen out point j from the key point set according to the slope of the line segment with the key point as the endpoint.

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

[0009] In a fourth 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 aspect above.

[0010] In a fifth 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 above.

[0011] Compared with the prior art, the embodiments of the present application have the following beneficial effects: multiple heartbeats are obtained by preprocessing the dynamic electrocardiogram data; a set of key points is obtained by detecting the linear segmentation method within a specified range of the heartbeat, the specified range includes point R, and the set of key points includes multiple key points; and point j is screened out from the set of key points according to the slope of the line segment with the key point as the endpoint. In the related art, the extreme point is generally directly used as the key point, and then the j point is screened out therefrom. Due to the strong interference in the dynamic electrocardiogram, a large number of false key points may appear, thereby reducing the accuracy of the identified j point. In the present application, the linear segmentation method is first used to fit the heartbeat into multiple linear line segments, and the endpoints of the line segments are used as key points. Compared with the related art that directly uses the extreme point as the key point, the number of false key points can be effectively reduced, thereby improving the accuracy of the identified j point, and then improving the accuracy of the ST segment voltage value, thereby improving the accuracy of the auxiliary diagnosis of related diseases. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] 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.

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

[0014] Figure 2 It is a flowchart of a method for processing dynamic electrocardiogram data provided by an embodiment of the present application;

[0015] Figure 3 yes Figure 2 The specific process diagram of S2 in FIG.

[0016] Figure 4 is a schematic diagram of a target line segment, a target point and a target distance in a specific example of the present application;

[0017] Figure 5 is a schematic diagram of a set of key points in a specific example of the present application;

[0018] Figure 6 yes Figure 2 Specific process diagram of S4 in FIG.

[0019] Figure 7 is a schematic diagram of searching for multiple first target key points in a specific example of the present application;

[0020] Figure 8 It is a structural diagram of a dynamic electrocardiogram data processing device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0021] 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.

[0022] 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.

[0023] 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.

[0024] 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.

[0025] 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.

[0026] 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.

[0027] 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.

[0028] 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 1The 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.

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

[0030] 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.

[0031] 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.

[0032] 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.

[0033] 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.

[0034] 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.

[0035] 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.

[0036] Figure 2 A schematic flow chart of a method for processing dynamic electrocardiogram data provided in an 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.

[0037] S1: Preprocess the dynamic electrocardiogram data to obtain multiple heart beats.

[0038] The dynamic ECG data is digitized waveform data, including multiple sampling points (hereinafter generally referred to as points). Generally speaking, the horizontal coordinate of the sampling point is time, and the vertical coordinate is the sampling value, that is, the collected voltage value. Preprocessing mainly includes noise processing and QRS wave positioning, and 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 multiple heart beats. 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, and the extreme point of the R wave can also be referred to as R wave or R point.

[0039] S2: A set of key points is detected using a linear segmentation method within a specified range of the heartbeat.

[0040] This step and the following steps can be performed for each heart beat.

[0041] The specified range is generally based on the position of point R, and its specific range is generally [R-x1, R+x2], which generally includes point R. x1 and x2 are time ranges obtained based on prior knowledge related to ECG, and the unit is generally ms. In this application, in order to identify point j (the dividing point between the QRS complex and the ST segment, that is, the end point of the QRS complex), x2 is generally set to a positive number that allows the specified range to include the complete S wave, such as 300ms, and x1 can be 0 or a positive number. For example, when it is necessary to filter out point e (the dividing point between the QRS complex and the PR segment, that is, the starting point of the QRS complex) from the key points, x1 can be set to a positive number that allows the specified range to include the complete Q wave, such as 200ms. If point e does not need to be filtered out from the key points, x1 can be set to a smaller number, or even 0.

[0042] The linear segmentation method is to fit the heartbeats in the specified range into multiple linear segments based on the endpoints and R points in the specified range, and add the endpoints of the segments as key points to the key point set.

[0043] like Figure 3 As shown, in a specific embodiment, S2 may include the following process.

[0044] S21: Add point R and the endpoints of the specified range to the first set.

[0045] The points in the first set are arranged in chronological order, generally from front to back according to the sampling time of the points. Newly added points are also inserted in chronological order instead of being directly placed at the end of the first set.

[0046] If x1 is set to 0, the starting point of the specified range is point R, and the number of points in the first set is 2; if x1 is set to a positive number, the number of points in the first set is 3.

[0047] S22: Take the two front points in the first set as the first point and the second point, and determine a target line segment with the first point and the second point as endpoints.

[0048] The first point comes before the second point.

[0049] S23: searching for a target point farthest from the target line segment in the heartbeat segment between the first point and the second point, and recording a target distance between the target point and the target line segment.

[0050] A beat segment is a portion of a heart beat.

[0051] For example, Figure 4As shown, the endpoints of the specified range are the sampling point 200ms before point R and the sampling point 300ms after point R. These two points are added to the first set together with point R. The points in the first set are arranged from front to back according to their sampling time. The arrangement order of these three points is the sampling point 200ms before point R, point R, and the sampling point 300ms after point R. The first point, that is, the sampling point 200ms before point R is taken as the first point, represented by m in the figure. The second point, that is, point R is taken as the second point, represented by n in the figure. The target line segment L between point m and point n is drawn. The target point Pk farthest from the target line segment L is found in the heart beat segment between point m and point n, and the distance between the target point Pk and the target line segment L is recorded as the target distance Dmax.

[0052] S24: Determine whether the target distance is greater than a preset threshold.

[0053] In an ideal state, that is, when the heart beat segment between the first point and the second point completely matches the linear segment between the first point and the second point (i.e., the target segment), the target distance is 0. In practice, the target distance is generally greater than 0. The larger the target distance, the lower the similarity between the heart beat segment between the first point and the second point and the target segment. The preset threshold is used to determine whether the fitting accuracy of the target segment to the heart beat segment between the first point and the second point meets the requirements. The larger the preset threshold, the lower the fitting accuracy requirement, and the fewer the number of key points obtained.

[0054] If the target distance is greater than the preset threshold, it means that the target line segment cannot meet the fitting accuracy requirement, and the heartbeat segment between the first point and the second point needs to be further divided, and jump to S25; if not, it means that the target line segment can meet the fitting accuracy requirement, and jump to S26.

[0055] S25: Add the target point to the first set.

[0056] Jump to S27. Since executing S25 will increase the number of points in the first set, but will not change the number of points in the first set from greater than 1 to equal to 1, the result of the judgment after jumping to S27 will only be affirmative, and then jump to S22.

[0057] S26: Move the first point from the first set to the second set.

[0058] The points in the second set are key points.

[0059] S27: Determine whether the number of points in the first set is greater than 1.

[0060] If yes, jump to S22, otherwise jump to S28.

[0061] S28: Move the remaining points in the first set to the second set, and use the second set as the key point set.

[0062] Still continuing Figure 4 For example, the key points finally obtained are as follows Figure 5 As shown, the circles in the figure represent the key points obtained.

[0063] S3: Determine an invalid key point based on the voltage value and / or differential value of the sampling point in the heart beat segment with the key point as the endpoint.

[0064] In some embodiments, this step may be omitted.

[0065] Invalid key points refer to those determined based on prior knowledge and cannot be key points of the recognition target. Different recognition targets may correspond to different invalid key points. For example, a key point may be an invalid key point of point j and may be recognized as point e.

[0066] For point j, point j is the starting point of the ST segment. The characteristics of the ST segment itself are that the voltage value is close to the baseline and the change is relatively gentle. Even if some changes occur due to the disease, in the entire heartbeat, the voltage value and change rate of the ST segment (which can be expressed by the differential value) should be closer to the median value.

[0067] Specifically, the key point can be used to divide the heartbeats within the specified range into multiple heartbeat segments, and the endpoints of each heartbeat segment are two adjacent key points in the key point set. According to the prior knowledge of the j point, when the voltage value of the sampling point in the heartbeat segment with the key point as the starting point is outside the first preset range, and / or the differential value of the sampling point in the heartbeat segment with the key point as the starting point is outside the second preset range, the key point is determined to be an invalid key point of the j point.

[0068] The first preset range is obtained by counting the voltage values ​​of each sampling point in the heartbeat. Specifically, the sampling points in the heartbeat can be sorted in descending order of voltage value, where the sampling value of the first a1% position is Smax, and the sampling value of the last b1% position is Smin. The first preset range is [Smin, Smax]. The value range of a1 and b1 is (0, 50), and the two can be the same, for example, both are 15, or they can be different.

[0069] The second preset range is obtained by statistically analyzing the difference values ​​of each sampling point in the heartbeat. Specifically, the sampling points in the heartbeat can be sorted in descending order according to the difference value, where the sampling value of the first a2% position is Dmax, and the sampling value of the last b2% position is Dmin. The second preset range is [Dmin, Dmax], and the value range of a2 and b2 is (0, 50), which can be the same, for example, both are 15, or different.

[0070] In some embodiments, in addition to point j, point e may also need to be identified as a reference point. Point e is the end point of the PR segment. The PR segment itself is characterized by a voltage value close to the reference line and a relatively gentle change. In the entire heartbeat, the voltage value and change rate (which can be expressed by a differential value) of the PR segment should also be closer to the median value.

[0071] Specifically, based on the prior knowledge of point e, when the voltage value of the sampling point in the heart beat segment with the key point as the end point is outside the first preset range, and / or the differential value of the sampling point in the heart beat segment with the key point as the end point is outside the second preset range, the key point is determined to be an invalid key point of point e.

[0072] S4: Filter j points from the key point set according to the slope of the line segment with the key point as the endpoint.

[0073] It is known that point j is the dividing point between the QRS complex and the ST segment. The points in the QRS complex change more dramatically, while the points in the ST segment change more slowly. This is reflected in the slope of the fitted linear segment. The slope of the segment starting from point j is smaller, and the slope of the segment ending at point j is larger. In addition, there is a segment with the largest slope in front of point j (in the R wave). Based on this knowledge, point j can be screened.

[0074] like Figure 6 As shown, in one embodiment of the present application, S4 may include the following parts.

[0075] S41: In the key point set, search for the first target key point in sequence starting from point R and moving backwards.

[0076] The slope of the line segment with the first target key point as the endpoint meets the first condition, where the line segment slope can be the calculated slope of the linear line segment itself, or the absolute value of the slope. The first condition may include: the ratio of the slope of the line segment with the key point as the starting point to the slope of the line segment with the key point as the end point is less than a first threshold, and / or the ratio of the slope of the line segment with the key point as the starting point to the maximum value of the slopes of all line segments in front of the key point is less than a second threshold, the value range of the first threshold and the second threshold are both (0,1), and the second threshold is less than the first threshold.

[0077] S42: Determine whether the number of the first target key points searched is 1.

[0078] If yes, then jump to S43; otherwise, it means that there may be R wave or S wave step / notch in the heartbeat. For details, please refer to Figure 7 In the example given, the "j point" in the figure refers to the first target key point searched. The first "j point" actually still belongs to the QRS wave group, and its influence on the j point identification should be eliminated, and jump to S44.

[0079] S43: Take the first target key point as the j point.

[0080] S44: Select one of the first target key points that satisfies the second condition as the j point.

[0081] The second condition may include: there are other first target key points in front of the first target key point, the time difference between the first target key point and the reference point is less than a preset value, such as 200ms, and the voltage difference between the first target key point and the reference point is less than the voltage difference between other first target key points in front and the reference point.

[0082] S5: Select point e as a reference point from the key point set according to the slope of the line segment with the key point as the endpoint.

[0083] The execution order between S4 and S5 is only for illustration, and they can be switched or executed simultaneously. The voltage value of the reference point is the baseline voltage of the heartbeat. In some embodiments, if the baseline voltage can be determined by using a method, S5 can be omitted.

[0084] It is known that point e is the dividing point between the QRS complex and the PR segment. The points in the QRS complex change more dramatically, while the points in the PR segment change more slowly. This is reflected in the slope of the fitted linear segment. The slope of the segment starting from point e is larger, and the slope of the segment ending at point e is smaller. There is also a segment with the largest slope behind point e (in the R wave). Based on this knowledge, point e can be screened.

[0085] Specifically, in the key point set, the second target key point is searched from point R in sequence, and the first second target key point searched is used as point e, wherein the slope of the line segment with the second target key point as the endpoint satisfies the third condition. The third condition may include: the ratio of the slope of the line segment with the key point as the end point to the slope of the line segment with the key point as the starting point is less than the third threshold, and / or the ratio of the slope of the line segment with the key point as the end point to the maximum value of the slopes of all line segments behind the key point is less than the fourth threshold, the value ranges of the third threshold and the fourth threshold are both (0,1), and the fourth threshold is less than the third threshold. The first threshold and the third threshold may be equal, for example, both are 0.5, or they may be unequal. The second threshold and the fourth threshold may be equal, for example, both are 0.1, or they may be unequal.

[0086] S6: Calculate the voltage value of j+xe as the voltage value of the ST segment.

[0087] Where x is the set time difference, which can be a single fixed value or related to the heart rate, j+x is a sampling point after point j and with a time difference of x from point j, and the voltage value of j+xe refers to the difference between the voltage value at sampling point j+x and the voltage value at point e.

[0088] Through the implementation of this embodiment, the linear segmentation method is first used to fit the heartbeat into multiple linear segments, and the endpoints of the segments are used as key points. Compared with the related technology of directly using extreme points as key points, the number of false key points can be effectively reduced, thereby improving the accuracy of the identified j points, and then improving the accuracy of the ST segment voltage value, thereby improving the accuracy of auxiliary diagnosis of related diseases.

[0089] Figure 8 A schematic structural diagram of a dynamic electrocardiogram data processing device provided in an embodiment of the present application is shown. The dynamic electrocardiogram data processing device includes a preprocessing module 11, a detection module 12 and a screening module 13.

[0090] A preprocessing module 11 is used to preprocess the dynamic electrocardiogram data to obtain multiple heart beats;

[0091] A detection module 12, used for detecting a key point set by using a linear segmentation method within a specified range of a heartbeat, wherein the specified range includes point R, and the key point set includes a plurality of key points;

[0092] The screening module 13 is used to screen out j points from the key point set according to the slope of the line segment with the key point as the endpoint.

[0093] 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.

[0094] 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.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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.

[0101] 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.

[0102] 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, It is characterized in that The method comprises: Preprocessing the dynamic ECG data to obtain multiple heart beats; A key point set is obtained by detecting in a specified range of the heartbeat using a linear segmentation method, wherein the specified range includes point R, and the key point set includes a plurality of key points; According to the slope of the line segment with the key point as the endpoint, a j point is selected from the key point set, and the j point is the boundary point between the QRS complex and the ST segment; The key point set obtained by using the linear segmentation method within the specified range of the heartbeat includes: Adding point R and the endpoints of the specified range to a first set, wherein the points in the first set are arranged in chronological order; Taking the two most forward points in the first set as the first point and the second point, and determining a target line segment with the first point and the second point as endpoints, the first point being before the second point; Searching for a target point farthest from the target line segment in the heart beat segment between the first point and the second point, and recording a target distance between the target point and the target line segment; When the target distance is greater than a preset threshold, the target point is added to the first set, and when the target distance is less than or equal to the preset threshold, the first point is moved from the first set to the second set; When the number of points in the first set is greater than 1, repeat the steps of taking out the two frontmost points in the first set as the first point and the second point and the subsequent steps, and when the number of points in the first set is less than or equal to 1, move the remaining points in the first set to the second set, and use the second set as the key point set; The step of selecting j points from the key point set according to the slope of a line segment with the key point as an endpoint comprises: In the key point set, starting from the point R, sequentially search for the first target key point backwards, and the slope of the line segment with the first target key point as the endpoint satisfies the first condition; When the number of the first target key points searched is 1, the first target key points are used as the j point; when the number of the first target key points searched is greater than 1, one of the first target key points that satisfies the second condition is selected as the j point; The first condition includes: the ratio of the slope of the line segment starting from the key point to the slope of the line segment ending at the key point is less than a first threshold, and / or the ratio of the slope of the line segment starting from the key point to the maximum value of the slopes of all line segments in front of the key point is less than a second threshold, the value range of the first threshold and the second threshold are both (0,1), and the second threshold is less than the first threshold; The second condition includes: there are other first target key points in front of the first target key point, the time difference between the first target key point and the reference point is less than a preset value, and the voltage difference between the first target key point and the reference point is less than the voltage difference between other first target key points in front and the reference point.

2. The method according to claim 1, It is characterized in that Also includes: According to the slope of the line segment with the key point as the endpoint, point e is selected from the key point set as the reference point, and the point e is the dividing point between the QRS complex and the PR segment; The voltage value of j+xe is calculated as the voltage value of the ST segment, where x is the set time difference, and j+x is a sampling point after point j and whose time difference with point j is x.

3. The method according to claim 2, It is characterized in that Also includes: The step of selecting a point e as a reference point from the key point set according to the slope of a line segment with the key point as an endpoint comprises: In the key point set, the second target key points are searched forward from the R point in sequence, and the first second target key point searched is used as the e point, wherein the slope of the line segment with the second target key point as the endpoint satisfies the third condition, and the third condition includes: the ratio of the slope of the line segment with the key point as the end point to the slope of the line segment with the key point as the starting point is less than a third threshold, and / or the ratio of the slope of the line segment with the key point as the end point to the maximum value of the slopes of all line segments after the key point is less than a fourth threshold, and the value ranges of the third threshold and the fourth threshold are both (0,1), and the fourth threshold is less than the third threshold.

4. The method according to claim 1, It is characterized in that Before selecting j points from the key point set according to the slope of the line segment with the key point as the endpoint, the method further includes: Invalid key points are determined according to voltage values ​​and / or differential values ​​of sampling points in a heartbeat segment with the key points as endpoints.

5. The method according to claim 4, It is characterized in that Determining the invalid key point according to the voltage value and / or the differential value of the sampling point in the heart beat segment with the key point as the endpoint comprises: When the voltage value of the sampling point in the heart beat segment with the key point as the starting point is outside the first preset range, and / or the differential value of the sampling point in the heart beat segment with the key point as the starting point is outside the second preset range, the key point is determined to be an invalid key point of point j, the first preset range is obtained by counting the voltage values ​​of each sampling point in the heart beat, and the second preset range is obtained by counting the differential values ​​of each sampling point in the heart beat.

6. The method according to claim 5, It is characterized in that Determining the invalid key point according to the voltage value and / or the differential value of the sampling point in the heart beat segment with the key point as the endpoint also includes: When the voltage value of the sampling point in the heart beat segment with the key point as the end point is outside the first preset range, and / or the differential value of the sampling point in the heart beat segment with the key point as the end point is outside the second preset range, the key point is determined to be an invalid key point of point e.

7. A dynamic electrocardiogram data processing device, It is characterized in that The device comprises: A preprocessing module, used for preprocessing the dynamic electrocardiogram data to obtain multiple heart beats; A detection module, configured to detect and obtain a key point set by using a linear segmentation method within a specified range of the heartbeat, wherein the specified range includes point R, and the key point set includes a plurality of key points; A screening module, used for screening out j points from the key point set according to the slope of a line segment with the key point as an endpoint, wherein the j point is a demarcation point between a QRS complex and an ST segment; The detection module is specifically used to add the R point and the endpoints of the specified range to a first set, and the points in the first set are arranged in chronological order; take out the two frontmost points in the first set as the first point and the second point, and determine a target line segment with the first point and the second point as endpoints, and the first point is before the second point; search for a target point farthest from the target line segment in the heart beat segment between the first point and the second point, and record a target distance between the target point and the target line segment; if the target distance is greater than a preset threshold, add the target point to the first set, and if the target distance is less than or equal to the preset threshold, move the first point from the first set to the second set; if the number of points in the first set is greater than 1, repeat the steps of taking out the two frontmost points in the first set as the first point and the second point and the subsequent steps, and if the number of points in the first set is less than or equal to 1, move the remaining points in the first set to the second set, and use the second set as the key point set; The screening module is specifically used to search for the first target key point in the key point set from the R point backward in sequence, and the slope of the line segment with the first target key point as the endpoint satisfies the first condition; when the number of the first target key points searched is 1, the first target key point is used as the j point, and when the number of the first target key points searched is greater than 1, one of the first target key points that satisfies the second condition is selected as the j point; the first condition includes: the ratio of the slope of the line segment with the key point as the starting point to the slope of the line segment with the key point as the end point is less than a first threshold, and / or the ratio of the slope of the line segment with the key point as the starting point to the maximum value of the slopes of all line segments in front of the key point is less than a second threshold, the value ranges of the first threshold and the second threshold are both (0,1), and the second threshold is less than the first threshold; the second condition includes: there are other first target key points in front of the first target key point, the time difference between the first target key point and the reference point is less than a preset value, and the voltage difference between the first target key point and the reference point is less than the voltage difference between other first target key points in front and the reference points.

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

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