Background

Pulmonary hypertension (PH) is a chronic, progressive cardiopulmonary disease with a significant risk of maternal and foetal/neonatal complications [1, 2]. According to the 2018 European Society of Cardiology (ESC) guidelines, the mortality rate of pregnant patients with PH is approximately 16–30% [3], with most deaths occurring in the first week postpartum [2, 4]. Foetal/neonatal outcomes are also reported to be poor, with mortality rates ranging from 7 to 13% [5]. Therefore, the guidelines recommend against pregnancy, favour contraception, and encourage early pregnancy termination in these patients [3]. Nevertheless, the pregnancy rate among women with PH is increasing [6], with some patients even declining termination. Moreover, 30% of women are diagnosed with PH during pregnancy, presenting a challenge for mothers and caregivers [7, 8].

Advances have been made in pharmacological and other treatments for PH, improving the overall quality of life and prognosis [9] and lowering mortality rate (3%) [2]. However, because the maternal mortality rate remains high, pregnancy remains contraindicated in women with PH [3]. A large-scale, multi-centre clinical study is needed to reconsider this general proscription. In the meantime, pregnant patients with PH must be informed regarding their options and pregnancy-associated risks.

To date, no objective, large-scale, multi-centre, machine learning-based clinical prediction models have been developed to evaluate the adverse maternal and foetal/neonatal outcomes in pregnant patients with PH. Given the risks, practical and reliable tools for early assessment of adverse foetal/neonatal events, maternal mortality or heart failure (HF), and overall survival (OS) are needed. Nomograms are based on core diagnostic indicators and are useful for comprehensive patient evaluation and early disease diagnosis. They have been effectively applied for various conditions, including soft-tissue sarcomas [10], small-cell lung cancer [11], coronavirus disease [12], and aortic dissection [13].

In this study, we aimed to develop and validate a machine-based model to predict maternal mortality or HF and adverse foetal/neonatal clinical events in pregnant patients with PH. The goal is to identify high-risk patients and make rapid, accurate clinical decisions. Additionally, we constructed and verified a prognostic model to guide treatment, advancing the capability for early intervention.

Methods

Patients

We reviewed obstetric records from six Chinese hospitals from 2009 to 2022. PH was defined according to the clinical diagnostic criteria, with pulmonary artery systolic pressure > 35 mmHg [14, 15] confirmed by echocardiography. Maternal mortality was defined as death during pregnancy or within 7 days postpartum. HF was defined according to the ESC and American Heart Association (AHA) guidelines [16, 17], as a complex clinical syndrome caused by any structural or functional damage resulting from ventricular filling or blood excretion. Patients with elevated right ventricular systolic pressure from outflow obstruction or pulmonary stenosis were excluded. The Development cohort included 420 patients who met these criteria between January 2009 and December 2018. An independent Validation cohort comprising 273 consecutive patients from January 2019 to May 2022 was created using the same criteria. Both cohorts were observed over time, with 117 (16.8%) patients lost to follow-up. The remaining 355 patients from the Development cohort were used as the Follow-up set for the OS nomogram construction, and the remaining 221 patients from the Validation cohort became the external validation set for the prognostic nomogram. Pregnancy was continued in 304 patients from the Development cohort and in 194 patients from the Validation cohort. The corresponding foetal/neonatal records were included in the Delivery and Validation groups, respectively. These groups were used to establish (and validate) another nomogram to predict adverse foetal/neonatal events. This study protocol was approved by the Medical Ethics Committee of the Guangdong Women and Children Hospital (reference number: 202101357). The requirement for informed consent was waived due to the retrospective nature of the study.

Patient characteristics and outcome measures

The primary outcome was maternal mortality or HF. OS was calculated from diagnosis to all-cause death or final follow-up (May 2022). Foetal/neonatal death and adverse clinical events were a composite of foetal death (in utero), neonatal death (within 30 days of birth), and small for gestational age (SGA) (foetal/neonatal weight of small for gestational age < 10%) [18].

Statistical analysis

