The Development of a Smartphone Application for Water Monitoring in South Africa Using Machine Learning Techniques

dc.contributor.authorWitbooi, Sanet
dc.contributor.supervisorBekker, Martin
dc.date.accessioned2025-11-14T09:03:55Z
dc.date.issued2025
dc.descriptionA research report submitted in fulfillment of the requirements for the Master of Science, in the Faculty of Engineering and the Built Environment, School of Electrical and Information Engineering, University of the Witwatersrand, Johannesburg, 2025
dc.description.abstractWater quality monitoring is crucial in South Africa, where water scarcity and pollution present significant public health and environmental challenges. Current monitoring methods are costly, slow, and inaccessible to rural and underserved communities. This study investigates the development of a smartphone application that uses machine learning and computer vision to perform real-time, automated analysis of water quality test strips. The application focuses on six key chemical parameters: pH, total chlorine, free chlorine, total hardness, total alkalinity, and bromine, adhering to South African National Standards. By integrating convolutional neural networks into water quality monitoring, this research addresses the gap in accessible, low-cost solutions. The research employed a supervised learning approach, developing a CNN-based model trained on a dataset of water test strip images collected under diverse environmental conditions. Data pre-processing techniques such as glare removal and brightness adjustments were applied to enhance model robustness. Experimental testing was conducted in ideal conditions (laboratory settings) and non-ideal conditions. Evaluation metrics included accuracy, F1 score, and recall, with thresholds set at 90% for ideal conditions and 80% for non-ideal conditions. User testing assessed the application’s usability and adaptability. The CNN model achieved an accuracy of 92.5% in ideal conditions and 84.7% in non-ideal conditions, demonstrating its effectiveness in diverse scenarios. Key results indicated that pH and chlorine were the most accurately detected parameters, with mean squared errors of less than 0.05. User feedback highlighted the application’s ease of use, with over 85% of participants reporting satisfaction with the app interface and instructions. Findings underscore the potential of AI-driven solutions to revolutionise water quality monitoring in South Africa. The system’s performance exceeds the minimum requirements for practical deployment, though challenges such as lighting conditions and test strip variability remain. The study aligns with global trends in sustainable water management, advocating for community-driven solutions that leverage citizen science. Recommendations include scaling the application to include additional parameters, integrating geotagging features, and enhancing user training modules. This research presents a novel, accessible tool for water quality monitoring, bridging the gap between advanced technology and real-world application in resource-limited settings. The smartphone application offers a scalable model that can empower communities, improve public health outcomes, and contribute to South Africa’s sustainable development goals. Future work should focus on expanding the dataset, improving model generalisability, and exploring partnerships for widespread implementation.
dc.description.submitterMM2025
dc.facultyFaculty of Engineering and the Built Environment
dc.identifier.citationWitbooi, Sanet. (2025). The Development of a Smartphone Application for Water Monitoring in South Africa Using Machine Learning Techniques [Master`s dissertation, University of the Witwatersrand, Johannesburg]. WIReDSpace. https://hdl.handle.net/10539/47648
dc.identifier.urihttps://hdl.handle.net/10539/47648
dc.language.isoen
dc.publisherUniversity of the Witwatersrand, Johannesburg
dc.rights© 2024 University of the Witwatersrand, Johannesburg. All rights reserved. The copyright in this work vests in the University of the Witwatersrand, Johannesburg. No part of this work may be reproduced or transmitted in any form or by any means, without the prior written permission of University of the Witwatersrand, Johannesburg.
dc.rights.holderUniversity of the Witwatersrand, Johannesburg
dc.schoolSchool of Electrical and Information Engineering
dc.subjectUCTD
dc.subjectDevelopment
dc.subjectSmartphone Application
dc.subject.primarysdgSDG-6: Clean water and sanitation
dc.subject.secondarysdgSDG-11: Sustainable cities and communities
dc.titleThe Development of a Smartphone Application for Water Monitoring in South Africa Using Machine Learning Techniques
dc.typeDissertation

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Witbooi_Development_2025.pdf
Size:
3.96 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.43 KB
Format:
Item-specific license agreed upon to submission
Description: