{"id":4445,"date":"2025-06-30T10:40:50","date_gmt":"2025-06-30T03:40:50","guid":{"rendered":"https:\/\/filkom.ub.ac.id\/project\/?p=4445"},"modified":"2025-06-30T10:40:50","modified_gmt":"2025-06-30T03:40:50","slug":"smart-water-leak-detection-based-on-aiot","status":"publish","type":"post","link":"https:\/\/filkom.ub.ac.id\/project\/2025\/06\/smart-water-leak-detection-based-on-aiot\/","title":{"rendered":"Smart Water Leak Detection Based on AIoT"},"content":{"rendered":"<h1><b>Smart Water Leak Detection Based on AIoT<\/b><\/h1>\n<h1><b><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4550\" src=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.19.20.jpeg\" alt=\"\" width=\"1280\" height=\"349\" srcset=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.19.20.jpeg 1280w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.19.20-300x82.jpeg 300w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.19.20-1024x279.jpeg 1024w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.19.20-768x209.jpeg 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/b><\/h1>\n<p><span style=\"font-weight: 400\">Smart Water Leak Detection product is an IoT-based smart solution designed to monitor water flow and automatically detect leaks in piping systems. This product combines flow sensors, pressure sensors, and artificial intelligence algorithms to detect flow anomalies that indicate leaks. Equipped with cloud connectivity and a monitoring dashboard, this product provides real-time notifications to users to prevent further damage and save water usage.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-4559\" src=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.19.51.jpeg\" alt=\"\" width=\"846\" height=\"508\" srcset=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.19.51.jpeg 846w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.19.51-300x180.jpeg 300w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.19.51-768x461.jpeg 768w\" sizes=\"(max-width: 846px) 100vw, 846px\" \/><\/p>\n<h1><span style=\"font-weight: 400\">\ud83c\udf10 <\/span><b>Project Domain<\/b><span style=\"font-weight: 400\">\u00a0<\/span><\/h1>\n<p><span style=\"font-weight: 400\">This project falls under the IoT\u2011based smart water management domain, focusing on real\u2011time detection and localization of water leaks in PDAM pipelines. By integrating flow sensors, pressure sensors, and an ESP32 microcontroller with embedded AI, it provides accurate leak detection, seamless connectivity to AWS IoT, and remote monitoring capabilities through the Blynk app, making it ideal for supporting PDAM operators and field technicians.<\/span><\/p>\n<h1><b>\ud83e\uddd1\u200d\ud83e\udd1d\u200d\ud83e\uddd1 Meet Our Team<\/b><\/h1>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">\ud83d\udc68\u200d\ud83d\udcbc\u00a0<\/span><span style=\"font-weight: 400\"><b>Project Leader<\/b><\/span><span style=\"font-weight: 400\"> : Rihan Hidayat (225150301111009)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><b>\ud83d\udda5\ufe0fEmbedded System <\/b>: Muhamad Aditya Sanjaya (225150301111011)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><b>\ud83e\udd16 AI Engineer : <\/b>Rifky Akhsanul Hadi (225150207111012 )<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><b>\ud83d\udd27Hardware Engineer :\u00a0<\/b> Reyhan Rashid Rizqullah (225150300111047)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><b>\u2601\ufe0fCloud System : <\/b>Afifah Maulidiah (225150300111033 )<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-4586\" src=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.39.31.jpeg\" alt=\"\" width=\"1280\" height=\"525\" srcset=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.39.31.jpeg 1280w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.39.31-300x123.jpeg 300w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.39.31-1024x420.jpeg 1024w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.39.31-768x315.jpeg 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<h1><span style=\"font-weight: 400\">\u2757 <\/span><b>Problem Statements<\/b><\/h1>\n<p><span style=\"font-weight: 400\">Water leaks in pipe distribution systems, both in household and industrial environments, are often not detected early. This can lead to waste of water resources, damage to infrastructure, and increase operational costs. Conventional methods for detecting leaks, such as manual inspections or periodic meter readings, are not effective in providing a quick response to sudden or hidden leaks. Therefore, a water leak detection system is needed that is automatic, real-time, and able to provide early notification to users, so that preventive measures can be taken immediately to minimize the negative impacts of the leak.<\/span><\/p>\n<h1><span style=\"font-weight: 400\">\ud83c\udfaf <\/span><b>Goals<\/b><\/h1>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Develop a system that can detect and find pipe leaks automatically.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Reducing water waste due to undetected leaks.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Assists in preventing further damage to pipelines and supports data-driven preventive maintenance.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Embedding machine learning in a smart water leak detection system<\/span><\/li>\n<\/ul>\n<h1><span style=\"font-weight: 400\">\ud83d\udca1 <\/span><b>Solution Statements<\/b><\/h1>\n<p><span style=\"font-weight: 400\">To overcome the problem of water leaks that often go undetected and cause waste and damage to infrastructure, a system called Smart Water Leak Detection based on the Internet of Things (IoT) was developed. This system automatically monitors water flow and pressure using integrated sensors, and applies artificial intelligence algorithms to detect leaks in real time. Data is sent to a cloud platform and displayed via a monitoring dashboard, allowing users to receive early notifications and take quick action before the damage becomes more severe.<\/span><\/p>\n<h1><span style=\"font-weight: 400\">\ud83e\uddf0 <\/span><b>Prerequisites \u2013 Component Preparation<\/b><\/h1>\n<h4 data-start=\"233\" data-end=\"254\">\u26a1 <strong data-start=\"240\" data-end=\"252\">Hardware<\/strong><\/h4>\n<ul>\n<li data-start=\"255\" data-end=\"916\"><strong data-start=\"258\" data-end=\"285\">ESP32 Development Board<\/strong>: Main controller with Wi\u2011Fi connectivity and processing capabilities for sensor data and AI inference<\/li>\n<li data-start=\"255\" data-end=\"916\"><strong data-start=\"393\" data-end=\"419\">Flow Sensors (YF\u2011S201)<\/strong>: Measure water flow rate before and after potential leak points<\/li>\n<li data-start=\"255\" data-end=\"916\"><strong data-start=\"489\" data-end=\"529\">Water Pressure Sensor (G1\/4 1.2\u202fMpa)<\/strong>: Monitor pressure changes caused by potential leaks<\/li>\n<li data-start=\"255\" data-end=\"916\"><strong data-start=\"587\" data-end=\"621\" data-is-only-node=\"\">Power Supply (5V \/ Power Bank)<\/strong>: Provides stable and continuous power for ESP32 and sensors<\/li>\n<li data-start=\"255\" data-end=\"916\"><strong data-start=\"687\" data-end=\"714\">Resistors (15k\u03a9 &amp; 10k\u03a9)<\/strong>: Serve as a voltage divider to adjust sensor output for ESP32 analog input range<\/li>\n<li data-start=\"255\" data-end=\"916\"><strong data-start=\"802\" data-end=\"835\">Prototype Pipe Simulation Kit<\/strong>: Includes PVC pipes, valves, and fittings for realistic leak detection testing<\/li>\n<\/ul>\n<h4 data-start=\"918\" data-end=\"951\">\ud83d\udcbb <strong data-start=\"926\" data-end=\"949\">Software &amp; Services<\/strong><\/h4>\n<ul>\n<li data-start=\"952\" data-end=\"1369\"><strong data-start=\"958\" data-end=\"973\">Arduino IDE<\/strong>: Development environment for ESP32 programming and sensor data processing<\/li>\n<li data-start=\"952\" data-end=\"1369\"><strong data-start=\"1053\" data-end=\"1108\">Google Colab + TensorFlow Lite for Microcontrollers<\/strong>: Model training and conversion for AI inference on ESP32<\/li>\n<li data-start=\"952\" data-end=\"1369\"><strong data-start=\"1171\" data-end=\"1187\">AWS IoT Core<\/strong>: Enables secure cloud connectivity, data storage, and remote access<\/li>\n<li data-start=\"952\" data-end=\"1369\"><strong data-start=\"1261\" data-end=\"1281\" data-is-only-node=\"\">Blynk Mobile App<\/strong>: Provides remote monitoring, real\u2011time status, and leak detection alerts to end-users<\/li>\n<\/ul>\n<h1><span style=\"font-weight: 400\">\ud83e\udde9 <\/span><b>Schematic<\/b><\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4642\" src=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.22.00.jpeg\" alt=\"\" width=\"955\" height=\"778\" srcset=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.22.00.jpeg 955w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.22.00-300x244.jpeg 300w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.22.00-768x626.jpeg 768w\" sizes=\"(max-width: 955px) 100vw, 955px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4648\" src=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.22.28.jpeg\" alt=\"\" width=\"822\" height=\"720\" srcset=\"https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.22.28.jpeg 822w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.22.28-300x263.jpeg 300w, https:\/\/filkom.ub.ac.id\/project\/wp-content\/uploads\/sites\/3\/2025\/06\/WhatsApp-Image-2025-06-20-at-20.22.28-768x673.jpeg 768w\" sizes=\"(max-width: 822px) 100vw, 822px\" \/><\/p>\n<h1><span style=\"font-weight: 400\">\ud83c\udfac <\/span><b>Demo<\/b><\/h1>\n<p><br data-start=\"660\" data-end=\"663\" \/>Run water through the pipeline, simulate leak conditions by opening the leak valves, and observe the ESP32 detecting anomalies. The Blynk app displays flow and pressure data in real\u2011time and triggers instant leak alerts when anomalies occur.<\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1Yyq7fxH6I9fgnn2ybPU2eSx9vKLyVgkS\/view\"><span style=\"font-weight: 400\">You can watch a demo of the Smart Water Leak Detection System here<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400\">\ud83d\udd2c <\/span><b>Evaluation<\/b><span style=\"font-weight: 400\">:<\/span><\/p>\n<ul>\n<li>Model Inference Accuracy\n<ul>\n<li data-start=\"471\" data-end=\"730\">\n<p data-start=\"473\" data-end=\"617\"><strong data-start=\"473\" data-end=\"504\">Leak Detection Model (FNN):<\/strong> Achieved an F1\u2011score of approximately <strong data-start=\"543\" data-end=\"552\">88.8%<\/strong> for multi\u2011class leak detection, reliably distinguishing between:<\/p>\n<ol>\n<li data-start=\"471\" data-end=\"730\">\n<p data-start=\"473\" data-end=\"617\">No leak (normal conditions)<\/p>\n<\/li>\n<li data-start=\"654\" data-end=\"673\">\n<p data-start=\"656\" data-end=\"673\">Leak at point 1<\/p>\n<\/li>\n<li data-start=\"676\" data-end=\"695\">\n<p data-start=\"678\" data-end=\"695\">Leak at point 2<\/p>\n<\/li>\n<li data-start=\"698\" data-end=\"730\">\n<p data-start=\"700\" data-end=\"730\">Leaks at both points (1 and 2)<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"732\" data-end=\"779\">Inference and System Response Time\n<ul>\n<li data-start=\"780\" data-end=\"920\">\n<p data-start=\"782\" data-end=\"920\"><strong data-start=\"782\" data-end=\"816\">Local Model Inference (ESP32):<\/strong> ~<strong data-start=\"818\" data-end=\"830\">1 second<\/strong> average for sensor data acquisition, feature scaling, AI inference, and leak detection.<\/p>\n<\/li>\n<li data-start=\"921\" data-end=\"1034\">\n<p data-start=\"923\" data-end=\"1034\"><strong data-start=\"923\" data-end=\"960\">Blynk Notification Response Time:<\/strong> Under <strong data-start=\"967\" data-end=\"980\">2 seconds<\/strong> from detection, allowing quick alerting and action.<\/p>\n<\/li>\n<li data-start=\"1035\" data-end=\"1164\">\n<p data-start=\"1037\" data-end=\"1164\"><strong data-start=\"1037\" data-end=\"1066\">AWS IoT Message Delivery:<\/strong> Approximately <strong data-start=\"1081\" data-end=\"1096\">1\u20132 seconds<\/strong>, providing near\u2011real\u2011time cloud availability for remote monitoring.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"2271\" data-end=\"2312\">User Experience and Monitoring\n<ul>\n<li data-start=\"2313\" data-end=\"2465\">\n<p data-start=\"2315\" data-end=\"2465\">The system provides seamless real\u2011time alerts through the <strong data-start=\"2373\" data-end=\"2386\">Blynk app<\/strong>, making it easy for PDAM operators and field technicians to respond quickly.<\/p>\n<\/li>\n<li data-start=\"2466\" data-end=\"2592\">\n<p data-start=\"2468\" data-end=\"2592\">Alerts and status data are reliably transmitted to <strong data-start=\"2519\" data-end=\"2530\">AWS IoT<\/strong>, making long\u2011term trend analysis and leak detection possible.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1><span style=\"font-weight: 400\">\u2705 <\/span><b>Conclusion<\/b><span style=\"font-weight: 400\">\u00a0<\/span><\/h1>\n<p><span style=\"font-weight: 400\">This project delivers a smart, reliable, and efficient solution for detecting and locating water leaks in PDAM pipeline networks. By combining real\u2011time data from flow and pressure sensors with a Feedforward Neural Network embedded in an ESP32 microcontroller, the system can accurately identify both the presence and location of leaks. Its seamless integration with AWS IoT and the Blynk platform allows for remote monitoring and instant notifications, making it an invaluable tool for PDAM operators and field technicians. Future enhancements could focus on increasing detection sensitivity through ensemble learning methods, introducing data buffering to maintain reliability during connectivity interruptions, and designing IP\u2011rated enclosures for improved durability in challenging environments.<\/span><\/p>\n<h1><span style=\"font-weight: 400\">\ud83d\udcf2 <\/span><b>Contact us!<\/b><\/h1>\n<p><strong><i>Our Git: <\/i><\/strong><a href=\"https:\/\/github.com\/RifkyHadi7\/water-leak-detection\"><i><span style=\"font-weight: 400\">https:\/\/github.com\/RifkyHadi7\/water-leak-detection<\/span><\/i><\/a><\/p>\n<p>Our Linkedin :<\/p>\n<ul>\n<li><a class=\"UoDPuppZQNaYnmYgqOnjenLsouficLCqHEAA link-without-visited-state t-14\" href=\"https:\/\/www.linkedin.com\/in\/muhamad-aditya-sanjaya\">https:\/\/<\/a><a class=\"UoDPuppZQNaYnmYgqOnjenLsouficLCqHEAA link-without-visited-state t-14\" href=\"https:\/\/www.linkedin.com\/in\/afifah-maulidiah\">linkedin.com\/in\/afifah-maulidiah<\/a><\/li>\n<li><a class=\"UoDPuppZQNaYnmYgqOnjenLsouficLCqHEAA link-without-visited-state t-14\" href=\"https:\/\/www.linkedin.com\/in\/muhamad-aditya-sanjaya\">https:\/\/www.linkedin.com\/in\/muhamad-aditya-sanjaya<\/a><\/li>\n<li><a class=\"UoDPuppZQNaYnmYgqOnjenLsouficLCqHEAA link-without-visited-state t-14\" href=\"https:\/\/www.linkedin.com\/in\/rihan-hidayat-407619289\">https:\/\/www.linkedin.com\/in\/rihan-hidayat-407619289<\/a><\/li>\n<li><a class=\"UoDPuppZQNaYnmYgqOnjenLsouficLCqHEAA link-without-visited-state t-14\" href=\"https:\/\/www.linkedin.com\/in\/rifky-akhsanul-hadi\">https:\/\/www.linkedin.com\/in\/rifky-akhsanul-hadi<\/a><\/li>\n<li><a class=\"UoDPuppZQNaYnmYgqOnjenLsouficLCqHEAA link-without-visited-state t-14\" href=\"https:\/\/www.linkedin.com\/in\/reyhanrashid\">https:\/\/www.linkedin.com\/in\/reyhanrashid<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Smart Water Leak Detection Based on AIoT Smart Water Leak Detection product is an IoT-based smart solution designed to monitor water flow and automatically detect leaks in piping systems. This product combines flow sensors, pressure sensors, and artificial intelligence algorithms to detect flow anomalies that indicate leaks. Equipped with cloud connectivity and a monitoring dashboard,&#8230;<\/p>\n","protected":false},"author":349,"featured_media":4550,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"default","_kad_post_title":"default","_kad_post_layout":"default","_kad_post_sidebar_id":"","_kad_post_content_style":"default","_kad_post_vertical_padding":"default","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[9,1],"tags":[],"class_list":["post-4445","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-artificial-intelligence-of-thing-aiot","category-capstone"],"_links":{"self":[{"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/posts\/4445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/users\/349"}],"replies":[{"embeddable":true,"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/comments?post=4445"}],"version-history":[{"count":2,"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/posts\/4445\/revisions"}],"predecessor-version":[{"id":4789,"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/posts\/4445\/revisions\/4789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/media\/4550"}],"wp:attachment":[{"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/media?parent=4445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/categories?post=4445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/filkom.ub.ac.id\/project\/wp-json\/wp\/v2\/tags?post=4445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}