Stepwise regression based on the minimum value of the Akaike information criterion was used to select variables for nomogram inclusion [19]. Discriminatory ability was assessed using the bootstrap concordance index (C-index) and area under the curve (AUC) of the receiver operating characteristic (ROC) curve [20]. The Hosmer–Lemeshow test versus the calibration curve was used to evaluate the ability to calibrate [21]. A C-index or AUC value > 0.7 indicated that the nomogram had good discriminatory ability [22]. The calibration plot showed the predicted and actual probabilities for each patient in the nomogram model, with a line close to the ideal 45° indicating good correlation [23, 24]. Decision curve analysis (DCA) was performed to evaluate the clinical utility of the nomogram [25, 26]. Detailed and expanded methods are found in the Online Supplement.

Results

Patient and disease characteristics

The maternal mortality rates in the Development and the Validation cohorts were 10.2% (43/420) and 4.4% (12/273), respectively, while the probabilities of HF were 16.2% (68/420) and 12.8% (35/273), respectively. The foetal/neonatal mortality rates in the Delivery and Validation groups were 6.6% (20/304) and 3.5% (8/228), respectively; the rates of SGA were 41.4% (126/304) and 32.9% (75/228), respectively. The demographic and clinical characteristics and univariate logistics analyses of the Development and Validation cohorts are summarised in Table 1, and those of the Follow-up and Validation sets are shown in Table 2 and Additional file 1: Table S1, respectively. Maternal and foetus/neonate characteristics in the Delivery and Validation groups are provided in Additional file 1: Table S2.

Table 1 Demographic and clinical characteristics of patients in the Development and External validation cohorts
Table 2 Demographic and clinical characteristics of patients in the follow-up and external validation sets

Nomogram development and validation (maternal mortality or HF)

We constructed a nomogram to predict the risks of maternal mortality or HF in the Development cohort (n = 420). Multivariate logistic analysis identified the following independent predictors: type I respiratory failure (RF), New York Heart Association (NYHA) functional class, N-terminal pro-brain natriuretic peptide (NT-proBNP) ≥ 1400 ng/L, arrhythmia, and eclampsia with pre-existing hypertension (HTN) (Additional file 1: Fig. S1A). These were presented in nomogram form (Fig. 1A). For application of the dynamic nomogram, a score was awarded to correspond with each variable, and the sum of scores was recorded as the total score. The total score corresponded with the predicted risk of maternal mortality or HF in patients with PH (Additional file 1: Fig. S1B).

Fig. 1
figure 1

Nomogram development and validation (Maternal mortality or heart failure). A The nomogram incorporates five variables, with points allocated according to the scale for each variable. A total score was awarded from the sum of the individual scores, and used to calculate the predicted probability of maternal mortality or heart failure. B (a, b) Calibration curves for the nomogram in the Development (a) and Validation (b) cohorts. The calibration plot illustrates the accuracy of the original prediction (“Apparent”: light dotted line) and bootstrap models (“Bias-corrected”: solid line) in predicting the probability of maternal mortality or heart failure. C (a, b) Decision curve analysis for the nomogram in the Development (a) and Validation (b) cohorts. The y-axis indicates the net benefit, which is the sum of the benefits (true positives) minus harm (false positives). The x-axis indicates the threshold probability. The red line represents the nomogram net benefit. The yellow and blue lines represent the hypotheses that all or no patients experienced maternal mortality or heart failure, respectively. D (a, b) Violin plot analysis compared the distribution of risk prediction probabilities for patients experiencing maternal mortality or HF versus those without maternal death or HF in the Development (a) and Validation (b) cohorts. Demonstration of a violin plot and the depicted data. The three lines within the plot show the 1st and 3rd quartiles and the median of the dataset; the violin body width indicates the density of data along the y-axis. The violin edges represent the minimum and maximum values of the dataset. HTN hypertension, HF heart failure, NT-proBNP N-terminal pro-brain natriuretic peptide, NYHA New York Heart Association, RF respiratory failure

