1 Introduction

Water consumption per capita varies from community to community and is directly related to the culture and improving health levels of the community. The higher the level of culture and hygiene, the higher the need for water and its consumption. Therefore, raising people's awareness of optimal water consumption is one of the most important prerequisites for the correct use of water resources. Today's civilization has led to changes in water quality. While 70% of the Earth is covered in water, only 2.5% of the water on the planet is freshwater. This small amount of fresh water is used for various purposes; for example: agriculture, industry and finally for urban and domestic use. Therefore, there are several requirements for the available water [6, 16, 24]. Therefore, not only is there an urgent need to protect these resources (especially in highly polluted areas), but also to take the necessary measures for those resources that are not yet polluted.

According to Thesis [25] the rate of groundwater recharge depends on the rate at which water is added to the system and the rate at which the existing water penetrates into the depth and thus escapes before evaporation. Measures have been taken worldwide to compensate for the decline in groundwater. This includes increasing artificial feeding, such as importing surface water and absorbing rainwater. The recharge volume of an aquifer system alone does not reflect the proportion of the aquifer that is available for extraction. As stated by Asoka et al. [4] between 2002 and 2013, groundwater storage in northern India decreased by 2 cm annually. Accurate prediction of groundwater levels is one of the most important steps in the sustainable use of groundwater resources and helps engineers, planners and water managers make appropriate decisions to prevent or reduce adverse impacts such as well pumping losses, aquifer compaction and land subsidence. For this reason, numerous studies have been carried out in recent years on the connection between precipitation and groundwater [19] From the perspective of Thomas et al. [26] in the arid southwestern United States, precipitation demonstrated an important role in groundwater recharge in arid areas. Based on Asoka et al. [5] For more than 5800 groundwater data, it was shown that rainfall intensity is strongly related to groundwater recharge in India. Their results highlight the importance of rainfall intensity for groundwater recharge in the monsoon season in India. Numerous studies have been conducted to use ANN to predict groundwater levels [9, 12, 22, 23].

In addition, accurate determination of groundwater levels is necessary for effective and sustainable management of groundwater resources, as poor management can lead to deterioration of water quality, decline in groundwater levels and reduction in groundwater storage [11] a neural wavelet model (WNN) and a Thomas and Fiering model (T&F) were used to predict reservoir inflow for the years 1980–2005. The performance of the two models showed that the T&F model performed better in the rainy season at Danjiangkou Reservoir, an important water supply area of the South-North Water Transfer Project in China, and the WNN model performed better in the dry season. These two models were used to predict the total reservoir inflow in 2006 [7]. Additionally, direct and indirect impacts of climate change on the entire groundwater system were examined, which were assessed using groundwater climate and surface water models in groundwater hydrology to improve existing knowledge on climate change and groundwater interactions. The paper suggests two important considerations,First, the physical basis: the need for a deeper understanding of complex physical processes and feedback mechanisms using more sophisticated models,Second, there is a need to understand the socio-economic dimensions of climate-groundwater interaction through multidisciplinary synergies, leading to the development of better climate change and groundwater adaptation strategies and models [3]. Scientists have also carried out some research on the interactions between groundwater and climate. In particular, it has been shown that groundwater flows in arid regions react less strongly to climate fluctuations than in wet regions [8]. Likewise, a comparison between seven different models for predicting groundwater levels was examined. These include Random Tree (RT), Random Forest (RF), Decision Log, M5P, Support Vector Machine (SVM), Local Weighted Linear Regression (LWLR), and Reduce Error Pruning Tree (REP Tree). The entire dataset was divided into two parts,the training data set from 1981 to 2008,and the test dataset from 2008 to 2017. The output of seven models was evaluated. The results of the study showed that the Bagging RT and Bagging RF models performed better than other ML models [18].

