Predicting late-pregnancy depression using machine learning: A longitudinal study with external validation.
Dianrui Yao, Qian Huang, Chunlei Liu, Dan Chen, Zhijie Zou, Yun Hua, Xiaoli Chen
School of Nursing, Wuhan University, Building 2, School of Medicine, 4th Fl, No. 115, Donghu Road, Wuhan 430071, China. · Department of Pediatrics, East Campus, Renmin Hospital of Wuhan University, No. 9, Donghu Road, Wuchang District, Wuhan 430060, Hubei, China.
Key points
From the paper's conclusion- This study developed a reliable and interpretable ML model for the early identification of women at high risk of depressive symptoms in late pregnancy. The findings suggest that ML, particularly Lasso Logistic Regression, can be integrated into prenatal care to enhance early screening and facilitate timely intervention for high-risk women, improving maternal mental health outcomes. We further developed a web-based tool to facilitate the clinical application of the model.
Abstract
OBJECTIVE: Depressive symptoms in late pregnancy is a serious public health issue with profound effects on maternal well-being and infant development. Developing a data-driven predictive model for depressive symptoms in late pregnancy can facilitate early identification and provide a basis for timely intervention. METHODS: Six machine learning (ML) models were compared by nested cross-validation (5 × 3 repeats), including Lasso Logistic Regression, Decision Trees, Multilayer Perceptrons, Naive Bayes, Random Forests, and Extreme Gradient Boosting. The Edinburgh Postnatal Depression Scale (EPDS) was used for the assessment of depressive symptoms during pregnancy. The models were evaluated on accuracy, precision, sensitivity, specificity, F1 score, the area under the receiver operating characteristic curve (AUC), Matthews correlation coefficient, Brier score, calibration plots, and decision curve analysis. Shapley additive explanations (SHAP) were utilized to improve model interpretability and highlight important predictive features. The development cohort comprised 713 pregnant women at 28-36 weeks of gestation recruited during prenatal visits at the obstetrics clinic of a major hospital in Wuhan, China. For temporal external validation, a separate cohort of 515 pregnant women at 37-40 weeks of gestation was recruited at the same clinic during a later period. RESULTS: The Lasso Logistic Regression model outperformed the other models in terms of predictive accuracy and generalizability in the temporal external validation. Key predictors of depressive symptoms in late pregnancy included early-pregnancy insomnia symptoms, EPDS score, and fear of pregnancy. The model demonstrated robust performance in temporal external validation, offering an effective tool for predicting depressive symptoms in late pregnancy. CONCLUSION: This study developed a reliable and interpretable ML model for the early identification of women at high risk of depressive symptoms in late pregnancy. The findings suggest that ML, particularly Lasso Logistic Regression, can be integrated into prenatal care to enhance early screening and facilitate timely intervention for high-risk women, improving maternal mental health outcomes. We further developed a web-based tool to facilitate the clinical application of the model.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Development and external validation of an explainable XGBoost model with a web-based calculator for risk prediction of postpartum depressive symptoms.Frontiers in psychiatry · 2026
- Machine Learning-Based Prediction of Antepartum Depression Symptoms: A Prospective Cohort Study.International journal of women's health · 2026
- 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
- Building a Machine Learning Prediction Model for Postpartum Depression Based on Ensemble Learning Strategies.British journal of hospital medicine (London, England : 2005) · 2026
- Evaluating machine learning models for predicting postpartum depression symptoms using mississippi pregnancy risk assessment monitoring system (PRAMS) 2016-2022 data.International journal of medical informatics · 2026
- Construction and validation of multiple machine learning models for influencing factors of postpartum post-traumatic stress disorder in primiparas.Frontiers in psychiatry · 2026