An Explainable Machine Learning Framework for Classifying Vascular Complications in Patients with Type 2 Diabetes Using Feature Selection and Optimized Random Forest
Year: 2026
Type: article
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.
Source: Applied Sciences
DOI: 10.3390/app162311642
Authors: Mehmet Ferit Gürsu(Conceptualization, Formal analysis, Methodology, Validation), Cebrail Barut(Conceptualization, Investigation, Software, Visualization, Writing – original draft), Ahmet Yılmaz(Data curation, Resources, Validation), Erhan Önalan(Funding acquisition, Project administration, Supervision, Writing – review & editing)
Institution: Fırat University
Language: English
Subfield: Health Information Management
Field: Health Professions
Domain: Health Sciences
Keywords: vascular complications, type 2 diabetes, microvascular complications, macrovascular complications, explainable machine learning, feature selection, random forest, hyperparameter optimization, tree-structured Parzen estimator, Optuna, decision rule extraction, if-then rules, clinical risk prediction, feature importance
Open Access status: gold
Estimated APC paid: $2,896
Award: G9001756643
OpenAlex ID: W7239406153
