Main Article Content

Ahmad AlBayati ahmad_taqi@uokirkuk.edu.iq
Shnoo Abdul Aziz Zangana
Farhan Naqee AlBayati


Abstract

Artificial intelligence (AI) is transforming healthcare, with (ML) offering significant potential for early disease diagnosis and personalized treatment, particularly in diabetes management. This capability is crucial for enhancing diagnostic accuracy. However, accurately predicting type 2 diabetes remains challenging due to diverse patient populations and complex data, as traditional methods can be slow and miss subtle early indicators, leading to delayed interventions. There is a clear need for robust predictive models. This paper proposes and evaluates various ML algorithms and data mining techniques for effective type 2 diabetes prediction. We utilized a unique Iraqi dataset with comprehensive features including HbA1c, lipid profiles, age, and BMI. Our methodology involved rigorous data preprocessing, including cleaning and handling class imbalance with SMOTE. Eight ML algorithms were compared: Decision Tree (DT), Naïve Bayes (NB), Random Forest (RF), Gradient Boosting (GB), K-Nearest Neighbor (KNN), Logistic Regression (LR), and Artificial Neural Networks (ANN). Model performance was assessed using accuracy, precision, recall, F1-score, MAE, RMSE, and AVE, with cross-validation ensuring robustness. The DT algorithm achieved the highest performance, with an accuracy of 99.44%, outperforming all other models. This highlights DT’s effectiveness and its potential for accurate early diagnosis, confirming HbA1c, age, and BMI as key predictors. Future work should establish a national health database in Iraq and explore advanced deep learning techniques, such as Convolutional Neural Network and Recurrent Neural Network.

Downloads

Download data is not yet available.

Article Details

How to Cite
AlBayati, A., Zangana, S. A. A., & AlBayati, F. N. (2026). An Experimental Comparison of Different Machine Learning Algorithms for Detecting Type 2 Diabetes. Al-Kitab Journal for Pure Sciences, 10(01), 138–157. https://doi.org/10.32441/kjps.10.01.10.
Section
Articles

References

Ziajor S, Tomasik J, Sajdak P, Turski M, Bednarski A, Stodolak M, Szydłowski Ł, Żurowska K, Krużel A, Kłos K, Dębik M. The use of artificial intelligence in the diagnosis and detection of complications of diabetes. Journal of Education, Health and Sport. 2024 Apr 11;65:11-27.

Iqbal J, Jaimes DC, Makineni P, Subramani S, Hemaida S, Thugu TR, Butt AN, Sikto JT, Kaur P, Lak MA, Augustine M. Reimagining healthcare: unleashing the power of artificial intelligence in medicine. Cureus. 2023 Sep 4;15(9).

Ismail L, Materwala H, Tayefi M, Ngo P, Karduck AP. Type 2 diabetes with artificial intelligence machine learning: methods and evaluation. Archives of Computational Methods in Engineering. 2022 Jan;29(1):313-33.

Ellahham S. Artificial intelligence: the future for diabetes care. The American journal of medicine. 2020 Aug 1;133(8):895-900.

Ceh-Varela E, Maes L, Shakya SR. Machine learning analysis of factors contributing to Diabetes Development. Cloud Computing and Data Science. 2024 Jan 3:157-82.

Ahmad Hussain AlBayati SAAZ. The Role of ML Algorithms for Diagnosing Diabetes Mellitus Based on Different Datasets with Different Attributes Journal of Information Systems Engineering and Management 2025; {10}.

Febrian ME, Ferdinan FX, Sendani GP, Suryanigrum KM, Yunanda R. Diabetes prediction using supervised machine learning. Procedia Computer Science. 2023 Jan 1;216:21-30.

Mohammed EM, Fakhrudeen AM, Alani OY. Detection of Alzheimer’s disease using deep learning models: A systematic literature review. Informatics in Medicine Unlocked. 2024 Jan 1;50:101551.

Baker MR, Mahmood ZN, Shaker EH. Ensemble Learning with Supervised Machine Learning Models to Predict Credit Card Fraud Transactions. Revue d'Intelligence Artificielle. 2022 Aug 1;36(4).

Akmeşe ÖF. Diagnosing Diabetes with Machine Learning Techniques. Hittite Journal of Science and Engineering. 2022;9(1):9-18.

Chang V, Bailey J, Xu QA, Sun Z. Pima Indians diabetes mellitus classification based on machine learning (ML) algorithms. Neural Computing and Applications. 2023 Aug;35(22):16157-73.

Ahmed M, Husien I. Heart disease prediction using hybrid machine learning: A brief review. Journal of Robotics and Control (JRC). 2024 May 3;5(3):884-92..

Ibrahim I, Abdulazeez A. The role of machine learning algorithms for diagnosing diseases. Journal of Applied Science and Technology Trends. 2021 Mar 19;2(01):10-9.

Thompson C, Higgins O. Combination of Artificial Neural Network and Particle Swarm Intelligence Algorithm for Diagnosing Diabetes. Advances in Engineering and Intelligence Systems. 2024 Mar 30;3(01):23-33.

Ogwueleka FN, Misra S, Colomo‐Palacios R, Fernandez L. Neural network and classification approach in identifying customer behavior in the banking sector: A case study of an international bank. Human factors and ergonomics in manufacturing & service industries. 2015 Jan;25(1):28-42.

Kangra K, Singh J. Comparative analysis of predictive machine learning algorithms for diabetes mellitus. Bulletin of Electrical Engineering and Informatics. 2023 Jun 1;12(3):1728-37.

Chicco D, Warrens MJ, Jurman G. The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation. Peerj computer science. 2021;7:e623.

Chicco D, Warrens MJ, Jurman G. The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation. Peerj computer science. 2021 Jul 5;7:e623.

Ahmed MS, Fakhrudeen AM. COVID-19IraqKirkukDataset: Development and evaluation of an Iraqi dataset for COVID-19 classification based on deep learning. International Journal of Nonlinear Analysis and Applications. 2023 Jan 1;14(1):2507-18.

Murti RP, Putra SM, Kurniawan SA, Nugraha YR. Naïve Bayes classifier for journal quartile classification. 2019.