Abstract

Ascertaining water quality for irrigational use by employing conventional methods is often time taking and expensive due to the determination of multiple parameters needed, especially in developing countries. Therefore, constructing precise and adequate models may be beneficial in resolving this problem in agricultural water management to determine the suitable water quality classes for optimal crop yield production. To achieve this objective, five machine learning (ML) models, namely linear regression (LR), random subspace (RSS), additive regression (AR), reduced error pruning tree (REPTree), and support vector machine (SVM), have been developed and tested for predicting of six irrigation water quality (IWQ) indices such as sodium adsorption ratio (SAR), percent sodium (%Na), permeability index (PI), Kelly ratio (KR), soluble sodium percentage (SSP), and magnesium hazards (MH) in groundwater of the Nand Samand catchment of Rajasthan. The accuracy of these models was determined serially using the mean squared error (MSE), correlation coefficients (r), mean absolute error (MAE), and root mean square error (RMSE). The SVM model showed the best-fit model for all irrigation indices during testing, that is, RMSE: 0.0662, 4.0568, 3.0168, 0.1113, 3.7046, and 5.1066; r: 0.9364, 0.9618, 0.9588, 0.9819, 0.9547, and 0.8903; MSE: 0.004381, 16.45781, 9.101218, 0.012383, 13.72447, and 26.078; MAE: 0.042, 3.1999, 2.3584, 0.0726, 2.9603, and 4.0582 for KR, MH, SSP, SAR, %Na, and PI, respectively. The KR and SAR values were predicted accurately by the SVM model in comparison to the observed values. As a result, machine learning algorithms can improve irrigation water quality characteristics, which is critical for farmers and crop management in various irrigation procedures. Additionally, the findings of this research suggest that ML models are effective tools for reliably predicting groundwater quality using general water quality parameters that may be acquired directly on periodical basis. Assessment of water quality indices may also help in deriving optimal strategies to utilise inferior quality water conjunctively with fresh water resources in the water-limited areas.

1. Introduction

Water resources are vital in supplying domestic water, industrial processes, and agriculture. Indeed, improved water quality minimises the cost of water treatment for domestic and industrial purposes and boosts agricultural yield. Demand for water is accelerating as a result of populace growth, intensive agriculture, urbanisation, and industrialisation. Because anthropogenic activities and natural pollution sources endanger water resources in ways that go beyond their suitability for drinking, irrigation, industrial, and other uses [1, 2], water quality evaluation and prediction are required to establish whether or not a body of water is suitable for a particular purpose and, if it is not, to decide the right remedies or precautions to take. The world's growth and development have resulted in widespread contamination from precipitation outlets such as rivers [3]. Agriculture is the biggest consumer of water, accounting for up to 80% of total consumption, and is also a significant source of water pollution. Thus, water planning and management with an eye on cost-effective irrigation is necessary to ensure the sustainability of agriculture [4]. Because groundwater is positioned beneath the land surface and is normally not in contact with the atmosphere, it is generally regarded to be safe for ingestion [5]. However, its quality may be harmed as a result of anthropogenic activities such as improper waste disposal and the application of agrochemicals [6]. Naturally, the dissolution of minerals in rocks can have an effect on the quality of groundwater [7].

Artificial intelligence (AI) systems have been researched in recent years and have demonstrated a high capacity for forecasting and monitoring water quality [811]. Machine learning (ML), deep learning (DL), and artificial neural networks (ANN) are some of these techniques. For instance, Ahmed et al. [8] explored machine learning models and demonstrated how precise this technique is at predicting water quality for domestic purposes. Leong et al. [12] validated the accuracy of the support vector machine (SVM) model in estimating the water quality index. Nowadays, there are few studies using artificial intelligence to evaluate and forecast the quality of irrigation water. Wagh et al. [13], on the other hand, employed ANN to estimate the suitability of groundwater for irrigation in India, utilising 13 physicochemical properties as input variables. They revealed that the data-driven model outperforms other models in terms of water appropriateness for irrigation use. According to Kouadri et al. [14], eight artificial intelligence algorithms were used to generate WQI predictions in the Illizi region of South East Algeria, including multilinear regression, M5P tree, random subspace, additive regression, random forest, artificial neural network, support vector regression, and locally weighted linear regression. The authors of [15] examined four meta-heuristic algorithms, including the support vector machine, the random tree, the reduced error pruning tree, and the random subspace technique. Similarly, the SVM model was used to predict marine water quality [16] and to monitor wastewater treatment plants [17], with varying degrees of precision. Furthermore, the following studies successfully used machine learning models for the assessment of surface water quality. A study was carried out by the authors of [18] on the Karoun river for the determination of three indices, that is, biochemical oxygen demand (BOD), dissolved oxygen, and chemical oxygen demand (COD), by employing three algorithms and concluded that the EPR model gives the best results during training and testing. The authors of [19] used multivariate adaptive regression spline (MARS) and least square-support vector machine (LS-SVM), as machine learning techniques, to calculate indices of the 5-day biochemical oxygen demand (BOD5) and COD for the Karoun river located in Khuzestan Iran. The results of the research depicted that the LS-SVM-RBF and LS-SVM-Poly methods have given the relatively accurate prediction for BOD5 and COD indices. A study [20] was conducted to determine the water quality index of the surface water resources of the Karoun river watershed for the purpose they used the data-driven models (DDMs) and 12 water quality parameters. Results showed that the FS-M5 MT had the best result for the determination of water quality index classification. The authors of [21] proposed the multiple-kernel support vector regression (MKSVR) algorithm for the calculation of COD and BOD. Results of the MKSVR were compared with the support vector regression and random forest regression (RFR). The study suggested that the use of MKSVR along with the particle swarm optimisation algorithm could give the superiority of the newly developed support vector machine technique for the water quality parameters determination in natural streams. A study [22] was conducted for the assessment of groundwater quality index in the Rafsanjan plain. The authors used the four robust data-driven techniques. The study reported that the evolutionary polynomial regression (EPR) gave the best results among the rest of the algorithms.

Notably, all published studies have proved that machine learning algorithms are capable of accurately forecasting water quality. The goal of this work is to generate and assess five machine learning (ML) models capable of numerically predicting the quality of water irrigation parameters required to determine its suitability for agricultural usage. Irrigation water just as domestic water quality is dependent on the source of the water, flow path, geology, and processes such as weathering, ion exchange, adsorption, and dissolution. Because the quality of groundwater plays an important role in the sustainability of irrigation, the purpose of this study is to determine the quality and usability of groundwater for irrigational purposes in the Nand Samand catchment.

1.1. Problem Statement

Rajasthan is the largest state in India with just about 1.16% surface water resources of the country. Most of the rivers of the state are rain-fed having no defined drainage basin. Due to the scarcity of surface water resources, about 94% of drinking water delivery schemes and 70% of irrigation schemes rely on groundwater [23]. Deteriorating groundwater quality due to natural and artificial sources is a major concern to meet the water of suitable quality for human consumption and irrigation use. Therefore, the present study aims to assess the irrigation water quality indices employing the machine learning models in the Nand Samand catchment.

2. Materials and Methods

2.1. Study Area Description

The catchment covers an area of and . It lies between Figure 1 shows the research area location map. The research area covers a survey of India (SOI) toposheets number of 45G-12, 45H-5, 6, 9, 10, 13, 43NG-9 on a 1:50,000 scale. The total area of the catchment is 865.18 km2, with the highest elevation of about 1,318 m and the lowest elevation of 570 m above mean sea level (MSL).

2.2. Data Collection

The groundwater samples were taken in 2019 during the pre- and postmonsoon period from open wells (95 sites), which are extensively utilised for drinking and irrigation in the Nand Samand catchment area. The identification of the sampling points was performed using Global Positioning System (GPS), and the study area location map was prepared using ArcGIS 10.1 (ESRI, California).

2.3. Methods and Data Preprocessing

Ninety-five water samples were taken at the Nand Samand catchment from 95 monitoring stations. The parameters measured and analysed are: , , , , , , , , , , and . The EC, pH, and TDS were evaluated during the sampling protocol using EC, pH, and TDS meter, while the other parameters were analysed in the laboratory that uses the flame photometer for and , titrimetric method for , and titration method for , , , and . These samples were used to assess the generalisability of the machine learning model. The irrigation water quality parameters evaluated include SAR, SSP, KR, PI, MH, and %Na and their descriptive statistics using XLSTAT-2021. The statistical characteristics of these parameters are shown in Table 1.

2.4. Machine Learning Models

