Predicting pregnancy loss and its determinants among reproductive-aged women using supervised machine learning algorithms in Sub-Saharan Africa
- PMID: 39995747
- PMCID: PMC11847835
- DOI: 10.3389/fgwh.2025.1456238
Predicting pregnancy loss and its determinants among reproductive-aged women using supervised machine learning algorithms in Sub-Saharan Africa
Abstract
Background: Pregnancy loss is a significant public health issue globally, particularly in Sub-Saharan Africa (SSA), where maternal health outcomes continue to be a major concern. Despite notable progress in improving maternal health, pregnancy-related complications, including s due to miscarriages, stillbirths, and induced abortions, continue to impact women's health, social wellbeing, and economic stability in the region. This study aims to identify the key predictors of pregnancy loss and develop effective predictive models for pregnancy loss among reproductive-aged women in SSA.
Methods: We derived the data for this cross-sectional study from the most recent Demographic and Health Survey of Sub-Saharan African countries. Python software was used to process the data, and machine learning techniques such as Random Forest, Decision Tree, Logistic Regression, Extreme Gradient Boosting, and Gaussian were applied. The performance of the predictive models was evaluated using several standard metrics, including the ROC curve, accuracy score, precision, recall, and F-measure.
Result: The final experimental results indicated that the Random Forest model performed the best in predicting pregnancy loss, achieving an accuracy of 98%, precision of 98%, F-measure of 83%, ROC curve of 94%, and recall of 77%. The Gaussian model had the lowest classification accuracy, with an accuracy of 92.64% compared to the others. Based on SHPY values, unmarried women may be more likely to experience pregnancy loss, particularly in contexts where premarital pregnancies are stigmatized. The use of antenatal care and family planning services can significantly impact the risk of pregnancy loss. Women from lower-income backgrounds may face challenges in accessing prenatal care or safe reproductive health services, leading to higher risks of loss. Additionally, higher levels of education are often correlated with increased awareness of family planning methods and better access to healthcare, which can reduce the likelihood of unintended pregnancy loss.
Conclusion: The Random Forest machine learning model demonstrates greater predictive power in estimating pregnancy loss risk factors. Machine learning can help facilitate early prediction and intervention for women at high risk of pregnancy loss. Based on these findings, we recommend policy measures aimed at reducing pregnancy loss Sub-Saharan African countries.
Keywords: Sub-Saharan Africa; machine learning; prediction; pregnancy loss; reproductive-aged women.
© 2025 Yehuala, Mengesha and Baykemagn.
Conflict of interest statement
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Figures






Similar articles
-
Machine learning algorithms to predict healthcare-seeking behaviors of mothers for acute respiratory infections and their determinants among children under five in sub-Saharan Africa.Front Public Health. 2024 Jun 19;12:1362392. doi: 10.3389/fpubh.2024.1362392. eCollection 2024. Front Public Health. 2024. PMID: 38962762 Free PMC article.
-
Application of the random forest algorithm to predict skilled birth attendance and identify determinants among reproductive-age women in 27 Sub-Saharan African countries; machine learning analysis.BMC Public Health. 2025 Mar 6;25(1):901. doi: 10.1186/s12889-025-22007-9. BMC Public Health. 2025. PMID: 40050868 Free PMC article.
-
Predicting home delivery and identifying its determinants among women aged 15-49 years in sub-Saharan African countries using a Demographic and Health Surveys 2016-2023: a machine learning algorithm.BMC Public Health. 2025 Jan 24;25(1):302. doi: 10.1186/s12889-025-21334-1. BMC Public Health. 2025. PMID: 39856651 Free PMC article.
-
Explainable machine learning for modeling predictors of unintended pregnancy among married/in-union women in sub-Saharan Africa, a multi-country analysis of MICS 6 survey.Digit Health. 2024 Oct 24;10:20552076241292978. doi: 10.1177/20552076241292978. eCollection 2024 Jan-Dec. Digit Health. 2024. PMID: 39449856 Free PMC article. Review.
-
Reproductive health and family planning needs among HIV-infected women in Sub-Saharan Africa.Curr HIV Res. 2013 Mar;11(2):160-8. doi: 10.2174/1570162x11311020008. Curr HIV Res. 2013. PMID: 23432491 Review.
References
-
- Huss B. Well-being before and after pregnancy termination: the consequences of abortion and miscarriage on satisfaction with various domains of life. J Happiness Stud. (2021) 22(6):2803–28. 10.1007/s10902-020-00350-5 - DOI
-
- Organization WH. Safe Abortion: Technical and Policy Guidance for Health Systems. Geneva: World Health Organization; (2003). - PubMed
-
- Organization WH. WHO Recommendations on Self-Care Interventions: Self-Management of Medical Abortionm. Geneva: World Health Organization; (2022).
LinkOut - more resources
Full Text Sources
Research Materials