Introduction

With economic development, the improvement of people’s living standards, and the aging of society, the prevalence and mortality rate of coronary heart disease are on the rise, and currently cardiovascular disease is the number one cause of death among residents, seriously threatening their health [1]. The atherosclerotic process can be delayed or even reversed by improving lifestyle in the early stages of coronary artery disease (CHD). When acute myocardial infarction occurs, the occurrence of serious complications can be significantly reduced by early detection and diagnosis and early treatment to shorten the ischemia-re-perfusion time. The current auxiliary examinations for the diagnosis of CHD consist of electrocardiograms (ECG), coronary CT angiography (CTA), non-invasive examinations such as myocardial perfusion single photon emission computed tomography (MPI), and coronary angiography (CAG) [2].

ECG is a commonly used noninvasive diagnostic tool for cardiovascular diseases3, which is inexpensive, easy to perform, and free of radiographic burden, but the sensitivity and specificity of conventional 12-lead ECG are low [3]. The use of exercise electrocardiograms (Ex ECG), the continuous enrichment of new diagnostic variables, and the increase in the number of leads have improved the diagnostic efficacy of ECG for myocardial ischemia. Findings from the randomized controlled trials found that adding either exercise ECG or resting ECG to traditional cardiovascular disease risk factors (such as age, gender, current smoking, diabetes, total cholesterol levels, and HDL cholesterol levels) increased screening rates for asymptomatic cardiovascular disease in adults [4]. For Ex ECG, positive result is associated with an increased risk of adverse cardiac events, even if the stress echocardiogram is negative [5]. ECG-based machine learning models can potentially identify people with a high risk of undiagnosed and clinically significant structural heart disease while outperforming single disease models and improving practical utility through higher positive predictive values. This approach could facilitate targeted screening with echocardiography to improve the underdiagnosis of structural heart disease [6]. Heart rate variability (HRV), the change in the interval between consecutive heartbeats, is largely dependent on the external regulation of heart rate. HRV analysis is the ability to assess the overall health of the heart and the status of the autonomic nervous system (ANS), which is responsible for regulating cardiac activity. One study found that HRV analysis can monitor the risk of sudden cardiac death in post-infarction and diabetic patients [7], and the further improved HRnV analysis has good clinical application in predicting the risk of 30-day adverse major adverse cardiovascular events (MACEs) in patients with emergency chest pain [8].

There has been a great deal of enthusiasm for the study of ECG re-polarization parameters, and much deeper digging has been done on the basis of the ST criteria. One Ex ECG study performed on firefighters found that an ST/HR index \(\le\) 1.6 lV/bpm and an ST/HR slope \(\le\) 2.4 lV/bpm were related to an increased risk of ischemic heart disease (IHD) in three individual leads. Besides, the ST/HR loop area below the 5th percentile in non-IHD recipients suggests a risk of IHD in leads V4, V5, aVF, II, and aVR. In contrast, ST depression \(\le\) 0.1 mV was only associated with a risk of IHD in lead V4. Use of more complex variables in ST/HR analysis improves diagnosis and prognosis in some asymptomatic populations [9]. The diagnostic accuracy of ST segment/heart rate hysteresis in patients with CHD combined with hypertensive left ventricular hypertrophy is much better than that of ST segment depression criteria and heart rate recovery index [10]. The V index has been used as an ECG marker to quantify the spatial heterogeneity of ventricular repolarization. In addition to conventional ECG criteria, the use of V index increased the diagnostic accuracy of non-ST-segment elevation myocardial infarction (non-STEMI) diagnosis from 66% to 73% and the sensitivity of the ECG for acute myocardial infarction (AMI) from 41% to 86%, while the V index was also an independent predictor of MACEs during the 24-months follow-up of non-STEMI patients [11]. Sixty-seven leads high-resolution body surface potential mapping (HR-BSPM) has high spatial, temporal and amplitude resolution by recording and analyzing the complete distribution of action potentials on the thoracic surface, allowing the detection of ischemic changes in the ECG signal that are not observed at standard electrode positions. The sensitivity/specificity of the amplitude parameter \(\delta\)ST60 and the \(\delta\)T parameter, which show changes in wave form during exercise, in predicting ischemic cardiomyopathy were 70/69 and 59/62%, respectively. In contrast, the sensitivity/specificity of the standard 12-lead ECG system were 63/62 and 59/56%, respectively. It was also found that depolarization phase parameters describing only QRS morphological changes had diagnostic value and were much less accurate than the numerous repolarization amplitude-time parameters [12]. In the 1990s, people began to quantify exercise-induced changes in the depolarized phase QRS complex of the ECG, and Campen et al. [13] proposed the concept of the Athens QRS score, where the Q, R, and S wave amplitudes after exercise minus the pre-exercise level are noted as \(\delta\)Q, \(\delta\)R, and \(\delta\)S.The formula for the Athens QRS fraction (mm) is: (\(\delta\)R - \(\delta\)Q - \(\delta\)S)AVF + (\(\delta\)R - \(\delta\)Q - \(\delta\)S)V5. The Athens QRS score decreases as the number of obstructed coronary arteries increases, with negative (less than 0) scores consistently associated with CHD. The sensitivity and specificity of the Athens QRS score of 5 mm (the threshold value) for predicting CHD were (75%-86%, 73%-79%) higher than those of the Q wave (75%, 50%), R wave (65%, 55%), S wave (70%, 10%), and ST segment depression (62%, 70%). The high-frequency band of 150-250 Hz in the ventricular depolarizing QRS complex, known as the high-frequency QRS (HFQRS), is able to quantify the subtle changes in the propagation of depolarizing wave fronts as they pass through regions of the ischemic myocardium. Ringborn et al. [14] showed that the decrease in HFQRS amplitude assessed by root mean square RMS during coronary balloon dilation was more responsive to acute myocardial ischemia than ventricular repolarization ST elevation. Schaerli et al. [15] found that the sensitivity of myocardial ischemia assessed by MPI and CAG was increased from 43% to 63% and the specificity was increased from 87% to 97% in the cycling exercise stress test using a combination of ST-segment deviation and HFQRS than in the analysis of myocardial ischemia by ST deviation alone. HFQRS was also an independent predictor of the occurrence of major adverse cardiac events (MACEs) during the 2-year follow-up. Balfour et al. compared the difference in diagnostic and prognostic accuracy and net reclassification between HFQRS analysis and standard ST-segment depression in identifying any and severe (\(\ge\)10% left ventricular) myocardial ischemia and found that HFQRS detected 84.6% of patients with MPI \(\ge\) 10% left ventricular ischemia, whereas ST-segment depression was only detected in 61.5%. The combined strategy of ST depression and HFQRS analysis identified almost all patients with severe ischemia (92.3%) and greatly improved the sensitivity of exercise stress tests for myocardial ischemia [16].

Over the past two decades, researchers have developed numerous prediction models that mathematically combine multiple predictors to estimate the risk of developing cardiovascular disease (CVD). Health policymakers increasingly advocate for some prediction models and include them in clinical guidelines for therapeutic management. In the United Kingdom, electronic health records have been enhanced to incorporate the QRISK2 algorithm, which is used to calculate the risk of developing cardiovascular disease over a 10-year period [17,18,19]. Artificial intelligence (AI) has transformed key aspects of human life. Machine learning (ML), which is a subset of AI wherein machines autonomously acquire information by extracting patterns from large databases [20], has been increasingly used within the medical community [21, 22], specifically within the domain of cardiovascular diseases [23, 24]. It remains unclear whether AI can provide meaningful, generalizable improvements in predictive accuracy beyond the clinical risk factors for particular diseases. Whether contemporary machine learning methods can facilitate risk prediction by including a larger number of variables and identifying complex relationships between predictors and outcomes [25,26,27]. Cikes et al. [28] performed phenotypic grouping of heart failure (HF) cohorts using complex machine learning algorithms for echocardiographic data and clinical parameters, where two phenotypes included a higher proportion of known clinical features predicting CRT response and were associated with significantly better treatment outcomes with CRT-D. Furthermore, unsupervised machine learning may help optimize response rates to specific treatments.

