ORIGINAL RESEARCH article

Front. Public Health, 04 June 2025

Sec. Public Mental Health

Volume 13 - 2025 | https://doi.org/10.3389/fpubh.2025.1606316

A risk prediction system for depression in middle-aged and older adults grounded in machine learning and visualization technology: a cohort study

  • JD

    Jinsong Du 1,2,3

  • XT

    Xinru Tao 1

  • LZ

    Le Zhu 1

  • WQ

    Wenhao Qi 4

  • XM

    Xiaoqiang Min 3,5

  • HD

    Hongyan Deng 1

  • SW

    Shujie Wei 6

  • XZ

    Xiaoyan Zhang 7

  • XC

    Xiao Chang 2*

  • 1. School of Health Management, Zaozhuang University, Zaozhuang, China

  • 2. School of Public Administration, Hangzhou Normal University, Hangzhou, China

  • 3. Department of Teaching and Research, Shandong Coal Health School, Zaozhuang, China

  • 4. School of Public Health and Nursing, Hangzhou Normal University, Hangzhou, China

  • 5. Department of Geriatics, Shandong Healthcare Group Xinwen Central Hospital, Taian, China

  • 6. Image Center, Zaozhuang Municipal Hospital, Zaozhuang, China

  • 7. Magnetic Resonance Imaging Department, Shandong Healthcare Group Zaozhuang Central Hospital, Zaozhuang, China

Abstract

Introduction:

Middle-aged and older adults are highly susceptible to depression. For this reason, early identification and intervention can substantially reduce its prevalence. This study innovatively proposed a visual risk prediction system for depressive symptoms and depression in middle-aged and older adults, rooted in machine learning and visualization technologies.

Methods:

Using cohort data from the China Health and Retirement Longitudinal Study (CHARLS), involving 8,839 middle-aged and older adult participants, the study developed predictive models based on eight machine learning algorithms, primarily including LightGBM, XGBoost, and AdaBoost. To enhance the interpretability of the XGBoost model, SHAP technology was employed to visualize the prediction results. The model was then deployed on a web platform to establish the risk prediction system.

Results:

Among the models, XGBoost demonstrated the best performance, achieving an average ROC-AUC of 0.69, and was ultimately selected as the predictive model for depressive symptoms and depression risk in this population. The developed risk prediction system can output the probability of users developing depressive symptoms or depression within five years and provide explanations for the prediction results, improving user accessibility and interpretability.

Discussion:

Rooted in China's national longitudinal cohort, this platform integrates machine learning analytics with interactive visualization, with web deployment enhancing its clinical translational value. By enabling early depression detection and evidence-based interventions for middle-aged and older adult populations, it establishes a novel health management paradigm with demonstrated potential to improve quality of life.

Introduction

Depression emerges as one of the most prevalent mental health issues globally, bringing about profound implications for the holistic wellbeing and life quality of millions globally (). As people age, they face physical health challenges, changes in living environments, and reduced social support, rendering middle-aged and older adults a high-risk group for depression (). In China, the prevalence of depression among middle-aged and older adults is continuously rising, severely impacting their overall wellbeing (). Early intervention can not only strikingly lessen the incidence of depression, but also substantially augment the quality of life as well as the happiness of middle-aged and older adults (, ). On that account, developing a risk prediction system for depression in middle-aged and older adults can facilitate the early identification of high-risk individuals and enable timely interventions.

As big data and artificial intelligence move ahead continually in recent years, machine learning has demonstrated enormous potential as a powerful data analysis tool in predicting disease risk (). By applying machine learning algorithms, researchers can deeply explore the underlying patterns in health data and identify high-risk individuals for diseases. This early identification not only is detrimental to elevating the incidence of diseases but also offers decision support to healthcare professionals, which ultimately empowers them to develop more personalized intervention and treatment plans. For example, Alcazer et al. () used data from six French university hospitals to build a machine learning model that predicts leukemia subtypes grounded in routine laboratory parameters; Liu et al. () pioneered a model by adopting cohort data to predict the risk of kidney failure and death in patients suffering from moderate to severe chronic kidney disease, empowering clinicians with enhanced capabilities for multidimensional patient evaluation during diagnostic decision-making processes. It is evident that machine learning technology has materialized conspicuous progress in the field of disease risk prediction. For the time being, some studies have developed prediction models for depression in middle-aged and older adults by employing cross-sectional data (, ). Nevertheless, inherent methodological constraints of cross-sectional designs impede comprehensive insights into the temporal trajectory of disease progression. Simultaneously, current research typically divides populations into two simple categories: “no depressive symptoms” and “depressive symptoms”, failing to take into account the different levels of depressive symptoms. In practical terms, the severity of depressive symptoms is conspicuously correlated with diseases such as cognitive impairment (). Furthermore, most existing studies stop at the stage of developing predictive models, which are usually only accessible through professional programming platforms like Python and lack sufficient user-friendliness. Providing that a user-friendly predictive web platform or client were developed on this basis, we convince it would dramatically strengthen the practical applicability of the research.

