ObjectiveThis study aimed to develop and validate a nomogram for assessing the risk of nosocomial infections among obstetric inpatients, providing a valuable reference for predicting and mitigating the risk of postpartum infections.MethodsA retrospective observational study was performed on a cohort of 28,608 obstetric patients admitted for childbirth between 2017 and 2022. Data from the year 2022, comprising 4,153 inpatients, were utilized for model validation. Univariable and multivariable stepwise logistic regression analyses were employed to identify the factors influencing nosocomial infections among obstetric inpatients. A nomogram was subsequently developed based on the final predictive model. The receiver operating characteristic (ROC) curve was utilized to calculate the area under the curve (AUC) to evaluate the predictive accuracy of the nomogram in both the training and validation datasets.ResultsThe gestational weeks > = 37, prenatal anemia, prenatal hypoproteinemia, premature rupture of membranes (PROM), cesarean sction, operative delivery, adverse birth outcomes, length of hospitalization (days) > 5, CVC use and catheterization of ureter were included in the ultimate prediction model. The AUC of the nomogram was 0.828 (0.823, 0.833) in the training dataset and 0.855 (0.844, 0.865) in the validation dataset.ConclusionThrough a large-scale retrospective study conducted in China, we developed and independently validated a nomogram to enable personalized postpartum infections risk estimates for obstetric inpatients. Its clinical application can facilitate early identification of high-risk groups, enabling timely infection prevention and control measures.