Introduction

The ever-increasing population of the world increases the human being’s need to agricultural crops (Abdelrahman 2018). Therefore, paying attention to the agriculture is essential (Häggblom et al. 2019). Paying attention to this subject without considering irrigation and optimal use of water resources will not be possible (Amer 1996). Each irrigation plan will be successful if in the plan the soil drain issue is considered (Bhattacharya and Michael 2004). In the other words, irrigation and drainage are interdependent (Talukolaee et al. 2017). Generally, drainage means removal of excess water and solute from the soil (Ziccarelli and Valore 2018). Lack of appropriate drainage leads to water logging and soil salinity (Qian et al. 2021).

In a country like Iran, that in its most parts precipitation is low and evaporation and transpiration are high (Moshayedi et al. 2020), we are faced to the problem of salt accumulation in the soils and that such salts should be leached and removed from the plant root access (Tao et al. 2019). Otherwise, many of the agricultural lands will become out of reach. In order that the subsurface drains work well, they should be well designed (French et al. 1992; Bouwer and Schilfgaarde 1963).

Since the real water flow in the soil toward the subsurface drains is unsteady (Hooghoudt 1940), such conditions should be considered for appropriate designing of drains (Xian et al. 2017). For this purpose, it is possible to act in several methods:

  1. A

    Using the equations extracted for unsteady flow of drains like the Glover-Dumm, Van-Schilfgaarde, Bower and Van-Schilfgaarde and Hamed equations the above equations are theoretically extracted employing the physical hypotheses (Naz et al. 2009)

  2. B

    Using the differential equations governing the unsteady (Nishida et al. 2020) flow of subsurface drains which have their own complexities and make possible to simulate fluctuations of the water table that the most famous equation is Boussinesq’s equation

Practically prediction of drains based on theoretical relations is accompanied by errors. Evidently if the computed drain spacing is more than what it should be (Nozari and Liaghat 2014), the water table will go higher than (Pešková and Štibinger 2015) its permitted limit and causes decreased yield (Golmohammadi et al. 2009; Dagan 1964). On the other hand, if drain spacing is computed less than what it should be, the project being economic is questioned (Darzi-Naftchally et al. 2014). Regarding the complex behavior of water unsteady flow in the soil (Mai et al. 2019), this behavior cannot be expressed by a precise mathematical equation and through a theory and based on which compute the drain spacing (Jain et al. 1999).

In such conditions, the artificial neural networks will prove very beneficial since such networks (Yousef et al. 2016), do not need to a mathematical relation for the complex phenomenon that they investigate (Kumar et al. 2002). Generally, neural networks are an effective tool for modeling the nonlinear systems (Wang et al. 2006). Each artificial neural network includes an input layer (Pali 1986), an output layer and one or more hidden layers sandwiched between the aforesaid layers (Pali et al. 2014). In each layer there are one or several process elements or neurons which all together act similar to a biological neural network (Datta et al. 1997). Artificial neural network following receiving input attempts to change them to a desirable output (Dieleman and Trafford 1976). To do so, it gives weight to the input and employs an activation function (French et al. 1992).

This is called network training thereafter, the neural network model tests itself and finally the model is certified (Rogers and Dowla 1994). During the last decade (Rathod and Dahiwalkar 2020), artificial neural networks have been used in various fields (Dumm 1953). In the field of water engineering the following cases can be pointed out (Ebrahimian and Noory 2015).

French et al. (1992), for forecasting rain (FAO 1994) in location and time, (Rogers and Dowla 1994), optimization of groundwater, (Shukla et al. 1996), designing of drains at the unsteady state, (Yang et al. 2013) lands drainage engineering, forecasting rivers water levels, (Jain et al. 1999), predicting inflow water to reservoirs and finally (Kumar et al. 2002) who estimated evaporation and transpiration using artificial neural networks (Qian et al. 2021; French et al. 1992; Golmohammadi et al. 2009; Jain et al. 1999; Kumar et al. 2002).

Young in his studies using the artificial neural networks simulated the relation between (Shokri and Bardsley 2016) the water table depth in the middle of drains and their outflow and designed drains using this simulation (Filipović et al. 2014). Obtained results had good precision and are even more exact (Guerriero et al. 2017) compared with results of the older models like DRAINMOD (Rogers and Dowla 1994).

