Next Article in Journal
Time Series Modelling and Predictive Analytics for Sustainable Environmental Management—A Case Study in El Mar Menor (Spain)
Previous Article in Journal
A Novel Information Security Framework for Securing Big Data in Healthcare Environment Using Blockchain
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

An AI-Powered, Low-Cost IoT Node Oriented to Flood Early Warning Systems †

Department of Surveying and Geoinformatics Engineering, School of Engineering, University of West Attica, Egaleo Park Campus, Ag. Spyridonos Street, 12243 Egaleo, Greece
*
Author to whom correspondence should be addressed.
Presented at the 10th International Electronic Conference on Sensors and Applications (ECSA-10), 15–30 November 2023; Available online: https://ecsa-10.sciforum.net/.
Eng. Proc. 2023, 58(1), 44; https://doi.org/10.3390/ecsa-10-16023
Published: 15 November 2023

Abstract

:
The present study aims to design a low-cost smart AI-powered node to serve as a flood Early Warning System with a complete solution. The node is designed to predict forthcoming flood events by capturing and combining critical data related to such phenomena. Such data are the water levels at rivers or other water discharge basins, rainfall, soil moisture, and material displacement at river slopes. The node will autonomously monitor the above quantities at a high frequency rate and selectively upload them to a server only when verified conditions for a forthcoming flood will exist. These conditions will be evaluated by the local ML model. This will allow each node to reliably predict flood events and issue local and remote alarms. The combination of several nodes at an area of interest will form a robust and reliable Early Warning System.

1. Introduction

Natural disaster management presents a challenging field of research and technology applications. Especially during the past decade, climate change has led to several occurrences of extreme weather events, leading to severe natural disasters [1]. Researchers from various scientific fields aim towards achieving viable technological solutions to aid disaster management. One of the most critical kinds of natural disasters is floods. Their extent and magnitude often cause huge social, economic, health, and safety impacts [2].
Flood management via precipitation prediction and hydraulic modeling was proven to be less effective to predict floods [3]. To aid the accuracy of the prediction, several more measurements are required. At this scope, many attempts have been made in the past to employ the Internet of Things (IoT) technology [4], and several IoT-aided Early Warning Systems related to floods have been designed and proposed [2,5,6,7,8]. The IoT can be roughly described as a system that incorporates small and remote electronic devices with low power and usually a low cost that samples data and transmits them to an IoT server for further processing. In the case of EWSs, data from the nodes are used as the input data for several models of disaster prediction.
Since the number of IoT nodes presents a high growth, it is reported that both the network communication latencies [9] and the time needed to process the vast amount of data is increased in order to conclude certain alarms and/or actions. Also, the increasing number of nodes stresses the wireless communication channels, and this can also induce further communication latencies. The increasing latencies lead to delays in taking certain actions. Taking into consideration that the data usage can also be translated to cost, the need to locally process the collected data directly at the end devices has emerged.
While some actions can be triggered using simple threshold values of the received data, more complex decisions, such as those related to flood prediction, require sophisticated algorithms. According to the latest studies in the literature [4,9,10], the most popular method of applying such complex algorithms is the use of Artificial Intelligence (AI). When implemented directly on the IoT nodes, this technology is called the Artificial Intelligence of Things (AIoT) [2]. The AIoT requires more system resources, such as computational power and memory, which are offered in modern embedded platforms and Microcontroller Units (MCUs). In [7], the authors claim to have developed the first large-scale IoT-based real-time flood forecast system that has been enabled by AI and deployed in the real world.
In the present study, a node capable of executing TinyML models and performing AI algorithms is designed. The node has all of the specifications to serve as an IoT device. It is power-autonomous, network-connected, and interfaces with various sensors and actuators. The employed sensor suite matches the needs to serve as part of an EWS designed for floods. Since major flood phenomena relate to riverbank collapses, the design is also oriented towards this phenomenon. To the best of the authors’ knowledge, this is the first study that utilizes accelerometer data at river-related terrestrial locations to study the relation of riverbank/slope movements to an upcoming flood event. In all other flood-related studies, the combination of accelerometer data mainly relates to civil infrastructure monitoring.

2. Materials and Methods

The proposed system is based on a designed system-level electronic device, referred to as the node. The node is completely custom-designed, both in hardware and in software. The hardware design and the operating sequence of the device are described in the following subsections.

