ST offset value calculation method, device, computer equipment and storage medium

By extracting R wave points in the electrocardiogram signal, determining the Q wave and S wave dot sets using the square formula and the difference formula, and calculating the ST offset value, the problem of inaccurate calculation of ST offset value in the prior art is solved, and higher calculation accuracy and judgment accuracy are achieved.

CN114869295BActive Publication Date: 2025-08-19SHENZHEN COMEN MEDICAL INSTR
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210372191.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-08
Publication Date
2025-08-19
Estimated Expiration
2042-04-08

AI Technical Summary

Technical Problem

In the prior art, the accuracy of ST offset value calculation is low, especially when there is a large interference or drift effect in the electrocardiogram signal, resulting in inaccurate identification and judgment of ST segments.

Method used

By obtaining the R-wave points of the ECG signal, the square formula and the differential formula determine the Q-wave start point set and S-wave end point set in the ECG signal, and then calculate the ST offset value, combining the isoelectric point and the ST point position, improve signal quality and calculation accuracy.

Benefits of technology

It improves the calculation accuracy of the ST offset value, reduces the impact of baseline drift, reduces the difficulty of medical staff in judging the patient's heart physiological state, and improves the accuracy of judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114869295B_ABST
    Figure CN114869295B_ABST
Patent Text Reader

Abstract

The present application proposes a method for calculating an ST offset value, which includes: acquiring an electrocardiogram (ECG) signal, wherein the ECG signal includes an ST segment located between a QRS complex and a T wave; extracting the R wave site of the ECG signal; determining a first Q wave starting point set and a first S wave ending point set in the ECG signal based on the R wave site of the ECG signal and a preset square formula; determining a second Q wave starting point set and a second S wave ending point set in the ECG signal based on the R wave site of the ECG signal and a preset differential formula; determining the isoelectric point position of the ECG signal based on the first Q wave starting point set and the second Q wave starting point set; determining the ST point position of the ECG signal based on the first S wave ending point set and the second S wave ending point set; and determining the ST offset value of the ECG signal based on the isoelectric point position and the ST point position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the medical field, and in particular to a method, apparatus, computer device, and storage medium for calculating an ST offset value. Background Art

[0002] Electrical shock waves cause the heart muscle to beat. These shock waves travel through the patient's body and can be measured using electrodes attached to the patient's skin. Electrodes on different sides of the heart can measure the activity of different parts of the heart muscle. The electrocardiogram (ECG) displays the voltage between pairs of electrodes (leads) in different orientations. Therefore, the ECG can be used to indicate the overall heart rate and the weakness of different parts of the heart muscle. The ECG can be used to measure and diagnose abnormal heart rhythms, including those caused by damage to the conductive tissue that conducts electrical signals. ECG signals can be measured using a variety of different leads. Typically, the standard 12-lead set is used, but other leads, such as 5 or 3, can also be used.

[0003] ST segment (ST elevation myocardial infarctions, STEMI) changes in the ECG signal are a common clinical ECG finding. When a patient's myocardium is ischemic or injured, the ST wave portion of the ECG signal in the affected lead will deviate from the zero potential difference line. ST segment changes can be either up or down or left or right. Up or down deviations are called "ST segment elevation" and "ST segment depression," while left or right deviations are reflected in changes in the length of the ST interval. Clinically, ST segment "elevation" and "depression" are of greater concern. ST segment abnormalities are commonly seen in heart conditions such as myocardial ischemia, myocardial infarction, and acute pericarditis. The ST value is an important indicator that assists medical staff in assessing the patient's cardiac physiological state and is an essential parameter in all types of ECG machines. However, ST segment morphology varies greatly. When there is significant interference or drift in the ECG signal, the accuracy of existing ST segment recognition and judgment techniques is significantly reduced. Summary of the Invention

[0004] The present application provides a method, apparatus, computer device, and storage medium for calculating an ST offset value to solve the technical problem of low calculation accuracy in existing ST offset value calculation technologies.

[0005] In a first aspect, a method for calculating an ST offset value is provided, the method comprising:

[0006] Acquiring an electrocardiogram signal, wherein the electrocardiogram signal includes an ST segment between a QRS complex and a T wave;

[0007] Extracting the R wave position of the electrocardiogram signal;

[0008] Determining a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula;

[0009] Determining a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset differential formula;

[0010] determining the isoelectric point position of the electrocardiogram signal according to the first Q wave starting point set and the second Q wave starting point set;

[0011] determining the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set;

[0012] The ST offset value of the electrocardiogram signal is determined according to the isoelectric point position and the ST point position.

[0013] In a second aspect, a device for calculating an ST offset value is provided, the device comprising:

[0014] An ECG signal acquisition module is used to acquire an ECG signal, wherein the ECG signal includes an ST segment between a QRS complex and a T wave;

[0015] An R wave site extraction module, used to extract the R wave site of the electrocardiogram signal;

[0016] a first point set determination module, configured to determine a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula;

[0017] a second point set determination module, configured to determine a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset differential formula;

[0018] an isoelectric point determination module, configured to determine the isoelectric point position of the electrocardiogram signal according to the first Q wave starting point set and the second Q wave starting point set;

[0019] an ST point determination module, configured to determine the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set;

[0020] The ST offset value determining module is configured to determine the ST offset value of the electrocardiogram signal according to the isoelectric point position and the ST point position.

[0021] According to a third aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:

[0022] Acquiring an electrocardiogram signal, wherein the electrocardiogram signal includes an ST segment between a QRS complex and a T wave;

[0023] Extracting the R wave position of the electrocardiogram signal;

[0024] Determining a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula;

[0025] Determining a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset differential formula;

[0026] determining the isoelectric point position of the electrocardiogram signal according to the first Q wave starting point set and the second Q wave starting point set;

[0027] determining the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set;

[0028] The ST offset value of the electrocardiogram signal is determined according to the isoelectric point position and the ST point position.

[0029] In a fourth aspect, a computer-readable storage medium is provided, storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:

[0030] Acquiring an electrocardiogram signal, wherein the electrocardiogram signal includes an ST segment between a QRS complex and a T wave;

[0031] Extracting the R wave position of the electrocardiogram signal;

[0032] Determining a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula;

[0033] Determining a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset differential formula;

[0034] determining the isoelectric point position of the electrocardiogram signal according to the first Q wave starting point set and the second Q wave starting point set;

[0035] determining the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set;

[0036] The ST offset value of the electrocardiogram signal is determined according to the isoelectric point position and the ST point position.

[0037] The present application can achieve the following beneficial effects: after acquiring an electrocardiogram signal and extracting the R-wave site of the electrocardiogram signal, the first Q-wave starting point set and the first S-wave ending point set in the electrocardiogram signal are determined based on the R-wave site of the electrocardiogram signal and a preset square formula, and the second Q-wave starting point set and the second S-wave ending point set in the electrocardiogram signal are determined based on the R-wave site of the electrocardiogram signal and a preset differential formula; in this solution, the amplitude characteristics of the electrocardiogram signal can be highlighted through square amplification, thereby effectively improving the signal quality, and being able to more accurately determine the Q-wave starting point set and the S-wave ending point set of the electrocardiogram signal, thereby improving the accuracy of the ST offset value calculation; then, the first Q-wave starting point set and the S-wave ending point set are determined by The second Q wave starting point set determines the isoelectric point position of the electrocardiogram signal, and the first S wave ending point set and the second S wave ending point set determine the ST point position of the electrocardiogram signal, and finally the ST offset value of the electrocardiogram signal is determined according to the isoelectric point position and the ST point position; in this solution, after square amplification and differential processing, based on the high-precision Q wave starting point set and S wave ending point set, the isoelectric point and the ST point can be accurately determined, and the ST offset value can be accurately determined. At the same time, the use of differential signals reduces the influence of baseline drift in the electrocardiogram signal to a certain extent, reduces the difficulty for medical staff to judge the patient's cardiac physiological state, and improves the accuracy of medical staff's judgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A connection diagram of a 12-lead system provided in an embodiment of the present application;

