Introduction

Water scarcity in arid and semi-arid regions is often exacerbated by a combination of natural and human-induced factors [1]. To address these challenges, utilizing TWW for irrigation is gaining prominence as a practical and cost-effective alternative, alleviating pressure on natural water resources [2]. Globally, the utilization of TWW for irrigation is on the rise, with notable examples such as Israel, Spain, and California, where 85%, 40%-70%, and 30% of TWW, respectively, are reutilizing it for irrigation. In Saudi Arabia, the irrigation sector is suggested to account for about 71% of the annual freshwater consumption. To ensure the growing gap between water demand and supply, treated wastewater has been recognized as a potential solution. Thus, the initial regulatory step called “Treated Sanitary Wastewater and Its Reuse Regulations” was taken in 2000 which required either secondary or tertiary treatment before its use. Later, in 2006, the Ministry of Environment, Water, and Agriculture [MEWA] released two booklets focusing on the use of treated wastewater in agriculture [3]. Beyond water conservation, TWW carries the added advantage of being nutrient-rich, reducing the necessity for fertilization. The United Nations (UN) agencies, like the Food and Agriculture Organization (FAO), acknowledge that repurposing TWW for irrigation has immense potential and is a vital aspect of resolving serious ecological problems worldwide [4, 5]. Salinity levels found in treated wastewater tend to be higher than in the source water. About 30 million tons of salt (NaCl) is consumed annually in the European Union alone, resulting in a significant global consumption. This extensive salt consumption contributes to heightened salinity in urban effluents and, consequently, in the resulting treated wastewater [6].

The World Health Organization (WHO) published a number of guidelines in 1973, 1989, and 2006 which specified secure practices for the use of treated wastewater in irrigation as a way to address the risks associated to public health [7,8,9,10]. The primary objective of these guidelines was to reinforce government regulations regarding wastewater treatment, focusing on the thresholds for TWW quality standards [8, 11, 12]. However, the FAO published two guidelines on the use of TWW for irrigation. The first recommendation separates irrigation water into three categories based on characteristics like toxicity, salinity, sodicity, and other risks [13]. This categorization exposes the possible crop production issues associated with conventional water sources. In the second guideline, the FAO segmented the application of water reuse in irrigation into three groups, taking into account the type of irrigated crops [14]. Besides, the Environmental Protection Agency (EPA) issued water reuse guidelines in 1980, 1992, 2004, and 2012. The most recent version is viewed as a refinement of the 2004 guideline, with the goal of promoting wastewater reuse by serving as trustworthy references, drawing from a compilation of global experiences [15, 16]. In general, the latest guideline places greater emphasis on environmental and health preservation compared to its predecessor [17]. The guidelines set forth by WHO, EPA, and FAO serve as foundational principles for the formulation of regulations in various countries globally. Therefore, in the absence of national guidelines in any country, it is recommended to turn to the guidelines provided by WHO, EPA, and FAO as a viable solution.

Al-Hassa has been reported as one of the largest irrigation zones in the Kingdom of Saudi Arabia. In AL-Hassa, the primary source of water used for irrigation includes the water from the groundwater wells mixed with treated wastewater and partially agricultural drainage. The sewage treatment plants (STPs) namely Hofuf STP, Umran STP, Oyun STP, and Aramco STP derive almost 200,000 m3/day of treated wastewater used for irrigation [18]. One of the studies reported elevated levels of salinity and nitrate in the groundwater wells in Al-Ahsa oasis while investigating the groundwater quality. The groundwater utilized for irrigation in Al-Ahsa Oasis is noted for its high salinity and falls within the categories of low to medium sodicity. This salinity and sodicity profile could potentially be attributed to the extensive extraction from groundwater wells [19].

