ORIGINAL RESEARCH article
Front. Med.
Sec. Obstetrics and Gynecology
Volume 12 - 2025 | doi: 10.3389/fmed.2025.1565374
This article is part of the Research TopicPerinatal mental health: Depression, Anxiety, Stress, and FearView all 14 articles
Postpartum Depression Risk Prediction Using Explainable Machine Learning Algorithms
Provisionally accepted- 1Shenyang Maternity and Child Health Hospital, Shenyang, Liaoning Province, China
- 2Shenyang Medical College, Shenyang, China
Select one of your emails
You have multiple emails registered with Frontiers:
Notify me on publication
Please enter your email address:
If you already have an account, please login
You don't have a Frontiers account ? You can register here
Postpartum depression (PPD) is a common and serious mental health complication after childbirth, with potential negative consequences for both the mother and her infant. This study aimed to develop an explainable machine learning model to predict the risk of PPD and to identify its key predictive factors. Methods: A retrospective analysis was conducted on 1,065 women who attended their 6-week postpartum follow-up visit at a tertiary maternal and child healthcare hospital in Shenyang, China, from January to December 2021 Feature selection was performed using LASSO regression and the Boruta algorithm. Eight machine learning algorithms were then employed to construct the prediction models. Model performance was evaluated according to the area under the receiver operator characteristic curve (AUC), sensitivity, specificity, recall, F1 score, and accuracy. Shapley additive explanations (SHAP) were used to visualize the features of the model and individual case predictions. Results: Among the 1,065 women, 251 (23.5%) developed PPD. An 11-variable prediction model was developed, with XGBoost showing the best performance on both training and validation sets. After optimizing the model parameters and applying 10-fold cross-validation, the model achieved an average accuracy of 0.95, an average AUC of 0.955, average precision of 0.945, and average specificity of 0.985, indicating excellent predictive performance. The key predictive factors included weight gain during pregnancy, relationship with the mother-in-law, sleep quality, marital relationship, planned pregnancy, fetal sex preference, pregnancy-related anxiety, pelvic-floor muscle endurance, cervix status, attendance at prenatal education classes, and postpartum care satisfaction. Conclusion: The XGBoost model demonstrated optimal performance at predicting PPD and can aid healthcare professionals to identify high-risk individuals. The SHAP method enhanced the model's interpretability, facilitating a better understanding of the causes of PPD, how to prevent it, and how to improve patient outcomes.
Keywords: postpartum depression, machine learning, predictive model, Influencing Factors 1. Introduction, Depres sion
Received: 24 Jan 2025; Accepted: 22 Jul 2025.
Copyright: © 2025 Huang, Zhang, Zhang, Li and Li. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
* Correspondence:
Jing Li, Shenyang Maternity and Child Health Hospital, Shenyang, 110032, Liaoning Province, China
ChenYang Li, Shenyang Maternity and Child Health Hospital, Shenyang, 110032, Liaoning Province, China
Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.