An electrocardiogram (ECG or EKG) may be used to diagnose a cardiac condition, including ST-segment elevation myocardial infarction (STEMI), a form of heart attack. ECGs are produced by recording the heart's electrical activity via two or more electrodes affixed to the skin and arranged at different anatomical locations around the heart. The ECG is output as one or more graphs of voltage over time, the voltage corresponding to the electrical potential difference between two of the electrodes. A pair of electrodes forms a “lead,” and a typical ECG is a 12-lead ECG, each lead measuring the heart's electrical activity from a different angle.
A typical ECG 300, as shown in
An elevated ST segment may be indicative of a number of cardiac conditions including pericarditis disease, early repolarization syndrome, left bundle branch block (LBBB), left ventricular hypertrophy (LVH), and STEMI. STEMI is diagnosed by criteria identifying the ST levels beyond the normal thresholds in at least two contiguous leads in a multi-lead, e.g. 12-lead, ECG set. However, misdiagnosis of STEMI as one of its confounding conditions, or misdiagnosis of a confounding condition as STEMI, may occur, especially when treating patients presenting atypical symptoms. A STEMI confounder is a cardiac condition showing similar ST-elevation as STEMI, making a diagnosis of the actual disease difficult.
The absolute amplitude of an ST segment deviation and/or the extent of the ST segment deviation, as reflected in the number of leads with threshold ST elevation, is commonly correlated with the size and/or severity of the ischemia, i.e. the restriction of blood supply. However, the correlation has been found to be weak in some cases, and the ST segment deviation may be attenuated when opposing segments of the heart show concomitant ischemia. Misinterpretation of ST-elevation originated by STEMI confounders such as pericarditis and early repolarization may cause unnecessary medical treatments and result in extra costs to the patients, responders, and medical centers. Misdiagnosis of actual STEMI as other confounders, on the other hand, may cause delay in treatment of the STEMI patient and put the patient's health at risk with detrimental consequences.
The present disclosure is directed to a method including identifying a segment in ECG data, modeling the segment with a curve, extracting features from the curve, determining a concavity of the segment based on the extracted features and determining a cardiological condition based on the concavity of the segment.
The present disclosure is further directed to a system including a memory configured to store ECG data. The system includes a processor configured to perform operations comprising identifying a segment in the ECG data, modeling the segment with a curve, extracting features from the curve, determining a concavity of the segment based on the extracted features and determining a cardiological condition based on the concavity of the segment.
The exemplary embodiments may be further understood with reference to the following description and the appended drawings, wherein like elements are referred to with the same reference numerals. The exemplary embodiments relate to systems and methods for modeling and visualizing the morphology of the ST segment of an ECG for distinguishing an ECG indicating STEMI from an ECG indicating one of its confounding conditions showing similar ST elevation as STEMI.
The exemplary embodiments will be described with reference to criteria for distinguishing STEMI from its confounders, however, it should be understood that the exemplary embodiments are not limited thereto. For example, other cardiac conditions, or even non-cardiac conditions, may affect an ECG in such a way that modeling the JTpeak interval may provide information that can, when compared to condition-specific criteria, distinguish between the condition and conditions showing similar ECG data. Additionally, segments of the ECG other than the JTpeak interval may be modeled and information derived from the morphology.
The morphology of the ST segment (e.g., concave upward, concave downward, or straight line) is one of the ECG features which, along with other ECG features specific to each disease, may discriminate STEMI from its confounders. For example, concave downward (upward convex) or straight-line ST segments are not typically present in pericarditis or early repolarization. Thus, a lack of upward concavity in the ST segment is a feature that may be used to distinguish between STEMI and these other conditions. Concave upward (or convex downward) is defined herein as a curve having a positive second derivative, while concave downward (or convex upward) is defined herein as a curve having a negative second derivative. Some curves fitted to ECG data may have so much noise that, although the best-fit curve is concave upward, the data is not considered concave upward for the purposes of the exemplary embodiments.
In prior methods, the concavity of the ST segment is determined by modeling a line between the J-point to the apex of the T wave and determining the point in the JTpeak interval with a maximum distance from the line (below or above the line), or determining the sign of the area between the line and the JTpeak interval. However, these methods could be inaccurate in the presence of artifacts. Artifacts are very common in ECG data, and may be caused by, e.g., muscle artifact, baseline wander and powerline noise.
The processor 102 additionally extracts mathematical and geometrical features from the curve fitted to the ECG data. For example, a concavity of the curve is assessed, and it is determined whether the ST segment shape (as best-fit modeled by the processor 102) satisfies a given condition, to be explained in greater detail below. A display 106 is configured to visualize the curve and the related mathematical/geometrical features.
In 205, ECG data is read from each of the ECG leads and a graphical representation, i.e., the ECG, is generated for each of the leads and stored to the memory 104. In the following description, each of the steps 205-230 is performed for each of the ECG leads (e.g. 12 times for a 12-lead ECG). Thus, the morphology of the ECG is assessed for each of the leads.
In 210, a representative beat is generated for the ECG data. The representative beat is representative of one heartbeat cycle, i.e., the progression through the full atrial and ventricular depolarization and repolarization of the heart. An ECG typically gathers data for at least ten seconds, thus, the data may encompass multiple heartbeat cycles. In the exemplary embodiments described herein 10 seconds of data is analyzed, however, a longer interval such as 30 seconds may be used to exclude any potential artifacts and give a cleaner average. The representative beat may be generated by, e.g., averaging the multiple heartbeats, with noisy or abnormal beats being removed.
In 215, the ST segment morphology is identified for the representative beat. The beginning and the end of the JTpeak interval (i.e. the fiducial points) are determined. As discussed previously, the JTpeak interval begins at the J-point and ends at the apex of the T wave, which may be detected in the data using known methods.
In 220, the identified JTpeak interval is modeled with a curve. In the exemplary embodiments described herein a second-order curve (e.g. a parabola) is fit to the JTpeak interval. However, the JTpeak interval may be modeled with a curve in unlimited ways, e.g., with a higher-order polynomial or with a second-order model other than that described below.
The exemplary quadratic polynomial regression approach described herein fits a section of a parabola to the JTpeak interval identified in the ECG data. The coefficients a, b, and c are the parameters to determine:
ŷ=a+bx+cx
2
The exemplary approach described herein estimates the polynomial coefficients in a fast-analytic way. In a JTpeak interval comprising N samples: (xk,yk), k=1, . . . ,N, the sum of the squared error between the fitted curve (ŷ) and the original signal (y) at each sample k is minimized using least squares estimation:
The above partial derivatives lead to the following system of 3 equations:
The above system of 3 equations and 3 unknowns is solved using Cramer's rule:
These determinants are written in closed form as:
Δ=N·(m2·m4−m3·m3)−m1·(m1·m4−m3·m2)+m2·(m1·m3−m2·m2)
Δa=z1·(m2·m4−m3·m3)−m1·(z2·m4−z3·m2)+m2·(z2·m3−z3·m2)
Δb=N·(z2·m4−z3·m3)−z1·(m1·m4−m3·m2)+m2·(z2·z3−z3·z2)
Δc=N·(m2·z3−m3·z2)−m1·(m1·z3−m3·z2)+z1·(m1·m3−m2·m2)
where:
m1=Σkx, m2=Σkx2, m3=Σkx3, m4=Σkx4z1=Σky, z2=Σkxy, z3=Σkx2y
By replacing the polynomial coefficients, the fitted curve may be written as:
ŷ=(Δa+Δbx+Δcx2)/Δ
An exemplary polynomial curve 406 fitted to the JTpeak interval 402 is shown in
It may be seen in
In 225, the model error, and other features of the polynomial curve 406 are determined. In the exemplary embodiments described herein a model error, noise level, vertex location, and curvature (specifically a maximum curvature) are determined for use in determining the cardiological condition. The noise level, for example, is measured by comparing the fitted curve to the original ECG. However, different features may be defined and used for different applications.
Model error (R2) may be defined as:
where {tilde over (y)} is the smoothed JTpeak interval using a moving average filter.
Noise level (err) may be defined as:
Vertex location (v) may be defined as:
Curvature (κ) may be defined as:
with κm being defined as the maximum curvature during the JTpeak interval.
In 230, the determined features of the best-fit curve are applied to a set of criteria to determine the concavity of the ST segment. Various criteria may be defined for making the determination. In one example, the ST segment is considered upward concave if the following condition is met:
Cond=(c≥thr1) & (R2≥thr2) & (err<thr3) & (v<thr4) & (κmax>thr5)
where thr1, thr2, thr3, thr4, and thr5 are the thresholds defined for performance of the concavity detection. Thus, it may be seen that an upward concavity determination is dependent upon the second order coefficient c, the model error R2, the noise level err, the vertex location v, and the maximum curvature κmax. If any one of the criteria are not met, the ST segment may be considered to be non-concave-upward. A determination of non-concave-upward may not be equivalent to a determination of concave downward. Rather, the determination takes into account not only the curve but the differences between the curve and the actual data, and signifies that the ST segment cannot be said to be definitively concave upward.
As mentioned previously, the method steps 205-230 are performed for each of the ECG leads. Thus, a determination of concave upward or non-concave-upward is made for the ST segment for each of the leads.
In 235, diagnostic criteria are applied in view of the aforementioned features and concavity determinations to determine a condition. In the exemplary embodiments described herein, STEMI is distinguished from pericarditis and early repolarization. However, as mentioned previously, other conditions may be assessed based on other features extracted from the ECG data.
Pericarditis is identified by widespread ST elevation in an upward concave ST segment and PQ-segment depression in some leads. Early repolarization is recognized by ST elevation in upward concave ST segment in some leads with no reciprocal ST depression in other leads, and T-waves or J-point notches and slurs, tall positive T-waves, and low ST/T ratios. As discussed previously, concave upward or straight-line (i.e., non-concave upward) ST segments are typically not present in pericarditis or early repolarization. Thus, a presence of a non-concave-upward curve in any of the e.g. 12 ECG leads may indicate STEMI as opposed to these confounders.
As may be seen in
The exemplary graphs shown in
In 240, the fitted JTpeak interval curve and/or osculating circle and/or extracted features of the curve may be visually presented on the display 106.
The aforementioned visualization is only exemplary, and the aspects of the visualization may be modified by a user. For example, the best-fit curve may be shown, or different features of the curve may be printed.
While the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive; the invention is not limited to the disclosed embodiments. Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measured cannot be used to advantage. A computer program may be stored/distributed on a suitable medium, such as an optical storage medium or a solid-state medium supplied together with or as part of other hardware, but may also be distributed in other forms, such as via the Internet or other wired or wireless telecommunication systems. Any reference signs in the claims should not be construed as limiting the scope.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2021/055531 | 3/5/2021 | WO |
Number | Date | Country | |
---|---|---|---|
62985600 | Mar 2020 | US |