To evaluate the nomogram’s efficacy and its potential for clinical use, we performed internal and external validation. The bootstrap-corrected C-indexes from the Development and Validation cohorts were 0.892 (95% CI: 0.818–0.966) and 0.877 (95% CI: 0.757–0.996), respectively; this indicated excellent discriminative ability. Furthermore, the calibration plot showed that the predicted probabilities were close to actual observations in both cohorts (Fig. 1B, a–b). The results of the Hosmer–Lemeshow test (χ2 = 43.225; P = 0.873) indicated a good nomogram fit. Moreover, the AUC of the nomogram’s ROC curve for both cohorts also had good discrimination ability. As shown in Additional file 1: Fig. S1C, the AUC of the training cohort was 0.892 (95% CI: 0.855–0.929); this was verified in the Validation cohort with an AUC of 0.899 (95% CI: 0.843–0.955). The DCA curve demonstrated that the optional nomogram threshold probability was high and relatively safe in both cohorts, with a high net benefit (Fig. 1C, a–b). The nomogram was further used to calculate the probability of maternal mortality or HF for all patients. Violin plot analysis showed that the predicted risks for maternal mortality or HF were markedly lower in the surviving patients without HF in both cohorts (the nomogram predicted probabilities of mortality/HF as 0.612 ± 0.030 vs. survivors/no HF as 0.140 ± 0.010, P < 0.001 in the Development cohort and 0.645 ± 0.051 vs 0.137 ± 0.012, respectively, P < 0.001 in the Validation cohort) (Fig. 1D, a–b).

Nomogram development and validation (overall survival)

In the Follow-up set, the independent prognostic factors type I RF, arrhythmia, general anaesthesia for caesarean sections (C-section), NYHA functional class, and NT-proBNP ≥ 1400 ng/L (Additional file 1: Fig. S2A) were used to create a prognostic nomogram for OS (Fig. 2A). In the nomogram and dynamic nomogram applications, each variable was assigned a value, the sum of which represents the total score. The predicted 1, 2, and 3-year OS rates corresponded with the overall score (Additional file 1: Fig. S2B). We then used a time-dependent AUC to verify the predictive capacity of the prognostic model. In the Follow-up set, the OS predictions at 1, 2, and 3 years were 0.936, 0.916, and 0.916, respectively (Fig. 2B.a), while those in the Validation set were 0.939, 0.861, and 0.877, respectively (Fig. 2B.b). These results indicated satisfactory predictive performance. On DCA, the nomogram offered a net benefit over the ‘treat-all’ or ‘treat-none’ strategy for both sets (Fig. 2C, a–b). The calibration curves of the nomogram demonstrated good correlation between the 1, 2, and 3-year predicted and actual survival probabilities for both sets (Fig. 3A, B).

Fig. 2
figure 2

Nomogram development and validation (Overall survival). A: The nomogram incorporates five variables, with points allocated according to the scale for each variable. A total score was awarded from the sum of the individual scores, and used to calculate the predicted overall survival (OS) of pregnant patients with PH at 1, 2, and 3 years. B (a, b): ROC curve of the 1, 2, and 3-year survival predictions in the Follow-up (a) and (follow-up) Validation sets (b). The red, blue, and orange lines represent the AUC of the ROC curves for 1, 2, and 3 years, respectively. C (a, b): Decision curve analysis for the prognostic nomogram in the Follow-up (a) and (follow-up) Validation sets (b). The y-axis indicates the net benefit, which is the sum of the benefits (true positives) minus harm (false positives). The x-axis indicates the threshold probability. The red, blue, and orange lines represent the 1, 2, and 3-year survival benefits, respectively. AUC area under the curve, NT-proBNP N-terminal pro-brain natriuretic peptide, NYHA New York Heart Association, PH pulmonary hypertension, RF respiratory failure, ROC receiver operating characteristic

Fig. 3
figure 3

Calibration curves of the 1, 2, and 3-year overall survival and risk stratification. A (a–c) Calibration curves of the 1, 2, and 3-year OS for pregnant women with PH in the Follow-up set. B (a–c) Calibration curves of the 1, 2, and 3-year OS for pregnant women with PH in the Validation set. The light blue line indicates the ideal reference line where predicted probabilities would match the observed survival rates. The red dots are calculated by bootstrapping (resample: 1000) and represent the nomogram’s performance. The closer the solid red line is to the light blue line, the more accurately the model predicts survival. C Kaplan–Meier OS curves for the low-risk and high-risk pregnant women with PH stratified by the prognostic nomogram in the Follow-up set. According to the median cut-off value, samples were divided into high-risk and low-risk groups. D Kaplan–Meier OS curves for the low-risk and high-risk pregnant women with PH stratified by the prognostic nomogram in the Validation set. OS overall survival, PH pulmonary hypertension

Risk stratification based on the prognostic nomogram

Risk stratification was performed based on the total scores of the prognostic nomogram. Patients in the Follow-up and Validation sets were divided into low and high-risk groups, with the median risk score representing the cut-off value. Kaplan–Meier analysis was used to explore survival differences using the log-rank test; the OS curves demonstrated excellent discrimination between the two risk groups in the different sets. Survival time was significantly shorter in the high-risk than low-risk groups for all sets (Fig. 3C, D).

Nomogram development and validation (Foetal/neonatal adverse events)

For the Delivery group, multivariate logistic regression analysis identified seven variables (type I RF, NT-proBNP ≥ 1400 ng/L, arrhythmia, general anaesthesia for C-section, parity, platelets, fibrinogen, and left ventricular systolic diameter) as independent predictors for foetal/neonatal adverse clinical events (Additional file 1: Fig. S4A). These were used to build another nomogram (Fig. 4A). On ROC curves, fibrinogen reduction to ≤ 2.00 g/L, platelet count > 245 × 109/L, parity > 2, and maternal left ventricular systolic diameter \(\ge\) 35 mm were significant thresholds for predicting foetal/neonatal adverse events. The nomogram and dynamic nomogram applications are depicted in Additional file 1: Fig. S4B.

Fig. 4
figure 4

Nomogram development and validation (Adverse foetal/neonatal events). A The nomogram incorporates seven variables, with points allocated according to the scale for each variable. A total score was awarded from the sum of the individual scores, and used to calculate the predicted probability of adverse foetal/neonatal events. B (a, b) Calibration curves for the nomogram in the Delivery (a) and Validation (b) groups. The calibration plot illustrates the accuracy of the original prediction (“Apparent”: light dotted line) and bootstrap models (“Bias-corrected”: solid line) in predicting the probability of adverse foetal/neonatal events. C (a, b) Decision curve analysis for the nomogram in the Delivery (a) and Validation (b) groups. The y-axis indicates the net benefit, which is the sum of the benefits (true positives) minus harm (false positives). The x-axis indicates the threshold probability. The red line represents the net nomogram benefit. The yellow and blue lines represent the hypotheses that all and no patients had adverse foetal/neonatal events, respectively. D (a, b) Violin plot analysis compared the distribution of risk prediction probabilities for those with adverse foetal/neonatal events versus those without in the Delivery (a) and Validation (b) groups. The predicted risk for those with adverse foetal/neonatal events was markedly higher than for those without adverse events in both groups. Demonstration of a violin plot and the depicted data. The three lines within the plot show the 1st and 3rd quartiles and the median of the dataset; the violin body width indicates the density of data along the y-axis. The violin edges represent the minimum and maximum dataset values. AE adverse event, RF respiratory failure