[0039] Figure 2 A connection diagram of a limb lead provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of chest lead connections provided in an embodiment of the present application;

[0041] Figure 4 An electrocardiogram signal of one heartbeat in an electrocardiogram signal of a healthy person provided in an embodiment of the present application;

[0042] Figure 5A A schematic diagram of ST segment elevation provided in an embodiment of the present application;

[0043] Figure 5B A schematic diagram of ST segment depression provided in an embodiment of the present application;

[0044] Figure 6 The intention of an electrocardiogram signal provided in an embodiment of the present application;

[0045] Figure 7 A flow chart of a method for calculating an ST offset value provided in an embodiment of the present application;

[0046] Figure 8A A schematic diagram of a Q-wave starting point and J-point search direction provided in an embodiment of the present application;

[0047] Figure 8B A schematic diagram of a Q-wave starting point and J-point search direction provided in an embodiment of the present application;

[0048] Figure 9 A flow chart of a method for calculating an ST offset value provided in an embodiment of the present application;

[0049] Figure 10 A schematic diagram of a concentric ring display provided in an embodiment of the present application;

[0050] Figure 11 A schematic diagram showing an ST offset value provided in an embodiment of the present application;

[0051] Figure 12 A schematic diagram showing an ST offset value provided in an embodiment of the present application;

[0052] Figure 13 A schematic diagram showing an ST offset value provided in an embodiment of the present application;

[0053] Figure 14 A schematic diagram of the structure of an ST offset value calculation device provided in an embodiment of the present application;

[0054] Figure 15 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0056] The ST value is an important indicator that assists medical personnel in determining a patient's cardiac physiological state. The technical solution of this application can be applied to various medical scenarios in which ST segment deviation is obtained through an electrocardiogram (ECG) machine, thereby assisting medical personnel in determining a patient's cardiac physiological state. Specifically, the technical solution of this application is applied to computer equipment and is suitable for data processing scenarios in which a patient's electrocardiogram (ECG) signal is obtained through ECG leads and then the ST segment deviation value in the patient's ECG signal is calculated.

[0057] In practical applications, the technical solution of the present application can be applied to an ECG lead detection scenario with only one lead, or to an ECG lead detection scenario with multiple leads. It is understandable that in a detection scenario with multiple leads, the technical solution of the present application can be used to simultaneously calculate the ST shift value of the ECG of each of the multiple leads, or to individually calculate the ST shift value of the ECG of any one of the multiple leads.

[0058] To facilitate understanding of the technical solution of this application, the electrocardiogram leads are first introduced. Among them, electrodes are placed on different parts of the human body and connected to the positive and negative poles of the electrocardiograph through lead wires. This circuit connection method for recording electrocardiograms is called electrocardiogram leads. In actual applications, the universal lead system is called a conventional 12-lead system, including limb leads connected to the limbs and chest leads connected to the chest. Figure 1 As shown, Figure 1 This is a connection diagram for the 12-lead system.

[0059] In this embodiment, if Figure 2 As shown, the limb leads include standard limb leads I, II, III and pressurized unipolar limb leads aVR, aVL, and aVF.

[0060] Standard limb leads are bipolar, reflecting the potential difference between two limbs. Standard Lead I measures the potential difference between the left and right hands; Standard Lead II measures the potential difference between the left leg and right hand; and Standard Lead III measures the potential difference between the left leg and left hand. The potentials recorded by these leads follow the relationship: I + III = II. Pressurized unipolar limb leads directly record the voltage at the lead site by making only one of the two electrodes display a potential, while the other electrode's potential is zero. When a pressurized unipolar limb lead is connected, any one of the left hand, right hand, or left leg serves as the positive electrode, while the combined electrode of the other two serves as the negative electrode. For pressurized unipolar limb lead aVR, the positive electrode is the right hand, while the combined electrode of the left hand and left leg serves as the negative electrode. For pressurized unipolar limb lead aVL, the positive electrode is the left hand, while the combined electrode of the right hand and left leg serves as the negative electrode. For pressurized unipolar limb lead aVF, the positive electrode is the left leg, while the combined electrode of the left hand and right hand serves as the negative electrode.

[0061] In this embodiment, the chest leads are unipolar leads, including V1 to V6. During testing, the positive electrode should be placed at the specified location on the chest wall; the three electrodes of the limb leads are connected to the negative electrode through a 5K resistor to form the central electrical terminal. This connection can make the potential at this location close to zero and relatively stable, so it is set as the negative electrode of the lead. Figure 3As shown in the figure, the specific positions of the chest lead detection electrodes are: 1 is V1, located at the 4th intercostal space on the right edge of the foot bone; 2 is V2, located at the 4th intercostal space on the left edge of the sternum; 3 is V3, located at the midpoint of the line connecting V2 and V4; 4 is V4, located at the intersection of the left midclavicular line and the 5th intercostal space; 5 is V5, located at the level of V4 on the left anterior axillary line; 6 is V6, located at the level of V4 on the left midaxillary line.

[0062] During a routine ECG examination, 12 leads, including standard limb leads, pressurized unipolar limb leads, and leads V1 to V6, are sufficient. If dextrocardia, right ventricular hypertrophy, or myocardial infarction is suspected, leads V7, V8, V9, and V3R are required. V7 is located at the level of V4 on the left posterior axillary line; V8 is located at the level of V4 on the left scapular line; V9 is located at the level of V4 on the left paraspinal line; and V3R is located on the right anterior chest, corresponding to V3.

[0063] To facilitate understanding of this program, we will introduce the electrocardiogram. Figure 4 As shown, Figure 4 The figure shows the ECG signal of a healthy person's heartbeat, which includes a P wave, a Q wave, an R wave, an S wave, and a T wave. The P wave represents atrial depolarization, with the initial portion of the P wave primarily reflecting right atrial depolarization and the terminal portion primarily reflecting left atrial depolarization. As can be seen from the figure, the Q wave is the downward-shifted wave following the P wave. A typical Q wave represents septal depolarization. The R wave is the first upward-shifted wave following the P wave, representing early ventricular depolarization. The S wave is the first negative-shifted wave following the R wave, representing late ventricular depolarization. The T wave is typically convex, slightly rounded, and slightly asymmetric. The T wave represents ventricular repolarization. The QRS complex begins at the beginning of the Q wave and ends at the end of the S wave. The QRS complex represents the ongoing process of ventricular depolarization. Typically, during the PR and ST segments of the ECG signal, there is little or no electrical activity along the zero potential difference line 110. In other words, the ST wave normally has zero potential difference.

[0064] like Figure 5A and Figure 5B As shown, the ST segment may appear to be elevated vertically from the zero potential difference line 110 ( Figure 5A ) or lower ( Figure 5B ). The ST segment deviation value 120 is used to represent the vertical distance from the zero potential difference line 110 when the ST segment is elevated or depressed. ST segment elevation or depression may be caused by heart injury, ventricular aneurysm, variant angina, pericarditis, myocardial ischemia, or other diseases. Based on the description herein, technicians can understand that when different leads are used to detect the same patient, Figure 5A ST segment elevation and Figure 5B ST segment depression may still occur in patients with

