ObjectiveTo analyze the multidimensional factors associated with postpartum post-traumatic stress disorder (PP-PTSD) in primiparas based on the Integrated Framework for Population Health Risk Management (IFPHRM), multiple machine learning-based predictive models were constructed and externally validated to identify high-risk individuals and to provide a robust evidence base for targeted preventive interventions.MethodsThis cross-sectional study consecutively enrolled 1, 135 primiparous women from the Department of Obstetrics at Hefei Maternal and Child Health Hospital between June 2024 and May 2025. Participants were divided chronologically into a training cohort and an independent temporal validation cohort. Women recruited from June 2024 to January 2025 were included in the training cohort (n = 794), whereas those recruited from February 2025 to May 2025 were included in the temporal validation cohort (n = 341). At six weeks postpartum, PP-PTSD symptoms were assessed using the Post-traumatic Stress Disorder Checklist-Civilian Version (PCL-C), with a score ≥38 indicating probable PP-PTSD. Multidimensional variables, including physiological and psychological factors, environmental and family-related factors, and social-behavioral factors, were collected. Candidate predictors were first screened using univariate analysis and then selected using least absolute shrinkage and selection operator (LASSO) regression. Multivariable logistic regression was used to identify independent associated factors. Seven machine learning models, including Logistic Regression, Naive Bayes, Support Vector Machine, Decision Tree, Gradient Boosting, AdaBoost, and Linear Discriminant Analysis, were constructed. Model performance was evaluated in the independent temporal validation cohort using receiver operating characteristic curves, calibration curves, decision curve analysis, and the DeLong test. SHAP analysis was used to interpret the optimal model.ResultsAmong the 794 participants in the training cohort, the incidence of PP-PTSD was 25.18%. Five key predictors were selected by LASSO regression: social support, depression, neonatal caregiving style, husband’s participation, and sleep quality. Multivariable logistic regression showed that depression and poor sleep quality were associated with an increased risk of PP-PTSD, whereas higher social support, greater husband’s participation, and parental assistance in neonatal care were associated with a reduced risk. Among the seven models, the Gradient Boosting model achieved the best overall performance in the temporal validation cohort, with an AUC of 0.939, F1 score of 0.700, specificity of 0.943, sensitivity of 0.651, and Youden index of 0.595. The DeLong test showed that Gradient Boosting performed significantly better than Logistic Regression. SHAP analysis further indicated that social support, husband’s participation, sleep quality, and depression were the major contributors to model prediction.ConclusionPostpartum PTSD (PP-PTSD) exhibits a higher incidence among primiparous women and exerts substantial adverse effects on maternal mental health, the mother–infant relationship, and overall family functioning. Guided by the Integrated Framework of Perinatal Health Risk Management (IFPHRM), this study elucidated the multidimensional mechanisms underlying PP-PTSD, encompassing physiological and psychological factors (e.g., sleep quality and depression), environmental and occupational factors (e.g., social support, paternal involvement, and infant caregiving practices), and social behavioral factors. The Gradient Boosting prediction model demonstrated robust performance and high predictive accuracy upon independent external validation, highlighting its potential utility for risk stratification and future clinical translation. Nevertheless, multicentre validation and the development of clinically implementable tools are warranted. Collectively, this study offers a theoretical foundation and methodological framework for the early identification, targeted intervention, and long-term health management of PP-PTSD in primiparous women.

