LYU Dandan, LIU Ning, ZHU Xiu, BAI Shuangshuang, Hao Junying, LI Sen
ObjectiveTo construct and validate machine learning-based prediction models for the risk of excessive gestational weight gain(EGWG),and to compare the predictive performance of different models, and select the optimal one.MethodsUsing a convenience sampling method,a total of 623 puerpera who delivered at term and received prenatal check⁃ups at a tertiary grade A hospital in Beijing from December 2024 to June 2025 were selected as the study subjects.Univariate and multivariate Logistic regression were used to screen predictive factors.Prediction models were constructed by using six machine learning algorithms:Logistic regression,support vector machine,gradient boosting machine,neural network,extreme gradient boosting,and categorical boosting.Model performance was evaluated by using metrics,such as the area under the receiver operating characteristic curve(AUC),F1 score,accuracy,sensitivity,specificity,precision,and Brier Score to determine the optimal model,and a web calculator was developed.The SHapley additive explanations(SHAP) method was employed to interpret the contribution of each variable to the outcome in the best model.ResultsAmong 623 puerpera,198 (31.8%) cases experienced excessive gestational weight gain. Multivariate analysis results showed that pre⁃pregnancy body mass index,sedentary time during pregnancy,gestational diabetes mellitus,advanced maternal age,depressive symptoms during pregnancy,insufficient physical activity during pregnancy,and primiparity were risk factors for excessive gestational weight gain.Among the six machine learning models,the gradient boosting machine model demonstrated the best predictive performance(training set: AUC=0.836,F1=0.669;test set:AUC=0.756,F1=0.609).Calculation of SHAP values for the gradient boosting machine model revealed that pre⁃pregnancy body mass index,sedentary time during pregnancy,and gestational diabetes mellitus were the three key feature variables for predicting excessive gestational weight gain.ConclusionsThis study constructed a machine learning algorithm⁃based risk prediction model and web calculator for excessive gestational weight gain,providing an effective tool for early clinical identification and prevention.This contributes to the implementation of targeted clinical interventions and improves the effectiveness of gestational weight management.