[0065] Taking ST segment depression as an example, Figure 6 As shown, Figure 6 is an ECG signal with ST segment depression. Among them, (1) is the starting point of the P wave, (2) is the position of the P wave, (3) is the end point of the P wave, (4) is the ISO point (isoelectric point), (5) is the starting point of the Q wave, (6) is the position of the R wave, (7) is the position of the S wave, (8) is the end point of the S wave, (9) is the ST point, (10) is the starting point of the T wave, (11) is the position of the T wave, and (12) is the end point of the T wave. Among them, Figure 6 The median ST value is the ST segment offset value 120, the ISO point is a point on the zero potential difference line 110, and the ST point is a point on the ST segment. In this application, the position of the zero potential difference line, i.e., the ISO point, is determined by determining the Q wave starting point; the position of the ST point is determined by determining the S wave ending point; and the ST offset value is then determined.

[0066] In one embodiment, Figure 7 As shown, the present application proposes a method for calculating an ST offset value, the method comprising:

[0067] Step 701: Acquire an electrocardiogram signal, where the electrocardiogram signal includes an ST segment between a QRS complex and a T wave.

[0068] Wherein, the electrocardiogram signal is obtained by Figure 1 The lead system shown in the figure can also be obtained from a storage device or medium storing ECG signal data. The ECG signal also includes lead type data corresponding to the ECG signal, and the lead type data is used to indicate the lead type of the ECG signal detected; the lead type is Figures 1 to 3 The one or more leads may, for example, be one type of lead among the limb leads connected to the limbs and / or one type of lead among the chest leads connected to the chest, or may be multiple types of lead among the limb leads connected to the limbs and / or multiple types of lead among the chest leads connected to the chest.

[0069] Wherein, the electrocardiogram signal includes Figures 4 to 6 The ST segment is located between the QRS complex and the T wave.

[0070] Step 702: extract the R wave position of the electrocardiogram signal.

[0071] Among them, the R wave can be Figure 6 The R wave in the electrocardiogram signal. The R wave position is used to indicate the position of the R wave, which can be Figure 6 The horizontal coordinate Rpos corresponding to the R wave position (6).

[0072] In a specific embodiment, when acquiring the ECG signal, the voltage at each point on the ECG signal can be obtained simultaneously. By comparing the voltage at each point on the ECG signal with a preset R-wave reference voltage, the R-wave peak of the ECG signal is obtained, and then the R-wave position of the R-wave peak is obtained. For example, a point above the preset R-wave reference voltage can be marked as an R-wave peak, and a point below the preset R-wave reference voltage can be marked as a non-R-wave peak.

[0073] In this embodiment, by comparing the voltage of each point on the ECG signal with the preset R-wave reference voltage, no complicated operations are required, which can effectively reduce the delay of R-wave detection and improve the accuracy of R-wave detection, thereby accurately determining the R-wave position.

[0074] In a specific embodiment, before extracting the R wave site of the electrocardiogram signal, the method further includes: determining the signal-to-noise ratio of the electrocardiogram signal; if the signal-to-noise ratio is less than a signal-to-noise ratio threshold, re-executing the step of acquiring the electrocardiogram signal; if the signal-to-noise ratio is not less than the signal-to-noise ratio threshold, executing the step of extracting the R wave site of the electrocardiogram signal.

[0075] The signal-to-noise ratio indicates the signal quality of the ECG signal. A higher signal-to-noise ratio indicates less noise in the ECG signal and higher signal quality of the ECG signal. A lower signal-to-noise ratio indicates more noise in the ECG signal and lower signal quality of the ECG signal.

[0076] In a specific embodiment, after obtaining the ECG signal, the ECG signal is converted from a time domain signal to a frequency domain signal to obtain a power spectrum corresponding to the ECG signal; then, the amplitudes of the high-frequency interval and the low-frequency interval are integrated respectively to obtain the power P1 of the high-frequency interval and the power P2 of the low-frequency interval. It can be understood that the high-frequency interval and the low-frequency interval can be set according to actual needs. For example, 0Hz-50Hz can be set as the low-frequency interval, and 50Hz-500Hz can be set as the high-frequency interval; the signal-to-noise ratio of the ECG signal is determined by calculating the ratio P2 / P1 between the power P1 of the high-frequency interval and the power P2 of the low-frequency interval. The higher the ratio P2 / P1, the lower the proportion of high-frequency noise in the ECG signal, and the higher the signal quality of the ECG signal; the lower the ratio P2 / P1, the higher the proportion of high-frequency noise in the ECG signal, and the lower the signal quality of the ECG signal.

[0077] In this embodiment, if the ratio P2 / P1 is less than the preset signal-to-noise ratio threshold, the ECG signal needs to be acquired again; if the ratio P2 / P1 is not less than the preset signal-to-noise ratio threshold, the ST offset value can be calculated using the ECG signal.

[0078] In this embodiment, determining the signal-to-noise ratio of the ECG signal can ensure the availability of the ECG signal; based on the high-quality ECG signal, the reliability and accuracy of the ST shift value calculation can be greatly improved.

[0079] In a specific embodiment, the ST offset value calculation method is applied to an ST offset value calculation circuit, which includes a notch filter module and a bandpass filter module; before extracting the R wave site of the electrocardiogram signal, it also includes: filtering the electrocardiogram signal through the notch filter module to obtain a first filtered signal; filtering the first filtered signal through the bandpass filter module to obtain a filtered electrocardiogram signal.

[0080] The notch filter module may be a notch filter for filtering out waves of a specific frequency; the bandpass filter module may be a bandpass filter for retaining waves within a specific frequency range, for example, waves with a frequency between 0.05Hz and 20Hz. It is understood that in actual applications, there is no restriction on the order in which the notch filter module and the bandpass filter module are connected, i.e., the ECG signal may be notch filtered first and then bandpass filtered, or the ECG signal may be bandpass filtered first and then notch filtered.

[0081] In this embodiment, the power frequency signal in the ECG signal can be filtered out by the notch filter module. The power frequency signal refers to the signal generated by the device for obtaining the ECG signal. For example, if Figure 1 The frequency generated by the lead system shown in the figure is 50 Hz when in operation, so the notch filter module may be a notch filter capable of filtering out 50 Hz waves.

[0082] In this embodiment, the notch filter module and the bandpass filter module can effectively avoid interference of clutter on the signal, improve signal quality, and further improve the accuracy of ST offset value calculation.

[0083] In a specific implementation, after extracting the R wave site of the ECG signal, a larger Q wave starting point and J point detection interval can be determined based on the R wave site. The detection intervals are symmetrically distributed on both sides of the R wave site. With the R wave site as the center, the left interval of the R wave site is used to detect the Q wave starting point, and the right interval of the R wave site is used to detect the J point. The Q wave starting point refers to the starting point of the QRS wave, which can be as follows: Figure 6 The Q wave starting point (5); J point refers to the S wave ending point, which can be Figure 6The S wave end point (8). In practical applications, the detection interval of the Q wave starting point and the detection interval of the J point can be set according to the actual ECG signal. For example, the detection interval of the Q wave starting point can be [Rpos-MS100, Rpos], which means the interval size is 100 milliseconds to the left of the R wave site; the detection interval of the J point can be [Rpos, Rpos+MS100], which means the interval size is 100 milliseconds to the right of the R wave site.

