image: A study using data from 1,370 people in southern Ecuador found that three algorithms achieved 92% accuracy in reproducing the risk categories established by a clinical assessment tool
Credit: Universidad Técnica Particular de Loja (UTPL)
An artificial intelligence model correctly classified diabetes risk in 92 out of every 100 cases evaluated, according to research published in the scientific journal Scientific Reports. A history of elevated blood glucose, a family history of diabetes, and waist circumference were the three most influential factors across the four algorithms examined.
Type 2 diabetes is a chronic disease that affects how the body uses glucose, the main source of energy for cells. Although age and family history influence the risk of developing the disease, modifiable factors, such as excess body fat and physical inactivity, also play a role.
Researchers from Universidad Técnica Particular de Loja (UTPL), with support from the Scientific Research Institute of the University of Lima (Peru), worked with a dataset obtained from a previous study conducted by UTPL's Faculty of Health Sciences. The records included 1,370 adults aged 18 to 75 who were affiliated with the Ecuadorian Social Security Institute (IESS), belonged to more than ten public and private organizations in southern Ecuador, and had no previous diagnosis of diabetes.
From the collected records, the authors selected 19 variables, including age, dietary habits, blood pressure, and various body measurements. These variables were used to train four machine learning algorithms: Gradient Boosting, XGBoost, LightGBM, and CatBoost. The algorithms analyzed numerous examples to identify patterns and classify new cases based on each individual's characteristics.
To establish the risk categories, the researchers used the Finnish Diabetes Risk Score (FINDRISC), a questionnaire that estimates the probability of developing type 2 diabetes over the following ten years. Seventy percent of the data was used to train the models, while the remaining 30% was used to evaluate their performance.
Three of the four models achieved 92% accuracy. XGBoost showed the smallest difference in performance between the training and testing stages.
Ruth Reátegui, a faculty researcher at Universidad Técnica Particular de Loja and an author of the study, explains that one of the motivations behind the research was to work with data from the Ecuadorian population, given the limited scientific evidence on the use of this technology in Latin America.
“Our goal was not only to obtain accurate predictions, but also to understand how artificial intelligence reaches its results,” says Reátegui.
The authors used SHAP and LIME, two explainable artificial intelligence techniques. These methods allowed them to identify which factors had the greatest influence across the cases studied and which were most important when examining individual participants.
In one case, involving a 48-year-old individual, a history of elevated blood glucose and a family history of diabetes had the greatest influence on the risk classification. Other contributing factors included age, a waist circumference of 96 centimeters, and not engaging in at least 30 minutes of physical activity per day.
Other key factors identified by the four algorithms included visceral fat, which accumulates around internal organs, waist-to-hip ratio, and muscle mass index. Understanding the influence of these characteristics in individual cases could help healthcare professionals tailor their recommendations to each patient's circumstances.
The authors caution that the system does not diagnose diabetes or determine who will develop the disease. Furthermore, some of the variables analyzed are also used to calculate risk through FINDRISC. Therefore, the reported accuracy reflects how well the models reproduce these risk categories, rather than a clinically validated prediction of future diabetes development.
“The model should be understood as a support tool for identifying risk levels and guiding preventive actions, not as a medical diagnosis,” the researcher emphasizes.
Before incorporating this technology into medical practice, the authors consider it necessary to test the models using data from other regions of Ecuador and different healthcare institutions.
Journal
Scientific Reports
Method of Research
Computational simulation/modeling
Subject of Research
People
Article Title
Interpretable diabetes risk prediction: a comparative study of tree-based algorithms using SHAP and LIME
Article Publication Date
26-Oct-2026