[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-117136-en":3,"doc-seo-117136-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},117136,549758252649,"Ivy","https://ap-avatar.wpscdn.com/avatar/8000253669c5317157?_k=1778319167496531819",7,"Healthcare","Application of Machine Learning Models for Early Detection and Accurate Classification of Type 2 Diabetes","Early detection of diabetes is essential to prevent severe complications and improve patient outcomes. This work develops machine learning approaches to detect and classify type 2 diabetes while selecting the most effective model for predicting risk. Five models—K-nearest neighbor, Bernoulli Naïve Bayes, decision tree, logistic regression, and support vector machine—are evaluated using a Kaggle Pima Indian dataset of 768 patients with and without diabetes and multiple clinical variables. Results indicate K-NN achieves the highest accuracy at 79.6%, outperforming BNB at 77.2% and supporting ML as a promising diagnostic aid.","diagnostics  \nArticle  \nApplication of Machine Learning Models for Early Detection and Accurate Classiﬁcation of Type 2 Diabetes  \nOrlando Iparraguirre-Villanueva 1, Karina Espinola-Linares 2, Rosalynn Ornella Flores Castañeda 3 and Michael Cabanillas-Carbonell 4, *  \nCitation: Iparraguirre-Villanueva, O.; Espinola-Linares, K.; Flores Castañeda, R.O.; Cabanillas-Carbonell, M. Application of Machine Learning Models for Early Detection and Accurate Classiﬁcation of Type 2 Diabetes. Diagnostics 2023, 13, 2383 . [https://doi.org/10.3390/](https://doi.org/10.3390/)[ ](https://doi.org/10.3390/)diagnostics13142383  \nAcademic Editor: Marijn Speeckaert  \nReceived: 31 May 2023  \nRevised: 23 June 2023  \nAccepted: 7 July 2023  \nPublished: 15 July 2023  \nCopyright: © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ([https://](https://)[ ](https://)[creativecommons.org/licenses/by/](creativecommons.org/licenses/by/)[ ](creativecommons.org/licenses/by/)[4.0/](4.0/)) .  \n1 Facultad de Ingenier½a y Arquitectura, Universidad Autânoma del Peró, Lima 15842, Peru; [oiparraguirre@ieee.org](oiparraguirre@ieee.org)  \n2 Facultad de Ingenier½a, Universidad Tecnolâgica del Peró, Chimbote 02710, Peru; [c24051@utp.edu.pe](c24051@utp.edu.pe)  \n3 Facultad de Arquitectura e Ingenier½a, Universidad C²sar Vallejo, Lima 15314, Peru; rﬂ[oresc@ucv.edu.pe](oresc@ucv.edu.pe)  \n4 Facultad de Ingenier½a, Universidad Privada del Norte, Lima 15083, Peru  \n* [Correspondence: mcabanillas@ieee.org](Correspondence: mcabanillas@ieee.org)  \nAbstract: Early detection of diabetes is essential to prevent serious complications in patients. The purpose of this work is to detect and classify type 2 diabetes in patients using machine learning (ML) models, and to select the most optimal model to predict the risk of diabetes. In this paper,ﬁve ML models, including K-nearest neighbor (K-NN), Bernoulli Naïve Bayes (BNB), decision tree (DT), logistic regression (LR), and support vector machine (SVM), are investigated to predict diabetic patients. A Kaggle-hosted Pima Indian dataset containing 768 patients with and without diabetes was used, including variables such as number of pregnancies the patient has had, blood glucose concentration, diastolic blood pressure, skinfold thickness, body insulin levels, body mass index (BMI), genetic background, diabetes in the family tree, age, and outcome (with/without diabetes) . The results show that the K-NN and BNB models outperform the other models. The K-NN model obtained the best accuracy in detecting diabetes, with 79.6% accuracy, while the BNB model obtained 77.2% accuracy in detecting diabetes. Finally, it can be stated that the use of ML models for the early detection of diabetes is very promising.  \nKeywords: diabetes; machine learning; classiﬁcation; modeling; analysis  \n1. Introduction  \nDiabetes occurs when blood sugar levels rise due to metabolic problems. This typeof exposure can damage various organs and body systems, such as the heart, blood vessels, and eyes. It is important to note that these adverse effects are directly caused by hyperglycemia, which is elevated blood sugar levels. This is because the body has trouble controlling blood sugar levels or cannot properly use the insulin it produces [1] . The hormone insulin helps glucose reach and be available to the cells. Note that diabetes is divided into two main categories, type 1 and type 2 . To fully understand type 1 diabetes, it is important to know that it is an autoimmune disease, which means that the body's immune system constantly attacks and destroys insulin-producing cells.  \nType 2 diabetes is characterized by problems with the proper use of insulin produced by the body due to factors related to an individual's lifestyle [2] . During the last decade, asigniﬁcant increase in the prevalence of type 2 diabetes has been observed in","cbCaikEkzOU11eIp","https://ap.wps.com/l/cbCaikEkzOU11eIp","pdf",3181728,1,16,"English","en",105,"# Abstract\n# Introduction\n## Diabetes background and risks\n## Type 1 versus type 2 diabetes\n# Methods\n## Machine learning models evaluated\n## Dataset and input variables\n# Results\n## Model performance comparison\n## Best-performing model accuracy\n# Discussion\n## Implications for early detection","[{\"question\":\"What is the goal of the study on type 2 diabetes?\",\"answer\":\"The study aims to detect and classify type 2 diabetes using machine learning models and to identify the most optimal model for predicting diabetes risk.\"},{\"question\":\"Which machine learning models are compared in the work?\",\"answer\":\"Five models are evaluated: K-nearest neighbor (K-NN), Bernoulli Naïve Bayes (BNB), decision tree (DT), logistic regression (LR), and support vector machine (SVM).\"},{\"question\":\"What dataset and variables are used for prediction?\",\"answer\":\"The work uses a Kaggle-hosted Pima Indian dataset of 768 patients and includes features such as number of pregnancies, blood glucose concentration, diastolic blood pressure, skinfold thickness, body insulin, BMI, genetic and family diabetes background, age, and the diabetes outcome.\"}]","Application of Machine Learning Models for Early Detection and Accurate Classification of Type 2 Diabetes | PDF",1785674056,40,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"application-of-machine-learning-models-for-early-detection-and-accurate-classification-of-type-2-diabetes","",{"@graph":36,"@context":85},[37,54,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/healthcare/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/application-of-machine-learning-models-for-early-detection-and-accurate-classification-of-type-2-diabetes/117136/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":62,"encodingFormat":61,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-02",true,{"@type":65,"interactionType":66,"userInteractionCount":4},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What is the goal of the study on type 2 diabetes?","Question",{"text":75,"@type":76},"The study aims to detect and classify type 2 diabetes using machine learning models and to identify the most optimal model for predicting diabetes risk.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"Which machine learning models are compared in the work?",{"text":80,"@type":76},"Five models are evaluated: K-nearest neighbor (K-NN), Bernoulli Naïve Bayes (BNB), decision tree (DT), logistic regression (LR), and support vector machine (SVM).",{"name":82,"@type":73,"acceptedAnswer":83},"What dataset and variables are used for prediction?",{"text":84,"@type":76},"The work uses a Kaggle-hosted Pima Indian dataset of 768 patients and includes features such as number of pregnancies, blood glucose concentration, diastolic blood pressure, skinfold thickness, body insulin, BMI, genetic and family diabetes background, age, and the diabetes outcome.","https://schema.org",{"og:url":52,"og:type":87,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":89,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,117,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":29,"slug":116},"healthcare",{"id":118,"doc_module":4,"doc_module_name":46,"category_name":119,"show_sort_weight":120,"slug":121},8,"Research & Report",30,"research-report",{"id":123,"doc_module":4,"doc_module_name":46,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":46,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":46,"category_name":136,"show_sort_weight":106,"slug":137},19,"General","general"]