Internal validation was performed using bootstrapping resampling for 1000 repetitions, and the C-index value was 0.854 (95% CI: 0.770–0.938) in the Delivery group and 0.764 (95% CI: 0.639–0.889) in the Validation group. The AUC of the Delivery and Validation groups were 0.854 (95% CI: 0.812–0.896) and 0.764 (95% CI: 0.701–0.828), respectively (Additional file 1: Fig. S4C). Notably, the calibration plot showed that the predicted probabilities were close to the actual observed outcomes for the Delivery (Fig. 4B.a) and Validation groups (Fig. 4B.b). Results of the Hosmer–Lemeshow test of the model in the Delivery group (χ2 = − 0.544, P = 0.586) indicated a good nomogram fit. Moreover, DCA curves revealed that the nomogram may better predict the risk of foetal/neonatal adverse events than the ‘treat-all’ and ‘treat-none’ schemes, as it added more net benefits for both groups (Fig. 4C). The nomogram constructed by logistic regression was used to calculate the probability of foetal/neonatal adverse events for all pregnant patients with PH. Nomogram scores of the foetal/neonatal adverse events patients were markedly higher than those of the patients without foetal/neonatal adverse events (the nomogram predicted probabilities of 0.678 ± 0.021 vs 0.298 ± 0.018, P < 0.001 in the Delivery group and 0.477 ± 0.021 vs 0.242 ± 0.014, P < 0.001 in the Validation group, respectively) (Fig. 4D). This implies that this model may accurately predict a patient's risk probability of having foetal/neonatal adverse events.

Implementation of the web server

We designed three dynamic nomograms using practical online applications; each incorporated an independent predictor. The online application for predicting maternal mortality or HF is available at https://ph-666.shinyapps.io/maternal-D/ (Additional file 1: Fig. S1D), for maternal prognosis at https://ph-666.shinyapps.io/COX-pregnant/ (Additional file 1: Fig. S3A–C), and for neonatal adverse events at https://ph-666.shinyapps.io/AE-fetal/ (Additional file 1: Fig. S4D).

Discussion

Principal findings