Machine learning (ML), as one of the methods used in artificial intelligence (Table 2), presented the parameters used for ML models in the present study. At the moment, machine learning models are being utilised to precisely estimate the majority of groundwater quality characteristics and demonstrate their efficiency [14, 23, 24]. We have utilised 95 water samples for this model. This study uses 76% and 24% data for LR, RSS, AR, REPTree, and SVM models’ prediction purposes in training and testing, respectively. Five machine learning models were developed in this study to forecast irrigation water quality indicators, more precisely: LR, RSS, AR, REPTree, and SVM models. Therefore, five machine learning models, LR, RSS, AR, REPTree, and SVM, were selected. The flowchart in Figure 2 illustrates the methodology’s steps.

2.4.1. Linear Regression (LR)

LR is a conventional statistical technique that describes a target variable Y (referred to as a response variable) as a linear function of a collection of researcher-controlled parameters Xj (called regressors or predictors). The multiple LR model can be represented in the following manner:where n denotes the sample size. The parameters of the model are estimated using the least squares criteria. The key advantage of the LR technique over other ML methods is the short computing time required to estimate the model’s parameters. It enables inferences on regression parameters and predictions under an appropriate theoretical framework. Although the LR technique has demonstrated good performance in a variety of situations and fields, it is confined to linear correlations between the response variable and the predictors. However, real-world situations may be nonlinear and complex [25].

2.4.2. Random Subspace (RSS)

Ho [26] introduced the RSS model as a revolutionary coupled method for solving natural problems using artificial intelligence. This approach combines and trains numerous classifiers on an updated feature space. The RS inputs are the training set (x), the base classifier (w), and the number of subspaces (L) [27, 28]. This method is strongly recommended by Pham et al. [29] for avoiding overfitting issues and dealing with the smallest possible data sets. Additionally, when data contains many redundant features, the random subspace gives improved classifiers than the original feature space. The subgroups are randomly chosen from classification training, and the number of subsets is integrated. The first step is to subdivide the initial space into subsets. The results are then calculated using the majority of votes cast by Kushwaha et al. [15] as follows:where δ = Kronecker symbol, , and .

2.4.3. Additive Regression (AR)

The generalised additive model (GAM), a variant of the generalised linear model (GLM) [30], has a number of advantages over the latter model. To represent the response, it employs a sum of nonlinear functions, which is based on the theory of nonlinear functions, and allows for a more precise representation of the effect of each explanatory variable. This precision makes it a popular technique for modelling the effects of environmental variables, as these effects are frequently nonlinear and difficult to express parametrically [31, 32].

2.4.4. Reduced Error Pruning Tree (REPTree)

The REPTree classifier is a rapid decision tree technique that is based on the concept of calculating information acquisition using entropy and reducing variance-induced error [33]. In regression tree modified iterations, the REPTree generates numerous trees. Then, the best trees produced are chosen. This approach minimises pruning error rates by utilising the linking method. The mistake in the tree's average frame prediction is used to prune the tree. At the start of the modelling process, the values of numerical attributes are sorted. As with the C4.5 Algorithm, this algorithm partitions the corresponding samples and processes the values that are missing [34].

2.4.5. Support Vector Machine (SVM)

SVM is a commonly used artificial intelligence technique for pattern recognition, classification, and regression. Because function fitting is a well-known use of SVM, this subset of SVM usage is referred to as support vector regression (SVR). The objective of function fitting with SVM is to minimise error (difference between the model output and observed data). Numerous characteristics of this system make it the perfect choice for use in tackling linear and nonlinear correlation problems [35, 36]. This can be considered an optimisation issue, with the following mathematical expression:

where ω is a normal vector, is the regularisation factor, is the error penalty factor, is a bias, is the error function, xi is the input vector, di is the target value, is the number of elements in the training data set, φ(xi) is a feature space, and and are upper and lower excess deviation, respectively [37].

2.5. Agriculture Water Quality Parameters

Six irrigation water quality indices were selected and calculated in this study: KI/KR, MH, PI, percent Na, SAR, and SSP. These indices were used to forecast the value of water quality variables and to determine the acceptable groundwater quality for agricultural applications in the study area.

2.5.1. Kelly Ratio (KR)

The Kelly ratio is a key indicator for determining the appropriateness of groundwater for irrigation purposes. Groundwater classified as having a KR value of 0 to 1 is suitable for irrigation purposes; groundwater classified as having a KR value greater than 1 is not suitable for irrigation purposes. The KR of groundwater was estimated using the following formula:

2.5.2. Magnesium Hazards (MHs)

Magnesium hazard is another important indicator for determining the irrigation quality of groundwater. Magnesium concentrations in groundwater are critical for crop productivity and growth. Calcium and magnesium, in general, sustain the state of groundwater equilibrium. Excessive magnesium (Mg2+) degrades soil structure, increasing the soil’s alkaline character and inhibiting plant growth. Groundwater is classified as acceptable for irrigation if the MH value is less than 50 and unsuitable if the MH value is greater than 50.

The MH value of groundwater was determined using the following formula:

2.5.3. Permeability Index (PI)

Permeability of the soil is important for crop yield and water circulation in the field. For an extended period of time, soil permeability is impacted by elevated , , , and bicarbonate concentrations in groundwater. Groundwater is classified into three classes based on PI: class I (more than 75%), class II (25–75%), and class III (less than 25%). Prolonged long-period groundwater utilisation to irrigate crops influences the groundwater permeability index [38]. PI is defined by

2.5.4. Percent Sodium (%Na)

Wilcox [39] introduced a classification scheme for rating irrigation water based on percent sodium (%Na). Sodium percent or the proportion of sodium among all the anions is usually expressed in terms of percent sodium. Using the following formula, it was estimated:

2.5.5. Sodium Adsorption Ratio (SAR)

The SAR is an important irrigation water quality parameter for determining the appropriateness of groundwater for agricultural use. The SAR value determined the relative , , and concentrations in groundwater. Excess amount of sodium in groundwater degrades soil quality and the groundwater equilibrium structure. The ratio of sodium concentration to the sum of and concentrations yields the SAR value for groundwater.

2.5.6. Soluble Sodium Percentage (SSP)

, , and concentrations all have a significant effect in the quality of groundwater used for irrigation. Groundwater with an SSP of less than 50% is good for irrigation purposes, while groundwater with an SSP of more than 50% is unsuitable.

2.6. Model’s Performance Criteria

The following statistical performance criteria measurements were utilised in equations (6)–(9) to evaluate the performance of the developed machine learning models.

2.6.1. Mean Absolute Error (MAE)

Mean absolute error is a fairly common metric to calculate the error. It measures the performance of models that are applied to continuous variables, such as the water quality index. Error is defined as the prediction error of a model (actual value-predicted value). This value is determined for each row of data. Then the absolute value of each difference is averaged. It is also a linear score, meaning that every individual error is weighted equally in the average [40].

2.6.2. Mean Squared Error (MSE)

Mean squared error is almost identical to mean absolute error; however, the difference between actual and predicted is squared instead of put into an absolute value. Squaring the differences emphasises the differences as larger differences become amplified by the squaring. This better accounts for the larger errors and provides a more accurate measure of error. The formula of mean squared error is as follows:

2.6.3. Root Mean Squared Error

The root mean squared error technique is exactly the same as the mean squared error but is squared as follows:

The square root function makes this a good indicator of the standard deviation of the errors, which can demonstrate whether the model is consistent in its accuracy or varies based on input. An important note about this metric is that having a small root mean squared error is not necessarily adequate proof that the model is sufficient. If the error is too small, this could signify that the model is suffering from overfitting, meaning that it will only perform with high accuracy on the data set it was given [41].

2.6.4. Coefficient of Correlation (R)

The correlation coefficient (r) is a statistic that indicates how well the model fits the experimental data. The coefficient of correlation (r) was calculated by where Zi/Pi and are the measures and calculated value and n is the model’s number of values. Two models can be beneficial for regression and sorting; each model is learned using a unique method and evaluated for concealed data during the training process.

3. Results

3.1. Correlation Analysis

