Cargando…

Smart Buildings: Water Leakage Detection Using TinyML

The escalating global water usage and the increasing strain on major cities due to water shortages highlights the critical need for efficient water management practices. In water-stressed regions worldwide, significant water wastage is primarily attributed to leakages, inefficient use, and aging inf...

Descripción completa

Detalles Bibliográficos
Autores principales: Atanane, Othmane, Mourhir, Asmaa, Benamar, Nabil, Zennaro, Marco
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10675406/
https://www.ncbi.nlm.nih.gov/pubmed/38005596
http://dx.doi.org/10.3390/s23229210
_version_ 1785149815469899776
author Atanane, Othmane
Mourhir, Asmaa
Benamar, Nabil
Zennaro, Marco
author_facet Atanane, Othmane
Mourhir, Asmaa
Benamar, Nabil
Zennaro, Marco
author_sort Atanane, Othmane
collection PubMed
description The escalating global water usage and the increasing strain on major cities due to water shortages highlights the critical need for efficient water management practices. In water-stressed regions worldwide, significant water wastage is primarily attributed to leakages, inefficient use, and aging infrastructure. Undetected water leakages in buildings’ pipelines contribute to the water waste problem. To address this issue, an effective water leak detection method is required. In this paper, we explore the application of edge computing in smart buildings to enhance water management. By integrating sensors and embedded Machine Learning models, known as TinyML, smart water management systems can collect real-time data, analyze it, and make accurate decisions for efficient water utilization. The transition to TinyML enables faster and more cost-effective local decision-making, reducing the dependence on centralized entities. In this work, we propose a solution that can be adapted for effective leakage detection in real-world scenarios with minimum human intervention using TinyML. We follow an approach that is similar to a typical machine learning lifecycle in production, spanning stages including data collection, training, hyperparameter tuning, offline evaluation and model optimization for on-device resource efficiency before deployment. In this work, we considered an existing water leakage acoustic dataset for polyvinyl chloride pipelines. To prepare the acoustic data for analysis, we performed preprocessing to transform it into scalograms. We devised a water leak detection method by applying transfer learning to five distinct Convolutional Neural Network (CNN) variants, which are namely EfficientNet, ResNet, AlexNet, MobileNet V1, and MobileNet V2. The CNN models were found to be able to detect leakages where a maximum testing accuracy, recall, precision, and F1 score of 97.45%, 98.57%, 96.70%, and 97.63%, respectively, were observed using the EfficientNet model. To enable seamless deployment on the Arduino Nano 33 BLE edge device, the EfficientNet model is compressed using quantization resulting in a low inference time of 1932 ms, a peak RAM usage of 255.3 kilobytes, and a flash usage requirement of merely 48.7 kilobytes.
format Online
Article
Text
id pubmed-10675406
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-106754062023-11-16 Smart Buildings: Water Leakage Detection Using TinyML Atanane, Othmane Mourhir, Asmaa Benamar, Nabil Zennaro, Marco Sensors (Basel) Article The escalating global water usage and the increasing strain on major cities due to water shortages highlights the critical need for efficient water management practices. In water-stressed regions worldwide, significant water wastage is primarily attributed to leakages, inefficient use, and aging infrastructure. Undetected water leakages in buildings’ pipelines contribute to the water waste problem. To address this issue, an effective water leak detection method is required. In this paper, we explore the application of edge computing in smart buildings to enhance water management. By integrating sensors and embedded Machine Learning models, known as TinyML, smart water management systems can collect real-time data, analyze it, and make accurate decisions for efficient water utilization. The transition to TinyML enables faster and more cost-effective local decision-making, reducing the dependence on centralized entities. In this work, we propose a solution that can be adapted for effective leakage detection in real-world scenarios with minimum human intervention using TinyML. We follow an approach that is similar to a typical machine learning lifecycle in production, spanning stages including data collection, training, hyperparameter tuning, offline evaluation and model optimization for on-device resource efficiency before deployment. In this work, we considered an existing water leakage acoustic dataset for polyvinyl chloride pipelines. To prepare the acoustic data for analysis, we performed preprocessing to transform it into scalograms. We devised a water leak detection method by applying transfer learning to five distinct Convolutional Neural Network (CNN) variants, which are namely EfficientNet, ResNet, AlexNet, MobileNet V1, and MobileNet V2. The CNN models were found to be able to detect leakages where a maximum testing accuracy, recall, precision, and F1 score of 97.45%, 98.57%, 96.70%, and 97.63%, respectively, were observed using the EfficientNet model. To enable seamless deployment on the Arduino Nano 33 BLE edge device, the EfficientNet model is compressed using quantization resulting in a low inference time of 1932 ms, a peak RAM usage of 255.3 kilobytes, and a flash usage requirement of merely 48.7 kilobytes. MDPI 2023-11-16 /pmc/articles/PMC10675406/ /pubmed/38005596 http://dx.doi.org/10.3390/s23229210 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Atanane, Othmane
Mourhir, Asmaa
Benamar, Nabil
Zennaro, Marco
Smart Buildings: Water Leakage Detection Using TinyML
title Smart Buildings: Water Leakage Detection Using TinyML
title_full Smart Buildings: Water Leakage Detection Using TinyML
title_fullStr Smart Buildings: Water Leakage Detection Using TinyML
title_full_unstemmed Smart Buildings: Water Leakage Detection Using TinyML
title_short Smart Buildings: Water Leakage Detection Using TinyML
title_sort smart buildings: water leakage detection using tinyml
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10675406/
https://www.ncbi.nlm.nih.gov/pubmed/38005596
http://dx.doi.org/10.3390/s23229210
work_keys_str_mv AT atananeothmane smartbuildingswaterleakagedetectionusingtinyml
AT mourhirasmaa smartbuildingswaterleakagedetectionusingtinyml
AT benamarnabil smartbuildingswaterleakagedetectionusingtinyml
AT zennaromarco smartbuildingswaterleakagedetectionusingtinyml