Water Quality Predictive Analytics Using an Artificial Neural Network with a Graphical User Interface
Abstract
:1. Introduction
2. Materials and Methods
2.1. Study Area
2.2. Data Description and Preprocessing
2.3. Artificial Neural Network (ANN) Model
2.4. Model Evaluation Metrics
2.5. App Development and Real-Time Modelling
3. Results and Discussion
3.1. ANN Model Performances
3.2. Sensitivity Analysis of the ANN Models
3.3. Developed App
4. Conclusions
- ANNs can be utilised to predict different types of water quality parameters using a large number of inputs;
- The outcomes obtained showed that the ANN models have high performance, with R > 0.90 and R2 > 0.85 in both training and testing datasets, for the predictions of all six water quality parameters;
- All of the developed ANN models obtained low values of MAD and MAPE, with MAD < 0.10 and MAPE < 20% error for all datasets;
- Each input parameter had a different level of influence on the prediction of the six water quality parameters, but rainfall data seems to be the key input parameter that needs to be included in all of the models to predict the respective water quality parameters;
- The app was also able to operate to predict water quality parameters by embedding the developed ANN models that were trained by using the historical data obtained;
- Future studies with different machine learning predictive models or more advanced models such as extreme machine learning and hybrid models are recommended as continuations of the present study.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Hayder, G.; Kurniawan, I.; Mustafa, H.M. Implementation of machine learning methods for monitoring and predicting water quality parameters. Biointerf. Res. Appl. Chem. 2021, 11, 9285–9295. [Google Scholar]
- Hayder, G.; Solihin, M.I.; Mustafa, H.M. Modelling of River Flow Using Particle Swarm Optimized Cascade-Forward Neural Networks: A Case Study of Kelantan River in Malaysia. Appl. Sci. 2020, 10, 8670. [Google Scholar] [CrossRef]
- Ighalo, J.O.; Adeniyi, A.G. A comprehensive review of water quality monitoring and assessment in Nigeria. Chemosphere 2020, 260, 127569. [Google Scholar] [CrossRef] [PubMed]
- Ewaid, S.; Abed, S.; Al-Ansari, N.; Salih, R. Development and Evaluation of a Water Quality Index for the Iraqi Rivers. Hydrology 2020, 7, 67. [Google Scholar] [CrossRef]
- Sami, B.H.Z.; Khai, W.J.; Fai, C.M.; Essam, Y.; Ahmed, A.N.; El-Shafie, A. Investigating the reliability of machine learning algorithms as a sustainable tool for total suspended solid prediction. Ain Shams Eng. J. 2021, 12, 1607–1622. [Google Scholar] [CrossRef]
- Ahmed, A.N.; Othman, F.B.; Afan, H.A.; Ibrahim, R.K.; Fai, C.M.; Hossain, S.; Ehteram, M.; Elshafie, A. Machine learning methods for better water quality prediction. J. Hydrol. 2019, 578, 124084. [Google Scholar] [CrossRef]
- Yaseen, Z.M.; Jaafar, O.; Deo, R.C.; Kisi, O.; Adamowski, J.; Quilty, J.; El-Shafie, A. Stream-flow forecasting using extreme learning machines: A case study in a semi-arid region in Iraq. J. Hydrol. 2016, 542, 603–614. [Google Scholar] [CrossRef]
- Nourani, V.; Paknezhad, N.J.; Sharghi, E.; Khosravi, A. Estimation of prediction interval in ANN-based multi-GCMs downscaling of hydro-climatologic parameters. J. Hydrol. 2019, 579, 124226. [Google Scholar] [CrossRef]
- Dogan, E.; Sengorur, B.; Koklu, R. Modeling biological oxygen demand of the Melen River in Turkey using an artificial neural network technique. J. Environ. Manag. 2009, 90, 1229–1235. [Google Scholar] [CrossRef]
- Sarkar, A.; Pandey, P. River Water Quality Modelling Using Artificial Neural Network Technique. Aquat. Procedia 2015, 4, 1070–1077. [Google Scholar] [CrossRef]
- Nasirudin, M.A.; Za’Bah, U.N.; Sidek, O. Fresh water real-time monitoring system based on Wireless Sensor Network and GSM. In Proceedings of the 2011 IEEE Conference on Open Systems, Langkawi, Malaysia, 25–28 September 2011; pp. 354–357. [Google Scholar]
- Menon, K.U.; Divya, P.; Ramesh, M.V. Wireless sensor network for river water quality monitoring in India. In Proceedings of the 2012 Third International Conference on Computing, Communication and Networking Technologies (ICCCNT’12), Coimbatore, India, 26–28 July 2012; pp. 1–7. [Google Scholar]
- Wang, Z.; Wang, Q.; Hao, X. The Design of the Remote Water Quality Monitoring System Based on WSN. In Proceedings of the 2009 5th International Conference on Wireless Communications, Networking and Mobile Computing, Beijing, China, 24–26 September 2009; pp. 1–4. [Google Scholar]
- Kageyama, T.; Miura, M.; Maeda, A.; Mori, A.; Lee, S.-S. A wireless sensor network platform for water quality monitoring. In Proceedings of the 2016 IEEE Sensors, Orlando, FL, USA, 30 October–3 November 2016; pp. 1–3. [Google Scholar]
- Hasib, N.A.; Othman, Z. Assessing the Relationship between Pollution Sources and Water Quality Parameters of Sungai Langat Basin using Association Rule Mining. Sains Malays. 2020, 49, 2345–2358. [Google Scholar] [CrossRef]
- Hassim, M.; Yuzir, A.; Razali, M.N.; Ros, F.C.; Chow, M.F.; Othman, F. Comparison of Rainfall Interpolation Methods in Langat River Basin. IOP Conf. Ser. Earth Environ. Sci. 2020, 479, 012018. [Google Scholar] [CrossRef]
- Saudi, A.; Kamarudin, M.; Ridzuan, I.; Ishak, R.; Azid, A.; Rizman, Z. Flood risk index pattern assessment: Case study in Langat River Basin. J. Fundam. Appl. Sci. 2018, 9, 12. [Google Scholar] [CrossRef] [Green Version]
- Noorazuan, M.H.; Rainis, R.; Juahir, H.; Zain, S.M.; Jaafar, N. GIS application in evaluating land use-land cover change and its impact on hydrological regime in Langat River basin, Malaysia. In Proceedings of the 2nd Annual Asian Conference of Map Asia, Kuala Lumpur, Malaysia, 14–15 October 2003; pp. 14–15. [Google Scholar]
- Yusof, N.F.; Lihan, T.; Idris, W.M.R.; Rahman, Z.A.; Mustapha, M.A.; Yusof, M.A.W. Spatially distributed soil losses and sediment yield: A case study of Langat watershed, Selangor, Malaysia. J. Southeast Asian Earth Sci. 2021, 212, 104742. [Google Scholar] [CrossRef]
- Rizal, N.N.M.; Hayder, G.; Yussof, S. River water quality prediction and analysis—deep learning predictive models approach. In Advances in Science, Engineering, and Technology (ASTI); Submitted for Review; Springer: Berlin/Heidelberg, Germany, 2020. [Google Scholar]
- Soo, E.Z.X.; Jaafar, W.Z.W.; Lai, S.H.; Othman, F.; Elshafie, A.; Islam, T.; Hadi, H.S.O. Evaluation of bi-as-adjusted satellite precipitation estimations for extreme flood events in Langat river basin, Malaysia. Hydrol. Res. 2020, 51, 105–126. [Google Scholar] [CrossRef]
- Mohammed, T.A.; Al-Hassoun, S.; Ghazali, A.H. Prediction of flood levels along a stretch of the langat river with insufficient hydrological data. Pertanika J. Sci. Technol. 2011, 19, 237–248. [Google Scholar]
- Saudi, A.S.M.; Juahir, H.; Azid, A.; Toriman, M.E.; Kamarudin, M.K.A.; Saudi, M.M.; Mustafa, A.D.; Amran, M.A. Flood risk pattern recognition by using environmetric technique: A case study in langat river basin. J. Teknol. 2015, 77. [Google Scholar] [CrossRef] [Green Version]
- Shahmansouri, A.A.; Yazdani, M.; Hosseini, M.; Bengar, H.A.; Ghatte, H.F. The prediction analysis of compressive strength and electrical resistivity of environmentally friendly concrete incorporating natural zeolite using artificial neural net-work. Constr. Build. Mater. 2022, 317, 125876. [Google Scholar] [CrossRef]
- Burchard-Levine, A.; Liu, S.; Vince, F.; Li, M.; Ostfeld, A. A hybrid evolutionary data driven model for river water quality early warning. J. Environ. Manag. 2014, 143, 8–16. [Google Scholar] [CrossRef]
- Ahmed, A.M. Prediction of dissolved oxygen in Surma River by biochemical oxygen demand and chemical oxygen demand using the artificial neural networks (ANNs). J. King Saud Univ. Eng. Sci. 2017, 29, 151–158. [Google Scholar] [CrossRef] [Green Version]
- Khan, Y.; Chai, S.S. Ensemble of ANN and ANFIS for water quality prediction and analysis-a data driven approach. J. Telecommun. Electron. Comput. Eng. 2017, 9, 117–122. [Google Scholar]
- Ibrahim, R.K.; Fiyadh, S.S.; AlSaadi, M.A.; Hin, L.S.; Mohd, N.S.; Ibrahim, S.; Afan, H.A.; Fai, C.M.; Ahmed, A.N.; Elshafie, A. Feedforward Artificial Neural Network-Based Model for Predicting the Removal of Phenolic Compounds from Water by Using Deep Eutectic Solvent-Functionalized CNTs. Molecules 2020, 25, 1511. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Mustafa, A.S. Artificial neural networks modeling of total dissolved solid in the selected locations on tigris river, iraq. J. Eng. 2015, 21, 162–179. [Google Scholar]
- Rizal, N.N.M.; Hayder, G. River water quality prediction using artificial intelligence approach: Literature review. J. Energy Environ. 2020, 12, 1–7. [Google Scholar]
- Palwe, S.S.; Bhosale, J.D. The real time water quality monitoring system based on iot platform. Int. J. S Res. Sci. Eng. Technol. 2018, 4, 434–442. [Google Scholar]
- Daigavane, V.V.; Gaikwad, M.A. Water quality monitoring system based on IoT. Adv. Wirel. Mob. Comun. 2017, 10, 1107–1116. [Google Scholar]
- Amruta, M.K.; Satish, M.T. Solar powered water quality monitoring system using wireless sensor network. In Proceedings of the 2013 International Mutli-Conference on Automation, Computing, Communication, Control and Compressed Sensing (iMac4s), Kottayam, India, 22–23 March 2013; pp. 281–285. [Google Scholar]
- Koditala, N.K.; Pandey, P.S. Water Quality Monitoring System Using IoT and Machine Learning. In Proceedings of the 2018 International Conference on Research in Intelligent and Computing in Engineering (RICE), San Salvador, El Salvador, 22–24 August 2018; pp. 1–5. [Google Scholar]
Model No. | Parameter | Unit | R | R2 | MSE | RMSE |
---|---|---|---|---|---|---|
Training dataset | ||||||
1 | BOD5 | mg/L × 100 | 0.9999 | 0.9998 | 6.6655 × 10−9 | 8.1643 × 10−5 |
2 | TSS | mg/L | 0.9999 | 0.9998 | 8.1599 × 10−16 | 2.8566 × 10−8 |
3 | DS | mg/L × 100 | 0.9999 | 0.9998 | 2.1560 × 10−11 | 4.6433 × 10−6 |
4 | TS | mg/L | 0.9953 | 0.9906 | 2.5101 × 10−4 | 0.0158 |
5 | Nitrate | mg/L × 100 | 0.9999 | 0.9998 | 4.8329 × 10−11 | 6.9519 × 10−6 |
6 | Phosphate | mg/L × 100 | 0.9999 | 0.9998 | 2.3320 × 10−11 | 4.8291 × 10−6 |
Testing dataset | ||||||
1 | BOD5 | mg/L × 100 | 0.9379 | 0.8797 | 2.9687 × 10−4 | 0.0172 |
2 | TSS | mg/L | 0.9984 | 0.9968 | 6.0338 × 10−5 | 7.7678 × 10−3 |
3 | DS | mg/L × 100 | 0.9985 | 0.9970 | 5.4759 × 10−5 | 7.3999 × 10−3 |
4 | TS | mg/L | 0.9944 | 0.9888 | 3.8300 × 10−4 | 0.0196 |
5 | Nitrate | mg/L × 100 | 0.9886 | 0.9773 | 9.4506 × 10−4 | 0.0307 |
6 | Phosphate | mg/L × 100 | 0.9986 | 0.9972 | 1.3199 × 10−3 | 0.0363 |
Model No. | Parameter | Unit | MAD | MAPE (%) |
---|---|---|---|---|
1 | BOD5 | mg/L × 100 | 0.0019 | 4.55 |
2 | TSS | mg/L | 0.0026 | 1.57 |
3 | DS | mg/L × 100 | 0.0016 | 17.52 |
4 | TS | mg/L | 0.0147 | 13.92 |
5 | Nitrate | mg/L × 100 | 0.0043 | 15.81 |
6 | Phosphate | mg/L × 100 | 0.0014 | 1.45 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Rizal, N.N.M.; Hayder, G.; Yusof, K.A. Water Quality Predictive Analytics Using an Artificial Neural Network with a Graphical User Interface. Water 2022, 14, 1221. https://doi.org/10.3390/w14081221
Rizal NNM, Hayder G, Yusof KA. Water Quality Predictive Analytics Using an Artificial Neural Network with a Graphical User Interface. Water. 2022; 14(8):1221. https://doi.org/10.3390/w14081221
Chicago/Turabian StyleRizal, Nur Najwa Mohd, Gasim Hayder, and Khairul Adib Yusof. 2022. "Water Quality Predictive Analytics Using an Artificial Neural Network with a Graphical User Interface" Water 14, no. 8: 1221. https://doi.org/10.3390/w14081221
APA StyleRizal, N. N. M., Hayder, G., & Yusof, K. A. (2022). Water Quality Predictive Analytics Using an Artificial Neural Network with a Graphical User Interface. Water, 14(8), 1221. https://doi.org/10.3390/w14081221