The application of artificial intelligence had the potential to enhance the diagnostic capabilities of ECGs in the identification of arrhythmias. Recently, Karwath et al. [29] applied machine learning-based clustering analysis to pooled data from nine double-blind randomized controlled trials of beta-blockers to identify efficacy subgroups of patients with sinus rhythm and atrial fibrillation. In a study constructing a random forest model and comparing the predictive ability of machine learning models with standard cardiovascular risk scores for cardiovascular outcomes during 12-year follow-up in a multi-ethnic asymptomatic population, it was found that the random forest model outperformed established risk scores with higher predictive accuracy, potentially leading to greater insight into subclinical disease markers without the need for a priori causality assumptions [30, 31]. There was a study that enrolled 180,922 patients and 649,931 normal sinus rhythm ECGs to develop an artificial intelligence (AI)-enabled electrocardiograph (ECG) that could identify patients with atrial fibrillation during sinus rhythm [32]. D’Ascenzo’s machine learning risk stratification model for predicting all-cause death, recurrent acute myocardial infarction, and major bleeding after acute coronary syndrome (ACS) by combining datasets showed accurate discriminatory ability, which was feasible and valid for identifying predictors of events after ACS and may help guide clinical decisions [33]. Explainable techniques can be trained using off-the-shelf 12-lead ECG data and applied to convolutional neural networks, which can perform on par with clinical cardiologists [34].

Lately, there have been continuous improvements and advancements in the algorithms used for machine learning diagnostic models. Jiang et al. [35] devised a diagnostic model using machine learning techniques to identify patients with gout who are at risk of developing coronary heart disease. The algorithm relies on straightforward clinical criteria for screening purposes. This strategy was developed to mitigate the possibility of both underdiagnosis and excessive testing. The learning classifier utilizes a combinatorial sampling strategy to tackle the issue of imbalance in the training dataset. A total of eight machine learning models were employed, namely logistic regression, decision trees, integrated learning models such as Random Forest, XGBoost, LightGBM, GBDT, Support Vector Machines (SVMs), and neural networks. The conclusive findings indicate that stepwise logistic regression and SVM outperformed other models in terms of AUC values, whereas Random Forest and XGBoost models exhibited superior performance in terms of recall and accuracy.

Nabrdalik et al. [36] created a machine learning model to forecast cardiovascular (CV) incidents in individuals with diabetes. The incidence of new cardiovascular events after discharge was recorded over the follow-up period, which extended for a duration of 5 years and 9 months. A novel machine learning approach was suggested, utilizing neighbourhood component analysis to develop discriminative predictors. This was followed by a hybrid sampling/boosting classification algorithm, multiple logistic regression (MLR), or unsupervised hierarchical clustering. Among a cohort of 1735 individuals diagnosed with diabetes, 53% of whom were female, a total of 150 patients (8.65% of the cohort) experienced a new cardiovascular event during the follow-up period. The twelve patient parameters with the highest discriminatory power are coronary artery disease, heart failure, peripheral artery disease, stroke, diabetic foot disease, chronic kidney disease, eosinophil count, serum potassium level, and treatment with clopidogrel, heparin, proton pump inhibitor, and loop diuretic. The use of these variables led to an area under the receiver operating characteristic curve (AUC) ranging from 0.62 (95% confidence interval [CI] 0.56-0.68, \(P < 0.01\)) to 0.72 (95% CI 0.66-0.77, \(P < 0.01\)) across five nonoverlapping test folds. The MLR accurately identified 74.00% of high-risk patients and 62.40% of low-risk patients, resulting in an overall correct classification rate of 63.40% for all patients. The MLR algorithm has an AUC of 0.72 (95% CI 0.66-0.77), indicating its ability to identify patients at high risk of developing new cardiovascular events. This algorithm uses a small number of easily interpretable and obtainable parameters to identify these patients with diabetes.

