Skip to main content
Log in

An IoT‐based water contamination analysis for aquaculture using lightweight multi‐headed GRU model

  • Research
  • Published:
Environmental Monitoring and Assessment Aims and scope Submit manuscript

Abstract

Maintaining the quality of water is essential for the health and productivity of aquatic organisms, including fish in aquaculture ponds. However, water contamination can severely impact fish health and survival, making it necessary to develop monitoring systems that can detect early signs of water contamination. Initial deep learning models had limitations in capturing the temporal and spatial dependencies of time-series data, which can lead to inaccurate predictions. In this paper, we propose a smart monitoring system that uses IoT devices to collect water quality data and segment it into contaminated and non-contaminated categories based on a water toxic index (WTI), a measure of water contamination levels. To address the limitations of early deep learning models for classification of toxic and non-toxic water quality, an enhanced light-weight multi-headed gated recurrent unit (MHGRU) model that captures the spatial and temporal dependencies of water quality parameters. Our study demonstrates that the proposed model outperforms existing models, achieving an impressive accuracy of 99.7% when evaluated on real-time data. Notably, our model also excels when tested on a public dataset, achieving an accuracy of 99.12%. In comparison, best performed existing ANN models achieve accuracies of 99.52% and 98.71% on the respective datasets.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11

Similar content being viewed by others

Data availability

The data that support the findings of this study are available from the corresponding author on request. The data is not publicly available due to privacy or ethical restrictions.

