0% found this document useful (0 votes)
61 views9 pages

Application of Artificial Neural Network To Predict Total Dissolved Solid in Achechay River Basin

Achechay River Basin in East Azerbaijan province in Iran passes through saline zones, use of the water for irrigation has become problematic. Prediction of river salinity using Artificial Neural Network is reasonable, suitable and of acceptable accuracy.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views9 pages

Application of Artificial Neural Network To Predict Total Dissolved Solid in Achechay River Basin

Achechay River Basin in East Azerbaijan province in Iran passes through saline zones, use of the water for irrigation has become problematic. Prediction of river salinity using Artificial Neural Network is reasonable, suitable and of acceptable accuracy.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

World Applied Sciences Journal 4 (5): 646-654, 2008 ISSN 1818-4952 IDOSI Publications, 2008

Application of Artificial Neural Network to Predict Total Dissolved Solid in Achechay River Basin
1

S. Kanani, 2 G. Asadollahfardi and 2 A. Ghanbari


1

Tarbiat Moallem Univeristy, Tehran, Iran Departpmet of Civil Engineering, Tarbiat Moallem University, Tehran, Iran

Abstract: River water salinity is a significant concern in many countries, considering agricultural and drinking usages. Therefore, prediction of amount of salinity is a necessary tool for planning and management of water resources. Since Achechay River Basin in East Azerbaijan province in Iran passes through saline zones, use of the water for irrigation has become problematic. In this regard, prediction of future salinity of Vaniar station in Achechay river basin was studied using Artificial Neural Network (ANN) with a month time delay as predictor, considering the effect of discharge with 24 hours time delay and Total Dissolved Solid (TDS), TDS monthly mean data and daily mean discharge for thirty years are considered as inputs for the ANN and TDS is the output of the models. Multi Layer Perceptron (MLP) and Input Delay Neural Network (IDNN) methods were applied to the data. The results of the study showed that predictions of river salinity using Artificial Neural Network are reasonable, suitable and of acceptable accuracy. Hence, prediction of water salinity by ANN may be useful for water quality planning and management. Key words: Salinity prediction Achechay River Artificial neural network

INTRODUCTION Lack of water resources and optimum management have been two recent challenges of water resources engineering. Population growth, decrease of useable water resources, improvements in lifestyle, growing rate of consumption, climate change and several other parameters have caused useable water to be a significant problem for future. Economic and efficient use of water resources and its management have an increasingly significant role. Prediction of water salinity is one of the methods which have been recently considered for management of water resources. The predictions can be used for water resources planning and management in case they are of acceptable accuracy. There are two methodologies for prediction of salinity, like other water quality parameters,; first, precise study of different processes which can affect water salinity and developing statistical or deterministic models according to the obtained information.. Second, developing Data Driven Models using information and collected data; In the latter technique, relationship between input and output data can be found using input data, but still physical understanding of phenomena is significant for having suitable input data for model, however, it is not necessary to simulate complicate process. ANN is one of the Data Driven Models which 646

has recently been applied as a tool for modeling complicated processes. American Society of Civil Engineering (ASCE) research committee reported that ANN can be applied for various hydrological branches and they reached the conclusion that ANN is able to simulate many of complicated nonlinear processes (3) (4). Wenrui and Simon [1] applied ANN for assessment of variation of water salinity in Apalachicola River in Florida considering wind, ebb and flow and amount of influents freshwater. The result shows ANN is able to model non linear water salinity very well considering three mentioned parameters (10). Holger et al. [2] used ANN for modeling cyan bacteria Anabaena in Murray River in South Australia (11). Achechay River is located in the North-West of Iran and it originates from Sabalan Mountain basin. The river passes through Vaniar Valley, located in the North of Tabriz City and then water of Sahand mountain basin enters the river. Finally, water of the river enters Oromeyh Lake (1). Some of tributaries of Achechay River have high water salinity because the river passes through salty basins such as Markid, Karchay, Sabzinehcha and Tazahkan streams (3).Vaniar Dam is located at East longitude 46,8,23 and North latitude 38,8, 59on Achechay river. The purpose of constructed dam was to

Corresponding Author: M r. S. Kanani, Tarbiat Moallem Univeristy, Tehran, Iran

World Appl. Sci. J., 4 (5): 646-654, 2008

Legend Legend Dam

Fig. 1: Achechay River Basin