Materials and methods

In this study, drain spacing will be computed through the method of artificial neural networks for a region located in the southeast of lands of the Ramin Higher Educational and Research Complex (affiliated with the Shahid Chamran University of Ahwaz, Iran) at 40 k north east of Ahwaz, Iran toward Shushtar was selected. Part of this farm with the surface area of 11 ha having subsurface drains and is composed of three A, B and C sections. Distance between drain to impermeable layer was considered. Characteristics of these three sections are summarized in Table 1. These values are as average.

Table 1 Study area characteristics

Hydraulic conductivity was measured using the auger method and using Ernest’s equation. The whole research farm for the third consecutive year following establishment of drain system was under cultivation of wheat. These data are for third year.

Therefore, recommendation of FAO regarding condition for establishment of soil stabilization during tests was observed. Each of the above sections from the viewpoint of number and location of inspection hole are similar.

Such that 6 holes are located at the two sides of the drain like at intervals of one fourth, half and three fourth of the drain length in the middle of the interval between the drains. The auger hole method is a standard method for measuring of hydraulic conductivity. Using the information provided by the present meteorology station, mean annual rainfall of the region is 241.4 mm and annual evaporation is 3721 mm, the maximum of which is relevant to July and is equal to 406.7 mm. In such warm and arid regions like Ahwaz, Iran heavy irrigation is performed. As a result, in a short period of time, a high volume of water enters the soil and causes rise of the water table. Fall of water table in the middle of interval between the drains relative to drain balances from the height h0 to h needs a time equal to t.

In the conventional methods for computing the drain spacing in unsteady conditions, in addition to the above information (t, h0, h), the soil hydraulic conductivity (k), specific yield (p) and distance of drains to the confiding layer (d) are needed. In the understudy, region data of Table 2 have been collected. The number of irrigation events was more than 3, but the measurements were done for 3 of them.

Table 2 The maximum and minimum water levels subside during the three consecutive irrigations in parts A, B, C

The aim of this study is that employing the collected data, calculated the drain spacing using the artificial neural networks. The procedure is explained below.

Using the artificial neural networks for determining the drain spacing.

When a variable is dependent on several variables such that their relations cannot be exactly analyzed through a mathematical equation and/or it is not possible to establish via regression a good correlation amongst them, the artificial neural networks can be used.

The structure of these networks resembles the biological neural networks. In the artificial networks, many computations are performed on the independent variables so that the desirable value of the dependent variable can be obtained. Artificial neural networks are composed of some neurons which are placed alongside each other as a layer. The networks are composed of at least two layers (an input and an output layers) but several hidden layers can be sandwiched between the input and output layers. The obtained network is known as the Multiple Layer Perceptron (MLP). In each layer of this network there are some processing elements.

The used neural network is composed of an input layer (with three processing elements), a hidden layer (with two processing elements) and an output layer (with one processing elements). Processing elements in the input and output layers were listed in Table 3 and processing elements in hidden layer are computed by software.

Table 3 Using neural networks application data

To arrive from three inputs to a single output, various weights are given to the processing elements and an activation function is employed.

Therefore, all the elements of the hidden layer and finally the elements of the output layer can be computed. This is done for all input and output data sets. When all output was obtained, they were compared with their real values (measured) and the error value Root Mean Square of Error (RMSE) is computed from the following equation.

All the above said computation is performed using the Neural works software.

In this study, employing the above mention software and through selection of a MLP network, intervals of drains have been calculated. The number of processing elements in the inflow layer (the number of inflow variables) are the same variables required for computing the drain spacing by the Glover-Dumm method which are p, k, d, h0, h, t. the output layer has one processing element which is the same drain space (L).

Data employed in the software using Tables 1 and 2 are presented as Table 3. Data in Table 3 are as usable form in Neural works software.