Correlation analysis is a statistical approach commonly exercised to determine the strength of a linear relationship between two dependent parameters. The variables are not chosen due to their independence or dependence. The correlation analysis method was used in the majority of the studies to determine the linear relationship between two variables. The correlation matrix was produced by computing the correlation coefficients for several parameters. values were used to determine the correlation’s significance. If p is smaller than and ( and ), the variation is significant (Tables 3 and 4). The change is not significant when p > . The level of significance is set between and [14, 42, 43]. Pearson correlation analysis is used to analyse the correlations between all variables (input/output), and the results are included in Tables 3 and 4. The two optimal input combinations are determined mostly by nonlinear subset regression and sensitivity analysis. Numerous researches have documented the benefit of employing a nonlinear sensitivity input variable selection strategy to carefully identify the most significant components [10, 32, 44, 45]. The optimal subset regression analysis is used to determine the optimal input combinations for all six irrigation water quality indices presented in Table 5. We found that the best combinations were Ca/Mg/Na, EC/TDS/SO4/Ca/Mg, pH/EC/TDS/CO3/SO4/Cl/Ca/Mg/Na/K, pH/CO3/HCO3/SO4/Cl/Ca/Mg/Na/K, pH/EC/CO3/HCO3/SO4/Cl/Ca/Mg/Na/K, EC/TDS/SO4/Cl/Ca/Mg/Na/K and achieved high correlation and less statistical errors for SSP, MH, KR, PI, %Na, SAR, respectively. Furthermore, all of the combinations that were identified showed positive results.

The Box–Whisker plots of irrigation water quality parameters for pre- and postmonsoon seasons are shown in Figures 3 and 4, respectively.

3.2. Evaluation of Results

Machine learning models have been widely applied in a variety of fields in recent years. They can aid in the forecast of future conservation and natural process scenarios. In this study, we have studied LR, RSS, AR, REPTree, and SVM models with two seasons (pre- and postmonsoon) findings that are commonly used to determine the viability of groundwater for irrigation drives when simple quantifiable input variables such as , , , , , , , , , , and for two seasons machine learning models. The finding of the study shows that machine learning models are quite good at predicting water quality levels [14, 35]. This article discusses the training and testing of LR, RSS, AR, REPTree, and SVM models. The comparison between LR, RSS, AR, REPTree, and SVM models’ performance is presented in Table 6. Subsections below provide a more extensive description.

3.2.1. Data Set Comparisons

We included all of the irrigation water quality variable data sets that were required for training and testing the generated model in our analysis. The training and testing results obtained by LR, RSS, AR, REPTree, and SVM are presented in Table 6.

As depicted in Table 6, the LR model has shown the maximum r = 0.9853 for the SAR value of training data and r = 0.9811 and 0.9811 for SSP and %Na for testing data, respectively. The SVM model has shown the maximum for SAR value of testing data. According to available literature, the r value above 0.8 is reasonable [46, 47], Other variables of LR models such as KR, MH, SSP, SAR, %Na, and PI value are above r = 0.8, and the other values are RMSE = 0.1347, 7.5467, 6.1867, 0.2183, 5.7977, and 7.5174 and RMSE = 0.0754, 4.7873, 3.8575, 0.1222, 3.2215, and 6.1774 in training and testing, respectively; MSE = 0.01814, 56.9535, 38.2754, 0.04762, 33.6145, and 56.5104 in training and MSE = 0.00571, 22.9183, 14.8804, 0.01495, 10.3783, and 38.1609 in testing; and MAE = 0.0916, 5.3615, 4.4615, 0.1444, 4.2076, and 5.6192 in training and MAE = 0.0602, 4.0303, 3.2127, 0.0952, 2.4304, and 5.2347 in testing.

Similarly, RSS-model developed based on the parameters such as Kelly’s ratio, magnesium hazard, sodium adsorption ration, permeability index, and soluble sodium percent. Statistical indices, RMSE, r, MSE, and MAE have been applied, and the values of these indices reveled that KR, MH, SSP, SAR, %Na, and PI coefficient correlation values for all irrigation indices in training and testing shows reasonable ‘r’ value except PI in testing (r = 0.8253), and RMSE values of these irrigation indices are 0.1072, 3.909, 2.7788, 0.2861, 3.5897, and 4.3149 and RMSE are 0.0837, 3.9627, 2.5604, 0.1411, 4.026, 6.0438 in training and testing, respectively. The MAE values are 0.0655, 2.8828, 1.9971, 0.145, 2.7885, and 3.2678, and 0.0533, 3.2096, 1.9217, 0.1022, 2.9814, and 4.6719 in training and testing, respectively.

