Smart Aquarium Berbasis Internet of Things untuk Monitoring Kualitas Air dan Prediksi Waktu Pergantian Air Menggunakan Gradient Boosting
Keywords:
Smart Aquarium, Internet of Things, Gradient Boosting, Monitoring Kualitas Air, Decision TreeAbstract
Water quality is a critical factor in ornamental fish maintenance because it directly affects fish health and aquarium ecosystem stability. Parameters such as pH, temperature, and turbidity must be monitored regularly to maintain suitable water conditions. However, water quality monitoring and water replacement scheduling are often performed manually, which may lead to delayed responses when water quality deteriorates. This study aims to develop an Internet of Things (IoT) and Machine Learning-based Smart Aquarium system for real-time water quality monitoring and water replacement prediction. The system utilizes pH, DS18B20 temperature, and turbidity sensors connected to an ESP32 microcontroller to continuously collect water quality data. Sensor data are transmitted to a Flask-based server and stored in a MySQL database for further analysis. A Decision Tree algorithm is employed to classify water conditions into ideal and non-ideal categories, while a Gradient Boosting Regressor is used to predict the remaining days before water replacement is required. Experimental results show that the Decision Tree model achieved an accuracy of 100%, while the Gradient Boosting Regressor obtained a Root Mean Squared Error (RMSE) of 0.44. The developed system is capable of monitoring water quality and providing water replacement predictions, providing information about water conditions, and assisting users in determining the optimal time for water replacement more effectively and efficiently.
References
M. T. Tamam, D. N. Aji, and J. K. Ahmad Dahlan Dukuhlawuh Purwokerto, “Perancangan dan Pembuatan Sistem Pengaturan pH dan Suhu Air pada Kolam Ikan,” vol. 5, no. 1.
I. B. Prasetiyo, A. A. Riadi, and A. A. Chamid, “Perancangan Smart Aquarium Menggunakan Sensor Turbidity dan Sensor Ultrasonik Pada Akuarium Ikan Air Tawar Berbasis Arduino Uno,” Jurnal Teknologi, vol. 13, no. 2, pp. 193–200, 2021.
M. Abdurohman, A. G. Putrada, and M. M. Deris, “A Robust Internet of Things-Based Aquarium Control System Using Decision Tree Regression Algorithm,” IEEE Access, vol. 10, pp. 56937–56951, 2022, doi: 10.1109/ACCESS.2022.3177225.
Wasito, E., Prahara, T., Nursyahid, A., Dadi, Anggraeni, S. K., Delaili Muntaha, G. M., & Syaharani. (2024). Implementation of IoT in Nila Fish Cultivation With Bioflock System. Journal of Applied Information and Communication Technologies (JAICT), 9(1).
P. A. Saputra, S. S. Irawan, R. Rahmaddeni, R. Prianto, and T. Hidayat, “Prediksi dan Analisis Pola Perubahan Iklim Menggunakan Algoritma Gradient Boosting,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 13, no. 2, 2025, doi: 10.23960/jitet.v13i2.6230.
L. Putra Nasyuli, I. Lubis, and A. M. Elhanafi, “Penerapan Model Machine Learning Algoritma Gradient Boosting dan Linear Regression Melakukan Prediksi Harga Kendaraan Bekas,” Jurnal Ilmiah Riset Sistem Informasi, vol. 2, no. 2, 2023.
Sugiarto, Nugraha, I., Fahrudin, T. M., Rizqina, A., & Agvenia, K. (2025). IoT-Based Water Quality Monitoring System to Enhance Sustainability and Business Performance in Koi Fish Cultivation. Journal of Advances in Information and Industrial Technology, 7(2), 193–206.
Nuangpirom, P., Pitjamit, S., Jaikampan, V., Peerakam, C., Nakkiew, W., & Jewpanya, P. (2025). Machine Learning on Low-Cost Edge Devices for Real-Time Water Quality Prediction in Tilapia Aquaculture. Sensors, 25(19), 6159.
Mohd Jais, N. A., Abdullah, A. F., Mohd Kassim, M. S., Abd Karim, M. M., Abdulsalam, M., & Muhadi, N. A. (2024). Improved Accuracy in IoT-Based Water Quality Monitoring for Aquaculture Tanks Using Low-Cost Sensors: Asian Seabass Fish Farming. Heliyon, 10(8), e29022.
Sundararajan, S. C. M., Shankar, Y. B., Selvam, S. P., Manogaran, N., Seerangan, K., Natesan, D., & Selvarajan, S. (2025). IoT-Based Prediction Model for Aquaponic Fish Pond Water Quality Using Multiscale Feature Fusion with Convolutional Autoencoder and GRU Networks. Scientific Reports, 15, Article 1925.
MSingh, Y., & Walingo, T. (2024). Smart Water Quality Monitoring with IoT Wireless Sensor Networks. Sensors, 24(9), 2871.





