- 1Department of Mathematics, Khalifa University of Science and Technology, Abu Dhabi, United Arab Emirates
- 2Center for Interdisciplinary Digital Sciences (CIDS), Department Information Services and High Performance Computing (ZIH), TUD Dresden University of Technology, Dresden, Germany
- 3Department of Medical Sciences and Health Engineering Innovation Center, Khalifa University of Science and Technology, Abu Dhabi, United Arab Emirates
- 4Health Engineering Innovation Group, Khalifa University of Science and Technology, Abu Dhabi, United Arab Emirates
Introduction: The increasing prevalence of type 2 diabetes mellitus (T2DM) requires improved early detection strategies that integrate demographic, clinical, physiological, and pharmacological data. Electrocardiographic (ECG) biomarkers offer a non-invasive means to assess diabetes-related cardiac risk, particularly in individuals with hypertension (HT) and cardiovascular disease (CVD) comorbidities of diabetes.
Methods: ECG data from 581 subjects were categorized by glycemic status (healthy, prediabetes, T2DM) and comorbidities. Demographic, clinical, and pharmaceutical data were merged with 10 s and 5 min ECG recordings. SMOTE was used to correct class imbalance. Support Vector Machines (SVM) performed best among machine learning classifiers. Classification accuracy, sensitivity, specificity, and AUC were computed using 5-fold cross-validation. Feature importance was assessed through permutation analysis to identify the most discriminative ECG and medication-related predictors.
Results: T2DM patients, particularly those with HT and CVD, exhibited significant prolongation of QTc (10 s), QTd (10 s and 5 min), and PQ intervals, as well as changes in the QRS-Axis, indicating increased arrhythmic risk and electrical remodeling (p < 0.001). Antihypertensive and lipid-lowering medications influenced QRS-Axis and PQ intervals, while antidepressant use was associated with QTd dispersion (p = 0.010). Classification accuracy ranged from 0.64 to 0.88. Five-minute ECGs provided higher accuracy (~0.88) when medication data were included, while 10-s ECGs performed well in treated patients (~0.86–0.88).
Discussion: This study shows that ECG-based, AI-driven screening captures the interaction between comorbidities, medication use, and cardiac electrophysiology. Integrating ECG biomarkers with medication data improved T2DM risk classification, enabling better treatment outcomes based on clinical use of non-invasive methods for risk classification.
1 Introduction
Type 2 diabetes mellitus (T2DM) is a complex and progressive disease characterized by chronic hyperglycemia resulting from insulin resistance, impaired insulin secretion, and increased gluconeogenesis (1). The global burden of T2DM continues to increase despite improved medication and lifestyle intervention opportunities, with 828 million individuals presenting with diabetes worldwide, rising from 7% in 1990 to 14% in 2022. However, the number may be much higher as approximately 59% of people with diabetes over 30 years of age are either not identified in the healthcare systems or untreated, highlighting healthcare access and treatment inadequacies, possibly due to a lack of screening opportunities and early diagnosis based on biomarkers other than fasting glucose or HbA1c. Negative lifestyle changes, urbanization, and aging populations are driving the increase in T2DM, emphasizing the need for public health measures to promote prevention, early diagnosis, and treatment (2–6). Screening approaches also need to consider that T2DM often coexists with hypertension (HT) and cardiovascular disease (CVD), leading to a more complex clinical presentation that compounds morbidity and healthcare costs. Recent advances in understanding the pathophysiology of T2DM have highlighted the significant heterogeneity in metabolic phenotypes, ranging from isolated insulin resistance to severe β-cell dysfunction, which influences the progression of T2DM and the occurrence of comorbidities on an individual level and hence requires individualized reviews and treatment. Numerous studies have shown the connection between T2DM and genetics, environment, and lifestyle factors such as nutrition, exercise, and inactivity (7). Liver, pancreas, and muscle pathology in addition to increased levels of cholesterolcan contribute to the development of T2DM. Characterizing the contribution of individual factors that can affect T2DM and its progression, as well as the occurrence of comorbidities, could make treatment more effective (8). However, significant gaps remain in integrating these approaches for patients with comorbidities, particularly in resource-limited settings. The varying disease course and therapy responses of T2DM are associated with changed metabolic interactions, depending on the presence or absence of comorbidities (9). These variations in metabolic processes and their etiology may help identify patients at risk for T2DM in primary and secondary prevention studies, as well as those who can benefit from personalized interventions.
T2DM has many pathophenotypes and management approaches. Effective treatment often requires the use of angiotensin-converting enzyme (ACE) inhibitors, angiotensin II receptor blockers (ARBs), and thiazide diuretics to manage concomitant diseases such as hypertension and cardiovascular risk in T2DM patients (10). Statins and aspirin are prescribed to T2DM patients to treat dyslipidemia (11). The increased prevalence of hypertension in T2DM patients highlights the need for better monitoring that addresses oxidative stress and inflammation, two major contributors of poor glycemic control (11, 12). Although we have a better understanding of the T2DM and disease progression including comorbidities there are few studies on the classification of T2DM comorbidities. Recent research has shown biomarker alterations with the transitions from normal blood sugar levels to prediabetes and T2DM, especially associated with comorbidities. Key alterations encompass mitochondrial-derived peptide MOTSc, as well as reduced glutathione, glutathione disulfide ratio (GSH/GSSG), interleukin-1beta (IL-1β), and 8-isoprostane (8-iso-PGF2α) (13–15). Oxidative stress and mitochondrial dysfunction contribute to T2DM progression and influence cardiac electrophysiology through ion channel remodeling, autonomic instability, and myocardial energetics (16–18). This can cause QTc prolongation, QTd variability, and QRS-axis deviations of the ECG. These features of the ECG can be used as a non-invasive surrogate measure of systemic metabolic load and inflammation to assess disease progression and cardiovascular risk in T2DM patients.
Control of T2DM requires control of blood pressure and cardiovascular comorbidities to reduce the risk of T2DM progression through appropriate medication use, diet, and exercise (19). Medication use is also indicated for subclinical cardiac pathology including raised blood pressure, and diabetes (20). Multifactorial treatment options need consider obesity, inflammation, insulin resistance, oxidative stress, dyslipidemia, coagulopathy, and endothelial dysfunction as well as comprehensive multifactorial interventions in newly diagnosed T2DM associated with cardiac pathology (21). Metformin, thiazolidinediones, and novel anti-diabetic drugs, such as glucagon-like peptide-1 and sodium-glucose linked transporter-2 inhibitors, are also currently prescribed to improve insulin resistance (22, 23).
Hypertension and diabetes are interconnected and can lead to 50% faster chronic micro- and macro-vascular problems than in patients with no hypertension (24). Hyperglycemia can cause hypertension directly through microaneurysms, cytokines, and inflammogenic effects, and by several enzymes, osmotic agents, and vasoconstrictors (25). Hyperglycemia and arterial hypertension aggravate cardiovascular conditions by increasing the risk of left ventricular hypertrophy, coronary and cerebrovascular cardiac and brain lesions, resulting in a worse prognosis (26, 27). High blood pressure, rapid occurrence of complications, poorer prognosis, and increased cardiovascular morbidity and mortality are associated with diabetes and arterial hypertension (27). Some recommendations and protocols seek to achieve normotension or good arterial hypertension control in diabetics and those with impaired fasting glucose (28). Better arterial blood pressure regulation reduces erythrocytic hyperviscosity, arterial stiffness, cardiac hypertrophy with ventricular dysfunctions, glomerular blood clots, urine albumin, and other glucometabolic markers (29, 30).
Research has shown that ECG biomarkers can help track disease progression in diabetes, hypertension, and cardiovascular diseases and predict major adverse cardiac events (31, 32). Recently, biomedical engineering and bioengineering have relied on ECG indicators beyond clinical contexts. Continuous ECG monitoring with smart wearables allows real-time cardiac anomaly diagnosis and risk classification, enabling tailored medication. These developments enable adaptive algorithms to use patient-specific data for personalized feedback and treatment. These breakthroughs support precision health, digital therapies, and multimodal sensing, combining engineering with patient-centered care (33, 34). The advantage of ECG is its noninvasive nature, ease of interpretation, availability, and low cost compared to metabolic biomarkers (35). In addition, ECG findings have been linked the metabolic syndrome components, such as hypertension and dyslipidemia, and cardiac pathology (36, 37). Identifying specific biomarkers that link these diseases has been extended to community screening, particularly in rural populations, where they offer a non-invasive and efficient means of identifying asymptomatic cardiac conditions (38, 39). Moreover, the integration of ECG data with artificial intelligence (AI) has enhanced the diagnostic potential, enabling the early detection of subclinical diabetes complications that provides a cost-effective and accessible diagnostic approach (40, 41). Screening of cardiovascular disease progression with ECG has also shown that several ECG biomarkers are specific for monitoring progression of diabetes and hypertension in addition to CVD. These biomarkers include PQ interval, QRS complex, and QT/QTc (42). Due to the intricate relationship between diabetes and comorbidities such as hypertension and cardiovascular disease, classifying T2DM patients by comorbidities and treatment regimens including medication use is difficult. The current study examined how antilipid, antiplatelet, antihypertensive, and antidepressant medications affect ECG biomarkers in individuals with type 2 diabetes. It compared patient classification model results generated without considering diabetes medication status to assess the added value of including ECG markers. Furthermore, the study evaluated how these non-diabetes medications influence ECG biomarkers across different T2DM stages and comorbidity groups in a screening context, as well as their impact on the accuracy of classifying diabetes progression.
2 Materials and methods
2.1 Recruitment of participants
Data from 581 individuals participating in the Diabetes Health Screening Clinic (DiabHealth) at Charles Sturt University, Albury, Australia, were included in the analysis of blood and urine specimens. The study obtained ethical approval from the University Human Ethics Committee under Protocol Number 2006-042, and all participants provided written informed consent, including agreement for the publication of results. A control group with a screening glucose of <5.6 mmol/L, a prediabetes group with a screening glucose of 5.6–6.9 mmol/L, and a type 2 diabetes group with screening glucose ≥7 mm/L were compared. No exclusion criteria were established for this study, as patients participated in a public screening clinic focused on diabetes progression and diabetes complications. Gender, age, and the use of medications, including antiplatelet agents (AntiPL), lipid-lowering agents (AntiLP), antihypertensive medications (HT-med), and antidepressants, were collected for all patients in the study. The ECGs were recorded using a GE Healthcare MAC™ 5500 HD 12-lead electrocardiograph to obtain PQ interval conduction time, QRS duration, QTc interval, and QT dispersion (QTd). These metrics were analyzed from 10-s and 5-min recordings. These intervals represent important electrophysiological mechanisms related to diabetic pathogenesis and cardiovascular consequences. Autonomic dysfunction and decreased parasympathetic regulation in diabetes can affect atrioventricular conduction time, which affects the PQ interval (43, 44). QRS duration measures intraventricular conduction, and small delays may indicate structural or electrical changes like left ventricular hypertrophy or fibrosis (45, 46). The QTc interval and QTd measure ventricular repolarization heterogeneity, which predicts arrhythmic risk and sudden cardiac mortality, especially in diabetics (47–49). In diabetes, extended QTc and elevated QTd are linked to insulin resistance, glycemic management, and cardiovascular mortality (50, 51). These ECG indicators enable a comprehensive assessment of conduction, depolarization, and repolarization issues associated with diabetes and cardiovascular risk. The study focused on ECG biomarkers and diabetes progression, particularly in the context of comorbidities and medication use, over a 10-year period, utilizing data exclusively from first-admission records.
2.2 Statistical analysis and machine learning
Microsoft Excel (Office 365, Microsoft) was used to analyze descriptive data, and the results are presented as mean ± standard deviation (x ± SD). The machine learning process and statistical analyses were created to determine the significance of characteristics in predicting diabetes status and to find significant group differences. The Synthetic Minority Oversampling Technique (SMOTE), which was used to address class imbalance in the dataset, ensured that the four clinical subgroups—no comorbidities, hypertension, cardiovascular disease, and combined hypertension and cardiovascular disease—all had balanced representation of the no diabetes, prediabetes, and type 2 diabetes mellitus (T2DM) groups (52). The Support Vector Machine (SVM) consistently produced the greatest classification accuracy for differentiating diabetes groups among the machine learning models examined, including logistic regression, random forests, and k-nearest neighbors. It was chosen as the main classifier due to its performance and ability to handle high-dimensional data. SVM maximizes the gap between the closest support vectors (data points closest to the border) by finding the best hyperplane in the feature space that separates data points of various classes (53). This maximum improves the model’s generalizability and reduces the possibility of misclassification. By adjusting the regularization parameter (C), kernel type, and gamma settings, a grid search and 5-fold cross-validation were used to improve the SVM hyperparameters. As a measure of model stability, the associated standard deviation was provided, and the model with the greatest mean cross-validated accuracy was chosen as the best-performing model. The contribution of each feature was then measured by applying permutation significance to the optimum SVM model. This helped determine the most significant predictors by rearranging the values of each characteristic and calculating the change in model accuracy that resulted from these changes. Bar plots were used to display the results, and feature names were reformatted for readability. Pandas, scikit-learn, and imbalanced-learn were used in Python for further statistical studies. Kruskal–Wallis tests for non-parametric group differences were used to evaluate continuous data, whereas Chi-square tests using contingency tables were used to investigate categorical variables (54). To control for the increased risk of Type I errors due to multiple comparisons, we applied the Bonferroni correction by adjusting the significance threshold (α) from the conventional 0.05 level to α/m to include the total number of pairwise tests conducted (55). Significant variables were further investigated using paired Mann–Whitney U tests (56). This integrated methodology provides a comprehensive evaluation of the primary parameters that influence diabetes categorization and development by combining machine learning with robust statistical methodologies.
3 Results
3.1 Demographics and statistical analysis
Data from five hundred and eighty-one participants were included in the analysis.
Table 1 summarizes the demographic and clinical characteristics of the Healthy, Prediabetes, and T2DM participant groups, including pairwise post-hoc Chi-square tests with the Bonferroni correction for categorical variables. Prescription of statins (AntiLP-MedUse) was significantly higher in the T2DM group, with 33.3% of individuals compared to the Healthy and Prediabetes groups (p < 0.001, Kruskal–Wallis). Post-hoc pairwise Chi-square tests with Bonferroni correction revealed a significant difference between the Healthy and T2DM groups (p < 0.001). Medications, such as antidepressant medications, did not vary significantly between groups (p = 0.383). The mean age of 55.22 years in the Healthy group to 58.92 years in the T2DM group was not significant. Similarly, gender distribution was predominantly female in all groups but was not significantly different between the three groups. ECG features, however, reveal a significant difference in QTd-10 s, suggesting a potential link to diabetes. Pairwise comparisons also highlight that QTd-5 min is significantly different between the Healthy and T2DM groups.

