BPG is committed to discovery and dissemination of knowledge
Observational Study Open Access
Copyright: ©Author(s) 2026. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution-NonCommercial (CC BY-NC 4.0) license. No commercial re-use. See permissions. Published by Baishideng Publishing Group Inc.
World J Cardiol. Nov 26, 2026; 18(11): 126754
Published online Nov 26, 2026. doi: 10.4330/wjc.126754
Cardiac comorbidity role in the diagnosis of diabetes mellitus using single lead electrocardiogram utilizing machine learning model
Anna Dmitrievna Karbovskaya, State Budgetary Healthcare Institution of the Tver Region, Konakovskaya Central District Hospital, Moscow 11953, Russia
Basheer Abdullah Marzoog, Anastasia Stroeva, Daniil Andreevich Zelenov, Peter Chomakhidze, Natalia Kuznetsova, Philipp Kopylov, Institute of Personalized Cardiology of The Center “Digital Biodesign and Personalized Healthcare” of Biomedical Science and Technology Park, Sechenov First Moscow State Medical University, Moscow 119991, Moskva, Russia
Snezhana Nikolaevna Demchuk, Medical Institute, Federal State Autonomous Educational Institution of Higher Education ‘Belgorod State National Research University’, Belgorod 308015, Belgorodskaya Oblast’, Russia
Syrkin Abromavich, Department of Cardiology, Functional and Ultrasound Diagnostics, Sechenov First Moscow State Medical University, Moscow 119991, Moskva, Russia
Valentin V Fadeev, Irina V Poluboyarinova, Sevindzh M Ismailova, Sechenov First Moscow State Medical University, Moscow 119991, Moskva, Russia
ORCID number: Basheer Abdullah Marzoog (0000-0001-5507-2413).
Co-first authors: Anna Dmitrievna Karbovskaya and Basheer Abdullah Marzoog.
Author contributions: Karbovskaya AD and Marzoog BA contributed to writing - original draft, review and editing; Zelenov DA and Marzoog BA contributed to biostatistical analysis; Demchuk SN, Stroeva A, Kuznetsova N, Poluboyarinova IV, Ismailova SM, Chomakhidze P, Fadeev VV, and Abromavich S contributed to data collection; Chomakhidze P, Fadeev VV, Kopylov P, and Abromavich S contributed to concept development; Kopylov P contributed to project supervision. All authors have read and approved the final version of the manuscript.
AI contribution statement: No AI tools were used in the preparation of this manuscript.
Supported by the Application of Mass Spectrometry and Exhaled Air Emission Spectrometry for Cardiovascular Risk Stratification, No. 1023022600020-6; the Priority 2030 Program of the Ministry of Science and Higher Education of Russia, No. 03.000.B.163; and No. 03.000. B. 166.
Institutional review board statement: The study was approved by the Ethics Committee of Sechenov University, Russia (approval No. 19-23, dated: October 26, 2023).
Informed consent statement: All study participants, or their legal guardian, provided informed written consent prior to study enrollment.
Conflict-of-interest statement: All the authors report no relevant conflicts of interest for this article.
STROBE statement: The authors have read the STROBE Statement-checklist of items, and the manuscript was prepared and revised according to the STROBE Statement-checklist of items.
Data sharing statement: Applicable on reasonable request from the corresponding author.
Corresponding author: Basheer Abdullah Marzoog, PhD, Senior Researcher, Senior Scientist, Institute of Personalized Cardiology of The Center “Digital Biodesign and Personalized Healthcare” of Biomedical Science and Technology Park, Sechenov First Moscow State Medical University, 8-2 Trubetskaya Street, Moscow 119991, Moskva, Russia. marzug@mail.ru
Received: August 12, 2026
Revised: September 6, 2026
Accepted: November 5, 2026
Published online: November 26, 2026
Processing time: 98 Days and 7.3 Hours

Abstract
BACKGROUND

Cardiovascular disease alters electrocardiographic morphology and may obscure diabetes-related electrical signatures, yet its effect on electrocardiogram (ECG)-based detection of type 1 and type 2 diabetes is poorly defined.

AIM

To investigate whether cardiac comorbidity differentially influences machine-learning detection of the two diabetes types from single-lead ECG.

METHODS

In this study, 2591 observations remained after exclusion of an erroneous age entry and rerunning the analytical pipeline. Twenty-six XGBoost models were evaluated separately for type 1 and type 2 diabetes within subgroups defined by seven cardiac-status criteria. Primary models used 47 single-lead ECG features and five anthropometric variables and were evaluated with five-fold stratified cross-validation. A post hoc seven-predictor sensitivity analysis assessed model complexity. Area under the receiver operating characteristics curve (AUC) uncertainty was estimated using 2000 bootstrap resamples of out-of-fold predictions, and ΔAUC comparisons were adjusted using the Benjamini-Hochberg procedure. Calibration was assessed using Brier score, calibration intercept and slope, reliability plots, and decision-curve analysis. Validation was observation-level because a persistent patient identifier was not available in the analytical export.

RESULTS

After correction and full rerun, median AUC was 0.693 for type 1 diabetes (range: 0.660-0.804) and 0.661 for type 2 diabetes (range: 0.543-0.716). No cardiac-pathology ΔAUC comparison remained statistically significant after Benjamini-Hochberg adjustment; the smallest adjusted P value was 0.064. In the reduced seven-predictor sensitivity analysis, AUC was higher than the 52-predictor model in 17 of 26 evaluable subgroup models, with a median descriptive difference of +0.008. Calibration was suboptimal: Across the 26 models, calibration slopes ranged from 0.078 to 0.467 and intercepts from -1.287 to -0.535. Decision-curve analysis showed threshold-dependent net benefit rather than uniform superiority across the evaluated range.

CONCLUSION

Single-lead ECG combined with anthropometric information showed moderate internal discrimination for recorded diabetes status, but the corrected analysis did not identify a cardiac-pathology subgroup effect that remained significant after multiplicity adjustment. The reduced-feature sensitivity analysis suggested that similar discrimination may be achievable with fewer predictors, whereas calibration remained inadequate for direct interpretation of model outputs as disease probabilities. These findings do not establish a clinically validated screening or rule-out threshold. Patient-grouped validation, independent threshold validation, and external validation remain necessary before clinical implementation.

Key Words: Diabetes mellitus; Single-lead electrocardiography; Machine learning; Cardiovascular disease; Model calibration; Decision-curve analysis

Core Tip: This study demonstrates that single-lead electrocardiography combined with anthropometric variables provides moderate internal discrimination of type 1 and type 2 diabetes mellitus, with median areas under the receiver operating characteristic curve of 0.693 and 0.661, respectively. Although model performance varied across cardiac-comorbidity subgroups, none of these differences remained statistically significant after adjustment for multiple comparisons. A reduced seven-predictor model demonstrated broadly comparable discrimination, suggesting that fewer variables may be sufficient. However, substantial probability miscalibration and threshold-dependent clinical net benefit limit immediate clinical applicability. These findings highlight the potential of electrocardiography-based machine learning while emphasizing the need for patient-level and external validation before clinical implementation.



INTRODUCTION

Diabetes mellitus (DM) represents one of the most significant global public health challenges of the 21st century, with prevalence rates continuing to rise alarmingly[1]. According to the International Diabetes Federation, approximately 589 million adults were living with diabetes in 2024, a figure projected to reach 853 million by 2050, disproportionately affecting low- and middle-income countries[2]. This epidemic carries devastating human and economic costs, driving increased morbidity and mortality through microvascular complications (retinopathy, nephropathy, neuropathy) and macrovascular sequelae (cardiovascular disease, stroke, peripheral artery disease)[3-5]. Critically, an estimated 42.8% of diabetes cases remain undiagnosed globally, representing a substantial missed opportunity for early intervention that could prevent or delay debilitating complications[2]. Current diagnosis of diabetes relies primarily on biochemical testing, including fasting plasma glucose, oral glucose tolerance testing, and glycated hemoglobin (HbA1c). Although these methods remain the diagnostic standard[6], there is interest in complementary low-burden approaches that could identify individuals who may benefit from confirmatory biochemical testing. In clinical settings where electrocardiography (ECG) is already being performed, information contained in the ECG may provide an opportunity for such opportunistic risk assessment without replacing established laboratory diagnostic methods.