A well-validated disease risk prediction model is important to carry out practical clinical applications. There is a lack of machine learning models for HFQRS analysis in exercise tests to predict angiographic coronary artery disease. 140 inpatients admitted with chest pain for non-emergency coronary angiography between October 2021 and April 2022 in the First Affiliated Hospital of Bengbu Medical University and 59 healthy volunteers recruited were included in this study. Six machine learning models for predicting CHD by HFQRS analysis in age, gender, hypertension, diabetes, and exercise tests were constructed, using coronary angiography as the gold standard. We constructed and validated column line tables for the risk of CHD and further interpreted the model using the SHAP force plot, while DCA curves suggested increased clinical decision benefit from HFQRS analysis. This study aims to improve the sensitivity and specificity of ECG detection of myocardial ischemia by HFQRS, reduce medical costs, and reduce the implementation of radioactive, invasive operations. More importantly, it can detect myocardial ischemia early, shorten the ischemia-reperfusion time in patients with acute myocardial infarction, and save the dying myocardium.

Materials and methods

Data collection

This was a prospective single-center experimental study that included 156 inpatients with chest pain admitted to the First Affiliated Hospital of Bengbu Medical University for non-emergency coronary angiography from October 2021 to April 2022, and HF QRS exercise testing was performed 1.5±1 day before coronary angiography, of which 16 patients were excluded without coronary angiography. The CHD group (N = 104) was confirmed by the gold standard of coronary angiography, and 36 inpatients with diameter stenosis (DS) %<50% and 59 healthy volunteers recruited formed the non-CHD group (N = 95). We collected basic information about the study participants, such as height, weight, hypertension, diabetes, history of cerebrovascular disease, and HF QRS exercise test parameters, including max heart rate percentage (MHRpercentage), QRS duration, max power, post-peak recovery heart rate (PPRHR), number of ischemic leads, and HFQRS conclusions. We also collected the clinical laboratory results of inpatients, which were white blood cell count (WBC), neutrophil percentage (N), red blood cell count (RBC), hemoglobin content (Hb), platelet count (P), aspartate aminotransferase (AST), alanine aminotransferase (ALT), uric acid (UA), creatinine (Cr), potassium ion, C-reactive protein (CRP), creatine kinase (CK), creatine kinase myocardial band (CKMB), recombinant cardiac troponin I (cTnI), N-terminal brain natriuretic peptide pro (NT proBNP), DD dimers (DD), and cardiac ultrasound parameters including end-diastolic volume (EDV), end-systolic volume (ESV), left ventricular ejection fraction (LVEF), cardiac output (CO), and systolic volume (SV).

Exclusion criteria for researchers: acute myocardial infarction within 48 hours, myocardial infarction combined with ventricular wall tumor, severe heart valve disease, cardiomyopathy, congenital heart disease, uncontrolled unstable angina pectoris, symptomatic heart failure, uncontrolled arrhythmia, hemodynamic disorders, acute myocarditis, pericarditis, infective endocarditis, iodine or iodine contrast allergy, pulmonary embolism, non-carcinogenic disease that may be caused or aggravated by exercise, mental or physical impairment that prevents exercise testing, pregnancy or suspected pregnancy, concurrent or short-term presence of severe hepatic or renal insufficiency, tumors, hematologic disorders, immunologic disorders, acute infectious diseases, and individuals who refuse exercise testing.

Coronary angiography

Coronary angiography (CAG) was performed by a qualified cardiologist using the Judkins method, and the results were independently reviewed by two skilled cardiologists without knowledge of the patient’s clinical information or HF exercise test results.The CHD is defined as a percentage of diameter stenosis (DS%)\(\ge\)50% in the LAD, the circumflex, or the right coronary artery with a right-dominant, left-dominant, or co-dominant circulation. Left main disease, however, has also been defined as DS%\(\ge\)50%.