It is vital to note that various plants and crops may tolerate various levels of salinity since it is a crucial factor that indicates the water’s usefulness and possible environmental impact after its release. It is therefore crucial to comprehend and anticipate salinity levels [20, 21]. Lately, the application of Machine Learning (ML) approaches to foresee wastewater quality has drawn more attention. With the help of the given data set, ML models can possibly be trained to identify the correlations between different variables [22]. For instance, Hejabi et al. [23] assessed AI models’ efficacy in simulating effluent quality parameters. The metrics related to influent quality were classified as independent, whilst the parameters related to effluent quality were classified as dependent [23]. Similarly, Mustafa et al. [24] employed ML and ensemble techniques to model TDS concentrations in wastewater treated with Salvinia molesta plants. The study demonstrated enhanced prediction accuracy for TDS concentrations by ensemble learning using artificial neural network (ANN), support vector machine (SVM), adaptive neuro-fuzzy inference system (ANFIS), and multi-linear regression (MLR) [24]. Moreover, Banadkooki et al. [25] adopted different ML techniques including ANFIS, SVM and ANN to predict the quantity of TDS. These ML techniques were optimized using moth flam optimization (MFO), cat swarm optimization (CSO), particle swarm optimization (PSO), shark algorithm (SA), grey wolf optimization (GWO), and gravitational search algorithm (GSA). The ANFIS-MFO and ANFIS-CSO models showed superior performance over the other models [25]. One of another studies by Abba et al. [26] utilized various models, including general regression neural network (GRNN), Hammerstein–Wiener (HW), non-linear autoregressive exogenous model (NARX), and least square support vector machine (LSSVM), to develop a multi-parametric model for a water treatment plant. The NARX model demonstrated great predictive capabilities for pH, while the HW model demonstrated exceptional simulation abilities for hardness, turbidity, and suspended particles [26]. Mokhtar et al., [27] for instance, assessed three machine learning algorithms, namely SVR, extreme gradient boosting (XGB), and random forest (RF) and four multiple regressions, i.e., stepwise regression (SW), principal components regression (PCR), partial least squares regression (PLS), and ordinary least squares regression (OLS) to predict six IQWI parameters. The study suggested SW as the optimal regression model for IWQI prediction, and SVR as the best AI model, providing insightful information to improve irrigation water quality [27]. Moreover, Hamada et al., [28] employed gaussian process regression (GPR), RF, XGB, and light gradient boosting machine (LightGBM) to predict total suspended solids (TSS), chemical oxygen demand (COD), and biochemical oxygen demand (BOD) concentrations in Gaza wastewater treatment plant effluent a day in advance. The GPR demonstrated the highest accuracy compared to RF, XGB, and LightGBM, with pH and temperature identified as crucial parameters in wastewater quality prediction, emphasizing GPR’s suitability for optimal wastewater treatment selection based on original characteristics and standards [28].

Building upon the foundation laid by [23,24,25,26,27] and [28], herein, this study aims at identifying the prediction capabilities of the SVR and HWM models to assess the salinity dynamics in the TWW believing that the study outcomes would help improve the efficacy of the wastewater treatment plant. Furthermore, regardless of the significance of SVR and the HWM in various fields, their representation in Scopus appears relatively scarce. The search for articles about SVR and the HWM within the Scopus database yields limited results as shown in Fig. 1, which indicates an underexplored area within the domain of academic research. Therefore, this highlights the potential for further exploration and in-depth investigation into these predictive modelling techniques and system identification methods across various disciplines. Moreover, the choice of SVR and HWM in this study was mainly due to the versatile capabilities of these two models in dealing with complex systems, particularly in the area of environmental and water resource studies. SVR is known for its ability to handle high-dimensional data and non-linearity, whereas the HWM, with its capacity to capture both linear and nonlinear dynamics, offers a unique advantage in accurately representing the relationships.

Fig. 1
figure 1

The major keywords used over the literature on Hammerstein–Wiener and Support Vector Machine Database from Scopus

Methodology

Study area

The Al-Hassa Agricultural zone is renowned for its cultivation which acts a vital component of the region’s economy [29]. This region has adopted contemporary farming methods in recent years, utilizing cutting-edge technologies to boost output while maintaining the fundamentals of conventional farming. Groundwater wells, treated wastewater, and partially agricultural drainage water are currently Al-Ahsa Oasis’s main sources of irrigation water. The treated wastewater used for agriculture primarily comes from municipal wastewater treatment plants [19]. These plants receive wastewater from residential, commercial, and industrial sources within the city. After undergoing treatment processes to remove contaminants and pathogens, the treated wastewater, also known as reclaimed water, is repurposed for agricultural irrigation. Through the use of treated wastewater that would otherwise be released into the environment, this technique aids in the conservation of freshwater resources [30]. To assure that the treated wastewater satisfies particular quality requirements and is suitable for agricultural use, it passes through a number of treatment processes, including physical, biological, and occasionally advanced treatment techniques. These treatments aim to remove solids, organic matter, and harmful substances to make the water suitable for irrigation without posing risks to crops, soil, or human health.

