An Explainable Machine Learning Framework for Classifying Vascular Complications in Patients with Type 2 Diabetes Using Feature Selection and Optimized Random Forest
Mehmet Ferit Gürsu, Cebrail Barut, Ahmet Yılmaz, Erhan Önalan
Key points
From the paper's conclusion- Overall, the findings suggest that the proposed framework can provide accurate and interpretable classification of vascular complications using a reduced set of clinical and biochemical predictors.
Abstract
Accurate classification of vascular complications is essential for identifying clinically relevant patterns and supporting data-driven risk assessment. This study proposes an interpretable machine learning framework that integrates feature selection, hyperparameter optimization, and decision-rule extraction for classifying vascular complication status. The proposed approach was evaluated using a dataset comprising 91 observations distributed across three categories: patients without complications, patients with microvascular complications, and patients with macrovascular complications. Initially, Random Forest feature importance was employed to rank 47 demographic, clinical, and biochemical predictors, and different feature subsets were systematically evaluated to identify an effective configuration. Subsequently, Optuna with the Tree-structured Parzen Estimator (TPE) was utilized to optimize Random Forest hyperparameters, while five-fold nested cross-validation was applied to assess predictive performance. The results demonstrated that the proposed framework achieved a mean accuracy of 95.61% ± 2.20%, a weighted F1-score of 95.59% ± 2.21%, and a macro F1-score of 95.62% ± 2.20% using only 15 predictors, corresponding to a 68.09% reduction in feature dimensionality without compromising classification performance. The proposed method outperformed nine benchmark machine learning algorithms, including XGBoost, CatBoost, and Extra Trees. An additional stability analysis using 10 repetitions of five-fold nested cross-validation, with feature-count selection performed within the inner folds, yielded a mean accuracy of 95.71% ± 0.81%, a weighted F1-score of 95.70% ± 0.81%, and a macro F1-score of 95.72% ± 0.80%, indicating relatively consistent internal predictive performance across different data partitions. Furthermore, class-specific ROC-AUC values of 0.995, 0.985, and 0.967 indicated strong discriminative performance across the three clinical categories. To enhance interpretability, IF–THEN decision rules were extracted from the optimized Random Forest model and ranked according to their predictive characteristics. Overall, the findings suggest that the proposed framework can provide accurate and interpretable classification of vascular complications using a reduced set of clinical and biochemical predictors. Nevertheless, external validation on larger and more diverse patient cohorts is necessary before clinical implementation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Integrated Cardio-Renal-Metabolic Risk Profiling in Patients with Type 2 Diabetes: A Machine Learning-Assisted Cross-Sectional Analysis.Journal of clinical medicine · 2026
- Development and validation of an explainable machine learning model for differentiating diabetic nephropathy from diabetic retinopathy in patients with type 2 diabetes.Frontiers in endocrinology · 2026
- Carotid plaque detection in patients with type 2 diabetes: development, interpretability, and limited transportability of a clinical model.Endocrine · 2026
- 308 Development and Validation of an Interpretable Machine Learning Model for the Risk Assessment of Diabetic Nephropathy Among Patients With Different Hypertension Phenotypes: A Cross-sectional StudyAmerican Journal of Clinical Pathology · 2026
- Diagnostic model based on machine learning with multi-feature analysis for diabetic peripheral neuropathy in type 2 diabetes: A single-center retrospective study.Journal of diabetes investigation · 2026
- Exploration of a Multimodal Machine Learning Model Integrating Ultrasound and Clinical Indicators for the Diagnosis of Diabetic Peripheral NeuropathyJournal of Ultrasound in Medicine · 2026