Moreover, precipitation (P), temperature (T), and evapotranspiration (ET) have been used for approaches such as: artificial neural network (ANN), fuzzy logic (FL), adaptive neuro-fuzzy inference system (ANFIS), group method of data handling (GMDH), and least-square support vector machine (LSSVM) for forecasting monthly groundwater levels. Based on different evaluation criteria, all models used could predict the ground water level with the desired accuracy and the results of LSSVM are the superior ones [21]. Furthermore, a comparison between the results of predictive models based on non-linear autoregressive with exogenous inputs (NARX) and extreme learning machine (ELM). The results showed that NARX models perform better than ELM models [17]. In addition, the performance of support vector regression (SVR) and SVR combined with metaheuristic algorithm of innovative gunner (AIG) in monthly groundwater level of Shabestar plain during 2001–2019 was studied. The results showed that the hybrid model (SVR-AIG) provides accurate estimates in hybrid patterns [20]. Furthermore, the combination of various metaheuristic algorithms, including the feed-forward artificial neural network (ANN), the algorithm of innovative gunners (AIG) and the black widow optimization (BWO) algorithm, was studied to calculate the groundwater level in the southwest of Iran during the period 2008–2018 on a monthly time scale. The results illustrated that all three hybrid models performed better on combinatorial patterns [10]. Additionally, a new groundwater level prediction method combining simulation, clustering and optimization tools was also used in northwestern Iran. This approach simulates the groundwater level (GWL) using the MODFLOW method, groups the studied aquifer into different clusters using the K-mean method, and predict regional GWL using the artificial neural network (ANN) and adaptive neuro-fuzzy inference system methods (ANFIS). In the predicting phase, the groundwater level of the previous month (determined with the MODFLOW method), sampling of aquifers, precipitation, temperature and evaporation were identified as the most influential variables for the groundwater level in different clusters [14].

There are very few studies examining changes in groundwater levels during consumption. Therefore, two main variables, precipitation and water consumption were used to predict groundwater levels. In other words: finding out a new formula between precipitation, water consumption and groundwater levels. Some regression relationships and the Thomas and Fiering (T&F) were used. Additionally, precipitation, water consumption and groundwater levels were predicted.

2 Study area and regional information

The study area is the Sarab Plain in the Iranian province of East Azerbaijan. Based on the division of structural zones of Iran according to the prophetic division, the studied area is part of the Alborz zone of Azerbaijan, according to the Ashtoklein division it is in the Central Iranian zone and according to the latest division related to it, the area is in the zone of the Middle Iran [2]. According to the studies conducted in the Sarab region, the oldest rocks in the region date back to the Cambrian period. These stones were uncovered in the southeast of the Bezgosh Mountains at the Balkhali Pass and northeast of the village of Fundhalo. The main geological units include Eocene volcanic rocks, pyroclastic sediments and Miocene sedimentary deposits, Quaternary units and current age sediments. The Sarab region’s water resources come from atmospheric precipitation, which flows either in the form of surface runoff through canals and rivers or by penetrating the soil and accumulating in alluvial deposits and formations of the earth, thus forming groundwater [15].

This plain has one of the most important rich sources of ground water reserves and is of particular importance, provides an important part of the region's agricultural, drinking and industrial needs. An important part of the flowing water comes from the surrounding mountains and feeds the aquifer as this water flows from the foothills toward the middle of the plain. Several rivers named Wang Chai, Buyuk Chai, Pisler Chai, Tajyar Chai etc. The rivers originating from the surrounding heights join near Andarab village and are then called Aji Chai (Bitter River). They flow from east to west in the northwest of the plain. After crossing the Sarab Plain, it flows west north of Tabriz, passes Azarshahr and flows into Lake Urmia [13]. The study region has an area of 2242 square kilometers, of which 1147 square kilometers are mountain areas and 1095 square kilometers are related to the plains of the Sarab region. The Sarab plain is located on the southern slope of the Sablan volcanic massif and on the northern slope of the Bezgosh Mountains with the geographical coordinates 37° 44′–38° 12′ north latitude and 47° 15′–47° 54′ east longitude. Figure 1 shows the geographical location of the Sarab plain.

Fig. 1
figure 1

Geographical location of the Sarab Plain

The average long-term annual precipitation in the Sarab Plain is 332 mm, and the climate of the plain is estimated to be cold and semi-arid based on the Amberg climate classification.

3 Data collection

3.1 Monthly precipitation

To determine the regionalized monthly precipitation in the Markid sub-basin, including the Sarab Plain, the monthly precipitation from 19 precipitation measurement stations above the Markid hydrometric station co in the following figures showing time relationships, months are written from number 1 to 192 to obtain correct time relationships. Therefore, the numbers of months 1 to 192 represent the months of the years 2007 to 2022, respectively, in other words, the month numbers 1–12 of the year 2007, 13–24 of the years 2008, etc. for other years The data collected in the statistical period from 2007 to 2022 was taken into account by Thiessen-Polygon.