[0084] In this embodiment, by setting the detection interval of the Q wave starting point and the detection interval of the J point, the influence of redundant bands on the detection can be effectively avoided, the amount of detection data can be reduced, and the accuracy of detection can be improved.

[0085] Step 703 : determining a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula.

[0086] Among them, the Q wave starting point refers to the above-mentioned Q wave starting point, and the S wave ending point refers to the above-mentioned J point. After determining the detection interval of the Q wave starting point and the detection interval of the J point, the ECG signal can be amplified to improve the signal quality, and then the Q wave starting point and the J point can be determined based on the amplified signal. Specifically, the amplitude characteristics of the ECG signal can be amplified by a square formula, and based on the ECG signal with obvious amplitude characteristics, the R wave site is used as the center and the left and right sides are detected to determine the first Q wave starting point set and the first S wave ending point set.

[0087] In a specific embodiment, the method of determining the first Q wave starting point set and the first S wave ending point set in the electrocardiogram signal based on the R wave site and a preset square formula includes: square amplifying the electrocardiogram signal by a preset square formula to obtain a square amplified signal corresponding to the electrocardiogram signal; and determining the first Q wave starting point set and the first S wave ending point set in the electrocardiogram signal from the square amplified signal based on the R wave site.

[0088] The square formula may be: ECGsq(k)=ECG(k) 2 .

[0089] Among them, you can set the search condition to: ECG sq (k)≤xA, where A is the amplitude of the squared amplified signal and x is the amplitude coefficient. Specifically, A refers to the R wave amplitude corresponding to the R wave site, and x can be 1%. In this case, the search condition is: according to the specified search direction, the first m points with amplitudes less than 1% of the amplitude. Figure 8AAs shown, the detection is performed from the R wave position to the left and right sides, and the first Q wave starting point set [Qpos_1, ..., Qpos_m] and the first S wave ending point set [Jpos_1, ..., Jpos_m] that meet the search conditions are counted. Wherein, m refers to the number of points, and for example, it can be m=10.

[0090] In this embodiment, after determining the first Q wave starting point set and the first S wave ending point set, it is also possible to determine whether the number of Q wave starting points in the first Q wave starting point set and the number of J points in the first S wave ending point set meet a preset threshold. If not, the magnitude of the amplitude coefficient x in the Q wave starting point and J point search conditions is adjusted. For example, the preset threshold may be 10, and a determination is made as to whether m ≥ 10 is established. If not, the value of x is dynamically adjusted. For example, the adjusted search condition may be: ECG sq (k)≤(0.1+x)A. It should be noted that after adjusting the Q wave starting point and J point search conditions, the first Q wave starting point set and the first S wave ending point set can be adjusted simultaneously, or only one of them can be adjusted. For example, when x=0.01, if the first Q wave starting point set has met the preset threshold, but the first S wave ending point set has not yet reached the preset threshold, then the ECG can be used to sq (k)≤(0.1+0.01)A, and at the same time, adjust the first Q wave starting point set and the first S wave ending point set so that the number of Q wave starting points in the first Q wave starting point set and the number of J points in the first S wave ending point set both meet the preset threshold; the first Q wave starting point set that meets the preset threshold can also be retained and stored, and the first Q wave starting point set that meets the preset threshold can be adjusted according to the ECG. sq The search condition of (k)≤(0.1+x)A is used to search, and only the first S-wave termination point set is adjusted so that the number of J points in the first S-wave termination point set meets the preset threshold.

[0091] In this embodiment, the amplitude characteristics of the ECG signal can be highlighted by square amplification, and by presetting the search conditions and dynamically adjusting the search conditions, it can be ensured that enough first Q wave starting points and first S wave ending points are obtained, thereby improving the accuracy of the ISO point and ST point positions.

[0092] Step 704 : Determine a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset differential formula.

[0093] The slope characteristics of the electrocardiographic signal may be reflected by differential processing, and the second Q wave starting point set and the second S wave ending point set may be determined based on the differential signal with obvious slope characteristics.

[0094] In a specific embodiment, the method of determining the second Q wave starting point set and the second S wave ending point set in the electrocardiogram signal based on the R wave site and a preset differential formula includes: performing signal processing on the electrocardiogram signal through a preset differential formula to obtain a differential signal corresponding to the electrocardiogram signal; and determining the first Q wave starting point set and the first S wave ending point set in the electrocardiogram signal from the differential signal based on the R wave site.

[0095] The difference formula may be:

[0096] ECG diff (k)=ECG(k)-2*ECG(k-2)+ECG(k-4).

[0097] Among them, you can set the search conditions as: ECG diff (k)∈[-t, t], where the difference t is the threshold for the differential signal search. The smaller the vertical coordinate of the differential signal, the smaller the slope of the corresponding ECG signal and the flatter the position of the corresponding signal feature point. Specifically, the initial condition can be t=1, and the search condition is n points with differential signal values in [-1, 1]. Figure 8B As shown, starting from the R wave position and moving to the left and right, the second Q wave starting point set [QposZ_1, ..., QposZ_n1] and the second S wave ending point set [JposZ_1, ..., JposZ_n2] that meet the search conditions are counted. Where n1 and n2 are the number of points, for example, n1 = 10 and n2 = 10.

[0098] In this embodiment, after determining the second Q wave starting point set and the second S wave ending point set, it is further possible to determine whether the number of Q wave starting points in the second Q wave starting point set and the number of J points in the second S wave ending point set meet a preset threshold. If not, the value of t in the search conditions for the Q wave starting points and J points is adjusted. For example, the preset threshold may be 10, and a determination is made as to whether n1 ≥ 10 and n1 ≥ 10 are satisfied. If not, the value of t is dynamically adjusted. For example, t = (1 + 15%) t can be set. The adjusted search condition may be:

[0099] ECG diff (k)∈[-(1+15%)t, (1+15%)t].

