Intelligent IoT-Based Water Quality Monitoring and Predictive Analysis Using Machine Learning

Authors

  • Sumit Kushwaha Department of Computer Applications, University Institute of Computing, Chandigarh University, Mohali-140413, Punjab, India Author
  • Ritika Pandey Department of Computer Applications, University Institute of Computing, Chandigarh University, Mohali-140413, Punjab, India Author

DOI:

https://doi.org/10.64229/dnq1tb95

Keywords:

IoT, Machine Learning, Water Quality Monitoring, Water Quality Index (WQI), Sustainable Development Goal 6 (SDG 6), Predictive Analytics

Abstract

This paper proposes a scalable and intelligent system integrating Internet of Things (IoT) technologies with advanced machine learning (ML) algorithms for real-time water quality monitoring and predictive analysis. The system utilizes low-cost and reliable sensors deployed on microcontroller platforms such as ESP32 and NodeMCU to continuously collect vital water parameters, including pH, turbidity, temperature, dissolved oxygen, and total dissolved solids (TDS). Sensor data is transmitted via wireless communication protocols to cloud platforms like ThingSpeak and AWS IoT for centralized storage and preprocessing. Machine learning models, including Random Forest, Support Vector Machines (SVM), Extreme Gradient Boosting (XGBoost), and Long Short-Term Memory (LSTM) networks, are trained on historical data to forecast parameter fluctuations, detect anomalies, and compute the Water Quality Index (WQI), providing a standardized quality assessment metric. The system’s automated alert and visualization layer delivers real-time dashboards and warning notifications to stakeholders, enabling timely responses to contamination events. Experimental results on self-collected IoT sensor data and benchmark public datasets demonstrate high predictive accuracy, precision, and recall, confirming the framework’s suitability for continuous environmental surveillance. This approach addresses limitations of traditional costly and time-consuming laboratory tests by offering affordable, scalable, and adaptive monitoring, supporting sustainable water resource management. Future work will explore additional sensor integration, enhanced deep learning architectures, and economic feasibility studies for large-scale implementation. The proposed framework contributes significantly to environmental protection, public health safeguarding, and intelligent infrastructure development aligned with Sustainable Development Goals (SDG 6), fostering smarter and safer water ecosystems.

References

[1]Singh, M., Sahoo, K. S., & Nayyar, A. (2022). Sustainable IoT solution for freshwater aquaculture management. IEEE Sensors Journal, 22, 16563-16572. https://doi.org/10.1109/JSEN.2022.3188639

[2]Bhargavi, K., Sowmya, K. V., Ajay, P., Saketh, D., & Ravindhar, B. (2023). Water quality system for aquaculture using IoT. International Research Journal of Modern Engineering and Technology Sciences, 5, 21-23. https://doi.org/10.56726/IRJMETS35272

[3]Baena-Navarro, R., Vergara-Villadiego, J., Carriazo-Regino, Y., Crawford-Vidal, R., & Barreiro-Pinto, F. (2024). Challenges in implementing free software in small and medium-sized enterprises in the city of Montería: A case study. Bulletin of Electrical Engineering and Informatics, 13, 586-597. https://doi.org/10.11591/eei.v13i1.6710

[4]Carriazo-Regino, Y., Baena-Navarro, R., Torres-Hoyos, F., Vergara-Villadiego, J., & Roa-Prada, S. (2022). IoT-based drinking water quality measurement: Systematic literature review. Indonesian Journal of Electrical Engineering and Computer Science, 28, 405-418. https://doi.org/10.11591/ijeecs.v28.i1.pp405-418

[5]Pinedo-López, J., Baena-Navarro, R., Durán-Rojas, N., Díaz-Cogollo, L., & Farak-Flórez, L. (2024). Energy transition in Colombia: An implementation proposal for SMEs. Sustainability, 16, 7263. https://doi.org/10.3390/su16177263

[6]Vidal-Durango, J., Baena-Navarro, R., & Therán-Nieto, K. (2024). Implementation and feasibility of green hydrogen in Colombian kitchens: An analysis of innovation and sustainability. Indonesian Journal of Electrical Engineering and Computer Science, 34, 726-744. https://doi.org/10.11591/ijeecs.v34.i2.pp726-744

[7]Kushwaha, S. (2023). A futuristic perspective on artificial intelligence. In Proceedings of the IEEE OPJU International Technology Conference on Emerging Technologies For Sustainable Development (pp. 1-6). O.P. Jindal University, Raigarh, Chhattisgarh, India.

[8]Petkovski, A., Ajdari, J., & Zenuni, X. (2021). IoT-based solutions in aquaculture: A systematic literature review. In Proceedings of the 2021 44th International Convention on Information, Communication and Electronic Technology (MIPRO) (pp. 1358-1363). IEEE.

[9]Abinaya, T., Ishwarya, J., & Maheswari, M. (2019). A novel methodology for monitoring and controlling of water quality in aquaculture using Internet of Things (IoT). In Proceedings of the 2019 International Conference on Computer Communication and Informatics (ICCCI) (pp. 1-4). IEEE.

[10]Ahmed, M., Rahaman, M. O., Rahman, M., & Abul Kashem, M. (2019). Analyzing the quality of water and predicting the suitability for fish farming based on IoT in the context of Bangladesh. In Proceedings of the 2019 International Conference on Sustainable Technologies for Industry 4.0 (STI) (pp. 1-5). IEEE.