Using treated wastewater for agriculture aligns with efforts to conserve freshwater resources and supports sustainable agricultural practices. However, it’s crucial to ensure that the quality of treated wastewater meet standards to prevent potential risks associated with irrigation. Herein, the study encompassed gathering water samples from diverse irrigation zones in Al-Hassa, as depicted in Fig. 2. These samples were subjected to thorough laboratory analysis, evaluating a range of water quality parameters. These included salinity, temperature, pH, ORP, EC, resistivity, turbidity, and TDS, featured with real-time monitoring facilitated by an Internet of Things (IoT)-based system as well as a multiprobe device. The analyzed samples were then used to predict the key parameters accordingly. The detailed study approach can be referred in Fig. 3.

Fig. 2
figure 2

Study Area—Al-Hassa Farms, Eastern Province, Saudi Arabia

Fig. 3
figure 3

The setup overview highlighting a the treated waste water distribution lines, b the collection tanks in the farms and c the experimental setup integrated with Arduino and Multiprobe

AI-infused process flow

The implementation of SVR and HWM Model served as the core framework for addressing the research objectives. This paper illuminates a systematic approach that begins with data collection and preprocessing, ensuring the dataset’s suitability for both models. The SVR implementation involved data partitioning, model training, and hyperparameter optimization to attain an optimal classification framework. Simultaneously, the HWM was applied, emphasizing data formatting, system identification, or regression techniques tailored for the specific dataset. The integration phase, a key part of this study, carefully combined the results of these models. It does this by using techniques that blend them or by using the predictions of one model as rules for the other. Throughout the paper, the unique strengths of each model demonstrate how their collaboration leads to a more comprehensive and robust solution for the research problem. This approach is briefly depicted in the AI-Infused workflow as shown in Fig. 4, visually capturing the sequential steps and integration points between SVR and the HWM, explaining the comprehensive nature of the methodology. For instance, the first phase involves collecting TWW samples from the field which undergoes pre-processing to ensure its quality and consistency for analysis. Later, it involves ensuring all the data uses the same units followed by utilization of two machine learning models. The processed data then predicted the salinity levels in the TWW samples which were then compared to the actual measured values to evaluate the accuracy of the models, followed by the selection of the best fit model.

Fig. 4
figure 4

AI-infused process flow

Hammerstein–Wiener Model (HWM)

The HWM is composed of both nonlinear and linear block systems. This model can be effectively employed as a block-box model, offering versatility in handling various variables and parameters [31]. Its performance surpasses that of linear and nonlinear systems like MLR and ANN, as the HWM considers both linearity and nonlinearity within a dataset. The architectural components of HWM consist of a linear dynamic block, a static input nonlinear block, and static output nonlinear blocks [32] and [26] as shown in Fig. 5. The HWM employs a mechanism that involves transforming nonlinear functions into linear input blocks, which are then converted back into a nonlinear state as output. The key equations associated with the HWM model are as follow:

$$U\left(t\right)=f\left(x\left(t\right)\right)$$
(1)
$${y}_{_l}\left({\text{t}}\right)={G}_{l}*u\left(t\right)$$
(2)
$$y \left(t\right)=h \left({y}_{_l}\left(t\right)\right)$$
(3)
$$y \left(t\right)=h\, ({G}_{l}*f\left(x\left(t\right)\right))$$
(4)

where, Eq. 1 describes the nonlinear input block, contains a pair of elements: u (t) indicating the input of the system and f (⋅) denoting a function that is nonlinear which transforms the input x (t). Equation 2 defines the linear dynamic block, where the convolution operation is represented by ∗ , the block’s output is yl (t), and Gl is the transfer function of the block. On the other hand, the linear dynamic block’s output yl (t) is obtained by applying the nonlinear function ℎ (⋅) to the static output nonlinear block, which is represented by Eq. 3. Finally, the overall output of the model is represented by Eq. 4.

Fig. 5
figure 5

Schematic diagram of HWM [adapted from [33]]

Support vector regression (SVR)

The SVR in artificial intelligence are models used for classification tasks. It is a machine learning approach primarily designed to address classification challenges involving small sample sizes, nonlinearities, and high-dimensional data [34,35,36] as seen in Fig. 6. It involves identifying the most effective hyperplane within a multi-dimensional space to distinctly separate various classes within a dataset. The fundamental equation:

