Abstract
Optimal water quality is a prerequisite for sustainable aquaculture operations; however, the existing approaches for evaluating the water quality are inadequate in addressing the complex and interacting factors that affect aquatic environment over time. Current approaches offer cross-sectional data with no consideration for dynamic fluctuations and relationships between water quality and the fish environment that is essential for their well-being. Other traditional deep learning models are also challenged by long-term dependencies and interactions among those variables. Considering such challenges, we introduce a new framework that integrates IoT technologies with deep learning algorithms for real-time assessment of water quality in aquaculture. In our approach, strategically positioned IoT sensors collect an uninterrupted stream of water quality and environmental data. This data is then labelled through the Aqua-Enviro Index (AEI) which is a new index that uses water quality parameters, fish death rates, and environmental parameters to give better representation of the aquatic ecosystem. The framework proposed here is based on the Temporal FlexNet (TFN) model, a novel deep learning architecture that addresses the identified issues. 2D Convolutions are used for spatial features of the water body whereas Long Short-Term Memory (LSTM) to capture the temporal evolution of water quality with respect to the environmental factors. The proposed TFN model yields one of the outstanding performances as it has 99.38% accuracy on public datasets and 98.79% on real-time datasets while Hybrid CNN-LSTM and ANN-MLR have 93.57% and 95.76% accurate respectively. This high accuracy, combined with better precision, recall, and F-score further makes the TFN as a new state-of-the-art for water quality classification. Thus, our framework can be applied at large scale by aquaculture managers to monitor water conditions, predict problems, and prevent them to improve fish health and production in various environments.












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. Int J Environ Sci Technol 16(8):4823–4832. https://doi.org/10.1007/s13762-018-1896-3
Ahmed U, Mumtaz R, Anwar H, Shah AA, 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
Alonso Á, Gómez-de-Prado G, Romero-Blanco A (2022) Behavioural variables to assess the toxicity of unionized ammonia in aquatic snails: integrating movement and feeding parameters. Arch Environ Contam Toxicol 82(3):429–438. https://doi.org/10.1007/s00244-022-00920-z
Baek Sang-Soo, Pyo Jongcheol, Chun Jong Ahn (2020) Prediction of water level and water quality using a CNN-LSTM combined deep learning approach. Water 12.12(2020):3399
Barzegar Rahim, Aalami Mohammad Taghi, Adamowski Jan (2021) Coupling a hybrid CNN-LSTM deep learning model with a boundary corrected maximal overlap discrete wavelet transform for multiscale lake water level forecasting. J Hydrol 598(2021):126196
Bisht AK, Singh R, Bhatt A, Bhutiani R (2017) Development of an automated water quality classification model for the River Ganga. International Conference on Next Generation Computing Technologies. Springer, Singapore, pp 190–198. https://doi.org/10.1007/978-981-10-8657-1_15
CPCB | Central Pollution Control Board. (2019). CPCB | Central Pollution Control Board; cpcb.nic.in. https://cpcb.nic.in/wqstandards/. Accessed on 2021, May 5
CWC Central Water Commission (2022). Dataset on Aquatic Parameters. http://www.cwc.gov.in/water-quality-inforamtion
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
Gambín Ángel Fernández et al (2021) Sustainable marine ecosystems: deep learning for water quality assessment and forecasting. IEEE access 9(2021):121344–121365
Haq, Rasheed Abdul KP, Harigovindan VP (2022) Water quality prediction for smart aquaculture using hybrid deep learning models. IEEE Access 10(2022):60078–60098
Huan J, Li H, Li M, Chen B (2020) Prediction of dissolved oxygen in aquaculture based on gradient boosting decision tree and long short-term memory network: A study of Chang Zhou fishery demonstration base, China. Comput Electron Agric 175:105530. https://doi.org/10.1016/j.compag.2020.105530
Jairam Naik K, Peda Gopi A, (2023), Water quality fish, Retrieved 1st April 2023, from https://www.kaggle.com/datasets/apgopi/water-quality-fish
Kadam AK et al (2019) Prediction of water quality index using artificial neural network and multiple linear regression modelling approach in Shivganga River basin, India. Model Earth Syst Environ 5:951–962
Khullar Sakshi, Singh Nanhey (2022) Water quality assessment of a river using deep learning Bi-LSTM methodology: forecasting and validation. Environ Sci Pollut Res 29(9):12875–12889
Li Ling, Zhongxuan Gu, Dongjing Lu (2023) Research on surface water quality prediction based on a CNN-BiLSTM-attention combined deep learning approach. E3S Web of Conferences 393(4):01007 EDP Sciences
Lin YB, Tseng HC (2019) FishTalk: an IoT-based mini aquarium system. IEEE Access 7:35457–35469. https://doi.org/10.1109/ACCESS.2019.2905017
Mamandipoor Behrooz et al (2020) Monitoring and detecting faults in wastewater treatment plants using deep learning. Environ Monit Assess 192(2020):1–12
Panwar Harsh et al (2020) AquaVision: automating the detection of waste in water bodies using deep transfer learning. Case Stud Chem Environ Eng 2(2020):100026
Peterson Kyle T, Sagan Vasit, Sloan John J (2020) Deep learning-based water quality estimation and anomaly detection using Landsat-8/Sentinel-2 virtual constellation and cloud computing. GISci Remote Sens 57(4):510–525
Qishlaqi A, Kordian S, Parsaie A (2017) Field measurements and neural network modeling of water quality parameters. Appl Water Sci. https://doi.org/10.1007/s13201-016-0513-1
Raju KRSR, Varma GHK (2017) Knowledge based real time monitoring system for aquaculture using IoT. IEEE 7th international advance computing conference (IACC). IEEE, Hyderabad, pp 318–321. https://doi.org/10.1109/IACC.2017.0075
Saleh A, Sheaves M, Jerry D, Azghadi MR (2023) Applications of deep learning in fish habitat monitoring: a tutorial and survey. Exp Syst Applic 238:121841. https://doi.org/10.1016/j.eswa.2023.121841
Salim TI, Haiyunnisa T, Alam HS (2016) Design and implementation of water quality monitoring for eel fish aquaculture. 2016 International Symposium on Electronics and Smart Devices (ISESD). IEEE, Bandung, pp 208–213. https://doi.org/10.1109/ISESD.2016.7886720
Tallar RY, Suen JP (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
Talukdar S, Ahmed S, Naikoo MW, Rahman A, Mallik S, Ningthoujam, S, ..., Ramana GV (2023). Predicting lake water quality index with sensitivity-uncertainty analysis using deep learning algorithms. Journal of Cleaner Production, 406, 136885
U.S. EPA (2020). Environmental Quality Index - Technical Report, 2006-2010. U.S. Environmental Protection Agency, Washington, DC, EPA/600/R-20/367
U.S. EPA (2014a). Creating an Overall Environmental Quality Index - Technical Report, 2000-2005. U.S. Environmental Protection Agency, Washington, DC, EPA/600/R-14/304
U.S. EPA (2014b). Environmental Quality Index - Overview Report. U.S. Environmental Protection Agency, Washington, DC, EPA/600/R-14/305
Venkata Vara Prasad D et al (2022) Analysis and prediction of water quality using deep learning and auto deep learning techniques. Sci Total Environ 821(2022):153311
Wu Xijuan et al (2022) A Water Quality Prediction Model Based on Multi-Task Deep Learning: A Case Study of the Yellow River, China. Water 14.21(2022):3408
Zhou Yanlai (2020) Real-time probabilistic forecasting of river water quality under data missing situation: deep learning plus post-processing techniques. J Hydrol 589:125164
Funding
It’s not funded by any agency/organization either technically or financially.
Author information
Authors and Affiliations
Contributions
Both the authors have equally contributed for this work. The contributions of individuals are as listed below: Arepalli Peda Gopi concepts, development of methodologies, Sensor and Arduino board Design & Assembling, Dataset collection & creation, Experimentation, results analysis, and writing of the original draft; K. Jairam Naik: 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
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.
Competing Interests
The authors declare that they do not have any known competing financial/ethical interests.
Consent for Publication
All authors gave explicit consent to publish this manuscript.
Clinical Trial
Our research is not associated with clinical trials. Our study revolves around the collection of data from ponds using Internet of Things (IoT) devices and subsequent analysis using deep learning techniques. As such, clinical trial procedures are not applicable to our work.
Additional information
Communicated by: Hassan Babaie
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.
About this article
Cite this article
Arepalli, P.G., Naik, K.J. Water quality classification framework for IoT-enabled aquaculture ponds using deep learning based flexible temporal network model. Earth Sci Inform 18, 351 (2025). https://doi.org/10.1007/s12145-025-01857-2
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s12145-025-01857-2