Skip to content
Conference

Performance Comparison of Artificial Neural Networks and Random Forest for Water Quality Prediction

Aug 2026 · International Conference Computational Vision and Bio Inspired Computing · pp. 306-311 · 0 citations · 20 references

Abstract

Accurate prediction of the groundwater quality is essential for safeguarding public health from contaminated water and to guide water management decisions, especially in areas in which rapid population, industrial and agricultural growth lead to pollution and groundwater is the primary source of water. Traditional statistical methods cannot capture the non-linear relationships among groundwater quality parameters; the Water Quality Index (WQI) combines multiple physicochemical parameters into a single index of water quality. Groundwater quality data from primary sources were used for this study to predict WQI using two machine learning algorithms: Artificial Neural Network (ANN) and Random Forest (RF) regression. Twelve physicochemical parameters (pH, TDS, EC, alkalinity, chloride, sodium, potassium, magnesium, calcium, Total Hardness, and nitrate) were used as input variables and WQI as output variables. The data was split into a 70:30 ratio for training and testing. They were chosen because they can handle non-linear relationships, multicollinearity, and complex interactions in hydrogeochemical data. The ANN with the backpropagation model had good predictive ability, with $\mathrm{R}^{\mathrm{2}}$ values of $\text{1. 0 0 0}$ in training, 0.987 in validation, and 0.955 in testing, and an average RMSE of less than 6. Sensitivity to data partitioning is a common problem in small datasets with extreme values. The RF model was more stable with $\mathrm{R}^{\mathrm{2}} > \text{0. 9 5}$ and $\text{R M S E} = \mathrm{5}$ for both the training and test data. Diagnostic tests confirmed their reliability: out-of-bag error increased, and the residuals were randomly distributed around Zero, exhibiting no systematic bias. The models' suitability for assessing groundwater quality was similar, with Random Forest showing better generalisation-resistance to fitting and prediction accuracy. The results validate the potential of implementing groundwater quality monitoring and management using machine learning (especially RF regression), and the method could be easily transferred to other areas and environmental parameters for better groundwater resource planning.

View source

Similar papers

Open access 2026

MACHINE LEARNING-BASED PREDICTION OF WATER QUALITY USING PHYSICOCHEMICAL AND ENVIRONMENTAL INDICATORS

The findings demonstrate that a parsimonious machine-learning framework can capture meaningful water-quality variability from multidimensional environmental measurements and provides a practical basis for identifying influential indicators and supporting targeted water-quality monitoring.

Rakhi Dua · 0 citations
Conference Open access Oct 2026

Machine Learning Based Water Quality Assessment Under Changing Climatic Conditions

Water quality assessment is done to verify water quality in order to maintain ecological balance and protect public health. Though traditional methods are accurate they are often time-consuming and costly. This paper aims to overcome these challenges by using machine learning techniques to efficiently predict water qua...

S. Vidivelli, S. Rajarajan, A. Karthika et al. · 0 citations
Oct 2026

Comparative evaluation of machine learning models for water quality classification using physicochemical parameters and SMOTE in tropical rivers

Figure showing an interpretable framework for water quality parameters in tropical rivers Machine learning offers a promising approach for water quality assessment by modelling complex nonlinear relationships among physicochemical parameters. This study compares four machine learning classifiers. Artificial Neural N...

Y. Abdullahi, Wan Maznah Wan Omar, L. Aprilianitasari et al. · 0 citations
Sep 2026

Machine Learning-Based Groundwater Quality Assessment and Drinkability Prediction

Groundwater is a major source of drinking water for a large proportion of the global population; however, rapid urbanization, industrialization, and agricultural activities have led to a marked deterioration of groundwater quality. Thus, there is a need for efficient, reliable and rapid groundwater quality assessment t...

Onkar Nath Thakur · 0 citations
Review Open access Oct 2026

Neural networks for groundwater prediction: a global literature review

Groundwater is essential for water and food security, yet its prediction remains challenging because aquifer systems are nonlinear and monitoring data are often incomplete. This study aimed to determine the global state of the art in neural network applications for groundwater prediction through a systematic literature...

Heling Kristtel Masgo Ventura, Victor Gerardo Inga Merino, Jhosymar Bacalla Tenorio et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.