Table 1. Demographics, Kruskal–Wallis, and Mann–Whitney analysis of the population without comorbidities.
Demographic and clinical characteristics of the participants with hypertension are presented in Table 2, along with pairwise post-hoc Chi-square tests with the Bonferroni correction for categorical variables. In Table 2, the term Control refers to patients diagnosed with hypertension only. Medication is a key differentiator among the groups, with AntiLP-MedUse, as indicated by post-hoc pairwise Chi-square tests with Bonferroni correction, showing a significant difference between Healthy and T2DM, and between Prediabetes and T2DM. Diabetes medication was prescribed significantly more often for the hypertension groups compared to the T2DM group. As expected, increased hypertension-specific medication use (HT-MedUse) was observed in all three diabetes-associated groups compared to the Healthy group. ECG features reveal several significant distinctions. PQ-10 s differed significantly between groups, with a significant difference between the Healthy and Prediabetes groups. QTd-10 s and QTd-5 min also show significant differences, particularly between the Prediabetes and T2DM groups.

Table 2. Demographics, Kruskal–Wallis, and Mann–Whitney analysis of the population with hypertension.
AntiLP-MedUse in the cardiovascular disease cohort across the three groups was significantly more common in the T2DM group (Table 3). Post-hoc pairwise Chi-square tests with the Bonferroni correction revealed significant differences between the Control and T2DM groups, as well as between the Prediabetes and T2DM groups. In Table 3, the term Control refers to patients diagnosed with cardiovascular disease only. Diabetes medication was only prescribed in the T2DM group. In line with previous results, gender distribution revealed significant variation, with a higher proportion of males in the prediabetes group compared to the control and T2DM groups. Post-hoc pairwise comparisons revealed a significant difference between the Control and Prediabetes groups, but not between Control and T2DM groups, or between Prediabetes and T2DM groups. ECG features show mixed results. PQ-10 s exhibited a significant difference between the prediabetes and T2DM groups. QTc-5 min values were significantly different among the groups, particularly between the control, prediabetes, and T2DM groups, with the longest intervals observed in prediabetes (430.23 ms), which is still within the normal range for both men and women.

