Modeling of Water Quality, Quantity, and SustainabilityView this Special Issue
Research Article | Open Access
Halil Karahan, Serdar Iplikci, Mutlu Yasar, Gurhan Gurarslan, "River Flow Estimation from Upstream Flow Records Using Support Vector Machines", Journal of Applied Mathematics, vol. 2014, Article ID 714213, 7 pages, 2014. https://doi.org/10.1155/2014/714213
River Flow Estimation from Upstream Flow Records Using Support Vector Machines
A novel architecture for flood routing model has been proposed and its efficiency is validated on several problems by employing support vector machines. The architecture is designed by including the inputs and observed and calculated outflows from the previous time step output. Whole observed data have been used for determining the model parameters in the heuristic methods given in the literature, which constitutes the major disadvantage of the existing approaches. Moreover, using the whole data for training may lead to overtraining problem that causes overfitting of estimations and data. Therefore, in this study, 60–90% of the data are randomly selected for training and then the remaining data are used for validation. In order to take the effects of the measurement errors into consideration, the data are corrupted by some additive noise. The results show that the proposed architecture improves the model performance under noisy and missing data conditions and that support vector machines can be powerful alternative in flood routing modeling.
Flood routing is important in the design of flood protection measures in order to estimate how the proposed measures will affect the behavior of flood waves in rivers so that adequate protection and economic solutions can be found . Flood routing models may be classified as either hydrologic or hydraulic. The hydraulic models solve the Saint-Venant equations by using a numerical method such as finite difference or finite element methods. A great deal of studies based on hydraulic models was developed by various researchers for flood routing [2–8]. These models require the measurement of flow depth and discharges. If detailed topographical surveys of channel cross-sections and roughness at close intervals are not available, hydraulic models are not suitable to serve the purpose of flood routing. In this case, hydrologic models may be used because they can cope with sparse spatial data .
Hydrologic models are based on the storage continuity equation and another equation which usually expresses the storage volume as a linear or nonlinear function of inflow and outflow discharges. The Muskingum method is the most widely used hydrologic flood routing method owing to its simplicity . Many researchers made studies on the parameter estimation of Muskingum flood routing models [11–14]. Performances of the Muskingum models depend on the selection of the appropriate storage equation and the optimal parameter estimation of these models. Even if the parameters of storage equation are determined as optimum, every flood event may not be adequately represented. In particular, this problem occurs in a flood event containing more than one peak and/or having substantially lateral flow.
In order to overcome this problem, data-driven flood routing models based on support vector machines (SVM) need to be developed. SVM is based on statistical learning theory and structural risk minimization principle and can solve any regression problems without getting stuck into local minima. They achieve the global solution by transforming the regression problem into a quadratic programming (QP) problem and then solving it by a QP solver. Finding global solution and possessing higher generalization capability constitute the major advantages of the SVM algorithms over other regression techniques . In the last decade, SVM-based algorithms have been developed very rapidly and have been applied to many areas [16, 17]. In particular, the SVM have been used for modeling and prediction purposes for solving some problems in the hydrology area of research and application [18–29].
The fact that the whole observed data has been used for determining the model parameters in the abovementioned heuristic methods constitutes the major disadvantage of these approaches. This may lead to overtraining problem that degrades generalization capability . In order to prevent overtraining, some part of the data is used for training and the remaining part is spared for validation. Thus, in this study, 60–90% of the data are randomly selected for training (for determining model parameters) and then the remaining unseen data are used for validation. Therefore, in this study, novel model architecture has been proposed and its efficiency is validated on several problems. This is organized as follows.
In the next section, first, the proposed training and prediction procedures are introduced and then the training algorithm is explained in detail for SVM in the following subsection. In Section 3, the three numerical applications are investigated to show the efficiency of the proposed method by comparing SVM to other methods when all data are used for training and also to each other when only some portion of the data is used for training. The simulation results are discussed in Section 4.
2. Model Development
In this study, we have employed SVM in flood routing modeling for prediction of its future behavior. For this purpose, as can be seen in Figure 1(a), an SVM model of the flood routing is obtained in the training phase by using a training set as given by where and are the measured input and output flow rates at time , respectively, is the time interval between the successive measurements, and is the number of training data. For sake of the simplicity, the data set can be represented more compactly as , where is the input data point in the input space and is the corresponding output value; that is,
In the modeling phase, to obtain a model that represents the relationship between the input and output data points is desired. The training data set is to be used to obtain an approximate model of the flood. Once the SVM model of the flood routing is obtained, then its future behavior can be predicted by the mechanism depicted in Figure 1(b), where the predicted output of the model is delayed by and then fed back to the model itself as the third input thereby making the model more realistic to predict the flood.
In this section, the -SVR algorithm, SVM regression algorithm used in this study, is described briefly. The primal form of an SVM regression model is given by (3), which is linear in a higher dimensional feature space .
Consider where is a vector in the feature space , is a mapping from the input space to the feature space, is the bias term, and is the inner product operation in the feature space. The SVM regression algorithm looks upon the regression problem as an optimization problem in dual space, where the model is given by where ’s are the coefficients of each training data point and is a kernel function. The kernel function handles the inner product in the feature space; that is, , and hence the explicit form of does not need to be known. In this study, we have used the radial basis kernel function given by where is the Euclidean norm and is the width parameter. In the model (4), a training point corresponding to a nonzero value is referred to as the support vector. The -SVR algorithm employs Vapnik’s -insensitive loss function given by and formulates the primal form of the regression problem as follows: subject to the constraints where ’s and ’s are slack variables, is the upper value of tolerable error for the output, and is a regularization parameter that provides a compromise between the model complexity and the degree of tolerance to the errors larger than . Dual form of the optimization problem becomes a quadratic programming (QP) problem as follows: subject to the constraints
Solution of the QP problem gives the optimum values of ’s and ’s. The value of in the model is determined as follows: the condition is satisfied for each support vector for which the condition holds. If is defined to be the new coefficient of for as , then we obtain an SVM model as given by (4). Furthermore, if the support vectors are considered only, then the model becomes where #SV stands for the number of support vectors in the model [19, 35] The SVM model is sparse in the sense that the whole training data are represented by only support vectors. The parameters of -SVR are the maximum tolerable error at the output, the regularization parameter , the number of training patterns , and the width parameter . The major advantage of the -SVR algorithm is that it allows for the determination of the maximum total training error beforehand by choosing a proper value.
3. Numerical Applications
In this study, we have tested modeling and prediction performance of the proposed SVM structure on three different flood problems. For each problem, we have gathered some artificial and real-world data for modeling purposes. In this comparative work, we have split our comparisons into two cases. In Case I, in order to have a basis for fair comparisons to other methods, all of the gathered data are used for only training of SVM structure. In Case II, only some portions, , of the data are used for training, while remaining data are spared for validation and then the SVM approach is compared to other models given in the literature. For both cases in the training phase, all variables in each data set are normalized to the interval and then an appropriate data set for training is formed. Afterwards, SVM model is obtained to give least possible training plus validation errors.
3.1. Application to Wilson Data 
Data sets reported by Wilson are known to present a nonlinear relationship between weighted discharge and storage and used extensively in the literature as a benchmark problem. The number of data in this example is 22. The comparison of the SVM to other methods with respect to the prediction performances for Example 1 is given in Table 1.
The Wilson flood data were modeled by Karahan et al. (2014) using a nonlinear Muskingum model incorporating lateral flow (NLMM-L) and SSE value was found as 9.823. Chu (2009) presented the combined application of fuzzy inference system (FIS) and Muskingum model in flood routing. The reported SSE value is 4.830 . More recently, Karahan et al. (2014) have proposed a variable-parameter nonlinear Muskingum model incorporating lateral flow with a weighted finite difference method [VPWFDM-L] and applied this model to Wilson data. The reported SSE value is 5.178 . When the SVM model is employed for the same flood data, the SSE value has been found as 0.056, which is much better than that of other methods.
3.2. Application to Viessman and Lewis Data 
This example is based on inflow and outflow hydrographs exhibiting linear characteristics and presents a relatively difficult prediction problem for flood routing, where there exist two successively active floods. The number of data in this example is 24.
Table 2 shows the comparison results numerically. It is obviously seen that the SVM method outperforms others in prediction of the flood dynamics, which can be attributed to the proposed training and prediction structures and also the generalization potentials of SVM approach.
As can be seen from Table 2, the SSE values are obtained as 73399.33 for the NLMM-L model, 26185 for the VPWFDM-L model, and 43.37 for the SVM model, respectively. It is observed from the results of Table 3 that the SSE value (0.253) obtained by the SVM model for the River Wyre data is better than those obtained when the LMM-L and NLMM-L models are used.
3.3. Application to River Wyre 
For the River Wyre data, the flood volume between the inflow and the outflow sections is 25 km, along which there are lateral flows that considerably contribute to the flood . Moreover, the input hydrograph has multiple peaks. The number of data in this example is 32.
In the literature, the River Wyre flood data were first modeled by O’Donnell (1985) using a linear Muskingum model incorporating lateral flow (LMM-L) and the SSE value was found as 468.840. Recently, Karahan et al. (2014) have applied NLMM-L model to River Wyre flood data and have reported the SSE value as 53.708. It is observed from the results that the SSE value (0.253) obtained by the SVM model for the River Wyre data is better than those obtained when the LMM-L and NLMM-L models are used.
3.4. Verification of Model Robustness
In Sections 3.1–3.3, the SVM models have been obtained by using whole data and then compared to other methods in the literature. The results have shown that there is good agreement between the predicted and measured outflows for the three examples under investigation. However, it is possible that there may be some erroneous and/or missing measurements in practical applications. In order to test the performance of the proposed SVM model under such conditions, input data have been corrupted by additive uniformly distributed noise with zero mean. The noisy data are obtained as [38, 39] where and stand for the noiseless and noisy input flow rates at time , respectively, represents the measurements errors that are distributed uniformly between −1 and 1, and is a noise level scalar between 0.0 and 0.1. In this study, various noise level conditions, namely, 0.01, 0.05, and 0.10, are considered and also it is assumed that some portions (10 to 40 percent) of the data are missing in order to investigate the effects of the missing data on the model performance. In order to get more reliable results, the tests have been performed at least 100 times for each case and then their average SSE values have been given in Table 4.
As can be seen from Table 4, only portion of data is used for training, while its remaining part is spared for validation. The test data are selected randomly out of the whole data set. It is observed from numerical results that the SVM method provides excellent prediction performance when there is no measurement noise () and the nearly whole data are used (). On the other hand, as the level of the measurement noise and the portion of the missing data are increased, the model performance decreases expectedly. Still, in the worst case ( and ) the proposed SVM method provides acceptable performance.
In this study, a novel architecture for flood routing model has been proposed and its efficiency is validated on three different flood routing problems by employing SVM approach. Proposed model is designed including the inputs and observed and calculated outflows from the previous time step output, thereby making the model more realistic. The SVM approach has been implemented to capture the dynamics of the investigated floods from the observed data. In this study, higher generalization capabilities have motivated us to employ the SVM structure. After completing the learning phase, the model has been performed to predict the routing outflows. The proposed model has also been compared to the different models in the literature.
The simulation results have revealed that when combined with the powerful modeling tools, such as SVM, the proposed architecture exhibits excellent modeling and prediction performances for flood routing problems under investigation. The results have also demonstrated that the proposed model provides better prediction performance than the ones existing in the literature when whole data are used for training. Furthermore, SVM approach has been employed when only some portions (60–90%) of the data are used for training, and it has been observed that SVM maintains its prediction performance up to an acceptable level even if only 60% of the data are used for training under noisy condition. Consequently, the proposed model possesses higher applicability potential in forecasting outflows with different inflow patterns and thus it can be employed for solving flood routing problems.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
- V. P. Singh and R. C. McCann, “Some notes on Muskingum method of flood routing,” Journal of Hydrology, vol. 48, no. 3-4, pp. 343–361, 1980.
- M. Amein, “An implicit method for natural flood routing,” Water Resources Research, vol. 4, no. 4, pp. 719–726, 1968.
- R. A. Baltzer and C. Lai, “Computer simulation of unsteady flows in waterway,” Journal of Hydraulic Division, vol. 94, no. 4, pp. 1083–1117, 1968.
- M. Amein and C. S. Fang, “Implicit flood routing in natural channels,” Journal of Hydraulic Research, vol. 96, no. 12, pp. 2481–2500, 1970.
- M. Amein and L. H. Chu, “Implicit numerical modeling of unsteady flows,” Journal of Hydraulic Division, vol. 101, no. 6, pp. 717–731, 1975.
- M. B. Abbott and J. A. Cunge, Engineering Applications of Computational Hydraulics, Marshfield, Pitman, NJ, USA, 1982.
- U.S. Army Corps of Engineering (USACE), HEC-RAS River Analysis System Hydraulic Reference Manual (Version 3.1), USACE-HEC, Davis, Calif, USA, 2002.
- Danish Hydrological Institute (DHI), User’s Manual and Technical References for MIKE 11 (Version 2003b), Danish Hydrological Institute (DHI), Hørsholm, Denmark, 2003.
- H. Karahan, G. Gurarslan, and Z. W. Geem, “Parameter estimation of the nonlinear muskingum flood routing model using a hybrid harmony search algorithm,” Journal of Hydrologic Engineering, vol. 18, no. 3, pp. 352–360, 2013.
- H. Karahan, “Predicting Muskingum flood routing parameters using spreadsheets,” Computer Applications in Engineering Education, vol. 20, no. 2, pp. 280–286, 2012.
- A. Aldama, “Least-squares parameter estimation for Muskingum flood routing,” Journal of Hydraulic Engineering, vol. 116, no. 4, pp. 580–586, 1990.
- A. Das, “Parameter estimation for Muskingum models,” Journal of Irrigation and Drainage Engineering, vol. 130, no. 2, pp. 140–147, 2004.
- S. Mohan, “Parameter estimation of nonlinear Muskingum models using genetic algorithm,” Journal of Hydraulic Engineering, vol. 123, no. 2, pp. 137–142, 1997.
- J. H. Kim, Z. W. Geem, and E. S. Kim, “Parameter estimation of the nonlinear Muskingum model using harmony search,” Journal of the American Water Resources Association, vol. 37, no. 5, pp. 1131–1138, 2001.
- V. N. Vapnik, Statistical Learning Theory, Adaptive and Learning Systems for Signal Processing, Communications, and Control, Wiley- Interscience, New York, NY, USA, 1998.
- N. Cristianini and J. S. Taylor, An Introduction to Support Vector Machines and Other Kernel-Based Learning Methods, Cambridge University Press, New York, NY, USA, 2000.
- B. Schölkopf, C. J. C. Burges, and A. J. Smola, Advances in Kernel Methods: Support Vector Learning, MIT Press, Cambridge, Mass, USA, 1999.
- M. Behzad, K. Asghari, M. Eazi, and M. Palhang, “Generalization performance of support vector machines and neural networks in runoff modeling,” Expert Systems with Applications, vol. 36, no. 4, pp. 7624–7629, 2009.
- X. Zhang, R. Srinivasan, and M. van Liew, “Approximating SWAT model using artificial neural network and support vector machine,” Journal of the American Water Resources Association, vol. 45, no. 2, pp. 460–474, 2009.
- G. F. Lin, Y. C. Chou, and M. C. Wu, “Typhoon flood forecasting using integrated two-stage support vector machine approach,” Journal of Hydrology, vol. 486, pp. 334–342, 2013.
- E. K. Kakaei Lafdani, A. M. Moghaddam Nia, and A. Ahmadi, “Daily suspended sediment load prediction using artificial neural networks and support vector machines,” Journal of Hydrology, vol. 478, pp. 50–62, 2013.
- Z.B. Yu, D. Liu, H.S. Lu, L. Xiang, and Y. H. Zhu, “A multi-layer soil moisture data assimilation using and ensemble particle filter,” Journal of Hydrology, vol. 475, pp. 53–64, 2012.
- O. Kisi, “Modeling discharge-suspended sediment relationship using least square support vector machine,” Journal of Hydrology, vol. 456-457, pp. 110–120, 2012.
- O. Kisi and M. Cimen, “A wavelet-support vector machine conjunction model for monthly streamflow forecasting,” Journal of Hydrology, vol. 399, no. 1-2, pp. 132–140, 2011.
- H. Yoon, S. C. Jun, Y. Hyun, G. O. Bae, and K.K. Lee, “A comparative study of artificial neural networks and support vector machines for predicting groundwater levels in a coastal aquifer,” Journal of Hydrology, vol. 396, pp. 128–138, 2011.
- S. T. Chen, P. S. Yu, and Y. H. Tang, “Statistical downscaling of daily precipitation using support vector machines and multivariate analysis,” Journal of Hydrology, vol. 385, no. 1–4, pp. 13–22, 2010.
- G.-F. Lin, G.-R. Chen, P.-Y. Huang, and Y.-C. Chou, “Support vector machine-based models for hourly reservoir inflow forecasting during typhoon-warning periods,” Journal of Hydrology, vol. 372, no. 1–4, pp. 17–29, 2009.
- S. Tripathi, V. V. Srinivas, and R. S. Nanjundiah, “Dowinscaling of precipitation for climate change scenarios: a support vector machine approach,” Journal of Hydrology, vol. 330, no. 3-4, pp. 621–640, 2006.
- T. Asefa, M. Kemblowski, M. McKee, and A. Khalil, “Multi-time scale stream flow predictions: the support vector machines approach,” Journal of Hydrology, vol. 318, no. 1–4, pp. 7–16, 2006.
- H. Karahan, G. Gurarslan, and Z. W. Geem, “A new nonlinear muskingum flood routing model incorporating lateral flow,” Engineering Optimization. In press, 2014.
- H. Karahan, “Discussion of “improved nonlinear Muskingum model with variable exponent parameter”,” Journal of Hydrologic Engineering, 2014.
- H.-J. Chu, “The Muskingum flood routing model using a neuro-fuzzy approach,” KSCE Journal of Civil Engineering, vol. 13, no. 5, pp. 371–376, 2009.
- T. O'Donnell, “A direct three-parameter Muskingum procedure incorporating lateral inflow.,” Hydrological Sciences Journal, vol. 30, no. 4, pp. 479–496, 1985.
- H. R. Maier and G. C. Dandy, “Neural networks for the prediction and forecasting of water resources variables: a review of modelling issues and applications,” Environmental Modelling & Software, vol. 15, no. 1, pp. 101–124, 2000.
- A. J. Smola and B. Schölkopf, “A tutorial on support vector regression,” NeuroCOLT Tech. Rep. NC-TR-98-030, Royal Holloway College, University of London, 1998.
- E. M. Wilson, Engineering Hydrology, MacMillan Education, Hampshire, UK, 1974.
- W. Viessman Jr. and G. L. Lewis, Introduction to Hydrology, Pearson Education Inc, Upper Saddle River, NJ, USA, 2003.
- H. Karahan and M. T. Ayvaz, “Simultaneous parameter identification of a heterogeneous aquifer system using artificial neural networks,” Hydrogeology Journal, vol. 16, no. 5, pp. 817–827, 2008.
- G. Gurarslan, Identification of groundwater contaminant source locations and release histories by using differential evolution algorithm [Ph. D. thesis], Department of Civil Engineering, Pamukkale University, Denizli, Turkey, 2011, (Turkish).
Copyright © 2014 Halil Karahan 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.