Preprint
Article

This version is not peer-reviewed.

Smart IoT and XGBoost-Based Model for Early Detection and Multi-Class Leak Risk Classification in the Drinking Water Supply and Sewerage Sector

Submitted:

17 November 2026

Posted:

18 November 2026

You are already at the latest version

Abstract
Water distribution systems face significant challenges due to aging infrastructure, increasing water demand, and limited real-time monitoring capabilities, resulting in leaks, water losses, service interruptions, and higher operational costs. To address these issues, this study proposes a mobile application based on IoT technologies and Machine Learning for the detection and prediction of failures in domestic water distribution systems. The system uses an ESP32 microcontroller connected to a YFS201 flow sensor and a SEN0257 pressure sensor to collect and transmit real-time hydraulic data. The acquired information is displayed through a mobile application and analyzed using an XGBoost classification model to identify and classify pipeline failure risk levels, supporting early anomaly detection and preventive maintenance. Additionally, the application includes a technician assignment feature that records maintenance responsibilities, improving task traceability and management. Experimental results show that the proposed model achieved an overall accuracy of 79% and a weighted F1-score of 0.77. Its highest performance was obtained in detecting high-risk scenarios, reaching an F1-score of 0.89, demonstrating its effectiveness in supporting timely fault detection and maintenance planning in water distribution networks.
Keywords: 
;  ;  ;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.