2.1. Hardware

The main parts and modules of the node are the Microcontroller Unit (MCU), the power supply unit (PSU), and the data connectivity unit (modem). All circuitry was hosted in a custom designed printed circuit board (PCB), and within a commercial IP65 rated project box, in order to withstand external environmental conditions at the place of deployment. A short description of each main part of the node is presented at the following paragraphs.
The selected MCU is the Microchip ATmega2560 8-bit AVR controller. This MCU offers enough resources (20 MHz clock, 8 kB of SRAM, 256 kB Flash) to be able to run TinyML models, custom-designed for 8-bit architectures. The MCU also has plenty of on-board peripherals, supporting multiple serial communication protocols and Analog-to-Digital converters. The selected module hosting this MCU is the RobotDyn Mega 2560 PRO [11]. The module also offers a USB-to-TTL converter to easily re-program the MCU, together with a flexible power management circuit and ultra-compact footprint.
The PSU is based on a single 3.7 V, 5 Ah, 26650 form factor Li-ion battery cell, paired with a battery charger and a protection circuit using the TP4056 Integrated Circuit (IC). The power source to charge the battery is a 6 V solar panel able to provide a maximum of 1 W of charge power.
Data connectivity is provided via Simcom’s SIM7600G modem [12]. The modem is fitted at an OEM breakout board, which also bears a power management circuit, a SIM card socket, antenna connectors, and all components needed for the modem’s recommended operation. The modem provides LTE/GSM (4G/2G) connectivity.
The block diagram of the system is presented at Figure 1. The various peripherals communicate differently to the MCU. The modem occupies a hardware USART port. Regarding the sensors, the accelerometer uses the I2C line of the MCU, the analog output of the soil moisture sensor is read using one 10-bit ADC, while the rain gauge’s output pulses are read by the MCU by utilizing one external interrupt pin. The raw battery voltage output is used as the main Vcc powering all electronic modules, since each module has its own power management and voltage regulation circuitry. The primary voltage regulator is omitted.
The various external sensors are connected to the node with a cable. The use of cable glands ensures the IP rating of the node’s case and relieves any stress that may be applied to the cables. The sensors selected for this application are a soil moisture sensor (Truebner SMT50 [13]), an ultrasonic ranger used as a water level sensor (MaxBotix MB7066-100 [14]), an accelerometer and gyroscope sensor (Invensense MPU6050) hosted at an OEM breakout board, and a rain gauge sensor (DFRobot SEN0575 [15]). A photograph of a complete prototype and a map of the first deployment location are depicted in Figure 2.

2.2. Operating Sequence

The second important part is the firmware (FW) and the operating sequence of the device. The operating logic diagram is presented in Figure 3. When the node is first powered up, an initialization routine is run to check that the system is fully functional. Then, the node proceeds to a periodic data acquisition from the sensors. Inertial measurement unit (IMU) data from the accelerometer are retrieved at a frequency of 4 Hz and stored at a circular buffer that has a total length of 240 measurement sets. This provides the opportunity to recall a detailed IMU history of 60 s at any moment. Data from the soil moisture sensor, the water level meter, and the rain gauge are sampled at a period of 5 min and stored a secondary circular buffer with total length of 288, providing a measurement history of 24 h.
The secondary buffer is uploaded once per day to the server to keep record of the rain and the soil moisture. On the contrary, the one-minute historical data of the accelerometer are uploaded only at certain occasions. These are the MPU6050 internal programmable interrupt at shake detection or the existence of an event of an angle change calculated according to the following equation [16]:
a F = c × a G + 1 c × a A ,
where:
  • a F : the filtered angle;
  • c : filter tunable constant (0 < c < 1 in order to have a complementary filter that neither overshoots nor attenuates);
  • a G : calculated angle using gyroscope data;
  • a A : calculated angle using accelerometer data.
