Analysis of Deep Learning and Tree Based Machine Learning Models in Leak Detection using LeakDB Benchmark
Abstract
Physical leakage accounts for a substantial share of the treated water lost from distribution networks, reaching approximately 44% in Turkey, yet conventional detection approaches are limited either by the impracticality of manual inspection at scale or by the cost of dense sensor deployment. This study examines whether machine learning applied to the pressure and flow data already recorded by SCADA systems can detect leaks with sufficient accuracy for operational use, and which class of model is best suited to such data. A sliding window of 48 time steps, corresponding to one diurnal demand cycle, was applied to the LeakDB Hanoi benchmark, which comprises 1,000 randomized one-year scenarios across 66 pressure and flow channels. Each window was reduced to a 466-dimensional feature vector formed from seven per-channel statistics together with cyclic encodings of time of day and day of week. Four algorithms received this representation and were evaluated across six classification metrics: Random Forest, XGBoost, LSTM, and 1D-CNN. Random Forest performed best, achieving 90.00% accuracy, an AUC-ROC of 0.9507, 77.59% recall, and 93.71% specificity, followed by XGBoost (82.49% accuracy, AUC-ROC 0.8904). Both deep learning models discriminated poorly, with AUC-ROC values of 0.5426 for the LSTM and 0.5110 for the 1D-CNN. The comparable degradation of a recurrent and a convolutional architecture indicates that the limiting factor is the pre-aggregated feature representation rather than any individual network design. Existing SCADA infrastructure, combined with statistical feature extraction and a tree-based ensemble, therefore offers a low-cost route to operational leak detection.
Keywords
References
- [1] A. Shiklomanov, "World fresh water resources," in Water in Crisis: A Guide to the World's Fresh Water Resources, P. H. Gleick, Ed. Oxford: Oxford University Press, 1993, pp. 13–24. doi: 10.2307/2623756
- [2] UN Water, Summary Progress Update 2021: SDG 6 Water and Sanitation for All. Geneva: United Nations, 2021.
- [3] USGS, "The distribution of water on Earth," U.S. Geological Survey, 2023.
- [4] Turkish Water Institute, Report on Water Loss and Leakage in Drinking Water Networks in Turkey. May 2021.
- [5] "Infrastructure failures at the root of Mardin water crisis," Mardinolay.com.tr, 2025.
- [6] J. A. Coelho, A. Glória, and P. Sebastião, "Precise water leak detection using machine learning and real-time sensor data," IoT, vol. 1, no. 2, pp. 474–493, 2020. doi: 10.3390/iot1020026
- [7] L. Romero-Ben et al., "Leak detection and localization in water distribution networks: Review and perspective," Annu. Rev. Control, vol. 55, pp. 392–419, 2023, doi: 10.1016/j.arcontrol.2023.03.012.
- [8] H. Shen and C. S. Cheng, "A tree-based machine learning method for pipeline leakage detection," J. Water Resour. Plan. Manag., 2022. doi: 10.3390/w14182833
Details
Primary Language
English
Subjects
Semi- and Unsupervised Learning, Data Mining and Knowledge Discovery, Modelling and Simulation, Artificial Intelligence (Other)
Journal Section
Research Article
Early Pub Date
August 19, 2026
Publication Date
August 31, 2026
Submission Date
July 29, 2026
Acceptance Date
August 10, 2026
Published in Issue
Year 2026 Volume: 10 Number: 1