| Literature DB >> 36046427 |
Masato Shimizu1, Makoto Suzuki1, Hiroyuki Fujii1, Shigeki Kimura1, Mitsuhiro Nishizaki2, Tetsuo Sasano3.
Abstract
Background: Qualitative differences in 12-lead electrocardiograms (ECG) at onset have been reported in patients with takotsubo syndrome (TTS) and acute anterior myocardial infarction (Ant-AMI). We aimed to distinguish these diseases by machine learning (ML) approach of microvolt-level quantitative measurements.Entities:
Keywords: Acute anterior myocardial infarction; Electrocardiogram; Machine learning; SHAP method; Takotsubo syndrome
Year: 2022 PMID: 36046427 PMCID: PMC9422059 DOI: 10.1016/j.cvdhj.2022.07.001
Source DB: PubMed Journal: Cardiovasc Digit Health J ISSN: 2666-6936
Figure 1Explanation of measurement on 1 beat of the electrocardiogram (ECG). All the parameters were measured automatically. Left figure shows schema of the measurement, and right figure a real ECG wave and real results. The ST level was measured at 3 points: (1) ST level at the J point (STJ), which was recorded at the end of the QRS complex as measured in μV with respect to the baseline; (2) the middle of the ST level (STmid), which is the ST level at the point of 1/16th of the preceding R-R interval after the J point; and (3) the end of the ST level (STend), which is the ST level at the point of 2/16th of the preceding R-R interval after the J point. The T-wave amplitude was defined as the absolute distance from the apex of the T wave to the baseline. TTS = takotsubo syndrome.
Comparison of qualitative ST elevation/depression and T-wave inversion in takotsubo syndrome and acute anterior myocardial infarction
| All cases (n = 112) | Prediction data (n = 90) | ||||||
|---|---|---|---|---|---|---|---|
| TTS (n = 56) | AMI (n = 56) | TTS (n = 45) | AMI (n = 45) | ||||
| Anterior STEMI | 28 | 31 | .566 | 23 | 26 | ||
| V1 | ST elevation at J point | 3 | 18 | <.001 | <.001 (ST elevation) | 2 | 14 |
| ST depression at J point | 0 | 0 | 0 | 0 | |||
| T-wave inversion | 7 | 9 | .793 | 5 | 7 | ||
| V2 | ST elevation at J point | 27 | 33 | .462 | 22 | 28 | |
| ST depression at J point | 1 | 2 | 0 | 1 | |||
| T-wave inversion | 8 | 5 | .557 | 6 | 4 | ||
| V3 | ST elevation at J point | 28 | 28 | .302 | 24 | 11 | |
| ST depression at J point | 28 | 25 | 0 | 1 | |||
| T-wave inversion | 11 | 10 | 1.000 | 8 | 7 | ||
| V4 | ST elevation at J point | 23 | 17 | .029 | .032 (ST depression) | 18 | 14 |
| ST depression at J point | 2 | 11 | 1 | 7 | |||
| T-wave inversion | 15 | 16 | 1.000 | 11 | 13 | ||
ST elevation/depression was defined as at least 0.1 μV ST deviation at J point, and T-wave inversion as at least -0.1 μV amplitude judged on automated measurement. Diagnosis of ST-elevated acute anterior myocardial infarction was based on fourth universal definition of acute myocardial infarction—briefly, ST elevation at the J-point in 2 contiguous leads with the cut point ≥1 mm in V1–V4 leads, or other than leads V2–V3 where the following cut-points apply: ≥2 mm in men ≥40 years; ≥2.5 mm in men <40 years, or ≥1.5 mm in women regardless of age. Fisher exact test was performed, and as post hoc analysis, data underwent Holm’s multiple comparison. A P < .05 was considered as significant.
Comparison of takotsubo syndrome, acute anterior myocardial infarction, and univariate logistic regression analysis for takotsubo syndrome, on prediction data (n = 90)
| Comparison of TTS and Ant-AMI | Univariate logistic regression for TTS | ||||
|---|---|---|---|---|---|
| TTS (n = 45) | Ant-AMI (n = 45) | OR | 95% CI | ||
| Age (years) | 78 [69, 86] | NA | |||
| Male | 14 (31%) | NA | |||
| HTN | 14 (31%) | 19 (42%) | 0.618 | 0.26-1.47 | .275 |
| HL | 9 (20%) | 29 (64%) | 0.138 | 0.05-0.36 | <.001∗ |
| DM | 2 (4%) | 14 (31%) | 0.103 | 0.02-0.49 | .004∗ |
| CKD | 14 (31%) | 8 (18%) | 2.090 | 0.78-5.63 | .145 |
| BNP (pg/mL) | 274 [67, 482] | 184 [59, 477] | 0.999 | 0.94-1.07 | .982 |
| WBC (/mm3) | 8200 [6700, 11325] | 9200 [7100, 11400] | 1.020 | 0.92-1.13 | .723 |
| CRP (mg/dL) | 1.38 [0.23, 6.58] | 0.23 [0.10, 0.76] | 1.100 | 1.00-1.21 | .053 |
| HR (bpm) | 95 [79, 131] | 84 [71, 94] | 1.030 | 1.01-1.05 | .002∗ |
| P axis (degree) | 57 [38, 73] | 55 [40, 62] | 1.000 | 0.99-1.02 | .472 |
| PR (ms) | 168 [154, 187] | 172 [156, 188] | 0.996 | 0.98-1.01 | .587 |
| QRS axis (degree) | 35 [-19, 74] | 22 [-2, 49] | 1.000 | 1.00-1.01 | .345 |
| QRS width (ms) | 90 [84, 100] | 92 [82, 102] | 0.976 | 0.76-1.25 | .849 |
| QTc (ms) | 429 [410, 449] | 430 [405, 442] | 1.030 | 0.92-1.15 | .611 |
| T axis (degree) | 67 [37, 94] | 69 [20, 106] | 1.000 | 1.00-1.01 | .296 |
| I STJ | 20 [-40, 15] | -15 [-45, 15] | 1.160 | 1.05-1.28 | .003∗ |
| I STmid | 10 [-5, 55] | -10 [-40, 30] | 1.100 | 1.02-1.19 | .015∗ |
| I STend | 30 [-5, 60] | -5 [-35, 50] | 1.040 | 0.99-1.10 | .164 |
| I T | 68 [-36, 156] | 58 [-53, 146] | 1.080 | 0.82-1.42 | .571 |
| II STJ | 20 [-10, 75] | -20 [-55, 30] | 1.120 | 1.04-1.20 | .002∗ |
| II STmid | 25 [0, 85] | 0 [-55, 35] | 1.120 | 1.05-1.20 | .001∗ |
| II STend | 50 [5, 105] | 10 [-40, 65] | 1.080 | 1.02-1.14 | .005∗ |
| II T | 145 [90, 265] | 160 [63, 278] | 1.000 | 0.79-1.27 | .971 |
| III STJ | 5 [-35, 35] | 5 [-60, 60] | 1.030 | 0.97-1.08 | .366 |
| III STmid | 5 [-25, 50] | 0 [-65, 60] | 1.040 | 0.99-1.09 | .155 |
| III STend | 15 [-25, 55] | 25 [-60, 70] | 1.030 | 0.99-1.07 | .154 |
| III T | 100 [-45, 195] | 108 [-93, 203] | 1.040 | 0.95-1.29 | .678 |
| aVR STJ | -20 [-60, 3] | 10 [-15, 40] | 0.830 | 0.74-0.93 | <.001∗ |
| aVR STmid | -30 [-70, -5] | 5 [-25, 35] | 0.831 | 0.75-0.92 | <.001∗ |
| aVR STend | -40 [-75, -15] | 0 [-50, 30] | 0.902 | 0.94-0.97 | .006∗ |
| aVR T | -120 [-185, -65] | -115 [-195, -50] | 0.966 | 0.70-1.33 | .831 |
| aVL STJ | 13 [-15, 46] | -15 [-40, 35] | 1.060 | 0.98-1.15 | .144 |
| aVL STmid | 5 [-15, 30] | -5 [-40, 25] | 1.010 | 0.95-1.08 | .796 |
| aVL STend | 0 [-15, 35] | -5 [-50, 45] | 0.993 | 0.95-1.04 | .784 |
| aVL T | 35 [-78, 78] | -33 [-119, 123] | 1.040 | 0.80-1.36 | .754 |
| aVF STJ | 10 [-20, 55] | -10 [-60, 45] | 1.080 | 1.01-1.15 | .027∗ |
| aVF STmid | 10 [-10, 60] | 0 [-70, 50] | 1.090 | 1.02-1.16 | .011∗ |
| aVF STend | 20 [-5, 75] | 5 [-60, 70] | 1.060 | 1.01-1.12 | .026∗ |
| aVF T | 135 [75, 225] | 125 [-8, 220] | 0.976 | 0.94-1.01 | .155 |
| V1 STJ | 15 [-20, 35] | 70 [20, 130] | 0.846 | 0.78-0.92 | <.001∗ |
| V1 STmid | 30 [-10, 60] | 100 [40, 185] | 0.860 | 0.80-0.93 | <.001∗ |
| V1 STend | 40 [-15, 65] | 120 [30, 220] | 0.917 | 0.87-0.97 | .001∗ |
| V1 T | 50 [-70, 185] | 143 [55, 289] | 0.786 | 0.62-0.99 | .044∗ |
| V2 STJ | 93 [31, 138] | 135 [45, 290] | 0.959 | 0.93-0.99 | .018∗ |
| V2 STmid | 135 [75, 205] | 215 [100, 420] | 0.960 | 0.93-0.99 | .005∗ |
| V2 STend | 185 [80, 280] | 295 [130, 550] | 0.981 | 0.96-1.00 | .031∗ |
| V2 T | 300 [150, 490] | 435 [235, 815] | 0.932 | 0.94-1.03 | .167 |
| V3 STJ | 110 [45, 170] | 65 [-30, 290] | 1.000 | 0.98-1.03 | .777 |
| V3 STmid | 170 [70, 240] | 190 [30, 390] | 0.995 | 0.98-1.02 | .63 |
| V3 STend | 215 [105, 320] | 290 [25, 500] | 0.991 | 0.98-1.01 | .251 |
| V3 T | 330 [80, 540] | 435 [95, 725] | 0.960 | 0.88-1.05 | .363 |
| V4 STJ | 70 [22, 150] | 0 [-55, 140] | 1.020 | 0.99-1.04 | .205 |
| V4 STmid | 105 [40, 185] | 55 [-15, 230] | 1.010 | 0.99-1.03 | .623 |
| V4 STend | 160 [45, 255] | 140 [-10, 295] | 1.000 | 0.98-1.02 | .987 |
| V4 T | 263 [-89, 493] | 205 [-130, 505] | 0.985 | 0.90-1.08 | .739 |
| V5 STJ | 50 [15, 100] | -20 [-60, 45] | 1.050 | 1.01-1.09 | .015∗ |
| V5 STmid | 70 [15, 125] | -5 [-55, 85] | 1.030 | 1.00-1.06 | .073 |
| V5 STend | 75 [0, 155] | -10 [-55, 130] | 1.010 | 0.99-1.03 | .337 |
| V5 T | 135 [-105, 275] | 95 [-155, 260] | 1.010 | 0.89-1.13 | .922 |
| V6 STJ | 25 [-5, 55] | -35 [-65, 10] | 1.150 | 1.06-1.25 | <.001∗ |
| V6 STmid | 25 [-5, 70] | -25 [-60, 5] | 1.110 | 1.04-1.18 | .002∗ |
| V6 STend | 40 [-10, 100] | -25 [-65, 40] | 1.060 | 1.01-1.11 | .010∗ |
| V6 T | 93 [41, 195] | 65 [-135, 233] | 1.060 | 0.88-1.26 | .556 |
Numeric variables are displayed as median [interquartile range: 25%, 75%], and categorical variables are displayed as n (%). STJ, STmid, STend, and T wave are expressed as μV, and are explained in Figure 1. CK and CKMB were maximum value during acute phase, and they were not analyzed by logistic regression. Statistical comparison methods, abbreviations are explained in Table 1 footnote. In logistic regression, BNP were analyzed per 100 pg/mL, and the result of OR and 95% CI were displayed as per 100 values. WBC per 100 counts/mm3, ST levels per 10 μV, and T-wave amplitude per 100 μV. P < .05 was considered significant; significant values are denoted by an asterisk (∗).
Ant-AMI = acute anterior myocardial infarction; BNP = brain natriuretic peptide; bpm = beats per minute; CI = confidence interval; CKD = chronic kidney disease; CRP = C-reactive protein; DM = diabetes mellitus; HL = hyperlipidemia; HR = heart rate; HTN = hypertension; N/A = not applicable; OR = odds ratio; TTS = takotsubo syndrome; WBC = white blood cell.
Diagnostic performance of statistical predictive models
| Prediction data (n = 90) | Test data (n = 22) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ROC curve model | Cutoff value model | ROC curve model | Cutoff value model | |||||||||
| Cutoff | AUROC | Acc | Recall (Sens) | Prec. (PPV) | F1 | AUROC | 95% CI of AUROC | Acc | Recall (Sens) | Prec. (PPV) | F1 | |
| HL | 0.278 | 0.200 | 0.237 | 0.217 | 0.318 | 0.364 | 0.333 | 0.348 | ||||
| DM (n, %) | 0.367 | 0.044 | 0.125 | 0.066 | 0.227 | 0.091 | 0.125 | 0.105 | ||||
| HR (bpm) | ≥109 | 0.665 | 0.678 | 0.422 | 0.864 | 0.567 | 0.554 | 0.30-0.81 | 0.455 | 0.091 | 0.333 | 0.143 |
| I STJ | ≥+5 μV | 0.711 | 0.711 | 0.733 | 0.702 | 0.717 | 0.649 | 0.39-0.91 | 0.591 | 0.545 | 0.600 | 0.571 |
| I STmid | ≥-5 μV | 0.681 | 0.689 | 0.800 | 0.655 | 0.720 | 0.665 | 0.42-0.91 | 0.591 | 0.545 | 0.600 | 0.571 |
| II STJ | ≥-20 μV | 0.672 | 0.644 | 0.800 | 0.610 | 0.692 | 0.674 | 0.58-0.77 | 0.636 | 0.909 | 0.588 | 0.714 |
| II STmid | ≥+10 μV | 0.701 | 0.678 | 0.733 | 0.660 | 0.695 | 0.661 | 0.42-0.90 | 0.545 | 0.636 | 0.538 | 0.583 |
| II STend | ≥-5 μV | 0.667 | 0.644 | 0.867 | 0.600 | 0.709 | 0.624 | 0.38-0.87 | 0.636 | 0.909 | 0.588 | 0.714 |
| aVR STJ | ≤-20 μV | 0.729 | 0.693 | 0.605 | 0.722 | 0.658 | 0.698 | 0.46-0.94 | 0.591 | 0.545 | 0.600 | 0.571 |
| aVR STmid | ≤-10 μV | 0.732 | 0.678 | 0.711 | 0.667 | 0.688 | 0.727 | 0.51-0.95 | 0.636 | 0.636 | 0.636 | 0.636 |
| aVR STend | ≤0 μV | 0.693 | 0.667 | 0.867 | 0.619 | 0.722 | 0.694 | 0.47-0.92 | 0.591 | 0.636 | 0.583 | 0.609 |
| aVF STJ | ≥-40 μV | 0.615 | 0.633 | 0.911 | 0.586 | 0.713 | 0.636 | 0.40-0.88 | 0.545 | 0.909 | 0.526 | 0.667 |
| aVF STmid | ≥-35 μV | 0.635 | 0.656 | 0.956 | 0.597 | 0.735 | 0.579 | 0.33-0.83 | 0.545 | 1.000 | 0.524 | 0.688 |
| aVF STend | ≥-30 μV | 0.614 | 0.633 | 0.911 | 0.586 | 0.713 | 0.463 | 0.20-0.73 | 0.500 | 0.909 | 0.500 | 0.645 |
| V1 STJ | ≤+18 μV | 0.771 | 0.611 | 0.267 | 0.857 | 0.407 | 0.690 | 0.46-0.92 | 0.773 | 0.636 | 0.875 | 0.737 |
| V1 STmid | ≤+120 μV | 0.765 | 0.700 | 0.956 | 0.632 | 0.761 | 0.653 | 0.40-0.90 | 0.645 | 1.000 | 0.524 | 0.688 |
| V1 STend | ≤+85 μV | 0.699 | 0.667 | 0.778 | 0.636 | 0.700 | 0.628 | 0.37-0.89 | 0.682 | 1.000 | 0.611 | 0.759 |
| V1 T | ≤+50 μV | 0.635 | 0.663 | 0.538 | 0.677 | 0.600 | 0.645 | 0.38-0.92 | 0.667 | 0.600 | 0.667 | 0.632 |
| V2 STJ | ≤+130 μV | 0.629 | 0.652 | 0.750 | 0.623 | 0.680 | 0.616 | 0.37-0.87 | 0.636 | 0.818 | 0.600 | 0.692 |
| V2 STmid | ≤+205 μV | 0.658 | 0.656 | 0.756 | 0.630 | 0.687 | 0.665 | 0.56-0.77 | 0.682 | 0.909 | 0.625 | 0.741 |
| V2 STend | ≤+280 μV | 0.635 | 0.633 | 0.756 | 0.607 | 0.673 | 0.661 | 0.42-0.90 | 0.682 | 0.909 | 0.625 | 0.741 |
| V5 STJ | ≥+5 μV | 0.724 | 0.733 | 0.822 | 0.698 | 0.755 | 0.645 | 0.40-0.89 | 0.591 | 0.636 | 0.583 | 0.609 |
| V6 STJ | ≥-5 μV | 0.768 | 0.733 | 0.800 | 0.706 | 0.750 | 0.669 | 0.43-0.91 | 0.682 | 0.818 | 0.643 | 0.720 |
| V6 STmid | ≥-10 μV | 0.749 | 0.733 | 0.822 | 0.698 | 0.755 | 0.674 | 0.43-0.92 | 0.682 | 0.909 | 0.625 | 0.741 |
| V6 STend | ≥-30 μV | 0.714 | 0.700 | 0.933 | 0.636 | 0.757 | 0.636 | 0.39-0.89 | 0.682 | 0.909 | 0.625 | 0.741 |
Initially, a receiver operating characteristic (ROC) curve analysis was performed, area under ROC (AUROC) was measured, and cutoff value was calculated by Youden index. AUROC of hyperlipidemia (HL) and diabetes (DM) were not evaluated because they were bivariate categorical variables. The statistical predictive model consisted of 2 methods, an assessment of whether a parameter of each case had higher/lower value than the cutoff (named as cutoff value model), and propensity score (PS) of each predictor was calculated on the prediction data, and the PS formula for each predictor was constructed (named as ROC curve model), which was applied to the test data and AUROC was measured by ROC curve analysis. Confusion matrix was prepared from the model, and diagnostic performance (accuracy [Acc] / sensitivity [Sens]; named as recall / positive predictive value [PPV]; named as precision [Prec.] / F1 score [harmonic mean of recall and prec.]) was calculated. Abbreviations are explained in Table 2 footnote.
Results of validation data of machine learning predictive models, which were built by PyCaret
| Acc | AUROC | Recall (Sens) | Prec. (PPV) | F1 | |
|---|---|---|---|---|---|
| Light gradient boosting machine | 0.856 | 0.865 | 0.870 | 0.867 | 0.860 |
| Extra trees classifier | 0.832 | 0.881 | 0.830 | 0.863 | 0.836 |
| Ada boost classifier | 0.832 | 0.874 | 0.875 | 0.825 | 0.840 |
| Naive Bayes | 0.821 | 0.874 | 0.810 | 0.867 | 0.822 |
| Gradient boosting classifier | 0.821 | 0.865 | 0.870 | 0.835 | 0.837 |
| Random forest classifier | 0.821 | 0.850 | 0.850 | 0.848 | 0.831 |
| Linear discriminant analysis | 0.786 | 0.844 | 0.805 | 0.808 | 0.788 |
| Decision tree classifier | 0.778 | 0.810 | 0.825 | 0.778 | 0.783 |
| K neighbors classifier | 0.776 | 0.794 | 0.850 | 0.777 | 0.797 |
| Logistic regression | 0.719 | 0.799 | 0.715 | 0.775 | 0.717 |
| Quadratic discriminant analysis | 0.708 | 0.688 | 0.790 | 0.729 | 0.734 |
The diagnostic performance was explained by accuracy (Acc) / sensitivity (Sens); named as recall / positive predictive value (PPV); named as precision (Prec.) / and F1 score (harmonic mean of recall and Prec.). Ten times random cross-validation was performed, and the average of results was displayed.
Figure 2Comparison of ST levels of takotsubo syndrome (TTS) and acute anterior myocardial infarction (Ant-AMI) in prediction data (90 cases). Left figure shows ST level at the J point (STJ), middle figure shows the middle of the ST level (STmid), and right figure shows the end of the ST level (STend). After Mann–Whitney U test, a box-and-whisker plot was drawn in each lead. The box indicates interquartile range and median value, and the whisker corresponds to maximum and minimum value. The red and blue triangles show significant upper and lower values, respectively.
Figure 3Representative 12-lead electrocardiograms. Left figure demonstrates a takotsubo syndrome (TTS) case, in which ST repression is observed in aVR and V1. Right figure displays an ST-elevation acute anterior myocardial infarction (Ant-AMI) case, in which ST elevation is found in aVR and V1–V3. The patient’s coronary arteriography showed occlusion of the left anterior descending branch (segment 6).
Figure 4Interpretation of feature importance by SHapley Additive exPlanation (SHAP) method on 2 representative machine learning models. Left side: Plot of light gradient boosting machine; right side: plot of extra trees classifier. Each point on the summary plot corresponds to a SHAP value for a feature and an instance. Each red and blue point shows a case with takotsubo syndrome and acute anterior myocardial infarction, respectively. On the y-axis, features are sorted based on their importance; color shows the feature value from low (blue) to high (red). The SHAP value is displayed on the x-axis, wherein left side (minus value) shows negative impact and right side (plus value) shows positive impact. Abbreviations as in Figure 1 and Table 2. Brief explanation of SHAP method is demonstrated in Supplemental File 2.