Postpartum · Urinary leakage · Prediction research

A machine-learning model for postpartum leakage: what its validation showed

A 2026 study used pregnancy and birth information, including details extracted from delivery records, to estimate who might report urine leakage 6 to 8 weeks after birth. In a separate cohort from another campus of the same hospital, the model had an area under the curve of 0.782. At its selected cutoff, only about one in three people labeled higher risk had the outcome. The model still needs testing in other health systems before it could guide care.

The short answer

Researchers combined structured clinical data with factors extracted from text records using a large language model, then compared seven prediction algorithms. A multilayer perceptron had an AUC of 0.813 in internal validation and 0.782 in a separate campus cohort. This shows the model ranked people with and without postpartum leakage with moderate discrimination in these data. It does not mean the estimate is accurate for a specific person, and it does not show that using the model prevents leakage.

October 22, 2026 · Sources checked October 22, 2026

About 8 min read

The model's area under the curve was 0.813 in internal validation and 0.782 in a cohort from another campus of the same hospital; external validation positive predictive value at the selected cutoff was 33.5 percent.
Discrimination remained similar in the validation cohort, while the selected cutoff still produced more false-positive than true-positive risk labels.

Urinary leakage can continue after pregnancy or begin around childbirth. Researchers have developed prediction tools that use factors such as leakage during pregnancy, delivery history and maternal characteristics. A 2026 paper asked whether information stored in free-text delivery records could be combined with standard data to improve postpartum risk estimates.

The researchers used a large language model (LLM) to extract selected facts from electronic medical records (EMRs), then used machine-learning methods to estimate postpartum urinary incontinence. The method combines two distinct steps: extracting variables from text, then predicting an outcome from those variables plus structured data. Good performance at one step does not guarantee a clinically useful result at the other.

Who was included?

The development cohort enrolled pregnant women from January through June 2020. The validation cohort was recruited from January through May 2025 at another campus in a different administrative district, which the authors described as a relatively independent patient population. Both cohorts came from the same hospital system. After losses to postpartum follow-up, the analysis included 1,186 people in development and 419 in validation.

Participants were adults with singleton, term pregnancies. The researchers excluded active urinary infection, stillbirth, fetal congenital malformation and severe comorbidities. The outcome was assessed 6 to 8 weeks after birth using the Chinese version of the International Consultation on Incontinence Questionnaire-Urinary Incontinence Short Form (ICIQ-UI SF). Any leakage reported on the questionnaire counted as postpartum urinary incontinence for the model.

Postpartum leakage was reported by 250 women in the development cohort (21.1%) and 82 in validation (19.6%). Across both cohorts, 332 of 1,605 participants had the outcome, or about 20.7%. The model predicts this short-term questionnaire outcome in the study population; it does not estimate later-life leakage or diagnose a pelvic-floor disorder.

How were records used?

Structured information included demographic, reproductive, obstetric, urinary-history and lifestyle variables. Unstructured information came from clinical notes, obstetric history, examination records, auxiliary tests and discharge diagnoses recorded during delivery hospitalization. Before processing, the text records were de-identified under the study's ethics protocol.

The researchers used ChatGPT-4o to extract candidate variables. Two researchers independently annotated a reference set for comparison with the model's extraction, with reported agreement of Cohen's kappa 0.99. Across the development data, the best prompt configuration achieved 98.9% overall extraction accuracy, compared with 95.9% for the initial prompt. That is an information-extraction result measured against the annotated variables; it is not the accuracy of predicting postpartum leakage.

After selecting candidate variables, the team trained seven machine-learning approaches and used stratified five-fold cross-validation within the development cohort. The final multilayer perceptron (MLP) was then assessed in the second campus cohort. A baseline logistic-regression model using structured information alone was also evaluated in external validation.

How well did the model perform?

The MLP model had an AUC of 0.813 in internal validation (95% confidence interval 0.749 to 0.873) and 0.782 in external validation (95% CI 0.730 to 0.830). AUC describes how well a model ranks people who later report leakage above people who do not, across possible cutoffs. It is not the percent of individuals whose predictions were correct.

The structured-data logistic regression had an external validation AUC of 0.765. The study reported improved discrimination for the combined model and an integrated discrimination improvement of 15.7%. The numerical difference in AUC was modest, and the article does not establish that using the extra extracted variables improves patient outcomes or changes care decisions.

At the model's selected cutoff of 0.21 in external validation, sensitivity was 80.5% and specificity was 61.1%. The positive predictive value was 33.5%, while the negative predictive value was 92.8%. In that cohort, roughly one in three people the model labeled higher risk at this cutoff reported leakage; most people with a positive risk label did not report the outcome. The negative predictive value also reflects the outcome rate in the cohort and could change in a different population.

This distinction matters when a risk score is proposed for screening. Sensitivity asks how many participants with the outcome were flagged. Positive predictive value asks how many flagged participants had the outcome. A model can have a respectable AUC while still producing many false-positive labels at a chosen threshold, especially when the outcome is not very common.

Which factors mattered most?

The final model retained factors from both structured data and delivery-note text. They included urinary leakage severity during pregnancy, mixed leakage symptoms during pregnancy, leakage in the year before pregnancy, duration of the second stage of labor, number of vaginal births, number of cesarean births, premature rupture of membranes, age and pre-pregnancy body-mass index.

In the model's SHAP interpretation, pregnancy leakage severity, duration of the second stage of labor and number of vaginal deliveries ranked among the most influential predictors. SHAP assigns contributions within the fitted model; it does not show that changing one factor would change the outcome. An association used for prediction is not the same as a cause.

Some of these factors are known only after delivery, so the model is aimed at estimating risk by the immediate postpartum period rather than during early pregnancy. The study cannot be used to say whether a person should choose a particular delivery method. That was not the question tested.

Can a risk score guide care now?

The paper includes a web calculator as a research implementation. It was not tested in a clinical-impact trial, and the authors do not show that clinicians using it improved prevention, referral or patient-reported outcomes. A prediction tool should be evaluated not only for ranking performance, but also for calibration, benefit at decision thresholds, usability and effects on care.

External validation here is a strength because the model was tested on a separate cohort collected later at another campus. However, both cohorts came from one university hospital in Hangzhou. Data entry practices, patient mix, clinical documentation, language and follow-up can differ across hospitals and countries. Validation in other maternity settings would help determine whether performance transfers.

A score cannot replace asking about leakage. If leakage is present during pregnancy or after birth, people can discuss it with their maternity or primary-care clinician. The model does not establish that a person with no recorded risk factors will remain symptom-free, nor that someone labeled higher risk will develop leakage.

Questions to bring

These prompts can help turn a risk discussion into a care plan that fits you.

  • When will we ask about urinary leakage after birth, and how can I report it?
  • If I notice leakage during pregnancy, what follow-up or support is available?
  • Would a risk model change my care, or is it still being evaluated?
  • What should I do if leakage continues or affects activities after the postpartum check?
  • Which pelvic-floor or continence services are available in my area?

Sources and editorial notes

Sources checked October 22, 2026. The open-access report, cohort flow, extraction methods, prediction metrics and limitations were reviewed. The article separates extraction accuracy from outcome prediction and distinguishes model ranking from individual risk estimates.

By The Mighty Bladder Editors.

Browse all Mighty Bladder articles