Fig. 6
figure 6

Schematic diagram of SVR model [adapted from 34]

$$y=w\cdot x+b$$
(5)

The above equation represents the hyperplane, where y is the predicted target variable, w is the weight vector, x is the input vector, and b is the bias term. The objective is to maximize the margin between this hyperplane and the closest data points, known as support vectors, from distinct classes. SVR aim to minimize misclassifications while maximizing the distance between classes, creating a robust decision boundary [24].

Data and evaluation criteria

A rigorous pre-processing and post-processing approach were used in the extensive process of forecasting salinity in treated wastewater samples taken from the Al-Hassa region in order to assure the accuracy and dependability of the SVR and HWM predictions. Initially, the collected data underwent a normalization procedure, a crucial step aimed at scaling the variables to a standard range, ensuring that each parameter contributes proportionately to the models [37, 38]. To further perform the in-depth analysis, the dataset underwent descriptive analysis. During this stage, the key aspects of the data were outlined providing an in-depth understanding of the fundamental trends. Subsequently, to further investigate the correlations between the obtained water quality metrics, the Pearson correlation matrix was employed for assessing the possible connections and selecting the relevant input variables [39, 40]. Based on that, the model combinations were decided with a robust framework to estimate salinity. The performance metrics are commonly used to evaluate the overall performance of a system [41]. The comprehensive dataset encompassing almost 7700 values was compiled. Following rigorous model selection procedures, the dataset was divided, allocating 70% of the data for the training phase and reserving the remaining 30% for the testing phase to ensure robust model evaluation. Through this approach, key performance metrics were calculated to gauge the predictive accuracy of the chosen models. This division and subsequent analysis aimed to validate the effectiveness of the models in accurately representing the complex interdependencies among the variables within the treated wastewater samples. Herein, the computed and the measured data was monitored through the four statistical measures, namely R2, R, MSE, and RMSE as discussed below:

$$R^{2} = 1 - \left[ {\frac{{\sum\limits_{{i = 1}}^{N} {\left( {Sal._{o} - Sal._{P} } \right)^{2} } }}{{\sum\limits_{{i = 1}}^{N} {\left( {Sal._{o} - \overline{{Sal._{O} }} } \right)^{2} } }}} \right]$$
(6)
$$R = \frac{\sum_{i=1}^{N} \left(Sal._o - \overline{Sal.}_o\right) \left(Sal._p - \overline{Sal.}_p\right)}{\sqrt{\sum_{i=1}^{N} \left(Sal._o - \overline{Sal.}_o\right)^2 \sum_{i=1}^{N} \left(Sal._p - \overline{Sal.}_p\right)^2}}$$
(7)
$$MSE= \frac{1}{N}\sum_{i=1}^{N}{\left({Sal.}_{o}-{Sal.}_{P}\right)}^{2}$$
(8)
$$RMSE = \sqrt {{\frac{1}{N}\sum_{i = 1}^N {\left( {Sal._o - Sal._P } \right)^2 } }}$$
(9)

where, \({Sal.}_{P}\) and \({Sal.}_{O}\) represents the predicted and observed salinity, whereas \(\stackrel{-}{{Sal.}_{O}}\) and \(\stackrel{-}{{Sal.}_{P}}\) represents the observed and predicted salinity with its corresponding averages for N data points, respectively.

Result and discussions

Performance measure

The descriptive statistical analysis as shown in Table 1 represents the descriptive statistics ensuring that the data was properly aligned, well understood, finely processed and fulfilled the requirements of the chosen AI models. This leads to more effective model development and reliable results [37]. Furthermore, based on the correlation matrix, an appropriate combination of inputs was identified (refer to Table 2). The study utilized the holdout validation method, a variation of k-fold cross-validation. This validation process offered diverse approaches like k-fold cross-validation, holdout, and leave-one out, among others. The holdout method simplifies k-fold by randomly dividing data into two sets: training and testing phases [26, 32].

Table 1 Descriptive statistics of the data
Table 2 Pearson correlation matrix between the inputs and output

The choice of the models for predicting salinity was based on the given outputs. A total of three candidate models were selected as follows:

$${\text{Model I}}:{\text{ EC }} + {\text{ TDS}}$$
(10)
$${\text{Model II}}:{\text{ EC }} + {\text{ TDS }} + {\text{ ORP }} + {\text{ Temp}}.$$
(11)
$${\text{Model III}}:{\text{ EC }} + {\text{ TDS }} + {\text{ ORP }} + {\text{ Temp}}. \, + {\text{ pH}}$$
(12)

Predictive analysis

In predicting salinity, the choice of input variables is crucial for accurate modeling. The utilization of different combinations of variables across three distinct models, namely Model I, Model II, and Model III, using SVR and HWM to explore varying levels of complexity and information integration as shown in Figs. 7 and 8, respectively. Model I employed a straightforward combination of two variables, i.e., EC and TDS. This minimalist approach seeks to establish a foundational understanding of salinity prediction by relying on the fundamental factors known to influence salinity levels. For Model II, additional two variables, namely ORP and Temp. were introduced alongside the variables used for Model I. Incorporating additional parameters aimed to capture a wider range of factors that could further enhance the predictive capabilities. Model III further broadened the range of input variables by incorporating pH, thus incorporating an even more extensive collection of factors that could influence salinity. Analyzing the patterns ranging from simpler to complex combinations enabled us to investigate how adding more parameters impacts the predictive abilities of both SVR and HWM. Moreover, the selected variables also play a crucial role in environmental and chemical contexts, contributing effectively to salinity variations.

Fig. 7
figure 7

SVR Models response plot between true and predicted values

Fig. 8
figure 8

HVM Structure and best fit models

As depicted in above figures, the SVR models, despite their inherent strength in handling complex relationships through the use of kernel functions, might have limitations in capturing intricate nonlinearities presented in the dataset. The different SVR configurations may not have been as successful in capturing the complex and varied correlations between the salinity and the input variables as the more sophisticated structure of HWM. Specifically, the superiority of the HWM-M3 over other models could be justified based on several assumptions. Firstly, the HWM is capable to incorporate the static and the nonlinear elements that could help capture the strong relation between the input variable and the output. Secondly, it uses advanced preprocessing methods which is flexible to handle nonlinearities. The extensive training and testing further assured resilience across he various datasets. The performance metrics for SVM and HWM models can be referred in Tables 3 and 4, respectively.

Table 3 Results of SVR for Modelling Salinity
Table 4 Results of HWM for Modelling Salinity

From Fig. 9, the R2 values for both the models can be depicted in the form of radar graph. The radar graph tells the effectiveness of the dataset in a particular situation via thorough assessment of the performance. Upon comparision, an exceptional performance of HWM model over SVR was witnessed in both testing and training phases. There seems a potential need for regularization to assure model refinement for the SVR models due to the reduced R2 values. Conversely, the higher R2 values for the HWM models indicates it capability to capture underlying patterns.

Fig. 9
figure 9

Radar graph depicting R-Squared values for SVR and HWM models

From Fig. 10 a slight decline in the R values can be seen from the training to the testing stages which indicates that the models were functioning in a balanced manner. The recorded R values indicated that both the models can effectively capture and predict the underlying patterns in the dataset. The HWM models witnessed to perform better somewhat, thus it can be further explored and implemented for practical applications.

Fig. 10
figure 10

Radar graph depicting R values for SVR and HWM models

Figure 11 demonstrates the quantitative assessment of the models’ performance in both training and testing phase. The variations in RMSE values helped understand and assess the model’s dependability. In generalization, the SVR-M3 performed well, whereas the HWM-M1 performed better all around. The degree to which SVR-M3 and HWM-M1 generalize to new data during testing is a positive indication of their resilience. It suggests that these models may have succeeded in striking a balance between fitting training data and adapting to observations.

Fig. 11
figure 11

RMSE values obtained from the training and testing phases of SVR and HWM models

As illustrated in Fig. 12, the performance of the six AI models, namely SVR-M1, SVR-M2, SVR-M3, HWM-M1, HWM-M2, and HWM-M3 was assessed using MSE values that are acquired during both the training and testing stages. For the SVR models, the training MSE values exhibit a gradual increase from SVR-M1 (0.0672) to SVR-M3 (0.0802). In contrast, during the testing phase, the MSE values decrease from SVR-M1 (0.035) to SVR-M3 (0.020), indicating improved generalization performance. Similarly, for the HWM models, the training MSE values show a slight decrease from HWM-M1 (0.0479) to HWM-M3 (0.0428). Notably, during testing, the MSE values for HWM-M1 (0.0000236), HWM-M2 (0.0011274), and HWM-M3 (0.0000042) are remarkably low, highlighting the predictive capabilities of the models. These results suggest that the HWM models outperform the SVR models, particularly in the testing phase, showcasing their efficacy in accurately predicting outcomes. Moreover, it is crucial to understand the numerical results using a two-dimensional plot known as Taylor diagram (Fig. 13). Taylor diagram has been in science and engineering to depict the extent of SD, RMSE and R values in one plot. From the plot it can be justified that HWM-3 proved more reliable than the other models with RMSE = 0.0021 in testing phase. The predictive skills of HWM is not surprising owing to the fact that, it is nonlinear system identification approach and we are working with pilot plant system to identify the patterns and influence of TWW used in agricultural sector.

