Method for constructing a risk prediction model for depression in patients with t2dm

By constructing a machine learning-based model to predict the risk of depression in patients with type 2 diabetes mellitus (T2DM), the problem of low screening rate in existing technologies has been solved, enabling effective identification and simplified screening of high-risk individuals with depression, and improving screening efficiency.

CN123095339APending Publication Date: 2026-11-13SHENYANG PHARMA UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411592793.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2026-11-13

AI Technical Summary

Technical Problem

In the current technology, the screening rate of depression in patients with type 2 diabetes mellitus (T2DM) is low, and the complexity of existing depression scales and prediction models limits their use and makes it impossible to effectively identify high-risk depression populations.

Method used

We constructed a machine learning-based model to predict the risk of depression in patients with type 2 diabetes mellitus (T2DM). By acquiring patient data, we calculated the incidence of clinically relevant and significant depression, screened independent influencing factors, and established an artificial neural network prediction model to simplify the screening process.

Benefits of technology

This provides a simple and feasible model that can effectively identify high-risk individuals with depression in patients with type 2 diabetes mellitus (T2DM), improve screening rates, help clinicians identify high-risk groups, and eliminate the need for patients to actively seek screening.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123095339A_ABST
    Figure CN123095339A_ABST
Patent Text Reader

Abstract

This invention belongs to the field of disease risk prediction model construction, specifically relating to a method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM). The method includes the following steps: acquiring data from T2DM patients; calculating the incidence of clinically relevant depression and clinically significant depression in T2DM patients and comparing this with the incidence of clinically relevant depression and clinically significant depression in non-diabetic individuals; screening independent influencing factors correlated with the occurrence of clinically relevant depression and clinically significant depression in T2DM patients; and constructing an artificial neural network prediction model based on these independent influencing factors, with clinically relevant depression and clinically significant depression as the outcomes. The prediction model constructed according to the method provided by this invention has good discriminative power in determining whether T2DM patients will develop depression.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of disease risk prediction model construction, specifically involving a method for constructing a risk prediction model for the occurrence of depression in patients with type 2 diabetes mellitus (T2DM). Background Technology

[0002] Diabetes mellitus is a complex chronic metabolic disorder caused by insulin deficiency or insulin resistance, and it has gradually become one of the most serious and common chronic diseases. If diabetic patients cannot effectively control their blood sugar in the long term, complications will occur in the heart, blood vessels, skin, and retina, leading to increased disability and mortality rates, severely reducing patients' quality of life and life expectancy, and posing a significant threat to global health. Diabetes can be classified into four types: type 1 diabetes, type 2 diabetes mellitus (T2DM), special types of diabetes, and gestational diabetes mellitus, with more than 90% of diabetic patients having T2DM.

[0003] Depression is a relatively common mental illness, and its incidence is gradually increasing. The main symptoms of depression include low mood and lack of interest, often accompanied by insomnia, decreased appetite, slowed reactions, and reduced activity. In severe cases, suicidal ideation can occur, leading to premature death. Depression is characterized by high relapse rates, a chronic course, and lifelong illness. The psychosocial functioning of patients with depression is severely limited, resulting in a significantly reduced quality of life and making it a major public health problem contributing to increased mortality.

[0004] Previous studies have shown a close relationship between type 2 diabetes mellitus (T2DM) and depression. The prevalence of depression in T2DM patients is generally 10%–15%, about twice the prevalence in non-diabetic patients. Compared with patients with T2DM alone, patients with T2DM and depression have a worse prognosis and increased mortality. The U.S. Preventive Services Task Force and the American Diabetes Association recommend regular screening for depression, especially when T2DM patients experience diabetes-related complications, changes in daily life, or changes to their diabetes treatment plan.

[0005] Currently, commonly used screening tools in clinical practice include: (1) Patient Health Questionnaire-9 (PHQ-9), which contains 9 items about depressive symptoms. Patients need to select the corresponding answers for each item based on their feelings in the past two weeks. This questionnaire can detect depressive symptoms well in patients with type 2 diabetes mellitus (T2DM); (2) Problem Areas in Diabetes Scale (PAID), which is a scale used to assess the psychological and emotional problems faced by diabetic patients in their daily lives. Patients need to answer 20 related questions based on their feelings. This scale focuses on negative emotions related to diabetes, such as fear, anger, and frustration; (3) Diabetes Distress Scale (DSS), which contains 17 items and mainly assesses the severity of problems and burdens related to diabetes management. At the same time, previous studies have also used clinical prediction models to predict the occurrence of depression in patients with T2DM. However, due to the lack of understanding among patients with type 2 diabetes mellitus (T2DM) about the occurrence and consequences of depression, and the complexity of existing depression scales and predictive models, the screening rate of patients is low, and the use of models is limited. Summary of the Invention