This logic ensures that critical short-term historical data related to possible material displacement at river slopes will be retrieved. Each of these datasets will be matched to the actual physical phenomenon of flood or landslide at the riverbank, if apparent, and thus be classified. These data will be used as the main training dataset for the tinyML model to detect floods and landslides at riverbanks. Alongside the accelerometer data, precipitation, temperature/RH, and soil moisture data will also contribute to the model training.
The first version of the system will act mostly as a filtered critical data acquisition device, and when the TinyML models are developed, a new firmware will be uploaded to test the efficiency of the model. The Newton framework will be used to train and produce the TinyML model, customized for the 8-bit architecture of this system. Newton is a trusted high-level framework, perfectly fitted for applications requiring fast development, avoiding an in-depth Neural Network optimization.
After loading the TinyML code to the node, when a node detects the risk of a flood, certain local actions can be taken, such as issuing an alarm sign or actuating electromechanical devices to engage a certain anti-flood infrastructure. Certainly, both the data related to the detection of flood risk and the actions applied by the end device will be uploaded to the IoT server for further processing and consequent management actions.

3. Results and Discussion

The overall system proved to be well designed. Operationally, the node’s performance was stable, and the sensor readings were consistent and reliable. Power-wise, the node presented a moderate average current consumption of about 30 mA when acquiring data, and about 50 mA when in the data transmission mode. The overall power autonomy is approx. 5–6 days on a fully charged battery. Although this battery life seems rather short, the real-time and continuous sampling of the sensor data justifies this performance.
The FW logic in terms of data acquisition and upload worked seamlessly. Communication via a cellular network proved to be very consistent, with short network registration and upload/download latencies. The customized data upload protocol reduced data usage to the extent that an inexpensive data plan is sufficient (i.e., 10 MB/month). The prototype node was manually triggered to upload five IMU datasets with a 60 s duration for each. Thus, a 300 s IMU signal was obtained, and it is presented in Figure 4.
According to the project’s timeline, it is expected that the first training dataset will be ready by the end of Q2 2024, and that immediately after, the TinyML models will be deployed. This way, the proposed system will be tested in real-world conditions during the wet season of 2024.

4. Conclusions

This research presented the concept, architecture, design, and development of a low-cost, AI-powered IoT node aimed for flood Early Warning Systems. The node interfaces to several sensors, monitoring critical quantities related to floods, such as the water level at a riverbed, the precipitation, the soil moisture, and the material displacement at river slopes. The first stage of the system, i.e., the development of the prototypes, is concluded. The nodes were tested thoroughly in a laboratory environment and proved to be ready for the next stage of this research. The second stage will be the deployment of a certain number of nodes to the area of interest, the collection of the training dataset for the TinyML model, and the actual training of the model. Further on, the third stage will be the upload of the model to the end nodes, the test of the model, and the characterization of the accuracy for flood prevention. New datasets retrieved from the third stage may also be used for the further training and improvement of the model. All findings are scheduled to be published when available.

Author Contributions

Conceptualization, E.S. and G.H.; methodology, E.S. and G.H.; software, E.S.; writing—original draft preparation, E.S.; writing—review and editing, G.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are unavailable until 31 December 2024 due to privacy agreement restrictions with the Corinth’s Canal Authority.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yang, T.H.; Liu, W.C. A general overview of the risk-reduction strategies for floods and droughts. Sustainability 2020, 12, 2687. [Google Scholar] [CrossRef]
  2. Boulouard, Z.; Ouaissa, M.; Ouaissa, M.; Siddiqui, F.; Almutiq, M.; Krichen, M. An Integrated Artificial Intelligence of Things Environment for River Flood Prevention. Sensors 2022, 22, 9485. [Google Scholar] [CrossRef] [PubMed]
  3. Aljohani, F.H.; Abi Sen, A.A.; Ramazan, M.S.; Alzahrani, B.; Bahbouh, N.M. A Smart Framework for Managing Natural Disasters Based on the IoT and ML. Appl. Sci. 2023, 13, 3888. [Google Scholar] [CrossRef]
  4. Esposito, M.; Palma, L.; Belli, A.; Sabbatini, L.; Pierleoni, P. Recent Advances in Internet of Things Solutions for Early Warning Systems: A Review. Sensors 2022, 22, 2124. [Google Scholar] [CrossRef] [PubMed]
  5. Wang, Q. Machine Learning Model Design for IoT-Based Flooding Forecast. In Proceedings of the 2022 International Conference on Cyber-Enabled Distributed Computing and Knowledge Discovery, Suzhou, China, 14–16 October 2022; pp. 97–103. [Google Scholar] [CrossRef]
  6. Samikwa, E.; Voigt, T.; Eriksson, J. Flood Prediction Using IoT and Artificial Neural Networks with Edge Computing. In Proceedings of the 2020 International Conferences on Internet of Things (iThings) and IEEE Green Computing and Communications (GreenCom) and IEEE Cyber, Physical and Social Computing (CPSCom) and IEEE Smart Data (SmartData) and IEEE Congress on Cybermatics (Cybermatics), Rhodes, Greece, 2–6 November 2020; pp. 234–240. [Google Scholar] [CrossRef]
  7. Wang, Q.; Abdelrahman, W. High-Precision AI-Enabled Flood Prediction Integrating Local Sensor Data and 3rd Party Weather Forecast. Sensors 2023, 23, 3065. [Google Scholar] [CrossRef] [PubMed]
  8. Wilson, A.J.; Pon Bharathi, A.; Anoop, M.; Angelin Jeba Malar, J. Information system for flood monitoring based on IoT and AI. In Proceedings of the 2023 2nd International Conference on Smart Technologies and Systems for Next Generation Computing (ICSTSN), Villupuram, India, 21–22 April 2023; pp. 1–4. [Google Scholar] [CrossRef]
  9. Hou, K.M.; Diao, X.; Shi, H.; Ding, H.; Zhou, H.; de Vaulx, C. Trends and Challenges in AIoT/IIoT/IoT Implementation. Sensors 2023, 23, 5074. [Google Scholar] [CrossRef] [PubMed]
  10. Sun, W.; Bocchini, P.; Davison, B.D. Applications of artificial intelligence for disaster management. Nat. Hazards 2020, 103, 2631–2689. [Google Scholar] [CrossRef]
  11. Mega 2560 PRO (Embed) CH340G/ATmega2560-16AU. Available online: https://robotdyn.com/mega-2560-pro-embed-ch340g-atmega2560-16au.html (accessed on 14 November 2023).
  12. SIM7600X Module 4G Wireless Solutions. Available online: https://www.simcom.com/product/SIM7600X.html (accessed on 25 October 2023).
  13. Truebner SMT50 Datasheet. Available online: https://www.truebner.de/assets/download/Manual_SMT50.pdf (accessed on 25 October 2023).
  14. MaxBotix MB7066-100 Datasheet. Available online: https://maxbotix.com/pages/xl-maxsonar-wr-datasheet (accessed on 25 October 2023).
  15. DFRobot Rainfall Sensor (SEN0575). Available online: https://wiki.dfrobot.com/SKU_SEN0575_Gravity_Rainfall_Sensor (accessed on 25 October 2023).
  16. Hloupis, G.; Pagounis, V.; Tsakiri, M.; Doxastakis, G.; Zacharis, V. Low-cost warning system for the monitoring of the Corinth Canal. Appl. Geomat. 2017, 9, 263–277. [Google Scholar] [CrossRef]
Figure 1. The block diagram of the node.
Figure 1. The block diagram of the node.
Engproc 58 00044 g001
Figure 2. A photograph of the complete prototype (left) and the first deployment location (right). The red dot shows the exact location of the first system deployment.
Figure 2. A photograph of the complete prototype (left) and the first deployment location (right). The red dot shows the exact location of the first system deployment.
Engproc 58 00044 g002
Figure 3. The logic diagram of the firmware.
Figure 3. The logic diagram of the firmware.
Engproc 58 00044 g003
Figure 4. Sample IMU signals (yaw, roll, and pitch, from top to bottom).
Figure 4. Sample IMU signals (yaw, roll, and pitch, from top to bottom).
Engproc 58 00044 g004
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Skoubris, E.; Hloupis, G. An AI-Powered, Low-Cost IoT Node Oriented to Flood Early Warning Systems. Eng. Proc. 2023, 58, 44. https://doi.org/10.3390/ecsa-10-16023

AMA Style

Skoubris E, Hloupis G. An AI-Powered, Low-Cost IoT Node Oriented to Flood Early Warning Systems. Engineering Proceedings. 2023; 58(1):44. https://doi.org/10.3390/ecsa-10-16023

Chicago/Turabian Style

Skoubris, Evangelos, and George Hloupis. 2023. "An AI-Powered, Low-Cost IoT Node Oriented to Flood Early Warning Systems" Engineering Proceedings 58, no. 1: 44. https://doi.org/10.3390/ecsa-10-16023

Article Metrics

Back to TopTop