Prescription Non-Steroidal Anti-Inflammatory Drugs (NSAIDs) and Incidence of Depression Among Older Cancer Survivors With Osteoarthritis: A Machine Learning Analysis
- PMID: 37101728
- PMCID: PMC10123903
- DOI: 10.1177/11769351231165161
Prescription Non-Steroidal Anti-Inflammatory Drugs (NSAIDs) and Incidence of Depression Among Older Cancer Survivors With Osteoarthritis: A Machine Learning Analysis
Abstract
Objectives: This study examined prescription NSAIDs as one of the leading predictors of incident depression and assessed the direction of the association among older cancer survivors with osteoarthritis.
Methods: This study used a retrospective cohort (N = 14, 992) of older adults with incident cancer (breast, prostate, colorectal cancers, or non-Hodgkin's lymphoma) and osteoarthritis. We used the longitudinal data from the linked Surveillance, Epidemiology, and End Results -Medicare data for the study period from 2006 through 2016, with a 12-month baseline and 12-month follow-up period. Cumulative NSAIDs days was assessed during the baseline period and incident depression was assessed during the follow-up period. An eXtreme Gradient Boosting (XGBoost) model was built with 10-fold repeated stratified cross-validation and hyperparameter tuning using the training dataset. The final model selected from the training data demonstrated high performance (Accuracy: 0.82, Recall: 0.75, Precision: 0.75) when applied to the test data. SHapley Additive exPlanations (SHAP) was used to interpret the output from the XGBoost model.
Results: Over 50% of the study cohort had at least one prescption of NSAIDs. Nearly 13% of the cohort were diagnosed with incident depression, with the rates ranging between 7.4% for prostate cancer and 17.0% for colorectal cancer. The highest incident depression rate of 25% was observed at 90 and 120 cumulative NSAIDs days thresholds. Cumulative NSAIDs days was the sixth leading predictor of incident depression among older adults with OA and cancer. Age, education, care fragmentation, polypharmacy, and zip code level poverty were the top 5 predictors of incident depression.
Conclusion: Overall, 1 in 8 older adults with cancer and OA were diagnosed with incident depression. Cumulative NSAIDs days was the sixth leading predictor with an overall positive association with incident depression. However, the association was complex and varied by the cumulative NSAIDs days.
Keywords: NSAIDs; Osteoarthritis; cancer; depression; inflammation; machine learning; older adults.
© The Author(s) 2023.
Conflict of interest statement
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Figures




Similar articles
-
A Machine Learning Approach to Identify Predictors of Potentially Inappropriate Non-Steroidal Anti-Inflammatory Drugs (NSAIDs) Use in Older Adults with Osteoarthritis.Int J Environ Res Public Health. 2020 Dec 28;18(1):155. doi: 10.3390/ijerph18010155. Int J Environ Res Public Health. 2020. PMID: 33379288 Free PMC article.
-
Low-value care and excess out-of-pocket expenditure among older adults with incident cancer - A machine learning approach.J Cancer Policy. 2021 Dec;30:100312. doi: 10.1016/j.jcpo.2021.100312. Epub 2021 Oct 29. J Cancer Policy. 2021. PMID: 35559807 Free PMC article.
-
Extreme gradient boosting model to assess risk of central cervical lymph node metastasis in patients with papillary thyroid carcinoma: Individual prediction using SHapley Additive exPlanations.Comput Methods Programs Biomed. 2022 Oct;225:107038. doi: 10.1016/j.cmpb.2022.107038. Epub 2022 Jul 23. Comput Methods Programs Biomed. 2022. PMID: 35930861
-
The causes and effects of socio-demographic exclusions from clinical trials.Health Technol Assess. 2005 Oct;9(38):iii-iv, ix-x, 1-152. doi: 10.3310/hta9380. Health Technol Assess. 2005. PMID: 16181564 Review.
-
Pharmacokinetics, safety and efficacy of intra-articular non-steroidal anti-inflammatory drug injections for the treatment of osteoarthritis: A narrative review.J Clin Pharm Ther. 2022 Aug;47(8):1122-1133. doi: 10.1111/jcpt.13669. Epub 2022 May 3. J Clin Pharm Ther. 2022. PMID: 35505520 Free PMC article. Review.
Cited by
-
Machine Learning Approaches to Predict Symptoms in People With Cancer: Systematic Review.JMIR Cancer. 2024 Mar 19;10:e52322. doi: 10.2196/52322. JMIR Cancer. 2024. PMID: 38502171 Free PMC article. Review.
-
Association between Regular Use of Analgesics before Cancer Diagnosis and Occurrence of Mood Disorders.Nurs Rep. 2024 Jul 24;14(3):1828-1837. doi: 10.3390/nursrep14030136. Nurs Rep. 2024. PMID: 39189266 Free PMC article.
-
Interpretable machine learning models for prolonged Emergency Department wait time prediction.BMC Health Serv Res. 2025 Mar 18;25(1):403. doi: 10.1186/s12913-025-12535-w. BMC Health Serv Res. 2025. PMID: 40102847 Free PMC article.
-
The Interplay of Chronic Stress and Cancer: Pathophysiology and Implications for Integrated Care.Cancer Rep (Hoboken). 2025 May;8(5):e70143. doi: 10.1002/cnr2.70143. Cancer Rep (Hoboken). 2025. PMID: 40387308 Free PMC article. Review.
-
Predicting Depression, Anxiety, and Their Comorbidity among Patients with Breast Cancer in China Using Machine Learning: A Multisite Cross-Sectional Study.Depress Anxiety. 2024 Jun 21;2024:3923160. doi: 10.1155/2024/3923160. eCollection 2024. Depress Anxiety. 2024. PMID: 40226665 Free PMC article.
References
-
- Ismail Z, Elbayoumi H, Fischer CE, et al.. Prevalence of depression in patients with mild cognitive impairment: A systematic review and meta-analysis. JAMA Psychiatr. 2017;74:58-67. - PubMed
-
- Luppa M, Sikorski C, Luck T, et al.. Age- and gender-specific prevalence of depression in latest-life – systematic review and meta-analysis. J Affect Disord. 2012;136:212-221. - PubMed
LinkOut - more resources
Full Text Sources