[0100] It should be noted that after adjusting the Q wave starting point and J point search conditions, the second Q wave starting point set and the second S wave ending point set can be adjusted simultaneously, or only one of them can be adjusted. For example, when t = 1, if the second Q wave starting point set has met the preset threshold, but the second S wave ending point set has not yet reached the preset threshold, then the ECG can be used to search for the starting point of the second Q wave and the ending point of the second S wave. diff(k)∈[-(1+15%)t, (1+15%)t], and adjust the second Q wave starting point set and the second S wave ending point set so that the number of Q wave starting points in the second Q wave starting point set and the number of J points in the second S wave ending point set both meet the preset threshold; the second Q wave starting point set that meets the preset threshold can also be retained and stored, and the second Q wave starting point set that meets the preset threshold can be adjusted according to the ECG. diff The search condition of (k)∈[-(1+15%)t, (1+15%)t is used for searching, and only the second S-wave termination point set is adjusted so that the number of J points in the second S-wave termination point set meets the preset threshold.

[0101] In this embodiment, the slope characteristics of the ECG signal can be effectively highlighted through differential processing, and by presetting the search conditions and dynamically adjusting the search conditions, it can be ensured that enough second Q wave starting points and second S wave ending points are obtained, thereby improving the accuracy of the ISO point and ST point positions.

[0102] Step 705: Determine the isoelectric point position of the electrocardiogram signal according to the first Q wave starting point set and the second Q wave starting point set.

[0103] The isoelectric point position refers to the value of the vertical coordinate corresponding to the isoelectric point (ISO point), which can be specifically as follows: Figure 6 The value of the ordinate corresponding to the ISO point (4) shown in FIG. The position of the isoelectric point can be as follows: Figure 4 - a point on the zero potential difference line 110 described in FIG5 .

[0104] In a specific embodiment, after determining the first Q wave starting point set and the second Q wave starting point set, it is also necessary to judge the rationality of the Q wave starting point, eliminate points with large errors, reduce the impact of noise, and improve the accuracy of the Q wave starting point, thereby improving the accuracy of the ST offset value.

[0105] In this embodiment, the rationality of the Q wave starting point can be judged by the following conditions:

[0106] The first Q wave starting point set:

[0107] Mean_Qpos=mean([Qpos_1,...,Qpos_m])

[0108] T1=a|Qpos_m-Qpos_1|

[0109] The effective interval of the first Q wave starting point is: [Mean_Qpos–T1, Mean_Qpos+T1]

[0110] Where Mean_Qpos is the mean of the m Q-wave starting points in the first Q-wave starting point set, and T1 is a times the length of the region between the first Q-wave starting point and the m-th Q-wave starting point in the first Q-wave starting point set. In practical applications, a can be adjusted according to actual needs, for example, a = 0.4.

[0111] The second Q wave starting point set:

[0112] Mean_QposZ=mean([QposZ_1,...,QposZ_n1])

[0113] T3 = c|QposZ_n1-QposZ_1|;

[0114] The effective interval of the second Q wave starting point is: [Mean_QposZ–T3, Mean_QposZ+T3]

[0115] Where Mean_QposZ is the mean of the n1 Q-wave starting points in the second Q-wave starting point set, and T3 is c times the length of the region between the first Q-wave starting point and the n1th Q-wave starting point in the second Q-wave starting point set. In practical applications, a can be adjusted according to actual needs, for example, c = 0.45.

[0116] In this embodiment, after the rationality judgment of Q is completed, the Q wave starting points in the first Q wave starting point valid interval and the second Q wave starting point valid interval can be screened respectively to obtain the screened first Q wave starting point and the screened second Q wave starting point. Among them, min|Qpos_i1-QposZ_j1| can be used to screen the Q wave starting points in the first Q wave starting point valid interval and the second Q wave starting point valid interval. Among them, Qpos_i1 is any Q wave starting point in the first Q wave starting point valid interval, and QposZ_j1 is any Q wave starting point in the second Q wave starting point valid interval. Specifically, the two Q wave starting points with the smallest difference are screened as the screened first Q wave starting point and the screened second Q wave starting point. Then, according to the principle of being close to the R wave, the point closest to the R wave is determined from the screened first Q wave starting point and the screened second Q wave starting point as the target Q wave starting point.

[0117] In this embodiment, after determining the starting point of the target Q wave, the position of the isoelectric point can be determined according to the heart rate. Specifically, the position of the isoelectric point, that is, the ISO point, is determined according to the following formula.

[0118] ISO_pos=Q_POS–t1

[0119] According to the above formula, shift the target Q wave starting point to the left by t1 milliseconds, where t1 is determined by the heart rate. If the heart rate is greater than 120, t1 is used with the number of sampling points corresponding to 20 milliseconds; if the heart rate is not greater than 120, t1 is used with the number of sampling points corresponding to 30 milliseconds.

[0120] In this embodiment, by obtaining the mean of the first Q wave starting point set and reducing the length of the region between the first and mth Q wave starting points, and by obtaining the mean of the second Q wave starting point set and reducing the length of the region between the first and n1th Q wave starting points, the rationality of the Q wave starting points can be effectively determined, points with large errors can be eliminated, and the influence of noise can be reduced, thereby improving the accuracy of the ST offset value. Circular screening and the principle of close proximity to the R wave can further remove noise, improve the accuracy of the Q wave starting point, and thus further improve the accuracy of the ST offset value.

[0121] Step 706: Determine the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set.

[0122] Wherein, the ST point position can be as follows Figure 6 The ST point (9) is a point on the ST segment where the ST point (9) is located.

[0123] In a specific embodiment, after determining the first S-wave termination point set and the second S-wave termination point set, it is also necessary to judge the rationality of the J point, eliminate points with large errors, reduce the impact of noise, improve the accuracy of the J point, and thus improve the accuracy of the ST offset value.

[0124] In this embodiment, the rationality of point J can be judged by the following conditions:

[0125] The first S wave termination point set:

[0126] Mean_Jpos=mean([Jpos_1,…,Jpos_m])

[0127] T2 = b|Jpos_m-Jpos_1|;

[0128] The valid interval of the first J point is: [Mean_Jpos–T2, Mean_Jpos+T2];

[0129] Where Mean_Jpos is the mean of the m J points in the first S-wave starting point set, and T2 is b times the length of the region between the first and m-th J points in the first J-wave starting point set. In practical applications, b can be adjusted according to actual needs, for example, b = 0.45.

[0130] The second S wave termination point set:

[0131] Mean_JposZ=mean([Qpos_1,...,Qpos_n2])

[0132] T4=d|JposZ_n2-JposZ_1|

[0133] The valid interval of the second J point is: [Mean_JposZ–T4, Mean_JposZ+T4]

[0134] Where Mean_Jpos is the mean of the n2 J points in the second S-wave starting point set, and T4 is d times the length of the region between the first and n2 J points in the second Q-wave starting point set. In practical applications, d can be adjusted based on actual needs, for example, d = 0.45.

[0135] In this embodiment, after the rationality judgment of J is completed, the J points in the first J point valid interval and the second J point valid interval can be screened respectively to obtain the first J point after screening and the second J point after screening. Among them, min|Jpos_i1-JposZ_j1| can be used to screen the J points in the first J point valid interval and the second J point valid interval. Among them, Jpos_i1 is any J point in the first J point valid interval, and JposZ_j1 is any J point in the second J point valid interval. Specifically, the two J points with the smallest difference are screened as the first J point after screening and the second J point after screening. Then, according to the principle of being close to the R wave, the point closest to the R wave is determined from the first J point after screening and the second J point after screening as the target J point.

[0136] In this embodiment, after the target J point is determined, the ST point position can be determined according to the heart rate. Specifically, the ST point position is determined according to the following formula.

[0137] ST_pos=J_POS+t2

[0138] According to the above formula, the target point J is shifted right by the number of sampling points corresponding to t2 milliseconds, where t2 is determined by the heart rate. If the heart rate is greater than 120, t2 is the number of sampling points corresponding to 60 milliseconds; if the heart rate is not greater than 120, t2 is the number of sampling points corresponding to 80 milliseconds.

[0139] In this embodiment, by obtaining the mean of the first J wave starting point set and reducing the length of the region between the first and mth J points, and by obtaining the mean of the second J wave starting point set and reducing the length of the region between the first and n1th J points, the rationality of J points can be effectively determined, points with large errors can be eliminated, and the influence of noise can be reduced, thereby improving the accuracy of ST offset values. Circular screening and the principle of close proximity to R waves can further remove noise, improve the accuracy of J points, and thus further improve the accuracy of ST offset values.

[0140] Step 707: Determine the ST offset value of the electrocardiogram signal according to the isoelectric point position and the ST point position.

[0141] After the positions of the isoelectric point and the ST point are determined, the difference between the vertical coordinates of the isoelectric point and the ST point can be calculated in the original signal, and the difference is used as the ST offset value.

[0142] The present application proposes a method for calculating an ST offset value: after obtaining an electrocardiogram signal and extracting the R wave site of the electrocardiogram signal, the first Q wave starting point set and the first S wave ending point set in the electrocardiogram signal are determined based on the R wave site of the electrocardiogram signal and a preset square formula, and the second Q wave starting point set and the second S wave ending point set in the electrocardiogram signal are determined based on the R wave site of the electrocardiogram signal and a preset differential formula; in this scheme, the amplitude characteristics of the electrocardiogram signal can be highlighted by square amplification, thereby effectively improving the signal quality, and accurately determining the Q wave starting point set and the S wave ending point set of the electrocardiogram signal, thereby improving the accuracy of the ST offset value calculation; then, through the first The Q wave starting point set and the second Q wave starting point set determine the isoelectric point position of the electrocardiogram signal, and after the ST point position of the electrocardiogram signal is determined by the first S wave ending point set and the second S wave ending point set, the ST offset value of the electrocardiogram signal is determined according to the isoelectric point position and the ST point position; in this solution, after square amplification and differential processing, based on the high-precision Q wave starting point set and S wave ending point set, the isoelectric point position and the ST point position can be accurately determined, and the ST offset value can be accurately determined without being affected by drift in the electrocardiogram signal, thereby reducing the difficulty of medical staff in judging the patient's cardiac physiological state and improving the accuracy of medical staff's judgment.

[0143] In a specific embodiment, Figure 9 As shown, after determining the ST offset value of the electrocardiogram signal according to the isoelectric point position and the ST point position, the method further includes:

[0144] Step 901 : Displaying an ST offset value display area, wherein the ST offset value display area includes a concentric ring display diagram; the concentric ring display diagram includes a plurality of concentric rings for representing ST offset values of different cascades.

[0145] Wherein, the ST value display area includes a concentric ring display diagram. Figure 10 As shown in the figure, the upper half of the concentric ring display is set to be leads I, II, III, aVR, aVL, and aVF from the center to the maximum radius, and the lower half is set to be leads V1, V2, V3, V4, V5, and V6 from the center to the maximum radius; and the positive direction is set to be clockwise and the negative direction is set to be counterclockwise. The 0-0 line is used as the dividing line for the positive and negative ST deviation values. The upper and lower dividing lines and the positive and negative dividing lines are used to divide the ST deviation values into four fan-shaped areas. Combined with the specified positive direction, the positive and negative values of each area can be obtained as follows: Figure 10 In practical applications, “+” and “-” in different colors can be used for explicit marking.

[0146] In practical applications, if the standard limb leads, pressurized unipolar limb leads, and 12 leads (V1 to V6) alone are insufficient for routine ECG examinations, such as when dextrocardia, right ventricular hypertrophy, or myocardial infarction is suspected and additional leads (V7, V8, V9, and V3R) are required, the concentric ring display in this solution can also display leads (V7, V8, V9, and V3R) in addition to the 12 leads.

[0147] Step 902: Determine the ratio of the ST offset value to the preset display threshold value corresponding to the concentric ring display diagram; the preset display threshold value is used to indicate the maximum value of the ST offset value that can be displayed by the concentric ring display diagram.

[0148] Among them, the maximum value of the ST offset value that can be displayed by a concentric ring display is set. For example, the maximum range of the ST offset value that can be represented by half a concentric ring is set to [-A, +A]. On this basis, it can be obtained that the size of the ST offset value represented by each degree of central angle in the half concentric ring is 2*A / 180. Therefore, if the ST offset value is calculated to be B, then the ST offset value B can be represented by an annular sector area with a central angle of 2*A*B / 180 in the concentric ring. Figure 11 As shown in , the larger the central angle, the larger the ST offset value (absolute value). Figure 11As shown, the corresponding leads from top to bottom and the ST deviation values in these leads are: aVF (0.8), aVL (-0.5), aVR (0.6), III (-0.7), II (0.7), I (-0.8), V1 (-0.9), V2 (0.6), V3 (-0.6), V4 (-0.4), V5 (-0.6), and V6 (0.5).

[0149] Step 903 : Displaying a first annular sector region representing the ST offset value on a concentric ring corresponding to the ST offset value according to the ratio.

[0150] The concentric rings corresponding to the ST deviation values refer to ST deviation values and concentric rings corresponding to the same lead. For example, the ST deviation value of lead V6 should be represented on the concentric rings identifying lead V6.

[0151] After the ST offset value is calculated, the size of the annular sector region used to represent the ST offset value can be determined according to the size of the ST offset value represented by each degree of the central angle, and displayed on the concentric rings.

[0152] In this embodiment, by using different rings in the concentric ring display diagram to identify different leads, the ST shift values in the multi-lead electrocardiogram can be clearly displayed according to the lead type, and the ST shift value display is more intuitive.

[0153] In a specific embodiment, after the annular sector area representing the ST offset value is displayed in the concentric rings corresponding to the ST offset value according to the ratio in a preset display order, it also includes: obtaining a preset isoelectric point position preset by the user; determining the isoelectric point position offset value of the electrocardiogram signal according to the isoelectric point position and the preset isoelectric point position; the isoelectric point position offset value is used to indicate the difference between the isoelectric point position and the preset isoelectric point position; determining the ratio of the isoelectric point position offset value to the preset display threshold according to the preset display threshold; based on the first annular sector area, displaying a second annular sector area representing the isoelectric point position offset value in the concentric rings corresponding to the ST offset value according to the ratio of the isoelectric point position offset value to the preset display threshold.

[0154] The preset display threshold is also used to indicate that the concentric ring display diagram can display the maximum value of the isoelectric point position offset value, and the indicated maximum value of the isoelectric point position offset value is equal to the maximum value of the ST offset value.

[0155] When performing real-time ST analysis, the annular sector area can simultaneously reflect the ST deviation value, the size, positive and negative of the difference between the current heartbeat isoelectric point position and the preset isoelectric point position, and the relative relationship between the two. Figure 12 As shown, from top to bottom they correspond to aVF (0.8 / -0.2), aVL (-0.5 / -0.3), aVR (0.6 / -0.2), III (-0.7 / 0.1), II (0.7 / 0.1), I (-0.8 / 0.1), V1 (-0.9 / 0.2), V2 (0.6 / -0.2), V3 (-0.6 / -0.1), V4 (-0.4 / 0.1), V5 (-0.5 / 0.1), and V6 (0.5 / -0.2). Taking the aVF lead as an example, in the nth heartbeat, the isoelectric point position and ST point position are obtained using the calculation method, and the calculated ST offset value is 0.8. Comparing the vertical coordinate value of the ST point with the vertical coordinate value of the manually set isoelectric point position, the difference between the vertical coordinate values of the isoelectric point and the manually set isoelectric point position (the isoelectric point offset value) is -0.2. Therefore, the real-time ST offset value in the current heartbeat is: 0.8 + (-0.2) = 0.6 mV. In this embodiment, the end edge of the isoelectric point offset value is ensured to always fall on the boundary of the region corresponding to the real-time ST offset value, making the change in the isoelectric point offset value more clearly displayed. The starting edge of the isoelectric point offset value is defined at the end edge of the ST offset value.

[0156] In a specific embodiment, Figure 13 As shown, in order to avoid the phenomenon that the annular sector area is too small when the ST offset value, the difference between the current heart rate baseline and the manually set isoelectric point position (isoelectric point position offset value) is very small, and the specific values in the graph are difficult to identify (arrange), and the specific values of the ST offset value and the isoelectric point position offset value are difficult to distinguish; at the same time, in order to reduce the complexity of the graph and improve the clarity of the numerical display, the solution proposed in this application can also set a detailed numerical comparison legend next to the concentric ring display diagram, and the legend corresponds to the divided area of each lead on the 0-0 axis one by one, which very intuitively and clearly identifies the specific value of the current lead; and in different modes, the corresponding indicator area can also light up for user observation; in order to meet the different observation needs of professionals for the ST offset value indicator, a separate classification table is also provided at the bottom, which intuitively displays the ST offset value through the table, making it convenient for users to compare data.

[0157] In one embodiment, Figure 14 The present application proposes a device for calculating an ST offset value, the device comprising:

[0158] The ECG signal acquisition module 1401 is used to acquire an ECG signal, where the ECG signal includes an ST segment between the QRS complex and the T wave.

[0159] The R-wave site extraction module 1402 is configured to extract the R-wave site of the electrocardiogram signal.

[0160] The first point set determination module 1403 is configured to determine a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula.

[0161] The second point set determination module 1404 is configured to determine a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset differential formula.

[0162] The isoelectric point determination module 1405 is configured to determine the isoelectric point position of the electrocardiogram signal according to the first Q wave starting point set and the second Q wave starting point set.

[0163] The ST point determination module 1406 is configured to determine the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set.

[0164] The ST offset value determining module 1407 is configured to determine the ST offset value of the electrocardiogram signal according to the isoelectric point position and the ST point position.

[0165] like Figure 15 As shown in FIG. 1 , in one embodiment, it is an internal structure diagram of a computer device. The computer device may be an ST offset value calculation device, or a terminal or server connected to an ST offset value calculation device. Figure 15 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement a method for calculating an ST offset value. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement a method for calculating an ST offset value. The network interface is used to communicate with an external device. Those skilled in the art will understand that Figure 15 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0166] In one embodiment, the ST offset value calculation method provided in the present application can be implemented in the form of a computer program. The computer program can be used in Figure 15The computer device shown in FIG. The computer device's memory may store various program templates that comprise the ST offset value calculation apparatus, such as an ECG signal acquisition module 1401, an R-wave site extraction module 1402, a first point set determination module 1403, a second point set determination module 1404, an isoelectric point determination module 1405, an ST point determination module 1406, and an ST offset value determination module 1407.