References

  • Aghel, B., Rezaei, A., & Mohadesi, M. (2019). Modeling and prediction of water quality parameters using a hybrid particle swarm optimization-neural fuzzy approach. International Journal of Environmental Science and Technology, 16(8), 4823–4832. https://doi.org/10.1007/s13762-018-1896-3

    Article  Google Scholar 

  • Ahmed, U., Mumtaz, R., Anwar, H., Shah, A. A., Irfan, R., & García-Nieto, J. (2019). Efficient water quality prediction using supervised machine learning. Water, 11(11), 2210. https://doi.org/10.3390/w11112210

    Article  CAS  Google Scholar 

  • Alonso, Á., Gómez-de-Prado, G., & Romero-Blanco, A. (2022). Behavioral variables to assess the toxicity of unionized ammonia in aquatic snails: Integrating movement and feeding parameters. Archives of Environmental Contamination and Toxicology, 82(3), 429–438. https://doi.org/10.1007/s00244-022-00920-z

    Article  CAS  Google Scholar 

  • Arepalli, P. G., & Khetavath, J. N. (2023). An IoT framework for quality analysis of aquatic water data using time-series convolutional neural network. Environmental Science and Pollution Research, 1–20. https://doi.org/10.1007/s11356-023-27922-1

  • Arepalli, P. G., & Naik, K. J. (2023). A deep learning-enabled IoT framework for early hypoxia detection in aqua water using light weight spatially shared attention-LSTM network. The Journal of Supercomputing, 1–30. https://doi.org/10.1007/s11227-023-05580-x

  • Bisht A. K., Singh, R., Bhatt, A., & Bhutiani, R. (2017). Development of an automated water quality classification model for the River Ganga. In International Conference on Next Generation Computing Technologies (pp. 190–198). Singapore: Springer. https://doi.org/10.1007/978-981-10-8657-1_15

  • Cao, X., Liu, Y., Wang, J., Liu, C., & Duan, Q. (2020). Prediction of dissolved oxygen in pond culture water based on K-means clustering and gated recurrent unit neural network. Aquacultural Engineering, 91, 102122. https://doi.org/10.1016/j.aquaeng.2020.102122

    Article  Google Scholar 

  • Chang, F. J., Chang, L. C., Huang, C. W., & Kao, I. F. (2016). Prediction of monthly regional groundwater levels through hybrid soft-computing techniques. Journal of Hydrology, 541, 965–976. https://doi.org/10.1016/j.jhydrol.2016.08.006

    Article  Google Scholar 

  • CPCB | Central Pollution Control Board. (2019, October 23). CPCB | Central Pollution Control Board; cpcb.nic.in. https://cpcb.nic.in/wqstandards/. Accessed on 2021, May 5.

  • Danh, L. V. Q., Dung, D. V. M., Danh, T. H., & Ngon, N. C. (2020). Design and deployment of an IoT-based water quality monitoring system for aquaculture in Mekong Delta. International Journal of Mechanical Engineering and Robotics Research, 9, 1170–1175. https://doi.org/10.18178/ijmerr.9.8.1170-1175

    Article  Google Scholar 

  • Data.gov.in. (2017). https://data.gov.in/catalog/water-quality-india-2013?filters%5Bfield_catalog_reference %5D=2914901&format=json&offset=0&limit=6&sort%5Bcreated%5D=desc. Accessed on 2021, May 5.

  • Esakki, B., Ganesan, S., Mathiyazhagan, S., Ramasubramanian, K., Gnanasekaran, B., Son, B., Park, S. W., & Choi, J. S. (2018). Design of amphibious vehicle for unmanned mission in water quality monitoring using Internet of things. Sensors, 18, 3318. https://doi.org/10.3390/s18103318

    Article  CAS  Google Scholar 

  • Feng, H., Zhang, M., Gecevska, V., Chen, B., Saeed, R., & Zhang, X. (2022). Modeling and evaluation of quality monitoring based on wireless sensor and blockchain technology for live fish waterless transportation. Computers and Electronics in Agriculture, 193, 106642. https://doi.org/10.1016/j.compag.2021.106642

    Article  Google Scholar 

  • Gao, G., Xiao, K., & Chen, M. (2019). An intelligent IoT-based control and traceability system to forecast and maintain water quality in freshwater fish farms. Computers and Electronics in Agriculture, 166, 105013. https://doi.org/10.1016/j.compag.2019.105013

    Article  Google Scholar 

  • Hakimi I M., & Jamil, Z. (2021). Development of water quality monitoring device using arduino UNO. In IOP Conference Series: Materials Science and Engineering (Vol. 1144, No. 1, p. 012064). IOP Publishing. https://doi.org/10.1088/1757-899X/1144/1/012064.

  • Huan, J., Li, H., Wu, F., & Cao, W. (2020). Design of water quality monitoring system for aquaculture ponds based on NB-IoT. Aquacultural Engineering, 90, 102088. https://doi.org/10.1016/j.aquaeng.2020.102088

    Article  Google Scholar 

  • Jairam Naik, K., & Peda Gopi, A. (2023). Water quality fish. Retrieved 1st April 2023, from https://www.kaggle.com/datasets/apgopi/pondsdata/data

  • Kargar, M., Emenike, C. P., Ojinnaka, C. O., & Oyedepo, J. A. (2021). Water quality assessment for irrigation purposes using artificial neural network: A case study of Ele River Nnewi, Anambra State, Nigeria. Data in Brief, 36, 107032.

    Google Scholar 

  • Khan Y., & See, C. S. (2016). Predicting and analyzing water quality using machine learning: A comprehensive model. In 2016 IEEE Long Island Systems, Applications and Technology Conference (LISAT) (pp. 1–6). IEEE. https://doi.org/10.1109/LISAT.2016.7494106

  • Lalithadevi, B., Yadav, A., Pandey, A., & Adhikari, M. (2019). Iot based wsn ground water monitoring system with cloud-based monitoring as a service (maas) and prediction using machine learning. International Journal of Innovative Technology and Exploring Engineering Regulation, 9, 816–821. https://doi.org/10.35940/ijitee.A4316.119119

    Article  Google Scholar 

  • Li, Y., & Li, R. (2021). A hybrid model based on boundary corrected maximal overlap discrete wavelet transform and dual-stage attention long short-term memory neural network for ammonia nitrogen prediction in surface water. Journal of Hydrology, 603, 126917. https://doi.org/10.1016/j.jhydrol.2021.1269

    Article  Google Scholar 

  • Li, T., Lu, J., Wu, J., Zhang, Z., & Chen, L. (2022). Predicting aquaculture water quality using machine learning approaches. Water, 14(18), 2836. https://doi.org/10.3390/w14182836

    Article  CAS  Google Scholar 

  • Liu, P., Wang, J., Sangaiah, A. K., Xie, Y., & Yin, X. (2019). Analysis and prediction of water quality using LSTM deep neural networks in IoT environment. Sustainability, 11, 2058. https://doi.org/10.3390/su11072058

    Article  CAS  Google Scholar 

  • Liu, X., Zhang, Y., Li, Y., & Li, Y. (2021). Multi-task deep learning for water quality prediction based on hybrid CNN-LSTM model. Journal of Hydrology, 603, 126917.

    Google Scholar 

  • Loyola, L. G., & Lacatan, L. L. (2020). Water quality evaluation system for prawn (Penaeus monodon) using IoT device and decision tree algorithm. Journal of Critical Reviews, 7, 983–988.

    Google Scholar 

  • Lu, H., & Ma, X. (2020). Hybrid decision tree-based machine learning models for short-term water quality prediction. Chemosphere, 249, 126169. https://doi.org/10.1016/j.chemosphere.2020.126169

    Article  CAS  Google Scholar 

  • Martínez, R., Vela, N., El Aatik, A., Murray, E., Roche, P., & Navarro, J. M. (2020). On the use of an IoT integrated system for water quality monitoring and management in wastewater treatment plants. Water, 12, 1096. https://doi.org/10.3390/w12041096

    Article  CAS  Google Scholar 

  • Miry, A. H., & Aramice, G. A. (2020). Water monitoring and analytic based ThingSpeak. International Journal of Electrical and Computer Engineering, 10, 3588. https://doi.org/10.11591/ijece.v10i4.pp3588-3595

    Article  Google Scholar 

  • Moon, J., Lee, J., Lee, S., & Yun, H. (2022). Urban river dissolved oxygen prediction model using machine learning. Water, 14(12), 1899. https://doi.org/10.3390/w14121899

    Article  Google Scholar 

  • Nadu, T. (2020). An underground pipeline water quality monitoring using Iot devices. European Journal of Molecular & Clinical Medicine, 7, 2046–2054.

    Google Scholar 

  • Narayanan, L. K., Sankaranarayanan, S., Rodrigues, J. J., & Kozlov, S. (2020). Water demand forecasting using deep learning in IoT enabled water distribution network. International Journal of Computers Communications & Control, 15, 3977. https://doi.org/10.15837/ijccc.2020.6.3977

    Article  Google Scholar 

  • Oommen, A. K., Saji, A., Joseph, S., & Kuriakose, B. P. (2019). Automated water quality monitoring system for aquaponics. International Research Journal of Engineering and Technology, 7832, 7832–7841.

    Google Scholar 

  • Pan, T., Huang, B., Khare, S., Zhang, W., Gabos, S., & Huang, D. Y. (2013). Development of toxicity index to evaluate the level of water contamination by using cellular responses. IFAC Proceedings Volumes, 46(31), 309–314. https://doi.org/10.3182/20131216-3-IN-2044.00007

    Article  Google Scholar 

  • Pantjawati, A. B., Purnomo, R., Mulyanti, B., Fenjano, L., Pawinanto, R., & Nandiyanto, A. B. D. (2020). Water quality monitoring in Citarum River (Indonesia) using IoT (internet of thing). Journal of Engineering Science and Technology, 15, 3661–3672.

    Google Scholar 

  • Pasika, S., & Gandla, S. T. (2020). Smart water quality monitoring system with cost-effective using IoT. Heliyon, 6, e04096. https://doi.org/10.1016/j.heliyon.2020.e04096

    Article  Google Scholar 

  • Saeed, R., Zhang, L., Cai, Z., Ajmal, M., Zhang, X., Akhter, M., ... & Fu, Z. (2022). Multisensor monitoring and water quality prediction for live ornamental fish transportation based on artificial neural network. Aquaculture Research, 53(7), 2833–2850. https://doi.org/10.1111/are.15799

  • Song, C., Yao, L., Hua, C., & Ni, Q. (2021). A novel hybrid model for water quality prediction based on synchrosqueezed wavelet transform technique and improved long short-term memory. Journal of Hydrology, 603, 126879. https://doi.org/10.1016/j.jhydrol.2021.126879

    Article  CAS  Google Scholar 

  • Suwadi, N. A., Derbali, M., Sani, N. S., Lam, M. C., Arshad, H., Khan, I., & Ki-Il, K. (2022). An optimized approach for predicting water quality features based on machine learning. Wireless Communications & Mobile Computing (Online), 2022. https://doi.org/10.1155/2022/3397972

  • Tallar, R. Y., & Suen, J. P. (2016). Aquaculture water quality index: A low-cost index to accelerate aquaculture development in Indonesia. Aquaculture International, 24(1), 295–312. https://doi.org/10.1007/s10499-015-9926-3

    Article  Google Scholar 

  • Talukdar, S., Ahmed, S., Naikoo, M. W., Rahman, A., Mallik, S., Ningthoujam, S., ... & Ramana, G. V. (2023). Predicting lake water quality index with sensitivity-uncertainty analysis using deep learning algorithms. Journal of Cleaner Production, 406, 136885.

  • Thai-Nghe, N., Thanh-Hai, N., & Chi Ngon, N. (2020). Deep learning approach for forecasting water quality in IoT systems. International Journal of Advanced Computer Science and Applications, 11, 686–693. https://doi.org/10.14569/IJACSA.2020.0110883

    Article  Google Scholar 

  • Vergina, S. A., Kayalvizhi, S., Bhavadharini, R., & Kalpana Devi, S. (2020). A real time water quality monitoring using machine learning algorithm. European Journal of Molecular & Clinical Medicine, 7, 2035–2041.

    Google Scholar 

  • Wang, Y., Rajib, S. S. M., Collins, C., & Grieve, B. (2018). Low-cost turbidity sensor for low-power wireless monitoring of fresh-water courses. IEEE Sensors Journal, 18, 4689–4696. https://doi.org/10.1109/JSEN.2018.2826778

    Article  Google Scholar 

  • Yan, X., Wang, Y., Li, Y., & Li, X. (2021). Stacking ensemble model for predicting water quality parameters in Loktak Lake. Environmental Science and Pollution Research, 28(23), 29909–29922. https://doi.org/10.1007/s11356-021-14208-9

    Article  Google Scholar 

  • Zhang, X., Li, Y., Li, X., & Li, Y. (2021). Soft computing method for real-time prediction of ammonia nitrogen content in aquaculture water. IEEE Access, 9, 107925–107935. https://doi.org/10.1109/ACCESS.2021.3107649

    Article  Google Scholar 

  • Zhou, C., Xu, D., Chen, L., Zhang, S., Sun, C., Yang, X., & Wang, Y. (2019). Evaluation of fish feeding intensity in aquaculture using a convolutional neural network and machine vision. Aquaculture, 507, 457–465. https://doi.org/10.1016/j.aquaculture.2019.04.056

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Contributions

Both the authors have equally contributed for this work. The contributions of individuals are as listed below: Peda Gopi Arepalli: concepts, development of methodologies, sensor and Arduino board design and assembling, dataset collection and creation, experimentation, results analysis, and writing of the original draft. Jairam Naik K: concepts, experimentation, results analysis, writing, document review, editing and overall supervision. All authors read before submission and approved the final manuscript for submission.

Corresponding author

Correspondence to Peda Gopi Arepalli.

Ethics declarations

Ethical approval

All authors have seen and agreed with the contents of the manuscript and are looking forward to publishing this paper in this journal.

Consent for publication

All authors gave explicit consent to publish this manuscript.

Competing interests

The authors declare no competing interests.

Additional information

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Arepalli, P.G., Naik, K.J. An IoT‐based water contamination analysis for aquaculture using lightweight multi‐headed GRU model. Environ Monit Assess 195, 1516 (2023). https://doi.org/10.1007/s10661-023-12126-4

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s10661-023-12126-4

Keywords

Navigation