Table 1: Some characteristics of Achechay river basin (1) Basin area up to Vaniar dam Annual mean rainfall Minimum Altitude from sea level Maximum Altitude from sea level Total amount of annual water Withdrawal upstream from annual water Vaniar dam annual evaporation 7723.0 km2 388.0 mm 1458.0 m 3882.0 m 409.0 mcm 108.6 mcm 1503.0

supply water for irrigation of 40000 hectares of Sofeyan, Azarshahr and Tabriz cities. Figure 1 and Table 1 show the situation of Vaniar dam and the basin characteristics respectively. The Problem which Azerbaijan water authorities encounter is water salinity control in Vaniar dam for irrigation usage. In this regard, having enough information about future salinity is vital for planning and management. The first objective of the study is to develop models with thirty year previous data of monthly TDS and hourly discharge in Vaniar station at Vaniar Dam, using ANN models and to compare the results. Second, prediction of TDS parameter from developed models which may be useful in planning and management of water salinity in the area. THEORY OF ARTIFICIAL NEURAL NETWORK Considering natural Neural and its components, scientists developed artificial Neural which is the 647

Orumieh Lake

River

Seasonal Permanent

Study area boundary Hydrometri c Station

smallest processing unit of an ANN. An artificial Neural consists of three components including weighting (W), bias (b) and transfer function (f).These three components are unique for each Neural. Figure 2 shows schematic of artificial Neural. In the figure p and a are input and output of a Neural, respectively. Parameter n is called net input, which is input of transfer function and it is built according to input p and Neural parameters. Mentioned artificia l Neural can be modeled by the following equations. n = wp+b a = f(n) = f(wp+b) (1) (2)

In Neural instruction process, w and b (Neural parameters) change until the best approximation for an output member corresponding to the input member is obtained. Weight of Neural determines the rate of p effect on "a" and parameter "b" causes Neural to be transformed to sub-space of bias input space. There are some types of transfer functions some of which are as follows: Linear, transfer function Hard-limit transfer function Log-Sigmoid transfer function

World Appl. Sci. J., 4 (5): 646-654, 2008

Tan-Sigmoid transfer function and Tan-Hyperbolic transfer function

Generally, there are two types of ANN models as follows: Static model Dynamic model STATIC ANN MODELS In static models, time is not considered and outputs of network at any time depend on the inputs at the same time. the static model applied in this research is MLP.According to Universe Approximator, each MLP with a sigmoid hidden layer and a linear output layer is able to predict each complicated parameter if numbers of Neural in hidden layer are selected precisely (12). Figure 3 shows schematic of MLP with a hidden layer According to the mentioned theory, all ANN's which are applied in this research are MLP with a hidden layer, tangent sigmoid transfer function and linear layer outputs. Figure 4 and 5 show schematic tangent- sigmoid transfer function and linear transfer function for output layers respectively. Number of Neurals in hidden layers for each model may be obtained using trial and error. MLP with a hidden layer, tangent sigmoid transfer function and linear layer outputs can be modeled by the following equations: a1 j (t) = F{Ri=1 w1 j,i pi (t)+b 1 j } a2 k (t) = G {s1 j=1 w2k,j aJ1 (t)+b 2k } (3) (4)

Fig. 2: Schematic of an artificial neural

Input layer hidden layer output layer Fig. 3: Schematic of MLP with a hidden layer

Fig. 4: Schematic tangent-sigmoid transfer function In equations 3 and 4, R is the number of input vector components, S1 and S2 are number of Neurals in hidden and output layers, respectively. P is input vector. W 1 , w2 are weighting matrix in hidden and output layers, respectively. b1 , b2 are bias vectors in hidden and output layers, respectively. G and F are Neural transfer functions in hidden and output layers. a = f(n) = n Dynamic ANN models: The inputs of Dynamic TNN are the same as static model; the difference is that the effect of past periods is considered in this model. There are several methods by which Static model can be turned to dynamic. One of them is Time Delay Neural Network (TDNN) operators. A TDNN operator receives input signal and keeps it for a time step and in next time step, the input signal emerges as an output result. By connecting N series of TDNN operator, Tapped Delay Line (TDL) will be obtained. The output is a vector with N+1 Components. The N+1 components include the inputs in the current time step and N time steps before. 648 Fig. 5: Linear transfer function for output layer

Fig. 6: Tapped Delay Line (TDL)

World Appl. Sci. J., 4 (5): 646-654, 2008

Fig. 7: A schematic of IDNN with a hidden layer


30000 25000 20000 15000 10000 5000 0 1960
Calibration

20000 15000 10000 5000 0 0

Validation

1970

1980
YEAR

