Arthritis is a prevalent chronic degenerative joint disease that substantially impairs the quality of life of middle-aged and older adults worldwide. Its hallmark manifestations, including persistent pain, restricted joint function, and mobility impairment, impose considerable physical and psychological burdens on patients (
1,
2). As the global population ages, the prevalence of arthritis has risen markedly, making it a critical public health concern. In addition to physical symptoms, patients with arthritis frequently experience mental health comorbidities, among which depression is particularly prominent. The incidence of depressive symptoms in individuals with arthritis is considerably higher than that in the general population (
3). This comorbidity not only amplifies pain perception and functional impairment but also reduces treatment adherence and overall quality of life (
4,
5).
The increased prevalence of depression among patients with arthritis may result from chronic pain, restricted activity, and reduced social engagement. Pain, the cardinal symptom of arthritis, causes physical discomfort and may dysregulate the neuroendocrine system through persistent stress responses, thereby triggering or exacerbating depressive symptoms (
6,
7). Functional impairment and changes in body image can further compromise daily social and occupational functioning, and these shifts in social roles may intensify feelings of helplessness and isolation (
8,
9). Notably, multiple arthritis subtypes, including rheumatoid arthritis, osteoarthritis, and spondyloarthritis, are each significantly correlated with an increased risk of depression, suggesting that depression is a shared mental health concern across arthritis subtypes (
10,
11).
Depression in patients with arthritis is multifactorial and cannot be adequately explained by any single domain of risk factors. The biopsychosocial model provides a comprehensive framework for understanding this comorbidity, positing that depression arises from the interplay of biological factors, such as pain, chronic inflammation, and sleep disruption; psychological factors, such as life satisfaction and cognitive appraisal of illness; and social factors, such as social support, marital status, and living environment. Accordingly, guided by the biopsychosocial framework, this study adopted a multidimensional indicator system spanning demographic characteristics, behavioral and lifestyle factors, clinical comorbidities, functional status, and psychosocial conditions. This conceptual grounding not only supports the inclusion of diverse predictors but also justifies the use of a nonlinear, interactive modeling approach (XGBoost) rather than traditional additive models, because the relationships between these biopsychosocial factors and depression likely involve threshold effects, interactions, and nonlinear patterns that linear models cannot capture.
Recent advances in medical data acquisition and processing have positioned machine learning as a promising approach for predicting and identifying depression risk (
12). These algorithms can efficiently handle high-dimensional data and construct predictive models that account for complex variable interactions, facilitating early intervention. Among breast cancer patients, for example, machine learning models incorporating psychological resilience, social support, and personal recovery processes have demonstrated substantially greater predictive efficacy for depressive and anxious states than traditional statistical methods (
13). Similarly, studies of older adults in China have shown that machine learning algorithms can effectively identify key predictors of depression, including self-rated health, nighttime sleep duration, and cognitive function (
14).
Despite these advances, research specifically targeting depression risk prediction among patients with arthritis remains limited. Prior studies have predominantly relied on traditional logistic regression models, which, although capable of identifying individual risk factors, are constrained in generalizability and predictive accuracy (
15). Moreover, most investigations have focused on a single categorical variable related to sociodemographic or clinical characteristics without integrating multidimensional indicators spanning behavioral, psychological, and health-related factors, thereby limiting explanatory power and practical applicability. In this context, machine learning analyses leveraging large-scale prospective cohort data are particularly valuable. The XGBoost (eXtreme Gradient Boosting) algorithm, recognized for its efficiency in handling structured data and complex feature interactions, has been widely adopted in medical prediction tasks (
16). Compared with algorithms such as random forest and support vector machines, XGBoost offers superior predictive accuracy and robustness, particularly in the presence of missing values and imbalanced data (
17).
When integrated with SHAP (SHapley Additive exPlanations), the XGBoost model provides an intuitive ranking of feature importance and facilitates the interpretation of individual-level predictions, thereby enhancing clinical usability and acceptability (
18). To date, no study has comprehensively applied XGBoost and SHAP to systematically analyze depressive symptoms among patients with arthritis using multidimensional indicators encompassing behavioral, health, psychological, and sociodemographic characteristics.