Development of machine learning models for predicting early pregnancy outcomes based on β-hCG, progesterone, and estradiol

OBJECTIVE: This study aims to develop a machine learning model for predicting early pregnancy outcomes by combining baseline levels and dynamic changes of β-human chorionic gonadotropin (β-hCG), progesterone (P), and estradiol (E2). METHODS: This retrospective study screened out 421 patients treated at the Lanzhou University Second Hospital between March 2023 and August 2024. Feature selection was performed using Least Absolute Shrinkage and Selection Operator (LASSO) and Random Forest Recursive Feature Elimination (RF-RFE). Subsequently, we constructed a traditional logistic regression model and five machine learning models: Random Forest (RF), eXtreme Gradient Boosting (XGBoost), k-Nearest Neighbors (KNN), Multilayer Perceptron (MLP) neural network, and Support Vector Machine (SVM). Internal validity was assessed through 5-fold cross-validation. Model performance was measured by the area under the Receiver Operating Characteristic curve (AUC), accuracy, precision, sensitivity, and specificity. RESULTS: Among the 421 enrolled patients, 263 had ongoing pregnancies while 158 experienced early pregnancy loss (EPL). LR, RF, XGBoost, KNN, MLP, and SVM achieved AUCs of 0.750, 0.784, 0.750, 0.706, 0.755, and 0.749, respectively, with all accuracy and precision metrics exceeding 0.60. Notably, the RF model yielded optimal performance for EPL prediction, attaining the highest AUC (0.784), accuracy (0.729), and precision (0.724). CONCLUSION: Integrating dynamic changes in β-hCG, P, and E2 enables effective prediction of early pregnancy outcomes. The RF model exhibited optimal performance, highlighting its potential for clinical implementation as a risk stratification tool based on serial hormone monitoring.

Authors

Institutions

Publication Details

Journal
PLoS ONE
Published
2026-04-27
DOI
https://doi.org/10.1371/journal.pone.0348114
Primary Topic
Ectopic Pregnancy Diagnosis and Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Development of machine learning models for predicting early pregnancy outcomes based on β-hCG, progesterone, and estradiol

L Chen, Wang Fang, Fangxiang Mu, Kexin Wang
PLoS ONE
Ectopic Pregnancy Diagnosis and Management
article

Development of machine learning models for predicting early pregnancy outcomes based on β-hCG, progesterone, and estradiol

L Chen, Wang Fang, Fangxiang Mu, Kexin Wang
article en

Abstract

OBJECTIVE: This study aims to develop a machine learning model for predicting early pregnancy outcomes by combining baseline levels and dynamic changes of β-human chorionic gonadotropin (β-hCG), progesterone (P), and estradiol (E2). METHODS: This retrospective study screened out 421 patients treated at the Lanzhou University Second Hospital between March 2023 and August 2024. Feature selection was performed using Least Absolute Shrinkage and Selection Operator (LASSO) and Random Forest Recursive Feature Elimination (RF-RFE). Subsequently, we constructed a traditional logistic regression model and five machine learning models: Random Forest (RF), eXtreme Gradient Boosting (XGBoost), k-Nearest Neighbors (KNN), Multilayer Perceptron (MLP) neural network, and Support Vector Machine (SVM). Internal validity was assessed through 5-fold cross-validation. Model performance was measured by the area under the Receiver Operating Characteristic curve (AUC), accuracy, precision, sensitivity, and specificity. RESULTS: Among the 421 enrolled patients, 263 had ongoing pregnancies while 158 experienced early pregnancy loss (EPL). LR, RF, XGBoost, KNN, MLP, and SVM achieved AUCs of 0.750, 0.784, 0.750, 0.706, 0.755, and 0.749, respectively, with all accuracy and precision metrics exceeding 0.60. Notably, the RF model yielded optimal performance for EPL prediction, attaining the highest AUC (0.784), accuracy (0.729), and precision (0.724). CONCLUSION: Integrating dynamic changes in β-hCG, P, and E2 enables effective prediction of early pregnancy outcomes. The RF model exhibited optimal performance, highlighting its potential for clinical implementation as a risk stratification tool based on serial hormone monitoring.

PLoS ONEVol. 21(4)
Shanxi Province Hospital of Traditional Chinese Medicine (CN), Lanzhou University Second Hospital (CN), Lanzhou University (CN)
Good health and well-being
Openalex Percentile: Top 10%
Ectopic Pregnancy Diagnosis and Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.