Figures 2 and 3 show the polygonised map of rain gauges and the temporal variation of regional precipitation according to the month number, respectively.

Fig. 2
figure 2

Thiessen polygons of precipitation stations in the Markid-Subbasian

Fig. 3
figure 3

monthly variation of regional precipitation in the Markid-Subbasian

3.2 Monthly piezometric depth

The data from 78 piezometers in the Sarab plain were considered to extract regionalized monthly piezometric depth data using Thiessen's polygonization method. Figures 4 and 5 show the polygon map of the placement of piezometers in the Sarab plain and the temporal variation of the regional piezometric depth according to the month number, respectively.

Fig. 4
figure 4

Thiessen polygon of Sarab plain piezometers

Fig. 5
figure 5

Temporal variation of the regional piezometric depth according to the number of months

3.3 Monthly water consumption volume

The monthly water consumption volume was extracted from 1886 operational wells in the Sarab Plain which provide the industrial, agricultural and drinking needs of the Sarab region. Figures 6 and 7 show the deployment map of the consumption wells and their polygonization and temporal variation of regional water consumption according to month number, respectively. As Fig. 7 shows, there is a good temporal relationship between monthly water consumption and time as follows:

$$Cns=\frac{4.073}{{(1+{e}^{6.342-0.0516t})}^{0.121}},$$
(1)

Cns (mcm) and t are the monthly water consumption and the month number, respectively. Likewise, it can be seen that water consumption remains stable after a few years. The formula showed correlation of 0.97 and a root mean square error of 0.0008 mcm with observed data.

Fig.6
figure 6

Thiessen polygon of the Sarab plain extraction well

Fig. 7
figure 7

Monthly changes in water consumption in the Sarab plain

No comparable studies have been conducted in the region. In addition, a study was conducted in Ajabshir, Azerbaijan Province, Iran [1]. The data used for the study were the amount of precipitation, water table elevation and water consumption on a monthly time scale for the period between 2001 and 2011. The cross-correlation analysis showed that the one delayed monthly precipitation and the two delayed monthly consumption values had the greatest impact on the height of the groundwater table. The general relationship of these three variables was obtained with R2 = 0.87 and RMSE = 0.35 through multivariate nonlinear regression analysis. To predict the water table elevation in the coming years, predictions were made by ANN and Thomas–Firing, respectively. So, the outcome of putting them into regression equation gave the water table elevation. On the other hand, the artificial neural network was used to predict the water table elevation, for which, the resulted values of R2 and RMSE were 0.82 and 0.39 m, respectively. The comparison of two methods showed that the multivariate nonlinear regression model represented more accurate results in predicting the elevation of the water table.

4 Materials and method

In this research, there are no predetermined empirical relationships, but based on the data structure, the necessary equations were extracted by the software. The general form of the relationship between water consumption and time is as follows:

$$y=\frac{\alpha }{{(1+{e}^{\beta +\gamma x})}^{\delta }}$$
(2)

where y is used as the variable of the volume of water consumed and x as the variable of time. α, β, γ and δ are the coefficients of the equation determined by the data. The general form of the equation for the relationship between piezometric depth and water consumption and between piezometric depth and precipitation is as follows:

$$y=\alpha +\beta {e}^{\gamma {x}^{\delta }},$$
(3)

where y is used as the piezometric depth and x is used as water consumption and precipitation. α, β, γ and δ are coefficients of the equation that are determined for the piezometric depth—water consumption and piezometric depth—precipitation relationships separately from the relevant data.

According to the above exponential equations, the following combined equation was used to relate the piezometric depth with the variables of water consumption and precipitation:

$$y=\alpha +\beta {e}^{\gamma \frac{{{x}_{1}}^{\delta }}{{{x}_{2}}^{\theta }}}$$
(4)

In this relationship, y was used as the piezometric depth, x1 as the water consumption variable and x2 as the precipitation variable. α, β, γ, δ and θ are coefficients of the equation obtained by the data.

4.1 Thomas and Firings method (T&F)

The T&F model method is a regression method and is suitable for creating periodic data. The T&F model can be written as follows:

