Introduction

Eutrophication and algal blooms are serious problems in many lakes and reservoirs (Cüneyt Karul 2000). Combating the adverse effects of eutrophication is often very costly, and in some cases it is impossible to restore the lake to its initial state (Ryding 1989). Increased levels of nutrients, such as total nitrogen (TN) and total phosphorus (TP) through agricultural pollution, industrial wastewater or sewage discharge, coupled with high temperature, commonly enhanced the growth of algae, and sometimes even results in excess algal blooms (Borchardt 1996; Codd et al. 2005; Kosten 2012), particularly eutrophication. Hence, a detailed understanding of the changes in water quality of dam and reservoirs is very important. In the recent years, trophic state indices have been used for this purpose. Since the 1960s, attempts have been made to evaluate the trophic status of lakes by quantitatively applying single-variable trophic indices and multi-parameter approaches (Xu 2011). The relatively simple single-variable trophic state criteria represent only subjective judgments, and may be limited spatially (Therriault and Platt 1978; Chapra 1983; Boyle et al. 1990; Danilov and Ekelund 1999). Comparatively, multi-parameter approaches are more robust than single-variable trophic indices, because of the multidimensional nature of the eutrophication phenomenon in water bodies (Carlson 1977; Cruzado 1987; Xu 2008). Moreover, it would be difficult to describe the continuous changes of a lake’s trophic state or to study the eutrophication mechanism quantitatively, using descriptive classifications for lake trophic states such as oligotrophic, mesotrophic and eutrophic (Carlson 1977; Yoshimi 1987; Xu 2008). The trophic state indexes (TSI), especially the Carlson-type TSIs, have been proposed by some researchers in order to characterize the multidimensional nature of eutrophication and to effectively eliminate the subjective labeling associated with the use of oligotrophic, mesotrophic and eutrophic states as indicators (e.g., Carlson 1977; Walker 1979; Porcella et al. 1980; Swanson 1998; Aizaki et al. 1981; Jin et al. 1990; Xu 2008). These TSIs offer a 0–100 scale providing continuous numerical classes of lake trophic states and a rigorous foundation for quantitative studies of the underlying causes of eutrophication. TSI method has been proved as the most suitable and acceptable method for trophic classifications of lakes (Xu 2008). Carlson Trophic state index expressed by empirical Eqs. (13) and results were analyzed based on Table 1 as follows:

$${\text{TSI }} = \, 60 - \, 14.43{\text{ LN }}\left( {\text{SD}} \right)$$
(1)
$${\text{TSI }} = \, 3056 \, + \, 9.81{\text{ LN }}\left( {{\text{Chl}}\,{\text{a}}} \right)$$
(2)
$${\text{TSI }} = \, 4.14 \, + \, 14.43{\text{ LN }}\left( {\text{TP}} \right).$$
(3)
Table 1 Eutrophication state of dam reservoir based on Carlson index

In the recent years, several studies have analyzed the trophic state of dam reservoirs, using the modified or unmodified Carlson index. For example, the nutritional condition of 19 lakes in the north east of Poland has been studied based on changes in phosphorus and utilizes Carlson index. On the other hand, the Carlson index with no change has been used for trophic state process (Kiersztyn 2002). In a study by North Dakota Department of Health Division of Water Quality, the Carlson index with no change has been used in order to review the maximum amount of total maximum daily load (TMDL) of nutrients into the Northgate Dam in the Dakota (Nutrient and Dissolved Oxygen TMDLs for Northgate Dam in Burke County, North Dakota 2006). In 2009, the trophic state of Shapur Dam reservoir in Pakistan has been studied based on Carlson index (Janjua et al. 2009). Hence, many studies have tried to modify this index in order to provide better results using other parameters. For example, Mandaville used the changes in the concentrations of macrophytes with the Carlson index to evaluate the trophic state of shallow reservoirs. This research states that the results have an appropriate and acceptable accuracy compared with unchanged Carlson index (Mandaville 2000, 2005). In 2010, the Carlson index with a little change has been used to examine the trophic state of Castanhão Dam reservoir as a large dam in Brazil. This study has used the index introduced by Carlson (1977) and TSI introduced by Lamparelli in 2004. It is mentioned that Lamparelli in 2004 has changed the Carlson index and finally the boundary of lakes classification in terms of trophic state, by using the changes in the empirical coefficients in the TSI estimation. Johns (1998) introduced Indiana trophic state index, the new version of Carlson index, using DO, TN and SD parameters (Johns 1998). This index was accepted by a number of researchers in the water industry and a lot of research work were done based on it. For example, Sharma et al. (2010) used this index for trophic state analysis of Mansi Ganga Dam reservoir in India, and indicated that this index can be used as a selective index for trophic state analysis of dam reservoirs in India (Sharma et al. 2010). Kratzer and Brezonik (1981) have used the modified Carlson index for eutrophication state analysis in dams located in America (Florida State), using analysis of total nitrogen parameter (TN) In addition to the Carlson index and considering TN/TP ratio in the estimations. This modification can be the best and most widely used index of modified Carlson index. Florida modified index was introduced as a permanent and selective method for trophic state analysis of dam reservoirs in this state (Florida Department of Environmental Protection 2008). Equations (412) present the modified TSI index (Florida Department of Environmental Protection 1996).