[0167] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps: acquiring an electrocardiogram (ECG) signal, wherein the ECG signal comprises an ST segment located between a QRS complex and a T wave; extracting an R-wave site of the ECG signal; determining a first Q-wave starting point set and a first S-wave ending point set in the ECG signal based on the R-wave site of the ECG signal and a preset square formula; determining a second Q-wave starting point set and a second S-wave ending point set in the ECG signal based on the R-wave site of the ECG signal and a preset differential formula; determining an isoelectric point position of the ECG signal based on the first Q-wave starting point set and the second Q-wave starting point set; determining an ST-point position of the ECG signal based on the first S-wave ending point set and the second S-wave ending point set; and determining an ST-offset value of the ECG signal based on the isoelectric point position and the ST-point position.

[0168] In one embodiment, the method of determining the first Q wave starting point set and the first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula includes: square amplifying the electrocardiogram signal by a preset square formula to obtain a square amplified signal corresponding to the electrocardiogram signal; and determining the first Q wave starting point set and the first S wave ending point set in the electrocardiogram signal from the square amplified signal based on the R wave position.

[0169] In one embodiment, before extracting the R-wave site of the electrocardiogram signal, the steps include: determining the signal-to-noise ratio of the electrocardiogram signal; if the signal-to-noise ratio is less than a signal-to-noise ratio threshold, re-executing the step of acquiring the electrocardiogram signal; if the signal-to-noise ratio is not less than the signal-to-noise ratio threshold, executing the step of extracting the R-wave site of the electrocardiogram signal.

