An Explainable Machine Learning Framework for Classifying Vascular Complications in Patients with Type 2 Diabetes Using Feature Selection and Optimized Random Forest

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.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2026-11-24
DOI
https://doi.org/10.3390/app162311642
Primary Topic
Artificial Intelligence in Healthcare
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

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, Erhan Önalan, Cebrail Barut, Ahmet Yılmaz
3 links
Applied Sciences
Artificial Intelligence in Healthcare
article

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, Erhan Önalan, Cebrail Barut, Ahmet Yılmaz
article en

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.

Applied SciencesVol. 16(23)
Fırat University (TR)
Firat Üniversitesi, Firat University Scientific Research Projects Management Unit
Good health and well-being
Artificial Intelligence in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon