A Hybrid Whale Optimization and XGBoost Framework for Accurate Prediction of Type 2 Diabetes Mellitus
DOI:
https://doi.org/10.3329/bjms.v25i1.86405Keywords:
Clinical Decision Support, Classification Model, Disease Risk Assessment, Early Diagnosis, Feature Importance, Healthcare Analysis, Hyperparameter Tuning, Machine Learning, Metaheuristic Algorithm, Performance EvaluationAbstract
Introduaction Type 2 Diabetes Mellitus (T2DM) has become a worldwide health issue that has to be taken care of. Thus, predictive models have to be developed that are accurate and efficient to help with the early diagnosis and preventive measures. In this work, a hybrid of the Whale Optimization Algorithm (WOA) and Extreme Gradient Boosting (XGBoost) is proposed to improve T2DM prediction. Materials and Methods To optimize XGBoost hyperparameters for better generalization and fewer classification errors, the Whale Optimization Algorithm (WOA) was used. To assess the effectiveness and performance of the suggested approach, two benchmark datasets were evaluated: the PIMA Indian Diabetes dataset (PID) with 768 records and the Diabetes Risk Prediction dataset with 100,000 records. Results The WOA-XGBoost model recorded an accuracy of 98.7%, precision, recall, and F1-score of 99% for the dataset, which consists of 768 records, and an accuracy of 99.84%, precision - 99.91%, recall - 99.89% and F1-Score - 99.9% for the dataset, which consists of 100000 records. It was observed that the proposed method performed better than the other state-of-the-art methods. Conclusion The proposed WOA-XGBoost model demonstrates highly accurate and reliable prediction performance for T2DM across both small and large datasets. These results indicate that the hybrid optimizationbased approach is practical for early diagnosis and can be valuable in real-world clinical decision-support systems.
BJMS, Vol. 25 No. 01 January’26 Page : 78-90
Downloads
36
32
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Prakash Arumugam, Abinayaa Sennanur Srinivasan, Divya Bhavani Mohan, Santosh Kumar, Miral Mehta, Mainul Haque

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish in the Bangladesh Journal of Medical Science agree to the following terms that:
- Authors retain copyright and grant Bangladesh Journal of Medical Science the right of first publication of the work.

Articles in Bangladesh Journal of Medical Science are licensed under a Creative Commons Attribution 4.0 International License CC BY-4.0.This license permits use, distribution and reproduction in any medium, provided the original work is properly cited.- Authors are able to enter into separate, additional contractual arrangements for the distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted to post their work online (e.g., in institutional repositories or on their website) as it can lead to productive exchanges, as well as greater citation of published work.