[11]Hu, W.-C., Chen, L.-B., Huang, B.-K., & Lin, H.-M. (2022). A computer vision-based intelligent fish feeding system using deep learning techniques for aquaculture. IEEE Sensors Journal, 22, 7185-7194. https://doi.org/10.1109/JSEN.2022.3151777

[12]Li, L., Jiang, P., Xu, H., Lin, G., Guo, D., & Wu, H. (2019). Water quality prediction based on recurrent neural network and improved evidence theory: A case study of Qiantang River, China. Environmental Science and Pollution Research, 26, 19879-19896. https://doi.org/10.1007/s11356-019-05116-y

[13]Giao, N. T., Van Cong, N., & Nhien, H. T. H. (2021). Using remote sensing and multivariate statistics in analyzing the relationship between land use pattern and water quality in Tien Giang Province, Vietnam. Water, 13, 1093. https://doi.org/10.3390/w13081093

[14]Rasheed Abdul Haq, K. P., & Harigovindan, V. P. (2022). Water quality prediction for smart aquaculture using hybrid deep learning models. IEEE Access, 10, 60078-60098. https://doi.org/10.1109/ACCESS.2022.3180482

[15]Kushwaha, S. (2023). Review on artificial intelligence and human computer interaction. In Proceedings of the IEEE OPJU International Technology Conference on Emerging Technologies For Sustainable Development (pp. 1-6). O.P. Jindal University, Raigarh, Chhattisgarh, India.

[16]Syed Taha, S. N., Abu Talip, M. S., Mohamad, M., Azizul Hasan, Z. H., & Tengku Mohmed Noor Izam, T. F. (2024). Evaluation of LoRa network performance for water quality monitoring systems. Applied Sciences, 14, 7136. https://doi.org/10.3390/app14167136

[17]Suriasni, P. A., Faizal, F., Hermawan, W., Subhan, U., Panatarani, C., & Joni, I. M. (2024). IoT water quality monitoring and control system in moving bed biofilm reactor to reduce total ammonia nitrogen. Sensors, 24, 494. https://doi.org/10.3390/s24020494

[18]Wang, X., Li, Y., Qiao, Q., Tavares, A., & Liang, Y. (2023). Water quality prediction based on machine learning and comprehensive weighting methods. Entropy, 25, 1186. https://doi.org/10.3390/e25081186

[19]Dupont, C., Cousin, P., & Dupont, S. (2018). IoT for aquaculture 4.0 smart and easy-to-deploy real-time water monitoring with IoT. In Proceedings of the 2018 Global Internet of Things Summit (GIoTS) (pp. 1-5). IEEE.

[20]Teixeira, R. R., Puccinelli, J. B., Poersch, L., Pias, M. R., Oliveira, V. M., Janati, A., & Paris, M. (2021). Towards precision aquaculture: A high performance, cost-effective IoT approach. arXiv. https://doi.org/10.48550/arXiv.2105.11493

[21]Suhaili, W., Aziz, M., Ramlee, H., Patchmuthu, R., Shams, S., Mohamad, I., Isa, M., & Nore, B. (2023). IoT aquaculture system for sea bass and giant freshwater prawn farming in Brunei. In Proceedings of the 2023 13th International Conference on Information Technology in Asia (CITA) (pp. 60-65). IEEE.

[22]Nayak, S., Mantri, J. K., & Swain, P. K. (2019). Design and performance analysis of rural aquaculture ponds using IoT. International Journal of Recent Technology and Engineering, 8, 3078-3081. https://doi.org/10.35940/ijrte.B2086.078219

[23]Cheng, L., Chen, Y.-Q., Zhang, S.-X., & Zhang, S. (2024). Quantum approximate optimization via learning-based adaptive optimization. Communications Physics, 7, 83. https://doi.org/10.1038/s42005-024-01577-x

[24]Yan, X., Zhang, T., Du, W., Meng, Q., Xu, X., & Zhao, X. (2024). A comprehensive review of machine learning for water quality prediction over the past five years. Journal of Marine Science and Engineering, 12(1), 159. https://doi.org/10.3390/jmse12010159

[25]Kaddoura, S. (2022). Evaluation of machine learning algorithm on drinking water quality for better sustainability. Sustainability, 14(18), 11478. https://doi.org/10.3390/su141811478

[26]Wei, T. Y., Tindik, E. S., Fui, C. F., Haviluddin, H., & Hijazi, M. H. A. (2023). Automated water quality monitoring and regression-based forecasting system for aquaculture. Bulletin of Electrical Engineering and Informatics, 12(1), 570-579. https://doi.org/10.11591/eei.v12i1.4464

[27]Kumar, P., Tiwari, P., & Reddy, U. S. (2023). Estimating fish weight growth in aquaponic farming through machine learning techniques. In Proceedings of the 2023 3rd International Conference on Intelligent Technologies (CONIT) (pp. 1-7). IEEE.

[28]Alashjaee, A. M., Kushwaha, S., Alamro, H., Hassan, A. A., Alanazi, F., & Mohamed, A. (2024). Optimizing 5G network performance with dynamic resource allocation, robust encryption, and Quality of Service (QoS) enhancement. PeerJ Computer Science, 10, e2567. https://doi.org/10.7717/peerj-cs.2567.

[29]Ahmed, A. A. M., Jui, S. J. J., Chowdhury, M. A. I., Ahmed, O., & Sutradha, A. (2023). The development of dissolved oxygen forecast model using hybrid machine learning algorithm with hydro-meteorological variables. Environmental Science and Pollution Research, 30, 7851-7873. https://doi.org/10.1007/s11356-022-22601-z

Downloads

Published

2025-10-13

Issue

Section

Articles