Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Feb 10:6:1456238.
doi: 10.3389/fgwh.2025.1456238. eCollection 2025.

Predicting pregnancy loss and its determinants among reproductive-aged women using supervised machine learning algorithms in Sub-Saharan Africa

Affiliations

Predicting pregnancy loss and its determinants among reproductive-aged women using supervised machine learning algorithms in Sub-Saharan Africa

Tirualem Zeleke Yehuala et al. Front Glob Womens Health. .

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.

PubMed Disclaimer

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

Figure 1
Figure 1
Flow diagram for data analysis and model building to predict pregnancy loss.
Figure 2
Figure 2
Prevalence of pregnancy loss status among reprodactive-aged women.
Figure 3
Figure 3
Important features selected by recursive feature elimination (RFE).
Figure 4
Figure 4
AUC curve score of machine learning model.
Figure 5
Figure 5
Waterfall plot displaying prediction of the 5th index observation high value.
Figure 6
Figure 6
Waterfall plot displaying prediction of the zero index observation for low values.

Similar articles

References

    1. 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
    1. Assefa N, Berhane Y, Worku A, Tsui A. The hazard of pregnancy loss and stillbirth among women in Kersa, east Ethiopia: a follow up study. Sex Reprod Healthc. (2012) 3(3):107–12. 10.1016/j.srhc.2012.06.002 - DOI - PubMed
    1. Organization WH. Safe Abortion: Technical and Policy Guidance for Health Systems. Geneva: World Health Organization; (2003). - PubMed
    1. Fathalla MF. Safe abortion: the public health rationale. Best Pract Res Clin Obstet Gynaecol. (2020) 63:2–12. 10.1016/j.bpobgyn.2019.03.010 - DOI - PubMed
    1. Organization WH. WHO Recommendations on Self-Care Interventions: Self-Management of Medical Abortionm. Geneva: World Health Organization; (2022).

LinkOut - more resources