Cycling exercise ECG

All subjects underwent treadmill exercise stress ECG according to the Bruce or modified Bruce protocol, with resting heart rate, blood pressure, and 12-lead resting ECG recorded prior to exercise. A standardized, stepwise, and symptom-limited upright cycling exercise trial was performed. Beta-blockers and anti-anginal drugs were suspended for at least 48 hours and nitrates for at least 24 hours prior to the trial. Cycling exercise ECGs were reviewed by one of two experienced readers who were unaware of all other data, and some ambiguous studies were resolved by consensus. Immediate termination of the test if (a) other evidence of myocardial ischemia is present despite an increased exercise load; (b) a decrease in systolic blood pressure>10 mmHg from baseline despite an increased exercise load; (c) moderate to severe angina; (d) increased dyskinesia; (e) vertigo or near syncope; (f) poor perfusion, such as cyanosis or pallor (g) testing ECG or systolic blood pressure encounters technical difficulties; (h) the subject requests to stop the test; (i) persistent ventricular tachycardia; (j) or ST-segment elevation >1 mm in leads without diagnostic Q waves (except V1 or aVR). Exercise load was defined as the total metabolic equivalent achieved (METS).

HF-QRS analysis

HFQRS analysis, performed using a designated software (HyperQ, BSP Ltd., Tel Aviv, Israel), has been previously described in detail [16]. In brief, a high-resolution 12-lead ECG was continuously recorded throughout the study. Beat averaging was applied to each of the leads until the level of noise was \(\ge\) 1 \(\mu\)V to obtain a high signal-to-noise ratio. Noisy and ectopic beats were excluded, and a signal-averaged QRS was calculated.

HFQRS is a signal in the 150 to 250 Hz band obtained by digitally filtering the average QRS complex with a finite impulse response filter pair. The signal intensity of HFQRS is expressed as the root mean square (RMS). The RMS of the resultant HFQRS signal was derived in real-time, graphed over time in all 12 leads, and analyzed throughout the study. Ischemic HFQRS means a 50% relative reduction between the maximum and minimum values or \(\ge\) 1\(\mu\)V absolute reduction in individual leads with adequate signal quality. Positive HFQRS is HFQRS ischemia in \(\ge\) 3 leads; otherwise, it is negative HFQRS.

Statistical analysis

Categorical variables are reported as percentage counts, and continuous variables are reported as the mean (SD). Categorical variables were compared using the Chi-square test for differences in baseline characteristics and HFQRS conclusions between the coronary and non-coronary groups, and t-tests were used for continuous variables if they passed the Chi-square; otherwise, MannWhitney-U tests were used. In univariate analysis, variables with a p-value < 0.05 were introduced as independent predictor variables in multivariate logistic regression. Age, Gender, Hypertension, Diabetes, and HF QRS Conclusions were screened to construct the machine learning (ML) models of XGBoost Classifier, Logistic Regression, LightGBM Classifier, RandomForest Classifier, Artificial Neural Network (ANN), and Support Vector Machine (SVM), respectively. 70% of the data is used to train the ML model, while the remaining 30% is used to test the ML model. We analyzed and compared the AUC (95% CI), accuracy, sensitivity, specificity, positive predictive value, and F1 score of the training and validation sets by 10-fold cross-validation and found that Logistics Regression performed the best. On this basis, we estimated the strength of the association between CHD risk and predictors by OR and 95% CI. Use the “Buckwald: Wald" method to select the significant variables and use them to construct a line chart. The total scores of the column line graphs were categorized by quartiles to verify the association of total scores with CHD risk. All statistical analyses were done using SPSS version 25.0, R version 3.6.3, and Python version 3.7.

Results

Clinical and HFQRS characteristics

