Advances in Artificial Intelligence

VolumeÂ 2011Â (2011), Article IDÂ 686258, 11 pages

http://dx.doi.org/10.1155/2011/686258

## Development of Artificial Neural-Network-Based Models for the Simulation of Spring Discharge

^{1}Department of Irrigation and Drainage Engineering, College of Technology, G. B. Pant University of Agriculture and Technology, Uttarakhand, Pantnagar-263 145, India^{2}Department of Applied Sciences and Humanities, ITM University, Gurgaon 122017, India

Received 3 January 2011; Accepted 2 May 2011

Academic Editor: MartinÂ Pelikan

Copyright Â© 2011 M. Mohan Raju et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

The present study demonstrates the application of artificial neural networks (ANNs) in predicting the weekly spring discharge. The study was based on the weekly spring discharge from a spring located near Ranichauri in Tehri Garhwal district of Uttarakhand, India. Five models were developed for predicting the spring discharge based on a weekly interval using rainfall, evaporation, temperature with a specified lag time. All models were developed both with one and two hidden layers. Each model was developed with many trials by selecting different network architectures and different number of hidden neurons; finally a best predicting model presented against each developed model. The models were trained with three different algorithms, that is, quick-propagation algorithm, batch backpropagation algorithm, and Levenberg-Marquardt algorithm using weekly data from 1999 to 2005. A best model for the simulation was selected from the three presented algorithms using the statistical criteria such as correlation coefficient (), determination coefficient, or Nash Sutcliff's efficiency (DC). Finally, optimized number of neurons were considered for the best model. Training and testing results revealed that the models were predicting the weekly spring discharge satisfactorily. Based on these criteria, ANN-based model results in better agreement for the computation of spring discharge. LMR models were also developed in the study, and they also gave good results, but, when compared with the ANN methodology, ANN resulted in better optimized values.

#### 1. Introduction

The process of discharge simulation from a spring is a very complex, highly nonlinear phenomenon having temporal and spatial variability. The weekly spring discharge modeling has a vital role in better management of the water resources management. Many models such as black box, conceptual, and physically-based models have been developed especially for rainfall, runoff, and sediment process. On the other hand, very few models are available for accurate estimation of discharge of spring, and, in many situations, simple tools such as linear theoretical models or black box models have been used with advantage. However, these models fail to represent the nonlinear process such as rainfall, runoff, and sediment yield [3]. The successful application of artificial intelligence techniques such as ANNs has added a new dimension to model such complex systems in recent years to solve various problems in hydrologic/hydraulic engineering and water resources engineering [1, 2]. A new dimensional development came in existence in the recent years for better prediction and model development, namely, hybrid modeling, such as ANFIS, ANN-Fuzzy logic, and ANN-GA [3]. Unlike mathematical models that require precise knowledge of all contributing variable, a trained artificial neural network can estimate process behavior. It is proven fact that neural nets have a strong generalization ability, which means that, once they have been properly trained, they are able to provide accurate results even for cases they have never seen before [4, 5].

The artificial neural network, a soft computing tool, basically a black-box model and has its own limitations [6]. The main advantage of the ANN approach over traditional methods is that it does not require the complex nature of the underlying process under consideration to be explicitly described in a mathematical form [7]. Other advantages of ANN over conventional models are discussed in [8]. Mathematically, an ANN can be treated as a universal approximator having an ability to learn from examples without explicit physics [1, 2, 9]. Such a model is easy to develop and yields satisfactory results when applied to complex systems which are poorly defined or implicitly understood. â€‰These are more tolerant to variable, incomplete, or ambiguous input data. The applications of ANNs in water engineering include the modeling rainfall-runoff-sediment process, forecasting of rainfall-runoff-sediment yield, river flow forecasting, reservoir inflow modeling and operation, setting up river-stage-discharge relationship, water-supply-system optimization, evapotranspiration process, draught forecasting, groundwater quality prediction, and groundwater remediation [7, 10â€“23].

#### 2. Artificial Neural Networks

Artificial neural networks are highly simplified mathematical models of biological neural networks having the ability to learn and provide meaningful solutions to the problems with high-level complexity and nonlinearity. The ANN approach is faster compared to its conventional techniques, robust in noisy environments, and can solve a wide range of problems. Due to these advantages, ANNs have been used in numerous real-time applications. The most commonly used neural networks in hydrology being three layered and four layered having input layer, where the input is fed to the network, hidden layer(s) where the data is processed, and output layer where the output will be presented Figure 1.

The processing elements in each layer are called neurons or nodes. The information flow and processing in the network is from the input layer to the hidden layer and from the hidden layer to the output layer. The number of neurons and hidden layers in the network is problem dependent and is decided by the trial and error method. A synaptic weight is assigned to each link to represent the relative connection strength of two nodes at both ends in predicting the input-output relationship. The output, of any node , is given as where is the input received at node , is the input connection pathway weight, is the total number inputs to node , and is the node threshold. Function is called an activation function which determines the response of a node to the total input signal that is received. The commonly used activation function is sigmoid transfer function and is given by

Sigmoid function is continuous and differentiable everywhere, and a nonlinear process can be mapped with it [1]. Backpropagation algorithm is mostly used in training of the feed-forward neural networks [2]. In this algorithm, each input pattern of the training dataset is passed through network from the input layer to the output layer. The network generated output is compared with the target output, and the error is computed as where is the component of the desired output/target , is the ANN generated output, is the number of output nodes, and is the number training patterns. This error will be propagated backward through each node, and correspondingly the connection weights will be updated.

#### 3. Study Area and Data

Study area is located near the College of Forestry and Hill Agriculture, Hill Campus Ranichauri of the G. B. Pant University of Agriculture and Technology, Pantnagar, in the *Tehri Garhwal* district of Uttarakhand state in India, as shown in Figure 2. The campus was established at *Ranichauri *in the *Tehri Garhwal* district of Uttarakhand state, with an MoU between the Government of India and the Government of Uttar Pradesh in 1972 (formally inaugurated in 1976). The main objective in the establishment of the college lies in generating and dissemination of cutting-edge technologies with state-of-the-art inputs in the areas of hill agriculture, horticulture, forestry, and allied areas specifically for hill-agroclimatic conditions. It also carries out programmes of human resource development, multidisciplinary researches, and technology transfer suitable for hilly areas. The hill campus has altitudinal expansion from 1600 to 2200 meters above sea level, overseeing the majestic snow-capped peaks of Himalayas. The state of Uttrakhand state in India comprises of two subregions, *Kumaon* and *Garhwal*, having 13 districts. The entire region is mountainous, except a few valleys and *tarai area *(area just adjacent to the foot hills of Himalayas), in the *Nainital*, *Dehradun*, and *Hardwar* districts. On account of topography, the region has a peculiar geographical feature and is blessed by very good land and water resources. Though the whole economy of the region is based on agriculture, the total cultivable land is only 14 percent of the total geographical area of the region, with a good potential in conservation and utilization of natural resources. Especially the hill region is very rich in natural resources particularly in forests, minerals, and surface water.

The present watershed of the study area drains into the Henval river in the *Tehri Garhwal* district of the Uttarakhand state, covering an area of 871â€‰ha (8.71â€‰km^{2}). It is located between 78Â°22â€˛28â€˛â€˛ and 78Â°24â€˛57â€˛â€˛E longitude and 30Â°17â€˛19â€˛â€˛ and 30Â°18â€˛52â€˛â€˛N latitude. The elevation varies from 960 to 2000â€‰m above mean sea level (MSL). The study spring is located at 78Â°24â€˛34â€˛â€˛E and 30Â°18â€˛47â€˛â€˛N at the elevation of 1844â€‰m above MSL in dense forest area. For the present study, the weekly data of spring discharge, rainfall, evaporation, temperature were collected for seven years from 1999 to 2005. Study area was tracked along with GPS, and the location (latitude and longitude) of the Hill campus spring was noted with the help of GPS. The same locations were marked on the map with GIS environment, which is shown in Figure 2. Spring layer was overlaid with DEM to get the height of natural springs above MSL. This spring had lesser catchment area as it was nearer to the watershed divide. This spring is located at 78Â°24â€˛34â€˛â€˛E and 30Â°18â€˛47â€˛â€˛N at the elevation of 1844â€‰m above MSL in dense forest area.

#### 4. Model Development and Methodology

The output from the model is spring discharge at the time step, . The spring discharge was mapped by considering in addition the current value of discharge and the discharge at previous time steps. Therefore, in addition to , other variables such as , , , , , , and , were also considered for training of ANN in the present study are given in Table 1. In the development of one hidden layer architecture, 239 weeks for training, 55 weeks for testing, and 55 weeks for validation were taken, and, in two hidden layer architecture development, 234 weeks for training, 54 weeks for testing, and 54 weeks for validation were taken for the best possible model selection.

In the present study feed-forward Quick-propagation, Batch backpropagation, and Levenberg-Marquardtâ€™s ANN models have been used for the simulation of the spring discharge. The input-output datasets were first normalized considering the maximum value of the series, and the reducing the individual variables, in the range of 0 to 1 to avoid the saturation effect, may be possible by using sigmoid activation function.

The sigmoid function was the activation function used in the present study, and constant quick propagation coefficient 1.75 and learning rate 0.8 were selected by different hit and trial methods in the quick propagation algorithm for possible better optimization. The weights were updated after presenting each pattern from the learning dataset, rather than once per iteration. In the Batch backpropagation algorithm, a constant learning rate (), 0.15 was used in the model development, and momentum rate () was used in the range of 0.6 to 0.9; moreover, local minima avoidance concept was used in the Levenberg-Marquardt algorithm.

The number of input nodes in the input layer was taken equal to the number of input variables. Since no guideline is yet available on the number of hidden nodes of the hidden layer (Vemuri, 1992) [9], these were initially tried from equal number of input nodes to double to that of input nodes (Hipel et al., 1994) [5]. However, corresponding to one output, only one node was taken in the output layer.

#### 5. Development of Linear Multiple Regression Models

In developing Linear Multiple Regression (LMR) models, the spring discharge at time , , is used as a criterion variable, and rain fall, evaporation, temperature, and spring discharge in the past are used as predictor variables. The LMR models can be represented as follows: where s represent the regression coefficients to be determined, s represent the rainfall, s represent the evaporation, s represent the temperature, s represent the spring discharge, and is the index representing time.

The developed regression modelsâ€™ description is as follows.Model: LMR-1:Model: LMR-2:

The graphical representation along with the corresponding scattered plots of developed LMR models are shown in Figures 6 and 7.

#### 6. Results and Discussion

It can be seen from Table 1 that correlation coefficient () is very high, that is, more than 93%,for all the ANN models during the training, testing, and validation phases, except ANN1, ANN6. There is no significant decrease in values during validation when compared with the training phase. The best performed models in statistic were ANN2 among one hidden layer models and ANN8 among two hidden layer models. The values for ANN2 are 0.990, 0.970, and 0.983 during training, testing, and validation, respectively. The increase in values during validation indicates the good generalization capability of the ANN model. The root mean square error for ANN2 is 7764.502â€‰lit/week and for ANN8 5472.556â€‰lit/week, which are significantly low and indicate the good generalization capability of the model. In the determination coefficient statistic, all the ANN models except ANN1 and ANN6 perform well. The DC values of the models are fairly high, that is, more than 92%, except during the training, testing, and validation period. In DC statistic, also the models ANN2 and ANN8 models perform the best. The DC values for ANN2 are 0.979, 0.920, and 0.964, and for ANN8 are 0.998, 0.962, and 0.960 during training, testing, and validation. There is not much decrease in DC values during validation; this also indicates the good-generalization capability of the model.

Hence, ANN2 and ANN8 are the best performance models for the study spring. Finally, the model ANN8 was selected on the basis of the overall performance for the spring discharge simulation for the current spring in the quick-propagation algorithm. It can also be seen from Tables 2 and 3 that the correlation coefficient () is very high, that is, around 95%, for most of the ANN models during the training, testing, and validation phases, except ANN1, ANN6 in both the batch backpropagation algorithm and Levenberg-Marquardt algorithm. There is no significant decrease in values during validation when compared with the training phase. The best performed models in statistic were ANN5 among one hidden layer models and ANN10 among two hidden layer models in Batch backpropagation algorithm, and, in Levenberg-Marquardt algorithm, ANN3 among one hidden layer and ANN10 among two hidden layers were the best performed models. The values of Batch backpropagation algorithm ANN models for ANN5 are 0.985, 0.958, and 0.989, for ANN10 are 0.986, 0.957, and 0.983 during training, testing, and validation; respectively, the values of Levenberg-Marquardt algorithm ANN models, for ANN3 are 0.990, 0.956, and 0.989, for ANN10 are 0.998, 0.962, and 0.900 during training, testing and validation, respectively. The increase in values during validation indicates the good generalization capability of the ANN model. In the determination coefficient statistic, all the ANN models except ANN1 and ANN6 perform well for the both batch backpropagation and Levenberg-Marquardtâ€™s algorithms. The DC values of the models are fairly high, that is, more than 90%, in all most all the models during the training, testing, and validation period except ANN1 and ANN6. In DC statistic, also the models ANN5 and ANN10 in batch backpropagation algorithm, ANN3 and ANN10 in Levenberg-Marquardt algorithm perform the best. The DC values in batch backpropagation algorithm for ANN5 are 0.969, 0.901, and 0.976 and for ANN10 are 0.971, 0.907, and 0.966 during training, testing, and validation, in Levenberg-Marquardtâ€™s algorithm for ANN3 are 0.979, 0.907, and 0.978 and for ANN10, 0.997, 0.925, and 0.937 during training, testing, and validation. There is not much decrease in DC values during validation; this also indicates the good generalization capability of the model. Hence, ANN5 and ANN10 are the best performance models in batch backpropagation algorithm, and ANN3, ANN10 are the best performance models in Levenberg-Marquardtâ€™s algorithm out all the models presented for the study spring. Finally, the model ANN5 (batch backpropagation algorithm) and ANN3 (Levenberg-Marquardt algorithm) were selected on the basis of the overall performance as best models Figures 4 and 5.

The aim of the current study is to present the representative algorithm, with a particular ANN model for the spring discharge simulation for the current spring; in this line of context, all the presented models from the three algorithm are representative for the current spring discharge simulation, but the performance of the model ANN8 with quick-propagation algorithm is quiet good amongst all the best presented models. Hence, finally, the ANN8 model with quick-propagation algorithm is selected for the simulation of spring discharge in the study.

The comparative plots presented for the observed and estimated spring discharges and their corresponding scatter plots for the best representative model for the study location during training, testing, and validation in Figures 3, 4, and 5. It is observed from the presented figures that there is a very little mismatch between the observed and estimated spring discharges during all the three phases. Scatter plots also show a good correlation and regression values and no much shift from the ideal line.

#### 7. Comparison of the Best ANN Models with LMR Models

Table 4 gives comparison of performance of the best five ANN models with Linear Multiple Regression (LMR) models. The performance indicators throughout the study are correlation coefficient (), coefficient of efficiency (). In the Tables 1, 2, and 3 the Correlation Coefficient of ANN models varies from 90.0% to as high as 99.8% for the mixed data (training, testing, and validation), whereas the Correlation Coefficient for LMR models varies from 97.0% to as high as 97.6%. Coefficient of Efficiency for ANN models varies from 90.1% to as high as 99.8%, while the same for the LMR models varies from 94.1% to as high as 94.8%. By the comparison made in Table 4, it is clear that the performance of ANN models are better than that of LMR models for spring discharge.

#### References

- ASCE Task Committee on Application of Artificial Neural Networks in Hydrology, â€śArtificial neural networks in hydrology. I: pre-liminary concepts,â€ť
*Journal of Hydrologic Engineering, ASCE*, vol. 5, no. 2, pp. 115â€“123, 2000. View at Google Scholar - ASCE Task Committee on Application of Artificial Neural Networks in Hydrology, â€śArtificial neural networks in hydrology. II: hydrologic applications,â€ť
*Journal of Hydrologic Engineering, ASCE*, vol. 5, no. 2, pp. 124â€“137, 2000. View at Publisher Â· View at Google Scholar Â· View at Scopus - D. A. K. Fernando and A. W. Jayawardena, â€śRunoff forecasting using RBF networks with OLS algorithm,â€ť
*Journal of Hydrologic Engineering, ASCE*, vol. 3, no. 3, pp. 203â€“209, 1998. View at Google Scholar - R. Hecht-Nielsen,
*Neurocomputing*, Addison-Wesley, New York, NY, USA, 1991. - K. W. Hipel, A. Ian, U. S. Pann, and V. P. Singh,
*Stochastic and Statistical Methods in Hydrology and Environmental Engineering*, The Series Analysis in Hydrology and Environmental Engineering, Kluwer Academic, Dodrecht, The Netherlands, 1994. - Kuo-Lin Hsu, H. V. Gupta, and S. Sorooshian, â€śArtificial neural network modeling of the rainfall-runoff process,â€ť
*Water Resources Research*, vol. 31, no. 10, pp. 2517â€“2530, 1995. View at Publisher Â· View at Google Scholar - A. Sarkar, R. Kumar, R. D. Singh, G. Thakur, and S. K. Jain, â€śSediment-discharge modeling in a river using artificial neural networks,â€ť in
*Proceedings of the International Conference ICON—HERP*, IIT Roorkee, India, October 2004. - M. N. French, W. F. Krajewski, and R. R. Cuykendall, â€śRainfall forecasting in space and time using a neural network,â€ť
*Journal of Hydrology*, vol. 137, pp. 1â€“31, 1992. View at Google Scholar - V. R. Vemuri,
*Artificial Neural Networks: Concepts and Control Application*, IEEE Computer Society Press, Los Alamitos, CA, USA, 1992. - N. Karunanithi, W. J. Grenney, D. Whitley, and K. Bovee, â€śNeural networks for river flow prediction,â€ť
*Journal of Computing in Civil Engineering, ASCE*, vol. 8, no. 2, pp. 201â€“220, 1994. View at Google Scholar Â· View at Scopus - T. W. Kim and J. B. Valdes, â€śNonlinear model for drought forecasting based on a conjunction of wavelet transforms and neural networks,â€ť
*Journal of Hydrologic Engineering, ASCE*, vol. 8, no. 6, pp. 319â€“328, 2003. View at Publisher Â· View at Google Scholar Â· View at Scopus - O. Kisi, â€śDevelopment of streamflow-suspended sediment rating curve using a range dependent neural network,â€ť
*International Journal of Science & Technology*, vol. 2, no. 1, pp. 49â€“61, 2007. View at Google Scholar - N. S. Raghuwanshi, R. Singh, and L. S. Reddy, â€śRunoff and sediment yield modeling using artificial neural networks: Upper Siwane River, India,â€ť
*Journal of Hydrologic Engineering, ASCE*, vol. 11, no. 1, pp. 71â€“79, 2006. View at Publisher Â· View at Google Scholar Â· View at Scopus - R. K. Rai and B. S. Mathur, â€śEvent-based sediment yield modeling using artificial neural network,â€ť
*Water Resources Management*, vol. 22, no. 4, pp. 423â€“441, 2008. View at Publisher Â· View at Google Scholar Â· View at Scopus - M. M. Raju,
*Runoff-sediment modeling using artificial neural networks*, M. Tech. thesis, The G. B. Pant University of Agriculture & Technology, Uttarakhand, India. - M. P. Rajurkar, U. C. Kothyari, and U. C. Chaube, â€śArtificial neural networks for daily rainfall-runoff modelling,â€ť
*Hydrological Sciences Journal*, vol. 47, no. 6, pp. 865â€“877, 2002. View at Google Scholar Â· View at Scopus - M. P. Rajurkar, U. C. Kothyari, and U. C. Chaube, â€śModeling of the daily rainfall-runoff relationship with artificial neural network,â€ť
*Journal of Hydrology*, vol. 285, pp. 96â€“113, 2004. View at Publisher Â· View at Google Scholar Â· View at Scopus - S. Sajikumar and B. S. Thandaveswara, â€śA non-linear rainfall-runoff model using an artificial neural network,â€ť
*Journal of Hydrology*, vol. 216, no. 1-2, pp. 32â€“55, 1999. View at Publisher Â· View at Google Scholar Â· View at Scopus - A. Sarkar, â€śReal time flood forcasting using artificial neural networks in an Indian river,â€ť in
*Proceedings of the International Conference on Monitoring, Prediction and Mitigation of Water Related Disasters*, Kyoto, Japan, January 2005. - J. Smith and R. N. Eli, â€śNeural-network models of rainfall-runoff process,â€ť
*Journal of Water Resources Planning & Management, ASCE*, vol. 121, no. 6, pp. 499â€“508, 1995. View at Google Scholar - K. Thirumalaiah and M. C. Deo, â€śHydrological forecasting using neural networks,â€ť
*Journal of Hydrologic Engineering, ASCE*, vol. 5, no. 2, pp. 180â€“189, 2000. View at Publisher Â· View at Google Scholar - A. S. Tokar and P. A. Johnson, â€śRainfall-runoff modeling using artificial neural networks,â€ť
*Journal of Hydrologic Engineering, ASCE*, vol. 4, no. 3, pp. 232â€“239, 1999. View at Publisher Â· View at Google Scholar - A. S. Tokar and M. Markus, â€śPrecipitation-runoff modeling using artificial neural networks and conceptual models,â€ť
*Journal of Hydrologic Engineering, ASCE*, vol. 5, no. 2, pp. 156â€“161, 2000. View at Publisher Â· View at Google Scholar