1990

2000

Error(RMSE)

TDS(mgr/l)

10 Number of Neuron 20 30 40 The

50

Fig. 8: Time series variations of TDS parameter in Vaniar station


Calibration Validation

Fig. 10: Variations of MAE error based on the number of neurons in IDNN network using flow input parameter with 24-hour time delay
Calibration

Error(MAE)

15000 10000 5000 0 0 10

Error(VE%)

100 80 60 40 20 0 0 5

Validation

The Number of Neuron

20

30

40

50

10

15

20

The Number of Neuron

Fig. 9: Variations of RMSE error based on the number of neurons in IDNN network using flow input parameter with 24-hour time delay As shown in Fig. 6, TDL results in inputs of present time step together with N time steps before. A TDNN is developed by Putting TDL in various layers of MLP. If TDL is placed in input layer, network is known as IDNN. The IDNN consists of two parts, the first part is memory which Saves latest information and the second part is the main body which processes information and predicts future. Figure 7 shows a schematic of IDNN with a hidden layer. Equations 5 show mathematical relations of IDNN. a1 j (t) = F{D d=0 Ri=1 w1 j,i,dp i,d+1 (t)+b 1j } (5) 649

Fig. 11: Variations of VE error based on the number of neurons in IDNN network using flow input parameter with 1 month delay D is the memory degree of Time Delay. The other terms have been previously described (4).For more detailed information related to Dynamic ANN, refer to (4) and (5). For assessment of validity and workability of the models applied in this study three statistical methods are used as follows: Variance Error (VE) Root Mean Square Error (RMSE) Mean Absolute Error (MAE)

World Appl. Sci. J., 4 (5): 646-654, 2008