Furthermore, the SVM training and testing models of KR, MH, SSP, SAR, %Na, and PI have shown a good coefficient correlation, and RMSE values range between 0.1165 (KR) and 4.592 (PI) in training and 0.0662 (KR) and 5.1066 (PI) in testing. Similarly, training and testing results of SVM model of KR, MH, SSP, SAR, %Na, and PI have shown MSE and MAE values of 0.01357, 17.8202, 9.07094, 0.07658, 10.4496, and 21.0859 and 0.00438, 16.4578, 9.10122, 0.01238, 13.7245, and 26.078 and 0.071, 2.814, 2.0718, 0.1308, 2.2881, and 3.3637 and 0.042, 3.1999, 2.3584, 0.0726, 2.9603, and 4.0582, respectively.

Similarly, for AR-model, training and testing models were developed based on the parameters such as Kelly’s ratio, magnesium hazard, sodium adsorption ration, permeability index, and soluble sodium percent, which have shown RMSE, r, MSE, and MAE values of KR, MH, SSP, SAR, %Na, and PI coefficient correlation values for all irrigation indices in training and testing shows reasonable r value except PI in testing (r = 0.8323), RMSE = 0.1031 for KR in training and RMSE = 0.0712 for KR in testing, respectively.

Furthermore, the REPTree training and testing models of KR, MH, SSP, SAR, %Na, and PI have shown a good coefficient correlation, and RMSE value ranges between 0.4003 (SAR) and 31.6945 (KR) in training and 0.0781 (KR) and 5.4483 (PI) in testing. Similarly, training and testing results of the REPTree model of KR, MH, SSP, SAR, %Na, and PI have shown MSE and MAE values ranging from 0.01473 (KR) to 21.7721 (PI) and 0.00611 (KR) to 29.6843 (PI) and 0.068 (KR) to 3.6209 (PI) and 0.0559 (KR) to 4.2895 (PI), respectively.

All four statistical indicators show the LR-model best fit for KR data in training and testing, followed by SAR. Similarly, AR-model and SVM-model are best-fit for KR and SAR data during training and testing. Furthermore, for the RSS-model, all four statistical indicators show the best results for KR in training. For testing, this model shows the best results for RMSE, MSE, and MAE for KR, and correlation coefficient for SAR data. For REPTree machine learning model for RMSE, r statistical indicators show best results for SAR irrigation indices, and MSE and MAE show best-fit for KR in training and testing. KR shows best results for all four statistical indicators followed by SAR. As a result, it can be concluded that SVM is the best model for all irrigation water quality indices for all four statistical indicators. This observation was similar to the findings obtained in their study [15, 48].

The scatter plots in Figure 5 depict the observed and simulated values generated by the models during the validation process. The models’ accuracy is sufficient when the values are distributed uniformly over or across both sides of the line XY, indicating that the errors follow the Gaussian distribution. This figure demonstrates that the ensemble models (SVM and REPTree) predict values that are more evenly distributed along the XY axis than the LR, RSS, and AR models.

Along with the models discussed previously, a radar map of performance indicators was used to evaluate the effectiveness of the applied models. Figure 6 depicts the values of performance indicators to aid in diagnosing the efficiency of all models. As illustrated in the figures, the SVM model has a lower MAE, MSE, root relative squared error (RRSE), relative absolute error (RAE), and RMSE value, as well as a higher Pearson’s r value than the other models for the SAR, PI, KR, and MH irrigation indices.

During testing, the Taylor diagram was used to execute a more in-depth comparative examination of the models (Figure 7) for all six irrigation indices. Based on the standard deviation and correlation coefficient, the SVM model was the most closely related to the observed location. In contrast, the LR model was shown to be the most far from the observed site for most irrigation indexes. LR was found to be the worst model, and SVM was found to be the best model among the models used for the current study.

4. Discussion