The study enrolled 156 inpatients for non-emergency coronary angiography admitted to the First Affiliated Hospital of Bengbu Medical University from October 2021 to April 2022, of whom 16 were ruled out without coronary angiography. The CHD group (N = 104) was defined by coronary angiography criteria, and the non-CHD group (N = 95) consisted of 36 inpatients with DS <50% and 59 recruited healthy volunteers. The CHD group was predominantly male and older, with a higher BMI and a higher prevalence of hypertension and diabetes than the non-CHD group (P<0.001). Clinical laboratory examinations of the two populations, including white blood cell count, neutrophil percentage, platelet count, alanine aminotransferase, potassium ion, C-reactive protein, creatine kinase myocardial band, N-terminal brain natriuretic peptide pro, and DD dimers, showed significant differences (P<0.005). And higher total cholesterol and LDL in the CHD group (P<0.005). Compared with non-CHD groups, patients with CHD had reduced end-systolic volume (ESV) and a lower ejection fraction (EF), while cardiac output (CO) increased instead, which may be related to the compensation of heart rate (P<0.005). Interestingly, the lower percentage of maximum heart rate (MHR) and lower post-peak recovery heart rate (PPRHR) in CHD groups suggested a possible relationship with the reduced heart rate reserve in CHD patients due to heart rate compensation, while the longer QRS duration in CHD patients showed prolonged ventricular depolarization time in CHD patients, which may be associated with myocardial ischemia, bundle branch conduction block, and electrolyte disturbances (P<0.005). In short, HF QRS sensitively detected more ischemic leads in patients with CHD, and HFQRS conclusions indicated significant differences between the two groups, which were highly consistent with coronary angiographic results (P<0.005) (Table 1).

Table 1 Clinical and HFQRS characteristics

Univariate and multivariate regression analysis

We included factors that were significantly different between the CHD and non-CHD groups (P<0.005) in a univariate logistic regression analysis, after which (P<0.005) was further included in a multivariate regression analysis by stepwise backward method, as shown in Table 2. Gender, age, BMI, hypertension, diabetes, and conclusion (P<0.005) were independent predictors of coronary heart disease risk factors.

Table 2 Univariate and multivariate regression analysis

Comparison of various machine learning models

We enrolled the mutually independent factors age, gender, diabetes, hypertension, and conclusions into the six machine learning models of XGBoost Classifier, Logistics Regression, LightGBM Classifier, RandomForest Classifier, Multilayer Perceptron Classifier/Artificial Neural Network (ANN), and Support Vector Machine (SVM) with non-CHD or CHD as binary results. 70% of the total data is used to train ML models, while the remaining 30% is used to test ML models. The model uses 10-fold cross-validation.

Based on the AUC ranking, among all the models, the RandomForest Classifier model is the best performer in the training set, and the Logistic Regression model is the best performer in the validation set (Fig. 1). The forest plot shows the ROC of each model into the prediction; the error line in the plot is the mean and SD of the ROC, which are cross-validated by 10 fold. Forest plots of AUC scores for each model demonstrate that the Logistic Regression model has the best performance (Fig. 2). The AUC, accuracy, sensitivity, specificity, positive predictive value, negative predictive value, F1 score, and Kappa of the training and validation sets of each model were analyzed comprehensively in Table 3, and the RandomForest classifier model is likely to have overfitting phenomena, while the Logistic Regression model is likely to have better stability (Fig. 3). The decision curve analysis (DCA) for the six model validation sets shows that the logistic regression model yields the maximal benefits (Fig. 4a).

Fig. 1
Fig. 1
Full size image

The ROC curves of multiple machine learning models: A On the training set, and B On the validation set

Fig. 2
Fig. 2
Full size image

A forest plot of the AUC values of multiple machine learning models

Fig. 3
Fig. 3
Full size image

The learning curve of the Logistic Regression model

We further investigated the DCA curve for the predictive value of HFQRS analysis for coronary heart disease. Logistic Regression model 1 included only the variables of sex, age, hypertension, and diabetes, while Logistic Regression model 2 added the HFQRS conclusion variables again on top of this, and the area under the curve (AUC) showed that model 2 was better than model 1 for prediction, indicating that HFQRS analysis is feasible for making useful clinical decisions (Fig. 4b).