160 140

)RMSE(????? ??? Error (RMSE)

Calibration Validation

Calibration

120

100 80 60 40 20 0 0 5 10 15 20 25 30 35 40 45

5000 4000 3000 2000 1000 0 0


0 20

Validation

Error(VE%)

The Number of Neuron

? ? ?? 20? ?of Neurons Number? ? ? 40

40

60

60

Fig. 12: Variations of VE error based on the number of neurons in IDNN network using flow input parameter with 24-hour delay
Calibration

Fig. 16: Variations of RMSE error based on the number of neurons in MLP network using flow input parameter with 24-hour delay
Validation(MAE)

Error(RMSE)

15000 10000 5000 0 0 5 10 15 20


The Number of Neuron

)MAE(????? ??? Error (MAE)

20000

Validation

4000 3000 2000 1000 0 0 10 20

Calibration(MAE)

30

40

50

Number? ?Neurons ? ? of ? ? ? ? ?

Fig. 13: Variations of MAE error based on the number of neurons in IDNN network using TDS input parameter with 1 month delay
12000 10000 8000 6000 4000 2000 0 0 5
Calibration Validation

Fig. 17: Variations of MAE error based on the number of neurons in MLP network using flow input parameter with 24-hour delay
120

Error (??? ? %V (%VE) ) E ?? ??

100 80 60 40 20 0

Calibration Validation

Error(MAE)

10

15

20

10

15

20

The Number of Neuron

? ? ? ? ? ? ? Number of Neurons ? ?

Fig. 14: Variations of RMSE error based on the number of neurons in IDNN network using TDS input parameter with 1 month delay
Calibration

Fig. 18: Variations of VE error based on the number of neurons in MLP network using TDS input parameter with one month delay
Calibration

80 60 40 20 0 0 10

%Error (%VE) )V E(????? ???

Error (RMSE) )RMSE (????? ???

Validation

15000 10000 5000 0

Validation

20

30

40

50

10

15

20

?of??? ? ?? Number ? ?Neurons

Number of Neurons? ? ??? ?? ??

Fig. 15: Variations of VE error based on the number of neurons in MLP network using flow input parameter with 24-hour de lay 650

Fig. 19: Variations of RMSE error based on the number of neurons in MLP network using TDS input parameter with one month delay

World Appl. Sci. J., 4 (5): 646-654, 2008


Calibration

Error ??????? )MAE(?(MAE)

8000 6000

Validation

30000
Observed

25000 TDS(mgr/l) 20000 15000 10000 5000 0

Forecasted

4000 2000 0 0 5 10 15 20
?? ?? Number of ? ? ?? ? Neurons

Fig. 20: Variations of MAE error based on the number of neurons in MLP network using TDS input parameter with one month delay
25000
Observed

1960

1965

1970 1975 YEAR

1980

1985

20000
TDS(mgr/l)

Forecasted

Fig. 23: Results of prediction of MLP network (Using 3 neurons in hidden layer) in Vaniar station using TDS parameter with one month time delay in validation stage
100000.00 90000.00 80000.00 70000.00 TDS(mgr/l) 60000.00 50000.00 40000.00 30000.00 20000.00 10000.00 0.00 1980 1982 1984 1986 1988 1990 1992 1994 YEAR
Observed Forecasted

15000 10000 5000 0 1984

1986

1988

1990

1992

1994

Year

Fig. 21: Results of prediction of MLP network (Using 13 neurons in hidden layer) in Vaniar station using discharge parameter with 24 hours time delay
30000 25000 TDS(mgr/l) 20000 15000 10000
Observed Forecasted

Fig. 24: Results of prediction of MLP network (Using 3 neurons in hidden layer) in Vaniar station using TDS parameter with one month time delay in calibration stage
50000 40000
TDS(mgr/l)
Observed Forecasted

5000 0 1960 1965 1970 1975 Year 1980 1985 1990

30000 20000 10000 0


1980 1982 1984 1986 1988 1990 1992 1994

Fig. 22: Results of prediction of MLP network (Using 13 neurons in hidden layer) in Vaniar station using discharge parameter with 24 hours time delay in calibration stage in validation stage The following equations are related to the mentioned statistical methods (9).
1 T

Year

Fig. 25: Results of prediction of IDNN network (Using 12 neurons in hidden layer) in Vaniar station using discharge parameter with 24 hours time delay in validation stage
1 T

VE =

t =1

Obs t -Fort Obst

100

(6)

RMSE =

(Obs F o r )
t t t =1

(8)

MAE =

1 T

Obs
t =1

Fort

(7) 651

In equations 6, 7 and 8 t parameters are defined as follows:

World Appl. Sci. J., 4 (5): 646-654, 2008


Table 2: Results of prediction of TDS in Vaniar station with number of hidden layer which caused minimum VE error Percentages VE error --------------------------------------------------------------------------------------------------------------Type of network MLP IDNN Input parameters Discharge TDS Discharge TDS Numbers of neural 13 3 12 12 Calibration 17.45 30.78 22.69 29.00 Numbers of neural 13 3 12 12 Validation 17.45 17.39 9.88 12.39

Table 3: Results of prediction of TDS in Vaniar station with number of hidden layer which caused minimum RMSE error RMSE (mg/l) error --------------------------------------------------------------------------------------------------------------Types of network MLP IDNN Input parameters Discharge TDS Discharge TDS Numbers of neural (13,14) 14 12 12 Calibration 24.36 4082.00 5767.00 2296.00 Numbers of neural 14 4 3 11 Validation 1635 7416 5101 4761

Table 4: Results of prediction of TDS in Vaniar station with number of hidden layer which caused minimum MAE error MAE (mg/l) error --------------------------------------------------------------------------------------------------------------Types of network MLP IDNN Input parameters Discharge TDS Discharge TDS Numbers of neural 14 3 12 12 Calibration 1186 2575 3114 1466 Numbers of neural 14 3 12 12 Validation 1114 2808 1382 1937

80000 TDS(mgr/l) 60000 40000 20000 0


1960 1965 1970 1975 1980 1985
Observed Forecasted

100000.00 80000.00
TDS(mgr/l)
Observed Forcasted

60000.00 40000.00 20000.00 0.00


1980 1982 1984 1986 1988 1990 1992 1994

Year

Year

Fig. 26: Results of prediction of IDNN network (Using 12 neurons in hidden layer) in Vaniar station using discharge parameter with 24 hours time delay in calibration stage t: interrupted time T: time series duration Obst observed parameter (as ex. TDS) 1=t=T Fort predicted parameter (as ex. TDS) 1=t=T Also, R is the correlation coefficient which is applied to degree of validity of predictions data. The relation is defined as follows (9) : 652

Fig. 27: Results of prediction of IDNN network (Using 12 neurons in hidden layer) in Vaniar station using TDS parameter with one month time delay h in validation stage
R=

n (x_x)(y_y) n (x_x) n (y_y)


2

(9)

In equation 9, x and y are means of x and y series. R shows relationship between the observed and predicted data. If relations are very strong R approaches one (9).

World Appl. Sci. J., 4 (5): 646-654, 2008


Table 5: R-Squared value between observed and prediction data in different networks with different input parameters R-squared value Type of networks MLP IDNN Input parameters discharge TDS discharge TDS
Observed Forcasted

-----------------------------------Validation 0.929 0.859 0.906 0.949 Calibration 0.909 0.622 0.706 0.891

step for 4 steps before (up to 5 days for flow and 5 months for TDS). The results of predictions of artificial Neural network using flow parameter with a 24 hour delay and TDS with one month delay will be followed respectively. The prediction graphs are fist presented for the models and the table of errors will be followed for calibration and verification stages. Figures 8 -15 show the results of predictions for different networks with different input parameters and considering the number of hidden layers. CONCLUSIONS In this study, MLP and IDNN artificial Neural network models were applied for prediction of water salinity in Achechay river basin (Vaniar station).IDNN results showed higher accuracy compared to MLP. In more than 50% of cases, both applied models predicted future salinity of water with high accuracy (above 80%). The results obtained from both models of Neural network showed their acceptable precision in prediction of salinity in the study area. The errors in these prediction models mainly originate from the shortness of time series used in calibration and verification stages. From the results of the studies it can be stated that using artificial Neural network for predicting the effect of flow and TDS parameters on salinity in the Basin of Apalachicola River can be considered as an effective option. the results of this study can be utilized in optimized management and planning of water resources of the study area, REFERENCES 1. Mortazavi, Vahid, 2004. Summary of studies on water resources of Achechayy basin. first Achechayy conference, Tabriz. Ghanbari, Ali, Plan of Achechayy salinity control. Ghanbari, Ali, 2004. Components of Achechayy plan. first Achechayy conference. Manhaj, Mohammadbagher, 1998. Computational intelligence (Vol I), principles of artificial neural networks. Amirkabir University. Manhaj, Mohammadbagher and Seyfipour, Navid, 1998. Computational intelligence (Vol II), application of artificial intelligence in control. Professor Hesabi Publications. ASCE Task Committee on Application of Artificial Neural Networks in Hydrology, 2000a. Artificial Neural Networks in Hydrology: Preliminary Concepts. Part I, J. Hydrologic Engrg., ASCE, 5 (2): 115-123.

30000 25000 20000 15000 10000 5000 0


1960 1965

TDS(mgr/l)

1970

Year

1975

1980

1985

Fig. 28: Results of prediction of IDNN network (Using 12 neurons in hidden layer) in Vaniar station using TDS parameter with one month time delay in calibration stage RESULTS As mentioned previously, the objective of this study is to determine workability of ANN in prediction of future salinity in Vaniar station in Achechay river basin (Vaniar dam), using discharge parameter for a 24hour time delay and TDS with one- month time delay. MLP and IDNN techniques were applied to the data. The data were collected by Water Authority of Azerbaijan Province in Iran and consist of thirty-year monthly mean data of TDS and hourly mean data of discharge. Last ten years data were used for validation of the models. MATLAB Software version 7/1 and cased of Neural Network were applied to the data. Figure 8 shows time series variations of TDS parameter data in Vaniar station. Regarding the theory of universal approximation, all the ANN applied in this study have relatively similar structures and the difference lies in the number of Neurals in hidden layer. Figure 9-20 show suitable number of hidden layers which gives the minimum error according to VE, RSME and MAE methods. Proper number of hidden layers for prediction of TDS with minimum error observed in the figures is summarized in Table 2-4. The optimimum delay in IDNN dynamic network is 4, in other words, in addition to the current time step, the signals are effective on the salinity of current time 653

2. 3. 4.

5.

6.

World Appl. Sci. J., 4 (5): 646-654, 2008

7.

8.

9.

ASCE Task Committee on Application of Artificial Neural Networks in Hydrology, 2000b. Artificial Neural Networks in Hydrology: Hydrologic Applications. Part II, J. Hydrologic Engrg., ASCE, 5 (2): 123-137. Hornik, K.M., M. Stinchcombe and H. White, 1989. Multilayer Feedforward Networks are Universal Approximators. Neural Networks, Vol: 2. Kennedy, J.B.and A.D. Neville, 1964. Basic statistical methods for engineers and scientists, Happer International Edition.

10. Wenrui Huang and Simon Foo, 2001. Neural network modeling of salinity variation in Apalachicola River. 11. Holger, R. Maier, Greame and C. Dandy, 1998. Use of artificial neural networks for modeling cyanobacteria Anabaena spp. In the Rivar Murray, South Australia. 12. Sezin Tokar A. and Momcilo Markus, 1999. Precipation. Runoff modeling using artificial netural networks and conceptual models.

654

You might also like