[0170] In one embodiment, the ST offset value calculation method is applied to an ST offset value calculation circuit, which includes a notch filter module and a bandpass filter module; before extracting the R wave site of the electrocardiogram signal, it also includes: filtering the electrocardiogram signal through the notch filter module to obtain a first filtered signal; filtering the first filtered signal through the bandpass filter module to obtain a filtered electrocardiogram signal.

[0171] In one embodiment, after determining the ST offset value of the electrocardiographic signal based on the isoelectric point position and the ST point position, the method further includes: displaying an ST value display area, wherein the ST value display area includes a concentric ring display diagram; the concentric ring display diagram includes multiple concentric rings for representing ST offset values of different cascades; determining a ratio of the ST offset value to the preset display threshold value corresponding to the concentric ring display diagram; the preset display threshold value is used to indicate the maximum value of the ST offset value that can be displayed by the concentric ring display diagram; and displaying a first annular sector area representing the ST offset value on the concentric ring corresponding to the ST offset value based on the ratio.

[0172] In one embodiment, after displaying an annular sector-shaped area representing the ST offset value in concentric rings corresponding to the ST offset value according to the ratio in a preset display order, the method further includes: obtaining a preset isoelectric point position preset by the user; determining the isoelectric point position offset value of the electrocardiogram signal according to the isoelectric point position and the preset isoelectric point position; the isoelectric point position offset value is used to indicate the difference between the isoelectric point position and the preset isoelectric point position; determining the ratio of the isoelectric point position offset value to the preset display threshold according to the preset display threshold; based on the first annular sector-shaped area, displaying a second annular sector-shaped area representing the isoelectric point position offset value in the concentric rings corresponding to the ST offset value according to the ratio of the isoelectric point position offset value to the preset display threshold.

[0173] A computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following steps: acquiring an electrocardiogram (ECG) signal, the ECG signal including an ST segment between a QRS complex and a T wave; extracting an R-wave site of the ECG signal; determining a first Q-wave starting point set and a first S-wave ending point set in the ECG signal based on the R-wave site of the ECG signal and a preset square formula; determining a second Q-wave starting point set and a second S-wave ending point set in the ECG signal based on the R-wave site of the ECG signal and a preset differential formula; determining an isoelectric point position of the ECG signal based on the first Q-wave starting point set and the second Q-wave starting point set; determining an ST-point position of the ECG signal based on the first S-wave ending point set and the second S-wave ending point set; and determining an ST-offset value of the ECG signal based on the isoelectric point position and the ST-point position.

[0174] In one embodiment, the method of determining the first Q wave starting point set and the first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula includes: square amplifying the electrocardiogram signal by a preset square formula to obtain a square amplified signal corresponding to the electrocardiogram signal; and determining the first Q wave starting point set and the first S wave ending point set in the electrocardiogram signal from the square amplified signal based on the R wave position.

[0175] In one embodiment, before extracting the R-wave site of the electrocardiogram signal, the steps include: determining the signal-to-noise ratio of the electrocardiogram signal; if the signal-to-noise ratio is less than a signal-to-noise ratio threshold, re-executing the step of acquiring the electrocardiogram signal; if the signal-to-noise ratio is not less than the signal-to-noise ratio threshold, executing the step of extracting the R-wave site of the electrocardiogram signal.

[0176] In one embodiment, the ST offset value calculation method is applied to an ST offset value calculation circuit, which includes a notch filter module and a bandpass filter module; before extracting the R wave site of the electrocardiogram signal, it also includes: filtering the electrocardiogram signal through the notch filter module to obtain a first filtered signal; filtering the first filtered signal through the bandpass filter module to obtain a filtered electrocardiogram signal.