On that account, our study utilized data from the China Health and Retirement Longitudinal Study (CHARLS) database to develop a depression risk prediction system for middle-aged and older adults. We adopted a diverse spectrum of machine learning algorithms, encompassing LightGBM, XGBoost, and AdaBoost, to construct the models and selected the best-performing model as the depression risk prediction model for middle-aged and older adults. In particular, the model can predict the risk of developing depression symptoms and depression in the next 5 years. Moreover, we utilized Shapley additive explanations (SHAP) for visual interpretation of the model to heighten the model's transparency and aid healthcare professionals in understanding the predictions (). Subsequently, we innovated the model on a web platform, serving as a more actionable tool for everyday use (). Through this system, healthcare professionals can quickly identify high-risk middle-aged and older adults for depression, enabling timely personalized intervention and management. This far-sighted risk prediction and management approach offers diverse options for depression prevention and control in public health, demonstrating massive potential for further enhancement through clinical trials in the future.

Methods

Study population

The data used in this study were sourced from the China Health and Retirement Longitudinal Study (CHARLS) (, ). CHARLS is a large-scale interdisciplinary survey project led by the National School of Development at Peking University, covering 28 provinces, 150 counties, and 450 communities (villages) across China. The survey collected high-quality longitudinal data through in-home visits from a nationally representative sample of individuals aged 45 and above, along with their spouses. The study was approved by the Ethics Review Committee of Peking University (IRB00001052-11015) and all participants signed informed consent forms before the study commenced. We strictly adhered to ethical principles throughout the research process, ensuring transparency and integrity and conducted all experiments in accordance with relevant guidelines and regulations. As shown in Figure 1, all samples in this study were selected from the third wave (2015) and the fifth wave (2020) of CHARLS data, ultimately including 8,839 participants. To ensure that only new cases are assessed, this study excluded participants who had already shown depressive symptoms at baseline. The exclusion criteria were as follows: (1) participants who had depressive symptoms in 2015 or did not complete the depression scale; (2) participants who did not complete the depression scale in 2020; (3) participants under the age of 45 or with missing age data; (4) participants diagnosed by a doctor with emotional or mental problems.

Figure 1

Research variables

The outcome variable of depression status was assessed using the Center for Epidemiologic Studies Depression Scale (CESD-10) (Supplementary Table S1), which has shown good reliability and validity in measuring depression in middle-aged and older adults (, ). The scale includes 10 items, with items 5 and 8 being reverse-scored. It uses a 4-point Likert scale, with total scores ranging from 0 to 30. Based on existing research (), in the fifth wave of the CHARLS survey, a total score of ≥10 indicates the presence of depressive symptoms, a score of ≥20 indicates depression, and a score of < 10 indicates no depressive symptoms.

This study involved a total of 69 predictor variables, categorized into five types of information: demographics, lifestyle, health status, insurance, and living environment (Supplementary Table S2), all sourced from the third wave of CHARLS data. Demographics included seven variables such as gender, age and marital status; lifestyle included 24 variables such as nightly sleep duration and marital satisfaction; health status included 24 variables such as blindness, deafness or partial deafness and muteness or stuttering; insurance included seven variables such as participation in the urban and rural residents' pension insurance; and residential environment included seven variables such as whether the housing structure was a single-story or multi-story building. Among these, the missing rate for four variables (H4, H8, L13, and L14) ranges from 5 to 8%, specifically 6.54, 5.98, 5.63, and 7.43%, respectively; while the missing rate for six variables (H1, H2, H3, L11, D3, and L17) is between 2 and 5%, specifically 3.22, 2.41, 4.53, 2.07, 4.28, and 3.41%, respectively; the missing rate for the remaining variables is below 2%.

Prediction system development