The current study has examined irrigation water quality utilising a variety of machine learning models (LR, RSS, AR, REPTree, and SVM) in predicting the irrigation water quality indices such as SAR, KR, PI, percent Na, KR, and MH of groundwater in the Nand Samand catchment, Rajasthan, India. A sum of 95 (pre-and postmonsoon season) water samples were used to train and test the selected models. Agrawal et al. [49] conducted a study on artificial intelligence approaches for groundwater quality evaluation in the Pindrawan tank command region in Chhattisgarh’s upper Mahanadi River valley (southeastern section), Raipur district. Groundwater samples were acquired from 37 sites. They evaluated the efficacy of artificial intelligence strategies for determining the water quality index, comprising particle swarm optimisation (PSO), naïve Bayes classifier (NBC), and SVM. The results indicated that the PSO–SVM accuracy for WQI indices was 77.60%. Additionally, they concluded that higher the significant correlation among the input and output variables, the better the model’s performance. These findings demonstrate that selection of input variables is a critical step in determining the performance of machine learning models. Groundwater quality analysis could be assessed by the four robust artificial intelligence techniques for the data of long period [22]. Bilali and Taleb [4] mentioned identical findings by utilising the machine learning models to predict TDS, chloride, SAR, and SARa parameters. Aldhyani et al. [50] predicted water quality by employing artificial intelligence algorithms. They used the SVM model for predicting water quality classification (WQC) and reported the SVM model’s highest accuracy (97.01%) for WQC prediction over other algorithms. The authors [21] used a newly developed version of the support vector machine on the basis of kernel learning for the water quality index. They concluded that using other water quality metrics and the support vector regression algorithm, biochemical oxygen demand, and chemical oxygen demand was computed with acceptable accuracy. Haghiabi et al. [37] concluded similar findings for southwest Iran’s Tireh River Basin. Machine learning models quickly assess water quality index and indices, and therefore, these are useful for quick evaluation. Bilali and Taleb [4] modeled an irrigation water quality index in a semiarid climate in Morocco’s Bouregreg watershed employing machine learning algorithms. Eight ML models were developed and tested in predicting 10 characteristics of irrigation water quality (IWQ). Three hundred samples were analysed, processed, and chosen to train and test the models at nine monitoring sites. Evaluation of magnesium absorption ratio (MAR) and permeability index (PI) indicated that all other models are strongly efficient in predicting the other parameters, with coefficients of correlation (r) ranging between [0.56, 0.99] and [0.64, 0.99] for the training and validation phases, respectively. The SVM model outperforms than ANN model [51] except for support vector regression (SVR) and k-nearest neighbour (k-NN) models, as well as. The findings of this study indicated that SVM is an effective technique for resolving a variety of environmental concerns [21, 52].

Furthermore, all validated results of a high-accuracy prediction using artificial intelligence algorithms for water quality have been confirmed by the authors [8, 10, 5355]. Although decent prediction is largely dependent on the variety of input factors and their effect, ensuring that all data are available at an affordable cost is vital. Besides this, generalisation of these research findings to regions other than those used in advancement must be explored since numerous variables substantially influence water quality, including hydrological system, land use and land cover, landform, morphological, geological conditions, and anthropogenic factors. Such criteria significantly impact the way the input variables utilised in the prediction process are integrated. The findings of this study are significant as these can be used to boost real-time supervision of the irrigation water quality in the Nand Samand catchment. However, automatic sensing technologies to assess electrical conductivity and pH parameters employ the most appropriate models that need to be applied. These results can be extremely beneficial to plan dam reservoirs for agriculture, where evaporation greatly affects the chemical water quality, notably during the warmer seasons. As a result, our effort would enable farmers to manage water quality effectively and efficiently. Therefore, since the appraisal of water quality for irrigation purposes is largely reliant on soil type, crop, and water quality class, the categorisation of the machine learning model is proposed for further research.

5. Conclusions

Five ML models were created and evaluated to predict six irrigation indices. The results indicated that machine learning models could help overcome some constraints associated with conventional approaches for assessing water appropriateness for agricultural applications. The study’s major conclusions are as follows: conventional methods are extensively used to evaluate irrigation water appropriateness based on a huge variety of characteristics and indexes. They are considered to be effective instruments, yet they might be expensive. It is recommended that rather than depending on these methods for assessing and forecasting the suitability of water for agricultural use, future research on ML models (classification and regression models) can be carried out, as well as their application in the field of engineering to improve water quality control. Because they function better, they also have the potential to considerably cut the cost and time associated with irrigation water quality control. In conclusion, the SVM model has demonstrated its efficiency and usefulness in predicting the water quality of the Nand Samand catchment.

Data Availability

The data used to support the findings of this study are available from the first author upon request.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

The first author greatly acknowledges the Department of Science and Technology, INSPIRE-Fellowship, the Government of India, for fellowship.