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
. 2024 Dec 3;14(1):30047.
doi: 10.1038/s41598-024-81197-1.

Employing machine learning models to predict pregnancy termination among adolescent and young women aged 15-24 years in East Africa

Affiliations

Employing machine learning models to predict pregnancy termination among adolescent and young women aged 15-24 years in East Africa

Getanew Aschalew Tesfa et al. Sci Rep. .

Abstract

Pregnancy termination is still a sensitive and continuing public health issue due to several political, economic, religious, and social concerns. This study assesses the applications of machine learning models in the prediction of pregnancy termination using data from eleven national datasets in East Africa. Nine machine learning models, namely: Random Forests (RF), Decision Tree, Logistic Regression, Support Vector Machine, eXtreme Gradient Boosting (XGB), AdaBoost, CatBoost, K-nearest neighbor, and feedforward neural network models were used to predict pregnancy termination, with six evaluation criteria utilized to compare their performance. The pooled prevalence of pregnancy termination in East Africa was found to be 4.56%. All machine learning models had an accuracy of at least 71.8% on average. The RF model provided accuracy, specificity, precision, and AUC of 92.9%, 0.87, 0.91, and 0.93, respectively. The most important variables for predicting pregnancy termination were marital status, age, parity, country of residence, age at first sexual activity, exposure to mass media, and educational attainment. These findings underscore the need for a tailored approach that considers socioeconomic and regional disparities in designing policy initiatives aimed at reducing the rate of pregnancy terminations among younger women in the region.

Keywords: Abortion; Artificial intelligence; Pregnancy termination; Women.

PubMed Disclaimer

Conflict of interest statement

Declarations. Competing interests: The authors declare no competing interests. Ethics approval and consent to participate: Since this study was done using a secondary data source, participants’ consent is not applicable. However, a permission letter and approval were obtained from DHS which allows us to use the data.

Figures

Fig. 1
Fig. 1
The main steps of the workflow.
Fig. 2
Fig. 2
Data comparison before and after applying the data balancing technique.
Fig. 3
Fig. 3
Prevalence of pregnancy termination among adolescent and young women across East African countries.
Fig. 4
Fig. 4
Feature selection using Boruta algorithm. v01: age, v02: age at first sex, v03: educational level, v04: religion, v05: working status, v06: smoking status, v08: place of residence, v09: distance to HF, v00: country of residence, v10: marital status, v11: wealth index, v12: mass media exposure, v13: number of children ever born, v14: number of births in the last five years, v15: community level educational status, v16: community level poverty, v17: community level mass media exposure.
Fig. 5
Fig. 5
Model performance of each ML model after optimized Hyperparameter tuning.
Fig. 6
Fig. 6
ROC curve analysis of each ML model after optimized Hyperparameter tuning.
Fig. 7
Fig. 7
Random forest-based feature importance.
Fig. 8
Fig. 8
SHAP feature impact on model prediction.
Fig. 9
Fig. 9
SHAP force plot.

Similar articles

Cited by

References

    1. Harvard Health Publishing. Abortion (Termination Of Pregnancy): what is it? https://www.health.harvard.edu/medical-tests-and-procedures/abortion-ter... (2019).
    1. Clark Alves, S. M. October, Jenkins, Amanda Rapp. Early Pregnancy Loss (Spontaneous Abortion), 12 (StatPearls Publishing, 2023). - PubMed
    1. Diedrich, J. & Steinauer, J. Complications of surgical abortion. Clin. Obstet. Gynecol. 52, 205–212 (2009). 10.1097/GRF.0b013e3181a2b756. - PubMed
    1. Grimes, D. A. et al. Unsafe abortion: the preventable pandemic. Lancet368, 1908–1919. 10.1016/S0140-6736(06)69481-6 (2006). - PubMed
    1. United Nations Population Fund. Seeing the unseen: The case for action in the neglected crisis of unintended pregnancy. https://www.unfpa.org/swp2022 (2022).

LinkOut - more resources