Water Level Prediction Based on Internet of Things and Machine Learning
DOI:
https://doi.org/10.59934/jaiea.v5i3.2557Keywords:
ESP32, Internet of Things, Samarinda, Simple Linear Regression, Water Level PredictionAbstract
This study develops an Internet of Things and machine learning based water-level prediction system for Jalan Embun Suryana, Samarinda. The device uses an ESP32, a JSN-SR04T ultrasonic sensor to measure water-surface distance, and a tipping-bucket ombrometer for rainfall. Data are synchronized to Firebase and transformed into a simple accumulated-rainfall feature to train a simple linear regression model. The research stages comprised Requirements Analysis, System Design, Sensor Data Collection, Model Training, Model Testing, Device Testing, and Integration. An Android application provides real-time visualization and early-warning notifications. Experiments indicate good sensor accuracy (JSN-SR04T; tipping-bucket 0.7 mm/tip) and model performance (MSE = 0.562 cm², RMSE = 0.749 cm, R2 = 0.992). In sum, data acquisition, prediction, and notifications operated as designed, and the simple linear regression produced water-level forecasts. At the study site, the association between increasing rainfall and rising water level was corroborated by repeated manual field measurements.
Downloads
References
H. Setiawan et al., “Analisis penyebab banjir di Kota Samarinda,” 2020. [Online]. Available: https://ejournal.upi.edu/index.php/gea
U. Dirgantara, M. Suryadarma, and H. Mantik, “Revolusi industri 4.0: Internet of Things, implementasi pada berbagai sektor berbasis teknologi informasi (Bagian 1),” Jurnal Telekomunikasi, 2020.
G. Al-Rawas, M. R. Nikoo, M. Al-Wardy, and T. Etri, “A Critical Review of Emerging Technologies for Flash Flood Prediction: Examining Artificial Intelligence, Machine Learning, Internet of Things, Cloud Computing, and Robotics Techniques,” Jul. 01, 2024, Multidisciplinary Digital Publishing Institute (MDPI). doi: 10.3390/w16142069.
M. Motta, M. de Castro Neto, and P. Sarmento, “A mixed approach for urban flood prediction using Machine Learning and GIS,” International Journal of Disaster Risk Reduction, vol. 56, Apr. 2021, doi: 10.1016/j.ijdrr.2021.102154.
A. Mosavi, P. Ozturk, and K. W. Chau, “Flood prediction using machine learning models: Literature review,” Oct. 27, 2018, MDPI AG. doi: 10.3390/w10111536.
A. Kurniawan, “Sejarah, cara kerja dan manfaat Internet of Things,” 2022.
A. Andang, N. Hiron, A. Chobir, and N. Busaeri, “Investigation of ultrasonic sensor type JSN-SRT04 performance as flood elevation detection,” in IOP Conference Series: Materials Science and Engineering, Institute of Physics Publishing, Aug. 2019. doi: 10.1088/1757-899X/550/1/012018.
K. Kunverji, K. Shah, and N. Banu Shah, “A Flood Prediction System Developed Using Various Machine Learning Algorithms,” 2021. [Online]. Available: https://ssrn.com/abstract=3866524
M. Herath, T. Jayathilaka, Y. Hoshino, and U. Rathnayake, “Deep Machine Learning-Based Water Level Prediction Model for Colombo Flood Detention Area,” Applied Sciences (Switzerland), vol. 13, no. 4, Feb. 2023, doi: 10.3390/app13042194.
H. Jamaludin, P. Sultan, and I. Shah, “Designing ESP32 Base Shield Board for IoT Application,” 2020.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








