arXiv:2610.34123cs.LGOct 2026

Manuscript Offprint

arXiv:2610.34123

Enhancing Type 2 Diabetes Diagnosis with Evolutionary Algorithms and Machine Learning

Parisa Rezaei, Mohsen Saffar, Hamid Reza Naji, Mohammad Mehdi Faghih, Rasoul Nouriazar

Parisa Rezaei

Dept. of Computer Engineering and Information Technology

Graduate University of Advanced Technology

Kerman, Iran

p.rezaei@student.kgut.ac.ir

Mohammad Mehdi Faghih

Dept. of Computer Engineering and Information Technology

Graduate University of Advanced Technology

Kerman, Iran

m.faghih@kgut.ac.ir

Mohsen Saffar

Dept. of Industrial Engineering

K. N. Toosi University of Technology

Tehran, Iran

mohsen.saffar@email.kntu.ac.ir

Rasoul Nouriazar

Dept. of Computer Engineering and Information Technology

Graduate University of Advanced Technology

Kerman, Iran

r.nouriazar@student.kgut.ac.ir

Hamid Reza Naji ∗^{*}

Dept. of Computer Engineering and Information Technology

Graduate University of Advanced Technology

Kerman, Iran

naji@kgut.ac.ir

Abstract—Type 2 diabetes is a widespread chronic disease that requires early and accurate diagnosis to prevent serious complications. Traditional diagnostic methods often lack sufficient accuracy, which highlights the need for more reliable computational solutions. In this study, we propose a model that integrates the Random Forest classifier with the Bat Optimization Algorithm for simultaneous feature selection and hyperparameter tuning. The SMOTE-ENN method was first applied to the Pima Indians Diabetes Database to correct class imbalance and remove noisy or ambiguous samples, producing a more balanced and cleaner dataset. The optimized model trained on this refined dataset achieved 89% accuracy, 88% precision, 90% recall, and an F1-score of 89%, clearly outperforming the baseline Random Forest and other existing approaches. These results demonstrate the potential of combining evolutionary algorithms with ensemble learning to provide a practical and cost-effective tool for early detection of type 2 diabetes in clinical practice.

Keywords—Diabetes, Diabetes Diagnosis, Machine Learning, Evolutionary Algorithms, Feature Selection

I. INTRODUCTION

Diabetes mellitus, an intricate and progressively common metabolic condition, is chiefly defined by persistent hyperglycemia arising from impairments in insulin production, insulin function, or a combination of both [1]. The extraordinary rise in the global prevalence of diabetes necessitates a comprehensive understanding of its nature, history, types, and management strategies, as the International Diabetes Federation indicates that approximately 463 million adults (aged 20-79) worldwide were living with diabetes in 2019, with projections suggesting this number will exceed 700 million by 2045 [2]. The historical roots of diabetes trace back to ancient civilizations, where descriptions resembling diabetes mellitus were first recorded in Egyptian medical texts, detailing the notable symptoms of excessive thirst and urination, which prompted the term "diabetes," derived from the Greek word for "siphon" [3].

Later developments in medical history further clarified the naming of diabetes. The term "mellitus," meaning "honey-sweet," was later appended in the second century AD by the Greek physician Aretaeus of Cappadocia when he observed that the urine of affected individuals was sweet due to high glucose levels, serving as a clear indication of the metabolic dysfunction inherent in this condition [3]. Recognized by physicians and scientists for centuries, the understanding of diabetes has evolved dramatically from myths and rudimentary explanations to the sophisticated biomedical insights of today, which delineate the mechanisms behind its pathogenesis, associated complications, and potential treatment options. diabetes significantly compromises patients' quality of life and predisposes them to acute complications that can necessitate hospitalization and further complex medical care [4].

As medical understanding has advanced, attention has increasingly turned toward modern technologies and lifestyle strategies in diabetes care. Over the years, research has illuminated the role of advanced technologies in managing diabetes, particularly through artificial intelligence (AI) and machine learning, which are increasingly used to predict diabetes-related complications and personalize treatment [5]. The integration of technology into diabetes care provides new avenues for continuous monitoring and tailored interventions, reflecting a shift towards more proactive and preventive healthcare practices [5]. Furthermore, lifestyle interventions, including nutritional adjustments, physical activity promotion, and the advent of digital health tools such as mobile apps, play a critical role in managing diabetes and preventing its progression [6].

In this study, we employ the Bat Optimization Algorithm to achieve optimal feature selection from the dataset and to optimize the parameters of the Random Forest machine learning model. Using data from the Pima Indians Diabetes Database, our goal is to build an effective and accurate model for detecting type 2 diabetes.

In the subsequent section, related concepts are explored and the literature is reviewed.

References (39)