The machine learning models in this study were constructed using Python 3.11. The dataset was randomly divided into a training set (70%) and a test set (30%) using the train_test_split algorithm, ensuring that the class proportions in the training and test sets were largely consistent with those in the original dataset. Missing values were imputed using the KNN algorithm (), and the issue of sample distribution imbalance in the training set was addressed using Adaptive Synthetic Sampling (ADASYN) oversampling technique (). ADASYN is an adaptive synthetic oversampling method that enhances classifier performance by generating synthetic samples similar to those in the minority class. During the oversampling process, ADASYN generated a corresponding number of synthetic samples for each minority class. The sample size for Class 1 was increased to three times the original and for Class 2, it was increased to 30 times the original. After oversampling, the final distribution of the three classes was 1:0.92:0.99, which helped alleviate the class imbalance issue. The optimal hyperparameter set was selected using 10-fold cross-validation grid search and models were constructed using XGBoost (XGB) (), LightGBM (LGBM) (), AdaBoost (ADA) (), Random Forest (RF) (), Gradient Boosting Tree (GBT) (), Decision Tree (DT) (), Support Vector Machine (SVM) (), and Logistic Regression (LR) (). Among these, XGB and LGBM are ensemble learning methods based on gradient boosting algorithms and exhibit high predictive performance; ADA and GBT perform ensemble using weighted weak classifiers; RF and DT use tree structures for data partitioning; SVM classifies by maximizing the boundary between classes; and LR uses linear models for probabilistic prediction. These eight algorithms were chosen due to their common use and representativeness (). Since LR and SVM are linear models, feature scaling is required prior to their use. Therefore, in these two algorithms, we also applied the StandardScaler algorithm to standardize the data. The model performance evaluation metrics included accuracy, precision, F1-score and the area under the receiver operating characteristic curve (ROC-AUC). The best-performing model was selected as the predictor of depressive symptoms and depression risk in Middle-aged and older adults, and SHAP technology was employed to calculate the feature importance index of the optimal model, while an online prediction system was constructed (). Furthermore, to test the robustness of the data imputation methods on the results, this study applied three imputation methods—mean imputation, mode imputation, and KNN imputation—on the data. The models were then constructed using the best-performing algorithms, and the impact of different imputation methods on model performance was tested using the Hanley-McNeil method.

Results

Research subjects

This study initially included 21,095 participants. Subsequent to the exclusion of 12,256 participants grounded in exclusion criteria, 8,839 participants remained in the end (Figure 1). Among these 8,839 participants, 4,717 were male (53.37%) and 4,122 were female (46.63%), with an average age of 62.6 ± 9.52 years (Supplementary Table S2). The average CESD-10 scores in 2015 and 2020 were 4.15 ± 2.79 and 6.69 ± 5.3, severally (Supplementary Table S1). A CESD-10 score of ≥20 was classified as depression, while a score of ≥10 indicated depressive symptoms. After 5 years of follow-up, among the 8,839 participants without depressive symptoms, 2,028 and 217 developed depressive symptoms and depression, separately, resulting in prevalence rates of 22.94 and 2.46%.

Classification performance

In this study, we used accuracy, precision, F1-score, and the ROC-AUC as evaluation metrics to assess models constructed by adopting eight algorithms: XGB, LGBM, ADA, RF, GBT, DT, SVM, and LR, on the basis of test set data. As illustrated in Figure 2, the models constructed by XGB, LGBM, and RF algorithms outperformed the others in terms of accuracy, achieving 0.621, 0.6139, and 0.6014, separately. Figure 3 presents the ROC curves of each model. The XGB model achieved an average ROC-AUC of 0.69, consistent with the RF model. In comparison with LGBM and RF, the XGB model also exhibited higher scores in average precision, average recall, and average F1-score (Table 1). This may be because XGB, LGBM, and RF are ensemble learning algorithms rooted in decision trees, which demonstrate more conspicuous learning and generalization capabilities when handling complex data (). Aside from that, the XGB model iteratively optimizes the performance of each tree, effectively capturing non-linear associations and feature interactions in the data. XGB also features automatic feature selection and sample weighting, which improve its performance when handling imbalanced data and reduce the risk of over fitting (). Considering all metrics, this study ultimately selected the model built by adopting the XGB algorithm as the predictive model for depressive symptoms and depression risk in Middle-aged and older adults. To further validate the robustness of the data imputation methods used in this study, we compared the model performance under different imputation methods. As illustrated by the aforementioned experimental findings, the ROC-AUC of the models constructed by utilizing KNN imputation was similar to those constructed by adopting mean imputation (Supplementary Figure S1A) and mode imputation (Supplementary Figure S1B), demonstrating negligible statistical difference (Supplementary Table S3).

