Building a machine learning-based risk prediction model for second-trimester miscarriage.

IF 2.8 2区 医学 Q1 OBSTETRICS & GYNECOLOGY
Sangsang Qi, Shi Zheng, Mengdan Lu, Aner Chen, Yanbo Chen, Xianhu Fu
{"title":"Building a machine learning-based risk prediction model for second-trimester miscarriage.","authors":"Sangsang Qi, Shi Zheng, Mengdan Lu, Aner Chen, Yanbo Chen, Xianhu Fu","doi":"10.1186/s12884-024-06942-w","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Second-trimester miscarriage is a common adverse pregnancy outcome that imposes substantial economic and psychological pressures on both the physical and mental well-being of patients and their families. Currently, there is a scarcity of research on predictive models for the risk of second-trimester miscarriage.</p><p><strong>Methods: </strong>Clinical data were retrospectively collected from patients who were in the second trimester of pregnancy (between 14+0 and 27+6 weeks gestation), whose main diagnosis was \"threatened abortion\" and who were hospitalized at the Women and Children's Hospital of Ningbo University from January 2020 to October 2023. Following preliminary data processing, the patient cohort was randomly stratified into a training cohort and a validation cohort at proportions of 70% and 30%, respectively. The Boruta algorithm and multifactor analysis were used to refine feature factors and determine the optimal features linked to second-trimester miscarriages. The imbalanced dataset from the training cohort was rectified by applying the SMOTE oversampling approach. Seven machine-learning models were built and subjected to a comprehensive analysis to validate and evaluate their predictive capabilities. Through this rigorous assessment, the optimal model was selected. Shapley additive explanations (SHAP) were generated to provide insights into the model's predictions, and a visual representation of the predictive model was built.</p><p><strong>Results: </strong>A total of 2006 patients were included in the study; 395 (19.69%) of them had second-trimester miscarriages. XGBoost was shown to be the optimal model after a comparison of seven different models utilizing metrics such as accuracy, precision, recall, the F1 score, precision-recall average precision, the receiver operating characteristic-area under the curve, decision curve analysis, and the calibration curve. The most significant feature was cervical length, and the top ten features of second-trimester miscarriage were found using the SHAP technique based on relevance rankings.</p><p><strong>Conclusion: </strong>The risk of a second-trimester miscarriage can be accurately predicted by the visual risk prediction model, which is based on the machine learning mentioned above.</p>","PeriodicalId":9033,"journal":{"name":"BMC Pregnancy and Childbirth","volume":"24 1","pages":"738"},"PeriodicalIF":2.8000,"publicationDate":"2024-11-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11550545/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"BMC Pregnancy and Childbirth","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1186/s12884-024-06942-w","RegionNum":2,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"OBSTETRICS & GYNECOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Second-trimester miscarriage is a common adverse pregnancy outcome that imposes substantial economic and psychological pressures on both the physical and mental well-being of patients and their families. Currently, there is a scarcity of research on predictive models for the risk of second-trimester miscarriage.

Methods: Clinical data were retrospectively collected from patients who were in the second trimester of pregnancy (between 14+0 and 27+6 weeks gestation), whose main diagnosis was "threatened abortion" and who were hospitalized at the Women and Children's Hospital of Ningbo University from January 2020 to October 2023. Following preliminary data processing, the patient cohort was randomly stratified into a training cohort and a validation cohort at proportions of 70% and 30%, respectively. The Boruta algorithm and multifactor analysis were used to refine feature factors and determine the optimal features linked to second-trimester miscarriages. The imbalanced dataset from the training cohort was rectified by applying the SMOTE oversampling approach. Seven machine-learning models were built and subjected to a comprehensive analysis to validate and evaluate their predictive capabilities. Through this rigorous assessment, the optimal model was selected. Shapley additive explanations (SHAP) were generated to provide insights into the model's predictions, and a visual representation of the predictive model was built.

Results: A total of 2006 patients were included in the study; 395 (19.69%) of them had second-trimester miscarriages. XGBoost was shown to be the optimal model after a comparison of seven different models utilizing metrics such as accuracy, precision, recall, the F1 score, precision-recall average precision, the receiver operating characteristic-area under the curve, decision curve analysis, and the calibration curve. The most significant feature was cervical length, and the top ten features of second-trimester miscarriage were found using the SHAP technique based on relevance rankings.

Conclusion: The risk of a second-trimester miscarriage can be accurately predicted by the visual risk prediction model, which is based on the machine learning mentioned above.

建立基于机器学习的二胎流产风险预测模型。
背景:二胎流产是一种常见的不良妊娠结局,对患者及其家庭的身心健康造成了巨大的经济和心理压力。目前,有关第二胎流产风险预测模型的研究还很少:回顾性收集2020年1月至2023年10月在宁波大学附属妇女儿童医院住院的妊娠后三个月(孕14+0周至27+6周)、主要诊断为 "威胁流产 "的患者的临床数据。经过初步数据处理后,患者队列被随机分层为训练队列和验证队列,比例分别为 70% 和 30%。采用 Boruta 算法和多因素分析来完善特征因子,并确定与二胎流产相关的最佳特征。训练队列中的不平衡数据集通过应用 SMOTE 过度采样方法得到纠正。建立了七个机器学习模型,并对其进行了全面分析,以验证和评估其预测能力。通过这种严格的评估,选出了最佳模型。生成了夏普利加法解释(SHAP),以提供对模型预测的洞察力,并建立了预测模型的可视化表示:研究共纳入 2006 名患者,其中 395 人(19.69%)为二胎流产。在利用准确率、精确度、召回率、F1 分数、精确度-召回率平均精确度、接收者操作特征-曲线下面积、决策曲线分析和校准曲线等指标对七个不同模型进行比较后,XGBoost 被证明是最佳模型。最重要的特征是宫颈长度,根据相关性排名使用 SHAP 技术找到了第二胎流产的十大特征:结论:基于上述机器学习的可视化风险预测模型可准确预测二胎流产的风险。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
BMC Pregnancy and Childbirth
BMC Pregnancy and Childbirth OBSTETRICS & GYNECOLOGY-
CiteScore
4.90
自引率
6.50%
发文量
845
审稿时长
3-8 weeks
期刊介绍: BMC Pregnancy & Childbirth is an open access, peer-reviewed journal that considers articles on all aspects of pregnancy and childbirth. The journal welcomes submissions on the biomedical aspects of pregnancy, breastfeeding, labor, maternal health, maternity care, trends and sociological aspects of pregnancy and childbirth.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信