Table 3. Demographics, Kruskal–Wallis, and Mann–Whitney analysis of the population with cardiovascular disease.
ECG biomarkers and medication were able to separate Control, Prediabetes, and T2DM individuals with hypertension (HT) and cardiovascular disease (CVD) (Table 4). In Table 4, the term Control refers to patients diagnosed with both hypertension and cardiovascular diseases. AntiLP-medication use differed significantly amongst diabetes groups, emphasizing its importance in diabetes classification models. Post-hoc comparisons revealed significant differences between the Control and T2DM groups (p < 0.001) and the Prediabetes and T2DM groups (p = 0.005). Previous research has shown that antidiabetic therapy affects disease progression and cardiovascular risk assessment and indicates the importance of using diabetes medication in the model (57). Hypertension medication used in the model may indirectly indicate diabetes progression. T2DM patients also reported higher use of antidepressants compared to Control and Prediabetes (p = 0.010). Since antidepressants have been connected to metabolic abnormalities and diabetes risk, this finding shows a link between depression and diabetes progression that merits additional study.

Table 4. Demographics, Kruskal–Wallis, and Mann–Whitney analysis of the population with both hypertension and cardiovascular diseases.
Several ECG biomarkers showed statistically significant differences, supporting their use in machine learning-based diabetes classification models. QRS-Axis-10 s was significantly different between Control vs. T2DM (p = 0.006), suggesting that diabetic individuals with HT and CVD may have more structural heart or electrical remodeling issues. T2DM patients had longer grade-10 s (p = 0.036) conduction delays, which may indicate autonomic dysfunction and diabetes-related conduction anomalies (58). QTc-10 s (p = 0.001) and QTd-10 s (p = 0.038) demonstrated substantial differences between the three groups, with T2DM patients having wider repolarization times, a risk factor for arrhythmias and sudden cardiac death, specifically between Control and T2DM (p < 0.001) (59).
3.2 ECG-based classification and feature selection
The feature relevance rankings for diabetes classification in patients without comorbidities using ECG biomarkers over 10 s (Panel A) and 5 min (Panel B) are shown in Figure 1. As the T2DM medication feature is excluded, QRS-Axis-10 s, QTc-10 s, PQ-10 s, and QTd-10 s for 10-s measures and QTd-5 min, QRS-5 min, QRS-Axis-5 min, and PQ-5 min for 5-min measurements are the most influential predictors. Medication-related parameters, especially anti-lipid and AntiLP-MedUse medication use, contribute to classification but are less important.

Figure 1. (A) Feature importance for patients without comorbidities, for ECG biomarkers measured for 10 s. (B) Feature importance for patients without comorbidities, for ECG biomarkers measured 5 min. AntiLP-MedUse, Antilipid medication use; AntiPL-MedUse, Antiplatelet medication use; HT-MedUse, Hypertension medication use; PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
Combining demographic, clinical, and ECG variables reveals notable differences among the Healthy, Prediabetes, and T2DM groups, as summarized in Table 1. Classification accuracy was 0.86 ± 0.02 for 10-s intervals and 0.88 ± 0.02 for 5-min intervals, with a focus on cardiac ECG biomarkers. ECG biomarkers. Anti-lipid medication use reported by the Healthy and T2DM groups vary significantly. Among ECG biomarkers, QTd-10 s and QTd-5 min show significant differences between the Healthy and Prediabetes groups and between the Healthy and T2DM groups, respectively, as confirmed by pairwise comparisons. In contrast, anti-depression medication does not substantially vary, suggesting that antidepressant use is unrelated to diabetes status in this cohort.
Many factors affect patients with diabetes and hypertension. Without the T2DM medication component, the predictive power shifts primarily to ECG biomarkers. In the 10-s measurement (Panel A of Figure 2), PQ-10 s, QTd-10 s, and QRS-Axis-10 s emerge as the dominant predictors, suggesting their strong role in capturing conduction and repolarization abnormalities. In contrast, the 5-min measurement (Panel B of Figure 2) highlights the most important features, including Birth Age, PQ-5 min, and QRS-Axis-5 min, suggesting that longer ECG recordings capture broader structural and conduction-related differences. The shift in feature rankings between Panels A and B highlights the influence of ECG biomarkers in predicting diabetes risk in hypertensive patients and underscores the role of measurement duration in feature importance distribution. Comparing demographic and clinical factors across the hypertensive diabetic groups shows a significant difference in the reported antilipid medication use between the Control and T2DM groups. Several ECG indicators further distinguish between the three groups. Significant variations in QTd-5 min and QTd-10 s exist between the Prediabetes and T2DM groups, and between the Control and T2DM groups. PQ-10 s difference is significant, with post-hoc comparisons confirming differences between Control and Prediabetes and Prediabetes vs. T2DM. QRS-Axis-10 s also distinguishes Control from T2DM. Demographic characteristics have a to minimal impact on diabetes classification in individuals with hypertension. As for QRS-Axis-5 min, although the overall group difference was marginal (p = 0.055), the difference between Prediabetes and T2DM was significant (p = 0.032), while the other pairwise comparisons were not. The results confirm that ECG biomarkers are key diabetes classification factors for hypertensive patients, with a classification accuracy of 0.72 ± 0.05 for the 10-s recording and 0.74 ± 0.08 for the 5-min recording.

Figure 2. (A) Feature importance for patients with hypertension, for ECG biomarkers measured for 10 s. (B) Feature importance for patients with hypertension, for ECG biomarkers measured for 5 min. AntiLP-MedUse, Antilipid medication use; AntiPL-MedUse, Antiplatelet medication use; HT-MedUse, Hypertension medication use; PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
In patients with cardiovascular disease, PQ-10 s, QTc-10 s, QTd-10 s, and QRS-Axis-10 s emerge as the most significant predictors, indicating that short-term conduction and repolarization measures gain prominence (Panel A of Figure 3). In the 5-min measurements, AntiLP-MedUse, QRS-Axis-5 min, and QTc-5 min dominate (Panel B of Figure 3). Notably, PQ-10 s showed marginal overall significance, but its pairwise comparison between Prediabetes and T2DM reached significance (p = 0.019). For the 5-min recordings, AntiLP-Med Use (p = 0.002), QRS-Axis-5 min (p = 0.014), and QTc-5 min (p = 0.048) showed the most substantial group differences, underscoring the dominance of long-term ECG measures and medication use in distinguishing between Control, Prediabetes, and T2DM groups (Panel B, Figure 3). These shifts emphasize the interplay between ECG biomarkers and medication use in cardiovascular disease patients, and the accuracies equal 0.74 ± 0.04 for the 10-s recording and 0.77 ± 0.07 for the 5-min recording. In addition to medication and ECG features being important in classification accuracy, gender indicated significant differences between the diabetes groups. However, the antidepressant medication used does not differ and contributes to the model, demonstrating that antidepressant use does not discriminate between cardiovascular disease patients with diabetes and patients with different comorbidities or no comorbidities.

Figure 3. (A) Feature importance for patients with cardiovascular disease, for ECG biomarkers measured for 10 s. (B) Feature importance for patients cardiovascular disease, for ECG biomarkers measured for 5 min. AntiLP-MedUse, Antilipid medication use; AntiPL-MedUse, Antiplatelet medication use; HT-MedUse, Hypertension medication use; PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
The classification of diabetes in individuals with hypertension and cardiovascular disease depends primarily on medication use, as expected, but includes ECG biomarkers, with minor contributions from demographic features. In Figure 4A (10-s analysis), QTd-10 s, HT-MedUse, and QRS-Axis-10 s emerge as the top predictors, highlighting the role of repolarization abnormalities and hypertension treatment. In Figure 4B (5-min analysis), AntiLP-MedUse, HT-MedUse, and OtherMeds-Depression dominate, suggesting that non-diabetes medications, particularly lipid-lowering and antidepressant treatments, influence long-term ECG variability. The classification accuracy for these models is 0.68 ± 0.06 in Figure 4A, and 0.64 ± 0.05 in Figure 4B, indicating performance loss. This shows that including provides a focus on physiological indicators. For individuals with hypertension and cardiovascular disease, Table 4 compares demographic, clinical, and ECG data from the Control, Prediabetes, and T2DM groups. HT-MedUse marks a significant difference, with 93.7% of T2DM patients using hypertension medication compared to the Control and Prediabetes groups. AntiLP-MedUse is substantially greater in T2DM patients (67.4%) compared to Prediabetes (34.6%) and Control (41.1%) groups. Post-hoc comparisons reveal substantial differences between the Control and T2DM groups (p < 0.001) and the Prediabetes group. QTd-10 s and QTd-5 min are ECG features with inconsistent results. QTd-10 s is statistically different among groups, whereas QTd-5 min is not. QRS-Axis-10 s differs considerably, especially between Control and T2DM, supporting ECG findings for diabetes categorization. In contrast, age and gender do not significantly affect diabetes classification in this population. OtherMeds-Depression is significantly different, suggesting an association between antidepressant use and diabetes status. Post-hoc comparisons show that Control vs. T2DM shows greater differences, while Prediabetes vs. T2DM does not for anti-depressive medication use.

