<?xml version="1.1" encoding="utf-8"?>
<article xsi:noNamespaceSchemaLocation="http://jats.nlm.nih.gov/publishing/1.1/xsd/JATS-journalpublishing1-mathml3.xsd" dtd-version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><front><journal-meta><journal-id journal-id-type="publisher-id">JERA</journal-id><journal-title-group><journal-title>Journal of Electronic Research and Application</journal-title></journal-title-group><issn>2208-3502</issn><eissn>2208-3510</eissn><publisher><publisher-name>Bio-Byword Scientific Publishing Pty. Ltd.</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.26689/jera.v9i1.9418</article-id><article-categories><subj-group subj-group-type="heading"><subject>Article</subject></subj-group></article-categories><title>Building a Diabetes Prediction System Based on Machine Learning Algorithms </title><url>https://artdesignp.com/journal/JERA/9/1/10.26689/jera.v9i1.9418</url><author>LiangShubo</author><pub-date pub-type="publication-year"><year>2025</year></pub-date><volume>9</volume><issue>1</issue><history><date date-type="pub"><published-time>2025-02-12</published-time></date></history><abstract>This paper explores the possibility of using machine learning algorithms to predict type 2 diabetes. We selected two commonly used classification models: random forest and logistic regression, modeled patients’ clinical and lifestyle data, and compared their prediction performance. We found that the random forest model achieved the highest accuracy, demonstrated excellent classification results on the test set, and better distinguished between diabetic and non-diabetic patients by the confusion matrix and other evaluation metrics. The support vector machine and logistic regression perform slightly less well but achieve a high level of accuracy. The experimental results validate the effectiveness of the three machine learning algorithms, especially random forest, in the diabetes prediction task and provide useful practical experience for the intelligent prevention and control of chronic diseases. This study promotes the innovation of the diabetes prediction and management model, which is expected to alleviate the pressure on medical resources, reduce the burden of social health care, and improve the prognosis and quality of life of patients. In the future, we can consider expanding the data scale, exploring other machine learning algorithms, and integrating multimodal data to further realize the potential of artificial intelligence (AI) in the field of diabetes.</abstract><keywords/></article-meta></front><body/><back><ref-list><ref id="B1" content-type="article"><label>1</label><element-citation publication-type="journal"><p>World Health Organization, 2013, Global Action Plan for the Prevention and Control of Noncommunicable Diseases 2013–2020. Geneva: WHO.</p><pub-id pub-id-type="doi"/></element-citation></ref><ref id="B2" content-type="article"><label>2</label><element-citation publication-type="journal"><p>Erdogan A, Duzgun AP, Erdogan K, et al., 2018, Efficacy of Hyperbaric Oxygen Therapy in Diabetic Foot Ulcers Based on Wagner Classification. The Journal of Foot and Ankle Surgery, 2018, 57(6): 1115–1119.</p><pub-id pub-id-type="doi"/></element-citation></ref><ref id="B3" content-type="article"><label>3</label><element-citation publication-type="journal"><p>Wang L, Peng W, Zhao Z, et al., 2021, Prevalence and Treatment of Diabetes in China, 2013–2018. JAMA, 326(24): 2498–2506</p><pub-id pub-id-type="doi"/></element-citation></ref><ref id="B4" content-type="article"><label>4</label><element-citation publication-type="journal"><p>Tuomilehto J, Lindstrm J, Eriksson JG, et al., 2001, Prevention of Type 2 Diabetes Mellitus by Changes in Lifestyle Among Subjects with Impaired Glucose Tolerance. New England Journal of Medicine, 344(18): 1343–1350. https://doi.org/10.1056/NEJM200105033441801</p><pub-id pub-id-type="doi"/></element-citation></ref><ref id="B5" content-type="article"><label>5</label><element-citation publication-type="journal"><p>Hayes C, Kriska A, 2008, Role of Physical Activity in Diabetes Management and Prevention. Journal of the American Dietetic Association, 108(4): S19–S23.</p><pub-id pub-id-type="doi"/></element-citation></ref><ref id="B6" content-type="article"><label>6</label><element-citation publication-type="journal"><p>Salih MS, Khalil R, Zeebaree SRM, 2024, Diabetic Prediction Based on Machine Learning Using PIMA Indian Dataset. Communications on Applied Nonlinear Analysis, 31(5s): 138–156. https://doi.org/10.52783/cana.v31.1008</p><pub-id pub-id-type="doi"/></element-citation></ref><ref id="B7" content-type="article"><label>7</label><element-citation publication-type="journal"><p>Naz H, Ahuja S, 2020, Deep Learning Approach for Diabetes Prediction Using PIMA Indian Dataset. J Diabetes Metab Disord, 19(1): 391–403. https://doi.org/10.1007/s40200-020-00520-5</p><pub-id pub-id-type="doi"/></element-citation></ref><ref id="B8" content-type="article"><label>8</label><element-citation publication-type="journal"><p>Glasgow RE, 1995, A Practical Model of Diabetes Management and Education[J]. Diabetes Care, 18(1): 117–126.</p><pub-id pub-id-type="doi"/></element-citation></ref><ref id="B9" content-type="article"><label>9</label><element-citation publication-type="journal"><p>Garber AJ, Abrahamson MJ, Barzilay JI, et al., 2013, AACE Comprehensive Diabetes Management Algorithm 2013. Endocrine Practice: Official Journal of the American College of Endocrinology and the American Association of Clinical Endocrinologists, 19(2): 327–336.</p><pub-id pub-id-type="doi"/></element-citation></ref><ref id="B10" content-type="article"><label>10</label><element-citation publication-type="journal"><p>Watkins PJ, Amiel SA, Howell SL, et al., 2003, Diabetes and Its Management. John Wiley &amp; Sons, United Kingdom.</p><pub-id pub-id-type="doi"/></element-citation></ref></ref-list></back></article>