$${x}_{i\left(j+1\right) }={\overline{x} }_{\left(j+1\right) }+{\beta }_{j}\left({x}_{ij}-{\overline{x} }_{j}\right)+{\text{z}}.{s}_{j+1}\sqrt{1-{R}_{j}^{2}}.$$
(5)

Regarding the monthly time step used in this study, i is the annual index and j is the monthly index. x is a periodic variable and βj is the linear regression coefficient of a pair of consecutive months. It means j and j + 1, with the following regression equation.

$${Q}_{i\left(j+1\right)}={\alpha }_{j}+{\beta }_{j}{Q}_{ij}.$$
(6)

Sj+1 is the standard deviation of the variable in month j + 1.

5 Result and discussion

The shortcoming of this research is that the water consumption was determined based on the maximum permissible flow indicated for each well, and this data was obtained from the country's authorized organizations. But if the relevant organizations can install a water meter on each well so that the actual consumption of each well can be seen. More precise relationships are obtained.

5.1 Creating regression relationships

In the first step of the modeling, the regression relationship between the piezometric depth and the precipitation and consumption was developed individually. The purpose of developing these individual models is to identify the form of the relationship between the piezometric depth and each of the variables involved in the water table so that a multivariate regression relationship can be constructed based on the non-linear effect of the variables on the piezometric depth. Figure 8 shows the variation of the observed regionalized piezometric (Lob) depth and the observed water consumption volume (Cns). It is worth noting that the piezometric level has been converted to the piezometric depth based on the land surface benchmark code and the water level code. In this figure, the purple dots represent the observed piezometric depth and water consumption data. Additionally, the red line shows the calculated piezometric depth value and water consumption.

Fig. 8
figure 8

Variation of piezometric depth with monthly water consumption

The relationship between the water consumption and the piezometeric depth is non-linear as follows:

$$L=19.68-10.61{e}^{-0.001{Cns}^{4.142}},$$
(7)

where L and Cns are the piezometric depth and consumption, respectively. According to Eq. (7), as the consumption increases, the dropping of depth becomes faster; i.e., the distance of the piezometer surface from the land (piezometric depth) increases faster. The reason for this probably lies in the decrement of storage coefficient subject to depth increment as well as conical or bowl-shaped shape of the aquifer. According to the Eq. (7), the non-linear correlation coefficient between the calculated piezometric depth from Eq. (7) and the observed piezometric depth is 0.64 and RMSE = 1.3 m. On the other hand, the monthly precipitation shows a significant correlation with the piezometric depth according to Fig. 9. The most appropriate equation was obtained as follows:

$$L=12.856-93.053{e}^{-5.5202{R}^{-0.1215}},$$
(8)

where L is the piezometric depth in meters and R is the precipitation in millimeters. Figure 9 shows the fitted curve. In this figure, the purple dots represent the observation piezometric depth and precipitation data. Additionally, the red line shows the calculated piezometric depth value and precipitation.

Fig. 9
figure 9

Variation of piezometric depth with precipitation

According to the Fig. 9, the piezometric depth decreases as the precipitation increases. The value of the nonlinear correlation between precipitation and piezometric depth is equal to 0.54 and RMSE = 1.3 m.

5.2 General modeling

According to the general form of the individual relationship of the piezometric depth(L) with the monthly water consumption (Cns) and the monthly precipitation(R), the following combined relationship was proposed.

$$L=1.07{e}^{2.239\frac{{Cns}^{0.1158}}{{R}^{0.028}}}+1.36 .$$
(9)

The plot of the observed piezometric depth (Lob) versus the calculated piezometric depth (Lca). Figure 10 shows the distribution of the data around the bisector, indicating the accuracy of Eq. (9) with \(R=0.69\), RMSE = 2 m and Kling-Gupta = 0.57.

Fig.10
figure 10

Distribution of the Lob versus Lca around the bisector

5.3 Prediction procedure

Equation (9) can be used to predict piezometric depth in the coming years. Therefore, it is necessary to predict precipitation and consumption. Since monthly precipitation is periodic, the Thomas and Firings method (T&F) is appropriate for forecasting.