[0006] In view of the above technical problems, the present invention provides a method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM). The model constructed according to the method has good discrimination and is simple, feasible and does not require patients to actively screen.

[0007] The specific technical solution provided by this invention is as follows: This invention provides a method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM), comprising the following steps: Obtain data from patients with type 2 diabetes mellitus (T2DM); The incidence of clinically relevant depression and clinically significant depression in patients with type 2 diabetes mellitus (T2DM) was calculated based on the obtained data and compared with the incidence of clinically relevant depression and clinically significant depression in non-diabetic individuals. Based on the comparison results, independent influencing factors that are associated with the occurrence of clinically relevant depression and clinically significant depressive outcomes in patients with type 2 diabetes mellitus (T2DM) were screened. Based on the aforementioned independent influencing factors, an artificial neural network prediction model was constructed with clinically relevant depression and clinically significant depression as the outcomes.

[0008] Preferably, the acquired T2DM patient data includes demographic characteristics, general measurement data, laboratory data, and questionnaire data; the demographic characteristics include age, sex, race / ethnicity, household income and poverty ratio, education level, and marital status; the general measurement data includes height, waist circumference, and BMI; the laboratory data includes glycated hemoglobin and total cholesterol; and the questionnaire data includes smoking, alcohol consumption, physical activity, cardiovascular disease, diabetic retinopathy, hypertension, liver disease, cancer, kidney failure, hospitalization history in the past year, health status, daily sleep, sleep disorders, age at diagnosis of diabetes, PHQ-9 score, and medication use.

[0009] Preferably, calculating the incidence of clinically relevant depression and clinically significant depression includes constructing a baseline characteristic table of the incidence of clinically relevant depression and clinically significant depression for patients with type 2 diabetes mellitus (T2DM) based on demographic characteristics, general measurement data, laboratory data, and questionnaire data, as well as the incidence of clinically relevant depression and clinically significant depression in the T2DM population in different years.

[0010] Preferably, the independent influencing factors are obtained by screening based on the comparison results using univariate logistic regression and multivariate logistic regression.

[0011] Preferably, age, sex, race, education level, family income to poverty ratio, body mass index, waist circumference to height ratio, smoking status, cardiovascular disease status, sleep disorder status, health status, and hospitalization status are independent influencing factors for the occurrence of clinically relevant depression in patients with type 2 diabetes mellitus (T2DM).

[0012] Preferably, gender, education level, PIR, BMI, WtHR, sleep disorder status, cardiovascular disease and renal failure status, health status, hospitalization status, and GLP-1RA drug use are independent factors that significantly influence the occurrence of clinical depression in people with type 2 diabetes mellitus (T2DM).

[0013] The present invention also provides a risk prediction system for depression in patients with type 2 diabetes mellitus (T2DM), which includes a prediction module developed based on the risk prediction model for depression in T2DM patients constructed by the above method.

[0014] Compared with the prior art, the beneficial effects of the present invention are as follows: The method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM) provided by this invention is a model for predicting the occurrence of depression in T2DM patients based on machine learning. This model has good discriminative power in determining whether a T2DM patient will develop depression.

[0015] The predictive model constructed in this invention is simple, feasible, and does not require active screening by patients. It can help clinicians identify high-risk individuals with type 2 diabetes mellitus (T2DM).

[0016] This invention utilizes the "shiny" package in R software to deploy the constructed model on a website, making it more convenient for clinical applications. Attached Figure Description

