MARATTO

article · PLoS ONE

Geospatial variation and machine learning approaches to predict open defecation practice in Zambia

2026Open accessMizan-Tepi University

Abstract

BACKGROUND: Open defecation is the disposal of human feces in fields, bushes, forests, open waterways, beaches, and other open areas. It worsens the environment, contaminates drinking water sources, causes malnutrition and low school attendance in children, and aids in the spread of diseases like cholera, diarrhea, dysentery, typhoid, polio, and hepatitis A. The purpose of this study was geospatial variation and machine learning approaches to predict open defecation in Zambia. METHODS: This study used secondary data analysis from the cross-sectional Zambia Demographic and Health Survey (ZMDHS) 2024. Spatial distribution, spatial autocorrelation, incremental autocorrelation, spatial interpolation, and hot spot area detection were all examined using ArcGIS 10.7. Python was used to identify the features of open defecation practice using machine-learning algorithms. We carried out an 80/20% data split, one-hot data encoding, data transformation and integration, data cleaning, and 10-fold stratified cross-validation. This study employed seven machine-learning algorithms, including adaptive boosting, cat boosting, random forest, light boosting, extreme gradient boosting, decision tree and logistic regression. RESULTS: Among 12,808 households in Zambia, 12.1% were practiced open defecation. Spatial analysis revealed significant clustering, with hot spots concentrated in Southern, Western and Eastern regions, highlighting areas in urgent need of intervention. Machine learning models were applied to predict open defecation practices, with light gradient boost performing the best model with AUC of 83.83%. From this study, 198 true positives were generated by the model for the classification of open defecation practice, accurately identifying those who reported engaging in this behavior. CONCLUSION: Wealth index, access to treated water, access to electricity, educational level, and age of household head, access to media, and region were the most significant features of open defecation practice. Governments, NGOs, policy makers, and researchers can use these data to create targeted interventions for improving health and environmental sanitation based on the gaps and disparities discovered.

Research topics

  • Child Nutrition and Water Access
  • Global Maternal and Child Health
  • Climate Change and Health Impacts

Sustainable Development Goals

Read the original research

This page summarises published work. The authoritative version sits with the publisher.

DOI: 10.1371/journal.pone.0350923

Is something wrong with this record? Report it or request removal.

Discussion

Discuss this research

Have you built on this work, tried to replicate it, or seen it applied in practice? Share what you know. Verified researchers and MARATTO™ domain experts can open a discussion, and any member can reply. Contributions are reviewed before they appear.

No discussion yet. Open the first thread.