OriginalPaper | Open access | Published: December 1, 2026

Predicting Water pH In Aquaponic Systems Using A Hybrid LSTM-GRU Model

I Ketut Ardika, Huizen, Pradipta
JINAV: Journal of Information and Visualization, Vol. 7 No. 3 (2026) https://doi.org/10.35877/454RI.jinav4985 Published: 2026-12-01
Get Permissions

Abstract

The aquaponics system is a cultivation technology that integrates fish and plants in one ecosystem by utilizing sustainable water circulation. One important parameter that determines the stability of an aquaponics system is pH because changes in pH can affect fish conditions, plant growth, and the nitrification process. Manual monitoring has limitations in detecting rapid pH changes, so a predictive approach based on Internet of Things (IoT) data is needed. This study aims to predict the pH value of water in an aquaponics system using Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and Hybrid LSTM-GRU models and determine the model configuration that provides the best performance. The research data consists of 145,391 IoT sensor data from September 1, 2023, to August 18, 2024, with parameters of pH, water temperature, Total Dissolved Solids (TDS), and Dissolved Oxygen (DO). The data were processed through duplication removal, interpolation, Moving Average, outlier detection using Interquartile Range (IQR), Min-Max normalization, and sequence data formation using a sliding window. Optimization was carried out in stages through Window Size and Learning Rate testing. The results showed that the LSTM model with a Window Size of 24 and a Learning Rate of 0.001 produced the best performance with an RMSE of 0.0265, MAE of 0.0231, MAPE of 0.3312%, and R² of 0.9725. The Hybrid LSTM-GRU model produced an RMSE of 0.0316, while GRU produced an RMSE of 0.0357. These results indicate that LSTM provides the best pH prediction performance compared to other models.

Keywords

References (27)

  1. Airlangga, G., Ika, O., Nugroho, A., Sugianto, L.F., & Airlangga, G. (2025). Deep Learning Approaches for Water Quality Prediction in Aquaponics Systems: A Comparative Study of Recurrent and Feedforward Architectures. Scientific Bulletin of Electrical Engineering Graduates, 7(1), 1–8. https://doi.org/10.12928/biste.v7i1.12411
  2. Al Tawaha, PEM Wahab, HB Jaafar, ATK Zuan, and MZ Hassan, "Effects of Fish Stocking Density on Water Quality, Growth Performance of Tilapia and Yield of Butterhead Lettuce Grown in Decoupled Recirculation Aquaponic Systems," Journal of Ecological Engineering, vol. 22, no. 1, pp. 8–19, 2020, doi: 10.12911/22998993/128692
  3. Baena-Navarro, Y. Carriazo-Regino, F. Torres-Hoyos, and J. Pinedo-López, “Intelligent Prediction and Continuous Monitoring of Water Quality in Aquaculture: Integration of Machine Learning and Internet of Things for Sustainable Management,” Water (Switzerland), vol. 17, no. 1, Jan. 2025, doi: 10.3390/w17010082.
  4. Chandramenon, P., Aggoun, A., & Tchuenbou-Magaia, F. (2024). Smart approaches to Aquaponics 4.0 with focus on water quality ? Comprehensive review. Computers and Electronics in Agriculture, 225, 109256. https://doi.org/https://doi.org/10.1016/j.compag.2024.109256
  5. Cho, K., Merri¨enboer, B. van, Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., & Bengio, Y. (2014). Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation. Proceedings of EMNLP 2014., 1–15.
  6. Christal, S., Sundararajan, 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(1925), 1–21.
  7. Concepcion, E. Dadios, A. Bandala, J. Cuello, and Y. Kodama, “Hybrid Genetic Programming and Multiverse-based Optimization of Pre-Harvest Growth Factors of Aquaponic Lettuce Based on Chlorophyll Concentration,” Int. J. Adv. Sci. Eng. Inf. Technol., vol. 11, no. 6, pp. 2128–2138, 2021, doi: 10.18517/ijaseit.11.6.14991
  8. Fimbres-Acedo, S. Traversari, S. Cacini, G. Costamagna, M. Ginepro, and D. Massa, “Testing the Effect of High pH and Low Nutrient Concentration on Four Leafy Vegetables in Hydroponics,” Agronomy, vol. 13, no. 1, Jan. 2023, doi: 10.3390/agronomy13010041
  9. Gamarra et al., “Control of an aquaponic system to improve the yield of gray tilapia and lettuce cultivation,” International Journal of Electrical and Computer Engineering, vol. 15, no. 1, pp. 505–519, Feb. 2025, doi: 10.11591/ijece.v15i1.pp505-519.
  10. Gandh, R., Rasheed, DHVP, Haq, A., & Bhide, KPA (2024). Attention-driven LSTM and GRU deep learning techniques for precise water quality predictions in smart aquaculture. Aquaculture International, 32(6), 8455–8478. https://doi.org/10.1007/s10499-024-01574-5

How to Cite

Ardika, I. K., Huizen, R. R., & Pradipta, G. A. (2026). Predicting Water pH In Aquaponic Systems Using A Hybrid LSTM-GRU Model. JINAV: Journal of Information and Visualization, 7(3). https://doi.org/10.35877/454RI.jinav4985

Copyright & license

Copyright (c) 2026 I Ketut Ardika, Huizen, Pradipta