Development and Validation of a Machine Learning‑Based Predictive Model for Assessing the Risk of Comorbid Depression in Patients With Asthma
Qiu Nie , Xu Deng , Xin Chen , Tianwei Lai , Wen Li , Yutong Liu , Jingyi Lin , Qingsong Ren , Jingjing Liu , Yinxu Wang , Yulei Xie
Alpha Psychiatry ›› 2025, Vol. 26 ›› Issue (5) : 47754
The aim of this study was to develop and validate a machine learning model to predict the risk of comorbid depression in asthma patients.
We conducted a retrospective study of 2464 asthma patients with comorbid depression using National Health and Nutrition Examination Survey (NHANES) data. Feature selection was conducted using the Boruta algorithm and the Least Absolute Shrinkage and Selection Operator (LASSO). Eight machine learning algorithms, namely Decision Tree (DT), k-Nearest Neighbors (KNN), Light Gradient Booster Machine (LGBM), Logistic Regression (LR), Random Forest (RF), Support Vector Machine (SVM), eXtreme Gradient Boosting (XGBoost), and Multilayer Perceptron (MLP), were trained using 5-fold cross-validation methodology. Model performance was evaluated through various metrics such as area under the curve (AUC), accuracy, sensitivity, specificity, F1 score, and decision curve analysis (DCA). Interpretation was conducted using SHapley Additive exPlanations (SHAP) analysis, highlighting feature importance.
The training set comprised 1724 participants, while the validation set included 740 participants, with a depression prevalence of 14.45%. Significant predictors identified included hypertension, chronic obstructive pulmonary disease (COPD), stroke, sleep questionnaire (SLQ) scores, smoking status, Poverty Index Ratio (PIR), and educational level. The XGBoost model demonstrated superior performance compared with alternative machine learning (ML) algorithms, achieving an AUC of 0.750, an accuracy of 69.1%, a sensitivity of 68.2%, a specificity of 73.8%, and an F1 score of 79%. The SHAP method identified SLQ, PIR, and education level as the primary decision factors influencing the ML model’s predictions.
The XGBoost model effectively predicts the risk of depression in asthma patients, serving as a valuable reference for early clinical identification and intervention.
asthma / depression / machine learning / predictive model
| [1] |
The Global Asthma Report 2022. The International Journal of Tuberculosis and Lung Disease: the Official Journal of the International Union against Tuberculosis and Lung Disease. 2022; 26: 1–104. https://doi.org/10.5588/ijtld.22.1010. |
| [2] |
Granell R, Rodriguez S. Confirmed causal effect of obesity on asthma and new insights on potential underlying shared genetic mechanisms. The Journal of Allergy and Clinical Immunology. 2020; 145: 484–486. https://doi.org/10.1016/j.jaci.2019.11.033. |
| [3] |
Sharma V, Cowan DC. Obesity, Inflammation, and Severe Asthma: an Update. Current Allergy and Asthma Reports. 2021; 21: 46. https://doi.org/10.1007/s11882-021-01024-9. |
| [4] |
Nurmagambetov T, Kuwahara R, Garbe P. The Economic Burden of Asthma in the United States, 2008-2013. Annals of the American Thoracic Society. 2018; 15: 348–356. https://doi.org/10.1513/AnnalsATS.201703-259OC. |
| [5] |
Rhoads SL, Edinger J, Khatiwada A, Zimmer J, Zelarney P, Wechsler ME. The impact of insomnia and depression on asthma control. The Journal of Asthma: Official Journal of the Association for the Care of Asthma. 2024; 61: 1248–1251. https://doi.org/10.1080/02770903.2024.2335367. |
| [6] |
Palka JM, Peacock M, Tusken M, Ibrahim M, Najjab A, Carter L, et al. Depressive symptom severity in mid- to late life in individuals with and without asthma. The Journal of Allergy and Clinical Immunology. in Practice. 2024; 12: 3426–3428.e1. https://doi.org/10.1016/j.jaip.2024.08.046. |
| [7] |
Ali R, Ahmed N, Salman M, Daudpota S, Masroor M, Nasir M. Assessment of Quality of Life in Bronchial Asthma Patients. Cureus. 2020; 12: e10845. https://doi.org/10.7759/cureus.10845. |
| [8] |
Vieira AA, Santoro IL, Dracoulakis S, Caetano LB, Fernandes ALG. Anxiety and depression in asthma patients: impact on asthma control. Jornal Brasileiro De Pneumologia: Publicacao Oficial Da Sociedade Brasileira De Pneumologia E Tisilogia. 2011; 37: 13–18. https://doi.org/10.1590/s1806-37132011000100004. |
| [9] |
Nutt D, Wilson S, Paterson L. Sleep disorders as core symptoms of depression. Dialogues in Clinical Neuroscience. 2008; 10: 329–336. https://doi.org/10.31887/DCNS.2008.10.3/dnutt. |
| [10] |
Huang K, Yang T, Xu J, Yang L, Zhao J, Zhang X, et al. Prevalence, risk factors, and management of asthma in China: a national cross-sectional study. Lancet (London, England). 2019; 394: 407–418. https://doi.org/10.1016/S0140-6736(19)31147-X. |
| [11] |
Zhu M, Chen A. Epidemiological characteristics of asthma-COPD overlap, its association with all-cause mortality, and the mediating role of depressive symptoms: evidence from NHANES 2005-2018. BMC Public Health. 2024; 24: 1423. https://doi.org/10.1186/s12889-024-18911-1. |
| [12] |
Stumpo V, Staartjes VE, Esposito G, Serra C, Regli L, Olivi A, et al. Machine Learning and Intracranial Aneurysms: From Detection to Outcome Prediction. Acta Neurochirurgica. Supplement. 2022; 134: 319–331. https://doi.org/10.1007/978-3-030-85292-4_36. |
| [13] |
Sajjadian M, Lam RW, Milev R, Rotzinger S, Frey BN, Soares CN, et al. Machine learning in the prediction of depression treatment outcomes: a systematic review and meta-analysis. Psychological Medicine. 2021; 51: 2742–2751. https://doi.org/10.1017/S0033291721003871. |
| [14] |
Xiong S, Tian C, Shao M, Liu C. Persistent Airflow Limitation Prediction and Risk Factor Analysis Among Asthmatic Children: A Retrospective Cohort Study. Pediatric Pulmonology. 2025; 60: e27381. https://doi.org/10.1002/ppul.27381. |
| [15] |
Zhang K, Han Y, Gu F, Gu Z, Zhao J, Chen J, et al. Association between dietary zinc intake and Helicobacter pylori seropositivity in US adults: National Health and Nutrition Examination Survey. Frontiers in Nutrition. 2023; 10: 1243908. https://doi.org/10.3389/fnut.2023.1243908. |
| [16] |
Xie Y, Zhang J, Jin X, Liu S, Song W. Development and validation of a nomogram for predicting heterotopic ossification following spinal cord injury. Clinical Neurology and Neurosurgery. 2024; 243: 108348. https://doi.org/10.1016/j.clineuro.2024.108348. |
| [17] |
Kroenke K, Spitzer RL, Williams JB. The PHQ-9: validity of a brief depression severity measure. Journal of General Internal Medicine. 2001; 16: 606–613. https://doi.org/10.1046/j.1525-1497.2001.016009606.x. |
| [18] |
American Psychiatric Association. Diagnostic and Statistical Manual of Mental Disorders, 4th ed. (DSM-IV). American Psychiatric Publishing: Washington, DC, USA. 1994. |
| [19] |
Jorgensen D, White GE, Sekikawa A, Gianaros P. Higher dietary inflammation is associated with increased odds of depression independent of Framingham Risk Score in the National Health and Nutrition Examination Survey. Nutrition Research (New York, N.Y.). 2018; 54: 23–32. https://doi.org/10.1016/j.nutres.2018.03.004. |
| [20] |
Lai Y, Zhang X, Dong H, Li M. The interaction effects between depression and sleep status on asthma: a national cross-sectional study. Frontiers in Psychiatry. 2024; 15: 1487550. https://doi.org/10.3389/fpsyt.2024.1487550. |
| [21] |
Guo Y, Yan J. Association between asthma and depression: results from the NHANES 2005-2018 and Mendelian randomization analysis. Postgraduate Medical Journal. 2024; qgae147. https://doi.org/10.1093/postmj/qgae147. |
| [22] |
Chen J, Cheng Z, Yao Y, Wang S. Variation of All-Cause Mortality with Fat-Free Mass Index (FFMI) and Fat Mass Index (FMI) in Individuals with Asthma: Results from the NHANES Database Retrospective Cohort Study. Journal of Epidemiology and Global Health. 2024; 14: 1555–1568. https://doi.org/10.1007/s44197-024-00307-4. |
| [23] |
Al-Dubai SA, Ganasegeran K, Alshakka M, Renganathan P, Elkalmi R, Manaf RM, et al. Anxiety And Depression Among Asthmatic Patients In Malaysia. ASEAN Journal of Psychiatry. 2016; 17: 54–62. |
| [24] |
Zhang J, Wei J, Gong Y. Risk factors for comorbid anxiety and depression in patients with bronchial asthma. International Journal of Psychiatry. 2023; 50: 1125–1127. (In Chinese). |
| [25] |
Alanazi TM, Alghamdi HS, Alberreet MS, Alkewaibeen AM, Alkhalefah AM, Omair A, et al. The prevalence of sleep disturbance among asthmatic patients in a tertiary care center. Scientific Reports. 2021; 11: 2457. https://doi.org/10.1038/s41598-020-79697-x. |
| [26] |
Xiang B, Hu M, Yu H, Zhang Y, Wang Q, Xue F. Highlighting the importance of healthy sleep patterns in the risk of adult asthma under the combined effects of genetic susceptibility: a large-scale prospective cohort study of 455 405 participants. BMJ Open Respiratory Research. 2023; 10: e001535. https://doi.org/10.1136/bmjresp-2022-001535. |
| [27] |
BaHammam AS, Kendzerska T, Gupta R, Ramasubramanian C, Neubauer DN, Narasimhan M, et al. Comorbid depression in obstructive sleep apnea: an under-recognized association. Sleep & Breathing = Schlaf & Atmung. 2016; 20: 447–456. https://doi.org/10.1007/s11325-015-1223-x. |
| [28] |
Yu W, Gong Y, Lai X, Liu J, Rong H. Sleep Duration and Risk of Depression: Empirical Evidence from Chinese Middle-Aged and Older Adults. Sustainability. 2023, 15. https://doi.org/10.3390/su15075664. |
| [29] |
Kujubu DA, Aboseif SR. An overview of nocturia and the syndrome of nocturnal polyuria in the elderly. Nature Clinical Practice. Nephrology. 2008; 4: 426–435. https://doi.org/10.1038/ncpneph0856. |
| [30] |
Weicker H, Strüder HK. Influence of exercise on serotonergic neuromodulation in the brain. Amino Acids. 2001; 20: 35–47. https://doi.org/10.1007/s007260170064. |
| [31] |
Bateman ED, Hurd SS, Barnes PJ, Bousquet J, Drazen JM, FitzGerald JM, et al. Global strategy for asthma management and prevention: GINA executive summary. The European Respiratory Journal. 2008; 31: 143–178. https://doi.org/10.1183/09031936.00138707. |
| [32] |
Maniscalco M, Vatrella A, Cremona G, Carratù L, Sofia M. Exhaled nitric oxide after inhalation of isotonic and hypotonic solutions in healthy subjects. Clinical Science (London, England: 1979). 2001; 101: 645–650. |
| [33] |
Trzcińska H, Przybylski G, Kozłowski B, Derdowski S. Analysis of the relation between level of asthma control and depression and anxiety. Medical Science Monitor: International Medical Journal of Experimental and Clinical Research. 2012; 18: CR190–CR194. https://doi.org/10.12659/msm.882524. |
| [34] |
Toyama M, Hasegawa T, Sakagami T, Koya T, Hayashi M, Kagamu H, et al. Depression’s influence on the Asthma Control Test, Japanese version. Allergology International: Official Journal of the Japanese Society of Allergology. 2014; 63: 587–594. https://doi.org/10.2332/allergolint.14-OA-0708. |
| [35] |
Strine TW, Mokdad AH, Balluz LS, Berry JT, Gonzalez O. Impact of depression and anxiety on quality of life, health behaviors, and asthma control among adults in the United States with asthma, 2006. The Journal of Asthma: Official Journal of the Association for the Care of Asthma. 2008; 45: 123–133. https://doi.org/10.1080/02770900701840238. |
| [36] |
Tarraf H, Al-Jahdali H, Al Qaseer AH, Gjurovic A, Haouichat H, Khassawneh B, et al. Asthma control in adults in the Middle East and North Africa: Results from the ESMAA study. Respiratory Medicine. 2018; 138: 64–73. https://doi.org/10.1016/j.rmed.2018.03.024. |
| [37] |
Lee KH, Lee HS. Hypertension and diabetes mellitus as risk factors for asthma in Korean adults: the Sixth Korea National Health and Nutrition Examination Survey. International Health. 2020; 12: 246–252. https://doi.org/10.1093/inthealth/ihz067. |
| [38] |
Christiansen SC, Schatz M, Yang SJ, Ngor E, Chen W, Zuraw BL. Hypertension and Asthma: A Comorbid Relationship. The Journal of Allergy and Clinical Immunology. in Practice. 2016; 4: 76–81. https://doi.org/10.1016/j.jaip.2015.07.009. |
| [39] |
Li R, Wang X, Luo L, Yuan Y. Identifying the most crucial factors associated with depression based on interpretable machine learning: a case study from CHARLS. Frontiers in Psychology. 2024; 15: 1392240. https://doi.org/10.3389/fpsyg.2024.1392240. |
| [40] |
Su D, Zhang X, He K, Chen Y. Use of machine learning approach to predict depression in the elderly in China: A longitudinal study. Journal of Affective Disorders. 2021; 282: 289–298. https://doi.org/10.1016/j.jad.2020.12.160. |
| [41] |
Hatton CM, Paton LW, McMillan D, Cussens J, Gilbody S, Tiffin PA. Predicting persistent depressive symptoms in older adults: A machine learning approach to personalised mental healthcare. Journal of Affective Disorders. 2019; 246: 857–860. https://doi.org/10.1016/j.jad.2018.12.095. |
| [42] |
Xia F, Li Q, Luo X, Wu J. Machine learning model for depression based on heavy metals among aging people: A study with National Health and Nutrition Examination Survey 2017-2018. Frontiers in Public Health. 2022; 10: 939758. https://doi.org/10.3389/fpubh.2022.939758. |
/
| 〈 |
|
〉 |