Dynamic IoT–PID Control for Energy-Efficient Water Distribution: EPANET-Based Digital Twin Validation in Varied Geographical Terrains
Abstract
Topographical heterogeneity in water distribution networks frequently causes pressure imbalance, hydraulic inefficiency, and elevated energy consumption, particularly in regions with significant elevation gradients. This study aims to develop and validate a dynamic Internet of Things (IoT)-based pressure control model within a cyber–physical system framework for energy-efficient water distribution under varied geographical conditions. The primary contribution of this work lies in the separation of strategic and tactical control layers, where a Digital Twin based on EPANET dynamically generates optimal pressure setpoints, while distributed proportional–integral–derivative controllers execute real-time valve regulation at the network edge. The research adopts a Design Science Research methodology to design, implement, and evaluate a four-layer architecture consisting of physical sensing and actuation, long-range communication, tactical control, and strategic simulation layers. Validation is conducted using EPANET-based simulations across three control scenarios: a baseline condition without dynamic control, a static rule-based valve control scenario, and the proposed dynamic IoT–PID control scenario. The experimental procedure involves comparative analysis using control performance metrics including overshoot, settling time, steady-state error, and root mean square error. Simulation results demonstrate that the baseline configuration suffers from severe pressure imbalance and hydraulic backflow, while static rule-based control partially mitigates inefficiencies but fails to adapt to demand variability. In contrast, the proposed dynamic IoT–PID approach achieves precise pressure regulation with overshoot below 2% and tracking error maintained under 0.5 meters across all evaluated scenarios. These findings confirm that integrating a Digital Twin with real-time PID control significantly improves pressure stability and operational efficiency. The proposed architecture offers practical implications for smart water infrastructure in geographically diverse regions, providing a scalable foundation for adaptive pressure management, energy optimization, and future digital-twin-driven water distribution systems.
Keywords
Full Text:
PDFReferences
S. Ahmad, H. Jia, Z. Chen, Q. Li, and C. Xu, “Water-energy nexus and energy efficiency: A systematic analysis of urban water systems,” Renewable and Sustainable Energy Reviews, vol. 134, p. 110381, Dec. 2020, doi: 10.1016/J.RSER.2020.110381.
A. Rahmatulloh, G. T. Supriatna, N. Widiyasono, and I. Darmawan, “IoT-Enabled Water Distribution Monitoring: A Sensor-Based Analytical Model,” Ingénierie des systèmes d information, vol. 28, no. 6, pp. 1653–1661, Dec. 2023, doi: 10.18280/isi.280623.
B. P. S. BPS-RI, “Persentase Rumah Tangga yang Memiliki Akses terhadap Sumber Air Minum Layak Menurut Provinsi dan Klasifikasi Desa (Persen), 2024,” Badan Pusat Statistik(BPS - Statistics Indonesia). Accessed: Apr. 07, 2025. [Online]. Available: https://www.bps.go.id/id/statistics-table/2/ODU0IzI%3D/persentase-rumah-tangga-yang-memiliki-akses-terhadap-sumber-air-minum-layak-menurut-provinsi-dan-klasifikasi-desa--persen-.html
S. Irianti et al., “Investigating improved drinking water quality at the point of access: Evidence from four regions of Indonesia,” Journal of Water, Sanitation and Hygiene for Development, vol. 14, no. 2, pp. 80–90, Feb. 2024, doi: 10.2166/washdev.2024.051.
M. Odagiri et al., “Achieving the Sustainable Development Goals for water and sanitation in Indonesia – Results from a five-year (2013–2017) large-scale effectiveness evaluation,” Int J Hyg Environ Health, vol. 230, p. 113584, Sep. 2020, doi: 10.1016/j.ijheh.2020.113584.
sanitation and hygiene: annual report 2023 WHO global water, “WHO Global water, sanitation and hygiene Annual report 2023,” Geneva, 2025. Accessed: Apr. 07, 2025. [Online]. Available: https://www.who.int/publications/i/item/9789240106079?
V. Varriale, A. Cammarano, F. Michelino, and M. Caputo, “The role of digital technologies in production systems for achieving sustainable development goals,” Sustain Prod Consum, vol. 47, pp. 87–104, Jun. 2024, doi: 10.1016/j.spc.2024.03.035.
H. Aman, Z. H. Doost, A. W. Hejran, A. D. Mehr, R. Szczepanek, and G. Gilja, “Survey on The Challenges for Achieving SDG 6: Clean Water and Sanitation: A Global Insight,” Knowledge-Based Engineering and Sciences, vol. 5, no. 3, pp. 21–42, Dec. 2024, doi: 10.51526/kbes.2024.5.3.21-42.
K. Aravind and P. K. R. M, “Optimized Fuzzy Logic Based Energy-Efficient Geographical Data Routing in Internet of Things,” IEEE Access, vol. 12, pp. 18913–18930, 2024, doi: 10.1109/ACCESS.2024.3354174.
G. Gautam, G. Sharma, B. T. Magar, B. Shrestha, S. Cho, and C. Seo, “Usage of IoT Framework in Water Supply Management for Smart City in Nepal,” Applied Sciences, vol. 11, no. 12, p. 5662, Jun. 2021, doi: 10.3390/app11125662.
F. Jan, N. Min-Allah, S. Saeed, S. Z. Iqbal, and R. Ahmed, “IoT-Based Solutions to Monitor Water Level, Leakage, and Motor Control for Smart Water Tanks,” Water (Basel), vol. 14, no. 3, p. 309, Jan. 2022, doi: 10.3390/w14030309.
N. K. Velayudhan, A. S, A. R. Devidas, and M. V. Ramesh, “Delay and Energy Efficient Offloading Strategies for an IoT Integrated Water Distribution System in Smart Cities,” Smart Cities, vol. 7, no. 1, pp. 179–207, Jan. 2024, doi: 10.3390/smartcities7010008.
K. Garg, S. Singh, M. Rokade, and S. Singh, “Experimental and computational fluid dynamic (CFD) simulation of leak shapes and sizes for gas pipeline,” J Loss Prev Process Ind, vol. 84, p. 105112, Sep. 2023, doi: 10.1016/j.jlp.2023.105112.
V. Belohlav, E. Uggetti, J. García, T. Jirout, L. Kratky, and R. Díez-Montero, “Assessment of hydrodynamics based on Computational Fluid Dynamics to optimize the operation of hybrid tubular photobioreactors,” J Environ Chem Eng, vol. 9, no. 5, p. 105768, Oct. 2021, doi: 10.1016/j.jece.2021.105768.
M. Govender, D. C. Ikegwuoha, and M. Seyam, “A CFD-Based Study of Pipe Leakage Dynamics and Water Management Impacts,” Water Resources Management, vol. 39, no. 12, pp. 6701–6714, Sep. 2025, doi: 10.1007/s11269-025-04268-6.
X. Sui, K. Djidjeli, Z. Sun, and J. T. Xing, “Reduced Order Modeling (ROM) based method for the two-dimensional water exit problem using snapshot Proper Orthogonal Decomposition (POD) and CFD simulations,” Applied Ocean Research, vol. 161, p. 104697, Aug. 2025, doi: 10.1016/j.apor.2025.104697.
D. B., K. D. P., R. Kumar A, A. S. M. Metwally, G. A. Ashraf, and B. L. Thamineni, “Smart IoT-based water treatment with a Supervisory Control and Data Acquisition (SCADA) system process,” Water Reuse, vol. 13, no. 3, pp. 411–431, Sep. 2023, doi: 10.2166/wrd.2023.052.
H. M. Ramos, A. Carravetta, and A. M. Nabola, “New Challenges in Water Systems,” Water (Basel), vol. 12, no. 9, p. 2340, Aug. 2020, doi: 10.3390/w12092340.
M. C. Villarin and V. F. Rodriguez-Galiano, “Machine Learning for Modeling Water Demand,” J Water Resour Plan Manag, vol. 145, no. 5, May 2019, doi: 10.1061/(ASCE)WR.1943-5452.0001067.
A. Van Der Merwe, A. Gerber, and H. Smuts, “Mapping a Design Science Research Cycle to the Postgraduate Research Report,” in Communications in Computer and Information Science, Springer International Publishing, Nov. 2017, pp. 293–308. doi: 10.1007/978-3-319-69670-6_21.
E. Z. Berglund, M. E. Shafiee, L. Xing, and J. Wen, “Digital Twins for Water Distribution Systems,” J Water Resour Plan Manag, vol. 149, no. 3, Mar. 2023, doi: 10.1061/JWRMD5.WRENG-5786.
D. Liu, S. Zhao, and J. Zhang, “Adaptive PID Control of Hydropower Units Based on Particle Swarm Optimization and Fuzzy Inference,” Water (Basel), vol. 17, no. 10, p. 1512, May 2025, doi: 10.3390/w17101512.
P. Ghorbani Bam et al., “Digital Twin Applications in the Water Sector: A Review,” Water (Basel), vol. 17, no. 20, p. 2957, Oct. 2025, doi: 10.3390/w17202957.
G. Galuppini, L. Magni, and E. Creaco, “Stability and Robustness of Real-Time Pressure Control in Water Distribution Systems,” Journal of Hydraulic Engineering, vol. 146, no. 4, Apr. 2020, doi: 10.1061/(ASCE)HY.1943-7900.0001722.
Y. Huang, Q. Yang, S. Chu, and J. Pan, “Pressure sensor placement in water distribution networks based on enhanced Rafflesia optimization algorithm,” Electron Lett, vol. 60, no. 21, Nov. 2024, doi: 10.1049/ell2.70025.
J. Carpintero, B. Martinez, J. Fábregas, J. Pérez, and F. A. Canales, “Hydraulic Characterization of a Check Valve for Low-Pressure Potable Water Distribution Applications,” Water (Basel), vol. 15, no. 13, p. 2475, Jul. 2023, doi: 10.3390/w15132475.
M. C. Morani, A. Carravetta, and O. Fecarotta, “A Mixed Integer Non-Linear Programming Model for the Optimal Valve Placement within Water Distribution Networks,” in EWaS5 International Conference: “Water Security and Safety Management: Emerging Threats or New Challenges? Moving from Therapy and Restoration to Prognosis and Prevention”, Basel Switzerland: MDPI, Oct. 2022, p. 2. doi: 10.3390/environsciproc2022021002.
J. D. Taylor, B. Sinopoli, and W. Messner, “Nonlinear modeling of butterfly valves and flow rate control using the Circle Criterion Bode plot,” in Proceedings of the 2010 American Control Conference, IEEE, Jun. 2010, pp. 1967–1972. doi: 10.1109/ACC.2010.5531376.
D. Alessio, C. Attilio, and A. Brath, “Hydraulic Model Calibration Using Remote-Sensing Data: The Usefulness of ERS-2 and ENVISAT Water Surface Levels,” in Engineering Geology for Society and Territory - Volume 3, Cham: Springer International Publishing, 2015, pp. 603–606. doi: 10.1007/978-3-319-09054-2_120.
E. Creaco, A. Campisano, N. Fontana, G. Marini, P. R. Page, and T. Walski, “Real time control of water distribution networks: A state-of-the-art review,” Water Res, vol. 161, pp. 517–530, Sep. 2019, doi: 10.1016/j.watres.2019.06.025.
K. B. Adedeji and Y. Hamam, “Cyber-Physical Systems for Water Supply Network Management: Basics, Challenges, and Roadmap,” Sustainability, vol. 12, no. 22, p. 9555, Nov. 2020, doi: 10.3390/su12229555.
M. Iqbal and H. B. Lim, “A cyber-physical middleware framework for continuous monitoring of water distribution systems,” in Proceedings of the 7th ACM Conference on Embedded Networked Sensor Systems, New York, NY, USA: ACM, Nov. 2009, pp. 401–402. doi: 10.1145/1644038.1644122.
M. M. Srihari, “Intelligent Water Distribution and Management System Using Internet of Things,” in 2018 International Conference on Inventive Research in Computing Applications (ICIRCA), IEEE, Jul. 2018, pp. 785–789. doi: 10.1109/ICIRCA.2018.8597325.
A. García Baigorri, R. Parada, V. Monzon Baeza, and C. Monzo, “Leveraging Urban Water Distribution Systems with Smart Sensors for Sustainable Cities,” Sensors, vol. 24, no. 22, p. 7223, Nov. 2024, doi: 10.3390/s24227223.
H. A. Kusuma, D. Oktavia, S. Nugaraha, T. Suhendra, and S. Refly, “Sensor BMP280 Statistical Analysis for Barometric Pressure Acquisition,” IOP Conf Ser Earth Environ Sci, vol. 1148, no. 1, p. 012008, Mar. 2023, doi: 10.1088/1755-1315/1148/1/012008.
Y. Singh and T. Walingo, “Smart Water Quality Monitoring with IoT Wireless Sensor Networks,” Sensors, vol. 24, no. 9, p. 2871, Apr. 2024, doi: 10.3390/s24092871.
H. A. Kusuma, Yuliani, T. Suhendra, D. Devendra, and D. E. D. Setyono, “Evaluating the Accuracy of BMP280 and BME280 Sensors for Sea Level in a Coastal Environment: A Field Study at Tanjung Siambang Pier,” Ilmu Kelaut, vol. 28, no. 2, pp. 189–202, Jun. 2023, doi: 10.14710/ik.ijms.28.2.189-202.
T. P. Lambrou, C. C. Anastasiou, C. G. Panayiotou, and M. M. Polycarpou, “A Low-Cost Sensor Network for Real-Time Monitoring and Contamination Detection in Drinking Water Distribution Systems,” IEEE Sens J, vol. 14, no. 8, pp. 2765–2772, Aug. 2014, doi: 10.1109/JSEN.2014.2316414.
A. Höttges, C. Rabaiotti, and M. Facchini, “A Novel Distributed Fiber-Optic Hydrostatic Pressure Sensor for Dike Safety Monitoring,” IEEE Sens J, vol. 23, no. 23, pp. 28942–28953, Dec. 2023, doi: 10.1109/JSEN.2023.3315062.
J. N. Kabi, C. wa Maina, E. T. Mharakurwa, and S. W. Mathenge, “Low cost, LoRa based river water level data acquisition system,” HardwareX, vol. 14, p. e00414, Jun. 2023, doi: 10.1016/j.ohx.2023.e00414.
D. Park and H. You, “A Digital Twin Dam and Watershed Management Platform,” Water (Basel), vol. 15, no. 11, p. 2106, Jun. 2023, doi: 10.3390/w15112106.
Sahid, “Enhancing Digital Elevation Model Accuracy for Flood Modelling – A Case Study of the Ciberes River in Cirebon Indonesia,” Forum Geografi, vol. 38, no. 1, Mar. 2024, doi: 10.23917/forgeo.v38i1.1839.
K. Xu, J. Fang, Y. Fang, Q. Sun, C. Wu, and M. Liu, “The Importance of Digital Elevation Model Selection in Flood Simulation and a Proposed Method to Reduce DEM Errors: A Case Study in Shanghai,” International Journal of Disaster Risk Science, vol. 12, no. 6, pp. 890–902, Dec. 2021, doi: 10.1007/s13753-021-00377-z.
A. Zanfei, A. Menapace, B. M. Brentan, M. Righetti, and M. Herrera, “Novel approach for burst detection in water distribution systems based on graph neural networks,” Sustain Cities Soc, vol. 86, p. 104090, Nov. 2022, doi: 10.1016/j.scs.2022.104090.
T. A. Pianto et al., “Design and implementation of an IoT-based Automatic Water Level Recorder (AWLR) as a tool to mitigate the risk of tidal flood disasters in the coastal area of Jakarta,” IOP Conf Ser Earth Environ Sci, vol. 1266, no. 1, p. 012061, Dec. 2023, doi: 10.1088/1755-1315/1266/1/012061.
K. Yan, G. Di Baldassarre, D. P. Solomatine, and G. J. ‐P. Schumann, “A review of low‐cost space‐borne data for flood modelling: topography, flood extent and water level,” Hydrol Process, vol. 29, no. 15, pp. 3368–3387, Jul. 2015, doi: 10.1002/hyp.10449.
L. Gómez-Coronel, I. Santos-Ruiz, L. Torres, F.-R. López-Estrada, S. Gómez-Peñate, and E. Escobar-Gómez, “Digital Twin of a Hydraulic System with Leak Diagnosis Applications,” Processes, vol. 11, no. 10, p. 3009, Oct. 2023, doi: 10.3390/pr11103009.
E. Q. Shahra, W. Wu, S. Basurra, and A. Aneiba, “Intelligent Edge-Cloud Framework for Water Quality Monitoring in Water Distribution System,” Water (Basel), vol. 16, no. 2, p. 196, Jan. 2024, doi: 10.3390/w16020196.
P. R. Page, A. M. Abu-Mahfouz, and S. Yoyo, “Real-time Adjustment of Pressure to Demand in Water Distribution Systems: Parameter-less P-controller Algorithm,” Procedia Eng, vol. 154, pp. 391–397, 2016, doi: 10.1016/j.proeng.2016.07.498.
N. M. Yoeseph, F. A. Purnomo, R. Hartono, and Nuryani, “Lora-based IoT sensor node for Real-time Flood Early Warning System,” IOP Conf Ser Earth Environ Sci, vol. 986, no. 1, p. 012060, Feb. 2022, doi: 10.1088/1755-1315/986/1/012060.
E. F. Khairullah, A. M. Alghamdi, M. M. Al mojamed, and S. Zeadally, “LoRaWAN-based smart water management IoT applications: a review,” Journal of Information and Telecommunication, vol. 9, no. 3, pp. 420–446, Jul. 2025, doi: 10.1080/24751839.2025.2458889.
A. M. Abu-Mahfouz, Y. Hamam, P. R. Page, K. B. Adedeji, A. O. Anele, and E. Todini, “Real-Time Dynamic Hydraulic Model of Water Distribution Networks,” Water (Basel), vol. 11, no. 3, p. 470, Mar. 2019, doi: 10.3390/w11030470.
O. M. Awe, S. T. A. Okolie, and O. S. I. Fayomi, “Optimization of Water Distribution Systems: A Review,” J Phys Conf Ser, vol. 1378, no. 2, p. 022068, Dec. 2019, doi: 10.1088/1742-6596/1378/2/022068.
A. Di Nardo, A. Cavallo, M. Di Natale, R. Greco, and G. F. Santonastaso, “Dynamic Control of Water Distribution System Based on Network Partitioning,” Procedia Eng, vol. 154, pp. 1275–1282, 2016, doi: 10.1016/j.proeng.2016.07.460.
DOI: https://doi.org/10.47738/jads.v7i1.1188
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)