Implementation of Artificial Neural Network for IoT-Based Water Quality Classification in Fish Ponds

Authors

  • Achmad Firman Choiri Institut Teknologi dan bisnis Widya gama Lumajang
  • Cahyasari Kartika Murni Institut Teknologi dan bisnis Widya gama Lumajang

DOI:

https://doi.org/10.30741/jid.v4i1.1752

Keywords:

IoT, ANN, Water Quality, MATLAB, Fish Ponds

Abstract

This study presents the implementation of an Artificial Neural Network (ANN) to classify water quality in fish ponds using a dataset derived from a fuzzy inference-based IoT system. The previous fuzzy system utilized three sensor parameters—pH, Total Dissolved Solids (TDS), and temperature—to determine water quality (good, moderate, poor) through rule-based reasoning. Although the fuzzy approach produced accurate and interpretable results, it lacked adaptability to new data variations and required manual rule adjustments. In this research, the ANN model was trained using MATLAB’s Neural Network Toolbox with 120 dataset samples obtained from the fuzzy system’s outputs. The model architecture consisted of three input neurons (pH, TDS, temperature), one hidden layer with ten neurons using a tansig activation function, and one output neuron with purelin. Training of the model was conducted using the Levenberg–Marquardt backpropagation algorithm, employing a dataset split of 80% for training, 10% for validation, and 10% for testing. The results showed that the ANN achieved a classification accuracy of 94.8%, with a Mean Squared Error (MSE) of 0.85942 and a regression coefficient (R) of 0.94, indicating a strong correlation between predicted and actual data. Compared to the fuzzy inference method, the ANN model demonstrated better adaptability to unseen data and a higher level of generalization. This system can be integrated into IoT-based monitoring platforms for real-time, intelligent, and adaptive water quality prediction to support sustainable aquaculture.

References

Aldrees, A., Khan, M. A., Atiq, M., Rehman, U., Mohamed, A. M., Wai, A., Ng, M., Taha, A., & Taha, B. (2022). Using Water Quality Indices. Water, 14, 947.

Chen, H. C., Xu, S. Y., & Deng, K. H. (2022). Water Color Identification System for Monitoring Aquaculture Farms. Sensors, 22(19). https://doi.org/10.3390/s22197131

Choiri, A. F. (2024). IoT-Based Water Quality Monitoring System for Fish Ponds Using Fuzzy Inference Method. Jurnal Teknologi Informasi Dan Terapan (J-TIT, 11(2), 2580–2291. https://doi.org/10/25047/jtit.v11i2.5794

Danuri, D., & Mohd Pozi, M. (2024). Machine Learning Approaches for Fish Pond Water Quality Classification: Random Forest, Gaussian Naive Bayes, and Decision Tree Comparison. https://doi.org/10.4108/eai.21-9-2023.2342964

Fitriansyah, A., Alfirman, Nugroho, R. A., Meitarice, S., & Sukamto. (2024). Water Quality Monitoring and Control System for Fish Farmers Based on Internet of Things. Ingenierie Des Systemes d’Information, 29(3), 1107–1113. https://doi.org/10.18280/isi.290328

Ismail I Aminu. (2022). A novel approach to predict Water Quality Index using machine learning models: A review of the methods employed and future possibilities. Global Journal of Engineering and Technology Advances, 13(2), 026–037. https://doi.org/10.30574/gjeta.2022.13.2.0184

Meenakshi, P., & Ambiga, K. (2022). Prediction of the Water Quality Index Using ANFIS Modelling. Journal of Pharmaceutical Negative Results, 13(SO3). https://doi.org/10.47750/pnr.2022.13.s03.202

Rashid, M. M., Nayan, A. A., Rahman, M. O., Simi, S. A., Saha, J., & Kibria, M. G. (2021). IoT based Smart Water Quality Prediction for Biofloc Aquaculture. International Journal of Advanced Computer Science and Applications, 12(6), 56–62. https://doi.org/10.14569/IJACSA.2021.0120608

Trach, R., Trach, Y., Kiersnowska, A., Markiewicz, A., Lendo-Siwicka, M., & Rusakov, K. (2022). A Study of Assessment and Prediction of Water Quality Index Using Fuzzy Logic and ANN Models. Sustainability (Switzerland), 14(9). https://doi.org/10.3390/su14095656

Downloads

Published

2025-10-31

How to Cite

Choiri, A. F., & Murni, C. K. (2025). Implementation of Artificial Neural Network for IoT-Based Water Quality Classification in Fish Ponds. Journal of Informatics Development, 4(1), 1–8. https://doi.org/10.30741/jid.v4i1.1752