[0177] In one embodiment, after determining the ST offset value of the electrocardiographic signal based on the isoelectric point position and the ST point position, the method further includes: displaying an ST value display area, wherein the ST value display area includes a concentric ring display diagram; the concentric ring display diagram includes multiple concentric rings for representing ST offset values of different cascades; determining a ratio of the ST offset value to the preset display threshold value corresponding to the concentric ring display diagram; the preset display threshold value is used to indicate the maximum value of the ST offset value that can be displayed by the concentric ring display diagram; and displaying a first annular sector area representing the ST offset value on the concentric ring corresponding to the ST offset value based on the ratio.

[0178] In one embodiment, after displaying an annular sector-shaped area representing the ST offset value in concentric rings corresponding to the ST offset value according to the ratio in a preset display order, the method further includes: obtaining a preset isoelectric point position preset by the user; determining the isoelectric point position offset value of the electrocardiogram signal according to the isoelectric point position and the preset isoelectric point position; the isoelectric point position offset value is used to indicate the difference between the isoelectric point position and the preset isoelectric point position; determining the ratio of the isoelectric point position offset value to the preset display threshold according to the preset display threshold; based on the first annular sector-shaped area, displaying a second annular sector-shaped area representing the isoelectric point position offset value in the concentric rings corresponding to the ST offset value according to the ratio of the isoelectric point position offset value to the preset display threshold.

[0179] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0180] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for calculating an ST offset value, characterized in that: The method comprises: Acquiring an electrocardiogram signal, wherein the electrocardiogram signal includes an ST segment between a QRS complex and a T wave; Extracting the R wave position of the electrocardiogram signal; Determining a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula; Determining a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset differential formula; determining the isoelectric point position of the electrocardiogram signal according to the first Q wave starting point set and the second Q wave starting point set; determining the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set; determining an ST shift value of the electrocardiogram signal according to the isoelectric point position and the ST point position; Wherein, determining the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set includes: determining a first mean of the first set of S-wave termination points, and determining a second mean of the second set of S-wave termination points; Determining a first difference between a last first S wave termination point in the first S wave termination point set and a first first S wave termination point, and determining a second difference between a last second S wave termination point in the second S wave termination point set and a first second S wave termination point; determining a first valid interval based on the first difference and the first mean, and determining a second valid interval based on the second difference and the second mean; Determining a first valid S-wave termination point set based on the first valid interval and the first S-wave termination point set, and determining a second valid S-wave termination point set based on the second valid interval and the second S-wave termination point set; determining a difference between each first valid S-wave termination point in the first valid S-wave termination point set and each second valid S-wave termination point in the second valid S-wave termination point set, and determining a target S-wave termination point based on the first valid S-wave termination point and the second valid S-wave termination point corresponding to the minimum difference; The ST shift value of the electrocardiogram signal is determined according to the target S wave termination point.

2. The method according to claim 1, characterized in that The determining of a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula includes: Amplifying the electrocardiogram signal by square using a preset square formula to obtain a square amplified signal corresponding to the electrocardiogram signal; Based on the R wave position, a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal are determined from the square amplified signal.

3. The method according to claim 1, characterized in that The determining of a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset differential formula includes: Processing the electrocardiogram signal using a preset differential formula to obtain a differential signal corresponding to the electrocardiogram signal; Based on the R wave position, a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal are determined from the differential signal.

4. The method according to claim 1, wherein Before extracting the R wave site of the electrocardiogram signal, the method includes: determining a signal-to-noise ratio of the electrocardiogram signal; If the signal-to-noise ratio is less than the signal-to-noise ratio threshold, re-performing the step of acquiring the electrocardiogram signal; If the signal-to-noise ratio is not less than the signal-to-noise ratio threshold, the step of extracting the R wave position of the electrocardiogram signal is performed.

5. The method according to claim 1, wherein The ST offset value calculation method is applied to the ST offset value calculation circuit, which includes a notch filter module and a bandpass filter module; Before extracting the R wave site of the electrocardiogram signal, the method further includes: Performing filtering on the electrocardiogram signal by the notch filter module to obtain a first filtered signal; The first filtered signal is filtered by the bandpass filtering module to obtain a filtered electrocardiogram signal.

6. The method according to claim 1, characterized in that After determining the ST offset value of the electrocardiogram signal according to the isoelectric point position and the ST point position, the method further includes: Displaying an ST offset value display area, wherein the ST offset value display area includes a concentric ring display diagram; the concentric ring display diagram includes a plurality of concentric rings for representing ST offset values of different cascades; determining a ratio of the ST offset value to the preset display threshold value corresponding to the concentric ring display diagram, wherein the preset display threshold value is used to indicate a maximum value of the ST offset value that can be displayed by the concentric ring display diagram; Based on the ratio, a first annular sector region representing the ST offset value is displayed on a concentric ring corresponding to the ST offset value.

7. The method according to claim 6, characterized in that After displaying the annular sector-shaped area representing the ST offset value in concentric rings corresponding to the ST offset value in a preset display order according to the ratio, the method further includes: Get the preset equipotential point position preset by the user; Determining an isoelectric point position offset value of the electrocardiogram signal according to the isoelectric point position and the preset isoelectric point position; the isoelectric point position offset value is used to indicate the difference between the isoelectric point position and the preset isoelectric point position; According to the preset display threshold, determining a ratio of the equipotential point position offset value to the preset display threshold; Based on the first annular sector area, a second annular sector area representing the isoelectric point position offset value is displayed in a concentric ring corresponding to the ST offset value according to the ratio of the isoelectric point position offset value to the preset display threshold.

8. An ST offset value calculation device, characterized in that: The device comprises: An ECG signal acquisition module, configured to acquire an ECG signal, wherein the ECG signal includes an ST segment between a QRS complex and a T wave; An R wave site extraction module, used to extract the R wave site of the electrocardiogram signal; a first point set determination module, configured to determine a first Q wave starting point set and a first S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset square formula; a second point set determination module, configured to determine a second Q wave starting point set and a second S wave ending point set in the electrocardiogram signal based on the R wave position of the electrocardiogram signal and a preset differential formula; an isoelectric point determination module, configured to determine the isoelectric point position of the electrocardiogram signal according to the first Q wave starting point set and the second Q wave starting point set; an ST point determination module, configured to determine the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set; an ST offset value determining module, configured to determine the ST offset value of the electrocardiogram signal according to the isoelectric point position and the ST point position; Wherein, determining the ST point position of the electrocardiogram signal according to the first S wave termination point set and the second S wave termination point set includes: determining a first mean of the first set of S-wave termination points, and determining a second mean of the second set of S-wave termination points; Determining a first difference between a last first S wave termination point in the first S wave termination point set and a first first S wave termination point, and determining a second difference between a last second S wave termination point in the second S wave termination point set and a first second S wave termination point; determining a first valid interval based on the first difference and the first mean, and determining a second valid interval based on the second difference and the second mean; Determining a first valid S-wave termination point set based on the first valid interval and the first S-wave termination point set, and determining a second valid S-wave termination point set based on the second valid interval and the second S-wave termination point set; determining a difference between each first valid S-wave termination point in the first valid S-wave termination point set and each second valid S-wave termination point in the second valid S-wave termination point set, and determining a target S-wave termination point based on the first valid S-wave termination point and the second valid S-wave termination point corresponding to the minimum difference; The ST shift value of the electrocardiogram signal is determined according to the target S wave termination point.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Electrocardiosignal ST section automatic judging method and device based on artificial intelligent technology

    CN109620214A

  • System and a method for spatial estimation and visualization of multi-lead electrocardiographic st deviations

    US20110184692A1

  • KR1016518750000B1