<?xml version="1.0" encoding="UTF-8"?>
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<front><article-meta>
<title-group><article-title>AI and IoT in Smart Water Management for Urban Sustainability</article-title></title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Mondal</surname><given-names>Priyanka</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<aff id="aff1">School of Computer Science Engineering, KIIT University, Bhubaneswar, India.</aff>
</contrib-group>
<abstract><p>The swift increase in urban populations has exerted tremendous pressure on water resources, leading to significant issues such as water shortage, poor distribution, and recurring leakage problems. Conventional water management systems, typically marked by manual oversight and slow responses, find it difficult to satisfy the requirements of contemporary cities. In this scenario, new technologies like Artificial Intelligence (AI) and the Internet of Things (IoT) provide effective, scalable solutions to these issues by allowing cities to implement smart water management strategies. Incorporating IoT technology into urban water systems enables the use of interconnected sensors that monitor variables like water flow, usage, pressure, and quality throughout the distribution network. These IoT devices generate real-time data streams, delivering important insights into the condition and performance of water supply systems. This ongoing, automated observation greatly enhances the speed of data collection in comparison to conventional manual methods. Conversely, analytics driven by AI increase the utility of real-time data by analyzing large datasets with the help of machine learning algorithms. These algorithms are capable of identifying anomalies (for instance, leaks), improving resource distribution, and forecasting future water usage trends. AI models can utilize historical data to generate predictive insights, enabling water managers to expect consumption surges, potential system breakdowns, or necessary maintenance tasks. Specifically, AI-enabled predictive maintenance can stop minor problems, like leaks or blockages in pipes, from developing into expensive failures that affect the entire system. This study investigates the architecture, applications, and benefits of AI and IoT technologies in tackling challenges related to urban water management. It examines particular instances where these technologies have effectively been implemented to decrease water wastage, enhance distribution efficiency, and guarantee high water quality. For instance, by enabling the early identification of leaks and continuous monitoring of water quality, AI and IoT help lower operational expenses and environmental effects while ensuring consistent access to clean water for urban communities. The research also examines case studies from cities like Barcelona and Singapore that have implemented AI and IoT for intelligent water management, showcasing actual advantages such as decreased water losses, improved distribution, and increased system resilience. These instances underscore the transformative capabilities of AI and IoT in developing sustainable and resilient urban water systems, which are vital as cities confront the combined challenges of climate change and rising population. Ultimately, the paper offers perspectives on future research avenues, highlighting the importance of ongoing advancements in AI models, edge computing, and blockchain technologies to further improve transparency, security, and efficiency within water management systems. The ability of AI and IoT solutions to scale will be essential for maintaining the sustainability of urban water resources as cities expand.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Artificial intelligence</kwd><kwd>Internet of things</kwd><kwd>Smart water management</kwd><kwd>Urban sustainability</kwd><kwd>Real-time monitoring</kwd><kwd>Predictive analytics</kwd><kwd>Water conservation</kwd></kwd-group>
</article-meta></front>
<body>
<sec id="sec-1"><label>1</label><title>Introduction</title>
<p>Water management is one of the most pressing issues facing urban planners today, especially as urban areas grow rapidly <xref ref-type="bibr" rid="ref-1">[1]</xref>. Traditionally, water management has relied on centralized systems, with water flow and quality data collected manually or through limited monitoring. This approach often leads to inefficiencies, delayed leak detection, and water wastage <xref ref-type="bibr" rid="ref-2">[2]</xref>. As the demand for water increases, these traditional methods are no longer sufficient.</p>
<p>The combination of Artificial Intelligence (AI) and Internet of Things (IoT) offers a modern solution to these challenges <xref ref-type="bibr" rid="ref-2">[2]</xref>. IoT devices such as sensors can monitor water usage, flow, pressure, and quality in real-time. AI algorithms can then process this data to predict demand, detect leaks, and optimize distribution. The result is a more sustainable and efficient water management system capable of meeting the demands of urban growth <xref ref-type="bibr" rid="ref-3">[3]</xref>.</p>
<sec id="sec-2"><label>1.1</label><title>Artificial Intelligence and Internet of Things for Water Management</title>
<p>IoT devices are essential for collecting real-time data in water management systems <xref ref-type="bibr" rid="ref-4">[4]</xref>. Sensors installed in water pipes, reservoirs, and treatment plants constantly monitor flow rates, water quality parameters (like PH and turbidity), and pressure. AI, on the other hand, plays a crucial role in analyzing this vast amount of data <xref ref-type="bibr" rid="ref-5">[5]</xref>. Machine learning algorithms can detect patterns, predict potential failures, and make real-time adjustments to optimize water distribution and detect leaks <xref ref-type="bibr" rid="ref-6">[6]</xref>. Predictive analytics enhances decision-making by identifying potential issues before they escalate.</p>
<p>For example, machine learning models can predict future water demand based on historical consumption data and external factors such as weather patterns.</p>
<p>This enables water managers to plan and allocate resources more efficiently, ensuring supply meets demand while minimizing waste.</p>
</sec>
</sec>
<sec id="sec-3"><label>2</label><title>Framework for Smart Water Management</title>
<p>The AI and IoT-based water management systems framework consists of three interconnected layers: 1) the cloud layer, 2) the fog layer, and 3) the sensor layer. These layers work together to ensure real-time data processing, efficient decision-making, and long-term data analysis.</p>
<sec id="sec-4"><label>2.1</label><title>Cloud Layer</title>
<p>This is the highest layer in the architecture, where long-term data storage and analytics are conducted. Historical water usage data, water quality records, and other relevant information are stored in the cloud, where large-scale processing and trend analysis can occur <xref ref-type="bibr" rid="ref-7">[7]</xref>. The cloud is also responsible for archiving data that can be used for regulatory reporting, auditing, or further research.</p>
</sec>
<sec id="sec-5"><label>2.2</label><title>Fog Layer</title>
<p>The fog layer sits between the cloud and the sensor layer <xref ref-type="bibr" rid="ref-8">[8]</xref>. It comprises fog nodes or edge devices that handle local data processing, filtering, and real-time analytics. These devices are located closer to the water distribution networks, allowing immediate analysis and decision-making without sending all data to the cloud. The fog layer is critical for real-time leak detection and localized water flow adjustments.</p>
</sec>
<sec id="sec-6"><label>2.3</label><title>Sensor Layer</title>
<p>The IoT sensors are at the bottom of the framework, distributed across the urban water network. These sensors gather data on flow rates, water quality (PH, turbidity, etc.), and pressure. This data is sent to the fog layer for preliminary processing and immediate response. The sensor layer plays an essential role in monitoring the supply and consumption of water in real time.</p>
<p><xref ref-type="fig" rid="fig1">Fig. 1</xref> illustrates the architecture of AI and IoT-based smart water management systems, showcasing how data flows between the sensor, fog, and cloud layers.</p>
<fig id="fig1"><label>Figure 1</label><caption><p>Architecture of artificial intelligence and internet of things-based water management systems.</p></caption><graphic xlink:href="https://uda.reapress.com/public/journals/1/jats-figures/36/fig-1-141b7b995b68.png"/></fig>
<table-wrap id="tab1"><label>Table 1</label><caption><p>Artificial intelligence and internet of things components for smart water management.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:66,545.3,537.1,568.7"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>Cloud layer Centralized servers Long-term data storage, analytics Fog layer Fog nodes or edge devices Real-time processing and analytics Sensor layer IoT devices Data generation (water usage, quality)</p>
</sec>
</sec>
<sec id="sec-7"><label>3</label><title>Applications of Artificial Intelligence and Internet of Things in Water Management</title>
<sec id="sec-8"><label>3.1</label><title>Leak Detection</title>
<p>One of the most impactful applications of AI and IoT in water management is leak detection <xref ref-type="bibr" rid="ref-9">[9]</xref>. In traditional systems, leaks can go unnoticed for long periods, causing significant water loss and damage to infrastructure. IoT sensors installed along water distribution pipelines continuously monitor water flow and pressure. When a leak occurs, there is a pressure drop or an unexpected change in flow rate. AI algorithms analyze this data in real time, identifying the leak&apos;s location and alerting maintenance teams for prompt repairs.</p>
<p>In addition to detecting leaks, AI can predict the likelihood of future leaks by analyzing historical data on pressure and flow, combined with information on the age and material of the pipes. This predictive maintenance can help prevent leaks, reducing water wastage and repair costs.</p>
</sec>
<sec id="sec-9"><label>3.2</label><title>Water Quality Monitoring</title>
<p>Ensuring water quality is essential for both public health and regulatory compliance. IoT sensors can monitor various aspects of water quality, including PH levels, turbidity, and contaminants like heavy metals or harmful bacteria. AI analyzes this data in real-time, ensuring water quality remains within safe limits. If a sensor detects deviations from these limits, the system can take immediate action, such as triggering alerts, shutting off contaminated network sections, or rerouting clean water <xref ref-type="bibr" rid="ref-10">[10]</xref>.</p>
<p>Furthermore, AI can identify patterns in water quality data to predict future issues. For example, a slight increase in turbidity over time might indicate an impending problem with water filtration. By addressing these issues proactively, cities can avoid water contamination incidents and ensure a safe water supply to their residents <xref ref-type="bibr" rid="ref-10">[10]</xref>.</p>
<table-wrap id="tab2"><label>Table 2</label><caption><p>Comparison of traditional vs. AI-driven water management approaches.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:66,50.8,537.1,119.7"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
</sec>
<sec id="sec-10"><label>4</label><title>Case Studies</title>
<sec id="sec-11"><label>4.1</label><title>Case Study: Barcelona&apos;s Smart Water Network</title>
<p>Barcelona is one of the leading examples of cities using AI and IoT for smart water management. The city has deployed a vast network of IoT sensors throughout its water distribution system to monitor consumption, detect leaks, and ensure water quality. These sensors provide real-time data that AI models analyze to optimize water flow and distribution, detect and fix leaks early, and ensure that water quality standards are met. Implementing AI and IoT has resulted in significant reductions in water wastage and improved efficiency in water distribution. The city has reported a 25% reduction in water losses due to early leak detection and a 30% improvement in water distribution efficiency. <xref ref-type="fig" rid="fig2">Fig. 2</xref> illustrates Barcelona&apos;s smart water network, showcasing the placement of IoT sensors and the data flow between the city&apos;s water management system and the cloud.</p>
<fig id="fig2"><label>Figure 2</label><caption><p>Barcelona&apos;s smart water network.</p></caption><graphic xlink:href="https://uda.reapress.com/public/journals/1/jats-figures/36/fig-2-dbfa5a4841c6.jpg"/></fig>
</sec>
<sec id="sec-12"><label>4.2</label><title>Case Study: Singapore&apos;s Intelligent Water Grid</title>
<p>Singapore&apos;s Public Utilities Board (PUB) has implemented an intelligent water grid that leverages AI and IoT for water management. The grid integrates IoT sensors, cloud-based data analytics, and AI models to monitor water usage, predict demand, and optimize water supply. The system ensures the city maintains a consistent and sustainable water supply while minimizing wastage.</p>
<p>The grid also monitors water quality and can detect contaminants in real time, ensuring the water supply remains safe for consumption. Through AI-driven predictive analytics, the PUB can forecast water demand during peak usage, allowing for better planning and resource allocation.</p>
</sec>
</sec>
<sec id="sec-13"><title>Acknowledgments</title>
<p>We sincerely thank KIIT university for providing the necessary resources and infrastructure to conduct this research. Special thanks go to dr. Hitesh Mahapatra for his invaluable guidance and unwavering support throughout this project. His insights were instrumental in shaping the research methodology and outcomes. We also extend our appreciation to our colleagues at KIIT university for their constructive feedback, technical assistance, and collaborative efforts, which greatly enhanced the quality of this study.</p>
</sec>
<sec id="sec-14"><title>Authors&apos; Contributions</title>
<p>The author was responsible for all stages of the research and manuscript preparation and approved the final version.</p>
</sec>
<sec id="sec-15"><title>Consent for Publication</title>
<p>The author has provided their consent for the publication of this manuscript.</p>
</sec>
<sec id="sec-16"><title>Ethics Approval and Consent to Participate</title>
<p>This article does not involve studies with human participants or animals conducted by the author.</p>
</sec>
<sec id="sec-17"><title>Funding</title>
<p>This research was supported by KIIT university, which provided the infrastructure and computational resources necessary for conducting the experiments and simulations. We are deeply grateful to the administrative and technical staff for their in-kind support, which included access to laboratory equipment, computing facilities, and essential materials. Their contributions were critical to completing this research on AI and IoT for smart water management in urban sustainability.</p>
</sec>
<sec id="sec-18"><title>Data Availability</title>
<p>The data supporting this study&apos;s findings are available at <ext-link ext-link-type="uri" xlink:href="https://github.com/KOSASIH/AquaGuard">https://github.com/KOSASIH/AquaGuard</ext-link>. All datasets and code generated during the research are publicly archived at SmartThingsPublic. Any additional data used in simulations or analyses unavailable in the repository can be obtained upon request from the</p>
</sec>
<sec id="sec-19"><title>Conflicts of Interest</title>
<p>The authors declare that no conflicts of interest are associated with this study. The funding entities, including KIIT university, had no involvement in the conceptualization, design, data collection, analysis, interpretation, or manuscript preparation. Furthermore, they did not influence the decision to publish the findings in any way. No personal or financial interests exist that could be construed as having any undue influence on the results or their interpretation.</p>
</sec>
<sec id="sec-20"><title>Appendix</title>
<sec id="sec-21"><title>Additional data processing details</title>
<p>This section explains the data processing techniques employed in the simulations for smart water management. While not covered extensively in the main text, these supplementary methods offer a deeper understanding of the technical execution used for analyzing water flow, quality, and leak detection.</p>
</sec>
<sec id="sec-22"><title>Data filtering algorithm</title>
<p>The following algorithm is applied at the fog nodes to filter out redundant or irrelevant data, ensuring that only the most crucial information is processed and transmitted for real-time decision-making:</p>
</sec>
<sec id="sec-23"><title>Input</title>
<p>Raw data from IoT devices monitoring water pressure, flow rates, and quality.</p>
</sec>
<sec id="sec-24"><title>Process</title>
<p>I. Check for predefined threshold conditions (e.g., acceptable pressure range and water quality parameters such as PH and turbidity).</p>
<p>II. Filter out data packets that do not meet these conditions, such as noise or anomalies unrelated to leaks or contamination .</p>
</sec>
<sec id="sec-25"><title>Output</title>
<p>Cleaned, relevant data is ready for real-time processing and decision-making, ensuring that only important events, such as potential leaks or quality issues, trigger alerts.</p>
<p>This filtering technique reduces the volume of data sent to the cloud, optimizing bandwidth usage and lowering computational load.</p>
</sec>
<sec id="sec-26"><title>Mathematical model for water loss reduction</title>
<p>The following model quantifies the percentage reduction in water loss achieved through the use of AI and IoT in water management:</p>
<p>ΔW = (Traditional− LAI-IoT)/Ltraditional×100, where: 1) ΔW = Percentage reduction in water loss, 2) Ltraditional = Water loss in traditional systems(without AI and IoT) and 3) LAI-IoT = Water loss in AI and IoT-managed systems.</p>
<p>This formula demonstrates how, as discussed in Section 3 of the paper, using real-time leak detection and predictive analytics in smart water management systems significantly reduces water losses.</p>
</sec>
<sec id="sec-27"><title>Additional figures</title>
<fig><label>Figure 1</label><caption><p>hierarchical architecture of a smart water management system, showing the relationship between the sensor layer, fog layer, and cloud layer. This figure expands on the architecture outlined in the main text by providing a clearer view of how data is processed and transmitted at each level.</p></caption></fig>
<fig><label>Figure 2</label><caption><p>workflow diagram depicting the interaction between IoT sensors and fog nodes for real-time leak detection and water quality monitoring. This figure complements the explanation in Section 3.2, showing how data is processed locally, and decisions are made instantaneously to reduce water loss and ensure safe drinking water.</p></caption></fig>
</sec>
<sec id="sec-28"><title>Additional experimental results</title>
<p>Table A1 presents a comparative analysis of traditional and AI-IoT-based water management systems. It shows how the integration of AI and IoT results in significant reductions in water loss, system response time, and bandwidth usage.</p>
<p>Table A1. Comparative analysis of traditional and artificial intelligence-internet of things-based water management systems.</p>
<p>Application Traditional Water Loss AI-IoT Water Loss Reduction in Water Loss (%) (%) (%) Leak detection 15 5 66.7 Water quality monitoring 10 3 70.0 Optimized distribution 8 2 75.0</p>
<p>Table A2. Comparative analysis of traditional vs. artificial intelligence-internet of things enhanced water management systems.</p>
<p>Metric Traditional Water AI-IoT Enhanced Water Improvement Management Management (%) Average response time to leaks (hours) 24 2 91.67 Water loss due to leaks (%) 15 5 66.67 Frequency of water quality monitoring 1 24 2400 (times per day) Operational costs (annual, $) $500,000 $300,000 40 User satisfaction rating (1-10) 5 9 80</p>
<p>Table A2 compares key metrics between traditional water management systems and those enhanced by AI and IoT technologies. The improvements demonstrate the effectiveness of integrating modern technologies in improving operational efficiency, reducing costs, and increasing user satisfaction in urban water management.</p>
</sec>
</sec>
</body>
<back><ref-list><title>References</title>
<ref id="ref-1"><label>1</label><mixed-citation>Essamlali, I., Nhaila, H., &amp; El Khaili, M. (2024). Advances in machine learning and IoT for water quality monitoring: A comprehensive review. Heliyon, 10(6), e27920. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.heliyon.2024.e27920">https://doi.org/10.1016/j.heliyon.2024.e27920</ext-link></mixed-citation></ref>
<ref id="ref-2"><label>2</label><mixed-citation>Guezouli, L., Guezouli, L., Djeghaba, M., &amp; Bentahrour, A. (2024). IoT and AI for Real-time water monitoring and leak detection. Journal of renewable energies, 27(2), 243–281. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.54966/jreen.v27i2.1210">https://doi.org/10.54966/jreen.v27i2.1210</ext-link></mixed-citation></ref>
<ref id="ref-3"><label>3</label><mixed-citation>Das, R. (2024). Smart urban water management: integrating AI and IoT for optimization and waste reduction. Optimality, 1(2), 309–317. <ext-link ext-link-type="uri" xlink:href="https://opt.reapress.com/journal/article/view/62">https://opt.reapress.com/journal/article/view/62</ext-link></mixed-citation></ref>
<ref id="ref-4"><label>4</label><mixed-citation>Dwarakanath, B., Kalpana Devi, P., Kumar A, R., M Metwally, A. S., Ashraf, G. A., &amp; Thamineni, B. L. L. (2023). Smart IoT-based water treatment with a supervisory control and data acquisition (SCADA) system process. Water reuse, 13(3), 411–431. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2166/wrd.2023.052">https://doi.org/10.2166/wrd.2023.052</ext-link></mixed-citation></ref>
<ref id="ref-5"><label>5</label><mixed-citation>Hasan, T., Kabashi, N., Saleh, T., Alam, M., Wahab, M., &amp; Nour, A. (2024). Water quality monitoring using machine learning and IOT: A review. Chemical and natural resources engineering journal (formally known as biological and natural resources engineering journal), 8(2), 32–54. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.31436/cnrej.v8i2.100">https://doi.org/10.31436/cnrej.v8i2.100</ext-link></mixed-citation></ref>
<ref id="ref-6"><label>6</label><mixed-citation>Asadi, Y. (2024). Employing machine learning in water infrastructure management: Predicting pipeline failures for improved maintenance and sustainable operations. Industrial artificial intelligence, 2(1), 8. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s44244-024-00022-w">https://doi.org/10.1007/s44244-024-00022-w</ext-link></mixed-citation></ref>
<ref id="ref-7"><label>7</label><mixed-citation>Mohapatra, H., &amp; Rath, A. K. (2020). IoT-based smart water. In IoT technologies in smart cities: From sensors to big data, security and trust (pp. 63-82). IET. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1049/PBCE128E_ch3">https://doi.org/10.1049/PBCE128E_ch3</ext-link></mixed-citation></ref>
<ref id="ref-8"><label>8</label><mixed-citation>Bonomi, F., Milito, R., Zhu, J., &amp; Addepalli, S. (2012). Fog computing and its role in the internet of things. Proceedings of the first edition of the mcc workshop on mobile cloud computing (pp. 13–16). New York, NY, USA: association for computing machinery. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1145/2342509.2342513">https://doi.org/10.1145/2342509.2342513</ext-link></mixed-citation></ref>
<ref id="ref-9"><label>9</label><mixed-citation>Li, L., &amp; Chen, H. (2023). Artificial intelligence and internet of things-based leak detection method for the water supply network. International transactions on electrical energy systems, 2023(1), 3443047. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1155/2023/3443047">https://doi.org/10.1155/2023/3443047</ext-link></mixed-citation></ref>
<ref id="ref-10"><label>10</label><mixed-citation>Das, A., &amp; Chowdhury, A. R. (2024). Empowering sustainable water management: The confluence of artificial intelligence and internet of things. In current directions in water scarcity research (pp. 275–291). Elsevier. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/B978-0-443-23631-0.00019-4">https://doi.org/10.1016/B978-0-443-23631-0.00019-4</ext-link></mixed-citation></ref>
</ref-list></back>
</article>