Figure 2

Figure 3

Table 1

MetricClassXGBLGBMADARFGBTDTSVMLR
PrecisionAverage0.42380.41790.35360.4170.39480.37870.37190.3936
Class 00.84330.83320.77290.84470.82260.80380.79210.8165
Class 10.32460.31010.21250.31740.28920.27390.2610.2759
Class 20.10340.11020.07550.08890.07250.05850.06250.0884
RecallAverage0.51840.51590.41430.5140.42550.40890.42060.4565
Class 00.68570.68170.56970.66070.63270.64070.62820.5892
Class 10.41960.39930.32320.41460.47720.40270.35030.4636
Class 20.450.46670.350.46670.16670.18330.28330.3167
F1-scoreAverage0.43020.42580.34550.41680.39210.37590.36740.3895
Class 00.75630.74990.65590.74140.71530.7130.70070.6845
Class 10.36610.34910.25640.35950.36020.3260.29910.346
Class 20.16820.17830.12430.14930.1010.08870.10240.1382

Precision, recall and F1-score of the eight machine learning models.

We probed into the classification performance of the XGB model for participants with no depressive symptoms, depressive symptoms, and depression by employing a confusion matrix (Supplementary Figure S2). Among the 2,001 participants who had no depressive symptoms 5 years later, 68.57% were correctly classified, 24.79% were incorrectly classified as having depressive symptoms, and 6.65% were misclassified as depressed. In the group of 591 participants who exhibited depressive symptoms after 5 years, 41.96% were accurately classified, while 40.95% were misclassified as having no depressive symptoms, and 17.09% were incorrectly identified as depressed. Among the 60 participants diagnosed with depression 5 years later, 45% were correctly classified, with 21.67% misclassified as having no depressive symptoms and 33.33% incorrectly classified as having depressive symptoms. The lower classification accuracy for participants with depression may be associated with the smaller proportion of this group in the dataset. Despite data balancing efforts throughout model training, the classification accuracy for this category remains lower than that of the other two categories.

Feature significance

SHAP plots are important tools for interpreting machine learning model outputs, quantifying the contribution of each feature to the model's predictions (). In the SHAP plot, the vertical axis represents the feature significance ranking, while the horizontal axis shows the impact of each feature on the model's output. Each point in the plot defines an individual sample, with red indicating higher feature values and blue indicating lower feature values. SHAP values originate from Shapley values in game theory, which aim to fairly distribute each feature's contribution to the model's prediction. Specifically, each feature is assigned a SHAP value that denotes its contribution to predicting a particular class. A positive SHAP value suggests a positive contribution to the prediction, while a negative SHAP value indicates a negative contribution. In the overall feature significance plot for the depression category (Figure 4C), certain health status, residential environment, and lifestyle features dramatically impact the model. For example, health status features like “Are you often troubled with anybody pains?” (H9) and “How would you evaluate your health during childhood, up to and including age 15?” (H10), residential environment features like “Is there an in-house shower or bath facility? What type?” (R4) and “Does your residence have broad-band internet connection?” (R6), and lifestyle features like “During the past month, how many hours of actual sleep did you get at night (h)?” (L1), and “During the past month, how long did you take a nap after lunch (min)?” (L2) are tremendously paramount in predicting depression. As the investigation findings demonstrate, participants with poorer physical condition, worse residential environments, and less sleep are more likely to suffer from depression. In the overall feature significance plots for individuals without depressive symptoms (Figure 4A) and those with depressive symptoms (Figure 4B), features like “How would you rate your health status?” (H11) also played a crucial role. As suggested by the research findings, participants who perceive their health status as good are more likely to be free of depressive symptoms. Apart from that, participants who have access to broadband internet at home, own an electric vehicle and a computer, or frequently interact with others are also more likely to have no depressive symptoms.

Figure 4

Risk prediction system

In the visualization of the prediction system, the left side is the information input area where users can import data via file uploads (Figure 5). For continuous variables (e.g., age), information can be entered by dragging a slider; for categorical variables (e.g., gender), users can make selections by clicking. The right side of the system is the output window, which contains two parts. To be specific, the upper part illustrates the prediction results of the user's status after 5 years, while the lower part delivers tailored insights to inform the creation of targeted interventions. We demonstrate an example of employing the prediction system in Figure 5. After importing information in the input interface on the left, the system predicts that the user is likely to have depressive symptoms after 5 years, with a probability of 37.71%. The SHAP plot below visualizes feature contributions to predictions, with bar lengths encoding the magnitude of influence—red indicating positive contributions and blue denoting negative impacts. Features contributing positively to the predicted probability include H9 and L3, while L2, R2, R5, L13, and D1 exert negative influences. This offers fresh insights into depression prevention and treatment, suggesting that measures such as easing physical discomfort and extending sleep duration may mitigate the risk of depression among Middle-aged and older adults.