Figure 4. (A) Feature importance for patients with hypertension and cardiovascular disease, for ECG biomarkers measured for 10 s. (B) Feature importance for patients with hypertension and cardiovascular disease, for ECG biomarkers measured for 5 min. AntiLP-MedUse, Antilipid medication use; AntiPL-MedUse, Antiplatelet medication use; HT-MedUse, Hypertension medication use; PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
Shorter ECG recordings improve categorization accuracy, according to the study. Adding the T2DM treatment feature enhances classification accuracy across all groups, boosting biomarker predictive power and model resilience (accuracy up to 0.88 ± 0.04). This suggests that medication data complements, rather than duplicates, diabetes status information. Medication use improved classification accuracy for patients without comorbidities, hypertensive patients, those with cardiovascular disease, and those with both conditions. These findings demonstrate that ECG biomarkers and medication data can be combined to improve the classification of diabetes.
3.3 Classification and feature selection by combining 10 s and 5 min ECG biomarkers
The classification of diabetes status in patients without comorbidities was primarily influenced by QRS-Axis-5 min, QRS-Axis-10 s, QTd-5 min, and QTc-5 min, with a classification accuracy of 0.91 ± 0.05 (Figure 5).

Figure 5. Feature importance for patients without comorbidity using all features for 10 s and 5 min. AntiLP-MedUse, Antilipid medication use; AntiPL-MedUse, Antiplatelet medication use; HT-MedUse, Hypertension medication use; PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
For patients with HT, feature importance rankings shifted, with QRS-Axis-5 min, QTd-10 s, and PQ-10 s becoming the most influential features, and accuracy was 0.79 ± 0.07 (Figure 6).

Figure 6. Feature importance for patients with hypertension using all features for 10 s and 5 min. AntiLP-MedUse, Antilipid medication use; AntiPL-MedUse, Antiplatelet medication use; HT-MedUse, Hypertension medication use; PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
In patients with CVD, PQ-5 min, Gender, and PQ-10 s emerged as the top predictors (Figure 7), leading to a classification accuracy of 0.82 ± 0.09.

Figure 7. Feature importance for patients with cardiovascular disease using all features for 10 s and 5 min. AntiLP-MedUse, Antilipid medication use; AntiPL-MedUse, Antiplatelet medication use; HT-MedUse, Hypertension medication use; PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
For patients with both HT and CVD, antihypertensive medication use, QTd-10 s, and AntiLP-MedUse were the main features of the model, with a classification accuracy of 0.69 ± 0.07 (Figure 8). More detailed results of the performance metrics, including AUC per class, specificity, and sensitivity, are provided in the Supplementary material.

Figure 8. Feature importance for patients with both hypertension and cardiovascular disease using all features for 10 s and 5 min. AntiLP-MedUse, Antilipid medication use; AntiPL-MedUse, Antiplatelet medication use; HT-MedUse, Hypertension medication use; PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
3.4 ECG biomarker dynamics in comorbidity groups without or with multiple medications
The distributions of PQ, QRS, QTc, QTd, and QRS-Axis—measured over 10-s and 5-min intervals for all classes (healthy, noDM-HT, noDM-CVD, and noDM-HT + CVD), with and without medication, are presented in Figure 9. Across all features, significant differences were observed between the classes associated with either the 10-s ECG or 5-min ECG recordings, as determined by the Kruskal–Wallis test (p < 0.05). Notably, noDM-HT + CVD patients exhibited prolonged PQ intervals compared to the other groups, reflecting potential cardiac conduction delays in this group (Figure 9A). Healthy patients generally displayed shorter QRS intervals, whereas noDM-HT and noDM-HT + CVD patients showed wider QRS complexes, indicating ventricular conduction abnormalities in these groups (Figure 9B). The QTc features, with QTc-10 s and QTc-5 min, are prolonged in noDM-HT + CVD patients (Figure 9C). This suggests an elevated risk of arrhythmias in patients with combined hypertension and cardiovascular disease, which is consistent with clinical expectations given the known association between QTc prolongation and cardiovascular comorbidities. The dispersion of QT intervals (QTd) was higher in noDM-HT and noDM-HT + CVD groups, particularly the 10-s recordings (Figure 9D). This increased variability could indicate greater heterogeneity in ventricular repolarization in these populations. Finally, significant differences in QRS-Axis-10 s and QRS-Axis-5 min were observed among the control classes (Figure 9E). The noDM-HT and noDM-HT + CVD groups exhibited more negative QRS axes, indicative of left axis deviation, often associated with structural or electrical cardiac abnormalities.

Figure 9. (A) PQ features for 10 s and 5 min, (B) QRS features for 10 s and 5 min, (C) QTc features for 10 s and 5 min, (D) QTd features for 10 s and 5 min, and (E) QRS-Axis features for 10 s and 5 min, for all control classes. All features show a statistically significant difference within the same time of measurement (Kruskal–Wallis test: p < 0.05). PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s. QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
The distributions of PQ, QRS, QTc, QTd, and QRS-Axis, measured over 10-s and 5-min intervals in all prediabetic subclasses (only prediabetes, prediabetes with HT, prediabetes with CVD, and prediabetes with HT + CVD) with and without medication, are presented in Figure 10. Class differences were significant within the same ECG measurement time, as shown by the Kruskal–Wallis test (p < 0.05). The PQ feature distributions show that PQ-10 s and PQ-5 min values differ between classes (Figure 10A). Prediabetes HT and HT + CVD, with medication, had longer PQ intervals than other classes, suggesting atrioventricular conduction delays. QRS features reveal distinct distributional differences across patient groups for both QRS-10 s and QRS-5 min durations (Figure 10B). Notably, the prediabetes groups with hypertension (HT) and with both HT and cardiovascular disease (CVD) exhibit broader and right-shifted distributions, indicating higher median and more variable QRS durations compared to the prediabetes-only group. These findings suggest potential abnormalities in cardiac conduction associated with comorbid HT and CVD. The prediabetes with CVD group is notably broader and skewed toward longer durations, particularly in QRS-5 min recordings. This indicates greater variability and a tendency toward prolonged QRS complexes, supporting the presence of conduction system impairments often associated with cardiovascular disease. Prediabetes CVD, and HT + CVD had longer QTc-10 s and QTc-5 min (Figure 10C), indicating a higher risk of ventricular arrhythmias in this sample. Only the prediabetes group had consistently shorter QTc intervals. QTd features show that prediabetes with HT and prediabetes with HT + CVD had larger QTd dispersion, especially over 10-s intervals, as in Figures 6, 10D. The ventricular repolarization in this group is more heterogeneous, explaining this diversity. QRS-Axis features show class differences over 10-s and 5-min intervals. Prediabetes with HT and prediabetes with HT + CVD groups had greater negative QRS-Axis values, indicating left axis deviation due to structural or electrical cardiac problems (Figure 10E).