These data were randomly divided into three parts and are used for training, testing and validation stages. Drainage is investigating in the domain since earliest periods to decrease the soil water and rise the efficiency of yields. The precise project of the organization can support the sustainability of the situation and decreases the adverse of over drain of the earths. Artificial Neural Network (ANN) was applied to evaluate the drain spacing for unsteady. The advanced prototype was qualified and verified applying consequences attained from hypothetical and laboratory information. Numerous topologies with dissimilar involvement purposes, hidden layers, quantity of neurons have been verified and the finest topology was designated as best prototypical. Furthermore, the aptitude of prototypical in approximating the drain spacing was revealed applying field information. Overall, technique could calculate the drain spacing with related accurateness and together can be applied efficiently in field of agronomic drainage. The usage of Artificial Neural Networks (ANN) was examined as a different technique to attain results to the Boussinesq equality. Results were attained with a numerical technique, each one conforming to a single set of component standards. This finest ANN was exposed to diverse exercise administrations in order to regulate the most suitable one, the organizations containing of numerous numbers of exercise with the knowledge conventional. Presentation of the ANN at the numerous preparation stages was assessed and the optimum organization defined. It was defined the use of Artificial Neural Networks (ANNs) to prototypical the presentation of a subsurface drainage organization in Iran. The ANN prototypical was constructed and qualified by applying dignified information on water-table complexities and drain discharges. The consequences attained by the ANN prototypical were contrasted with the dignified information and the simulated consequences from a predictable accurate prototypical. The consequences display that the ANN prototypical can pretend water-table variations and drain discharges reasonably fine. The ANN prototypical performs meaningfully earlier and needs meaningfully less contributions. The ANN reproductions be contingent deeply on the superiority of the input information for together mediocre and great situations. It was designated that an ANN prototypical may be applied efficiently for the project and assessment of subsurface drainage organizations. The profits of ANNs are rapidity, correctness and suppleness. Artificial Neural Networks (ANNs) may show to be valuable in these circumstances. From side to side the preparation procedure, ANNs adjust weights in the interconnections between every couple of dispensation features (PEs) to decrease the alteration between preferred productions and present pretend consequences. ANNs can simply prototypical the association between input and output components in an implied technique, even while the issue is extremely nonlinear.

Furthermore, they need meaningfully less input components than like predictable prototypes. Similarly, depending on this implied input/output association with equivalent dispensation through the internal constructions of the system, ANNs can perform reproductions very rapidly. The fast performance of ANNs benefits get forecasts for great-scale models. In new periods, ANNs have established many effective presentations in agronomy, it was constructed an ANN prototypical. It was used ANNs for the model of bully presentation. It was qualified ANNs to assess and forecast the superiority of nourishments. It was advanced visual irrigation organization for chicken feed depends on ANNs. It was applied ANNs to pretend water preservation arches on sandy dusts. The foremost purpose of this education was to progress an ANN prototypical for the mockup of water-table depths and drain discharges in a subsurface drained pasture of Ahwaz, Iran. The association amongst inputs, i.e., precipitation, evapotranspiration and preceding water-table depths and drain discharges and yields was pretend under kinds of drain spacing. The prototypical presentation was assessed by contrasting pretend standards with dignified information. Furthermore, simulated principles were contrasted with consequences gained by applying an ANNs prototypical.

The hyperbolic curve transmission purpose is calculated as subsequent:

$$Y = \frac{{e^{x} - e^{ - x} }}{{e^{x} + e^{ - x} }}$$

where, Y is the yield of the dispensation features and X is the summed input indicator in every dispensation features. ANNs were verified at unsteady intermissions, the system was protected while consequences had enhanced contrasted to the previous organizations. So as to avoid the above preparation of ANNs, this method was applied through the plan. Drain spacing, daily rainfall, daily evapotranspiration, water-table depth on the previous day and drain outflow on the previous day are the main components of ANNs. Whereas organization ANNs after exercise, evidence on everyday water-table and channel discharge variations rise to the daytime of reproduction is recognized and applied to mark the one-stage reproduction. The prototypical permits for simulation at a period. The experiential standards on the present stage developed inputs for the reproduction on the following stage.

Different standards were applied for prototypical assessment: Root-Mean-Square error (RMS), Standard Deviation of errors (SD) and the coefficient of determination (r2). The consequences of r2 were gained from a database. The RMS and SD were designed as:

$${\text{RMS = }}\sqrt {\frac{{\sum\limits_{1}^{N} {\left( {RO_{n} - RA_{n} } \right)^{2} } }}{N}}$$
$${\text{SD}} = \sqrt {\frac{{\sum\limits_{1}^{N} {\left( {R_{on}^{{}} - RA_{n}^{{}} } \right)^{2} - \frac{{\left( {\sum\limits_{1}^{N} {R_{on}^{{}} - RA_{n}^{{}} } } \right)^{2} }}{N}} }}{N - 1}}$$

where:

RO:

= The observed value.

RA:

= The simulated value.

n:

=  The record on each day.

N:

= The total number of records.

Respectable consequences with little faults and great covenant to dignified standards are offered by RMS and SD standards near to zero and by r2 standards near to one. It is obvious from the information that ANN prototypes completed improved in forecasting component standards in practically all circumstances, RMS, SD and f standards are significantly improved for ANN models. The consequence is exact hopeful since ANNs is a materially depend prototypical and needs a large number of soil systemic and meteorological components for its models. Also, the ANN mockups need moderately less input components and appear to have demonstrated consequences rather precisely. Also, the climatological inputs, which are similarly compulsory by ANNs needs many components: Drainage plan, soil features, hydraulic conductivity, trafficability, land cover, etc. Meanwhile conservative reproductions requisite to have formerly distinct this complex association, construction ANN prototypes develops informal than evolving conservative prototypes to get consistently precise reproductions of water-table complexities and drain discharges (Yang et al. 2013). Soil drainable penetrability (f) is definite as the capacity of aquatic that is drained through an item capacity of soil while the water table descents above a component space. The assessment of f is not usually persistent then also additional possessions, it is a purpose of water table penetration i.e., soil depth, Z. The period of form of the water table be contingent on the specific method in drainable penetrability is connected to water table deepness. It is suitable and frequently essential in educations to direct f as a purpose of Z. The f standards consistent to dissimilar Z were defined from water table or hydraulic head (h) and drain discharge (q) capacities. A useful association amongst f and Z was formerly advanced by reversion which is revealed and is defined by the subsequent calculation:

$$F = aZ^{b}$$
(1)

Somewhere ‘a’ and ‘b’ are the reversion constants. A mediocre assessment of f demonstrating the complete drainage current district can be gained by participating Eq. (1) inside the border circumstances Z = 0 to Y and then separating by drain depth Y. Therefore:

$$f_{ave} = \frac{{\int_{0}^{Y} a Z^{b} {\text{d}}z}}{Y} = \frac{{aY^{b + 1} }}{Y} = \frac{{aY^{b} }}{{\left( {b + 1} \right)}}$$
(2)

Soil hydraulic conductivity (K) is the drainage water current per component zone of the soil form per component hydraulic slope. Approximating f, K correspondingly displays longitudinal difference. Consequently, it is similarly significant to include the inconsistency of K in drainage project calculations. For defining K conforming to dissimilar Z standards, K/f proportions were principal defined applying the process assumed and formerly this were increased by f standards attained from Eq. (1). K standards so gained were planned in contradiction of Z standards. The subsequent relative was established:

$$K = \alpha Z^{\beta }$$

where, α and β are reversion coefficients.

A mediocre assessment of K can similarly be defined in a related way as applied for fave. Consequently:

$$K_{ave}^{{}} = \frac{{\alpha \mathop Z\nolimits^{\beta } }}{{\left( {\beta + 1} \right)}}$$

The water table downturn throughout drainage of a soil outline is the measured central between drains, hereafter the most serious. If the water table is expected to be level, the degree of reduction of water table is unchanging amongst drains. Consequently, a steady formal drainage association, which similarly accepts an unchanging fluidity, can be applied to define the degree of reduction (dh/dt) of the water table amongst drains. Conversely with a dropping water table, the fluidity in overall differs with space from the drains. Henceforth so as to apply steady state explanations, an alteration factor C wants to be presented. Figure 1 shows Alteration of drainable porosity with water table profundity. The trend dramatically increases and R2 equals 0.955. Figure 2 shows Alteration of hydraulic conductivity with water table infiltration and the trend decreases and R2 equals 0.988. The appearance for drain discharge or drainage fluidity can be conveyed as:

$$q = - fc\frac{{{\text{d}}h}}{{{\text{d}}t}}$$
Fig. 1
figure 1

Difference of drainable absorbency with water table deepness

Fig. 2
figure 2

Difference of hydraulic conductivity with water table penetration

q = drain discharge, mday1; f = drainable absorbency of the soil, in element. Undesirable symbol designates that h declines with rise in time, t. For increasing water table, adverse symbol fades. Here, h0 is first assessment of hydraulic head and S is the drain spacing. It was measured the drainable porosity, f as persistent. But it has been recognized that f differs with Z. Meanwhile Z = (Y − h), somewhere Y is the deepness of drain from ground superficial, it can be conveyed in relationships of hydraulic head, h as:

$$f = a\left( {Y - h} \right)^{b}$$
$$q = - aC\left( {Y - h} \right)^{b} \frac{{{\text{d}}h}}{{{\text{d}}t}}$$
$$h = \frac{qS}{K}F_{D}^{{}}$$
$$F_{D}^{{}} = {\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 4}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$4$}}\left[ {\frac{S}{2D} - \frac{2}{\pi }\ln \left( {2\cosh \frac{\pi r}{D} - 2} \right)} \right]$$
$$F_{D}^{{}} = \frac{1}{4}\left( {\frac{S}{2D} - \gamma } \right)$$

Results

The precise approximation of subsurface drain spacing under unsteady water table regime shows an important part in drainage project and is essential for the effect assessment of the current subsurface drainage organization in relationships of dropping of water table or for the control of components of innovative drainage organizations. The global drainage nonfiction predicts many calculations for unsteady formal organization with numerous grades of difficulty. Some of these calculations develop consecrated among investigators and originators complicated in drainage problems. The inconsistency of the soil systemic possessions, especially hydraulic conductivity and drainable porosity is the aim that numerous of these drainage project calculations do not do in conformism to the real ground presentation consequences. Greatest unsteady state drainage calculations obtainable undertake persistent standards of drainable porosity and hydraulic conductivity. Data of Table 3 were entered into the software and a multiple layer neural network with 6 processing elements in the input layer and a processing element in the output layer were selected. The number of hidden layers and the number of their processing elements and the type of activation function were obtained through trial and error. These results are as an example for high ability of neural work in determining of drain spacing.

Such that, first computations were started for a hidden layer with a processing element and through increased number of processing elements in a hidden layer and the number of hidden layers, minimum error was obtained.

This was done for the three types of linear activation functions, hyperbolic and sigmoid tangents. Mean error using 0.1455, 0.092 and 0.0491, respectively. Therefore, finally the minimum error for the artificial neural network is obtained using a hidden layer (with four processing elements) and a linear activation function. The hidden layer with 4 processing elements has less error. Through employment of this network, values for drain spacing were computed results of which are presented in Table 4.

Table 4 Comparison between calculated and actual values which drains

Regarding Table 4 it is observed that the difference between the computed drain spacing using the artificial neural networks and their real values is not statistically significant. In the meantime, the mean computed distance through the Glover-Dumm equation for the A, B and C sections are 53, 43 and 33 m, respectively, indicating that their difference with the real values is considerable.

Such a difference is also seen for other computation formulas used for calculating drain spacing at the unsteady state. Therefore, it can be concluded that using artificial neural networks for determining the distance of drains at the unsteady state provides very desirables results compared with other formulas (Shukla et al. 1996; Thirumalaiah and Deo 1998).

Discussion

Exactly all unsteady subsurface drainage calculations advanced thus far usage persistent price of drainable permeability and hydraulic conductivity that it was not characteristic of whole drainage current area. A drainage calculation was, therefore, advanced including deepness-sensible inconsistency of drainable permeability (f) and hydraulic conductivity (K) of salty earths of Ahvaz zone in Iran. The drain spacing with dignified hydraulic heads at dissimilar stages of drainage to be were assessed by the advanced calculation and contrasted with the consistent drain spacing assessed by usually applied unsteady drainage calculations. The facility of drainage particularly subsurface drainage is a significant method for regaining water recorded and saline soils. The instrument of this purpose is attained by subsurface drainage, includes the treatments of current of liquids through the soil outline and so be contingent deeply on soil drainage possessions. The operative project of subsurface drainage organization is categorized in expressions of soil drainage possessions, drainage organization components and border situations. The drainage project in moist zones usually depends on the knowledge of a steady public organization and the project standards need the changeable of a quantified deepness of water to confirm satisfactory drying of the soil.

Conclusion

Many drainage employees have advanced unsteady public drainage models for moistened domains. Regularly Boussinesq calculation has been applied to comprehend unsteady water table variations in subsurface drainage difficulties. Greatest of unsteady state drainage calculations need drainable permeability (f) and saturated hydraulic conductivity (K) as soil possessions that straight impact the drainage procedure. The drainage calculations apply persistent standards of the possessions and may be valuable for drainage project in consistent earths but the earths are seldom come across in ordinary schemes. Usage of persistent standards of f and K in subsurface drainage project frequently clues to difference in hypothetically projected consequences and the investigational consequences. It is essential to include this heterogeneity in drainage project calculations. It was assumed for emerging an unsteady subsurface drainage calculation including inconsistency of drainable absorbency and hydraulic conductivity of the earth. The presentation consequences of the advanced calculation were similarly confirmed with the ground consequences.

Nowadays, the essential for fresh water in our lifetime series has become more of a trial than ever. So as to attain high-quality water possessions, the usage of contemporary methods in water possessions organization and managing with additional operation of present possessions, in addition to preparing a correct policy for the organization and conduction of water possessions at a period of incidence of periodic overflows which are a purpose of the circumstances of the period, are vital. The shortage of water possessions is one of the most significant pressures to anthropological existence and ordinary ecologies, and absence of consideration to the matter can simply impend nourishment, well-being and macroeconomic safety in any humanity. Agronomy has a projecting residence in the budget since it supplies every day and vital anthropological requirements. Drainage is essential for moist in addition to dry districts and it is one of the foremost contributions to get improved harvests per unit of farming part.

The unsteady approaches which are a purpose of period and steady conditions that are self-determining of time are applied to assess the subsurface drainage organization recognized in the upriver domains of the Ahwaz plain located in the west of Iran. So as to define the drain spacing, the steady Hooghoudt model and the unsteady Glover-Dumm, adapted Glover and van Schilfgaarde mockups in rainy and arid stages of many days were applied, and the distance amongst computational drains at different depths install drains was contrasted with the consequences of the subsurface drainage plan. To contrast the consequences, the mean absolute error (MAE) and standard error (σ) were applied. The consequences display that the steady technique is not in respectable treaty with the standards of the drain spacing. It is significant to the degree that more than of the Iranian river possessions are applied for agronomic domains; but this supply has assigned the smallest quantity of appropriate organization in the conduct and transmission of superficial and subsurface waters in the Iran. The instant and instable supply of water in farmed domains, ensuing from cyclical rainfall and the fast measure of runoff in the zone, can origin waterlogging on the terrestrial superficial and decline the quantity of drying in the space around the origins of floras and test the development of the floras. These supplies, by scheming and evolving a well-organized and best drainage organization that can correctly achieve and regulate the capacity of runoff, can confirm the building happenings, growth and sustainability of farming domains. It was recognized the discharge factor of the earth with the goal of scheming drainage systems of domains in a zone of Ahwaz by boring dissimilar pits applying the opposite auger hole and hole-pumping approaches and specified that on regular the converse auger hole technique displays the discharge constant to be higher than the hole-pumping technique. The subsurface drainage systems are a technologist development and their project desires to classify and properly describe the hydraulic conductivity of the earth.

In the zone situated in Ahvaz, by installation subversive drains at a depth of 2.5 m from the ground, the consequence has been assessed. It was condensed the depth of the drains by 1.3 m and re-assessed the procedure. The consequences display the numerical distance amongst drains resulting from the Glover-Dumm numerical prototypical are the optimum standards in different daytime precipitation and the standards gotten from the van Schilfgaarde numerical prototypical in different daytime precipitation can be the most optimum in leading subsurface water.