Recent literature has reviewed artificial intelligence-based digital biomarkers for type 2 diabetes[7], broader artificial intelligence applications in diabetes care[8], machine-learning research directed at type 1 diabetes therapies[9], and digital tools for diabetes care[10]. Reviews of algorithms for diabetes prediction and management further summarize potential uses and persistent challenges[11-13]. Standard echocardiographic methods provide complementary characterization of ventricular structure and function[14]. Previous ECG-based machine-learning studies have explored diabetes and prediabetes classification[15-17], as well as the identification of cardiac autonomic neuropathy in patients with diabetes[18].

ECG is a widely available, non-invasive method routinely used in cardiovascular assessment. Chronic hyperglycemia and diabetes-related complications can produce subtle alterations in cardiac electrophysiology, including changes in autonomic regulation, repolarization, and conduction[19,20]. These changes may be multidimensional and difficult to recognize through conventional ECG interpretation but may potentially be detected using machine-learning methods. Portable single-lead ECG devices provide a particularly simple means of acquiring such signals and may therefore offer an opportunity for opportunistic diabetes risk assessment in patients in whom ECG recordings are already being obtained. However, the usefulness of this approach outside cardiovascular or referred clinical populations requires separate validation.

Related single-lead ECG research has examined metabolic syndrome classification[21], diabetes classification and phenotype-stratified models in two reports from the same research program[22,23], and ischemic heart disease detection[24]. These distinct applications raise the possibility that overlapping cardiometabolic and cardiovascular characteristics influence model performance. Reviews of metabolic syndrome pathogenesis[25] and lipid-related mechanisms in metabolic syndrome[26] provide wider pathophysiological context, without establishing diabetes-specific ECG signatures.

However, translating the potential of ECG-based DM detection into clinical reality faces a fundamental methodological challenge: The confounding influence of prevalent cardiovascular disease. Diabetes rarely exists in isolation; it is a potent risk factor for and frequently coexists with conditions such as hypertension, coronary artery disease, heart failure, and arrhythmias like atrial fibrillation[3-5,20]. These cardiovascular disease states themselves induce profound changes in the ECG signal, often overshadowing or mimicking the subtler alterations potentially attributable to DM per se. Because cardiovascular disorders independently alter ECG morphology and rhythm, models developed in clinically heterogeneous cohorts may capture cardiovascular comorbidity rather than a diabetes-specific signal. This overlap may reduce model specificity and obscure differences between type 1 and type 2 diabetes. Accordingly, the performance of ECG-based diabetes detection should be evaluated within clinically defined cardiac subgroups rather than only in undifferentiated case-control populations.

Stratification by documented cardiac status offers a practical way to examine this problem. Comparing patients with and without coronary artery disease, previous myocardial infarction, chronic heart failure, left ventricular ejection fraction (LVEF) ≤ 55%, valvular disease, myocardial hypertrophy, and any cardiac pathology can show where diabetes-related ECG patterns remain detectable and where cardiovascular abnormalities diminish model discrimination. Developing and interpreting models within these predefined subgroups may therefore improve clinical relevance and clarify the effect of cardiac comorbidity on single-lead ECG-based risk assessment.

This study aimed to determine how cardiovascular pathology affects machine-learning detection of type 1 and type 2 diabetes from single-lead ECG parameters. We therefore: (1): Evaluated diabetes detection separately for the two diabetes types; (2) Developed internally evaluated models within subgroups defined by the presence or absence of seven cardiac-status criteria; (3) Compared discriminatory performance across these subgroups after correction of the identified age-entry error; (4) Examined a reduced seven-predictor model as a post hoc model-complexity sensitivity analysis; and (5) Evaluated internal calibration and decision-curve net benefit from out-of-fold predictions. This design was intended to determine how cardiovascular comorbidity influences the performance and clinical interpretability of single-lead ECG-based diabetes detection in patients undergoing cardiac assessment.

MATERIALS AND METHODS

A single center study conducted at University Clinical Hospital Number 2 for the period February 5, 2022 to August 23, 2025. The study included participants with vs without DM (both first and second type). Patients were recruited from both outpatient and inpatient settings, including those undergoing examination in the endocrinology department. Recruitment was not limited to patients with optimal signal quality at enrollment; however, single exclusions were made based on predefined signal quality criteria as detailed below.

The analytical aim was to examine whether information contained in single-lead ECG parameters, together with basic anthropometric variables, could discriminate recorded diabetes status and whether cardiac comorbidity modified that discrimination. The analysis was not designed to replace established biochemical diagnostic testing or to establish a clinical screening threshold.

Traditional cardiology covariates were not added to the predictive feature set beyond the prespecified variables because the study focused on ECG-derived and basic anthropometric information. This design choice limits causal interpretation and clinical transportability; the models should be interpreted as internal classification models rather than as stand-alone diagnostic or screening instruments.

Diabetes ascertainment was based on the clinical information recorded in the source dataset, including documented diabetes diagnosis/history and current glucose-lowering treatment. The retained analytical dataset does not contain sufficient metadata to determine reliably whether the recorded glucose measurement was obtained from capillary whole blood or laboratory plasma, and the specimen type is therefore not assigned in this revision. Systematic HbA1c, C-peptide, and diabetes-associated autoantibody confirmation was not available for all participants. Diabetes status and especially diabetes subtype should therefore be interpreted as clinical-record classifications rather than uniformly biomarker-confirmed etiological diagnoses.

