Correspondence to Dr Zhifei Che; [email protected] ; Dr. Hailong Zheng; [email protected]
STRENGTHS AND LIMITATIONS OF THIS STUDY
This is a large-scale, nationally representative cohort study.
This study developed a tailored machine learning pipeline to identify novel diabetes risk factors.
This study provided a highly accurate model to predict diabetes risk after 2 years.
The present findings enabled healthcare professionals to make precise diabetes risk predictions.
Since the study included data from a single country, a further investigation in different regions could broaden the present findings.
Introduction
Diabetes is a prevalent global health challenge that is expected to affect over 693 million individuals by 2045.1 2 Type 1 and type 2 diabetes, the two main types of diabetes, are clinically relevant, and they tend to affect individuals aged over 64 years in developed countries.3 4 Ageing has been shown to be closely associated with diabetes, with an increase in the number of senescent cells in various tissues being the most convincing evidence of this link.5 This disease imposes a considerable financial and health burden on national health and social care systems, with a cost of over US$1.31 trillion in 2015.6–8 Therefore, it is essential to establish an accurate clinical approach based on physical examination parameters to predict the risk of diabetes in the future.
Several research studies have attempted to predict the risk of diabetes. In one such study conducted in Tehran, the lipid accumulation product, a composite index of waist circumference and triglyceride level, was identified as a strong predictor of diabetes.9 However, no single risk factor can fully evaluate the risk of diabetes. Recently, machine learning technology has been used to assist in clinical decision-making. For example, an Artificial Neural Networks (ANN) and support vector machine have been applied to predict diabetes with a high degree of accuracy.10 A previous study compared the prediction performances of multiple machine learning models, including logistic regression, random forest, support vector machine and eXtreme Gradient Boosting, and reported that some of these models performed well.11 However, machine models are considered ‘black box’ models, which lack interpretability, and, therefore, there is a need for models that are transparent and enhance user trust, particularly in high-stakes fields such as medicine, where the consequences of flawed decision-making can be severe.12
The Irish Longitudinal Study on Ageing (TILDA) is a comprehensive, longitudinal study that focuses on ageing in Ireland. This research is nationally representative and involves two waves of demographically representative data, with participants aged 50 years and above who were selected using a geographic cohort-based RANSAM sampling system.13–15 We used TILDA data to create an ensemble learning model that provides an interpretation for predicting the risk of both type 1 and type 2 diabetes based on the clinical parameters of older individuals. In the present study, many popular machine learning models were used to train our prediction model, including distributed random forest (DRF), extremely randomised trees (XRT), a regularised generalised linear model (GLM), gradient boosting machine (GBM) and deep neural network (DNN). By applying these powerful models, we could highly enhance the performance of prediction model.
Methods
Participants
The TILDA collected data from Irish community-dwelling residents aged ≥50 years using a geographic cluster-based random sample matching system for data conduction. TILDA gathered population-representative data during wave 1 (October 2009–July 2011) and wave 2 (April 2012–January 2013).16 To ensure compliance with a previous study, only anonymised TILDA data were used, so no additional ethical clearance or informed consent was required.13–15 After the exclusion of participants who reported diabetes during baseline or were lost to follow-up in wave 2 (n=3118), the sample size for further analysis was 5386 participants.
Measures
Demographic information such as age, sex, smoking status and marital status was collected during the wave 1 survey of the participants in the study. Diabetes data were obtained through self-report in both waves. Participants were asked if a doctor had ever informed them that they had diabetes. A total of 44 622 clinical parameters were recorded during the wave 1 survey, which comprised 11 sections. These sections included variables on disability, functional impairment, medication, mental health and well-being, cognitive function, physical activity, income, socioeconomic status, social status, screening tests and health behaviours. Data were obtained from the participants through these sections. The raw data and derived variables from wave 1 survey are available at tilda.tcd.ie.
Feature selection
In the first wave of data, a substantial amount of data was censored, which posed a challenge for further feature selection and modelling. To avoid any potential bias and maintain sample size, a previous study recommended that censored data for each candidate feature be eliminated independently, enabling a more accurate assessment of the contribution of each feature to the outcome.14 Accordingly, logistic regression was conducted between each baseline feature and diabetes reported in the second wave, with censored data being independently removed in each model. Details and codes of all the features included were provided in the online supplemental material S1 Code Book. Variables with a p value of <0.05 and ORs of <0.6 or >1.5 were identified as the most important predictors for diabetes.
Modelling and performance testing
Following feature selection, feature matrices were extracted from wave 1 data, and features with censored data of over 500 participants were excluded, resulting in a final sample size of 5295. The participants were randomly split into training and test sets in an 8:2 ratio. Many popular machine learning models were used, including DRF, XRT, a regularised GLM, GBM and DNN. Thanks. ‘Stacking’ is a machine learning technique that combines multiple models, often referred to as base learners or weak learners, to produce more accurate and robust predictions than any single model alone. It operates on the principle that a group of diverse models working together can provide better results than a single model, as their individual strengths and weaknesses can complement each other. Therefore, a stacked ensemble approach was applied, integrating the models based on fivefold validation in the training cohort. To balance the class distribution, the minority classes were oversampled, and hyperparameters were optimised using grid search. The maximum number of ensembled models was 20, with the metric for early stopping being the area under the receiver operating characteristic curve. The pipeline’s execution time was about 1.5 hours. The performance of the model was assessed using multiple indicators, including the area under the curve (AUC), log loss, mean per classification error, mean square error (MSE), and root MSE (RMSE) in the test cohort. The ensemble methods, which combine predictions of multiple machine learning models, were employed to enhance the overall prediction accuracy by assembling a variety of powerful and diverse models.
Model interpretability
The SHapley Additive exPlanations (SHAP) is a game theory-based approach that can be used to interpret the output of any deep learning models. The SHAP method connects optimal credit allocation with local explanations by employing classic Shapley values and their related extensions. In this study, the established model was interpreted using SHAP.
Statistical analyses
The data were gathered using R software (V.4.1.0) and analysed using the same software. Model training was carried out using the H2O package in R. Further information about the algorithms used for model training is available at h2o.ai.
Patient and public involvement
None.
Results
Demographics of the participants at baseline
Categorisation of participants was based on their report of diabetes in the wave 2 survey, which had a prevalence of 6.55% after 2 years. Demographic data of the Irish participants aged ≥50 years are provided in online supplemental materials. At baseline, the median age of participants without diabetes was 59 years, while those with diabetes was 64 years. A statistically significant difference was observed between the two groups, suggesting that the risk of diabetes increases with age. Additionally, sex was identified as a risk factor, whereas smoking and marital status did not impact the risk of diabetes after 2 years.
Feature selection
The TILDA study provided a comprehensive assessment of social and medical factors affecting diabetes risk. Independent logistic regression analysis of 105 baseline features identified significant contributors to diabetes risk after 2 years, as presented in figure 1. Sex was a significant factor, with an OR of 0.500 (0.399–0.625), consistent with the baseline demographic analyses. Protective factors included family finances, sandwich generation, private medical care, house benefits, receiving payments, mental health, state services, eye diseases, low-density lipoprotein cholesterol and child benefit. Hazardous factors included using dietician services, taking five or more medications, antihypertensive use, congestive heart failure and cirrhosis. These results highlight the complex nature of diabetes, influenced by various physical, psychosomatic and social factors.
Figure 1. Logistic regression identified top protective and hazardous factors for diabetes risk in older adults after 2 years.
The ensembled model performed well in terms of predicting diabetes risk after 2 years
We developed a set of machine learning models that predict whether a patient will develop diabetes after 2 years, using selected features. All features selected during the feature selection process were used in model training. We used the grid search algorithm to fit 20 different models, including XRT, DNN, DRF, GBM and GLM, and performed hyperparameter tuning for each model. This resulted in 22 models for assessment, including an ensemble model stacking the better-performing models and a final ensemble model with all 20 original models. We evaluated the performance of each model in an independent test set and selected the best model based on combined performance (figure 2). The stacked ensemble of all models was identified as the best model, with an AUC of 0.854, log loss of 0.187, mean per classification error of 0.267, RMSE of 0.229 and MSE of 0.052. We used a calibration plot to assess the agreement between predictions and observations, and the bootstrap method with 1000 simulations to calculate the robust AUC of the best model in the training and test sets. The best model showed favourable discrimination in both the training and test sets, with an AUC of 0.99 and 0.85, respectively (figure 3A,B). Calibration curve is graphical representations used to assess the reliability and performance of a predictive model, particularly in the context of probabilistic predictions. They display the relationship between the observed outcomes and the predicted probabilities, allowing for the evaluation of how well the predicted probabilities align with the actual outcomes. The calibration curve analysis also demonstrated high consistency between predicted outcomes and actual outcomes of diabetes after 2 years in both the training and independent test sets (figure 3C,D). In conclusion, our proposed best model is reliable and accurate in predicting the risk of diabetes after 2 years (figures 2 and 3A–D).
Figure 3. Performance and learning curves of the best model. (A) and (B) presented the AUCs of the best model in the training and test set. (C) and (D) established the calibration plots for the best model in the training and test set, respectively. (E)-(H) exhibited the changes of logloss, RMSE, deviance and AUC during the model training process, respectively. AUC, area under the curve; MSE, mean square error; RMSE, root mean square error.
Figure 3E demonstrates that the log loss of the best model reduced steadily with an increasing number of iterations. The initial iterations saw a faster decline in log loss, implying a greater adjustment in the hyperparameters that led to quicker learning of the data distribution and a faster rise in performance. After around 90 iterations, the model began to fine-tune its hyperparameters to avoid overfitting or underfitting, resulting in a plateau in log loss decrease. Ultimately, the model was stopped early after 116 iterations, providing optimal performance. RMSE and deviance also exhibited a comparable trend of rapid decline during early iterations, followed by a gradual decline after 90 iterations (figure 3F,G). Additionally, AUC experienced a rapid increase in the initial training phase, and then gradually reached equilibrium, indicating the effectiveness of the learning process of the best model (figure 3H).
Interpreting the decision-making process of the best model
The capability of machine learning and deep learning models to fit data distribution in high-dimensional space accurately comes at the expense of being difficult to explain their decision-making process. Such models are known as ‘black box’ models, limiting their clinical application by not improving user trust. To enhance the model’s clinical potential, the SHAP algorithm, which is a game theory-based algorithm, was used to provide individual and global interpretations of the model’s predictions. Our findings revealed that the 20 model components of the best model had a significant positive correlation among their predictions, as shown in figure 4A. Furthermore, variable importance was assessed across the model components, with medication (scaled importance 1.000), long-term illnesses (0.072) and sex (0.053) being significant predictors of the best model’s output, which was consistent with the results of the logistic regression analysis. Our results indicated that cardiac problems, such as heart attack and abnormal cardiac rhythm, significantly impacted the risk of diabetes. Moreover, health issues, including disability and self-felt health status, were strongly linked to diabetes, while lipid metabolism was also found to influence the onset of diabetes, as shown in figure 4B.
Figure 4. Interpretation toward all trained models. (A) Models’ correlation. (B) SHAP derived variable importance across all trained models. SHAP, SHapley Additive exPlanations.
After exploring the best model, we aimed to elucidate the impact of the top features on the model’s output using the SHAP algorithm. Due to the unavailability of SHAP for interpreting the ensemble model, we used the GBM model with the best performance for feature interpretation (figure 5A). Our findings reaffirmed that variables such as taking medications, sex and long-term illnesses significantly influenced the risk of diabetes after 2 years, alongside other factors such as dietician services, health status, ageing, high cholesterol and mental health. Furthermore, we estimated the contribution of the top features in the top models using the SHAP algorithm. From the dependence plots of SHAP (figure 5B–F), the number of medications, sex, long-term illnesses, availing dietician services and the number of regular medications were identified as the most important factors for DNN-1, DRF and GBM-1. In contrast, the best model weight-averaged every prediction to output the stacked prediction. An increase in the number of medications, long-term illnesses and the number of regular medications led to an increase in the risk of diabetes.
Figure 5. Model interpretation. (A) Summary SHAP plot for GBM-1. (B)-(F) exhibited how the top contributor affects models’ prediction. GBM, gradient boosting machine; SHAP, SHapley Additive exPlanations.
Discussion
The present study successfully developed a robust and precise model that exhibits good generalisation and can serve as a feasible tool for predicting diabetes risk after 2 years in a clinical setting. The proposed model employed automatic hyperparameter optimisation and ensemble deep/machine learning techniques and was validated using a large sample size of Irish residents aged ≥50 years. The study performed a comprehensive analysis of over 40 000 parameters, including social, medical, financial and health-related factors, to investigate their impact on diabetes risk after 2 years. With the aid of this model, healthcare professionals can make accurate predictions of diabetes risk and implement tailored interventions to manage the identified risk factors.
The study’s significant finding is the creation of a stacked model, combining various state-of-the-art deep learning and machine learning models that were optimised with hyperparameters. This new approach accurately predicts the risk of diabetes over 2 years. Previous research explored the risk factors and prediction of diabetes. For instance, Choi et al used an artificial neural network and support vector machine to predict diabetes with an AUC of 0.731.10 However, our model outperforms this research with an AUC of 0.85 in the independent test set. The superior performance of our model is due to the fact that Choi et al’s study used the cross-sectional Korea National Health and Nutrition Examination Survey (KNHANES), which contained less than 1000 parameters. The lack of a prospective nature and survey depth hindered its performance. Likewise, a previous study that employed the KNHANES dataset failed to enhance the models’ performance, with an AUC of <0.75, despite using several advanced machine learning models and a stacking method.11 The proposed best model, on the other hand, accurately predicted diabetes risk over 2 years, using various baseline parameters, including social, financial, health, mental and familial factors to improve its performance.
The interpretation of machine learning models is the most essential factor in facilitating their clinical application, as their decision-making processes are too complex to know and thus highly compromise the clinician and patients’ trust. Generally, high-stakes fields such as medicine are especially in need of interpretable models given the fatal consequences that can result from following a model prediction without understanding its decision process, which may be potentially flawed. With the assistance of SHAP, we took extensive and deep insights into our model’s decision-making process, and enabled clinicians to make the precision interventions for the identified risk factors of patients. Interestingly, we found that sex, age and alcohol intake increased diabetes risk after 2 years, which is highly agreed with previous findings.11 We also identified many novel factors that contributed importantly to model’s output, such as taking medicines, which could enlighten further studies on diabetes.
The accuracy of our diabetes risk prediction model was significantly improved by using hyperparameter optimisation, a variety of machine learning models and a stacking technique. While many statistical models have been developed to offer practical insights, machine and deep learning models are considered state-of-the-art.17 18 The XRT algorithm is a machine learning technique that creates an extremely randomised tree-growing process by integrating randomisation of a random subspace with a fully random selection of the cut point. In terms of efficiency and accuracy, XRT is highly competitive when compared with the current state-of-the-art randomisation algorithm.19 XRT has been successfully applied in a variety of domains, including antitubercular peptide prediction.20 The optimisation of the solubility of oxaprozin, an anti-inflammatory drug,21 automated brain tumour detection and segmentation,22 and protein–protein interaction sites.23 DRF is another machine learning algorithm that generates a forest of regression or classification trees, each of which is a weak learner established on a subset of rows and columns. The final prediction of DRF is made by averaging the outputs from all the trees.24 25 GBM is a forward learning ensemble algorithm that employs increasingly refined approximations to make accurate predictions.26 In our study, a DNN, which is a multilayer feedforward artificial neural network, was trained using back propagation and stochastic gradient descent.27 All of these machine and deep learning models were used to develop our diabetes risk prediction model, resulting in high accuracy and robustness, as expected.
To enhance the predictive performance of our proposed model, it is important to address some of the limitations of this study. Validation of the model with a larger sample size and well-designed clinical trials is necessary, along with the exploration of additional deep learning methods, such as neural networks with self-attention. Unfortunately, the original questionnaires’ design prevented the prediction of diabetes subtype. Moreover, the present study used data from a single country, and investigation in different regions with varying lifestyle factors could verify if the identified features remain consistent. Although the study focuses on patients in a high-risk age group, it would be beneficial to assess diabetes risks for patients at earlier ages, emphasising disease-prevention research. These limitations will be addressed in our upcoming studies as planned.
Conclusion
The study presented an ensemble model that accurately predicts diabetes risk after 2 years, using state-of-the-art machine learning techniques and identifying features from a national longitudinal study on ageing in Ireland. The elucidation of the decision-making process increased the model’s potential for clinical use, enabling clinicians to identify older individuals at high risk of developing diabetes. The findings of this study can facilitate further research on risk or protective factors for diabetes.
Data availability statement
All data relevant to the study are included in the article or uploaded as supplementary information. All data generated were included in the present study.
Ethics statements
Patient consent for publication
Not applicable.
Ethics approval
This study involves human participants. According to the certificates from Hainan Medical University Ethics Committee, we only included anonymised data from TILDA; therefore, no further ethical approval and written informed consent were required. Participants gave informed consent to participate in the study before taking part.
XX, XM and JY contributed equally.
Contributors XX: conceptualisation. XM and XX: methodology, formal analysis and writing—original draft preparation. XM and JY: data curation. ZC, JY and HZ: writing—review and editing. XM: visualisation. ZC: project administration. ZC and JY: funding acquisition. HZ and XX: responsible for the overall content as the guarantors.
Funding This work was supported by the Natural Science Foundation of Hainan province (grant number: 822QN472) and Graduate Innovation research project of Hainan province (grant number: Qhyb2021-57).
Competing interests None declared.
Provenance and peer review Not commissioned; externally peer reviewed.
Supplemental material This content has been supplied by the author(s). It has not been vetted by BMJ Publishing Group Limited (BMJ) and may not have been peer-reviewed. Any opinions or recommendations discussed are solely those of the author(s) and are not endorsed by BMJ. BMJ disclaims all liability and responsibility arising from any reliance placed on the content. Where the content includes any translated material, BMJ does not warrant the accuracy and reliability of the translations (including but not limited to local regulations, clinical guidelines, terminology, drug names and drug dosages), and is not responsible for any error and/or omissions arising from translation and adaptation or otherwise.
1 Cole JB, Florez JC. Genetics of diabetes mellitus and diabetes complications. Nat Rev Nephrol 2020; 16: 377–90. doi:10.1038/s41581-020-0278-5
2 DeFronzo RA, Ferrannini E, Groop L, et al. Type 2 diabetes mellitus. Nat Rev Dis Primers 2015; 1: 15019. doi:10.1038/nrdp.2015.19
3 American Diabetes A. 2. classification and diagnosis of diabetes: standards of medical care in Diabetes-2021. Diabetes Care 2021; 44 (Suppl 1): S15–33. doi:10.2337/dc21-S002
4 Wild S, Roglic G, Green A, et al. Global prevalence of diabetes: estimates for the year 2000 and projections for 2030. Diabetes Care 2004; 27: 1047–53. doi:10.2337/diacare.27.5.1047
5 Palmer AK, Gustafson B, Kirkland JL, et al. Cellular Senescence: at the nexus between ageing and diabetes. Diabetologia 2019; 62: 1835–41. doi:10.1007/s00125-019-4934-x
6 Sinclair AJ, Abdelhafiz AH, Forbes A, et al. Evidence-based diabetes care for older people with type 2 diabetes: a critical review. Diabet Med 2019; 36: 399–413. doi:10.1111/dme.13859
7 Sinclair A, Saeedi P, Kaundal A, et al. Diabetes and global ageing among 65-99-year-old adults: findings from the International diabetes Federation diabetes Atlas, 9Th edition. Diabetes Res Clin Pract 2020; 162. doi:10.1016/j.diabres.2020.108078
8 Bommer C, Heesemann E, Sagalova V, et al. The global economic burden of diabetes in adults aged 20-79 years: a cost-of-illness study. Lancet Diabetes Endocrinol 2017; 5: 423–30. doi:10.1016/S2213-8587(17)30097-9
9 Bozorgmanesh M, Hadaegh F, Azizi F. Diabetes prediction, lipid accumulation product, and adiposity measures; 6-year follow-up: tehran lipid and glucose study. Lipids Health Dis 2010; 9: 45. doi:10.1186/1476-511X-9-45
10 Choi SB, Kim WJ, Yoo TK, et al. Screening for Prediabetes using machine learning models. Comput Math Methods Med 2014; 2014. doi:10.1155/2014/618976
11 Deberneh HM, Kim I. Prediction of type 2 diabetes based on machine learning algorithm. Int J Environ Res Public Health 2021; 18. doi:10.3390/ijerph18063317
12 Ali R, Hussain J, Siddiqi MH, et al. H2Rm: a hybrid rough set reasoning model for prediction and management of diabetes mellitus. Sensors (Basel) 2015; 15: 15921–51. doi:10.3390/s150715921
13 Yao Q, Jin W, Li Y. Associations between fear of falling and activity restriction and late life depression in the elderly population: findings from the Irish longitudinal study on ageing (TILDA). J Psychosom Res 2021; 146. doi:10.1016/j.jpsychores.2021.110506
14 Jin W, Yao Q, Liu Z, et al. Do eye diseases increase the risk of arthritis in the elderly population? Aging (Albany NY) 2021; 13: 15580–94. doi:10.18632/aging.203122
15 Jin W, Liu Z, Zhang Y, et al. The effect of individual musculoskeletal conditions on depression: updated insights from an Irish longitudinal study on aging. Front Med 2021; 8. doi:10.3389/fmed.2021.697649
16 Whelan BJ, Savva GM. Design and methodology of the Irish longitudinal study on ageing. J Am Geriatr Soc 2013; 61 (Suppl 2): S265–8. doi:10.1111/jgs.12199
17 Jin W, Zhang Y, Liu Z, et al. Exploration of the molecular characteristics of the tumor-immune interaction and the development of an individualized immune Prognostic signature for neuroblastoma. J Cell Physiol 2021; 236: 294–308. doi:10.1002/jcp.29842
18 Liu G, Xiong D, Che Z, et al. A novel inflammation-associated Prognostic signature for clear cell renal cell carcinoma. Oncol Lett 2022; 24: 307. doi:10.3892/ol.2022.13427
19 Geurts P, Ernst D, Wehenkel L. Extremely randomized trees. Mach Learn 2006; 63: 3–42. doi:10.1007/s10994-006-6226-1
20 Manavalan B, Basith S, Shin TH, et al. Atbppred: A robust sequence-based prediction of anti-Tubercular peptides using extremely randomized trees. Comput Struct Biotechnol J 2019; 17: 972–81. doi:10.1016/j.csbj.2019.06.024
21 Alshehri S, Alqarni M, Namazi NI, et al. Design of predictive model to optimize the solubility of Oxaprozin as nonsteroidal anti-inflammatory drug. Sci Rep 2022; 12: 13106. doi:10.1038/s41598-022-17350-5
22 Soltaninejad M, Yang G, Lambrou T, et al. Automated brain tumour detection and segmentation using superpixel-based extremely randomized trees in FLAIR MRI. Int J Comput Assist Radiol Surg 2017; 12: 183–203. doi:10.1007/s11548-016-1483-3
23 Xia B, Zhang H, Li Q, et al. Pets: A stable and accurate Predictor of protein-protein interacting sites based on extremely-randomized trees. IEEE Trans Nanobioscience 2015; 14: 882–93. doi:10.1109/TNB.2015.2491303
24 Islam S, Amin SH. Prediction of probable Backorder scenarios in the supply chain using distributed random forest and gradient boosting machine learning techniques. J Big Data 2020; 7: 1–22. doi:10.1186/s40537-020-00345-2
25 H2O.ai. R interface for H2O. 2016.
26 Natekin A, Knoll A. Gradient boosting machines, a Tutorial. Front Neurorobot 2013; 7: 21. doi:10.3389/fnbot.2013.00021
27 Yan S, Jin W, Ding J, et al. Machine-intelligence for developing a potent signature to predict ovarian response to tailor assisted reproduction technology. Aging (Albany NY) 2021; 13: 17137–54. doi:10.18632/aging.203032
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
© 2023 Author(s) (or their employer(s)) 2023. Re-use permitted under CC BY-NC. No commercial re-use. See rights and permissions. Published by BMJ. http://creativecommons.org/licenses/by-nc/4.0/ This is an open access article distributed in accordance with the Creative Commons Attribution Non Commercial (CC BY-NC 4.0) license, which permits others to distribute, remix, adapt, build upon this work non-commercially, and license their derivative works on different terms, provided the original work is properly cited, appropriate credit is given, any changes made indicated, and the use is non-commercial. See: http://creativecommons.org/licenses/by-nc/4.0/ . Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Abstract
Objectives
The prevalence of diabetes has increased globally, leading to a significant disease burden and financial cost. Early prediction is crucial to control its prevalence.
Design
A prospective cohort study.
Setting
National representative study on Irish.
Participants
8504 individuals aged 50 years or older were included.
Primary and secondary outcome measures
Surveys were conducted to collect over 40 000 variables related to social, financial, health, mental and family status. Feature selection was performed using logistic regression. Different machine/deep learning algorithms were trained, including distributed random forest, extremely randomised trees, a generalised linear model with regularisation, a gradient boosting machine and a deep neural network. These algorithms were integrated into a stacked ensemble to generate the best model. The model was tested using various metrics, such as the area under the curve (AUC), log loss, mean per classification error, mean square error (MSE) and root MSE (RMSE). The SHapley Additive exPlanations (SHAP) method was used to interpret the established model.
Results
After 2 years, 105 baseline features were identified as major contributors to diabetes risk, including sex, low-density lipoprotein cholesterol and cirrhosis. The best model achieved high accuracy, robustness and discrimination in predicting diabetes risk, with an AUC of 0.854, log loss of 0.187, mean per classification error of 0.267, RMSE of 0.229 and MSE of 0.052 in the independent test set. The model was also shown to be well calibrated. The SHAP algorithm provided insights into the decision-making process of the model.
Conclusions
These findings could help physicians in the early identification of high-risk patients and implement targeted interventions to reduce diabetes incidence.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
Details

1 Department of Endocrinology, People's Hospital of Wanning, Wanning, Hainan Province, China
2 Department of Industrial Design, Hubei University of Technology, Wuhan, Hubei Province, China
3 Department of Urology, The Second Affiliated Hospital of Hainan Medical University, Haikou, Hainan, China
4 Department of Endocrinology, The First Affiliated Hospital of Hainan Medical University, Haikou, Hainan, China
5 Department of Urology, The First Affiliated Hospital of Hainan Medical University, Haikou, Hainan, China