Development and external validation of an explainable XGBoost model with a web-based calculator for risk prediction of postpartum depressive symptoms.
Qian Zhang, Fang Wu, Mei Zhu, Liwei Sun
Department of Obstetrics and Gynecology, the Second People's Hospital of Bengbu City, Bengbu, China. · Department of Obstetrics and Gynecology, General Hospital of Huainan Oriental Hospital Group, Huainan, China.
Key points
From the paper's conclusion- Screening-positive rates were 38.0% in the development cohort and 26.0% in the external validation cohort. Tree-based ensemble models showed broadly comparable performance. eXtreme Gradient Boosting (XGBoost) was selected based on its numerically highest mean cross-validated AUC and balanced overall performance, with AUCs of 0.895 ± 0.033 in cross-validation, 0.845 (95% confidence interval [CI]: 0.751-0.940) in the internal test set, and 0.820 (95% CI: 0.743-0.889) in the external validation cohort. Calibration was acceptable in the internal test set, whereas absolute risk was overestimated in the external validation cohort. Decision curve analysis indicated potential net clinical benefit. SHAP identified age, marital relationship quality, prenatal depressive symptoms, monthly personal income, and sleep disturbance as important model-based contributors. A four-predictor web calculator was developed.
Abstract
INTRODUCTION: Postpartum depression (PPD) is associated with severe adverse outcomes, yet timely risk stratification remains challenging. Existing machine learning models are often limited by insufficient external validation, limited interpretability, and lack of accessible clinical tools. This study aimed to develop and externally validate an explainable machine learning model with a web-based calculator for predicting postpartum depressive symptoms. METHODS: This retrospective cohort study included 553 women from two hospitals, comprising 403 in the development cohort and 150 in an independent external validation cohort. The development cohort was divided into training and internal test sets. Screening-positive postpartum depressive symptoms at 6 weeks postpartum were defined as an Edinburgh Postnatal Depression Scale (EPDS) score ≥9. Five machine learning models were developed using demographic, psychosocial, and obstetric predictors. Model discrimination was assessed using the area under the receiver operating characteristic curve (AUC), with calibration and decision curve analyses performed additionally. SHapley Additive exPlanations (SHAP) were used for model interpretation. RESULTS: Screening-positive rates were 38.0% in the development cohort and 26.0% in the external validation cohort. Tree-based ensemble models showed broadly comparable performance. eXtreme Gradient Boosting (XGBoost) was selected based on its numerically highest mean cross-validated AUC and balanced overall performance, with AUCs of 0.895 ± 0.033 in cross-validation, 0.845 (95% confidence interval [CI]: 0.751-0.940) in the internal test set, and 0.820 (95% CI: 0.743-0.889) in the external validation cohort. Calibration was acceptable in the internal test set, whereas absolute risk was overestimated in the external validation cohort. Decision curve analysis indicated potential net clinical benefit. SHAP identified age, marital relationship quality, prenatal depressive symptoms, monthly personal income, and sleep disturbance as important model-based contributors. A four-predictor web calculator was developed. DISCUSSION: The explainable XGBoost model showed promising discrimination for predicting EPDS-defined postpartum depressive symptoms. However, given the modest external validation sample and evidence of risk overestimation, further prospective multicenter validation and recalibration are needed before routine clinical implementation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Development and validation of an interpretable machine learning model and online web-based calculator based on social-ecosystem theory for early prediction of postpartum depression: a longitudinal studyFrontiers in Public Health · 2025
- Predicting late-pregnancy depression using machine learning: A longitudinal study with external validation.International journal of medical informatics · 2026
- Building a Machine Learning Prediction Model for Postpartum Depression Based on Ensemble Learning Strategies.British journal of hospital medicine (London, England : 2005) · 2026
- Clinical feature grouping-based FT-Transformer for postpartum depression risk prediction: a longitudinal cohort study in perinatal women.Psychiatry research · 2026
- Machine-learning prediction of post-stroke depression using admission clinical and laboratory features: a derivation studyBMC Medical Informatics and Decision Making · 2026
- Machine Learning-Based Prediction of Antepartum Depression Symptoms: A Prospective Cohort Study.International journal of women's health · 2026