In order to predict the amount of precipitation for the coming years, it is necessary to validate the T & F model. For validation, the last 20% of the precipitation data were considered and predicted using this model. Figure 11 shows the changes in observed and calculated precipitation over time in the validation section; the similarity of the changes and the correlation coefficient of 0.815 (R = 0.815), the error of 0.07 m (RMSE = 0.07 m) indicate an acceptable accuracy of the T and F model.

Fig. 11
figure 11

Comparison plot of calculated precipitation using the T & F method and observations in the Validation Data section

6 Results

To predict water consumption in the coming years, Eq. (1) can be used, which is accurate enough. Likewise, it can be seen that the water consumption in Fig. 7 reaches a fixed value and, in principle, the amount of water considered for consumption should be determined and water resource management should be able to easily allocate this amount to different consumption levels.

In addition, as shown in Fig. 11, precipitation can be predicted with high accuracy using the T&F model. The Table 1 illustrates information about the R and RMSE values of the regression model for the available data based on Formula (9).

Table 1 Information about the regression model

R, RMSE and Kling-Gupta are the correlation coefficient, the root mean squared errors and the Kling-Gupta coefficient, respectively, between the observed and calculated piezometric depths resulting from the Eq. (9) over the statistical period.

Table 2 shows information about the T&F model for precipitation predicting. RT&F and RMSET&F are the correlation coefficient and root mean square, respectively, between the observed and calculated precipitation by the T&F model for the last 20% of the data.

Table 2 information about T&F model to predict precipitation

Table 3 shows information for predicting water consumption. Rcns and RMSEcns are the correlation coefficient and the root mean, respectively, between the observed and calculated consumption water by Eq. (1) model for data.

Table 3 Information about predicting water consumption

The precipitation and the water consumption values for the next 3 years from 2023 to 2025 were predicted using the T&F method and Eq. (1), respectively. Figures 12 and 13 show the predicted sections. In addition, Fig. 14 shows the predicted section of the piezometric depths according to Eq. (9) with the application of predicted precipitation and the predicted consumption.

Fig. 12
figure 12

Predicted monthly precipitation

Fig. 13
figure 13

Predicted monthly consumption

Fig. 14
figure 14

Predicted monthly piezometric depth

As mentioned earlier, the formulas require us to start the time scale at 0. In other words, the months between 0 and 192 correspond to the years between 2007 and 2022. In addition, the months between 192 and 228 correspond to the years between 2023 and 2025.

7 Conclusion

Developing of a model that takes into account the variables involved in groundwater level variability plays a fundamental role in providing an important tool for groundwater resource management. The most important variables in creating this model for an aquifer are mainly precipitation, river discharge and water consumption from aquifer. However, if the river feeds the aquifer, it means that the table water level is lower than the riverbed code. When the aquifer feeds a river, there is usually a significant relationship between the water level and the river’s discharge. However, when the water table is lower than the river bottom, the river feeds the groundwater. In such a case, due to the width spread of the aquifer, the fluctuation of water level in the river dose not significantly effect on ground water table on the monthly time scale. The discharge therefore does not show significant relation with groundwater level, as it was not shown in this research too even by time delay. Therefore, the infiltration of river water into groundwater will have an almost constant value, which is hidden in the observed pizometric depth data. However, on the annual time scale, due to the accumulation of changes in the river’s water level, there is a significant correlation between the annual runoff and the piezometric groundwater depth (correlation coefficient of − 0.64). Because of the work on the monthly scale, the annual scale was not our goal in this study.

Therefore, the variables monthly precipitation and monthly consumption were used as the main variables for the model development. According to the accuracy measurement of models, these variables also turned out to be the most important variables in controlling the water table. In order to measure the time responses of the variables, the required time lags were applied to them, but due to the monthly nature of the variables, the greatest association was observed with parallel times. Monthly precipitation and consumption are usually predictable variables; so, with the aim of developing the application of multiple regression model it was necessary to predict monthly precipitation using the T&F model and predict consumption using Eq. (1) to propose the prediction of piezometric depths. In this study, water consumption is accounted for using the authorization issued by the provincial regional water organization.

8 Suggestions

  1. 1.

    It is recommended that water-related organizations should control consumption and measure it monthly in order to conserve resources, reduce consumption and achieve the standard of 40% renewable water consumption.

  2. 2.

    It is proposed that through the intelligent design of consumption wells, consumption will be provided in real terms and not based on the flow specified in the well license.