Figure 10. (A) PQ features for 10 s and 5 min, (B) QRS features for 10 s and 5 min, (C) QTc features for 10 s and 5 min, (D) QTd features for 10 s and 5 min, and (E) QRS-Axis features for 10 s and 5 min, for all prediabetes classes. All features show a statistically significant difference within the same time of measurement (Kruskal–Wallis test: p < 0.05). PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
PQ, QRS, QTc, QTd, and QRS-Axis feature distributions over 10-s and 5-min intervals in all T2DM classes (T2DM, T2DM with HT, T2DM with CVD, and T2DM with HT + CVD) with and without medication are shown in Figure 11. PQ interval results indicate that PQ-10 s and PQ-5 min periods differ across classes (Figure 11A). T2DM patients with HT and those with HT + CVD had longer PQ intervals than T2DM patients, suggesting atrioventricular conduction delays. Group differences in QRS-10 s and QRS-5 min durations are also present, as illustrated in Figure 11B. T2DM patients had shorter QRS intervals, but T2DM with HT and HT + CVD patients had wider QRS complexes, indicating ventricular conduction problems. QTc-10 s and QTc-5 min intervals are significantly prolonged in T2DM with HT and in patients with HT and CVD (Figure 11C), indicating a higher risk of arrhythmogenic events in this group. In contrast, T2DM patients had shorter QTc intervals. T2DM with CVD and HT + CVD had larger QTd dispersion (Figure 11D). The variability in ventricular repolarization was greatest when the 10-s recoding results were included. QRS-Axis characteristics in Figure 11E indicated substantial group differences in QRS-10 s and QRS-5 min. HT and HT + CVD patients had greater negative QRS-Axis values, indicating structural or electrical cardiac problems associated with left axis deviation.