$${\text{TSI }}\left( {{\text{Chl}}\,{\text{a}}} \right) \, = \, 16.8 \, + \, \left[ {14.4 \, *{\text{ LN }}\left( {{\text{Chl}}\,{\text{a}}} \right)} \right]$$
(4)
$${\text{TSI }}\left( {\text{TN}} \right) \, = \, 56 \, + \, \left[ {19.8 \, *{\text{ LN }}\left( {\text{TN}} \right)} \right]$$
(5)
$${\text{TSI }}\left( {{\text{TN }}2} \right) \, = \, 10 \, + \, \left[ {5.96 \, + \, 2.15*{\text{ LN }}\left( {{\text{TN }} + \, 0.0001} \right)} \right]$$
(6)
$${\text{TSI }}\left( {\text{TP}} \right) \, = \, \left[ {18.6 \, *{\text{ LN }}\left( {{\text{TP }}* \, 1,000} \right)} \right] \, {-} \, 18.4$$
(7)
$${\text{TSI }}\left( {{\text{TP }}2} \right) \, = \, 10*\left[ {2.36*{\text{LN }}\left( {{\text{TP}}*1000} \right) - 2.38} \right]$$
(8)
$${\text{If TN}}/{\text{TP }} > \, 30{\text{ then TSI }} = {\text{ TSI }}\left( {{\text{TP }}2} \right)$$
(9)
$${\text{If TN}}/{\text{TP }} < \, 10{\text{ then TSI }} = {\text{ TSI }}\left( {{\text{TN }}2} \right)$$
(10)
$${\text{If }}10 \, < {\text{ TN}}/{\text{TP }} < \, 30{\text{ then TSI }}\left( {\text{NUTR}} \right) \, = \, \left[ {{\text{TSI }}\left( {\text{TP}} \right) \, + {\text{ TSI }}\left( {\text{TN}} \right)} \right] \, / \, 2$$
(11)
$${\text{TSI }} = \, \left[ {{\text{TSI }}\left( {{\text{Chl}}\,{\text{a}}} \right) \, + {\text{ TSI }}\left( {\text{NUTR}} \right)} \right] \, / \, 2.$$
(12)

In the recent years, by introducing numerical modeling to the field of dam reservoirs management, eutrophication state could be done with more precision and future assessment possibility. Artificial neural networks are one of these methods that have been welcomed by most experts. In the quality management of dam reservoirs, artificial neural networks have been used in the algal blooms prediction, eutrophication and dissolved oxygen changes. However, TSI analysis has been less applied in this domain. In this article, TSI process, suggested by Florida Department of Environmental Protection, is analyzed for Dez Dam reservoir in Iran using artificial neural networks.

Materials and methods

Study area

Dez Dam water basin is located in the Zagros Mountains, within the longitude and latitude of 48°31′–49°35′E and 33°39′–32°40′N. This water basin area is located in the Khuzestan Province, 25 km northeast of Dezful and 23 km northeast of Andimeshk and in the Dez-Karun water basin area. This dam is the largest dam in the Middle East (at the time of construction, 1957) and the third largest dam in the world. It also has an important role in the water-need supply in Khuzestan Province (Moshanir Consulting Engineering Company 2007). Figure 1 shows the Geographic location and population centers of this water basin.

Fig. 1
figure 1

Geographic location and population centers of Dez Dam

The study was done based on the results of sampling studies and environmental tests of the second power plant of Dez Dam in the period of 2008–2007. Sampling was performed for 1 year at two stations and from different depths of the reservoir.

The stations where sampling was done are as follows:

  • First station was at the back of dam crest at longitude of 48°27′45″ and latitude of 32°36′27″

  • Second station was in front of the Pamenar village at longitude of 48°27′13″ and latitude of 32°38′36″.

The parameters are summarized in Table 2.

Table 2 Parameter description used in the research

Artificial neural networks (ANN)

The concept of artificial neurons was first introduced in 1943 (McCulloch and Pitts 1943). ANNs constitute an information-processing paradigm that is inspired by biological neural systems (Haykin 1999). Researching the application of ANNs has been intensified since the introduction of the back propagation (BP) training algorithm for feed forward ANNs in 1986 (Rumelhart et al. 1986). Feed forward neural networks propagate data linearly from input to output and they are the most popular and most widely used models in many practical applications. Artificial neural networks are often made of an input layer, one or more hidden layers, and an output layer as Fig. 2.

Fig. 2
figure 2

Feed forward neural network with one hidden layer

The general formula for the data transfer from the input layer to the output layer is defined by Eq. (13).

$$Y_{i} = \mathop \sum \limits_{j = 1}^{R} W_{j} X_{j} + b^{{}} ,$$
(13)

where R is the number of neurons in the last layer, Xi(i=1, R) are the input data from neurons in the last layer, Wi(i=1, R) are the weights of X i neurons and b is the bias.

The main differences between the various types of ANNs include network architecture consisting of hidden layer number, the number of neurons in each layer and activation function used in each neuron and training methods. There are different activation functions such as linear, sigmoid and tangent hyperbolic functions presented as follows, respectively (Caudill and Butler 1992):

$$f \, \left( n \right) \, = \, n$$
(14)
$$f\left( n \right) = \frac{1}{{1 + e^{ - n} }}$$
(15)
$$f\left( n \right) = \frac{{1 - e^{ - n} }}{{1 + e^{ - n} }}.$$
(16)

Application of artificial neural network for reservoirs quality management

Cüneyt Karul (1999) introduced artificial neural networks as a powerful tool in the dam reservoirs management and used the method in the quality and quantity management of reservoirs. Study of input flow amount into the reservoir (Ichiyanagi 1995), hydraulic specifications (Salmasi 2010) and sediments estimation (Jothiprakash et al. 2009) are samples of neural networks application in the quality and quantity management of dam reservoirs. Many research works using artificial neural networks has been done on quality topic especially on eutrophication process of dam reservoirs. Cüneyt Karul (1999) used artificial neural networks for chlorophyll a modeling as a TSI for the Keban Dam reservoir in Turkey. In this study, we used an artificial neural network made of three layers: an input layer, an output layer, and a hidden layer with progressive operation. Input data includes PO4, NO3, alkalinity, TSS, pH, temperature, electrical conductivity, dissolved oxygen and Secchi disk. Chlorophyll a concentration consisted of the output layer of this network and communication between layers is done by the sigmoid function. This structure has an appropriate accuracy for evaluating eutrophication behavior of dam reservoir (Cüneyt Karul 1999). Cüneyt Karul (2000) studied the Mogan and Eymir dams by theories used in the neural network of Keban Dam, and finally compared the obtained results for these three dams. According to this research, results obtained from Mogan and Eymir dams with more continues water flow have a coefficient of determination of 0.95 (Cüneyt Karul 2000).

Mark et al. (2001) used artificial neural network for eutrophication modeling in the Burrinjuck Dam reservoir in Australia and compared the results with those of SALMOFootnote 1 model. The comparison indicates that, both analyzed models are capable for assessing the quality changes in the dam reservoir; however, they are different in terms of the accuracy of short- and long-term results (Mark et al. 2001). Lee et al. (2003) used this method for Tolo Dam in Hong Kong in addition to challenge the previous studies on using artificial neural networks in modeling eutrophication phenomena in the dam reservoirs. Joseph thinks that, most studies up to that time had no appropriate processing on the data and virtually all available parameters have been used as input. Hence, in their study, the input data have been chosen with greater sensitivity and precision. Joseph in this study used three-layer back propagation neural network with transfer function sigmoid (Lee et al. 2003). Muhittin Aslan (2008) simulated Eymir Dam in Turkey using artificial neural networks and fuzzy inference systems and compared the obtained data. The results of this study stated that the output data of neural network, compared with fuzzy method, is significantly more accurate and more acceptable (Muhittin Aslan 2008). Jan-Tai Kuoa (2007) used artificial neural network for modeling eutrophication process of Te-Chi Dam reservoir. In this study, contrary to the previous studies, the chlorophyll a is not considered as a TSI and instead, it has been used from Carlson index. Jan-Tai Kuoa editing four neural networks, has simulated the main parameters such as DO, SD, TP, and the chlorophyll a, and replaced the results in the Carlson linear equation. Finally, the Carlson index was estimated as eutrophication state of dam reservoir (Jan-Tai Kuoa 2007).

The main point in the all previous research works is acceptable output result of artificial neural network that introduced this method as a powerful tool for qualitative modeling of dam reservoirs.

Artificial neural networks application

In this paper, feed forward neural network with one input layer, one hidden layer and one output layer was applied using MATLAB neural network toolbox for TSI analysis in the Dez Dam reservoir (Fig. 3). The input data of this network are effective parameters in the eutrophication: nitrogen cycle parameters (TN, NO3, NH4) and phosphorous cycle parameters (TP, PO4) and parameters that will be change by eutrophication: Chl a, SD, DO and the output data is TSI.

Fig. 3
figure 3

Schematic primary structure of artificial neural network of Dez Dam reservoir

Before training and validation, scaled the inputs and targets were scaled using normalized equation such that the data always fall within a specified range:

$$X_{n} = \left( {Y_{\hbox{max} } - Y_{\hbox{min} } } \right)\left( {\frac{{X - X_{\hbox{min} } }}{{X_{\hbox{max} } - X_{\hbox{min} } }}} \right) - Y_{\hbox{min} } ,$$
(17)

where X is the data value, \(X_{n}\) is the normalized data value, \(X_{\hbox{max} }\) and \(X_{\hbox{min} }\) are the maximum and minimum values of all the obtained data during the training period and \(Y_{\hbox{max} }\) and \(Y_{\hbox{min} }\) are maximum and minimum values in the range of (0.05, 0.95).

Results

Trophic state index in the Dez Dam reservoir

Trophic state index is estimated by using Eqs. (412) and the results are presented in Tables 3 and 4 and Fig. 4.

Table 3 Total trophic state index and effective parameters at the station 1
Table 4 Total trophic state index and effective parameters at the station 2
Fig. 4
figure 4

Eutrophication state of Dez Dam reservoir at the stations 1 and 2

Based on the results from Tables 3 and 4 and Fig. 4, Dez Dam reservoir is considered to be eutrophic in the early July to mid-November and would be mesotrophic by decrease in temperature. Therefore, a decrease in water quality of the dam reservoir during the warm seasons is expectable.

Trophic state index modeling using artificial neural network

In order to achieve the appropriate structure of artificial neural network that indicates the eutrophication state of Dez Dam reservoir, first basic structure (Fig. 3) was developed with different modes of composition of functions. Also, number of hidden layers was trained and simulated by MATLAB software. Based on this, nine possible arrangements for the transfer and activity functions (tangent sigmoid, log sigmoid and linear) and 20 possible arrangements for the number of hidden layer cells (10–30) in total of 180 different artificial neural network structures were investigated. Errors MSE (mean squared error), SAE (sum of absolute errors) and SSE (sum squared error) were estimated on output data of total analyzed structures corresponding to Eqs. (1820):

$${\text{MSE}} = \frac{1}{N}\sum\limits_{i = 1}^{N} {\left( {Y - Y_{i} } \right)}$$
(18)
$${\text{SAE}} = \sum\limits_{i = 1}^{N} {\left( {Y - Y_{i} } \right)}$$
(19)
$${\text{SSE}} = \sum\limits_{i = 1}^{N} {\left( {Y - Y_{i} } \right)}^{2} ,$$
(20)

where N is the number of output data, Y is the model output and Y i is the real output. Results indicated that using a combination of linear functions for activity and transferring of this artificial neural network, in addition to the lowest error, has also provided a more coherent response. In other combination of functions, although in some cases, error responses were low; however, often the answers provided the dispersion. It should be acknowledged that TSI behavior of Dez Dam reservoir, based on initial structure, follows linear transfer and activity functions. In artificial neural networks, coefficient of determination between real outputs (optional) and the simulated outputs by the network can be considered a criterion for measuring the learning limit and network performance (Chegini 2009). Hence, with estimation of coefficient of determination between real outputs and modeled output in the different structures of the neural network with linear functions, the best structure in terms of number of hidden layer cells with the highest coefficient of determination is a network with 25 neurons of hidden layer with R2 = 0.8377 (Fig. 5).

Fig. 5
figure 5

Coefficient of determination of real output and modeled output in neural network with linear activity function, linear transfer function and 25 cells of hidden layer

At this stage, a question may appear whether or not changing the number of input parameters can be involved in the response improvement provided by the network. To answer the question, we follow up with changes in input data. The most likely hypothesis is using TSI empirical formula and eliminating parameters SD and DO that seems to lead us to more accurate answer. As it can be seen in Fig. 6, changing the input data of coefficient of determination will cause the output data to be reduced; therefore, artificial neural network is found to be far away from the real answer.

Fig. 6
figure 6

Coefficient of determination of real output and modeled output in neural network with 6 input parameters, linear activity function, linear transfer function and 25 cells of hidden layer

Sensitivity analysis has been done to identify the most effective input parameter in the TSI analysis. In general, this process in neural networks is done by removing or adding methods of the analyzed parameter in the final network (Memarianfard 2009). Based on this, adding or removing any parameter corresponds to the greatest increase or decrease, respectively, in the coefficient of determination which would be considered as the most sensitive input parameter of neural networks. Therefore, in the neural network revised for the trophic state analysis of Dez Dam reservoir, one parameter out of eight input parameters was removed and the network was trained and tested again. Coefficient of determination analysis of the obtained results correlation selective network output indicates that depth, total nitrogen, total phosphorus and chlorophyll a are the most sensitive input parameters of this network, respectively. In contrast, phosphate, dissolved oxygen, ammonia and nitrate, have low sensitivity, respectively (Fig. 7).

Fig. 7
figure 7

Correlation amount of final response of artificial neural network to input parameters

Understanding the eutrophication state of dam reservoirs would help to determine the quality enforcement priorities. In the Dez Dam reservoir, considering the eutrophication state especially in warm seasons, it is necessary to control the pollutions, which enter the watershed, and reduction of nutrients entering the reservoir. Collection and treatment of sanitary and industrial wastewaters, drainage control of agricultural lands and performance of watershed management projects are some of the approaches that could be beneficial in this regard. Following scenarios have been studied in order to find the effects of eliminating specified percentage of the input nutrients, which lead to the controlling strategies in the watershed, on the TSI; also, to see whether the artificial neural network can express these changes:

  • First scenario: management strategies of pollution control in the watershed and nutrients reduction entering the Dez Dam reservoir—this scenario has been tested with values of 25 and 50 %.

  • Second scenario: no management strategies in the watershed area. Therefore, nutrients entering the Dez Dam reservoir would increase and result in agricultural, industry, etc., development at upstream—this scenario has been tested with values of 25 and 50 %.

Therefore, neural network was trained and simulated again after changing the input data. The results are shown in Figs. 8 and 9.

Fig. 8
figure 8

Trophic state index simulation of Dez Dam reservoir with nutrients decrease

Fig. 9
figure 9

Trophic state index simulation of Dez Dam reservoir with nutrients increase

The results in these figures show that ANN can model the effect of increment and decrement of nutrients on TSI. Accordingly, 50 % increment of TSI in a short time causes a mesotrophic condition. Most of the time, the Dez Dam reservoir is in eutrophic condition.

Conclusions

Based on the results from estimation of modified Carlson TSI, Dez Dam reservoir is considered to be eutrophic in the early July to mid-November and would be mesotrophic by decrease in temperature. Therefore, a decrease in water quality of the Dam reservoir during the warm seasons is expectable. Progressive artificial neural network with 8 input parameters, a hidden layer consisting of 25 neurons and combination of activity and linear transfer function, has created the most appropriate structure for analysis of TSI behavior of Dez Dam reservoir. Output data of this structure have coefficient of determination of 0.8377 with real data. Editing neural network structure shows the most sensitivity to the depth changes, total nitrogen, total phosphorus and the chlorophyll a, respectively. Therefore, these parameters are the most sensitive input parameters of neural network. In contrast, phosphate, dissolved oxygen, ammonia and nitrate, respectively, have low sensitivity.

According to the results of sensitivity analysis, it should be mentioned that the existing empirical indices have correctly introduced parameters of depth, total nitrogen, total phosphorus and the chlorophyll a as the most important parameters affecting the TSI analysis. However, adding parameters such as dissolved oxygen, phosphate, nitrate and ammonia can help to improve the accuracy of estimations. Artificial neural networks can accurately predict the decrease scenarios or the increase in input nutrients. Moreover, it could enhance understanding the process of TSI changes. Based on this, in case of performing an appropriate pollution control management program, water quality of dam reservoir could be improved, except for a short period in summer in which a poor atrophic condition would occur. Otherwise, having no quality management program would cause a reduction in water quality and an increase in eutrophication state.