[0017] Figure 1 This is a flowchart of the construction process for a model to predict the risk of depression in patients with type 2 diabetes mellitus (T2DM). Figure 2 This is a diagram illustrating the patient screening process for type 2 diabetes mellitus (T2DM). Figure 3 The proportions of patients with type 2 diabetes mellitus (T2DM) who develop chronic renal disease (CRD) and chronic symptomatic disease (CSD) are: A, CRD; B, CSD. Figure 4 This is the result of a correlation analysis; Figure 5 It is a forest plot showing the risk profiles of each factor obtained from the final model; Figure 6 It is an ANN predictive model for the risk of CRD in patients with type 2 diabetes mellitus (T2DM). Figure 7 It is a traditional nomogram prediction model for CRD in T2DM patients; Figure 8 It is a forest plot showing the risk profiles of each factor in c obtained from a multivariate logistic regression. Figure 9 It is an ANN predictive model for the risk of CSD outcomes in patients with type 2 diabetes mellitus (T2DM). Figure 10 It is a traditional nomogram prediction model for the risk of CSD outcomes in patients with type 2 diabetes mellitus (T2DM). Figure 11 The AUC of the ROC curve is used to evaluate the discrimination of the ANN prediction model; Figure 12 The AUC of the ROC curve is used to evaluate the discrimination of traditional nomogram prediction models; Figure 13 It is the optimal probability threshold for the ANN prediction model of the risk of depression in patients with type 2 diabetes mellitus (T2DM). Figure 14 It is an online webpage that uses an ANN model to predict depression in patients with type 2 diabetes mellitus (T2DM) and chronic depression (CSD). Detailed Implementation

[0018] To enable those skilled in the art to better understand the present invention, the technical solution of the present invention will be described in further detail below with reference to the embodiments and accompanying drawings. Obviously, the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort should fall within the scope of protection of the present invention.

[0019] There is a close relationship between type 2 diabetes mellitus (T2DM) and depression. Compared with patients with T2DM alone, patients with T2DM and depression have a worse prognosis and increased mortality. The U.S. Preventive Services Task Force and the American Diabetes Association recommend regular screening for depression, especially when patients with T2DM experience diabetes-related complications, changes in daily life, or changes in their diabetes treatment plan. However, due to a lack of understanding among T2DM patients about the occurrence and consequences of depression, and the complexity of existing depression scales and predictive models, screening rates are low and the use of these models is limited.

[0020] This invention provides a method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM), comprising the following steps: Obtain data from patients with type 2 diabetes mellitus (T2DM); The incidence of clinically relevant depression and clinically significant depression in patients with type 2 diabetes mellitus (T2DM) was calculated based on the obtained data and compared with the incidence of clinically relevant depression and clinically significant depression in non-diabetic individuals. Based on the comparison results, independent influencing factors that are associated with the occurrence of clinically relevant depression and clinically significant depressive outcomes in patients with type 2 diabetes mellitus (T2DM) were screened. Based on the aforementioned independent influencing factors, an artificial neural network prediction model was constructed with clinically relevant depression and clinically significant depression as the outcomes.

[0021] The method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM) provided by this invention is a model for the occurrence of depression in T2DM patients based on machine learning. This model has good distinguishability in whether T2DM patients develop depression, is simple and feasible, and does not require patients to actively screen. It can help clinicians identify high-risk individuals with depression in T2DM patients.

[0022] Example 1 Construction of a model for predicting the risk of depression in patients with type 2 diabetes mellitus (T2DM), such as Figure 1 As shown.

[0023] 1. Materials and Methods 1.1 Data Source The data source for this invention is the US NHANES database (National Health and Nutrition Examination Survey, https: / / www.cdc.gov / nchs / nhanes / index.htm).

[0024] 1.2 Inclusion Criteria (1) Patient data from 2005 to 2020; (2) Patients aged 20 years and above; (3) Patients with a confirmed diagnosis of T2DM; According to the diagnostic criteria of the American Diabetes Association, patients are diagnosed with diabetes if they meet any of the following conditions: ① The doctor informed them that they had diabetes in the questionnaire; ② The medication information showed that they used diabetes medication or insulin; ③ Glycated hemoglobin > 6.5%; ④ Fasting blood glucose ≥ 7.0 mmol / L; ⑤ Random blood glucose ≥ 11.1 mmol / L; ⑥ 2-hour blood glucose in the glucose tolerance test ≥ 11.1 mmol / L; (4) Patients with a complete score on the Patient Health Questionnaire-9 (PHQ-9) scale.

[0025] 1.3 Exclusion Criteria (1) Patients diagnosed before age 30 and who started insulin therapy within one year of diagnosis, according to the clinical circumstances described by the American Diabetes Association; (2) Patients with incomplete or poorly documented information.

[0026] 1.4 Definition of Ending Event This invention uses clinically relevant depression (CRD) and clinically significant depression (CSD) as outcome indicators. Depression was assessed using the PHQ-9 scale, with total scores ranging from 0 to 27. Depression was categorized as "none or least" (0-4 points), "mild" (5-9 points), "moderate" (10-14 points), "moderately severe" (15-19 points), and "severe" (20-27 points). This invention defines patients with a total PHQ-9 score ≥ 10 as CRD and patients with a total PHQ-9 score ≥ 15 as CSD.

[0027] 1.5 Variable Definition This invention incorporates four categories of variables, including demographic characteristics, general measurement data, laboratory data, and questionnaire data, namely: (1) Demographic characteristics: age, sex, race / ethnicity, household income and poverty ratio, education level and marital status; (2) General measurement data: height, waist circumference, BMI; (3) Laboratory data: glycated hemoglobin, total cholesterol; (4) Questionnaire data: smoking, drinking, physical activity, cardiovascular disease, diabetic retinopathy, hypertension, liver disease, cancer, kidney failure, hospitalization status in the past year, health status, daily sleep, sleep disorders, age at diagnosis of diabetes, PHQ-9 score, and medication use.

[0028] (1) Demographic characteristics variables Age: Divided into 4 groups: 20-49 years old, 50-64 years old, 65-74 years old, and 75 years old and above; Gender: Male and female; Race: Divided into 5 groups: Mexican American, non-Hispanic white, non-Hispanic black, other Hispanic and other races; The poverty income ratio (PIR) is divided into three tiers according to the NHANES analysis guidelines: <1.3, 1.3~3.5, and >3.5. A higher PIR value indicates a higher household income.

[0029] Educational background: Divided into 4 groups: junior high school graduation, high school dropout, high school graduation, and university or above; Marital status: divided into 2 groups: married or cohabiting, unmarried or separated or divorced.

[0030] (2) General measurement data variables Waist-to-height ratio (WtHR): WtHR = waist circumference / height, divided into 3 groups: 0.3~0.5, 0.5~0.7, >0.7; Body mass index (BMI): According to international obesity standards and in combination with specific population groups, it is divided into 4 groups: <25, 25~30, 30~35, and >35.

[0031] (3) Laboratory data variables: Glycosylated hemoglobin (HbA1c): divided into 4 groups: <6.5%, 6.5~7.5%, 7.5~8.9%, ≥9%; Total cholesterol (TC): divided into 2 groups: 0~200mg / dl, >200mg / dl.

[0032] (4) Questionnaire data variables Smoking: Based on the questionnaire results, participants were divided into three groups: never smokers, former smokers, and current smokers. The definitions of each variable were as follows: never smoking is defined as smoking less than 100 cigarettes in one's lifetime; having smoked more than 100 cigarettes in one's lifetime and now having completely quit smoking is defined as having previously smoked; and currently smoking more than 100 cigarettes in one's lifetime and sometimes or every day is defined as still smoking.

[0033] Drinking: Based on the questionnaire responses, participants were divided into four groups: never drinker, light drinker, moderate drinker, and heavy drinker. Each group is further defined as follows: never drinking (less than 12 drinks in a lifetime); light drinker (women ≤ 1 drink per day or men ≤ 2 drinks per day); moderate drinker (women ≤ 2 drinks per day or men ≤ 3 drinks per day); and heavy drinker (women ≥ 3 drinks per day or men ≥ 4 drinks per day).

[0034] Sleep duration: divided into 3 groups: ≤ 5h, 6~8h, ≥ 9h.

[0035] Diseases: mainly include: sleep disorders, cardiovascular diseases, hypertension, liver disease, cancer, kidney failure, diabetic retinopathy, etc., and are divided into yes / no categories based on the questionnaire results.

[0036] Health status: divided into 3 groups: poor, average or good, and very good.

[0037] Physical activity (PA): PA participation was categorized as yes or no based on whether respondents engaged in moderate-intensity and / or high-intensity physical activity.

[0038] Hospitalization: Based on the questionnaire results, it is divided into two categories: yes / no.

[0039] Age at diagnosis of diabetes: divided into 3 groups: <50, 50~69, ≥70.

[0040] The use of hypoglycemic drugs includes insulin, metformin, sulfonylureas, thiazolidinediones, DPP-4 inhibitors, and GLP-1 receptor agonists.

[0041] 1.6 Statistical Analysis Methods First, a weighted analysis was performed on the stratified, multi-stage probability sampling design of NHANES. By calculating the distribution of categorical variables, a baseline characteristic table of CRD and CSD incidence in T2DM patients was constructed, incorporating demographic characteristics, general measurement data, laboratory data, and questionnaire data. The weighted proportions of CRD and CSD in the T2DM population were calculated for different years, while the incidence of depression in the non-diabetic population was compared.

[0042] Secondly, correlation analysis was used to determine the relationships between variables. The entire dataset was divided into a modeling group and a validation group in a 7:3 ratio. Univariate and multivariate logistic regression were used to determine the final independent influencing factors, and the results are presented as OR and its 95% CI. Based on the selected independent influencing factors, ANN and traditional nomogram prediction models for the risk of depression in T2DM patients were constructed. The area under the curve (AUC) of ROC analysis was used to evaluate the discrimination of the models. The ANN prediction model and the traditional nomogram prediction model were compared, and the model with higher predictive performance was selected as the best prediction model. The best prediction model was then validated in the validation group cohort. The specific flowchart is shown in 1.

[0043] Patients with type 2 diabetes mellitus (T2DM) are categorized into high-risk and low-risk groups for developing chronic renal disease (CRD) and chronic symptomatic disease (CSD). A visualization data analysis platform was then built using the "Shiny" package in R. "Shiny" is a package for interactive web applications, providing a simple framework for building programs that allow users to interact directly with R code using a browser. The construction of "Shiny" mainly consists of two parts: the UI and the server. The UI is used to build the application's user interface, while the server defines the application's functionality.

[0044] All data processing and statistics in this invention were performed using R language (version 4.1.5). All statistical tests were two-tailed tests, with α=0.05 as the significance level and P<0.05 considered statistically significant.

[0045] 2. Results 2.1 General Information of T2DM Patients Based on the established inclusion criteria, 76,496 patients were extracted from the NHANES database. After data screening according to the exclusion criteria, 6,367 patients with type 2 diabetes mellitus (T2DM) were finally included (weighted N=115,096,233). The specific screening process can be found in [link to relevant documentation]. Figure 2 The CRD group had 832 patients (weighted N=13,909,476) and the CSD group had 345 patients (weighted N=5,507,073).

[0046] Of the 6367 patients included in the study, the fewest were under 50 years old, and the largest were between 50 and 64 years old. The number of men was slightly higher than women in the study population. In terms of education level, the largest number had a college degree or higher. The proportion of married or partnered patients was slightly higher. Overweight patients were more common. Among those diagnosed with type 2 diabetes mellitus (T2DM), more patients were under 70 years old. Regarding medication use, 66.76% of patients were using at least one hypoglycemic agent. The majority of patients in the CRD group were women, non-Hispanic white, married / partnered, aged 50-64 years, with a PIR <1.3 and a BMI >35 kg / m². 2 The baseline characteristics of the CSD group were similar to those of the CRD group. Most patients were female, non-Hispanic white, married / partnered, aged 50-64 years, with a PIR <1.3 and BMI >35 kg / m². 2 The data suggest that there are differences among the included variables between patients with type 2 diabetes mellitus (T2DM) who experienced depressive symptoms and those who did not.

[0047] 2.2 Comparison of the incidence of depression in patients with type 2 diabetes mellitus (T2DM) and non-diabetic individuals The proportion of patients with depression among those with type 2 diabetes mellitus (T2DM) included in the study was calculated based on weights and compared with the incidence of depression in non-diabetic individuals with complete PHQ-9 scores in the NHANES database from 2005 to 2020. The incidence of chronic renal disease (CRD) in the non-diabetic population ranged from 5.17% to 8.00%, while in T2DM patients it ranged from 9.59% to 13.99%; the incidence of chronic obstructive sclerosis (CSD) in the non-diabetic population ranged from 1.69% to 3.04%, while in T2DM patients it ranged from 3.35% to 5.46%. Figure 3 As shown, in the same year, the incidence of CRD and CSD was higher in the T2DM population than in the non-diabetic population.

[0048] 2.3 Correlation analysis of included variables Correlation analysis was performed on the included variables to ensure that there was no correlation between them. The results of the correlation analysis are as follows: Figure 4 As shown, it is generally considered that with a large sample size (n>100), |r|<0.40 indicates low correlation, 0.40≤ |r|<0.70 indicates moderate correlation, and |r|≥0.70 indicates high correlation. The correlation coefficient |r|<0.70 among the variables included in this invention indicates that there is no strong correlation between the variables in this study, and there is no need to remove variables. All factors can be included in subsequent univariate and multivariate logistic regression analyses.

[0049] 2.4 Construction of a predictive model for the risk of depression in patients with type 2 diabetes mellitus (T2DM) Using univariate logistic regression and multivariate logistic regression methods, with CRD and CSD as outcomes, independent influencing factors for the occurrence of depression in patients with type 2 diabetes mellitus (T2DM) were identified. Based on the screened independent influencing factors, an ANN prediction model and a traditional nomogram prediction model for the risk of depression in T2DM patients were constructed.

[0050] (1) Model construction for the risk of depression in T2DM patients with CRD as the outcome 1) Univariate Logistic Regression of CRD Outcomes in T2DM Patients Based on the modeling group population, univariate logistic regression analysis was used to identify factors associated with the risk of depression and CRD outcome in patients with type 2 diabetes mellitus (P<0.05). These factors included age, sex, race / ethnicity, household income and poverty rate, education level, marital status, WtHR, BMI, smoking status, alcohol consumption, physical activity, cardiovascular disease, diabetic retinopathy, liver disease, cancer, renal failure, hospitalization history in the past year, health status, daily sleep duration, presence of sleep disorders, and age at diabetes diagnosis.

[0051] 2) Multivariate Logistic Regression of CRD Outcomes in T2DM Patients Statistically significant univariate logistic variables were included in a multivariate logistic regression analysis, resulting in 12 independent influencing factors affecting CRD outcomes in T2DM patients. These factors were: age, sex, race / ethnicity, education level, PIR, BMI, WtHR, smoking status, cardiovascular disease prevalence, sleep disturbances, health status, and hospitalization history in the past year. The final forest plot of each factor is shown below. Figure 5 Among these factors, older age (age > 75 years), college degree or above, higher economic status (PIR ≥ 1.3), higher WtHR (WtHR > 0.5), and good health are protective factors against CRD. Female sex, other Hispanic ethnicity, and higher BMI (BMI = 30~35 kg / m²) are also considered protective factors. 2 Smoking, having cardiovascular disease, having sleep disorders, and having been hospitalized are risk factors for CRD.

[0052] 3) Construction of an ANN predictive model for the risk of CRD in T2DM patients An ANN model predicting CRD outcome was constructed based on factors independently associated with CRD in patients with type 2 diabetes mellitus (T2DM) obtained through multivariate logistic regression analysis. The model's input layer consisted of the 12 included independent influencing factors, with two layers containing 10 and 5 nodes respectively. The ANN model is shown below. Figure 6 .

[0053] 4) Construction of a traditional nomogram prediction model for the risk of CRD in T2DM patients Based on the modeling population, univariate and multivariate logistic regression results were used to identify independent influencing factors affecting CRD outcomes in T2DM patients. A traditional nomogram prediction model for predicting CRD in T2DM patients was then constructed, such as... Figure 7 As shown.

[0054] (2) Model construction for the risk of depression in T2DM patients with CSD as the outcome 1) Univariate Logistic Regression of CSD Outcomes in T2DM Patients Based on the modeling group, univariate logistic regression analysis was used to identify factors associated with the risk of depression and CSD outcome in patients with type 2 diabetes mellitus (T2DM) (P<0.05). These factors included age, sex, race / ethnicity, PIR, education level, marital status, WtHR, BMI, smoking status, alcohol consumption, physical activity, cardiovascular disease, diabetic retinopathy, liver disease, renal failure, hospitalization history in the past year, health status, daily sleep duration, presence of sleep disorders, age at diabetes diagnosis, and use of GLP-1RA.

[0055] 2) Multivariate Logistic Regression of CSD Outcomes in T2DM Patients Statistically significant univariate logistic variables were included in a multivariate logistic regression analysis, resulting in 12 independent influencing factors affecting the CSD outcome in T2DM patients. These factors were: sex, race, education level, PIR, BMI, WtHR, cardiovascular disease, sleep disorders, renal failure, health status, hospitalization history in the past year, and whether GLP-1RA was used. The risk profiles for each factor obtained from the final model can be found in [link to model]. Figure 8 .

[0056] Among these factors, a college degree or above, higher economic status (PIR ≥ 1.3), a larger WtHR (WtHR > 0.5), and good health are protective factors against CSD. Other protective factors include being female, of Hispanic descent, and having a higher BMI (BMI = 30~35 kg / m²). 2 Having cardiovascular disease, having kidney failure, having sleep disorders, having been hospitalized, and using GLP-1RA are risk factors for CSD.

[0057] 3) Construction of an ANN predictive model for the risk of CSD outcome in T2DM patients Multivariate logistic regression analysis was used to identify factors independently associated with the development of chronic dementia (CSD) in patients with type 2 diabetes mellitus (T2DM). An ANN model predicting CSD outcomes was constructed based on these factors. The model's input layer consisted of the 12 included independent influencing factors, with two layers containing 12 and 6 nodes respectively. The ANN model is shown below. Figure 9 .

[0058] 4) Construction of a traditional nomogram prediction model for the risk of CSD outcomes in T2DM patients Based on the modeling population, univariate and multivariate logistic regression results were used to identify independent influencing factors affecting the occurrence of chronic obstructive sclerosis (CSD) in patients with type 2 diabetes mellitus (T2DM). A traditional nomogram prediction model for predicting CSD in T2DM patients was then constructed, such as... Figure 10 As shown.

[0059] 2.5 Evaluation and Screening of Predictive Models for the Risk of Depression in Patients with Type 2 Diabetes Mellitus (T2DM) (1) Discrimination evaluation of predictive models for the risk of depression in patients with type 2 diabetes mellitus (T2DM) 1) Discrimination evaluation of ANN predictive models for the risk of depression in patients with type 2 diabetes mellitus (T2DM) like Figure 11 As shown, the AUC of the ROC curve is used to evaluate the discrimination of the ANN prediction model.

[0060] The results showed that the AUC of the ROC curve for the ANN prediction model for CRD outcome based on the modeling cohort was 0.85 (95% CI: 0.84–0.87), meaning it could distinguish patients with CRD from those without with an 85% probability. The AUC of the ROC curve for the ANN prediction model for CSD outcome was 0.87 (95% CI: 0.84–0.90), meaning it could distinguish patients with CSD from those without with an 87% probability. Furthermore, internal validation of these models was performed using the validation cohort. The AUC of the ANN prediction model for CRD was 0.74 (95% CI: 0.71–0.78), and the AUC of the ANN prediction model for CSD was 0.73 (95% CI: 0.70–0.77). These results suggest that the ANN prediction model for the risk of depression in patients with type 2 diabetes mellitus (T2DM) has good discriminatory power.

[0061] 2) Discrimination evaluation of traditional nomogram prediction models for the risk of depression in patients with type 2 diabetes mellitus (T2DM) like Figure 12 As shown, the AUC of the ROC curve was used to evaluate the discrimination of the traditional nomogram prediction model. The results showed that the AUC of the ROC curve for the traditional nomogram prediction model for CRD outcome based on the modeling cohort was 0.78 (95% CI: 0.76–0.80), meaning it could distinguish patients with CRD from those without with a 78% probability; the AUC of the ROC curve for the traditional nomogram prediction model for CSD outcome was 0.84 (95% CI: 0.81–0.86), meaning it could distinguish patients with CSD from those without with an 84% probability. Furthermore, internal validation of the models was performed using the validation cohort. The AUC of the traditional nomogram prediction model for CRD was 0.74 (95% CI: 0.72–0.76); the AUC of the traditional nomogram prediction model for CSD was 0.79 (95% CI: 0.76–0.82). The above results suggest that the traditional nomogram prediction model for the risk of depression in patients with type 2 diabetes mellitus (T2DM) has good discriminative power.

[0062] (2) Screening of predictive models for the risk of depression in patients with type 2 diabetes mellitus (T2DM) Depend on Figure 11 as well as Figure 12It can be seen that, when comparing the AUC of the ANN prediction model for the risk of depression in T2DM patients constructed based on machine learning with that of the traditional nomogram prediction model, the results show that the ANN prediction model is better than the traditional nomogram prediction model for both CRD and CSD outcomes in T2DM patients. Therefore, the ANN model is selected as the best prediction model.

[0063] 2.6 Application of ANN predictive model for the risk of depression in patients with type 2 diabetes mellitus (T2DM) (1) Optimal probability threshold for ANN prediction model of the risk of depression in T2DM patients Based on the ROC curve of the optimal ANN model for the risk of depression in patients with type 2 diabetes mellitus (T2DM), the optimal probability thresholds for high and low risk of CRD and CSD can be determined, and this can be used to distinguish between high-risk and low-risk groups for CRD and CSD.

[0064] The results are as follows Figure 13 As shown, the optimal probability threshold for the occurrence of CRD is 0.179, indicating that when the risk calculation result of CRD by the ANN model is higher than 0.179, the patient is considered to be in a high-risk group for CRD; otherwise, the patient is considered to have a low risk of CRD. The optimal probability threshold for the occurrence of CSD is 0.061, indicating that when the risk calculation result of CSD by the ANN model is higher than 0.061, the patient is considered to be in a high-risk group for CSD; otherwise, the patient is considered to have a low risk of CSD.

[0065] (2) Construct an online website to predict the risk of depression in patients with type 2 diabetes mellitus (T2DM). To facilitate clinical decision-making, this invention has developed an online webpage for predicting depression in patients with type 2 diabetes mellitus (T2DM) using an ANN model, such as... Figure 14 As shown in the image, the model inputs patient information such as age, sex, race, PIR, education level, BMI, WtHR, smoking status, sleep disorders, health status, hospitalization history, cardiovascular disease, renal failure, and GLP-1RA use to predict the high / low risk of CRD and CSD (https: / / predictiondepression.shinyapps.io / depression / ).

[0066] The above results indicate that the incidence of CRD and CSD is significantly higher in patients with type 2 diabetes mellitus (T2DM) than in non-diabetic individuals. Age, sex, race, PIR, education level, BMI, WtHR, smoking status, sleep disorders, health status, hospitalization history, cardiovascular disease status, renal failure status, and GLP-1RA use are independent risk factors for depression in T2DM patients, with GLP-1RA use being a significant risk factor for depression in this group. The ANN model outperforms the traditional nomogram prediction model, and the ANN model was applied to an online analysis platform.

Claims

1. A method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM), characterized in that, Includes the following steps: Obtain data from patients with type 2 diabetes mellitus (T2DM); The incidence of clinically relevant depression and clinically significant depression in patients with type 2 diabetes mellitus (T2DM) was calculated based on the obtained data and compared with the incidence of clinically relevant depression and clinically significant depression in non-diabetic individuals. Based on the comparison results, independent influencing factors that are associated with the occurrence of clinically relevant depression and clinically significant depressive outcomes in patients with type 2 diabetes mellitus (T2DM) were screened. Based on the aforementioned independent influencing factors, an artificial neural network prediction model was constructed with clinically relevant depression and clinically significant depression as the outcomes.

2. The method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM) according to claim 1, characterized in that, The acquired T2DM patient data included demographic characteristics, general measurement data, laboratory data, and questionnaire data.

3. The method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM) according to claim 2, characterized in that, The demographic characteristics include age, sex, race, ethnicity, household income and poverty rate, education level, and marital status; The general measurement data include height, waist circumference, and BMI; The laboratory data included glycated hemoglobin and total cholesterol; The questionnaire data included smoking, alcohol consumption, physical activity, cardiovascular disease, diabetic retinopathy, hypertension, liver disease, cancer, kidney failure, hospitalization history in the past year, health status, daily sleep, sleep disorders, age at diagnosis of diabetes, PHQ-9 score, and medication use.

4. The method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM) according to claim 2, characterized in that, Calculating the incidence of clinically relevant depression and clinically significant depression involved constructing a baseline characteristic table of the incidence of clinically relevant depression and clinically significant depression in patients with type 2 diabetes mellitus (T2DM) using demographic characteristics, general measurement data, laboratory data, and questionnaire data, as well as the proportion of clinically relevant depression and clinically significant depression in the T2DM population in different years.

5. The method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM) according to claim 1, characterized in that, The independent influencing factors were obtained based on the comparison results and by screening using univariate logistic regression and multivariate logistic regression.

6. The method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM) according to claim 3, characterized in that, Age, sex, race, education level, family income to poverty ratio, body mass index, waist circumference to height ratio, smoking status, cardiovascular disease status, sleep disorder status, health status, and hospitalization status are independent influencing factors for the occurrence of clinically relevant depression in patients with type 2 diabetes mellitus (T2DM).

7. The method for constructing a risk prediction model for depression in patients with type 2 diabetes mellitus (T2DM) according to claim 3, characterized in that, Gender, education level, PIR, BMI, WtHR, sleep disorder status, cardiovascular disease and renal failure status, health status, hospitalization status, and GLP-1RA use were clinically significant independent factors influencing the occurrence of depression in the T2DM population.

8. A system for predicting the risk of depression in patients with type 2 diabetes mellitus (T2DM), characterized in that, It includes a prediction module developed based on the risk prediction model for the occurrence of depression in patients with type 2 diabetes mellitus constructed by the method described in any one of claims 1 to 7.