Figure 5

Discussion

Grounded in longitudinal cohort data from 8,839 participants, this study successfully developed a depression symptom and risk prediction system for middle-aged and older adults, incorporating various machine learning algorithms and visualization techniques. Unlike traditional cross-sectional studies, leveraging longitudinal follow-up data spanning 2015–2020, we aimed to comprehensively map depression's developmental trajectory. We divided the population into three categories on the basis of the severity of depression: “no depressive symptoms”, “depressive symptoms”, and “depression”, overcoming the limitations of traditional binary classification models. After comparing the performance of various machine learning algorithms, the XGB algorithm was selected to build the risk prediction model, while SHAP technology was used to augment the interpretability of the model. On top of that, we developed a web-based system integrating both prediction and explanation functions, ultimately ameliorating the practicality of the research.

Above all, the primary contribution of this study lies in predicting depression symptoms and depression risk among middle-aged and older adults by adopting cohort data and machine learning algorithms. Historically, most depression prediction models in existing research have depended on cross-sectional datasets. While this approach can capture characteristics associated with depressive symptoms at a specific point in time, it cannot determine the causal association between these characteristics and depression. Cross-sectional data typically mirror the status of subjects at a single moment, which illustrates that some features may stem from changes in the outcome variable. In contrast, this study utilized longitudinal data, which effectively identified risk factors that may bring about depression, thereby offering a clearer window into depression's developmental trajectory. Apart from that, unlike previous studies (, ), which often categorized populations into those with and without depressive symptoms, this study further divided the population into three, namely no depressive symptoms, depressive symptoms and depression. This three-class classification approach is beneficial for identifying individuals who gradually progress from having no depressive symptoms to developing depression. Model interpretation enables granular analysis of risk factors across depressive symptom stages, yielding evidence-based guidance for tailored interventions. Furthermore, in comparison with other studies predicting depression by utilizing large cohort data, the CHARLS database included more participants (, ). In contrast to existing binary depression prediction studies on the basis of the CHARLS database, the prediction model exhibited a more favorable ROC-AUC value (0.61 vs. 0.69) ().

On top of that, the study adopted SHAP technology to visually interpret the model, which is advantageous for elevating the model's interpretability. Traditional machine learning models are often seen as “black boxes” (, , ), thus rendering it challenging to understand their internal working mechanisms. Nonetheless, SHAP technology offers a way to quantify feature significance. For example, an in-depth exploration of SHAP values revealed, that a wide spectrum of factors such as pain, sleep duration, and living environment play significant roles in the model's predictions. These findings coincide with existing medical theories and clinical experience. For instance, Sanchez et al. put forward a that pain and depression share the same neurotransmitters. In addition, the presence of pain is positively correlated with the severity of depression (). Likewise, Zambelli et al. () arrived at a conclusion that desirable sleep quality can strikingly ameliorate depressive states, highlighting the significance of sleep in managing depression. Furthermore, Rautio et al.'s () research indicated that poor housing or building environments, encompassing substandard housing quality, functional deficiencies, insufficient green spaces, as well as noise and air pollution, are remarkably associated with depressive moods. Gender (D1) also appeared in the overall feature significance charts for all three categories. As evidenced by the above findings, assuming that a participant is male, they contribute positively to the model's prediction of no depressive symptoms. On the contrary, providing that a participant is female, they positively contribute to predictions of depressive symptoms or depression. Research by Nolen et al. demonstrated that the likelihood of depression is twice as high in females as in males (). This higher prevalence in females may be bound up with their larger share of household labor (56). Participants who frequently experience bodily pain (H9) are more prone to depression, whereas those free from such pain demonstrate a substantial tendency to be free of depressive symptoms, which corresponds with Magni et al.'s (57) perspective that pain may bring about depression. Interestingly, participants with broadband internet access at home (R6) exhibited an elevated propensity to be predicted as having no depression. As evidenced in the research conducted by Cotten et al. (58), internet use can lower depression rates among retired individuals by 20%−28%. Guo et al. (59) pointed out that improving mental health in Middle-aged and older adults is one of the welfare effects brought about by the development of internet infrastructure. Through model visualization and partial corroboration of the model's predictive logic, this research enhances clinicians' comprehension of predictive mechanisms while informing actionable clinical guidelines. More importantly, this study integrated the trained model with SHAP technology to create a depression risk prediction system for middle-aged and older adults on a web platform, eventually heightening the research's practical applicability. In the future, with ongoing refinements, anticipated implementation into standard screening protocols in primary care settings could strengthen early depression detection and intervention capabilities.

