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 Apr 17;3(1):e000962.
doi: 10.1136/bmjph-2024-000962. eCollection 2025.

Explainable machine learning algorithms to identify predictors of intention to use family planning among women of reproductive-age in Ethiopia: Evidence from the Performance Monitoring and Accountability (PMA) 2021 survey data set

Affiliations

Explainable machine learning algorithms to identify predictors of intention to use family planning among women of reproductive-age in Ethiopia: Evidence from the Performance Monitoring and Accountability (PMA) 2021 survey data set

Jibril Bashir Adem et al. BMJ Public Health. .

Abstract

Introduction: Reducing maternal and infant mortality, preventing unintended pregnancies and improving the health of women and their families are all strongly associated with use of family planning (FP). It is widely believed that intentions are a strong predictor of behaviours, and many interventions that aim to change behaviour, including those targeting FP use, rely on evaluating programme effectiveness through analysis of behavioural intentions. Understanding a woman's intention to use FP is crucial in predicting and promoting its actual use. Thus, using explainable machine learning algorithms, this study aimed to identify the key determinants of intention to use FP among women of reproductive age in Ethiopia.

Methods: Secondary data from the Ethiopian Performance Monitoring and Accountability 2021 survey were analysed using R and Python on Google Colab. Eight machine learning classifiers were employed to identify significant determinants of intention to use FP in a weighted sample of 5993 women. Performance metrics evaluated these classifiers. Data preparation techniques, such as feature engineering, handling missing values and addressing imbalanced categories, were applied. A SHAP (SHapley Additive exPlanations) analysis identified the most influential predictors, clarifying their impact on model outcomes.

Results: Using 10-fold cross-validation and balanced training data, the random forest model achieved an accuracy of 77.0% (95% CI 74.73%, 79.33%) and an area under the curve of 85.0% (95% CI 81.43%, 88.63%), making it the most effective model. The SHAP analysis revealed the key determinants of intention to use FP, including age at first use of FP, partner's age, marital status, religion, pregnancy status, unmet needs for FP, family size and household relationship dynamics.

Conclusions and recommendations: This research highlights the sociodemographic, economic and personal factors influencing intention to use FP in Ethiopia. Addressing barriers such as perceived side effects, unmet needs for FP and partner involvement can improve FP uptake. Insights from this study can inform targeted interventions and policies to enhance the health and well-being of women in Ethiopia.

Keywords: Community Health; Health Services Accessibility; Public Health.

PubMed Disclaimer

Conflict of interest statement

Competing interests: None declared.

Figures

Figure 1
Figure 1
Flow chart of data preparation and analysis plan. ANN, artificial neural network; XGB, eXtreme Gradient Boosting; KNN, K-nearest neighbour; LR, logistic regression; NB, Naïve Bayes; PMA, Performance Monitoring and Accountability; RF, random forest; SHAP, SHapley Additive exPlanations; SVM, support vector machine.
Figure 2
Figure 2
Comparison of the random forest model’s predictions on the test data. AUC, area under the ROC curve; RF, random forest; ROC, receiver operating characteristic.
Figure 3
Figure 3
Global importance plot of the optimised random forest model. fp_ever_used_1=yes; partner_age_2=above 40 years; maritall_status_5=single/unmarried for marital status; religion_4=Muslim; pregnant_1=yes; ever_pregnant_1=yes, more_children_pregnant_2=no; unmete_need_for_limiting_1=no unmet need; relationship_3=son/daughter. SHAP, SHapley Additive exPlanations.
Figure 4
Figure 4
Beeswarm plot ranked by mean absolute SHAP value generated by the optimised random forest model. fp_ever_used_1=yes; partner_age_2=above 40 years; maritall_status_5=single/unmarried for marital status; religion 4=Muslim; pregnant_1=yes; ever pregnant_1=yes; partner_age_1=between 21 and 39 years; more_children pregnant_2=yes; unmete_need_for_limiting_1=having unmet need; age_at_first_use_30=above 30 years. SHAP, SHapley Additive exPlanations.

Similar articles

References

    1. Bakibinga P, Matanda D, Kisia L, et al. Factors associated with use of injectables, long-acting and permanent contraceptive methods (iLAPMs) among married women in Zambia: analysis of demographic and health surveys, 1992-2014. Reprod Health 2019;16:78:78. 10.1186/s12978-019-0741-6 - DOI - PMC - PubMed
    1. World Health Organization . Health in 2015: from MDGs, millennium development goals to SDGs, sustainable development goals. 2015.
    1. Population Reference Bureau, World Population Data Sheet of the Population Reference Bureau, Inc . Demographic data and estimates for the countries and regions of the world. 1985.
    1. Bongaarts J. The impact of family planning programs on unmet need and demand for contraception. Stud Fam Plann 2014;45:247–62. 10.1111/j.1728-4465.2014.00387.x - DOI - PubMed
    1. Tekelab T, Sufa A, Wirtu D. Factors affecting intention to use long acting and permanent contraceptive methods among married women of reproductive age groups in Western Ethiopia: a community based cross sectional study. Fam Med Med Sci Res 2015;4:2. 10.1186/s12905-015-0208-z - DOI

LinkOut - more resources