Fig. 4
Fig. 4
Full size image

The DCA curves of A multiple machine learning models and B two Logistic Regression models

Table 3 Performance of ML models

Development and validation of CHD predictive nomogram

The dichotomous logistic regression was constructed for Age, Gender, Hypertension, Diabetes, and Conclusions for the prediction of coronary heart disease risk. The AUC of the model was 0.88, and the model predicted well. Among the variables included in the model, the coefficient of the variable Age was 0.052 with a p-value of 0.002, which was significant. The coefficient of the variable Gender was 1.377 with a p-value of 0.001, which was significant. The coefficient of Hypertension was 1.879 with a p-value of 0, which was significant. The coefficient of the variable Diabetes was 2.099 with a p-value of 0.01, which was significant. The coefficient of the variable Conclusions was 1.763, P<0.01, which was significant. The results of the logistic regression analysis were used to construct a column line plot to more intuitively predict the risk of CHD (Fig. 5). By drawing a vertical line toward the vertex scale, the vertical line through the observed values of the variables can find the corresponding scores, and the sum of the scores of all observed variables is the predicted risk of developing coronary heart disease in that individual.

Fig. 5
Fig. 5
Full size image

CHD predictive nomogram

To further validate the columnar table, we divided the total score into four subgroups by quartiles. Figure 6 shows that the risk of CHD increased with increasing total score, with participants in quartile four (OR: 126.133, 95% CI: 28.376, 560.662) having a higher risk of CHD than those in the lower quartile (odds OR: 4.716, 95% CI: 1.572, 14.152) (P<0.01).

Fig. 6
Fig. 6
Full size image

Association between the total points of the nomogram and CHD. OR: odds ratio; CI: confidence interval

SHAP

ML has emerged as a promising tool. However, one of the key factors in determining whether physicians will use ML model predictions for clinical decision-making is their ability to understand how ML models arrive at a given conclusion. Interpretability, or explainability, can be defined as the degree to which humans understand the reasons for ML model predictions. The more interpretable the model, the easier it is for physicians to understand why a given prediction was made and thus make the appropriate clinical decision in the best interest of the patient [37].

Shapley additive explanations (SHAP) analysis was based on the concept of coalitional game theory, where each feature variable in a dataset is considered a player, and the model is trained with that dataset to obtain predictions that can be seen as the benefits of many players cooperating on a project. SHAP analysis enabled the contribution of different features in risk prediction models to be investigated, and high-risk thresholds were identified by SHAP analysis, thus providing thresholds for the top predictive continuous clinical variables [38]. SHAP value was the contribution made by each player to fairly distributing the benefits of cooperation. The summary plot presented all the sample points in the graph, as shown in Fig. 7. The color represented the size of the feature value, while the vertical coordinate was the size of the SHAP value. From the graph, we can see the feature of the HFQRS conclusion: the larger the value, the larger the SHAP value; in other words, the larger the HFQRS conclusion, the higher the risk.

We checked the SHAP of two samples; one was correctly predicted, and the other model prediction did not match the actual case. The positive case is a 71-year-old female patient with hypertension and diabetes and a positive HFQRS conclusion from the cycling exercise test. The output value is higher than the base value, and the model predicts a high risk of coronary heart disease, which is actually diagnosed as coronary heart disease by coronary angiography (Fig. 7b). The negative example case is a 64-year-old female patient with hypertension and a positive HFQRS finding from cycling exercise testing, which the model predicts to be at high risk of coronary heart disease; however, the actual patient was excluded from coronary heart disease by coronary angiography (Fig. 7c).

Fig. 7
Fig. 7
Full size image

SHAP analysis. A SHAP summary plot of the top 5 features of the Logistic regression model; B A positive case; C A negative case

Discussion

In this study, our findings illustrate the significant contribution of age, gender, hypertension, diabetes, and exercise load test HF QRS conclusions to CHD prediction. Using these variables, six machine learning models were developed and compared to yield the best performance of the Logistic Regression model, further establishing and validating a column line graph for assessing CHD risk, which we believe has potentially significant implications for CHD at the first level.

