Applied Sciences

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

Computational

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

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