论文信息
论文解读
AI 辅助整理- 方法
- 3233例临床数据,SMOTE平衡,比较LR/RF/XGBoost等,SHAP解
- 发现
- LR交叉验证AUC最高0.934,CatBoost综合较均衡,关键特征为胎儿腹围等。
- 机会点
- 可迁移至农业领域构建可解释风险预测模型,如作物病害或畜产品质预测。
论文摘要
开发并内部验证一个可解释的机器学习模型,用于预测汉族单胎头位妊娠女性在妊娠晚期或入院时发生巨大儿(macrosomia)的风险。纳入2024年4月至2025年3月在一家三级医院分娩的3,233名女性的数据(158例巨大儿)。所有候选变量均来源于客观临床数据,包括电子病历、入院测量值和产前超声检查。为避免数据泄漏,数据集首先按8:2分层划分分为训练集和留出测试集。合成少数类过采样技术(Synthetic Minority Over-sampling Technique, SMOTE)仅在训练集和交叉验证训练折中应用,以处理类别不平衡。实施了包含中位数插补、适当特征缩放和SMOTE的完整分析流程。构建并比较了多种模型,包括逻辑回归(logistic regression, LR)、随机森林(random forest, RF)、极端梯度提升(extreme gradient boosting, XGBoost)、CatBoost、k近邻(k-nearest neighbors, KNN)和多层感知机(multi-layer perceptron, MLP)。以训练集上的平均分层交叉验证ROC-AUC作为模型选择的主要标准,并辅以Brier评分、校准曲线和决策曲线分析(decision curve analysis, DCA)来评估模型可靠性和临床净获益。LR在训练集上获得了最高的交叉验证ROC-AUC,在留出测试集上的AUC为0.934(95% CI:0.906–0.957),灵敏度为0.833(95% CI:0.727–0.923),特异度为0.876(95% CI:0.856–0.907),精确率为0.248(95% CI:0.184–0.322),F1分数为0.382(95% CI:0.295–0.458)。在机器学习模型中,CatBoost在AUC、校准和临床可解释性方面表现出相对均衡的性能。尽管XGBoost表现出最高的准确率,但其灵敏度较低,因此不能仅基于平均准确率、精确率和召回率将其选为最佳模型。SHapley加法解释(SHapley Additive exPlanations, SHAP)分析表明,胎儿腹围(abdominal circumference, AC)、宫高、母亲身高、分娩时孕周和入院时母亲AC对预测的贡献最为显著。本研究建立了一个可重复且可解释的巨大儿风险预测流程,适用于妊娠晚期/入院时的决策支持。该模型为高危妊娠的分娩管理和护理提供了补充信息;然
全文
Scientific ReportsARTICLE | Article in Press
Scientific Reports https://doi.org/10.1038/s41598-026-65628-9
Scientific Reports
This Article in Press is shared early to give you faster access to new research. It is citable and carries a permanent DOI.
The final edited version will replace it automatically.
Development and validation of an explainable machine
learning-based risk prediction model for macrosomia
in han Chinese women with singleton cephalic
pregnancies
Jiao Wang · Xianmin Wang · Yanmin Yu · Wei Xiang · Ying Li · XiaoFeng Zhang · Qian Sun ·
Yu He · Jianqun Li · Hongyu Yuan
Received: 6 June 2025 / Accepted: 3 August 2026
© The Author(s) 2026
Abstract
To develop and internally validate an explainable machine learning model to predict macrosomia risk among
Han Chinese women with singleton cephalic pregnancies during late gestation or at admission. Data from 3,233
women who delivered at a tertiary hospital from April 2024 to March 2025 were included (158 macrosomia
cases). All candidate variables were derived from objective clinical data, including electronic medical records,
admission measurements, and prenatal ultrasound examinations. To avoid data leakage, the dataset was initially
partitioned using an 8:2 stratified split into training and held-out test sets. Synthetic Minority Over-sampling
Technique (SMOTE) was applied exclusively within the training set and cross-validation training folds to
address class imbalance. A complete analytical pipeline incorporating median imputation, appropriate feature
scaling, and SMOTE was implemented. Multiple models were constructed and compared, including logistic
regression (LR), random forest (RF), extreme gradient boosting (XGBoost), CatBoost, k-nearest neighbors
(KNN), and multi-layer perceptron (MLP). Mean stratified cross-validation ROC-AUC on the training set
served as the primary criterion for model selection, supplemented by the Brier score, calibration curves, and
decision curve analysis (DCA) to evaluate model reliability and clinical net benefit. LR achieved the highest
cross-validated ROC-AUC on the training set, yielding an AUC of 0.934 (95% CI: 0.906–0.957), sensitivity
of 0.833 (95% CI: 0.727–0.923), specificity of 0.876 (95% CI: 0.856–0.907), precision of 0.248 (95% CI:
0.184–0.322), and F1 score of 0.382 (95% CI: 0.295–0.458) on the held-out test set. Among the five nonlinear
machine learning models, CatBoost exhibited relatively balanced performance regarding AUC, calibration,
and clinical interpretability. Although XGBoost demonstrated the highest accuracy, its sensitivity was low,
and it was thus not selected as the best model based solely on mean accuracy, precision, and recall. SHap -
ley Additive exPlanations (SHAP) analysis indicated that fetal abdominal circumference (AC), fundal height,
maternal height, gestational weeks at delivery, and maternal AC at admission contributed most significantly to
prediction. This study established a reproducible and interpretable macrosomia risk prediction pipeline tailored
for late-pregnancy/admission decision support. The model provides supplementary information for managing
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
delivery and care in high-risk pregnancies; however, its widespread clinical application requires large-scale,
multicenter, and prospective external validation.
Keywords Macrosomia · Machine learning · SMOTE · Explainable artificial intelligence · SHAP ·
Calibration curves · Decision curve analysis
Introduction
Macrosomia is a major obstetric condition strongly associated with adverse maternal and neonatal outcomes 1,2.
Current clinical estimation of fetal weight primarily relies on obstetric examination, fundal height and abdominal
circumference (AC) measurements, and ultrasound biometry based on a limited number of ultrasound param -
eters3. However, these approaches do not adequately integrate multidimensional clinical information, including
maternal body habitus, pre-pregnancy and admission weight, gestational comorbidities, obstetric examination
findings, and ultrasound measurements. Additionally, third-trimester amniotic fluid volume, maternal obesity,
and inter-operator variability may further affect the accuracy of fetal weight estimation4,5.
Machine learning methods can identify potential nonlinear relationships among multiple variables and facili -
tate the development of risk prediction models in settings characterized by class imbalance and high-dimen -
sional clinical data. Previous studies have explored the prediction of macrosomia using Logistic Regression,
Support Vector Machine (SVM), Random Forest (RF), XGBoost, LightGBM, and other algorithms. For example,
Shamshuzzoha and Islam6 developed an early-pregnancy prediction model based on 699 samples and identified
Logistic Regression as the best-performing algorithm. Gu et al.7 compared six algorithms using data from 3,244
pregnant women and reported that ensemble models, including RF, XGBoost, and LightGBM, demonstrated
favorable performance for late-pregnancy prediction. Nevertheless, existing studies differ substantially in target
populations, prediction timing, accessibility of variables, external validation, and model interpretability, high -
lighting the need for further validation in additional regional cohorts.
This study aimed to develop a macrosomia risk assessment tool to support clinical decision-making during late
pregnancy or at hospital admission. Compared with previous studies, the present study specifically focused on
Han Chinese women with singleton cephalic pregnancies. Routinely collected clinical variables were integrated,
including maternal AC at admission, fundal height, BMI, body weight, and sonographic measurements of fetal
AC, head circumference, femoral length, and amniotic fluid depth. Furthermore, a modeling pipeline was imple-
mented to strictly prevent SMOTE-induced data leakage and was supplemented with 95% confidence intervals
(CI), calibration analysis, decision curve analysis (DCA), and SHAP-based interpretation, thereby improving the
scientific rigor, transparency, and reproducibility of model reporting.
Materials and methods
Study design and population
This was a single-center retrospective modeling study. Clinical data were consecutively collected from pregnant
women admitted for delivery at the Department of Obstetrics, Xishui County People’s Hospital, from April 2024
to March 2025. Inclusion criteria comprised: (1) Han Chinese ethnicity, (2) singleton pregnancy, (3) cephalic
presentation, and (4) complete birth weight records. Exclusion criteria included: (1) non-Han ethnicity, (2) non-
cephalic presentation or multiple gestation, (3) missing key outcomes or core predictor variables not resolvable
by the predefined imputation strategy, and (4) incomplete follow-up or unverifiable medical records. Ultimately,
3,233 pregnant women (158 macrosomia cases and 3,075 non-macrosomia cases) were included. All data were
anonymized before analysis.This retrospective study was approved by the Ethics Committee of Xishui County
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
People’s Hospital (Approval No.2026xryls-33). All methods were performed in accordance with the Declaration
of Helsinki and relevant guidelines and regulations. The requirement for informed consent was waived by the
Ethics Committee owing to the retrospective nature of the study.
Predictor variables and intended application scenario
Candidate predictor variables were extracted from inpatient electronic medical records, admission obstetric mea-
surements, and ultrasound examination records. These included maternal age, gravidity, gestational age at deliv-
ery, pre-pregnancy weight, pre-pregnancy BMI (Pre-BMI), admission BMI, admission weight, fundal height,
fetal AC, maternal abdominal circumference (P-AC), fetal head circumference (HC), fetal femoral length (FL),
amniotic fluid depth (AFD), maternal height, and gestational diabetes mellitus (GDM). Because many variables
were collected during late pregnancy or at admission, the model was explicitly designed as a “late pregnancy/
admission-stage macrosomia risk assessment model,” intended to assist clinicians in comprehensively evaluating
macrosomia risk before delivery.
Data preprocessing and data leakage control
To address class imbalance and ensure reproducibility, the modeling pipeline was carefully structured. First, the
dataset was stratified and split 8:2 into training and held-out test sets, ensuring the test set remained entirely iso-
lated before resampling or model tuning. Subsequently, within the training pipeline, an imbalanced-learn pipeline
incorporating median imputation, feature standardization, SMOTE, and classifiers was employed. SMOTE was
applied exclusively within the training set and, during cross-validation, solely to each training fold, excluding
validation folds and the test set. This approach prevented data leakage due to synthetic samples generated prior
to splitting, ensuring test set evaluation accurately reflected genuine model generalization.
Model building, hyperparameter tuning, and model selection rules
Logistic Regression, RF, XGBoost, CatBoost, K-Nearest Neighbors (KNN), and Multi-Layer Perceptron (MLP)
models were compared. Logistic Regression was included as an interpretable baseline model, while the remain -
ing models evaluated the added value of nonlinear machine learning methods. Hyperparameter tuning was con -
ducted via stratified cross-validation and GridSearchCV within the training set, using ROC-AUC as the primary
optimization metric. To avoid post-hoc selection bias, model selection criteria were predefined: models were
first ranked by mean cross-validation ROC-AUC on the training set; if the difference between the two highest
ROC-AUC values was below 0.005, the Brier score on the held-out test set was used as an auxiliary criterion
for calibration. DCA and calibration curves described clinical net benefit and probability reliability but were not
employed post hoc to redefine the best model Table 1.
Model evaluation metrics and statistical analysis
Model performance metrics were reported for both training and held-out test sets, including ROC-AUC, Average
Precision, Accuracy, Balanced Accuracy, Sensitivity (Recall), Specificity, Precision (Positive Predictive Value,
PPV), Negative Predictive Value (NPV), F1 score, Brier score, and confusion matrix counts (TP, FP, TN, FN).
To account for estimation uncertainty, 95% CI for key performance metrics were calculated via the bootstrap
method. ROC curves, Precision-Recall curves, calibration curves, and decision curves were generated as publica-
tion-quality figures. Given the low incidence of macrosomia, accuracy alone was not the sole criterion for model
evaluation; greater emphasis was placed on ROC-AUC, sensitivity, calibration, and clinical net benefit.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
Interpretability analysis
To enhance model transparency, SHAP was applied for global interpretability analysis of tree-based models.
Standardized mean absolute SHAP values were reported. SHAP analyses identified variables that contributed
significantly to model predictions and assessed whether model outputs aligned with clinical knowledge. Impor -
tantly, SHAP values represent statistical associations identified by the model within the current data distribution
and do not imply causality.
Reproducibility settings
All analyses were conducted in Python 3.9 using libraries including pandas, NumPy, scikit-learn, imbalanced-
learn, XGBoost, CatBoost, matplotlib, and SHAP. A consistent random seed (42) was applied throughout. Data
splitting, cross-validation, SMOTE application, hyperparameter tuning, and bootstrap methods were standard -
ized within the analysis pipeline. All models, tables, figures, parameter settings, and reproducibility checklists
were saved in a unified results folder to facilitate replication by reviewers and readers.
Results
Study cohort and baseline characteristics
A total of 3,233 Han Chinese women with singleton cephalic pregnancies were included, of whom 158 (4.9%)
had macrosomia. Baseline characteristics (Table 2) differed significantly between the macrosomia and non-mac-
rosomia groups in maternal age, gravidity, gestational weeks at delivery, pre-pregnancy weight, pre-pregnancy
BMI, BMI at admission, weight at admission, fundal height, fetal AC, P-AC, fetal HC, FL, AFD, and maternal
height. No significant difference was observed in the prevalence of gestational diabetes mellitus, possibly due
to limited case numbers. Given the marked class imbalance, SMOTE was applied as a balancing strategy within
the training set only, following stratified splitting, and restricted to training folds during cross-validation (Fig. 1).
Figure 2 illustrates that no resampling was conducted on the test set.
Model Search Ranges Optimal Parameters
LogisticRegression C: [0.1, 1.0, 3.0]; penalty: L2; solver:
liblinear
{“clf__C”: 1.0}
XGBoost n_estimators: [150, 300]; max_depth:
[2, 3, 4]; learning_rate: [0.03, 0.05, 0.1]
{“clf__learning_rate”: 0.05,
“clf__max_depth”:
3, “clf__n_estimators”: 150}
RandomForest n_estimators: [150, 300]; max_depth:
[4, 6, 8, None]; min_samples_leaf: [1, 3,
5]
{“clf__max_depth”: 6, “clf__
min_samples_leaf”:3, “clf__n_
estimators”: 150}
MLP hidden_layer_sizes: [(32,), (64,), (64,32)];
alpha: [0.0001, 0.001]
{“clf__alpha”: 0.001, “
clf__hidden_layer_sizes”: [32]}
KNN n_neighbors: [5, 7, 9, 11];
weights: [uniform, distance]
{“clf__n_neighbors”: 7,
“clf__weights”:
“distance”}
CatBoost iterations: [150, 300]; depth: [3, 4, 5];
learning_rate: [0.03, 0.05, 0.1]
{“clf__depth”: 4, “clf__iterations”:
150, “clf__learning_rate”: 0.05}
150, “clf__learning_rate”: 0.05}
Table 1 Main models,
hyperparameter search
ranges, and optimal
parameters.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
Model performance
Table 3 reports key performance metrics with 95% CI for each model on the held-out test set. Logistic Regression
achieved the highest AUC and sensitivity, indicating strong overall discriminative performance for the current
dataset and candidate predictors. Among nonlinear models, CatBoost demonstrated relatively high AUC and bal-
anced performance in terms of Brier score and F1 score, making it a strong candidate. Table 4 provides confusion
matrix counts and clinical interpretations of each model’s performance on the held-out test set.
To avoid overinterpretation of single-test-set outcomes, Figs. 3, 4, 5 and 6 depict the performance rankings
of these models, including ROC-AUC, precision-recall (PR) curves, probability calibration, and clinical utility
assessed by DCA.
SHAP interpretability analysis
Given clinicians’ reluctance to adopt prediction models that lack direct interpretability or transparency, SHAP
analysis was employed to quantify each variable’s contribution to model predictions. The CatBoost-based SHAP
analysis indicated that fetal AC was the most influential variable, followed by maternal fundal height at admis -
sion, maternal height, gestational weeks at delivery, maternal AC at admission, and gravidity. These variables are
Fig. 1 Reproducible modeling flowchart.
Variable Non-macrosomia group
(n = 3075)
Macrosomia group
(n = 158)
P-value
AC, median [IQR] 76.00 [65.00, 87.00] 106.50 [97.25, 115.00] < 0.001
Fundal height, median [IQR] 32.00 [30.00, 33.00] 35.00 [33.00, 36.75] < 0.001
P-AC, median [IQR] 100.00 [96.00, 104.00] 106.00 [101.00, 110.00] < 0.001
HC, median [IQR] 51.00 [44.00, 57.00] 61.00 [55.00, 66.00] < 0.001
BMI at admission, median [IQR] 28.37 [26.04, 29.96] 30.48 [28.37, 32.89] < 0.001
Weight at admission, median [IQR] 42.00 [34.00, 49.00] 52.50 [44.00, 59.00] < 0.001
FL, median [IQR] 70.00 [69.00, 72.00] 73.00 [71.00, 74.00] < 0.001
Pre-pregnancy weight, median [IQR] 55.00 [49.00, 61.00] 60.00 [55.00, 70.00] < 0.001
Pre-BMI, median [IQR] 22.58 [20.31, 24.03] 23.35 [21.81, 26.36] < 0.001
Maternal height, median [IQR] 1.57 [1.55, 1.60] 1.59 [1.56, 1.63] < 0.001
AFD, median [IQR] 38.00 [31.00, 46.00] 43.00 [35.25, 51.00] < 0.001
Gravidity, median [IQR] 2.00 [1.00, 4.00] 3.00 [2.00, 4.00] 0.001
Maternal age, median [IQR] 28.00 [25.00, 31.00] 29.00 [26.00, 33.00] 0.001
Gestational weeks, median [IQR] 39.00 [38.00, 40.00] 40.00 [39.00, 41.00] < 0.001
Diabetes, n (%) 173 (5.63) 12 (7.59) 0.299
Table 2 Comparison of fetal
weight estimation factors
between macrosomia and
non-macrosomia groups.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
strongly associated with fetal growth, maternal body habitus, and prenatal assessment, thus demonstrating robust
clinical interpretability. Gestational diabetes mellitus exhibited a low SHAP contribution, possibly due to lim -
ited case numbers or heterogeneous disease management practices. Consequently, model interpretations should
incorporate consideration of sample composition and clinical mechanisms, and SHAP contributions should not
be interpreted as indicators of etiological significance.
Table 3 Performance metrics (with 95% CI) on the held-out test set.
Model AUC (95% CI) Accuracy (95%
CI)
Sensitivity
(95% CI)
Specificity
(95% CI)
Precision (95%
CI)
F1 (95% CI) Brier (95%
CI)
LogisticRegression 0.934
(0.906–0.957)
0.874
(0.853–0.905)
0.833
(0.727–0.923)
0.876
(0.856–0.907)
0.248
(0.184–0.322)
0.382
(0.295–0.458)
0.088
(0.069–0.103)
RandomForest 0.902
(0.869–0.938)
0.916
(0.895–0.941)
0.567
(0.411–0.724)
0.933
(0.914–0.958)
0.293
(0.219-0.400)
0.386
(0.291–0.466)
0.065
(0.050–0.076)
XGBoost 0.890
(0.842–0.932)
0.933
(0.917–0.959)
0.500
(0.316–0.661)
0.954
(0.940–0.976)
0.349
(0.255–0.467)
0.411
(0.279–0.525)
0.050
(0.036–0.060)
CatBoost 0.904
(0.862–0.935)
0.927
(0.913–0.950)
0.600
(0.433–0.731)
0.943
(0.929–0.966)
0.340
(0.263–0.420)
0.434
(0.339–0.522)
0.054
(0.039–0.065)
KNN 0.804
(0.712–0.862)
0.888
(0.870–0.922)
0.533
(0.380–0.664)
0.905
(0.890–0.934)
0.216
(0.137–0.338)
0.308
(0.201–0.431)
0.085
(0.064–0.104)
MLP 0.905
(0.860–0.933)
0.899
(0.876–0.924)
0.667
(0.501–0.768)
0.910
(0.887–0.936)
0.267
(0.215–0.348)
0.381
(0.312–0.442)
0.072
(0.053–0.085)
Model TP FP TN FN Clinical Interpretation
LogisticRegression 25 76 537 5 Highest sensitivity; few missed diagnoses; suitable for risk alerts.
RandomForest 17 41 572 13 High specificity, moderate sensitivity.
XGBoost 15 28 585 15 High accuracy but insufficient sensitivity.
CatBoost 18 35 578 12 Balanced performance in AUC, F1, and calibration.
KNN 16 58 555 14 Lower discrimination and precision.
MLP 20 55 558 10 Moderate performance, limited by sample size.
Table 4 Confusion matrix
counts and clinical interpre-
tation (held-out test set).
Fig. 2 Class distribution before and after SMOTE in the training set.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
Comparison with related studies and positioning of this work
A review of prior machine learning studies on macrosomia prediction revealed significant heterogeneity regard-
ing the timing of prediction and selection of candidate variables. Shamshuzzoha and Islam focused on early
pregnancy prediction, while Gu et al. centered on ultrasound measurements obtained 1–7 days and 8–14 days
before delivery. The intended clinical application of the current model is risk assessment during late pregnancy
or at admission, integrating both admission measurements and ultrasound variables; thus, direct numerical com-
parison with early screening models is inappropriate. The primary contribution of this study lies in developing a
reproducible local modeling framework free of data leakage, reporting CI, calibration, and DCA, and providing
SHAP explanations Table 5 and 6.
Exploratory external sample validation
Due to the small size and selective sampling (10 macrosomia and 10 non-macrosomia cases), these results are
not considered primary evidence for evaluating model performance or selecting the optimal model. This part only
preliminarily demonstrates the model’s feasibility and potential generalizability to independent cases. Future
studies should adopt multicenter, consecutively enrolled prospective cohorts for rigorous external validation and
report calibration, DCA, and stratified performance.
Fig. 3 ROC curves (with 95% CI) on the held-out test set.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
Discussion
Macrosomia, commonly defined as birth weight ≥ 4,000 g (with some scholars adopting a higher threshold of
≥ 4,500 g) or above the 90th percentile for gestational age, represents an increasing global public health con -
cern1,5. An 11-year study based on Chinese data reported an incidence increase from 6% to 7.8% 8. Macrosomia
significantly increases the risk of adverse maternal and neonatal outcomes, including shoulder dystocia, birth
canal trauma, postpartum hemorrhage, neonatal asphyxia, and metabolic disorders9–14. Therefore, prenatal iden-
tification of high-risk pregnancies is critical for optimizing delivery management and improving maternal and
neonatal outcomes.
Current research on prenatal macrosomia prediction features diverse methodologies with varying quality.
Studies have progressed from models based on single clinical indicators or ultrasound parameters toward multi-
variate prediction approaches15. For example, numerous studies have attempted to enhance predictive efficacy by
integrating maternal characteristics (e.g., age, pre-pregnancy BMI) with fetal ultrasound biometric data (e.g., AC,
head circumference) or third-trimester MRI findings 10,15–17. Additionally, the introduction of machine learning
(ML) and ensemble learning methods represents an advanced research direction and emerging trend. Multiple
international studies have combined statistical models and empirical formulas through ensemble learning tech -
niques, effectively improving predictive accuracy7,18. Concurrently, exploring early predictive biomarkers (e.g.,
cord blood leptin, exosomes, maternal HbA1c) remains a global research focus 19,20. Consequently, predictive
methods for macrosomia are shifting from traditional ultrasound toward multimodal integration. ML models
(e.g., RF, XGBoost) incorporating clinical factors (e.g., pre-pregnancy obesity, gestational diabetes mellitus, lipid
levels) have demonstrated superior predictive performance5,21.
Fig. 4 Precision-Recall curves (with 95% CI) on the held-out test set.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
However, significant challenges persist. Primary issues include considerable sample bias and insufficient exter-
nal validation in existing research 15. Furthermore, regarding the translation of predictive outcomes into clinical
decisions (e.g., cesarean section), some researchers caution against clinical decisions based on currently impre -
cise predictions, as this might introduce unnecessary risks 14,22,23. Although several ML algorithms for macro -
somia risk prediction have been reported, the present study addresses key gaps in existing research and offers
distinct methodological advantages.
This study developed and compared multiple models for macrosomia risk prediction during late pregnancy
or at admission using data from 3,233 Han Chinese women with singleton cephalic pregnancies. The main find-
ings are as follows: First, after strictly controlling the application of SMOTE, model performance more realisti -
cally reflected the inherent difficulty of clinical predictions involving low-incidence outcomes. Second, accuracy
should not be the sole criterion for model selection, especially when macrosomia incidence is low, since high
accuracy may obscure low sensitivity. Third, Logistic Regression exhibited good discriminative ability and sen-
sitivity in this dataset, indicating that interpretable linear models remain valuable in scenarios involving limited
structured clinical variables and smaller sample sizes. Fourth, tree-based models, such as CatBoost, provided
intuitive explanations of variable contributions through SHAP analysis, assisting clinicians in understanding
model outputs. Crucially, the 15 factors identified as independently associated with macrosomia risk are simple,
routinely collected clinical variables, consistent with several classic domestic and international studies 13,22. The
study also suggests that model outputs may differ from traditional clinical expectations; for instance, gestational
diabetes mellitus, although an established risk factor for macrosomia, had a relatively minor SHAP contribution.
Therefore, interpretations of machine learning model outputs should be understood as statistical associations
under the specific conditions of the current data and model, not as causal inferences.
Fig. 5 Calibration curves (bootstrap 95% CI).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
Fig. 7 SHAP feature contribution bar plot (standardized mean absolute SHAP values) for the CatBoost model.
Fig. 6 DCA illustrating net benefit across threshold probabilities.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
Several limitations exist. First, this was a single-center retrospective study with a regionally restricted sample;
external validation is necessary before extrapolating the model to other ethnicities, regions, or healthcare institu-
tions. Second, only 158 macrosomia cases were included; although SMOTE mitigated class imbalance, it cannot
compensate for the limited number of true positive cases. Third, the 20-case external validation sample was too
small, serving only as exploratory validation and not supporting strong conclusions regarding generalizability.
Fourth, several important variables, such as glycemic control status, paternal height, ultrasound timing intervals,
and inter-operator variability, were not fully incorporated, potentially affecting model performance. Fifth, this
study assessed only statistical predictive performance without conducting a prospective clinical impact evalua -
tion; therefore, it cannot demonstrate whether applying the model directly improves delivery outcomes.
Conclusion
This study developed and validated a machine learning pipeline for assessing macrosomia risk among Han Chi -
nese women with singleton cephalic pregnancies during late pregnancy or at admission. By restricting SMOTE
application to the training set and cross-validation folds, supplementing comprehensive performance metrics
with 95% CI, prespecifying model selection criteria, performing calibration curve and decision curve analyses,
and utilizing SHAP to explain key variables, this study enhanced the scientific rigor, transparency, and reproduc-
ibility of the modeling approach. The current findings support the utility of this model as an auxiliary tool for
Table 6 Exploratory external validation results on 20 cases (not used as primary model selection evidence).
Category RF XGBoost CatBoost KNN MLP Interpretation
Non-macrosomia 100% 100% 100% 100% 100% Exploratory results only; not primary conclusions
Macrosomia 60% 70% 80% 40% 60% Only 10 macrosomia cases; wide CI
Average 80% 85% 90% 70% 80% Validation needed in large external cohorts
Study Sample size/population Prediction
timing
Algorithms Reported key
metrics
Differences from
this study
Shamshuz-
zoha and
Islam, 2023
699 cases; clinical data
during pregnancy
Early
prediction
(aver-
age 7–10
weeks)
Logistic
Regression,
SVM, RF
Logistic
Regression
accu-
racy ~ 0.91
Early pregnancy
model; smaller
sample size; lacks
validation in local
Han singleton
cephalic admis-
sion scenario
Gu et al.,
2024
3244 cases; pregnant
women from southern
Chinese hospital
Ultrasound
records 1–7
and 8–14
days before
delivery
LR, KNN,
SVM, RF,
XGBoost,
LightGBM,
ensemble
model
RF Recall
0.8300;
XGBoost
AUC 0.8193;
ensemble
superior
to single
models and
Hadlock
formula
Emphasizes ultra-
sound prediction
near delivery; this
study integrates
both admission
measurements
and maternal
factors
Our study 3233 Han singleton
cephalic pregnancies; 158
macrosomia cases
Late
pregnancy/
admission
stage
LR, RF,
XGBoost, Cat-
Boost, KNN,
MLP
Main model
AUC 0.934
(95% CI
0.906–
0.957), sen-
sitivity 0.833
(95% CI
0.727–0.923)
No data leak-
age SMOTE
pipeline; reports
CI, calibration,
DCA, and SHAP;
requires further
multicenter exter-
nal validation
Table 5 Comparison of
performance metrics from
related studies and position-
ing of this study.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
pre-delivery macrosomia risk assessment, although large-scale, multicenter, prospective external validation is
required prior to formal clinical implementation.
Acknowledgements We sincerely thank He Xi An, a master’s student in Artificial Intelligence at Nanjing Agricultural Uni-
versity, for his valuable support and guidance in machine learning methodology assistance during this study.
Author contributions Jiao Wang: Contributed to data collection, preprocessing, and assisted in drafting the manuscript.
Xianmin Wang: Participated in the experimental design and supervised part of the machine learning model implementation.
Yanmin Yu: Responsible for statistical analysis and result interpretation.Wei Xiang: Provided clinical insight, participated in
feature selection, and helped interpret findings from a medical perspective.Ying Li: Involved in literature review and assisted
with model performance evaluation.Xiaofeng Zhang: Contributed to software development and model validation.Qian Sun:
Assisted with data visualization and result presentation.Yu He: Participated in the revision of the manuscript and provided
technical support for reproducibility.Jianqun Li: Helped with proofreading and ensured data integrity and consistency.Hon-
gyu Yuan (corresponding author): Conceived and supervised the entire study, provided funding support, coordinated team
collaboration, and finalized the manuscript.
Data availability The datasets generated and/or analyzed during the current study are not publicly available due to insti -
tutional privacy and ethical policies, but are available from the corresponding author on reasonable request.For data access
inquiries, please contact Hongyu Yuan at [Liuyang711822@163.com](mailto: Liuyang711822@163.com) .
Declarations
Competing interests The authors declare no competing interests.
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 Interna-
tional License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as
long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence,
and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material
derived from this article or parts of it. The images or other third party material in this article are included in the article’s Cre-
ative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s
Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you
will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit h t t p : / / c r e a t i v e c o m m o
n s . o r g / l i c e n s e s / b y - n c - n d / 4 . 0 / .
References
- Delpapa, E. H. & Mueller-Heubach, E. Pregnancy outcome following ultrasound diagnosis of macrosomia. Obstet.
Gynecol. 78, 340–343 (1991). - Beta, J. et al. Maternal and neonatal complications of fetal macrosomia: systematic review and meta-analysis. Ultrasound
Obstet. Gynecol. 54, 308–318. https://doi.org/10.1002/uog.20279 (2019). - Hadlock, F. P., Harrist, R. B. & Martinez-Poyer, J. In utero analysis of fetal growth: a sonographic weight standard.
Radiology 181, 129–133. https://doi.org/10.1148/radiology.181.1.1887021 (1991). - Ju, H., Chadha, Y ., Donovan, T. & O’Rourke, P. Fetal macrosomia and pregnancy outcomes. Aust N Z. J. Obstet. Gynaecol.
49, 504–509. https://doi.org/10.1111/j.1479-828X.2009.01052.x (2009). - Chauhan, S. P. et al. Intrapartum detection of a macrosomic fetus: clinical versus 8 sonographic models. Aust N Z. J.
Obstet. Gynaecol. 35, 266–270. https://doi.org/10.1111/j.1479-828x.1995.tb01978.x (1995). - Shamshuzzoha, M. & Islam, M. M. Early Prediction Model of Macrosomia Using Machine Learning for Clinical Decision
Support. Diagnostics (Basel). 13. https://doi.org/10.3390/diagnostics13172754 (2023). - Gu, X. et al. Machine learning approach for the prediction of macrosomia. Vis. Comput. Ind. Biomed. Art. 7 h t t p s : / / d o i . o
r g / 1 0 . 1 1 8 6 / s 4 2 4 9 2 - 0 2 4 - 0 0 1 7 2 - 9 (2024). - Wang, D. et al. Risk factors and outcomes of macrosomia in China: a multicentric survey based on birth data. J. Matern
Fetal Neonatal Med. 30, 623–627. https://doi.org/10.1080/14767058.2016.1252746 (2017). - Oral, E. et al. Perinatal and maternal outcomes of fetal macrosomia. Eur. J. Obstet. Gynecol. Reprod. Biol. 99, 167–171.
https://doi.org/10.1016/s0301-2115(01)00416-x (2001).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-65628-9
10. Kang, L., Wu, Q. Q., Sun, L. J., Gao, F. Y . & Wang, J. J. Predicting fetal weight by three-dimensional limb volume
ultrasound (A V ol/TV ol) and abdominal circumference. Chin. Med. J. (Engl). 134, 1070–1078. h t t p s : / / d o i . o r g / 1 0 . 1 0 9 7 / c
m 9 . 0 0 0 0 0 0 0 0 0 0 0 0 1 4 1 3 (2021).
11. Yuan, Y ., Li, Y ., Hu, L., Wen, J. & Exosomal RNA Expression Profiles and Their Prediction Performance in Patients With
Gestational Diabetes Mellitus and Macrosomia. Front. Endocrinol. (Lausanne). 13, 864971. h t t p s : / / d o i . o r g / 1 0 . 3 3 8 9 / f e n
d o . 2 0 2 2 . 8 6 4 9 7 1 (2022).
12. Van Lieshout, R. J., Savoy, C. D., Ferro, M. A., Krzeczkowski, J. E. & Colman, I. Macrosomia and psychiatric risk in
adolescence. Eur. Child. Adolesc. Psychiatry. 29, 1537–1545. https://doi.org/10.1007/s00787-019-01466-7 (2020).
13. Badr, D. A. et al. Reducing macrosomia-related birth complications in primigravid women: ultrasound- and magnetic
resonance imaging-based models. Am. J. Obstet. Gynecol. 230 https://doi.org/10.1016/j.ajog.2023.10.011 (2024). 5 5 7 . e
5 5 1 - 5 5 7 . e 5 5 8 .
14. Moraitis, A. A. et al. Universal third-trimester ultrasonic screening using fetal macrosomia in the prediction of adverse
perinatal outcome: A systematic review and meta-analysis of diagnostic test accuracy. PLoS Med. 17, e1003190. h t t p s : / /
d o i . o r g / 1 0 . 1 3 7 1 / j o u r n a l . p m e d . 1 0 0 3 1 9 0 (2020).
15. Ewington, L., Black, N., Leeson, C., Wattar, A., Quenby, S. & B. H. & Multivariable prediction models for fetal
macrosomia and large for gestational age: A systematic review. Bjog 131, 1591–1602. h t t p s : / / d o i . o r g / 1 0 . 1 1 1 1 / 1 4 7 1 - 0 5 2
8 . 1 7 8 0 2 (2024).
16. Melamed, N. et al. Prediction of fetal macrosomia: effect of sonographic fetal weight-estimation model and threshold
used. Ultrasound Obstet. Gynecol. 38, 74–81. https://doi.org/10.1002/uog.8930 (2011).
17. Mazzone, E., Kadji, C., Cannie, M. M., Badr, D. A. & Jani, J. C. Prediction of large-for-gestational age at 36 weeks’
gestation: two-dimensional ultrasound vs three-dimensional ultrasound vs magnetic resonance imaging. Ultrasound
Obstet. Gynecol. 63, 489–496. https://doi.org/10.1002/uog.27485 (2024).
18. Ye, S. et al. Ensemble Learning to Improve the Prediction of Fetal Macrosomia and Large-for-Gestational Age. J. Clin.
Med. 9 https://doi.org/10.3390/jcm9020380 (2020).
19. Légaré, C. et al. First Trimester Plasma MicroRNA Levels Predict Risk of Developing Gestational Diabetes Mellitus.
Front. Endocrinol. (Lausanne). 13, 928508. https://doi.org/10.3389/fendo.2022.928508 (2022).
20. Frankevich, N. A. et al. Amino Acid Profile Alterations in the Mother-Fetus System in Gestational Diabetes Mellitus and
Macrosomia. Int. J. Mol. Sci. 26 https://doi.org/10.3390/ijms26178351 (2025).
21. Wang, Y . et al. Development and validation of a new predictive model for macrosomia at late-term pregnancy: A
prospective study. Front. Endocrinol. (Lausanne). 13, 1019234. https://doi.org/10.3389/fendo.2022.1019234 (2022).
22. Sandmire, H. F. Whither ultrasonic prediction of fetal macrosomia? Obstet. Gynecol. 82, 860–862 (1993).
23. Mou, S. S. et al. Association between HbA1c Levels and Fetal Macrosomia and Large for Gestational Age Babies in
Women with Gestational Diabetes Mellitus: A Systematic Review and Meta-Analysis of 17,711 Women. J. Clin. Med. 12
https://doi.org/10.3390/jcm12113852 (2023).
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional
affiliations.
Authors and Affiliations
Jiao Wang1 · Xianmin Wang1 · Yanmin Yu1 · Wei Xiang1 · Ying Li1 · XiaoFeng Zhang1 ·
Qian Sun1 · Yu He1 · Jianqun Li1 · Hongyu Yuan1
Hongyu Yuan
liuyang711822@163.com
1 Xishui County People ’s Hospital of Guizhou Province, Guizhou Provincial People’s Hospital, Guiyang, China
论文原文与出版信息
Scientific Reports