Figure 11. (A) PQ features for 10 s and 5 min, (B) QRS features for 10 s and 5 min, (C) QTc features for 10 s and 5 min, (D) QTd features for 10 s and 5 min, and (E) QRS-Axis features for 10 s and 5 min, for all T2DM classes. All features show a statistically significant difference associated with either the 10-s or 50 min recordings (Kruskal–Wallis test: p < 0.05). PQ-10 s, PQ interval measured over 10 s; PQ-5 min, PQ interval measured over 5 min; QRS-10 s, QRS complex duration measured over 10 s; QRS-5 min, QRS complex duration measured over 5 min; QRS-Axis-10 s, QRS axis deviation measured over 10 s; QRS-Axis-5 min, QRS axis deviation measured over 5 min; QTc-10 s, Corrected QT interval measured over 10 s; QTc-5 min, Corrected QT interval measured over 5 min; QTd-10 s, QT dispersion measured over 10 s; QTd-5 min, QT dispersion measured over 5 min.
4 Discussion
This study highlights the significant role of ECG biomarkers and medication use in classifying diabetes status, particularly in patients with HT and CVD. The widespread availability and use of ECGdiagnostics in primary care makes our findings clinically relevant. QTc, QTd, and QRS-Axis are reliable predictors of diabetes status, suggesting that ECG may be an effective, affordable, and non-invasive screening approach for early cardiac risk assessment in T2DM patients. Short-duration ECGs can be easily incorporated into routine patient assessment, or diabetes management to identify cardiovascular risk before symptoms appear. This is particularly important in primary care and low-income areas where comprehensive metabolic panels are not readily available for diagostics. Clinical approaches utilizing ECG-based risk assessment may facilitate rapid referrals, personalized monitoring, and early intervention (60, 61). By applying a machine learning model, we identified QRS-Axis, QTc, and QTd intervals as important ECG biomarkers, while lipid-lowering, and antihypertensive medications emerged as key distinguishing factors. Across all subgroups, QTc, QTd, and QRS-Axis consistently ranked among the top predictors of diabetes status. In patients without comorbidities, classification using these biomarkers achieved up to 91% accuracy. Even in treatment-naïve subgroups, ECG biomarkers retained predictive strength, supporting their utility for early screening. These findings align with existing research demonstrating that diabetes and cardiovascular conditions contribute to alterations in cardiac conduction and repolarization (62, 63).
The significant differences in QTd-10 s and QTc-5 min emphasize the importance of QRS-axis and QT-related characteristics in diabetes classification and that 10-s or 5-min recordings often provide different classification outcomes. Prior studies have linked QTc prolongation and increased QTd to heightened arrhythmic risk in diabetic populations (64). Our work extends these findings by demonstrating that machine learning-based classification models benefit from prioritizing ECG parameters in combination with medication use for optimal diabetes risk stratification. Beyond the methodological advancement of machine learning, our study provides clinical insights by identifying interactions between medication use and ECG biomarkers (65–67).
Our findings suggest that the interactions of medications, particularly anti-HT, DM-medication, and antidepressants, contribute to variations in ECG biomarkers, influencing diabetes classification performance. The prolongation of PQ intervals and widening of QRS complexes observed in diabetic patients with HT + CVD supports previous studies showing that antihypertensive drugs, particularly beta-blockers and calcium channel blockers, can prolong PR intervals and alter QRS duration (64). Moreover, we observed that QTc prolongation remained significant even in medicated patients, suggesting that standard cardiovascular treatments do not fully mitigate repolarization abnormalities in T2DM.
Statins are frequently prescribed and generally associated with cardioprotective effects but did not show significant associations with ECG alterations in our study, suggesting that their cardiovascular benefits may not directly impact ECG patterns (63). Similarly, antidepressant medications showed limited influence on diabetes classification, consistent with prior research indicating that SSRIs have a lower impact on ECG compared to tricyclic antidepressants (TCAs) (68). However, the statistically significant association between antidepressant use and diabetes in our study suggests that psychiatric conditions may play an indirect role in metabolic and cardiovascular risk, warranting further investigation.
Notably, the lowest accuracy (0.64) was observed in the group with hypertension and cardiovascular disease, which is acceptable given the expected patient heterogeneity in this subgroup. Previous studies have reported variability in ECG alterations based on antidiabetic medication, such as GLP-1 receptor agonists and SGLT2 inhibitors (62). Our results indicate that excluding DM medication data allows ECG biomarkers to play a more prominent role in classification. Our study aligns with prior research demonstrating that QTc and QTd prolongation are hallmarks of diabetes-related cardiac risk. However, few studies have systematically examined the impact of medication use on ECG biomarker variability in diabetes classification models. Unlike prior studies focusing solely on ECG alterations, our work integrates machine-learning approaches to quantify the importance of ECG biomarkers and medication use. This provides a novel perspective on how medication effects interact with cardiac conduction in diabetic patients. Existing studies have also suggested that patients with multiple comorbidities (HT + CVD) exhibit the most pronounced ECG abnormalities (64). Our findings corroborate this, showing that PQ-10 s, QRS-Axis-10 s, and QTc-10 s were significantly altered in these patients.
Our analysis shows that ECG recording duration significantly impacts machine learning-based diabetes classification accuracy. Some 5-min ECG recordings showed higher accuracies due to their ability to capture more cardiac variability, autonomic function, and repolarization instability. These findings support previous research that longer ECG interval recordings may be needed for risk assessment when a diabetes history is uncertain. Although the accuracy was higher when using 5-min ECG features, 10-s recordings remained predictive, supporting their potential use in diabetes screening. Short ECGs, which are easily obtainable, may be useful for early cardiac risk stratification in diabetic patients, particularly in outpatient and primary care settings. The high classification accuracy of 5-min ECGs without suggesting that prolonged monitoring captures subtle electrophysiological variations linked to metabolic status and cardiovascular risk, making up for the missing treatment-related information. This supports previous findings that longer ECG durations improve assessments of repolarization abnormalities, which are common in diabetes and are associated with arrhythmias. These findings are clinically significant. When diabetes history is unavailable or incomplete, 5-min ECGs with long-term cardiac dynamics improve classification accuracy.
Although SMOTE introduces synthetic samples, its application was necessary to mitigate the substantial class imbalance across the patient subgroups, particularly for patients without comorbidities or medication use. To ensure that this oversampling did not introduce artificial or non-physiological patterns, we evaluated model robustness using 5-fold cross-validation for the 10-s and 5-min ECG recordings and classifiers. Classification accuracy (~0.70–0.91) remained consistent, with QTc, QTd, and PQ intervals contributing to all models. These features are well-established in cardiovascular physiology, particularly in diabetes-related arrhythmic risk, which supports the physiological validity of our results (33, 52, 69). Medication-induced ECG changes (e.g., QTc prolongation with antidepressants or PQ changes with antihypertensives) corresponded with established electrophysiological causes, confirming that the patterns observed were not synthetic oversampling.
The medication usage improved classification accuracy but may also add bias, confusing ECG biomarker contributions independent of treatment effects. To explore the possibility of medication-induced bias in ECG interpretation, the treatment-naïve subgroups, i.e., patients without any medication, were analyzed. In these subgroups, QTd-10 s, PQ-10 s, and QRS-Axis-10 s were consistently ranked among the top features, with classification accuracies of 0.86 and 0.88 for 10-s and 5-min recordings, respectively (70, 71). When medication variables were more present in groups with comorbidities (HT, CVD, and HT + CVD), the permutation importance revealed that both key ECG and medication features remained more predictive or equally important. These findings indicate that medication status does not affect biomarker interpretation but enhances precision by distinguishing disease-related from pharmacologically related ECG changes.
Exclusion criteria were relaxed to match real-world screening conditions where individuals had several comorbidities and continued medication use. This design makes ECG biomarker evaluation in varied clinical groups more practical. But it introduces possible confounders and increases unpredictability. While our dataset originates from an Australian clinical screening population, several factors support its broader applicability. The ECG dataset was previously validated through peer-reviewed studies using spatial modeling and clustering to assess the representativeness of larger rural and regional populations (72–74). Our model uses clinically universal ECG biomarkers that are commonly used in clinical cardiology. Additionally, our investigation examined ECG biomarkers and medication use, rather than HbA1c, body mass index (BMI), lipid profiles, or diabetes duration. These metrics can adjust for confounders, give metabolic and physiological context, and improve ECG biomarker interpretation. Clinical and biochemical markers should be included in future studies as well as test the model on diverse populations to improve diagnostics and risk classification. Future studies should examine whether ECG-based risk assessment, combined with continuous glucose monitoring, heart rate variability, or blood pressure variability, can be applied in larger multiethnic groups to enhance diagnostic performance. Our findings so far demonstrate that short ECGs can be easily integrated into routine healthcare workflows to detect diabetes-related cardiac risk early.
This study highlights the clinical relevance of ECG-based screening in diabetes management, particularly for patients with hypertension and cardiovascular disease, to detect early conduction abnormalities. While antihypertensive and lipid-lowering drugs may help stabilize cardiac function, their effects on QTc and QTd warrant further investigation. Machine learning models that incorporate ECG biomarkers and medication history can enhance diabetes classification and facilitate early risk detection. Future research should investigate the effects of specific antidiabetic agents on ECG parameters and evaluate alternative treatments to mitigate cardiac complications in T2DM. Additionally, longitudinal studies are needed to examine how ECG biomarkers evolve over time in diabetic patients and how treatment regimens influence these changes. Investigating gender-based differences in diabetes-related ECG alterations could also provide new insights, as our findings suggest higher QRS-Axis variability in male patients with prediabetes (p = 0.006).
5 Conclusion
In this study, comorbidities, medication use, and cardiac electrophysiological changes are examined with type 2 diabetes, prediabetes, and healthy controls. Integrating ECG biomarkers with pharmacological profiles, including antihypertensive, lipid-lowering, antiplatelet, and depression-specific medications, provided our machine learning models with good classification accuracy. This highlights the importance of physiological and treatment-related diabetes risk stratification. T2DM patients with hypertension and cardiovascular disease showed the most ECG abnormalities, including longer QTc, QTd, and QRS-Axis, suggesting arrhythmogenic and conduction risks. Five-minute ECG records were more predictive, but 10-s recordings were good for diabetes classification, indicating their application in scalable screening systems. These findings suggest that rapid, non-invasive ECG tests and advanced analytics improve early diabetes detection, disease progression, and personalized treatment. Future research should evaluate the advantages of combining ECG data with continuous glucose monitoring, heart rate variability, or wearable device outputs in larger multiethnic groups. The electrophysiological impact of diabetes therapy may be revealed by studying how GLP-1 receptor agonists and SGLT2 inhibitors influence ECG markers.
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors. Please contact the corresponding author for available data.
Ethics statement
The studies involving humans were approved by ethics approval and consent to participate University Human Ethics Committee, Protocol Number 2006-042. The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent for participation in this study was provided by the participants’ legal guardians/next of kin. Written informed consent was obtained from the individual(s) for the publication of any potentially identifiable images or data included in this article.
Author contributions
SS: Validation, Formal analysis, Conceptualization, Visualization, Methodology, Writing – review & editing, Writing – original draft, Investigation, Software, Data curation. HH: Writing – original draft, Resources, Writing – review & editing, Investigation, Formal analysis, Conceptualization. HJ: Writing – review & editing, Methodology, Supervision, Writing – original draft, Investigation, Data curation, Resources, Conceptualization.
Funding
The author(s) declare that no financial support was received for the research and/or publication of this article.
Acknowledgments
The authors which to acknowledge the assistance of Bev DeJong in the data collection. Part of this work was undertaken by visiting students through the Deutscher Austausch Dienst (DAAD).
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
The author(s) declared that they were an editorial board member of Frontiers, at the time of submission. This had no impact on the peer review process and the final decision.
Generative AI statement
The authors declare that no Gen AI was used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fmed.2025.1646495/full#supplementary-material
References
1. Galicia-Garcia, U, Benito-Vicente, A, Jebari, S, Larrea-Sebal, A, Siddiqi, H, Uribe, KB, et al. Pathophysiology of type 2 diabetes mellitus. Int J Mol Sci. (2020) 21:6275. doi: 10.3390/ijms21176275
2. Aguayo-Mazzucato, C, Diaque, P, Hernandez, S, Rosas, S, Kostic, A, and Caballero, AE. Understanding the growing epidemic of type 2 diabetes in the Hispanic population living in the United States. Diabetes Metab Res Rev. (2019) 35:e3097. doi: 10.1002/dmrr.3097
3. Namazi, N, Moghaddam, SS, Esmaeili, S, Peimani, M, Tehrani, YS, Bandarian, F, et al. Burden of type 2 diabetes mellitus and its risk factors in North Africa and the Middle East, 1990–2019: findings from the global burden of disease study 2019. BMC Public Health. (2024) 24:98. doi: 10.1186/s12889-023-16540-8
4. Forray, AI, Coman, MA, Simonescu-Colan, R, Mazga, AI, Cherecheș, RM, and Borzan, CM. The global burden of type 2 diabetes attributable to dietary risks: insights from the global burden of disease study 2019. Nutrients. (2023) 15:4613. doi: 10.3390/nu15214613
5. Ye, J, Wu, Y, Yang, S, Zhu, D, Chen, F, Chen, J, et al. The global, regional and national burden of type 2 diabetes mellitus in the past, present and future: a systematic analysis of the global burden of disease study 2019. Front Endocrinol (Lausanne). (2023) 14:26629. doi: 10.3389/fendo.2023.1192629
6. Yan, Y, Wu, T, Zhang, M, Li, C, Liu, Q, and Li, F. Prevalence, awareness and control of type 2 diabetes mellitus and risk factors in Chinese elderly population. BMC Public Health. (2022) 22:1382. doi: 10.1186/s12889-022-13759-9
7. Ali, O. Genetics of type 2 diabetes. World J Diabetes. (2013) 4:114–23. doi: 10.4239/wjd.v4.i4.114
8. Wu, Y, Ding, Y, Tanaka, Y, and Zhang, W. Risk factors contributing to type 2 diabetes and recent advances in the treatment and prevention. Int J Med Sci. (2014) 11:1185–200. doi: 10.7150/ijms.10001
9. Zhang, F, Chen, X, Yang, M, Shen, X, Wang, Y, Zhong, D, et al. Metabolic impairments associated with type 2 diabetes mellitus and the potential effects of exercise therapy: an exploratory randomized trial based on untargeted metabolomics. PLoS One. (2024) 19:e0300593. doi: 10.1371/journal.pone.0300593
10. Lorber, D. Importance of cardiovascular disease risk management in patients with type 2 diabetes mellitus. Diabetes Metab Syndr Obes. (2014) 7:169–83. doi: 10.2147/DMSO.S61438
11. Jelinek, H, Kolbe, C, Wang, L, and Oxbrow, D. Identification of hypertension and efficacy of treatment in a rural Australian population. Clin Exp Hypertens. (2008) 30:359–66. doi: 10.1080/10641960802275064
12. Pouvreau, C, Dayre, A, Butkowski, EG, De Jong, B, and Jelinek, HF. Inflammation and oxidative stress markers in diabetes and hypertension. J Inflamm Res. (2018) 11:61–8. doi: 10.2147/JIR.S148911
13. Yousef, H, Feng, SF, and Jelinek, HF. Exploratory risk prediction of type II diabetes with isolation forests and novel biomarkers. Sci Rep. (2024) 14:14409. doi: 10.1038/s41598-024-65044-x
14. Yousef, H, Khandoker, AH, Feng, SF, Helf, C, and Jelinek, HF. Inflammation, oxidative stress and mitochondrial dysfunction in the progression of type II diabetes mellitus with coexisting hypertension. Front Endocrinol (Lausanne). (2023) 14:1173402. doi: 10.3389/fendo.2023.1173402
15. Savvopoulos, S, Hatzikirou, H, and Jelinek, HF. Comparative analysis of biomarkers in type 2 diabetes patients with and without comorbidities: insights into the role of hypertension and cardiovascular disease. Biomark Insights. (2024) 19:2111. doi: 10.1177/11772719231222111
16. Alexescu, TG, Nechita, A, Alexander, P, Perné, MG, Milaciu, MV, Ciulei, G, et al. Electrocardiographic changes in patients with type 2 diabetes mellitus—a meta-analysis. J Mind Med Sci. (2025) 12:14. doi: 10.3390/jmms12010014
17. Yang, H-M. Mitochondrial dysfunction in cardiovascular diseases. Int J Mol Sci. (2025) 26:1917. doi: 10.3390/ijms26051917
18. Caturano, A, Rocco, M, Tagliaferri, G, Piacevole, A, Nilo, D, di Lorenzo, G, et al. Oxidative stress and cardiovascular complications in type 2 diabetes: from pathophysiology to lifestyle modifications. Antioxidants. (2025) 14:72. doi: 10.3390/antiox14010072
19. Vargas-Uricoechea, H, and Cáceres-Acosta, MF. Control of blood pressure and cardiovascular outcomes in type 2 diabetes. Open Medicine. (2018) 13:304–23. doi: 10.1515/med-2018-0048
20. Petrie, JR, Guzik, TJ, and Touyz, RM. Diabetes, hypertension, and cardiovascular disease: clinical insights and vascular mechanisms. Can J Cardiol. (2018) 34:575–84. doi: 10.1016/j.cjca.2017.12.005
21. Tangvarasittichai, S. Oxidative stress, insulin resistance, dyslipidemia and type 2 diabetes mellitus. World J Diabetes. (2015) 6:456–80. doi: 10.4239/wjd.v6.i3.456
22. Gupta, A, Jelinek, HF, and Al-Aubaidy, H. Glucagon like peptide-1 and its receptor agonists: their roles in management of type 2 diabetes mellitus. Diabetes Metab Syndr Clin Res Rev. (2017) 11:225–30. doi: 10.1016/j.dsx.2016.09.003
23. Tran, L, Zielinski, A, Roach, AH, Jende, JA, Householder, AM, Cole, EE, et al. Pharmacologic treatment of type 2 diabetes. Ann Pharmacother. (2015) 49:540–56. doi: 10.1177/1060028014558289
24. Hezam, AAM, Shaghdar, HBM, and Chen, L. The connection between hypertension and diabetes and their role in heart and kidney disease development. J Res Med Sci. (2024) 29:22. doi: 10.4103/jrms.jrms_470_23
25. Epstein, M, and Sowers, JR. Diabetes mellitus and hypertension. Hypertension. (1992) 19:403–18. doi: 10.1161/01.HYP.19.5.403
26. Maida, CD, Daidone, M, Pacinella, G, Norrito, RL, Pinto, A, and Tuttolomondo, A. Diabetes and ischemic stroke: an old and new relationship an overview of the close interaction between these diseases. Int J Mol Sci. (2022) 23:2397. doi: 10.3390/ijms23042397
27. Grundy, SM, Benjamin, IJ, Burke, GL, Chait, A, Eckel, RH, Howard, BV, et al. Diabetes and cardiovascular disease. Circulation. (1999) 100:1134–46. doi: 10.1161/01.CIR.100.10.1134
28. Kumar, V, Agarwal, S, Saboo, B, and Makkar, B. RSSDI guidelines for the management of hypertension in patients with diabetes mellitus. Int J Diabetes Dev Ctries. (2022) 42:576–605. doi: 10.1007/s13410-022-01143-7
29. Shahoud, JS, Sanvictores, T, and Aeddula, NR. Physiology, arterial pressure regulation. (2024) Treasure Island (FL): StatPearls Publishing.
30. Kim, H-L. Arterial stiffness and hypertension. Clin Hypertens. (2023) 29:31. doi: 10.1186/s40885-023-00258-1
31. Jonas, DE, Reddy, S, Middleton, JC, Barclay, C, Green, J, Baker, C, et al. Screening for cardiovascular disease risk with resting or exercise electrocardiography. JAMA. (2018) 319:2315. doi: 10.1001/jama.2018.6897
32. Harms, PP, van der Heijden, A, Rutters, F, Tan, HL, Beulens, JWJ, Nijpels, G, et al. Prevalence of ECG abnormalities in people with type 2 diabetes: the Hoorn diabetes care system cohort. J Diabetes Complicat. (2021) 35:107810. doi: 10.1016/j.jdiacomp.2020.107810
33. Hannun, AY, Rajpurkar, P, Haghpanahi, M, Tison, GH, Bourn, C, Turakhia, MP, et al. Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nat Med. (2019) 25:65–9. doi: 10.1038/s41591-018-0268-3
34. Sharma, A, Harrington, RA, McClellan, MB, Turakhia, MP, Eapen, ZJ, Steinhubl, S, et al. Using digital health technology to better generate evidence and deliver evidence-based care. J Am Coll Cardiol. (2018) 71:2680–90. doi: 10.1016/j.jacc.2018.03.523
35. Jelinek, H, Warner, P, King, S, and De Jong, B. Opportunistic screening for cardiovascular problems in rural and remote health settings. J Cardiovasc Nurs. (2006) 21:217–22. doi: 10.1097/00005082-200605000-00010
36. Qafoud, F, Kunji, K, Elshrif, M, Althani, A, Salam, A, al Suwaidi, J, et al. Correlations between resting electrocardiogram findings and disease profiles: insights from the Qatar biobank cohort. J Clin Med. (2024) 13:276. doi: 10.3390/jcm13010276
37. Farhadi, A, Emamat, H, Nemati, R, Marzban, M, Shafiee, G, Nabipour, I, et al. The association between continuous metabolic syndrome score and its components with electrocardiographic abnormalities in community-dwelling older adults: the Bushehr elderly health (BEH) program. BMC Cardiovasc Disord. (2024) 24:81. doi: 10.1186/s12872-024-03733-1
38. Sahranavard, T, Alimi, R, Arabkhazaei, J, Nasrabadi, M, Alavi Dana, SMM, Gholami, Y, et al. Association of major and minor ECG abnormalities with traditional cardiovascular risk factors in the general population: a large scale study. Sci Rep. (2024) 14:11289. doi: 10.1038/s41598-024-62142-8
39. Jelinek, H. Prevalence and severity of ECG anomalies in a rural Australian population. Br J Med Med Res. (2014) 4:1558–66. doi: 10.9734/BJMMR/2014/4047
40. Kelarev, A, Stranieri, A, Yearwood, J, and Jelinek, H. Empirical investigation of consensus clustering for large ECG data sets. In 2012 25th IEEE International Symposium on Computer-Based Medical Systems (CBMS). (2012). 1–4. Piscataway, NJ: IEEE.
41. Abawajy, J, Kelarev, A, Chowdhury, M, Stranieri, A, and Jelinek, HF. Predicting cardiac autonomic neuropathy category for diabetic data with missing values. Comput Biol Med. (2013) 43:1328–33. doi: 10.1016/j.compbiomed.2013.07.002
42. Khandoker, AH, al-Angari, HM, Khalaf, K, Lee, S, Almahmeed, W, al Safar, HS, et al. Association of diabetes related complications with heart rate variability among a diabetic population in the UAE. PLoS One. (2017) 12:e0168584. doi: 10.1371/journal.pone.0168584
43. Vinik, AI, Erbas, T, and Casellini, CM. Diabetic cardiac autonomic neuropathy, inflammation and cardiovascular disease. J Diabetes Investig. (2013) 4:4–18. doi: 10.1111/jdi.12042
44. Eleftheriadou, A, Spallone, V, Tahrani, AA, and Alam, U. Cardiovascular autonomic neuropathy in diabetes: an update with a focus on management. Diabetologia. (2024) 67:2611–25. doi: 10.1007/s00125-024-06242-0
45. Okin, PM, Devereux, RB, Jern, S, Kjeldsen, SE, Julius, S, Nieminen, MS, et al. Regression of electrocardiographic left ventricular hypertrophy by losartan versus atenolol: the losartan intervention for endpoint reduction in hypertension (LIFE) study. Circulation. (2003) 108:684–90. doi: 10.1161/01.CIR.0000083724.28630.C3
46. Naderi, H, Ramírez, J, van Duijvenboden, S, Pujadas, ER, Aung, N, Wang, L, et al. Predicting left ventricular hypertrophy from the 12-lead electrocardiogram in the UK biobank imaging study using machine learning. Eur Heart J Dig Health. (2023) 4:316–24. doi: 10.1093/ehjdh/ztad037
47. Veglio, M, Sivieri, R, Chinaglia, A, Scaglione, L, and Cavallo-Perin, P. QT interval prolongation and mortality in type 1 diabetic patients: a 5-year cohort prospective study. Neuropathy study Group of the Italian Society of the study of diabetes, Piemonte affiliate. Diabetes Care. (2000) 23:1381–3. doi: 10.2337/diacare.23.9.1381
48. Kautzner, J, Yi, G, Camm, AJ, and Malik, M. Short-and long-term reproducibility of QT, QTc, and QT dispersion measurement in healthy subjects. Pacing Clin Electrophysiol. (1994) 17:928–37. doi: 10.1111/j.1540-8159.1994.tb01435.x
49. Zhang, Y. QT-interval duration and mortality rate: results from the third national health and nutrition examination survey. Arch Intern Med. (2011) 171:1727–33. doi: 10.1001/archinternmed.2011.433
50. Ahnve, S. QT interval prolongation in acute myocardial infarction. Eur Heart J. (1985) 6:85–95. doi: 10.1093/eurheartj/6.suppl_D.85
51. Gerritsen, J, Dekker, JM, TenVoorde, BJ, Kostense, PJ, Heine, RJ, Bouter, LM, et al. Impaired autonomic function is associated with increased mortality, especially in subjects with diabetes, hypertension, or a history of cardiovascular disease: the Hoorn study. Diabetes Care. (2001) 24:1793–8. doi: 10.2337/diacare.24.10.1793
52. Chawla, NV, Bowyer, KW, Hall, LO, and Kegelmeyer, WP. SMOTE: synthetic minority over-sampling technique. J Artif Intell Res. (2002) 16:321–57. doi: 10.1613/jair.953
53. Burges, CJC. A tutorial on support vector machines for pattern recognition. Data Min Knowl Discov. (1998) 2:121–67. doi: 10.1023/A:1009715923555
54. Kruskal, WH, and Wallis, WA. Use of ranks in one-criterion variance analysis. J Am Stat Assoc. (1952) 47:583–621. doi: 10.1080/01621459.1952.10483441
55. Dunn, OJ. Multiple comparisons among means. J Am Stat Assoc. (1961) 56:52–64. doi: 10.1080/01621459.1961.10482090
56. Mann, HB, and Whitney, DR. On a test of whether one of two random variables is stochastically larger than the other. Ann Math Stat. (1947) 18:50–60. doi: 10.1214/aoms/1177730491
57. Soliman, EZ, Backlund, JY, Bebu, I, Li, Y, Zhang, ZM, Cleary, PA, et al. Progression of electrocardiographic abnormalities in type 1 diabetes during 16 years of follow-up: the epidemiology of diabetes interventions and complications (EDIC) study. J Am Heart Assoc. (2016) 5:e002882. doi: 10.1161/JAHA.115.002882
58. Dal Canto, E, Ceriello, A, Rydén, L, Ferrini, M, Hansen, TB, Schnell, O, et al. Diabetes as a cardiovascular risk factor: an overview of global trends of macro and micro vascular complications. Eur J Prev Cardiol. (2019) 26:25–32. doi: 10.1177/2047487319878371
59. Straus, SMJM, Kors, JA, de Bruin, ML, van der Hooft, CS, Hofman, A, Heeringa, J, et al. Prolonged QTc interval and risk of sudden cardiac death in a population of older adults. J Am Coll Cardiol. (2006) 47:362–7. doi: 10.1016/j.jacc.2005.08.067
60. Sidek, KA, Khalil, I, and Jelinek, HF. ECG biometric with abnormal cardiac conditions in remote monitoring system. IEEE Trans Syst Man Cybern Syst. (2014) 44:1498–509. doi: 10.1109/TSMC.2014.2336842
61. Jelinek, HF, Adam, MTP, Krones, R, and Cornforth, DJ. Diagnostic accuracy of random ECG in primary care for early, asymptomatic cardiac autonomic neuropathy. J Diabetes Sci Technol. (2017) 11:1165–73. doi: 10.1177/1932296817703670
62. Joseph, JJ, Deedwania, P, Acharya, T, Aguilar, D, Bhatt, DL, Chyun, DA, et al. Comprehensive management of cardiovascular risk factors for adults with type 2 diabetes: a scientific statement from the American Heart Association. Circulation. (2022) 145:722–59. doi: 10.1161/CIR.0000000000001040
63. Kosmas, CE, Silverio, D, Sourlas, A, Garcia, F, Montan, PD, and Guzman, E. Impact of lipid-lowering therapy on glycemic control and the risk for new-onset diabetes mellitus. Drugs Context. (2018) 7:212562. doi: 10.7573/dic.212562
64. Rosendorff, C, Lackland, DT, Allison, M, Aronow, WS, Black, HR, Blumenthal, RS, et al. Treatment of hypertension in patients with coronary artery disease. Circulation. (2015) 131:e435–70. doi: 10.1161/CIR.0000000000000207
65. Younk, LM, Lamos, EM, Davis, SN, Davis Lisa M Younk, SN, and Woodward Professor, TE. Cardiovascular effects of anti-diabetes drugs. Expert Opin Drug Saf. (2016) 15:1239. doi: 10.1080/14740338.2016.1195368
66. Bertoluci, MC, and Rocha, VZ. Cardiovascular risk assessment in patients with diabetes. Diabetol Metab Syndr. (2017) 9:1–13. doi: 10.1186/s13098-017-0225-1
67. Funk, KA, and Bostwick, JR. A comparison of the risk of QT prolongation among SSRIs. Ann Pharmacother. (2013) 47:1330–41. doi: 10.1177/1060028013501994
68. Roden, DM. Drug-induced prolongation of the QT interval. N Engl J Med. (2004) 350:1013–22. doi: 10.1056/NEJMra032426
69. Liu, N, Koh, ZX, Chua, ECP, Tan, LML, Lin, Z, Mirza, B, et al. Risk scoring for prediction of acute cardiac complications from imbalanced clinical data. IEEE J Biomed Health Inform. (2014) 18:1894–902. doi: 10.1109/JBHI.2014.2303481
70. Jethani, N, Puli, A, Zhang, H, Garber, L, Jankelson, L, Aphinyanaphongs, Y, et al. New-onset diabetes assessment using artificial intelligence-enhanced electrocardiography. (2023) ArXiv, doi: 10.48550/arXiv.2205.02900
71. Bogdanov, M, Baigildin, S, Fabarisova, A, Ushenin, K, and Solovyova, O. Effects of lead position, cardiac rhythm variation and drug-induced QT prolongation on performance of machine learning methods for ECG processing. In 2020 Ural symposium on biomedical engineering, Radioelectronics and information technology (USBEREIT). (2020). p. 40–43. Piscataway, NJ: IEEE. doi: 10.1109/USBEREIT48449.2020.9117753
72. Jelinek, HF, Cornforth, DJ, and Khandoker, AH. ECG time series variability analysis. Boca Raton, FL: CRC Press (2017).
73. Whitsed, R, Horta, A, and Jelinek, HF. Assessing representativeness of a rural Australian clinical database using a spatial modelling approach. Eskola et al. (eds.), EMBEC & NBC 2017, IFMBE Proceedings. Springer Nature Singapore Pte Ltd. 2018H. (2018) 65, 932–935. doi: 10.1007/978-981-10-5122-7_233
Keywords: electrocardiography (ECG), diabetes, arrhythmia medications, cardiovascular risk, hypertension disease progression, screening
Citation: Savvopoulos S, Hatzikirou H and Jelinek HF (2025) AI-based integration of ECG biomarkers for assessing cardiac risk in type 2 diabetes mellitus with comorbid conditions for patient stratification. Front. Med. 12:1646495. doi: 10.3389/fmed.2025.1646495
Edited by:
Qingjie Wang, Nanjing Medical University, ChinaReviewed by:
Shimaa Hussein Kotb, Sphinx University, EgyptSatyaveni Malasala, University of South Carolina, United States
Copyright © 2025 Savvopoulos, Hatzikirou and Jelinek. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Herbert F. Jelinek, aGVyYmVydC5qZWxpbmVrQGt1LmFjLmFl