The study was carried out according to the principles of Good Clinical Practice and Helsinki declaration. All participants gave informed written consent to participate in the study and publish any associated results anonymously. The study protocol was approved by the Local Ethical Committee of Sechenov University. The study was also registered on the ClinicalTrials.gov website (ID: NCT04788342, https://clinicaltrials.gov/study/NCT04788342).

Patient inclusion and exclusion criteria

Patients from University Clinical Hospital Number 2 undergoing outpatient or inpatient examination and treatment, including in the endocrinology department with a diagnosis of DM, were included in the study. The inclusion and exclusion criteria are presented below.

Inclusion: (1) Patient age ≥ 18 years; and (2) Agreement to participate in the study.

Exclusion: (1) Significant changes in the morphology of the QRS complex (such as bundle branch block, atrial fibrillation, and ventricular extrasystole); (2) Poor quality ECG recorded from the fingers (Parkinson’s disease, tremor of any origin, mental disorders); (3) Chronic heart failure with reduced ejection fraction < 40 %; (4) Chronic coronary syndrome; (4) Infectious diseases at acute stage; (5) Unsatisfactory quality of ECG and/or photoplethysmogram (PPG); and (6) Withdrawal of consent for further participation in the study.

The registered eligibility criteria were applied at recruitment. The exclusion criterion “chronic coronary syndrome” referred to the clinical diagnosis used for enrollment, whereas the later “coronary artery disease without myocardial infarction” variable was a post-enrollment database history flag used for stratification and was not itself an eligibility criterion. Likewise, the heart-failure exclusion was the combined clinical condition of chronic heart failure with LVEF < 40%, whereas the LVEF subgroup variable was based on the echocardiographic measurement alone and compared LVEF ≤ 55% with LVEF > 55%, independent of a heart-failure diagnosis. Thus, the cardiac-status variables used for subgroup analyses were not additional inclusion or exclusion criteria.

Clinical data collection

The patients underwent a comprehensive examination, including the following.

Clinical examination: Collection of complaints, auscultation, palpation, percussion, assessment of edema syndrome, measurement of heart rate and blood pressure level.

Medical history analysis: Collection of cardiological history and DM history.

Transthoracic echocardiography: Performed using a GE Vivid 5 device. Assessment of cardiac chamber volumes, wall thickness, diastolic and systolic function status, and detection of valvular apparatus and major cardiac vessel dysfunction according to current guidelines[14].

Standard 12-lead ECG recording: Performed using a SCHILLER AT-5 device. Determination of temporal and amplitude ECG parameters, cardiac electrical axis direction, and assessment of cardiac cycle morphology.

Glucose assessment: Glucose-related clinical information was available in the study records; however, the retained analytical dataset does not preserve sufficient metadata to verify the specimen type (capillary whole blood vs laboratory plasma) or the exact analytical method for all observations. Accordingly, the present revision does not label the recorded glucose values as capillary or plasma measurements. Diabetes classification relied on the documented clinical diagnosis/history and treatment information available in the dataset. Systematic HbA1c, C-peptide, and diabetes-associated autoantibody confirmation was not available for all participants.

Single-channel ECG and PPG recording: Recordings were obtained with the Qardio-QVARK device (LLC “L Card”, Moscow, Russia; Federal Service for Surveillance in Healthcare registration RZN 2019/8124 dated 15.02.2019). Recordings lasted 1 minute at rest in the seated position using the device’s finger sensors and were transmitted to the cloud platform from which the tabulated ECG parameters used in this analysis were obtained. The retained analytical dataset does not permit reliable reconstruction of the exact timing of glucose ascertainment relative to ECG acquisition, so no more specific temporal claim is made.

Feature extraction and ECG quality control: The modeling file contained pre-extracted tabular ECG variables rather than raw waveforms. The retained materials document the device, recording posture, duration, and transfer to the cloud platform, but do not provide the proprietary waveform sampling rate, filtering chain, beat-delineation rules, feature units for every parameter, or a numerical signal-quality threshold. The enrollment protocol excluded unsatisfactory ECG/PPG quality, but no quantitative quality-control cutoff is available in the retained analysis materials. These unavailable acquisition/extraction details are reported as a reproducibility limitation rather than inferred.

Statistical analysis

Statistical analyses and model development were performed using Python version 3.12 and the pandas, NumPy, scikit-learn, XGBoost, statsmodels, matplotlib, and openpyxl libraries. Continuous variables were summarized using descriptive statistics, including the median, interquartile range, minimum, and maximum values. Categorical and binary variables were presented as absolute frequencies and proportions within each category.

Model discrimination was summarized primarily using AUC-receiver operating characteristics curve. Because the previously used Youden operating points were internally selected from pooled out-of-fold predictions and were not independently validated, threshold-dependent sensitivity, specificity, positive predictive value and negative predictive value were not used as primary evidence in the corrected rerun. Predictive values remain prevalence-dependent and should not be interpreted as transportable rule-out performance.

To quantify uncertainty in subgroup discrimination, 95% confidence intervals for each AUC were estimated using percentile bootstrap resampling of the pooled out-of-fold predictions (2000 resamples). For each cardiac-status criterion, the difference in discrimination was defined as ΔAUC = AUC absent - AUC present. Formal between-subgroup comparisons were performed for each assessable criterion using the resampled out-of-fold predictions, with 95% confidence intervals for ΔAUC and corresponding raw P values. To account for multiple testing, P values were adjusted using the Benjamini-Hochberg procedure across the 12 assessable type-specific comparisons; adjusted P < 0.05 was considered statistically significant. Comparisons were not performed for type 1 diabetes subgroups in which a model had not been developed because one arm contained fewer than 15 events.

All discrimination estimates reported in the manuscript were calculated from out-of-fold predictions. A consistently defined training-set AUC was not retained across all 26 subgroup models and is therefore not reported as a comparative endpoint.

Data preprocessing and dataset preparation

The original dataset comprised 2841 observations and 200 variables reflecting patients’ demographic, anthropometric, medical history, echocardiographic, and electrocardiographic characteristics. Comprehensive preprocessing was performed, including source-data quality control, restoration of corrupted values, data-type conversion, and formation of the analytical feature set.

Quality control and restoration of echocardiographic data

During the audit of variables characterizing myocardial wall thickness - interventricular septal thickness (IVS) and left ventricular posterior wall thickness (LVPW) - three independent types of data distortion arising during entry into the electronic spreadsheet were identified and corrected.

Automatic conversion to date format: Values ranging from 1.1 cm to 1.6 cm had been interpreted by the spreadsheet software as calendar dates, such as January1, February 1, and subsequent months, and stored in the corresponding date format. This affected 62 IVS observations and 60 LVPW observations. Values were restored according to the month number using the formula: Value = 1 + month/10. The validity of this procedure was supported by the fact that the range of restored month values, from 1 to 6, corresponded fully to the physiologically expected myocardial wall-thickness range of 1.1-1.6 cm.

Inconsistency in measurement units: Some values had been entered in mm rather than cm, including values of 8, 9, and 11-15. All values ≥ 3, which would be physiologically implausible if expressed in cm, were converted to a uniform scale by dividing them by 10.

Use of zero as a marker of a missing measurement: Values equal to zero, identified in 22 observations, were reclassified as missing because zero myocardial wall thickness cannot be recorded in a living patient.

Following restoration, the distributions of both variables became clinically plausible. The median was 1.1 cm, the interquartile range was 1.0-1.2 cm, and the overall range was 0.5-2.5 cm, corresponding to the spectrum from normal myocardial wall thickness to marked hypertrophy.

Missing anthropometric values were handled by complete-case analysis. For descriptive reporting, source-coded non-physiological lower-bound values in the supplied output (0 cm for height, 0 kg for weight, and body mass index 2.08 kg/m2) are not presented as physiological observations; the affected lower bounds are shown as NA in Table 1 and no replacement values were imputed. Verified source-corrected values were unavailable, so this issue is retained as a source-data quality limitation.

Table 1 Comparative characteristics according to diabetes and cardiac pathology status.
Variable
Statistic
No DM, no pathology
No DM, with pathology
DM, no pathology
DM, with pathology
Test
P value
Age, yearsmean ± SD54.01 ± 15.42 (n = 1214)67.22 ± 13.22 (n = 818)55.64 ± 15.90 (n = 278)65.36 ± 13.29 (n = 281)Kruskal-Wallis< 0.001
Median (Q1, Q3)54.00 (43.00, 67.00)69.00 (61.00, 76.00)59.00 (46.00, 68.00)67.00 (59.00, 75.00)
Min-max18.00-92.0019.00-98.0020.00-86.0021.00-89.00
Height, cmmean ± SD167.13 ± 9.34 (n = 1214)167.49 ± 12.70 (n = 818)167.67 ± 9.46 (n = 278)167.73 ± 9.77 (n = 281)Kruskal-Wallis0.122
Median (Q1, Q3)165.00 (160.00, 174.00)168.00 (160.00, 175.00)167.00 (160.00, 174.00)166.00 (160.00, 176.00)
Min-max148.00-197.00NA1, 192.00148.00-195.00140.00-190.00
Weight, kgmean ± SD78.57 ± 17.12 (n = 1214)80.46 ± 17.36 (n = 818)82.76 ± 20.02 (n = 278)86.18 ± 17.20 (n = 281)Kruskal-Wallis< 0.001
Median (Q1, Q3)78.00 (65.00, 89.00)80.00 (70.00, 90.00)80.00 (68.00, 95.00)85.00 (74.00, 97.00)
Min-max39.80-170.00NA1, 167.0050.00-150.0047.00, 140.00
BMI, kg/m2mean ± SD28.15 ± 5.84 (n = 1214)28.60 ± 5.57 (n = 816)29.41 ± 6.44 (n = 278)30.61 ± 5.59 (n = 281)Kruskal-Wallis< 0.001
Median (Q1, Q3)27.68 (23.84, 31.64)27.77 (24.81, 31.64)28.48 (24.43, 33.91)30.22 (26.63, 33.61)
Min-max14.71-61.69NA1, 53.3516.46-48.0516.26-48.49
SexMale, n (%)432 (35.58)385 (47.07)89 (32.01)127 (45.20)χ2 test< 0.001
Female, n (%)782 (64.42)423 (51.71)189 (67.99)144 (51.25)
Assessment of duplicate observations

The analytical export used for the reported models did not include a persistent patient identifier suitable for direct patient-level grouping. Duplicate screening was therefore performed using a composite key based on age, sex, height, weight, and the complete ECG feature set. This approach was used to identify exact full-record duplicates and was not treated as equivalent to patient-level linkage.

The anthropometric key identified 1519 observations sharing the same anthropometric combination, whereas only two records (0.07% of the source dataset) remained exact matches after the complete ECG parameter set was added. The two exact full-record duplicates were removed. This procedure does not exclude repeated visits from the same patient when ECG or anthropometric measurements differ between visits.

Because no verified persistent patient identifier was available in the analytical export used for this revision, patient-level grouped cross-validation and one-record-per-patient sensitivity analysis could not be performed. The reported estimates therefore represent observation-level internal validation, and possible within-patient correlation from repeated visits remains a limitation.

Formation of the analytical feature set and management of missing data

The analytical feature set comprised 52 variables: 47 quantitative single-lead ECG parameters, corresponding to columns EA-FU, and five anthropometric variables. Twenty-one columns, corresponding to FV-GP, were excluded from the analysis because they had no headings or accompanying documentation and contained data for only 41% of observations.

A complete-case strategy was applied to the ECG block and the four source anthropometric variables (age, sex, height, and weight), with body mass index calculated from height and weight. Of 2841 source observations, 2836 contained the complete 47-feature ECG block. Requiring complete ECG and anthropometric source variables left 2594 records; two exact full-record duplicates were removed, leaving 2592 records. One record with the erroneous age value of 6 years was then excluded by the age ≥ 18 eligibility filter, producing the final corrected analytical population of 2591 observations. Unique-patient counts and observations per patient could not be determined from the analytical export because it did not contain a verified persistent patient identifier. Participant/record flow for the corrected analysis is summarized below. Counts refer to observations/records; patient-level counts were not available from the analytical export: Source dataset: 2841 observations → complete 47-feature ECG block: 2836 observations (5 excluded for incomplete ECG features) → complete ECG + age/sex/height/weight records: 2594 observations (242 additional records excluded for missing source variables) → after removal of 2 exact full-record duplicates: 2592 observations → after exclusion of 1 record with erroneous age < 18 years: 2591 observations (final corrected analytical cohort) → patient-level counts/grouped validation: Not available because the analytical export did not contain a verified persistent patient identifier. No imputation was performed for the final modeling cohort.

Definition of the target variable

The target variable, located in column J, was coded at three levels in the original database: 0 - absence of DM; 1 - type 1 DM; 2 - type 2 DM. The original dataset included 2182 observations without diabetes, 214 observations with type 1 diabetes, and 445 observations with type 2 diabetes.

Given the fundamental differences in the pathogenesis of the two disease types-autoimmune destruction of pancreatic β-cells in type 1 diabetes vs insulin resistance associated with metabolic syndrome in type 2 diabetes-as well as their potentially different electrophysiological manifestations, combining both types into a single outcome class was considered methodologically inappropriate.

Such aggregation would average two distinct patterns and reduce the discriminatory resolution of the models. Therefore, the analysis was performed separately for two binary classification tasks: Type 1 DM vs absence of diabetes, with observations involving type 2 diabetes excluded entirely; type 2 DM vs absence of diabetes, with observations involving type 1 diabetes excluded entirely.

This design ensured the clinical and methodological purity of each comparison, as every model was trained to distinguish one specific disease type from its absence without contamination by the other nosological category. In the corrected analytical cohort, 2032 observations had no diabetes, 214 had type 1 diabetes, and 345 had type 2 diabetes.

Formation of clinical subgroups

In accordance with the study objectives, seven criteria of cardiac status were defined. For each criterion, the analytical sample was divided into two subgroups according to the presence or absence of the corresponding condition: Coronary artery disease without myocardial infarction, column W; history of myocardial infarction, column X; chronic heart failure, column AO; LVEF ≤ 55%, column AV; any clinically significant valvular heart disease, column CE; myocardial hypertrophy, defined as IVS thickness > 1.3 cm or LVPW thickness > 1.3 cm; any clinically significant cardiac pathology, defined as the presence of at least one of the six conditions listed above, either alone or in combination. The comparison subgroup comprised patients in whom all six conditions were documented as absent.

For the LVEF criterion, the source clinical database contained a binary field indicating LVEF > 55%. Accordingly, the two subgroups were defined as LVEF ≤ 55% and LVEF > 55%. Observations with missing values for the corresponding criterion were excluded from both subgroups because the absence of a recorded value did not permit reliable classification of the patient as either having or not having the condition. Consequently, the combined number of observations in the “present” and “absent” subgroups varied across criteria and did not necessarily correspond to the total analytical sample size. A total of 28 potential modelling scenarios were therefore defined: 7 cardiac-status criteria × 2 status categories × 2 diabetes types.

A pragmatic feasibility rule was used before model fitting: Each subgroup was required to contain at least 60 observations and at least 15 events in the target class. This rule was not an a priori formal sample-size calculation and should not be interpreted as demonstrating adequate power for a 52-predictor boosted-tree model.

Two type 1 diabetes scenarios failed even this pragmatic rule: Valvular heart disease contained five events and myocardial hypertrophy contained four events; these scenarios were not modeled. Several retained subgroups nevertheless had small event counts relative to model flexibility. Their estimates are therefore exploratory, and precision is conveyed by the reported bootstrap 95% confidence intervals rather than by a claim of model stability.

No a priori machine-learning sample-size calculation was performed for the 52-predictor boosted-tree models. Because conventional events-per-variable rules do not directly define the effective degrees of freedom of gradient boosting, we do not retrospectively label the retained subgroups as adequately powered. Instead, event counts and bootstrap confidence intervals are reported and the smaller subgroup models are treated as exploratory. The final analysis included 26 developed and validated models.

Machine-learning strategy

Pipeline architecture and feature space: The feature space of each model comprised 52 variables. The electrocardiographic block included 47 parameters covering: Temporal intervals, including RR, QTc, TpTe, VAT, and QT/TQ; wave-amplitude characteristics, including RA, SA, TA, JA, J80A, Ppeak, Rpeak, Speak, and Tpeak; energy parameters of the QRS complex and T wave, including QRSenergy, Tenergy, Tpenergy, QRSE1-QRSE4, TE1-TE4, QRS11energy, QRS12 energy, and QRS2energy; morphological boundaries of ECG complexes and waves, including QRSst, QRSfi, Pst, Pfi, Tons, Toffs, RonsF, RoffsF, and QRSw; spectral parameters, including Beta, Sbeta, HFQRS, and HFSNR; the signal-noise parameter HFNoise; the heart-rate variability measure SDNN.

The anthropometric block comprised five variables: Age, sex, height, weight, and calculated body mass index. Because tree-based ensemble classifiers are invariant to monotonic transformations of predictor variables, feature scaling and normalization were neither required nor performed. This avoided introducing an additional potential source of distortion during cross-validation.

Classification model and hyperparameters: Gradient-boosted decision trees implemented using XGBoost were selected as the primary classification algorithm. XGBoost was selected during preliminary model-development work in which alternative tree-based approaches and hyperparameter configurations were compared. Hyperparameter tuning during that preliminary development used nested cross-validation. For the 26 subgroup analyses reported in this manuscript, the final XGBoost configuration was fixed before the reported five-fold out-of-fold evaluation.

The reported subgroup AUCs therefore represent internal performance of the fixed final configuration under five-fold stratified cross-validation; they should not be described as external validation or as proof that model-selection uncertainty has been fully removed. The final model configuration is shown in Table 2.

Table 2 The final model configuration.
Hyperparameter
Value
Purpose
n_estimators1000Number of sequentially fitted trees in the ensemble
max_depth4Maximum tree depth, allowing feature interactions to be captured
learning_rate0.03Learning rate; the low value supports gradual accumulation of predictive signal
min_child_weight1Minimum observation weight required in a terminal node
reg_lambda1L2 regularization of leaf weights
subsample0.9Proportion of observations used to construct each tree
colsample_bytree0.9Proportion of features used to construct each tree
scale_pos_weightCalculated individuallyCompensation for class imbalance

Class imbalance was addressed using the scale_pos_weight parameter, calculated as the ratio of observations without diabetes to observations with diabetes. Importantly, this coefficient was calculated separately within the training portion of each data split rather than from the complete dataset. This prevented information about the class composition of the test subset from influencing the model-training process.

Alternative class-balancing strategies, including variation of the class-weight multiplier, were also evaluated but did not produce additional improvements in predictive performance. This supported the adequacy of the selected weighting strategy.

Cross-validation and classification-threshold selection: The performance of each of the 26 models was evaluated using five-fold stratified cross-validation implemented with StratifiedKFold, with shuffle = True and random_state = 42. The stratification procedure preserved the proportion of outcome classes within each fold. In each iteration, the model was trained on four folds and evaluated on the fifth fold, which had not been used during model training. Accordingly, every observation served as a test observation exactly once. The resulting out-of-fold predictions covered the entire analytical dataset.

Threshold-dependent measures were calculated from the pooled out-of-fold predictions. The operating point was selected with Youden’s index on those same pooled out-of-fold predictions. Consequently, the sensitivity, specificity, positive predictive value and negative predictive values are internally derived descriptive operating characteristics rather than performance at an independently validated threshold. The Youden operating point maximized sensitivity + specificity - 1 on the pooled out-of-fold predictions. No prespecified clinical threshold was tested in an independent cohort.

Calibration was evaluated after the age-corrected rerun using the same pooled out-of-fold probability predictions, without refitting the models. For each modeled subgroup, Brier score was calculated; calibration intercept and slope were estimated by logistic regression of the binary outcome on the logit of predicted probability, where an intercept of 0 and slope of 1 indicate ideal calibration. Reliability diagrams were summarized in probability bins. Decision-curve analysis evaluated net benefit for threshold probabilities from 0.01 to 0.50 using treat-all and treat-none strategies as references. These analyses characterize internal calibration and utility only; no threshold was independently validated. A fixed random seed, random_state = 42, was used at all stages to ensure complete reproducibility of the reported results.

Model-complexity sensitivity analysis

To address the concern that some subgroups contained relatively few outcome events for a 52-predictor boosted-tree model, an additional seven-predictor XGBoost sensitivity analysis was evaluated using the same subgroup definitions and five-fold stratified out-of-fold framework. Because the retained sensitivity-analysis output does not document the derivation of the seven-predictor set, this analysis is presented only as a post hoc model-complexity check and not as a prespecified replacement model.

Performance of the reduced model was compared descriptively with the corrected 52-predictor model using subgroup AUC. No formal superiority or non-inferiority test between the two model sizes was prespecified.

Calibration and clinical-utility analysis

Calibration and decision-curve analyses were performed from the corrected pooled out-of-fold predictions. Brier score, calibration intercept, and calibration slope were calculated for all 26 modeled subgroups. Reliability diagrams and decision curves were generated for the four headline subgroups defined by any cardiac pathology (present/absent) for type 1 and type 2 diabetes. The decision curves used threshold probabilities from 0.01 to 0.50.

RESULTS
The descriptive statistics of the sample

Table 1 has been recalculated for the corrected analytical population of 2591 observations. The four strata contain 1214 observations without diabetes and without cardiac pathology, 818 without diabetes and with cardiac pathology, 278 with diabetes and without cardiac pathology, and 281 with diabetes and cardiac pathology. Variable-specific denominators are shown where data are missing (Supplementary material).

Diagnostic performance across subgroups

The corrected full pipeline retained 26 modeled subgroups (Tables 3 and 4); two type 1 diabetes subgroups (valvular disease present and myocardial hypertrophy present) remained below the prespecified minimum of 15 target events and were not modeled.

Table 3 Corrected discrimination of the 52-predictor model: Type 1 diabetes mellitus vs absence of diabetes.
Subgroup
n
n (DM)
Prevalence
AUC
95%CI
CAD without MI (W) - present338600.1780.7130.637-0.786
CAD without MI (W) - absent19081540.0810.6600.614-0.705
History of MI (X) - present189240.1270.8040.710-0.890
History of MI (X) - absent20571900.0920.6680.621-0.713
CHF (AO) - present511520.1020.6850.605-0.770
CHF (AO) - absent17351620.0930.6800.634-0.723
LVEF ≤ 55% (AV) - present153180.1180.6690.513-0.809
LVEF ≤ 55% (AV) - absent20931960.0940.7100.668-0.749
Any valvular heart disease (CE) - present28450.018Not modeled-
Any valvular heart disease (CE) - absent19622090.1070.6750.636-0.716
Myocardial hypertrophy - present15440.026Not modeled-
Myocardial hypertrophy - absent20922100.1000.7020.661-0.741
Any cardiac pathology - present905870.0960.7140.653-0.774
Any cardiac pathology - absent13411270.0950.7110.663-0.760
Table 4 Corrected discrimination of the 52-predictor model: Type 2 diabetes mellitus vs absence of diabetes.
Subgroup
n
n (DM)
Prevalence
AUC
95%CI
CAD without MI (W) - present332540.1630.5660.486-0.645
CAD without MI (W) - absent20452910.1420.6810.646-0.714
History of MI (X) - present216510.2360.6620.568-0.752
History of MI (X) - absent21612940.1360.6930.657-0.727
CHF (AO) - present5671080.1900.6550.599-0.713
CHF (AO) - absent18102370.1310.6590.620-0.697
LVEF ≤ 55% (AV) - present166310.1870.5430.425-0.663
LVEF ≤ 55% (AV) - absent22113140.1420.6690.637-0.701
Any valvular heart disease (CE) - present369900.2440.6770.612-0.743
Any valvular heart disease (CE) - absent20082550.1270.6550.621-0.690
Myocardial hypertrophy - present193430.2230.6150.518-0.708
Myocardial hypertrophy - absent21843020.1380.6740.640-0.708
Any cardiac pathology - present10121940.1920.6370.593-0.681
Any cardiac pathology - absent13651510.1110.7160.672-0.758
Effect of cardiac pathology on discrimination

After correction of the age-entry error and rerunning the entire pipeline, the formal between-subgroup results changed. No ΔAUC comparison remained statistically significant after Benjamini-Hochberg adjustment across the 12 assessable comparisons (Figure 1; Tables 5 and 6).

Figure 1
Figure 1 Corrected subgroup area under the receiver operating characteristics curve values after exclusion of the erroneous age record. Points show area under the receiver operating characteristics curve-receiver operating characteristics curve for models stratified by the presence or absence of each cardiac-status criterion. Two type 1 diabetes subgroups with fewer than 15 events were not modeled. The vertical reference lines indicate area under the receiver operating characteristics curve 0.50 and 0.70; the 070 line is descriptive only and is not a validated clinical threshold. CAD: Coronary artery disease; MI: Myocardial infarction; CHF: Chronic heart failure; LVEF: Left ventricular ejection fraction; AUC: Area under the receiver operating characteristic curve; ROC: Receiver operating characteristic.
Table 5 Corrected comparison of discrimination according to cardiac-pathology status: Type 1 diabetes mellitus.
Criterion
AUC present
AUC absent
ΔAUC (absent-present)
95%CI ΔAUC
Raw P value
BH-adjusted P value
CAD without MI (W)0.7130.660-0.053-0.139 to 0.0350.2420.524
History of MI (X)0.8040.668-0.135-0.231 to -0.0300.0090.064
CHF (AO)0.6850.680-0.006-0.100 to 0.0850.9040.938
LVEF ≤ 55% (AV)0.6690.710+0.040-0.112 to 0.1960.6360.848
Any valvular heart disease (CE)-0.675----
Myocardial hypertrophy-0.702----
Any cardiac pathology0.7140.711-0.003-0.077 to 0.0690.9380.938
Table 6 Corrected comparison of discrimination according to cardiac-pathology status: Type 2 diabetes mellitus.
Criterion
AUC present
AUC absent
ΔAUC (absent-present)
95%CI ΔAUC
Raw P value
BH-adjusted P value
CAD without MI (W)0.5660.681+0.1150.026-0.2040.0140.064
History of MI (X)0.6620.693+0.030-0.068 to 0.1280.5580.837
CHF (AO)0.6550.659+0.004-0.063 to 0.0730.9250.938
LVEF ≤ 55% (AV)0.5430.669+0.1250.007-0.2470.0430.129
Any valvular heart disease (CE)0.6770.655-0.022-0.093 to 0.0520.5490.837
Myocardial hypertrophy0.6150.674+0.060-0.045 to 0.1670.2620.524
Any cardiac pathology0.6370.716+0.0790.016-0.1410.0160.064
Reduced-feature sensitivity analysis

Across the 26 evaluable subgroup models, the seven-predictor sensitivity model had a higher AUC than the 52-predictor model in 17 and a lower AUC in 9. The median descriptive AUC difference (seven predictors minus 52 predictors) was +0.008, with a range from -0.062 to +0.152. Median AUC changed from 0.675 for the 52-predictor models to 0.683 for the reduced models when all 26 subgroup models were considered together. Because feature selection for the supplied reduced-model summary was not preserved in the retained output, these findings are treated as a post hoc complexity sensitivity analysis rather than evidence that a specific seven-feature model is clinically preferable (Figure 2; Table 7).

Figure 2
Figure 2 Reliability diagrams (upper panels) and decision-curve analyses (lower panels) for the headline subgroups defined by any cardiac pathology, shown separately for type 1 and type 2 diabetes. Decision curves were evaluated over threshold probabilities from 0.01 to 0.50. The model provided positive net benefit relative to treating none across portions of the plotted range, but superiority over a treat-all strategy was threshold-dependent and not uniform. These curves therefore do not establish a single clinically validated decision threshold. T1DM: Type 1 diabetes mellitus; T2DM: Type 2 diabetes mellitus.
Table 7 Descriptive comparison of the corrected 52-predictor model and the seven-predictor sensitivity model.
Diabetes
Subgroup
Events
AUC: 52 predictors
AUC: 7 predictors
ΔAUC (7-52)
Type 1CAD without MI (W) - present600.7130.729+0.016
Type 1CAD without MI (W) - absent1540.6600.653-0.007
Type 1History of MI (X) - present240.8040.750-0.054
Type 1History of MI (X) - absent1900.6680.671+0.003
Type 1CHF (AO) - present520.6850.725+0.040
Type 1CHF (AO) - absent1620.6800.674-0.006
Type 1LVEF ≤ 55% (AV) - present180.6690.821+0.152
Type 1LVEF ≤ 55% (AV) - absent1960.7100.692-0.018
Type 1Any valvular heart disease (CE) - absent2090.6750.691+0.016
Type 1Myocardial hypertrophy - absent2100.7020.681-0.021
Type 1Any cardiac pathology - present870.7140.781+0.067
Type 1Any cardiac pathology - absent1270.7110.672-0.039
Type 2CAD without MI (W) - present540.5660.636+0.070
Type 2CAD without MI (W) - absent2910.6810.691+0.010
Type 2History of MI (X) - present510.6620.649-0.013
Type 2History of MI (X) - absent2940.6930.696+0.003
Type 2CHF (AO) - present1080.6550.665+0.010
Type 2CHF (AO) - absent2370.6590.685+0.026
Type 2LVEF ≤ 55% (AV) - present310.5430.551+0.008
Type 2LVEF ≤ 55% (AV) - absent3140.6690.697+0.028
Type 2Any valvular heart disease (CE) - present900.6770.691+0.014
Type 2Any valvular heart disease (CE) - absent2550.6550.659+0.003
Type 2Myocardial hypertrophy - present430.6150.583-0.032
Type 2Myocardial hypertrophy - absent3020.6740.699+0.025
Type 2Any cardiac pathology - present1940.6370.644+0.007
Type 2Any cardiac pathology - absent1510.7160.653-0.062
Calibration and decision-curve analysis

Calibration analysis was available for all 26 modeled subgroups. Brier scores ranged from 0.075 to 0.229. Calibration intercepts were negative in every subgroup (range: -1.287 to -0.535), and calibration slopes were substantially below 1 (range: 0.078-0.467), indicating material internal miscalibration and overly extreme probability estimates despite moderate discrimination (Table 8).

Table 8 Internal calibration metrics calculated from corrected out-of-fold predictions.
Diabetes
Subgroup
n
Events
Brier
Calibration intercept
Calibration slope
Type 1CAD without MI (W) - present338600.144-0.6050.327
Type 1CAD without MI (W) - absent19081540.075-1.2280.319
Type 1History of MI (X) - present189240.102-0.5350.462
Type 1History of MI (X) - absent20571900.082-1.1260.369
Type 1CHF (AO) - present511520.088-0.8770.322
Type 1CHF (AO) - absent17351620.083-1.0020.378
Type 1LVEF ≤ 55% (AV) - present153180.114-1.0950.262
Type 1LVEF ≤ 55% (AV) - absent20931960.079-0.8650.467
Type 1Any valvular heart disease (CE) - absent19622090.094-1.0200.384
Type 1Myocardial hypertrophy - absent20922100.084-0.9030.449
Type 1Any cardiac pathology - present905870.077-0.6980.407
Type 1Any cardiac pathology - absent13411270.083-0.8470.386
Type 2CAD without MI (W) - present332540.167-1.2870.104
Type 2CAD without MI (W) - absent20452910.120-0.8120.425
Type 2History of MI (X) - present216510.188-0.6240.270
Type 2History of MI (X) - absent21612940.117-0.8640.433
Type 2CHF (AO) - present5671080.163-0.7320.270
Type 2CHF (AO) - absent18102370.117-0.9750.338
Type 2LVEF ≤ 55% (AV) - present166310.179-1.2210.078
Type 2LVEF ≤ 55% (AV) - absent22113140.124-0.9470.386
Type 2Any valvular heart disease (CE) - present369900.200-0.5970.264
Type 2Any valvular heart disease (CE) - absent20082550.117-1.0520.328
Type 2Myocardial hypertrophy - present193430.229-0.9180.138
Type 2Myocardial hypertrophy - absent21843020.120-0.9070.399
Type 2Any cardiac pathology - present10121940.164-0.8070.269
Type 2Any cardiac pathology - absent13651510.096-0.6410.424
DISCUSSION

In the corrected analysis, single-lead ECG plus anthropometric variables provided moderate discrimination for recorded diabetes status across cardiovascular subgroups. Median AUC was 0.693 for type 1 diabetes and 0.661 for type 2 diabetes. The highest corrected AUCs were 0.804 for type 1 diabetes in the subgroup with previous myocardial infarction and 0.716 for type 2 diabetes in participants without any recorded cardiac pathology. These estimates should be interpreted as internal observation-level performance rather than external validation.

The corrected ΔAUC analysis materially changes the earlier interpretation of cardiac comorbidity as a statistically established effect modifier. Although several raw comparisons suggested differences between pathology-present and pathology-absent groups, none of the 12 assessable comparisons remained statistically significant after Benjamini-Hochberg correction. The smallest adjusted p value was 0.064. Accordingly, the revised manuscript describes these subgroup differences as exploratory patterns rather than confirmed effects.

Relationship to companion publications. Two related reports from the same prospective research program[22,23] may include overlapping participants and therefore should not be interpreted as independent replication cohorts. Those reports addressed related but distinct ECG-based diabetes modeling questions, whereas the present study focuses on cardiac-comorbidity subgroup effects in the corrected age-eligible cohort and additionally reports multiplicity-adjusted subgroup comparisons, calibration, decision-curve analysis, and a reduced-feature sensitivity analysis. The present results are therefore not presented as externally replicated by references 22 or 23.

The post hoc seven-predictor sensitivity analysis provides useful context for the concern about model dimensionality in small-event subgroups. Discrimination was descriptively similar overall: 17 of 26 subgroup AUCs increased and 9 decreased, with a median difference of only +0.008. This suggests that the discrimination signal is not necessarily dependent on retaining all 52 predictors. However, because the retained reduced-model output does not document the feature-selection procedure and no formal non-inferiority analysis was prespecified, this sensitivity analysis cannot establish an optimal reduced clinical model.

Calibration findings are an important limitation. All calibration slopes were substantially below 1 and all intercepts were negative, indicating that the out-of-fold probability estimates were not well calibrated. Decision-curve analysis showed that net benefit was strongly dependent on the chosen threshold and did not demonstrate uniform dominance over the reference strategies. These findings reinforce the decision to remove rule-out and laboratory-testing-reduction claims. AUC discrimination alone is insufficient to support interpretation of the model output as an individual disease probability or to select a clinical action threshold.

Several aspects of the analytical design reduce some sources of optimistic bias: Performance was calculated from out-of-fold predictions, class weighting was determined within each training split, and the corrected analysis used the same fixed XGBoost configuration across subgroup reruns. Duplicate screening based on the combined anthropometric and complete ECG key identified only two exact full-record duplicates, which were removed. However, the composite key is not equivalent to a persistent patient identifier, and repeated visits with changed measurements cannot be excluded. Consequently, the reported cross-validation remains observation-level rather than patient-grouped.

The study has additional limitations. It was conducted at a single specialized center among patients referred for cardiac assessment, and the subgroup without recorded cardiac pathology should not be interpreted as a healthy population. Several subgroups contain relatively few diabetes events. The minimum of 15 events was a pragmatic feasibility rule rather than a formal sample-size criterion; therefore, small-event results remain exploratory and their bootstrap confidence intervals should be considered when judging precision. The age value of 6 years was confirmed as a data-entry error, excluded by the eligibility filter, and the full pipeline was rerun. The supplied descriptive output also contained non-physiological anthropometric lower-bound values; these are reported as NA rather than interpreted as physiological measurements because verified source-corrected values were unavailable.

Diabetes ascertainment is also limited by the retained data. The analytical dataset does not preserve sufficient metadata to determine reliably whether the recorded glucose measurement was capillary whole blood or laboratory plasma, and systematic HbA1c, C-peptide, and autoantibody confirmation was not available for all participants. Diabetes status and subtype should therefore be understood as clinical-record classifications rather than a uniformly biomarker-confirmed reference standard.

Potential misclassification of diabetes type remains possible. Without systematic C-peptide and diabetes-associated autoantibody testing, latent autoimmune diabetes in adults could have been recorded as type 2 diabetes, while some long-standing insulin-treated type 2 diabetes cases could have been classified clinically as type 1 diabetes. The study-specific misclassification rate cannot be estimated from the retained data, and such misclassification could attenuate observed differences between the type-specific models.

Overall, the corrected results support the presence of an internal discriminatory signal but not a validated clinical screening strategy. The combination of moderate AUC, absence of multiplicity-adjusted subgroup differences, suboptimal probability calibration, threshold-dependent decision-curve results, and the remaining need for patient-grouped and external validation argues for cautious interpretation.

CONCLUSION

Single-lead ECG combined with basic anthropometric data showed moderate internal discrimination for recorded diabetes status after correction of the age-entry error and complete rerunning of the analysis pipeline. No cardiac-pathology ΔAUC comparison remained statistically significant after Benjamini-Hochberg adjustment. A post hoc seven-predictor sensitivity analysis produced broadly similar discrimination, but the corrected models showed substantial probability miscalibration and decision-curve benefit was threshold-dependent. The findings therefore do not establish a clinical screening, rule-out, or laboratory-triage tool. Patient-level grouped validation, independent threshold validation, external multicenter validation, and further source-data quality control are required before clinical implementation.

References
1.  Pan C, Cao B, Fang H, Liu Y, Zhang S, Luo W, Wu Y. Global burden of diabetes mellitus 1990-2021: epidemiological trends, geospatial disparities, and risk factor dynamics. Front Endocrinol (Lausanne). 2025;16:1596127.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 23]  [Cited by in RCA: 28]  [Article Influence: 28.0]  [Reference Citation Analysis (1)]
2.  International Diabetes Federation.   IDF Diabetes Atlas 2025. [cited 25 Jul 2025]. Available from: https://diabetesatlas.org/resources/idf-diabetes-atlas-2025/.  [PubMed]  [DOI]
3.  Islam K, Islam R, Nguyen I, Malik H, Pirzadah H, Shrestha B, Lentz IB, Shekoohi S, Kaye AD. Diabetes Mellitus and Associated Vascular Disease: Pathogenesis, Complications, and Evolving Treatments. Adv Ther. 2025;42:2659-2678.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 42]  [Cited by in RCA: 59]  [Article Influence: 59.0]  [Reference Citation Analysis (0)]
4.  Wu H, Norton V, Cui K, Zhu B, Bhattacharjee S, Lu YW, Wang B, Shan D, Wong S, Dong Y, Chan SL, Cowan D, Xu J, Bielenberg DR, Zhou C, Chen H. Diabetes and Its Cardiovascular Complications: Comprehensive Network and Systematic Analyses. Front Cardiovasc Med. 2022;9:841928.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 35]  [Cited by in RCA: 33]  [Article Influence: 8.3]  [Reference Citation Analysis (1)]
5.  Lu Y, Wang W, Liu J, Xie M, Liu Q, Li S. Vascular complications of diabetes: A narrative review. Medicine (Baltimore). 2023;102:e35285.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Cited by in Crossref: 101]  [Cited by in RCA: 86]  [Article Influence: 28.7]  [Reference Citation Analysis (1)]
6.  Sacks DB, Arnold M, Bakris GL, Bruns DE, Horvath AR, Kirkman MS, Lernmark A, Metzger BE, Nathan DM; National Academy of Clinical Biochemistry;  Evidence-Based Laboratory Medicine Committee of the American Association for Clinical Chemistry. Guidelines and recommendations for laboratory analysis in the diagnosis and management of diabetes mellitus. Diabetes Care. 2011;34:e61-e99.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 345]  [Cited by in RCA: 322]  [Article Influence: 21.5]  [Reference Citation Analysis (1)]
7.  Jabara M, Kose O, Perlman G, Corcos S, Pelletier MA, Possik E, Tsoukas M, Sharma A. Artificial Intelligence-Based Digital Biomarkers for Type 2 Diabetes: A Review. Can J Cardiol. 2024;40:1922-1933.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Cited by in Crossref: 17]  [Cited by in RCA: 12]  [Article Influence: 6.0]  [Reference Citation Analysis (0)]
8.  Mackenzie SC, Sainsbury CAR, Wake DJ. Diabetes and artificial intelligence beyond the closed loop: a review of the landscape, promise and challenges. Diabetologia. 2024;67:223-235.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 72]  [Cited by in RCA: 42]  [Article Influence: 21.0]  [Reference Citation Analysis (3)]
9.  Shapiro MR, Tallon EM, Brown ME, Posgai AL, Clements MA, Brusko TM. Leveraging artificial intelligence and machine learning to accelerate discovery of disease-modifying therapies in type 1 diabetes. Diabetologia. 2025;68:477-494.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 15]  [Cited by in RCA: 13]  [Article Influence: 13.0]  [Reference Citation Analysis (0)]
10.  Sriram RD, Reddy SSK. Artificial Intelligence and Digital Tools: Future of Diabetes Care. Clin Geriatr Med. 2020;36:513-525.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Cited by in Crossref: 27]  [Cited by in RCA: 17]  [Article Influence: 2.8]  [Reference Citation Analysis (1)]
11.  Khokhar PB, Gravino C, Palomba F. Advances in artificial intelligence for diabetes prediction: insights from a systematic literature review. Artif Intell Med. 2025;164:103132.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Cited by in Crossref: 35]  [Cited by in RCA: 19]  [Article Influence: 19.0]  [Reference Citation Analysis (0)]
12.  Guan Z, Li H, Liu R, Cai C, Liu Y, Li J, Wang X, Huang S, Wu L, Liu D, Yu S, Wang Z, Shu J, Hou X, Yang X, Jia W, Sheng B. Artificial intelligence in diabetes management: Advancements, opportunities, and challenges. Cell Rep Med. 2023;4:101213.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 210]  [Cited by in RCA: 121]  [Article Influence: 40.3]  [Reference Citation Analysis (3)]
13.  Maheshwari S, Kalia A, Tewari J, Tewari A, Srivastava A, Dantu R, Sachan AK, Verma N, Maheshwari A. Artificial intelligence for diabetes management - a review. J Diabetes Metab Disord Control. 2025;12:24-32.  [PubMed]  [DOI]  [Full Text]
14.  Lancellotti P, Zamorano JL, Habib G, Badano L.   The EACVI Textbook of Echocardiography. Oxford: ESC Publications, 2016.  [PubMed]  [DOI]  [Full Text]
15.  Kulkarni AR, Patel AA, Pipal KV, Jaiswal SG, Jaisinghani MT, Thulkar V, Gajbhiye L, Gondane P, Patel AB, Mamtani M, Kulkarni H. Machine-learning algorithm to non-invasively detect diabetes and pre-diabetes from electrocardiogram. BMJ Innov. 2023;9:32-42.  [PubMed]  [DOI]  [Full Text]
16.  Lin CS, Lee YT, Fang WH, Lou YS, Kuo FC, Lee CC, Lin C. Deep Learning Algorithm for Management of Diabetes Mellitus via Electrocardiogram-Based Glycated Hemoglobin (ECG-HbA1c): A Retrospective Cohort Study. J Pers Med. 2021;11:725.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 18]  [Cited by in RCA: 30]  [Article Influence: 6.0]  [Reference Citation Analysis (0)]
17.  Koga D, Kaneda R, Komiya C, Ohno S, Takeuchi A, Hara K, Horino M, Aoki J, Okazaki R, Ishii R, Murakami M, Tsujimoto K, Ikeda K, Katagiri H, Shimizu H, Yamada T. Artificial intelligence identifies individuals with prediabetes using single-lead electrocardiograms. Cardiovasc Diabetol. 2025;24:415.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 7]  [Cited by in RCA: 7]  [Article Influence: 7.0]  [Reference Citation Analysis (0)]
18.  Irlik K, Aldosari H, Hendel M, Kwiendacz H, Piaśnik J, Kulpa J, Ignacy P, Boczek S, Herba M, Kegler K, Coenen F, Gumprecht J, Zheng Y, Lip GYH, Alam U, Nabrdalik K. Artificial intelligence-enhanced electrocardiogram analysis for identifying cardiac autonomic neuropathy in patients with diabetes. Diabetes Obes Metab. 2024;26:2624-2633.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Cited by in Crossref: 6]  [Cited by in RCA: 6]  [Article Influence: 3.0]  [Reference Citation Analysis (0)]
19.  Simova I, Christov I, Bortolan G. A review on electrocardiographic changes in diabetic patients. Curr Diabetes Rev. 2015;11:102-106.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Cited by in Crossref: 6]  [Cited by in RCA: 8]  [Article Influence: 0.7]  [Reference Citation Analysis (0)]
20.  Chowdhury M, Nevitt S, Eleftheriadou A, Kanagala P, Esa H, Cuthbertson DJ, Tahrani A, Alam U. Cardiac autonomic neuropathy and risk of cardiovascular disease and mortality in type 1 and type 2 diabetes: a meta-analysis. BMJ Open Diabetes Res Care. 2021;9:e002480.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 13]  [Cited by in RCA: 82]  [Article Influence: 16.4]  [Reference Citation Analysis (2)]
21.  Marzoog BA, Kopylov P. Machine learning detection of metabolic syndrome through single-lead electrocardiography: Digital phenotyping of cardiac electrical alterations. Biomed Signal Process Control. 2026;116:109616.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Cited by in RCA: 1]  [Reference Citation Analysis (0)]
22.  Karbovskaya AD, Marzoog BA, Stroeva A, Chomakhidze P, Gognieva D, Kuznetsova N, Syrkin A, Fadeev VV, Poluboyarinova IV, Ismailova SM, Suvorov A, Kopylov P. Discriminating diabetes mellitus from single-lead electrocardiography using machine learning and multinomial regression. World J Cardiol. 2026;18:116115.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in RCA: 2]  [Reference Citation Analysis (0)]
23.  Karbovskaya AD, Marzoog BA, Stroeva A, Suvorov A, Chomakhidze P, Gognieva D, Kuznetsova N, Syrkin A, Fadeev VV, Ismailova SM, Poluboyarinova IV, Kopylov P. Machine learning-based detection of diabetes mellitus from single-lead electrocardiography: A phenotype-stratified approach. World J Cardiol. 2026;18:116217.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in RCA: 3]  [Reference Citation Analysis (0)]
24.  Marzoog BA, Chomakhidze P, Gognieva D, Silantyev A, Suvorov A, Abdullaev M, Mozzhukhina N, Filippova DA, Kostin SV, Kolpashnikova M, Ershova N, Ushakov N, Mesitskaya D, Kopylov P. Development and validation of a machine learning model for diagnosis of ischemic heart disease using single-lead electrocardiogram parameters. World J Cardiol. 2025;17:104396.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Full Text (PDF)]  [Cited by in Crossref: 7]  [Cited by in RCA: 7]  [Article Influence: 7.0]  [Reference Citation Analysis (1)]
25.  Marzoog BA. The Metabolic Syndrome Puzzles; Possible Pathogenesis and Management. Curr Diabetes Rev. 2023;19:e290422204258.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Cited by in Crossref: 13]  [Cited by in RCA: 23]  [Article Influence: 7.7]  [Reference Citation Analysis (1)]
26.  Marzoog B. Lipid Behavior in Metabolic Syndrome Pathophysiology. Curr Diabetes Rev. 2022;18:e150921196497.  [RCA]  [PubMed]  [DOI]  [Full Text]  [Cited by in Crossref: 19]  [Cited by in RCA: 21]  [Article Influence: 5.3]  [Reference Citation Analysis (1)]
Footnotes

Peer review: Externally peer reviewed.

Peer-review model: Single blind

Specialty type: Cardiac and cardiovascular systems

Country of origin: Russia

Peer-review report’s classification

Scientific quality: Grade B, Grade B, Grade B, Grade C

Novelty: Grade B, Grade B, Grade B, Grade C

Creativity or innovation: Grade B, Grade C, Grade C, Grade C

Scientific significance: Grade B, Grade B, Grade B, Grade C

P-Reviewer: Arafat AMA, Assistant Professor, Associate Faculty, Consultant, MD, Postdoc, Postdoctoral Fellow, Senior Postdoctoral Fellow, Egypt; Patel NN, Academic Fellow, MD, United States S-Editor: Hu XY L-Editor: A P-Editor: Zhao YQ

Write to the Help Desk