Nonetheless, this study is also less satisfactory in several aspects. To start with, despite balancing the data during model training, the accuracy of classifying the non-depressed population was ~20% higher than that of the depressed population. This phenomenon illustrates that the model's diagnostic accuracy in detecting depression remains susceptible to underlying limitations. It is essential for future research to take into account increasing the sample size of depressed patients or using cost-sensitive learning methods to elevate the model's recognition ability. Additionally, this study failed to conduct a comprehensive and profound exploration into the cost-benefit analysis of interventions rooted in model predictions. Given these considerations, a comprehensive cost-effectiveness evaluation would enhance the assessment of the prediction system's real-world applicability. Finally, this study only built the model grounded in participants' self-reported data. Although strong biological markers for depression have not yet been established, increasing data diversity may be beneficial for the reinforcement of the model's predictive ability. Future research should consider integrating different types of data to ameliorate the accuracy and reliability of the model.

Conclusions

To sum up, this research developed a predictive framework for depressive symptoms and risk assessment in middle-aged to older adults, utilizing longitudinal cohort data from 8,839 participants and an ensemble methodology of eight machine learning algorithms. The model's interpretability was enhanced through SHAP visualization, with subsequent web-based deployment for clinical accessibility. This visualization system not only anticipates the risk of developing depressive symptoms and depression in individuals over the next 5 years but also outputs the main factors influencing the risk probabilities through SHAP plots. By enabling clinicians to interpret predictive outcomes more effectively, this system offers actionable insights for clinical practice while supporting proactive depression management. Future validation through rigorous clinical trials could further substantiate its efficacy and implementation potential.

Statements

Data availability statement

Publicly available datasets were analyzed in this study. This data can be found here: https://charls.charlsdata.com/pages/data/111/zh-cn.html.

Ethics statement

Ethical review and approval was not required for the study on human participants in accordance with the local legislation and institutional requirements. Written informed consent from the [patients/participants OR patients/participants legal guardian/next of kin] was not required to participate in this study in accordance with the national legislation and the institutional requirements.

Author contributions

JD: Methodology, Conceptualization, Writing – review & editing, Resources, Writing – original draft. XT: Writing – original draft, Methodology. LZ: Data curation, Writing – review & editing. WQ: Writing – review & editing, Methodology. XM: Writing – review & editing, Data curation. HD: Data curation, Writing – review & editing. SW: Writing – review & editing, Visualization. XZ: Writing – review & editing, Visualization. XC: Resources, Writing – review & editing, Writing – original draft.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. This work was supported by the Graduate Research Innovation Promotion Project of Hangzhou Normal University (2022HSDYJSKY012) grants awarded to XC. In addition, this research was supported by the Industry-Academia Cooperation for Synergistic Education Project (No. 2410141228), the Horizontal Project of Zaozhuang University (No. HX20240266), the 2024 Zaozhuang University Teaching Reform Project, and the 2025 Zaozhuang Philosophy and Social Sciences Planning Project (No. LXKT14), with funding awarded to JD.

Acknowledgments

We thank the China Health and Retirement Longitudinal Study team for providing data and training in using the datasets.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declare that no Gen AI was used in the creation of this manuscript.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fpubh.2025.1606316/full#supplementary-material

References

Summary

Keywords

depression, machine learning, CHARLS, risk prediction, visualization

Citation

Du J, Tao X, Zhu L, Qi W, Min X, Deng H, Wei S, Zhang X and Chang X (2025) A risk prediction system for depression in middle-aged and older adults grounded in machine learning and visualization technology: a cohort study. Front. Public Health 13:1606316. doi: 10.3389/fpubh.2025.1606316

Received

05 April 2025

Accepted

15 May 2025

Published

04 June 2025

Volume

13 - 2025

Edited by

Chaoxin Jiang, East China Normal University, China

Reviewed by

Shaowu Lin, Xiamen University, China

Tran Thu, Singapore Management University, Singapore

Updates

Copyright

*Correspondence: Xiao Chang

†These authors have contributed equally to this work and share first authorship

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics