Iranian Journal of Neonatology

Iranian Journal of Neonatology

Machine Learning Prediction of First-Trimester Miscarriage Using Routine Screening Data :Exploratory Analysis of Adverse Neonatal Outcomes in an Iranian Cohort

Document Type : Original Article

Authors
1 Department of Biology, Payame Noor University, Tehran, Iran
2 Blood Borne Infection Research Center, Academic Center For Education Culture and Research (ACECR), Razavi Khorasan, Mashhad, Iran
Abstract
Background: Early pregnancy loss is a common pregnancy complication with important implications for maternal and fetal health. Accurate first-trimester prediction remains challenging due to chromosomal, maternal, fetal, and environmental factors. Machine learning (ML) models integrating routinely collected clinical and biochemical data may support risk stratification and individualized risk assessment. This study aimed to develop and evaluate ML models integrating first-trimester clinical, biochemical, and obstetric parameters for predicting early miscarriage in an Iranian population and to explore selected factors associated with adverse neonatal outcomes within the index pregnancy.
Methods: This retrospective study analyzed 2,500 first-trimester pregnancies (64 miscarriages, 2,436 continuing pregnancies). Features included maternal/paternal age, weight, pregnancy-associated plasma protein-A (PAPP-A), free β-human chorionic gonadotropin (free β-hCG), nuchal translucency multiples of the median (NT MoM), and obstetric history. Logistic regression (unregularized and Lasso/Ridge), support vector machine (SVM), XGBoost, random forest, gradient boosting, AdaBoost, and neural networks were compared using Monte Carlo simulation with 100 iterations and balanced subsampling (64 positive and 130 negative samples per iteration). Performance was assessed via accuracy, ROC-AUC, and PR-AUC. An additional logistic regression analysis was performed to examine selected maternal and first-trimester factors associated with a composite adverse neonatal outcome among pregnancies that continued beyond the first trimester.
Results: The Support Vector Machine (SVM) achieved a ROC-AUC of 0.71, with an accuracy of 0.62 and an F1-score of 0.56. Maternal age and maternal weight ranked as the most important predictors, followed by first-trimester Down syndrome positivity. Based on adjusted logistic regression, history of miscarriage (OR = 2.85, 95% CI: 1.20–6.30, P = 0.01), increased NT (OR = 5.52, 95% CI: 1.73–17.60, P < 0.001), and positive first-trimester Down syndrome screening (OR = 5.71, 95% CI: 1.30–25.05, P = 0.02) remained significantly associated with miscarriage. In the exploratory analysis of the composite adverse neonatal outcome, gestational hypertension (OR = 2.64, 95% CI: 1.53–4.41, P < 0.001) and COVID-19 during pregnancy (OR = 1.39, 95% CI: 1.09–1.78, P = 0.009) were significantly associated with the outcome, whereas the other evaluated predictors were not statistically significant.
Conclusion: Machine learning models using routine first-trimester data showed only modest predictive performance for miscarriage in this setting. The limited number of miscarriage events and the resulting low events-per-variable ratio constrain statistical precision, model stability, and generalizability. The exploratory analysis of the composite adverse neonatal outcome identified associations with gestational hypertension and COVID-19 during pregnancy; these findings should be considered hypothesis-generating rather than confirmatory. Larger multicenter prospective studies with longer follow-up are needed before clinical implementation.
Keywords