Previous studies have used deep learning algorithms to analyze routine 12-lead ECG in outpatients to predict the ability of CHD [39]. A recent study has developed a columnar table of the association of biological and psychological factors with the risk of coronary heart disease [40]. In contrast to earlier studies, our analysis of HFQRS in the exercise load ECG, combined with the admission routine findings, showed that five variables were significantly related to high CHD risk. Among them, there are two immutable factors (gender and age), which are very consistent with the previous studies [41]. In general, hypertension and diabetes are also widely recognized risk factors for coronary heart disease [42]. We report an OR of 5.728 (95% CI: 2.497, 14.019) for the correlation between HF QRS findings and coronary heart disease prediction. False-positive rates for exercise ECG tests used to diagnose CHD are higher in women compared to men. Women are inherently a risk factor for false-positive exercise stress tests [43, 44] HFQRS response to myocardial ischemia was gender-independent, and Rosenmann et al. [45] found that the number of leads of ischemic HFQRS response correlated with the severity of CHD in 113 patients with non-urgent referral coronary angiography and that HFQRS analysis had a sensitivity of 70% and specificity of 80% for the detection of significant coronary artery obstruction (single vessel stenosis \(\ge\)70% or left main stem stenosis \(\ge\)50%) on the angiogram. In this paper, we innovatively constructed multiple machine learning models for HFQRS and clinical characteristics; the SHAP force plot increased the interpretability of the models; and we also developed user-friendly column line tables with promising clinical applications. Although individual modifiable CHD risk factors contribute only modestly to prognostic performance, our models indicate that eliminating or controlling these individual factors would lead to substantial reductions in total population CHD events [46].

Limitations and application prospects

Nevertheless, there are three important considerations that must be acknowledged. The exercise stress test is specifically restricted to pregnant women, those with motor limitations, and patients who have experienced acute myocardial infarction or other disorders within the past 48 hours. It is noteworthy that the analysis of high-frequency QRS (HFQRS) in resting electrocardiograms (ECGs) is currently being utilized. However, the analysis of HFQRS in patients with pacemakers is still in the clinical testing phase. Furthermore, there are multiple factors related to clinical characteristics. Despite our consideration of thirty-five variables, our analysis does not encompass all possible factors. Therefore, our findings and conclusions can only be applied to predicting the risk of CHD in the general population. To further validate our findings, future studies should incorporate a broader range of variables. Ultimately, this study was conducted in a single medical facility and focused exclusively on Chinese patients from a specific geographic area, perhaps restricting its applicability to a broader population. Although we have performed a 10-fold cross-validation of our machine learning model, it is still necessary to conduct future prospective multi-center research to independently confirm our findings.

Omer et al. [47] conducted a study on the reaction of HFQRS signals from standard intracardiac electrodes (iHFQRS) to acute myocardial ischemia caused by coronary balloon dilation. They discovered that iHFQRS is a prompt indicator of myocardial ischemia, showing a significant decrease within seconds and responding to ischemic signals from various coronary arteries, including the LAD, LCX, RCA, and even distal vessels that supply less myocardium. These findings demonstrate that iHFQRS outperforms the conventional ST-segment deviation as a diagnostic tool for myocardial ischemia.The iHFQRS demonstrated excellent performance in animal tests, indicating good potential for future research of HFQRS in human implants. Research has demonstrated that monitoring energy levels in iHFQRS utilizing implantable devices, such as conventional intracardiac electrodes, situated in typical positions, can offer an early and dependable diagnosis of acute ischemia episodes.

Conclusion

Our study demonstrated that men and older adults with hypertension, diabetes, and positive HFQRS conclusions on exercise stress tests suggested a higher risk of CHD. We developed a user-friendly column line graph that may be beneficial to the public and policymakers to establish effective CHD risk assessment and primary prevention strategies.