Fig. 12
figure 12

MSE values obtained from the training and testing phases of SVR and HWM models

Fig. 13
figure 13

Taylor diagram with the SD ranges obtained for the observed and predicted salinity

It is imperative to compare our outcomes with the existing state-of-the-art approaches, for instance, Poursaeid et al., [42] employed a hybrid metaheuristic AI model known as the wavelet self-adaptive extreme learning machine (WSAELM) to simulate groundwater parameters in the Mighan Plain, Iran, spanning from 2002 to 2017. The WSAELM model demonstrated an impressive accuracy in predicting salinity, achieving a value of 0.991. However, it is noteworthy that the proposed hybrid model outperformed our results having an R2 value ranging between 77 and 82%. The superior performance of WSAELM is attributed to the integration of hybrid models than relying on a single model, which has been widely acknowledged in the literature to outperform single models in various contexts. Likewise, in the study conducted by Mosavi et al. [43] ML models were employed to forecast groundwater salinity, with significant factors identified through simulated annealing feature selection. After testing six different models, it was discovered that the SVM model performed the best. The main variables that were shown to have the biggest effects on groundwater salinity prediction were soil type, precipitation, land use, elevation, and groundwater extraction. The SVM model performed better than the others, despite the fact that all models showed excellent accuracy levels (above 0.82). A consistent agreement with our predicted output is evident when comparing these findings with our results. Furthermore, Tran et al., [44] investigated cutting-edge machine learning methods to forecast groundwater salinity in the coastal aquifers of Vietnam’s Mekong River Delta, with a testing phase goodness-of-fit of 84%, demonstrating the efficacy of the approach. Additionally, the results showed a modest increase over the current results. In a recent study, Trabels et al. [45] focused on evaluating the capabilities of the ML models to predict groundwater quality for irrigation in Tunisia’s downstream Medjerda river basin. Among the models assessed, the AdaBoost stood out for its ability to produce more accurate and concise predictions with the least amount of input parameters (R = 0.89). The outcomes demonstrated a noteworthy concordance with our study results which were obtained from HWM-M3 (R = 0.88). Looking ahead, it seems that the prediction capabilities could be further enhanced by introducing cutting-edge machine learning methods. By doing so, the accuracy could improve even more.

Conclusions

The thorough analysis of water quality parameters integrated with real-time monitoring under supervised machine learning fairly contributed towards the better understanding of salinity dynamics. Based on the performance metrics, the SVR-M1 exhibits higher R2 values for both training (0.7300) and testing (0.6800) among all SVR models indicating a reasonable predictive accuracy. However, the HWM models consistently outperformed the SVR counterparts, with HWM-M3 highlighting the highest R2 values in both training (0.8279) and testing (0.7779) phases. It further demonstrated the lowest MSE and RMSE in both training and testing, highlighting its superior predictive performance compared to other models. The potential of HWM-M3 in particular, showed superior predictive capabilities which we believe could be utilized to assure sustainable irrigation practices. Moreover, the comparison of these models further pondered on the need for regularization for SVR models. It is believed that the emphasis should be placed on refining AI models, including exploring novel hybrid models and incorporating additional relevant features for improved predictive accuracy. Future studies may also explore the impact of climate change conditions on TWW salinity dynamics, considering potential shifts in agricultural practices. Additionally, investigating the economic feasibility and social acceptance of adopting these predictive models in diverse agricultural contexts will contribute to their successful implementation. Comparative analyses across various arid regions would identify unique challenges and opportunities, guiding the development of tailored irrigation strategies. This notable study aims to inform policy, optimize water resource management, and support the development of smart, automated irrigation systems, ultimately contributing to agricultural sustainability and food security in arid landscapes.