Metaheuristic Class Balancing and Hyperparameter Optimization for Diabetes Classification: A Two-Stage PSO-GA Framework.
Muhammad Ali Abid, Muhammad Irfan Saeed, Farhan Amin, Isabel de la Torre, Mirtha Silvana Garat de Marin, Eduardo Silva Alvarado
Department of Artificial Intelligence, University of Agriculture, Dera Ismail Khan 29050, Pakistan. · School of Computer Science and Engineering, Yeungnam University, Gyeongsan 38541, Republic of Korea.
Key points
From the paper's conclusion- The findings demonstrate the potential of metaheuristic optimization for improving classification performance in imbalanced health datasets.
Abstract
BACKGROUND/OBJECTIVES: Accurate identification of individuals with diabetes or prediabetes from population health data can support screening and population-level disease management. However, substantial class imbalance in health datasets can bias machine learning classifiers toward the majority class and reduce the detection of affected individuals. This study proposes a two-stage metaheuristic machine learning framework combining Particle Swarm Optimization (PSO)-based class balancing with Genetic Algorithm (GA)-based classifier optimization for diabetes classification using health, behavioral, demographic, and socioeconomic information. METHODS: The proposed framework integrates two optimization stages. First, Particle Swarm Optimization (PSO) is used to select majority-class training observations to address class imbalance. Second, a Genetic Algorithm (GA) is applied to optimize the hyperparameters of three classifiers: Multilayer Perceptron (MLP), implemented as an Artificial Neural Network (ANN); Extreme Gradient Boosting (XGBoost) version 3.4.1; and Random Forest (RF). The framework is evaluated using the CDC Diabetes Health Indicators dataset, comprising 253,680 observations and 21 predictors. Predictive performance is compared across the original imbalanced data, random undersampling, and PSO-based balancing using Accuracy, Specificity, ROC-AUC, and average precision. RESULTS: The proposed PSO-GA framework demonstrates strong discrimination between individuals with and without diabetes/prediabetes. The best-performing model achieves a ROC-AUC of approximately 0.95, an average precision of 0.87, and an accuracy of 0.90 in the reported evaluation. These findings suggest that combining optimization-based class balancing with evolutionary hyperparameter tuning can support predictive modeling in imbalanced population health datasets. CONCLUSIONS: The proposed two-stage PSO-GA framework provides a systematic approach to diabetes classification by integrating majority-class sample selection with hyperparameter optimization of ANN, XGBoost, and RF classifiers. The findings demonstrate the potential of metaheuristic optimization for improving classification performance in imbalanced health datasets. Further validation using independent populations and prospective healthcare data is required before clinical deployment.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Adaptive deep learning for diabetes detection: Integrating progressive-growth DNN with PSO-GA optimization.Technology and health care : official journal of the European Society for Engineering and Medicine · 2026
- D-HGFS: A Hybrid Greedy Forward Selection Framework for Robust Diabetes Prediction on Imbalanced DatasetsFuture Internet · 2026
- Risk-burden Stratification for Early Diabetes Classification: A Multi-scenario ApproachInternational journal of intelligent engineering and systems · 2026
- Beyond Binary Diagnosis: A Genetic Algorithm Optimized Hybrid Machine Learning Model for PCOS Phenotype PredictionmedRxiv · 2026
- Fuzzy-Enhanced Machine Learning Approach for Type 2 Diabetes DiagnosisarXiv · 2026
- Diabetes Prediction Using Hybrid Supervised and Unsupervised Techniques Based on PIMA DatasetJournal of Artificial Intelligence and Technology · 2025