Using the parameters of type I RF, NYHA functional class, NT-proBNP \(\ge\) 1400 ng/L, eclampsia with pre-existing HTN, and arrhythmia, this nomogram is a useful screening tool for patients at high risk of maternal mortality or HF. This personalised approach also represents a dynamic online tool with a user-friendly digital interface (https://ph-666.shinyapps.io/maternal-D/). Most maternal deaths occur during the first week postpartum due to postdelivery hemodynamic changes. Moreover, five variables (type I RF, arrhythmia, NT-proBNP \(\ge\) 1400 ng/L, pregnancy outcomes, and NYHA functional class) were incorporated into a nomogram to predict OS and monitor PH condition over time. To enable easy clinical implementation, we developed a dynamic online nomogram application (https://ph-666.shinyapps.io/COX-pregnant/). Pregnancy in women with PH has long been regarded as a high risk for both maternal and foetal/neonatal complications [7]. We found that type I RF, NT-proBNP \(\ge\) 1400 ng/L, arrhythmia, delivery mode, parity, platelet, fibrinogen, and left ventricular systolic diameter were independently associated with increased adverse foetal/neonatal events. Further, these online dynamic nomograms are available at https://ph-666.shinyapps.io/AE-fetal/. Our online nomograms ascertained the probabilities of maternal mortality, survival, and the foetal/neonatal adverse events when the corresponding clinical factors were input.

Results in the context of what is known

PH affects pulmonary vasculature and the heart, and pregnancy places a significant burden on the cardiovascular system. Like other studies [2], we found that maternal mortality or HF were associated with NYHA functional class. Pregnant patients with NYHA functional class IV had poorer pregnancy outcomes. NT-proBNP is also recommended by international guidelines for risk assessment in patients with PH [27]. Moreover, since pregnancy is a hypermetabolic state, oxygen consumption increases by approximately 20% [28]. Increased minute ventilation leads to respiratory alkalosis, increased arterial oxygen tension, and dyspnoea. In our study, lower oxygen partial pressure was associated with maternal and foetal/neonatal complications [6]. Pregnant patients with hypoxia can also experience placental hypoperfusion, which can affect foetal growth and lead to perinatal complications [29].

Consistent with previous studies, maternal arrhythmias were found to be associated with an increase in maternal cardiac events and foetal/neonatal adverse outcomes [30, 31]. In particular, hypertensive disorders of pregnancy are associated with higher rates of maternal mortality [32]. Our results are consistent with recent studies where the administration of general anaesthesia during C-section is associated with an increased incidence of adverse maternal [1, 33], and foetal/neonatal outcomes [34, 35]. This may be related to increased intrathoracic and pulmonary artery pressure and thus, reduced venous return from endotracheal intubation and positive pressure ventilation [2]. The latest guidelines from the ESC reflect existing evidence that planned caesarean or vaginal deliveries carry lower risk [36]. Our study found lower risks of death or HF in women who delivered via C-section with spinal or epidural anaesthesia than via vaginal delivery, which is consistent with other literature favouring or even recommending planned C-sections [1, 2, 37]. Vaginal delivery can cause pain and increase thoracic pressure, which may reduce venous reflux [38]. In contrast, C-section provides a more regulated delivery environment [39]. It avoids long labour and allows for careful preparation of anaesthesia, haemodynamic optimisation, and contingency planning [1, 40]. However, more research is needed to determine the optimal delivery method. The current guidelines recommend strict contraception for patients with PH, and early pregnancy termination [3]; however, termination has also been associated with high maternal risks [5]; this was consistent with our findings. Our results suggested that a fibrinogen reduction to ≤ 2.00 g/L, platelet count > 245 × 109/L, parity > 2, and maternal left ventricular systolic diameter \(\ge\) 35 mm were the significant thresholds for predicting foetal/neonatal adverse events. Fibrinogen level before delivery may be a good predictor of placental abruption [41]. Decreased fibrinogen level may be associated with the degree of sub-placental hematoma formation, resulting in acute/chronic foetal acidaemia and increased intrauterine growth restriction [42]. Maternal platelet count has been used as an early predictor of neonatal respiratory distress and adverse foetal/neonatal outcomes [43]. Consistent with previous studies, parity was associated with growth restriction and mortality in neonates [44]. Interestingly, left ventricular mass has been shown to have a strong heritability component for cardiac features [45, 46].

Clinical implications

This was the first study to develop and validate a practical nomogram to predict maternal mortality or HF, OS, and adverse foetal/neonatal events in patients with PH. The nomogram was based on large-scale data analysis, and its intuitive icon model was convenient for clinical application. It can also be developed into an online application for intelligent patient management as well as auxiliary diagnosis and treatment. Nomograms have achieved good clinical application results in the fields of cancer, cardiovascular, and other diseases. The nomograms constructed in this study had good application results, including primary medical institutions' preliminary judgement of the prognostic risk of patients with pregnant women with PH and early identification of high-risk patients for early referral, evaluation, and treatment. It can also provide clinicians with accurate prediction tools for individual mortality, heart failure, overall survival, and adverse foetal/neonatal clinical events. The online tools developed based on the nomograms can be used for the self-management by pregnant patients with PH through an intelligent communication terminal operation programme and can be integrated with a hospital case management system for artificial intelligence-assisted diagnosis. The machine learning and feedback optimisation in the later application process will further improve the efficiency and accuracy of clinical prediction.

Strengths and limitations of the study

This study has some limitations, including limited cohort size and potential selection bias. Furthermore, data interpretation revealed some limitations to echocardiography as a diagnostic method: although RHC is the gold standard for PH diagnosis, radiation exposure may lead to foetal teratogenicity, carcinogenicity, or mutation. Spontaneous abortion, growth restriction, and intellectual disabilities may occur with high exposure levels. Regardless of the dose, the cancer risk also increases; therefore, the Swan–Ganz catheter is not recommended for routine perinatal monitoring [47]. Another limitation is that the patient populations of the Development and external Validation cohorts differed, and the sample size of the external Validation cohort was relatively small. Although the external validation proves a good calibration, its validation efficiency is limited. Lastly, a larger prospective multi-centre study of patients with PH is needed to determine the exact risks associated with pregnancy, the role of supportive care and late PH treatment, and prognostic factors for each subgroup.

Conclusions

The nomograms created in this study may be used to accurately predict maternal mortality or HF, adverse foetal/neonatal outcomes, and survival in pregnant patients with PH. Additionally, these tools can guide more effective clinical decision-making. Our nomograms and accompanying software can assess individualised risks and anticipate OS more easily in pregnant patients with PH. The online nomogram software was shown to be a useful tool for the management of pregnant patients with PH for primary hospitals or community centres.