Enhancing diabetes classification performance using XGBoost integrated with SMOTE and bayesian hyperparameter optimization

Authors

  • Muhammad Nurul Ihyaul Ulum Department of Computer Science, Universitas Negeri Semarang, Indonesia Author
  • Jumanto Unjung Department of Computer Science, Universitas Negeri Semarang, Indonesia Author

DOI:

https://doi.org/10.52465/joscex.v7i1.3

Keywords:

Diabetes classification, XGboost, SMOTE, Bayesian optimization, ROC

Abstract

Diabetes mellitus is a long-term metabolic disorder that is becoming more common around the world. Finding people at risk early can help prevent serious health problems and improve patient outcomes. Machine learning is often used to predict diabetes, but imbalanced medical data can make it harder for models to spot positive cases. In this study, we created a diabetes classification model by combining the Extreme Gradient Boosting (XGBoost) algorithm with the Synthetic Minority Over-sampling Technique (SMOTE), and we used Bayesian Optimization to fine-tune the model’s settings. We worked with the Pima Indians Diabetes Dataset, which has 768 patient records and eight clinical features. Our steps included preprocessing the data, splitting it into training and testing sets, using SMOTE to balance the training data classes, training the XGBoost model, and performing hyperparameter tuning using Bayesian Optimization with Stratified 5-Fold Cross-Validation to determine the optimal parameter configuration. The final model reached an accuracy of 0.88, a precision of 0.79, a recall of 0.91, an F1-score of 0.84, and a ROC-AUC of 0.955. These results show that our approach can identify diabetes cases more effectively while keeping strong overall performance.

Downloads

Published

18-03-2026

Issue

Section

Articles

How to Cite

Enhancing diabetes classification performance using XGBoost integrated with SMOTE and bayesian hyperparameter optimization. (2026). Journal of Soft Computing Exploration, 7(1), 9-18. https://doi.org/10.52465/joscex.v7i1.3

Similar Articles

You may also start an advanced similarity search for this article.