1.     Brezina PR, Kutteh WH. Classic and cutting-edge strategies for the management of early pregnancy loss. Obstet Gynecol Clin North Am. 2014;41(1):1-18.
2.     Genovese HG, McQueen DB. The prevalence of sporadic and recurrent pregnancy loss. Fertil Steril. 2023;120(5):934–936.
3.     Agenor A, Bhattacharya S. Infertility and miscarriage: Common pathways in manifestation and management. Womens Health (Lond). 2015;11(4):527-541.
4.     Marqui AB. Chromosomal abnormalities in recurrent miscarriages by conventional karyotyping analysis. Rev Bras Saúde Mater Infant. 2018;18(2):265-276.
5.     Chen Y, Chu B, Chen Y. The effect of recurrent pregnancy loss on obstetric and neonatal outcomes: a systematic review and meta-analysis. J Matern Fetal Neonatal Med. 2025;38(1):2505755.
6.     Rafinezhad R, Loghmani T, Khodashenas E, Farhat AS, Mohamadzadeh A, Boskabadi H, et al. Follow-up of neonates with hypoxic ischemic encephalopathy in first year of life. Iran J Neonatol. 2025;16(4):12-20.
7.     Pornwattanakrilert W, Sekararithi R, Wanapirak C, Sirichotiyakul S, Tongprasert F, Srisupundit K, et al. First-trimester serum biomarker screening for fetal Down syndrome as a predictor of preterm delivery: A population-based study. J Matern Fetal Neonatal Med. 2020;33(10):1717-1724.
8.     Arshadi M, Lotfi MH, Madadizadeh F, Javaheri A, Soodejani MT. Non-genetic risk factors of miscarriage: A comprehensive umbrella review of systematic review and meta-analysis. Reprod Health. 2025;22(1):236.
9.     Kartchner LC, Dunn A, Taylor KH, Ali MM, Manning NA, Dajani NK, et al. Lifestyle modifications prior to pregnancy and their impact on maternal and perinatal outcomes: A review. J Clin Med. 2025;14(18):6582.
10.  Toth B, Würfel W, Bohlmann M, Gillessen-Kaesbach G, Nawroth F, Rogenhofer N, et al. Recurrent miscarriage: Diagnostic and therapeutic procedures. Guideline of the DGGG (S1-Level, AWMF Registry No. 015/050, December 2013). Geburtshilfe und Frauenheilkunde. 2015;75(11):1117-1129.
11.  Toth B, Würfel W, Bohlmann M, Zschocke J, Rudnik-Schöneborn S, Nawroth F, et al. Recurrent miscarriage: Diagnostic and therapeutic procedures. Guideline of the DGGG, OEGGG and SGGG (S2k-Level, AWMF Registry Number 015/050). Geburtshilfe und Frauenheilkunde. 2018;78(04):364-381.
12.  Bourne T, Bottomley C. When is a pregnancy nonviable and what criteria should be used to define miscarriage? Fertil Steril. 2012;98(5):1091-1096.
13.  Cunningham FG, Leveno KJ, Bloom SL, Dashe JS, Hoffman BL, Casey BM, et al. Obstetrícia de Williams-25. McGraw Hill Brasil; 2021.
14.  Preisler J, Kopeika J, Ismail L, Vathanan V, Farren J, Abdallah Y, et al. Defining safe criteria to diagnose miscarriage: prospective observational multicentre study. Bmj. 2015;351:h4579. 
15.  Christiansen OB. Research methodology in recurrent pregnancy loss. Obstet Gynecol Clin North Am. 2014;41(1):19-39. 
16.  Pillai RN, Konje JC, Richardson M, Tincello DG, Potdar N. Prediction of miscarriage in women with viable intrauterine pregnancy-A systematic review and diagnostic accuracy meta-analysis. Eur J Obstet Gynecol Reprod Biol. 2018;220:122-131. 
17.  Liu L, Zang Y, Zheng H, Li S, Song Y, Feng X, et al. An AI method to predict pregnancy loss by extracting biological indicators from embryo ultrasound recordings in early pregnancy. Sci Rep. 2025;15(1):25946.
18.  Amitai T, Kan-Tor Y, Or Y, Shoham Z, Shofaro Y, Richter D, et al. Embryo classification beyond pregnancy: early prediction of first trimester miscarriage using machine learning. J Assist Reprod Genet. 2023;40(2):309-322.
19.  Liu L, Liu B, Wu H, Gan Q, Huang Q, Li M. Optimizing predictive features using machine learning for early miscarriage risk following single vitrified-warmed blastocyst transfer. Front Endocrinol (Lausanne). 2025 Apr 16;16:1557667.
20.  Ozer G, Akca A, Yuksel B, Duzguner I, Pehlivanli AC, Kahraman S. Prediction of risk factors for first trimester pregnancy loss in frozen-thawed good-quality embryo transfer cycles using machine learning algorithms. J Assist Reprod Genet. 2023;40(2):279-288.
21.  Wu Y, Yu X, Li M, Zhu J, Yue J, Wang Y, et al. Risk prediction model based on machine learning for predicting miscarriage among pregnant patients with immune abnormalities. Front Pharmacol. 2024;15:1366529.
22.  Murugesu S, Linton-Reid K, Braun E, Barcroft J, Cooper N, Pikovsky M, et al. Predicting outcomes of expectant and medical management in early pregnancy miscarriage using machine learning to develop and validate multivariable clinical prediction models. BMC Pregnancy Childbirth. 2025;25(1):225.
23.  Zikopoulos A, Moustakli E, Potiris A, Louis K, Arkoulis I, Vogiatzoglou AL, et al. Artificial Intelligence in Recurrent Pregnancy Loss: Current Evidence, Limitations, and Future Directions. J Clin Med. 2026;15(2):686.
24.  Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: Machine learning in Python. J Mach Learn Res. 2011;12:2825-2830.
25.  Breiman L. Random forests. Machine learning. 2001;45(1):5-32.
26.  Friedman JH. Greedy function approximation: a gradient boosting machine. Ann Stat. 2001:1189-232.
27.  Cortes C, Vapnik V. Support-vector networks. Mach Learn. 1995;20(3):273-277.
28.  Duda RO, Hart PE. Pattern classification: John Wiley & Sons; 2006.
29.  Murugesu S, Linton-Reid K, Barcroft J, Pikovsky M, Saso S, Aboagye E, et al. Using radiomics and machine learning predict miscarriage in early pregnancy. Bjog-An Int J Gynecol Obstet. 2025;132:24-25.
30.  Kozlowski P, Burkhardt T, Gembruch U, Gonser M, Kähler C, Kagan KO, von Kaisenberg C, Klaritsch P, Merz E, Steiner H, Tercanli S, Vetter K, Schramm T. DEGUM, ÖGUM, SGUM and FMF Germany recommendations for the implementation of first-trimester screening, detailed ultrasound, cell-free DNA screening and diagnostic procedures. Ultraschall Med. 2019;40(2):176-193.
31.  Mora-Sánchez A, Aguilar-Salvador DI, Nowak I. Towards a gamete matching platform: using immunogenetics and artificial intelligence to predict recurrent miscarriage. NPJ Digit Med. 2019;2(1):12.
32.  Ibrahim MS, Abdulhameed MB. Maternal Risk Factors and Outcomes of Premature Neonates Admitted to the Neonatal Care Unit in Al-Elwiya Pediatric Teaching Hospital in Baghdad, Iraq. Iran J Neonatol. 2022; 13(3):56-62.