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 Mar 6;25(1):901.
doi: 10.1186/s12889-025-22007-9.

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

Affiliations

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

Eliyas Addisu Taye et al. BMC Public Health. .

Abstract

Introduction: Maternal mortality refers to a mother's death owing to complications arising from childbirth or pregnancy. This issue is a forefront public health challenge around the globe which is pronounced in low- and middle-income countries, particularly in the sub-Saharan African regions where the burdens remain significantly high. Moreover, this problem is further complicated in developing countries due to limited access to antenatal care and the shortage of skilled birth attendants. So far, considerable improvements in the health status of many populations have been reported in developing countries. Nonetheless, the MDGs to reduce maternal and newborn mortality unmet in many SSA nations. Leveraging machine learning approaches allows us to better understand these constraints and predict skilled birth attendance among reproductive age women, providing actionable insights for policy and intervention.

Objective: This study aimed to predict skill birth attendance and identify its determinants among reproductive age women in 27 SSA countries using machine learning algorithm.

Methods: Using data from the Demographic and Health Surveys (2016-2024) across 27 SSA countries, we analyzed responses from 198,707 reproductive age women. The Random Forest classifier, complemented by SHAP for feature interpretability, was employed for prediction and analysis. Data preprocessing included K-nearest neighbor imputation for missing values, SMOTE for handling class imbalance, and Recursive Feature Elimination for feature selection. Model performance was evaluated using metrics such as accuracy, recall, F1 score, and AUC-ROC.

Results: The Random Forest model demonstrated robust performance, achieving an AUC-ROC of 92%, recall of 96%, accuracy of 92%, precision of 93 and F1 score of 93%. The SHAP analysis identifies key predictors of skilled birth attendance, including facility delivery, maternal education, higher wealth index, urban residence, reduced distance to healthcare facilities, media exposure, and internet use.

Conclusion and recommendations: The findings highlight the potential of machine learning to identify critical predictors of skilled birth attendance to inform targeted interventions. Addressing socioeconomic and educational disparities, enhancing healthcare access, and implementing tailored cessation programs are crucial to enhance skilled birth attendance in this vulnerable population.

Keywords: Machine learning; Prediction; SHAP; Skilled birth attendance; Sub-Saharan Africa.

PubMed Disclaimer

Conflict of interest statement

Declarations. Ethics approval and consent to participate: This study used secondary data analysis, hence no direct participation from individuals was required. A consent letter for data access was obtained from a major health and demographic survey via a web-based request submitted to http://www.dhsprogram.com . This study used exclusively de-identified information, ensuring full compliance with ethical standards for participant privacy and confidentiality. Consent for publication: Not applicable. Competing interests: The authors declare no competing interests.

Figures

Fig. 1
Fig. 1
Inclusion and exclusion criteria for study participants to predict skill birth attendance and identifying its determinates among reproductive women in 27 sub-Saharan Africa: Evidence form dataset DHS 2016–2024 G.C
Fig. 2
Fig. 2
Entire process of performing the machine learning of study participants to predict skill birth attendance and identifying its determinates among reproductive women in 27 sub-Saharan Africa: Evidence form dataset DHS 2016–2024 G.C
Fig. 3
Fig. 3
Proportion of missing values to predict skill birth attendance and identifying its determinates among reproductive women in 27 sub-Saharan Africa: Evidence form dataset DHS 2016–2024 G.C
Fig. 4
Fig. 4
Wealth index verses place residence distribution of study participants to predict skill birth attendance and identifying its determinates among reproductive women in 27 sub-Saharan Africa: Evidence form dataset DHS 2016–2024 G.C
Fig. 5
Fig. 5
Distribution of the independent variable for predicting skilled birth attendance and identifying its determinants among reproductive women in 27 Sub-Saharan African countries: Evidence from the DHS dataset (2016–2024)
Fig. 6
Fig. 6
Area under the curve of models for predicting skilled birth attendant and identifying its determinates among reproductive age women in 27 sub-Saharan Africa: Evidence form dataset DHS 2016–2024 G.C
Fig. 7
Fig. 7
Change in performance metrics in each fold of cross validation for random forest classifier to predict to predict skill birth attendance and identifying its determinates among reproductive age women in 27 sub-Saharan Africa: Evidence form dataset DHS 2016–2024 G.C
Fig. 8
Fig. 8
Beeswarm plot, ranked by mean absolute SHAP value generated by random forest model for identifying determinate of skilled birth attendance in selected 27 Sub-Saharan African using recent DHS dataset from 2016–2024 G.C

Similar articles

References

    1. WHO Recommendations on Antenatal Care for a Positive Pregnancy Experience: World Health Organization CTI - WHO Guidelines Approved by the Guidelines Review Committee. 2016 [Available from: https://www.ncbi.nlm.nih.gov/books/NBK409108/ - PubMed
    1. Onambele LA-O, Ortega-Leon WA-O, Guillen-Aguinaga SA-O, Forjaz MA-OX, Yoseph AA-O, Guillen-Aguinaga LA-O et al. Maternal mortality in Africa: regional trends (2000–2017). LID– 10.3390/ijerph192013146 [doi] LID– 13146. (1660–4601 (Electronic)). - PMC - PubMed
    1. Tajvar M, Hajizadeh A, Zalvand R. A systematic review of individual and ecological determinants of maternal mortality in the world based on the income level of countries. BMC Public Health. 2022;22(1):2354. - PMC - PubMed
    1. Ahinkorah BO, Seidu AA, Agbaglo E, Adu C, Budu E, Hagan JE Jr. et al. Determinants of antenatal care and skilled birth attendance services utilization among childbearing women in Guinea: evidence from the 2018 Guinea demographic and health survey data. (1471–2393 (Electronic)). - PMC - PubMed
    1. Testing Approaches for Increasing Skilled Care During Childbirth. Key Findings from Homabay and Migori Districts, Kenya2007.

LinkOut - more resources