Next Article in Journal
Roughening in Nonlinear Surface Growth Model
Next Article in Special Issue
Performance-Based Reliability Estimates for Highway Bridges Considering Previous Inspection Data
Previous Article in Journal
Dual Thermal-/Electrical-Responsive Luminescent ‘Smart’ Window
Previous Article in Special Issue
The Effects of Tangential Ground–Lining Interaction on Segmental Lining Behavior Using the Beam-Spring Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Data Driven Water Surface Elevation Forecasting Model with Hybrid Activation Function—A Case Study for Hangang River, South Korea

1
Department of Civil Engineering, Hongik University, Seoul 05066, Korea
2
Department of Civil and Environmental Engineering, Sejong University, Seoul 05006, Korea
*
Author to whom correspondence should be addressed.
Appl. Sci. 2020, 10(4), 1424; https://doi.org/10.3390/app10041424
Submission received: 27 September 2019 / Revised: 19 January 2020 / Accepted: 5 February 2020 / Published: 20 February 2020

Abstract

:
To date, physical, numerical or data-driven models have been used to forecast water surface elevation in rivers for specific times or locations in the literature. Recently, the trend of forecasting water surface elevation changed from physical and numerical models to data-driven models with the help of the development of big data processing technology and fast simulating time of data-driven models. In this study, a data-driven model with Long Short-Term Memory (LSTM) was developed using TensorFlow, one of the famous deep learning frameworks and forecasting of water surface elevation affected tidal river was performed in Hangang River, Korea. From many types of field measurements, the hourly hydrological data, precipitation, outlet discharge of dam upstream and tidal levels were selected as the input dataset through a t-test and a p-value. In particular, the hybrid activation function was proposed to alleviate the vanishing gradient and dying neuron problems generally issued in the application of the activation function. The model showed that the root mean square error (RMSE) and peak error (PE) decreased by 0.22–0.25 m and 0.11–0.21 m, respectively, and the Nash-Sutcliffe efficiency (NSE) increased up to 79.3%–97.0% compared with the single activation functions. For w 1 = 0.6 and w 2 = 0.4 in the hybrid activation function, the improvement of accuracy and the enhancement of the application range of the leading time interval were obtained through a sensitivity analysis. Moreover, the hybrid activation function showed a good performance. The forecasting results provided by this model can be used as reference data for the establishment of the emergency action plan (EAP).

1. Introduction

Recently, flood damage has increased at riversides because the water surface elevation is rising rapidly as the occurrence of extreme flooding has increased due to global warming and climate change [1,2]. As an example of flood damage to riversides, flooding occurred in roads, parks and parking lots and caused damage to life and property [3]. Therefore, it was necessary to immediately forecast and alert about the possibility of the occurrence of flood damage on riversides caused by flash floods.
For forecasting flooding that occurs along a riverside, many countries have provided flood forecasting system services such as the Advanced Hydrologic Prediction Service (AHPS in United States), and the Evaluation et Suivi des Pluies en Agglomération pour Devancer I’Alerte (ESPADA in France) by using hydrological data [4]. In general, the precipitation data have been used for a precipitation-runoff model and the water surface elevation in rivers has been forecasted sequentially. As the final step, the water surface elevation of the river has been used to determine whether flood damage occurs at riverside [5]. This is a standardized flood forecasting process around the world, including Korea. Therefore, accurate forecasting of the water surface elevation has been most significant to forecast a flood event. There are typically two methods for forecasting the water surface elevation of a river. The first one is based on a numerical model which can analyze various differential equations such as Navier–Stokes equations and calculates the water surface elevation by using geometry data of a river, discharge and precipitation, etc. However, a numerical analysis by computational fluid dynamics (CFD) has provided accurate and sophisticated forecasting results, whereas it is difficult to acquire related essential data such as geometry data before a simulation and a simulation takes more time when 2D or 3D results are expected. Therefore, the numerical model had a limitation in forecasting and warning floods within limited time [6]. Recently, the forecasting of water surface elevation was performed by using a data-driven model based on the statistical relationship between the input data and the output result as a large amount of data has been collected and big data processing technology has been developed. Examples of data-driven models applied in the forecasting of water surface elevation are statistical models which include linear regression, autoregressive moving average (ARMA) and autoregressive integrated moving average (ARIMA) models and machine learning (ML) models such as artificial neural networks (ANN) [7]. In addition, the ML models were good at performance for forecasting time series data such as water surface elevation compared with other models [8]. In addition, the data-driven model using the artificial neural network has the advantage because it is easy to acquire data when compared to physical models and the time required for forecasting water surface elevation was short, although the ANN had problems such as dependence on the state of the input data, unexplained behavior of the network, etc. Therefore, the data-driven model using ANN was developed to forecast the water surface elevation in this study. Various artificial neural network models were applied for forecasting the water surface elevation. The long short-term memory (LSTM) showed a good performance for forecasting the water surface elevation. However, the LSTM tends to under-forecast at a high water-surface elevation and has a limitation in that the accuracy of forecasting decreases as the leading time becomes longer. Nevertheless, research which solved these problems have been insufficient. In general, the activation functions used in LSTM include the sigmoid function, the hyperbolic tangent function and the rectified linear unit function, but each activation function causes problems such as a vanishing gradient and a dying neuron [9,10,11]. Therefore, in this study, a hybrid activation function in the form of a combination of the hyperbolic tangent function and the rectified linear unit function with a weighting factor was proposed to improve the forecasting accuracy at a high water surface elevation and for a long leading forecasting time. The LSTM in Tensorflow, a deep-learning open-source software library provided by Google, was applied and the hourly hydrological data from 2009 to 2018 were used to forecast the water surface elevation in Hangang River, Korea. Finally, the hybrid activation function was applied to evaluate whether the accuracy of forecasting improved at a high water surface elevation the range of leading time was reviewed for highly accurate forecasting.

2. Literature Review

2.1. Numerical Model

Various studies were performed to forecast the water surface elevation using numerical model based on physical laws. Rinaldi et al. [12] applied the flood event and forecasted the water surface elevation of the Cecina river to simulate the levee breach by using the Delft 3D model. Teng et al. [13] introduced various one-, two- and three-dimensional numerical models for flood modeling through forecasting water surface elevation and compared the advantages and disadvantages of each model. In Korea, Lee and Lee [14] reviewed the change of water surface elevation in the Hangang River due to change of tidal level and Paldang dam outlet discharge by using FLDWAV, which is a one-dimensional unsteady flow model. Song et al. [15] developed a numerical model that discretized the shallow water equation to analyze the backwater effect according to the discharge and forecasted the change of the water surface elevation in the river. However, the forecasting water surface elevation using these numerical models had some limitations, such as difficulty in acquiring geometry data and the longer simulation time. Thus, as an alternative approach, various artificial neural network models were used to forecast the water surface elevation.

2.2. Artificial Neural Network Model

Recently, forecasting the water surface elevation using the artificial neural network models was attempted to solve the problems in a physical or a numerical model. For instant, Yeo et al. [16] performed a short-term forecasting of the water surface elevation using the ANN model for the water surface elevation station in the Gamcheon Basin. Chen et al. [17] constructed an ANN-based forecasting model in the river and reviewed the applicability of the model. Hidayat et al. [18] verified the accuracy of the forecasting model by constructing an ANN model for the Mankam River in Indonesia and used tributary water surface elevation and tidal level to construct a real-time forecasting system. However, the ANN model did not consider the past data in learning the data. Thus, the recent research trend about forecasting water surface elevation using artificial neural network changed from ANN, recurrent neural network (RNN) models to long short-term memory (LSTM). Coulibaly and Anctil [19] confirmed that the RNN model derived effective real-time forecasting results by applying the RNN model to forecast the short-term discharge and reservoir level in Gondo aquifer, Burkina Faso. Supharatid [20] used the Multi-Layer Neural Network (MNN) to forecast the tidal level in the Chao Phraya River estuary, Thailand, and generated a relationship curve between water surface elevation and discharge in the tidal stream by using the tidal level. Yoo et al. [21] forecasted the water surface elevation in Hangang River and compared the forecasting accuracy of each model by applying ANN, RNN and a nonlinear autoregressive network with the exogenous (NARX) model. Thus, they confirmed that the NARX neural network model was most suitable for forecasting water surface elevation by analyzing the error of the forecasting result. Zhang et al. [22] confirmed that the LSTM is superior to the previous feed-forward neural network (FFNN) model in predicting water surface elevation over a long-term period. Tran and Song [23] used the RNN, RNN-BPTT, and LSTM to perform water surface elevation forecasting of the Trinity River in Texas, USA, and showed that the LSTM had a good performance for forecasting the water surface elevation. Jung et al. [24] used the LSTM to forecast the upstream water surface elevation in the Geumgang river basin, Korea. The accurate forecasting was performed for the entire water surface elevation. However, the forecasting result was underestimated at a high water surface elevation. Jung et al. [25] forecasted the water surface elevation of the Jamsu bridge in Hangang River, Korea, using the LSTM and confirmed that the forecasting accuracy of the model decreased as the forecasting leading time was longer. Through the sound results from the research mentioned above, the LSTM was chosen in this study. Furthermore, the hybrid activation function was proposed to resolve the underestimation at a high water surface elevation and improve the accuracy of forecasting in longer leading times.

3. Methodology

3.1. Long Short-Term Memory Model

The LSTM was proposed by Hochreiter and Schmidhuber to solve the problems of optimization hurdle and vanishing gradient in the RNN model. The problems of the optimization hurdle and the vanishing gradient were a difficulty found in training artificial neural networks with gradient-based learning methods and backpropagation. The gradient is vanishingly small, effectively preventing the weight from changing its value. Moreover, these problems completely stop the neural network from training. To make matters worse, this occurred frequently, especially in long-time series data. Therefore, the LSTM could be applied to forecast long-time series data because of its efficiency in identifying long-term dependence over time and this has been studied in various fields [26,27].
The main elements of LSTM are memory-moving cells, which can maintain the state over time and three gates that control the transfer of data in and out of cells, unlike the RNN model [28]. The LSTM applies the concept of a cell to update the state of a specific time ( h t ) and determines whether to update the internal information or not by using the input data and the state so far. The types of gates for controlling data transfer of the cell are: a forget gate ( f t ), an input gate ( i t ) and an output gate ( o t ).
First the forget gate ( f t ) applies the output of the previous cell ( h t 1 ) and the current input data ( x t ) to the sigmoid activation function to obtain a value between 0 and 1 and determines whether to maintain or remove the input information. This can be shown in Equation (1):
f t = σ ( W f · [ h t 1 , x t ] + b f )
where σ is the sigmoid activation function, W f is the weight of the forget gate, and b f is the bias of the forget gate.
The second the input gate ( i t ) decides which input information is stored in the cell and which information is updated by using the sigmoid activation function. The input gate also generates a candidate cell ( N t ) which is used when updating a new cell state by using the hyperbolic tangent activation function. The candidate cell is expressed through the following equations:
i t = σ ( W i · [ h t 1 , x t ] + b i )
N t = t a n h ( W n · [ h t 1 , x t ] + b n )
where W i , and   W n denote the weights of the input gate and the candidate cell, respectively, b i ,   b n denote the bias of the input gate and the candidate cell, respectively.
Next, the current cell state ( C t ) is updated by combining the previous cell state ( C t 1 ) and the candidate cell ( N t ), as shown in Equation (4):
C t = f t · C t 1 + i t · N t
The output gate ( o t ) determines which part of the cell state is output by using the sigmoid activation function, as shown in Equation (5) below. Finally, the hyperbolic tangent activation function is used to update the state of a specific time ( h t ) by multiplying it with the activated cell state ( C t ).
o t = σ ( W o · [ h t 1 , x t ] + b o )
h t = o t · tan h ( C t )
where W o is the weight of the output gate and b o is the bias of the output gate.
Previous studies have shown that the LSTM could be used to accurately forecast water surface elevation [25]. However, the water surface elevation is under-forecasted at the high water surface elevation conditions because the hyperbolic tangent activation function (value range from −1 to 1) was basically used when multiplying the output gate and the cell state in the structure of LSTM. Thus, the hyperbolic tangent activation function should be changed another activation function to solve under-forecasting at the high water surface elevation conditions. In general, activation functions include linear and nonlinear functions. The linear function changes by a constant multiple of the input and the form of the linear function is a straight line. However, the use of a linear function as an activation function is not an advantage of the neural network. On the other hand, the non-linear functions have two or more straight or curved forms and the typical nonlinear functions used in neural network are the sigmoid function, the hyperbolic tangent function, the rectified linear unit (ReLU) function, etc. However, the use of an existing activation function, such as the hyperbolic tangent function and the ReLU function, also causes vanishing gradient problems and dying neuron problems in error back propagation, leading to under-forecasting or over-forecasting results [9,10,11]. Therefore, the activation function of the LSTM needed to be changed from the hyperbolic tangent function to a new type of activation function to accurately forecast the water surface elevation in high water surface elevation conditions.

3.2. Hybrid Activation Function

The activation function is used to determine the activation and deactivation of output data when a signal of input data is received in the neural network structure. It is important to select an activation function that is suitable for the purpose of the study because the results are dependent on which activation function is used. In general, activation functions include linear and nonlinear functions. The linear function changes by a constant multiple of the input and the form of the linear function is a straight line. However, the use of the linear function as an activation function is not an advantage of the neural network. On the other hand, the non-linear functions have two or more straight or curved forms and typical nonlinear functions used in neural network are the sigmoid function, the hyperbolic tangent function, the rectified linear unit (ReLU) function, etc. The sigmoid function has the feature of a fast learning speed. In addition, it has a value of 0 to 1 in the range of to . The form of the sigmoid function is shown in Equation (7):
σ ( x ) = 1 1 + e x
σ ( x ) = σ ( x ) ( 1 σ ( x ) )
However, x has a value close to 0 in the range to in the derivative form of the sigmoid function and it causes vanishing gradient problems in error back propagation [29].
The hyperbolic tangent function can be expressed as the ratio of the hyperbolic sine function and the hyperbolic cosine function or as the ratio of the sum and difference of the two exponential functions. The form of the hyperbolic tangent function is shown in Equation (9):
t a n h ( x ) = s i n h ( x ) c o s h ( x ) = e x e x e x + e x
t a n h ( x ) = 1 t a n h 2 ( x )
The hyperbolic tangent function is like the sigmoid function, it has a value of −1 to 1 in the range to . However, the hyperbolic tangent function also has a value close to 0 when x is and in the derivative form which causes a problem of vanishing gradient during back propagation [30].
The rectified linear unit (ReLU) function was first introduced by Hahnloser et al. [28] and was used as an activation function in neural network model. The ReLU function changes its form of function, depending on the range of x . The ReLU function is shown in Equation (11):
f ( x ) = { 0                                 i f       x   < 0 x                                 i f       x   0
f ( x ) = { 0                                 i f       x   < 0 1                                 i f       x   0
The ReLU has a value of 0 when x is less than 0, and f ( x ) =   x when x is greater than 0, as shown from the above function equation. However, the ReLU function has a dying neuron problem because f ( x ) always has a value of zero when the value of x is less than zero. Moreover, it has the limitation of overfitting the results [30].
In this study, the hybrid activation function was proposed to solve the problems of general activation functions such as the vanishing gradient problem, the dying neuron problem, etc. The hybrid activation function is composed of a hyperbolic tangent function and a rectified linear unit function. The form of the hybrid activation function is as follows:
f ( x ) = w 1 R e L U ( x ) + w 2 t a n h ( x )
f ( x ) = {   w 1 + w 2 ( 1 t a n h 2 ( x ) )                                 i f       x   < 0 w 2 ( 1 t a n h 2 ( x ) )                                                     i f       x   0
where w 1 and w 2 are weights, and each sum of weights is one ( i n w i = 1.0 ). As the weights ( w 1 and w 2 ) change, the range of the hybrid activation function occupies the hatched part of the figure (see Figure 1).

3.3. Criteria for Comparison of Model Performance

In this study, the forecasting accuracy of model was compared through a statistical analysis of the forecasting results after learning the input data through the flood forecasting model. The root mean square error (RMSE) and Nash-Sutcliffe efficiency (NSE) were used as indexes for scrutinizing the accuracy of the model. Moreover, the peak error (PE) was also used to evaluate the performance of model. The error and coefficient calculation formulas are as follows [31]:
R M S E = i = 1 n ( O i P i ) 2 n
NSE = ( 1 i = 1 n ( O i P i ) 2 i = 1 n ( O i O ¯ i ) 2 ) × 100
PE = ( O i , m a x P i )
where O i and P i are the observed water surface elevation and the forecasting water surface elevation for time t , respectively, O ¯ i is the average value of the observed water surface elevation, O i , m a x is the maximum value of the observed water surface elevation, i is the i-th observed dada or i-th forecasting results and n is the total number of observed data.
In the case of RMSE and PE, the closer the value is to zero, the better the forecasting value and the observed value are matched. When the forecasting value and the observed value are well matched, the value of NSE approaches 1.

3.4. Autocorrelation Coefficient (AC) and Partial Autocorrelation Coefficient (PAC)

The successive series of observations may be correlated with each other. Thus, the index for determining the linear relationship between the lagged values of the time series includes the autocorrelation coefficient and the partial autocorrelation coefficient. The autocorrelation coefficient is an index of the correlation between the data, y t and y t + k for a lag time t . The coefficient calculation formula is as follows [32]:
r k = t = 1 n k ( y t y ¯ ) ( y t + k y ¯ ) t = 1 n ( y t y ¯ ) 2
where k is the number of autocorrelations in the function, n is the number of observations in the series and y ¯ is the mean value.
The partial autocorrelation coefficient is an index of the correlation between data, y t and y t + k which excludes influence from observations with any lag time other than time t . The coefficient calculation formula is as follows:
p k , k = r k j = 1 k 1 p k 1 , j r k j 1 j = 1 k 1 p k 1 , j r j
where p k , j = p k 1 . j p k , k p k 1 , k j , k is the number of autocorrelations in the function.
In general, if the autocorrelation coefficients are persistently large. This indicates that the time series is probably non-stationary. Therefore, the concept of a 95% confidence interval which assumes that it is not different from zero within a 95% confidence interval, was used in autocorrelation and partial autocorrelation. The 95% confidence interval is calculated as follows:
95 %   C I = ± 1.96 1 n
where CI is the confidence interval and the value of 1.96 represents the area under the normal curve.
The autocorrelation coefficient (AC) and partial autocorrelation coefficient (PAC) are widely used in statistics and econometrics, and in time series analysis by using the ARIMA model. For example, there are analyses of the Computer I/O pattern, forecasting of water quality (water temperature and concentration of dissolved oxygen), forecasting of supply and demand about electricity, etc. [33,34,35].

4. Study Area and Data Selection

4.1. Study Area

The Hangang River basin is located in the central part of the Korean Peninsula with a north latitude of 36°30′ to 38°55′ and an east longitude of 126°24′ to 129°02′. The basin area is 25,954 km2, and the length of the river is 494 km, accounting for about 23% of South Korea’s total land area. In this study, the study section was approximately 91.35 km from Paldang dam to the West sea (see Figure 2). The 12 parks and 27 bridges are in the downstream of Paldang dam. In addition, the Hangang River has no estuary banks, so it is affected by the tide. In addition, forecasting the water surface elevation is difficult because it is a tidal river.

4.2. Input Data

The hybrid activation function was proposed to forecast the water surface elevation, which is an input data with time series characteristics in this study. The purpose of this study was to evaluate the performance of the forecasting model based on the use of the hybrid activation function. Therefore, the type of input data, quantity, and correlation of input data to be used for forecasting the water surface elevation were considered. Yoo et al. [21] have investigated the accuracy of forecasting according to a combination of input datasets in Hangang River. They found that the combination of precipitation, outlet discharge of dam, water surface elevation and tidal level showed a good performance of forecasting water surface elevation in view of forecasting accuracy. Therefore, we also applied the same input data as that previous study to forecast the water surface elevation in Hangang River. Therefore, the input data used for forecasting the water surface elevation are precipitation (① in Figure 2), outlet discharge of Paldang dam (② in Figure 2), the water surface elevation of Hangang River bridge (③ in Figure 2), the tidal level of Incheon (④ in Figure 2), wind speed (① in Figure 2) and the concentration of dissolved oxygen (③ in Figure 2). The observed data for 10 years (from 2009 to 2018) on an hourly basis from the Korea meteorological administration, the Hangang River flood control center, and the Korea hydrographic and oceanographic agency, Water Environment Information System, respectively, were used. The location of the station and the retention periods of the collected data in this study are presented in Table 1 and the units of observed data are as follows. The unit of precipitation is millimeters, the unit of outlet discharge is cubic meters per second, the unit of water surface elevation is meters, the unit of tidal level is centimeters, the unit of wind speed is meters per second, and the concentration of dissolved oxygen is milligrams per litter.

4.2.1. Preprocessing of Data

The collected data have a missing value and outliers due to a malfunction of the measuring instruments, crosstalk in the radio wave path and changes in the measurement points. Thus, preprocessing of the input data was required to improve the accuracy of the forecasting model for this study. The outliers and the missing value of observed data were corrected and interpolated according to the article 14 of the installation environment, maintenance, and management of hydrological survey facilities and the quality control standard for hydrological data [36]. The interpolation and correction methods are summarized in Table 2.
The proposed method was used to correct and interpolate outliers and missing values corresponding to about 1% of the total data. Most of the outliers and missing values of hydrology data used in this study occurred in the non-flood season which was not considered in this study.

4.2.2. t-test and p-value

The t-test analysis was performed by classifying all the input data according to whether flood damage had occurred at the riverside or not and the p-value was derived to determine whether the collected data are the main factors for forecasting the water surface elevation. The t-test analysis is a statistical technique needed to determine whether the difference in mean value between two groups is statistically significant. The following assumptions must be satisfied in the t-test analysis.
Firstly, the data should be continuous numbers with equal intervals (identical interval and continuity). Secondly, the two groups must be independent of each other (independence). Thirdly, the numerical value of the data should be normal (normality).
The p-value was derived if the above assumptions were met. The process of derivation is shown in Figure 3. The factor could be considered as a significant factor if the p-value is less than the value which the researcher set as the threshold and the value of the threshold was 0.05 in general [37]. The results of the t-test analysis and the p-value for the various input data, such as precipitation, outlet discharge of Paldang dam, water surface elevation of Hangang River, tidal level of Incheon, wind speed, and concentration of dissolved oxygen are summarized in Table 3. Moreover, precipitation, outlet discharge Paldang dam, water surface elevation of Hangang River, and tidal level of Incheon used as input data in this study. Because these factors were considered to be important factors in forecasting the water surface elevation through the results of the t-test analysis and p-value. On the other hands, the wind speed (p-value = 0.06) and concentration of dissolved oxygen (p-value = 0.29) were not important factors for forecasting the water surface elevation.

5. Model Setup

The open source library was used in this study. Python (version 3.6.4, Anaconda) was used as the programming language. Numpy (version 1.14.2) and Pandas (version 0.22.0) libraries inside Python were used for data management to execute the forecasting model. The forecasting model using the LSTM was developed by using the Tensorflow (version 1.8.0) provided by Google as an open source library. The TensorFlow is composed of data flow graph structure and is used in various research fields of machine learning and deep learning. Moreover, the forecasting of water elevation was performed by using a computer with the following specifications: Intel Core i5-6600 CPU (Central Processing Unit), 8.00 GB of RAM (Random Access Memory), 256 GB of SSD (Solid State Drive), and an Intel(R) HD Graphics 530 video card.

5.1. Sensitivity Analysis

The sensitivity analysis was performed on various factors in the LSTM prior to evaluating the performance of the forecasting model and the performance of the newly proposed hybrid activation function in this study. The simulation cases for the sensitivity analysis are summarized in Table 4. The four parameters can be set in LSTM. The hydrological data were used for 1 year as input data. The forecasting data concern water surface elevation after 3 h because the leading time of the flood forecasting in river is within 3 h. The uncertainty of each parameter was expressed as the standard deviation and the average CPU time was verified with 30 iterative simulations.
The standard deviation and the CPU time were considered to derive the optimal setting value for each parameter. The standard deviation and CPU time for each parameter are shown in Figure 4 and the results of sensitivity analysis are summarized in Table 5.
As a result of the sensitivity analysis, the optimal values for each parameter were those with a hidden number of layers of 10, the learning rate was 0.005, there were 1000 iterations, and the sequence length was 1 h in this study. However, in the case of sequence length, the setting value can be changed depending on how the engineer sets the leading time. The recommended time of the sequence length is more than 5 h, according to previous studies [25].

5.2. Model Scenarios

The optimal values derived for each parameter of LSTM through the sensitivity analysis were applied in this study. Prior to setting up the model scenarios, the input data used in this simulation were precipitation, outlet discharge of Paldang dam, water surface elevation of Hangang River, and tidal level of Incheon, as mentioned in the previous section, and all the data were obtained from the station at the study area. The collected input data is for 10 years. Moreover, two scenarios were set up to evaluate the performance of the flood forecasting model and to evaluate the performance of the hybrid activation function proposed in this study.
In the first scenario, the weights of the hybrid activation function were set from the near hyperbolic tangent function ( w 1 = 0 . 1 and w 2 = 0 . 9 ) to the near rectified linear unit function ( w 1 = 0.9 and w 2 = 0.1 ) because, the hyperbolic tangent function has an under-forecasting problem due to vanishing gradient and the rectified linear unit function has an over-forecasting problem due to dying neuron. Therefore, we compensated for these problems by changing the weights and found the optimal value of weights for accurate forecasting. Moreover, the trend in frequency of utilization is moving from hyperbolic tangent function to rectified linear unit function in many researches [30]. Therefore, the forecasting accuracy of the hybrid activation function proposed in this study was checked and the change of the forecasting accuracy was compared by changing the weights ( w 1 and w 2 ) of the hybrid activation function. The second scenario involved checking the applicability of the maximum forecasting time when using the hybrid activation function and the change in the forecasting accuracy was compared by changing the leading time. The simulation cases were summarized in Table 6.
The 7 years of input data (from 2009 to 2015) were used as the training dataset and the 3 years of input data (from 2016 to 2018) were used for the test dataset in order to simulate the scenarios. In particular, 2016 was selected for model evaluation because the maximum water surface elevation occurred in 2016. Moreover, the observed water surface elevation corresponding to about 50 h from 5–7 July 2016 was compared. The maximum water surface elevation (EL. 5.61 m) occurred on 5 July 2016 at 10 p.m. In addition, the input data were normalized to improve the accuracy of the forecasting model and to improve the learning speed. The minmax normalization was used and rescaling (from 0 to 1) of the input data was applied to the simulation.

6. Results and Analysis

The training dataset and the test dataset were applied independently in this study. The performance of the forecasting model for each scenario was evaluated by using model evaluation indexes such as NSE, RMSE, and PE, which were derived by comparing the forecasting result and the observed data. In addition, the forecasting water surface elevation and the observed water surface elevation were compared for about 50 h on 5 July 2016 when the maximum water surface elevation in three years (from 2016 to 2018) occurred.

6.1. Results from Scenario I

The result of the improvement of the forecasting accuracy when using the hybrid activation function proposed in this study are summarized in Table 7. In addition, the forecasting result and the observed water surface elevation are presented in Figure 5 according to the change of weight ( w 1 and w 2 ).
The forecasting results were changed according to the weights (see Figure 6). And the forecasting results were well matched with the observed water surface elevation at w 1 = 0.6 and w 2 = 0.4 . In terms of forecasting accuracy, the NSE was 98.9%, the RMSE was 0.31 m, and the PE was 0.19 m at w 1 = 0.6 and w 2 = 0.4 , according to Table 7. The forecasting results have an uncertainty. Therefore, the confidence interval was examined by changing the weights (from w i = 0.1 to w i = 0.9 where, i = 1,2). Most of the forecasting results were under-forecasted and they were overfitted at high water surface elevations above the specified elevation (EL. 3.9 m) for flood management when compared with the observed data. The results of the confidence interval when using the hybrid activation function proposed in this study are summarized in Table 8.
As shown in the I-6 case, the forecasting results of the hybrid activation function ( w 1 = 0.6 and w 2 = 0.4 ) obtained the smallest confidence interval and a better performance than the other cases. In addition, the forecasting results of the hyperbolic tangent function and the rectified linear unit function were compared with the forecasting results of the hybrid activation function ( w 1 = 0.6 and w 2 = 0.4 ) proposed in this study at the high water surface elevation above the specified elevation for flood management (EL. 3.9 m) which caused the flood damage at the riverside. The results are summarized in Table 9.
When using the hybrid activation function, the RMSE decreased by 0.22 m compared with the hyperbolic tangent function and decreased by 0.25 m compared with the rectified linear function and the NSE increased by 79.3% compared with the hyperbolic tangent function and increased by 97.0% compared with the rectified linear function. Finally, the PE was 0.11 m and 0.21 m less than the hyperbolic tangent function and rectified linear unit function, respectively. From these results, the use of the hybrid activation function instead of the existing activation function had the effect of improving the forecasting accuracy at a high water surface elevation. However, it can be confirmed that the forecasting accuracy did not improve in all the data. Therefore, the hybrid activation function was more effective only for forecasting a high water surface elevation than the existing activation function because the forecasting water surface elevation in this study was highly affected by seasonal characteristics in Korea. Moreover, the time series data of water surface elevation, tidal level, precipitation and discharge have characteristics such as trend and seasonality. Even though the LSTM was generally used to forecast the time series data [22], the high water surface elevation was under-forecasted because of the lack of samples at a high water surface elevation. In particular, the Hangang River has a large coefficient of river regime in terms of river discharge. In addition, the original activation functions have the problems of a vanishing gradient and a dying neuron that occurred in the backpropagation training. Thus, the original activation functions have the limitation of needing to resolve the under-forecasted problem. Therefore, the hybrid activation function proposed in this study to partially solve the problems of the vanishing gradient and the dying neuron show the more accurate forecasting than the original activation functions, as shown in Table 9. Therefore, we conclude that the hybrid activation function was suitable for forecasting a high water surface elevation in Hangang River.

6.2. Results from Scenario II

The maximum forecasting time for the hybrid activation function applying the results of Scenario I ( w 1 = 0.6 and w 2 = 0.4) is summarized in Table 10. In addition, the forecasting results and the observed data were compared for about 50 h from 5 July 2016 as the leading time was changed (see Figure 6).
As the leading time interval increased, the value of water surface elevation was shifted to delay the peak event and under-forecasted the values in the rising rim. The RMSE increased sharply after 3 h of leading time while the NSE decreased sharply after 3 h of leading time (see Figure 7). Therefore, the good forecasting of the water surface elevation was up to 3 h in terms of RMSE and NSE. When using the hybrid activation function, the RMSE decreased by 0.10 m to 0.25 m compared with the hyperbolic tangent function and the rectified linear function, and the NSE increased by 3.2% to 20.1% compared with the hyperbolic tangent function and the rectified linear function. Finally, the PE was 0.03 m to 0.41 m less than the hyperbolic tangent function and the rectified linear unit function, respectively. From the results of Scenario II (see Table 11), it can also be considered that the use of the hybrid activation function could partially solve the vanishing gradient and dying neuron problems through accurate forecasting results at a high water surface elevation. Moreover, it was considered that the leading time interval was two times longer than the single activation functions when using the hybrid activation function. However, when using the hybrid function, it was shown that the accuracy of the forecasting was poor after 3 h of leading time interval. The reason for this was that the value of partial the autocorrelation coefficient of the water surface elevation at Hangang River was under the 95% confidence interval after 3 h of leading time interval (the range of 95% confidence interval was −0.2 to 0.2 in the partial autocorrelation analysis). Therefore, it was shown that the correlation of the water surface elevation was significant up to 3 h in Hangang River (see the small figure in Figure 8). However, in the case of PE, accurate forecasting was performed up to 6 h of leading time. Thus, the leading time interval was acceptable up to 6 h because the accurate forecasting of the peak water surface elevation is also important in flood forecasting.

6.3. Flood Risk Assessment

The virtual flood forecasting, defined as the forecasting of flood occurrence with the data-driven model developed in this study, was performed using the model’s results and the metrices for classification evaluation were used to evaluate the model. The criteria for flood forecasting was assumed to be above the specified elevation in Hangang River (EL. 3.9 m) and reviewed for one year, 2018. The metrices for the classification evaluation were accuracy, precision, and recall. Moreover, the confusion matrix for the binary classification and the corresponding array representation were used as shown in Table 12.
The results of the classification evaluation are summarized in the Table 13 according to the activation function. In terms of the accuracy, all the activation functions have the same performance in flood forecasting. Moreover, in terms of the precision, the use of the hybrid activation function showed better performance than the existing activation functions and in terms of the recall, it was also shown that the hybrid function has a good performance for forecasting flood. However, the improvement of model performance with the hybrid activation function was not noticeable compared with the forecasting surface elevation with a hybrid activation function because the total samples of flood events were too small to evaluate the performance of model, especially the number of false non-flood conditions ( f n ) and false flood conditions ( f f ). Nevertheless, the model with the hybrid activation function was suitable for forecasting flood from the results of virtual flood forecasting because the accurate forecasting performed at a high water surface elevation with the hybrid activation function. In addition, it was considered that the accurate forecasting water surface elevation in the high water surface elevation conditions was an important factor in performing accurate flood forecasting.

7. Conclusions

The data-driven model was used for forecasting the water surface elevation in a tidal river and applied to Hangang River, Korea, in this study. The LSTM was constructed using the TensorFlow, an open-source library of deep learning and hourly data, such as precipitation, outlet discharge and tidal level were used as the input dataset through a t-test analysis. In particular, the hybrid activation function was proposed to resolve a specific issue of the single activation function, which is that they tended to under-forecast the results at the conditions for high water surface elevations above EL. 3.9 m, the designated elevation for flood management in Hangang River. The parameters of LSTM were determined through the sensitivity analysis, in which the number of hidden layers was 10, the learning rate was 0.005, and there were 1000 iterations. Moreover, sequence length, which is the most important parameter that determines the temporal amount of learning information during the learning time, was simulated for various leading times. Finally, the forecasting results, compared with the observed data, show improvement in the prediction accuracy (Scenario Ι) and the enhancement of the application range of the leading time interval (Scenario Ⅱ) with the hybrid activation function.
First, for the application of the hybrid activation function, the optimal performance of the forecasting model was obtained when w 1   = 0.6 and w 2   = 0.4. The forecasting accuracy of all the data was presented to be 0.31 m in RMSE and 98.9% in NSE. However, in this case, the accuracy of the forecasting results was the same as the existing activation function, such as the hyperbolic tangent and ReLU. On the other hand, the RMSE was 0.32 m, NSE was 58.1%, and PE was 0.19 m at the conditions for high water surface elevation, which can cause flood damage at the riverside. These results show that the RMSE decreased by 0.22–0.25 m, PE also decreased by 0.11–0.21 m, and NSE increased up to 79.3%–97.0% compared with the existing single activation function. Therefore, the hybrid activation function proposed in this study was suitable for forecasting high-water levels above the specified elevation of Hangang River.
Secondly, the limitation of the application range of the leading time interval was obtained when the hybrid activation function was applied, which can be accurately forecasted at a high water surface elevation. We found a lower accuracy of forecasting at the longer leading time interval. The accuracy of forecasting was acceptable up to 3 h in terms of RMSE and NSE because the value of the partial autocorrelation coefficient about the water surface elevation at Hangang River was under the 95% confidence interval after the 3 h leading time interval. Therefore, it was considered that the correlation of the water surface elevation was significant up to 3 h in Hangang River. However, in the case of PE, the accurate forecasting was performed up to 6 h of leading time. Therefore, the leading time interval was acceptable up to 6 h because the accurate forecasting of the peak water surface elevation was also important in terms of flood forecasting.
Thirdly, the improvement of model performance for virtual flood forecasting with the hybrid activation function was not noticeable compared with the forecasting surface elevation with the hybrid activation function because the total samples of flood events were too small to evaluate the performance of the model. Nevertheless, the model using the hybrid activation function proposed in this study showed a better performance accuracy, precision, and recall than the other single activation functions when performing the virtual flood forecasting using the model’s results of the water surface elevation (in which accuracy was 0.99, precision was 0.95, and recall was 0.84). From these results, it can be seen that the accurate forecasting of high-water surface elevations was the most important factor in performing more accurate flood forecasting.
In this study, the LSTM based on deep learning was used as a complementary means of a physical and numerical model for forecasting water surface elevation in a tidal river, Hangang River, Korea. In addition, the hybrid activation function was proposed to improve the accuracy of forecasting the high-water levels. In the near future, the forecasting results of the model proposed in this study will more accurately identify the effects of climate change on riverside and they are also expected to be used as a basis for establishing an emergency action plan (EAP) along riversides. In addition, if the information is provided to citizens through personal internet media, such as SNS, promptly, it will be possible to evacuate in advance and reduce human injury and damage.

Author Contributions

The following statements should be used “Conceptualization, H.J.Y. and S.O.L.; methodology, S.O.L.; software, H.J.Y.; validation, D.H.K., H.-H.K. and S.O.L.; formal analysis, H.J.Y.; investigation, D.H.K.; resources, H.J.Y.; data curation, H.J.Y.; writing—original draft preparation, H.J.Y. and S.O.L.; writing—review and editing, H.J.Y., H.-H.K. and S.O.L.; visualization, H.J.Y.; supervision, S.O.L.; project administration, S.O.L.; funding acquisition, S.O.L. All authors have read and agree to the published version of the manuscript.

Funding

This research was funded by Korea Environment Industry & Technology Institute (KEITI) through Water Management Research Program, gran number 12572.

Acknowledgments

This work was supported by Korea Environment Industry & Technology Institute (KEITI) through Water Management Research Program, funded by Korea Ministry of Environment (127572).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Korea Meteorological Administration. Korea Climate Change Report; Korea Meteorological Administration: Seoul, Korea, 2017.
  2. Seoul Metropolitan Government. Comprehensive Plan for Storm and Flood Damage Reduction Report; Seoul Metropolitan Government: Seoul, Korea, 2016.
  3. Ministry of the Interior and Safety. Annual Disaster Report; Ministry of the interior and Safety: Sejong, Korea, 2011–2018.
  4. EM-DAT. The OFDA/CRED International Disaster Database; Université Catholique de Louvain: Brussels, Belgium, 2010. [Google Scholar]
  5. Ministry of Land Infrastructure and Transport. River Law; Ministry of Land Infrastructure and Transport: Sejong, Korea, 2018.
  6. Le, X.H.; Ho, H.V.; Lee, G.; Jung, S. Application of Long Short-Term Memory (LSTM) Neural Network for Flood Forecasting. Water 2019, 11, 1387. [Google Scholar] [CrossRef] [Green Version]
  7. Zhang, G.P. Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing 2013, 50, 159–175. [Google Scholar] [CrossRef]
  8. Ho, S.L.; Xie, M.; Goh, T.N. A comparative study of neural network and Box-Jenkins ARIMA modeling in time series prediction. Comput. Ind. Eng. 2002, 42, 371–375. [Google Scholar] [CrossRef]
  9. Hochreiter, S. The vanishing gradient problem during learning recurrent neural nets and problem solutions. Int. J. Uncertain. Fuzziness Knowl. Based Syst. 1998, 6, 107–116. [Google Scholar] [CrossRef] [Green Version]
  10. Pascanu, R.; Mikolov, T.; Bengio, Y. Understanding the exploding gradient problem. CoRR 2012, 5063, 417. [Google Scholar]
  11. Agarap, A.F. Deep learning using rectified linear units (relu). arXiv 2018, arXiv:1803.08375. [Google Scholar]
  12. Rinaldi, M.; Mengoni, B.; Luppi, L.; Darby, S.E.; Mosselman, E. Numerical simulation of hydrodynamics and bank erosion in a river bend. Water Resour. Res. 2008, 44, 1–17. [Google Scholar] [CrossRef] [Green Version]
  13. Teng, J.; Jakeman, A.J.; Vaze, J.; Croke, B.F.; Dutta, D.; Kim, S. Flood inundation modelling: A review of methods, recent advances and uncertainty analysis. Environ. Model. Softw. 2017, 90, 201–216. [Google Scholar] [CrossRef]
  14. Lee, J.K.; Lee, J.H. A Study on Water Level Rising Travel Time due to Discharge of Paldang Dam and Tide of Yellow Sea in Downstream Part of Paldang Dam. J. Korean Soc. Hazard Mitig. 2010, 10, 111–122. [Google Scholar]
  15. Song, C.G.; Kim, H.J.; Lee, D.S. Analysis of Flow Reversal by Tidal Elevation and Discharge Conditions in a Tidal River. J. Korean Soc. Saf. 2014, 29, 104–110. [Google Scholar] [CrossRef] [Green Version]
  16. Yeo, W.K.; Seo, Y.M.; Lee, S.Y.; Jee, H.K. Study on Water Stage Prediction Using Hybrid Model of Artificial Neural Network and Genetic Algorithm. J. Korea Water Resour. Assoc. 2010, 43, 721–731. [Google Scholar]
  17. Chen, W.B.; Liu, W.C.; Hsu, M.H. Comparison of ANN approach with 2D and 3D hydrodynamic models for simulating estuary water stage. Adv. Eng. Softw. 2012, 45, 69–79. [Google Scholar] [CrossRef]
  18. Hidayat, H.; Hoitink, A.J.F.; Sassi, M.G.; Torfs, P.J.J.F. Prediction of discharge in a tidal river using artificial neural networks. J. Hydrol. Eng. 2014, 19, 1–8. [Google Scholar] [CrossRef]
  19. Coulibaly, P.; Anctil, F. Real-time short-term natural water inflows forecasting using recurrent neural networks. IJCNN’99. 1999, 6, 3802–3805. [Google Scholar]
  20. Supharatid, S. Application of a neural network model in establishing a stage–discharge relationship for a tidal river. Hydrol. Process. 2003, 17, 3085–3099. [Google Scholar] [CrossRef]
  21. Yoo, H.J.; Lee, S.O.; Choi, S.H.; Park, M.H. A study on the Data Driven Neural Network Model for the Prediction of Time Series Data: Application of Water Surface Elevation Forecasting in Hangang River Bridge. J. Korean Soc. Disaster Secur. 2019, 12, 73–82. [Google Scholar]
  22. Zhang, J.; Zhu, Y.; Zhang, X.; Ye, M.; Yang, J. Developing a Long Short-Term Memory (LSTM) based model for predicting water table depth in agricultural areas. J. Hydrol. 2018, 561, 918–929. [Google Scholar] [CrossRef]
  23. Tran, Q.K.; Song, S.K. Water Level Forecasting based on Deep Learning: A Use Case of Trinity River-Texas-The United States. J. KIISE 2017, 44, 607–612. [Google Scholar] [CrossRef]
  24. Jung, S.H.; Lee, D.E.; Lee, K.S. Prediction of river water level using deep-learning open library. J. Korean Soc. Hazard Mitig. 2018, 18, 1–11. [Google Scholar] [CrossRef]
  25. Jung, S.H.; Cho, H.S.; Kim, J.Y.; Lee, G.H. Prediction of water level in a tidal river using a deep-learning based LSTM model. J. Korea Water Resour. Assoc. 2018, 51, 1207–1216. [Google Scholar]
  26. Hochreiter, S.; Schmidhuber, J. LSTM can solve hard long time lag problems. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 1997; pp. 473–479. [Google Scholar]
  27. Olah, C. Understanding LSTM Networks. Available online: https://colah.github.io/posts/2015-08-Understanding-LSTMs (accessed on 26 June 2018).
  28. Greff, K.; Srivastava, R.K.; Koutník, J.; Steunebrink, B.R.; Schmidhuber, J. LSTM: A search space odyssey. IEEE Trans. Neural Netw. Learn. Syst. 2016, 28, 2222–2232. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  29. Ito, Y. Representation of functions by superpositions of a step or sigmoid function and their applications to neural network theory. Neural Netw. 1991, 4, 385–394. [Google Scholar] [CrossRef]
  30. Nwankpa, C.; Ijomah, W.; Gachagan, A.; Marshall, S. Activation functions: Comparison of trends in practice and research for deep learning. arXiv 2018, arXiv:1811.03378. [Google Scholar]
  31. Gupta, H.V.; Kling, H.; Yilmaz, K.K.; Martinez, G.F. Decomposition of the mean squared error and NSE performance criteria: Implications for improving hydrological modelling. J. Hydrol. 2009, 377, 80–91. [Google Scholar] [CrossRef] [Green Version]
  32. Legendre, P. Spatial autocorrelation: Trouble or new paradigm. Ecology 1993, 74, 1659–1673. [Google Scholar] [CrossRef]
  33. Faruk, D.Ö. A hybrid neural network and ARIMA model for water quality time series prediction. Eng. Appl. Artif. Intell. 2010, 23, 586–594. [Google Scholar] [CrossRef]
  34. Nogales, F.J.; Contreras, J.; Conejo, A.J.; Espínola, R. Forecasting next-day electricity prices by time series models. IEEE Trans. Power Syst. 2002, 17, 342–348. [Google Scholar] [CrossRef]
  35. Tran, N.; Reed, D.A. Automatic ARIMA time series modeling for adaptive I/O prefetching. IEEE Trans. Parallel Distrib. Syst. 2004, 15, 362–377. [Google Scholar] [CrossRef]
  36. Ministry of Environment. The Installation Environment, Maintenance, and Management of Hydrological Survey Facilities and the Quality Control Standard for Hydrological Data; Ministry of Environment: Sejong, Korea, 2018.
  37. Ruxton, G.D. The unequal variance t-test is an underused alternative to Student’s t-test and the Mann–Whitney U test. Behav. Ecol. 2006, 17, 688–690. [Google Scholar] [CrossRef]
Figure 1. Hybrid activation function (Dash line: hyperbolic tangent activation function, Line: ReLU activation function, Hatched Area: hybrid activation function).
Figure 1. Hybrid activation function (Dash line: hyperbolic tangent activation function, Line: ReLU activation function, Hatched Area: hybrid activation function).
Applsci 10 01424 g001
Figure 2. Study area (Hangang River).
Figure 2. Study area (Hangang River).
Applsci 10 01424 g002
Figure 3. p-value derivation process.
Figure 3. p-value derivation process.
Applsci 10 01424 g003
Figure 4. Results of the sensitivity analysis ((A): hidden layer; (B): learning rate; (C): sequence length; (D): iterations; dashed lines: average value of observed data; ▨ CPU Time, Average forecasting value).
Figure 4. Results of the sensitivity analysis ((A): hidden layer; (B): learning rate; (C): sequence length; (D): iterations; dashed lines: average value of observed data; ▨ CPU Time, Average forecasting value).
Applsci 10 01424 g004
Figure 5. Results of the flood forecasting model in Scenario Ι.
Figure 5. Results of the flood forecasting model in Scenario Ι.
Applsci 10 01424 g005aApplsci 10 01424 g005b
Figure 6. Results of the flood forecasting model according to Scenario II ((A) = 1 h leading time; (B) = 3 h leading time; (C) = 6 h leading time; (D) = 9 h leading time; (E) = 12 h leading time; (F) = 15 h leading time; (G) = 18 h leading time; (H) = 21 h leading time; (I) = 24 h leading time).
Figure 6. Results of the flood forecasting model according to Scenario II ((A) = 1 h leading time; (B) = 3 h leading time; (C) = 6 h leading time; (D) = 9 h leading time; (E) = 12 h leading time; (F) = 15 h leading time; (G) = 18 h leading time; (H) = 21 h leading time; (I) = 24 h leading time).
Applsci 10 01424 g006
Figure 7. Overall results from Scenarios I and II. (A) Scenario I; (B) Scenario II.
Figure 7. Overall results from Scenarios I and II. (A) Scenario I; (B) Scenario II.
Applsci 10 01424 g007
Figure 8. Partial autocorrelation of water surface elevation at Hangang River.
Figure 8. Partial autocorrelation of water surface elevation at Hangang River.
Applsci 10 01424 g008
Table 1. Information about hydrological stations.
Table 1. Information about hydrological stations.
NoStationsItems *LatitudeLongitudePeriod
1SeoulP37 ° 34 126 ° 57 10 years
(2009–2018)
2PaldangO37 ° 31 127 ° 17
3Hangang BridgeE37 ° 30 126 ° 57
4IncheonT37 ° 27 126 ° 35
5SeoulW37 ° 34 126 ° 57
6Hangang BridgeD37 ° 30 126 ° 57
* P = Precipitation; O = Outlet Discharge; E = Water surface elevation; T = Tidal level; W = Wind speed; D = Concentration of Dissolved Oxygen.
Table 2. Correction method for outlier and missing value of hydrological data [36].
Table 2. Correction method for outlier and missing value of hydrological data [36].
MethodContents
Use of relevant station dataCorrect using a normal value of station
Correct with linear interpolation
The thresholder decides and correct the value
Use of data from nearby stationsCorrect using a relationship with upstream and downstream station values
Table 3. t-test analysis for input data.
Table 3. t-test analysis for input data.
Input Datat-scorep-valueSignificant Factor for Forecasting Flood
Precipitation8.9~0.00O
Outlet Discharge41.2~0.00O
Water Elevation37.8~0.00O
Tidal Level2.20.03O
Wind Speed1.90.06X
Concentration of Dissolved Oxygen1.00.29X
Table 4. Sensitivity analysis for LSTM for forecasting flood (*: reference value).
Table 4. Sensitivity analysis for LSTM for forecasting flood (*: reference value).
ParameterValueEvaluation
Hidden Layer (A)1 *, 3, 5, 10, 20Standard deviation
(Uncertainty) and CPU Time
Learning Rate (B)0.005, 0.01 *, 0.02, 0.05, 0.1
Sequence Length (C)1 *, 3, 6, 9, 12, 24
Iterations (D)1, 10, 100 *, 1000, 10,000
Table 5. Sensitivity analysis for parameter.
Table 5. Sensitivity analysis for parameter.
ParameterValueUncertainty (m)CPU Time (s)
Hidden Layer10.508
30.488
50.2710
10 *0.1814
200.2324
Learning Rate0.005 *0.228
0.010.508
0.020.679
0.050.409
0.100.619
Sequence Length1 *0.258
30.3810
60.6519
91.0021
121.2528
241.5054
Iterations10.588
100.458
1000.508
1000 *0.1122
10,0000.10158
*: Optimal value for flood forecasting model.
Table 6. Simulation cases for the application of the hybrid activation function.
Table 6. Simulation cases for the application of the hybrid activation function.
Scenario
Ι
Casew1w2CaseLeading Time Interval
10.10.9A1 h
20.20.8B3 h
30.30.7C6 h
40.40.6D9 h
50.50.5E12 h
60.60.4F15 h
70.70.3G18 h
80.80.2H21 h
90.90.1I24 h
Table 7. Summary of accuracy for various weights in Scenario Ι (Period: 5–7 July 2016, about 50 h).
Table 7. Summary of accuracy for various weights in Scenario Ι (Period: 5–7 July 2016, about 50 h).
CaseRMSE (m)NSE (%)PE (m)Remark
Ι-10.3898.40.13No good
Ι-20.4797.60.28No good
Ι-30.4198.10.10No good
Ι-40.4897.50.26No good
Ι-50.3898.40.43No good
Ι-60.3198.90.19Accept/Good
Ι-70.3798.50.15Accept
Ι-80.4397.90.11No good
Ι-90.4198.20.20No good
Table 8. Summary of confidence intervals for various weights in Scenario Ι.
Table 8. Summary of confidence intervals for various weights in Scenario Ι.
CaseCI * (%)Accuracy ** (%)Standard Deviation (m)Remark
Ι-199.029.00.12No good
Ι-295.018.00.11No good
Ι-395.025.00.10No good
Ι-490.032.00.11No good
Ι-580.040.00.10No good
Ι-680.061.00.10Accept/Good
Ι-780.046.00.11Accept
Ι-895.032.00.11No good
Ι-999.032.00.14No good
* CI = Confidence Interval; ** accuracy = total number of correct forecasting/total number of observed data (at 80.0% CI).
Table 9. Comparison of the accuracy in various activation functions (above 3.9 m).
Table 9. Comparison of the accuracy in various activation functions (above 3.9 m).
Activation FunctionRMSE (m)NSE (%)PE (m)
Hyperbolic Tangent
( w 1 = 0.0, w 2 = 1.0)
0.54−21.20.30
Rectified Linear Unit
( w 1 = 1.0, w 2 = 0.0)
0.57−38.90.40
Hybrid
( w 1 = 0.6, w 2 = 0.4)
0.3258.10.19
Table 10. Summary of the accuracy for various leading times in Scenario Ⅱ (Period: 5–7 July 2016 about 50 h, w 1 = 0.6   &   w 2 = 0.4 ).
Table 10. Summary of the accuracy for various leading times in Scenario Ⅱ (Period: 5–7 July 2016 about 50 h, w 1 = 0.6   &   w 2 = 0.4 ).
CaseRMSE (m)NSE (%)PE (m)Remark
II-(A)0.3398.80.20Accept/Good
II-(B)0.3198.90.19Accept/Good
II-(C)0.7793.60.00Accept
II-(D)1.1386.10.89Not Good
II-(E)1.3181.21.69Not Good
II-(F)1.5274.82.97Not Good
II-(G)1.9359.32.98Not Good
II-(H)2.0553.93.84Not Good
II-(I)2.3340.84.25Not Good
Table 11. Comparison of the accuracy in various activation function in Scenario II.
Table 11. Comparison of the accuracy in various activation function in Scenario II.
CaseHyperbolic TangentRectified Linear UnitHybrid
RMSE (m)NSE (%)PE (m)RMSE (m)NSE (%)PE (m)RMSE (m)NSE (%)PE (m)
II-(A)0.4395.20.250.4295.60.230.3398.80.20
II-(B)0.4592.30.250.4893.40.210.3198.90.19
II-(C)0.9086.80.490.8888.60.410.7793.60.00
II-(D)1.2380.81.051.2883.30.951.1386.10.89
II-(E)1.5578.21.801.4879.51.901.3181.21.69
II-(F)1.8666.23.111.8268.33.021.5274.82.97
II-(G)2.0848.33.552.0352.13.231.9359.32.98
II-(H)2.3338.64.122.2840.94.032.0553.93.84
II-(I)2.5820.74.652.6625.84.552.3340.84.25
Table 12. Confusion matrix for binary classification and the corresponding array representation used in this study.
Table 12. Confusion matrix for binary classification and the corresponding array representation used in this study.
Actual Flood ClassActual Non-Flood Class
Forecasting Flood ClassTrue Flood ( t f ) False Non-Flood ( f n )
Forecasting Non-Flood ClassFalse Flood ( f f ) True Non-Flood ( t n )
Table 13. The results of the classification evaluation according to the activation function.
Table 13. The results of the classification evaluation according to the activation function.
Activation FunctionAccuracy *Precision *Recall *
Hyperbolic Tangent **
( w 1   = 0.0, w 2   = 1.0)
0.990.880.84
Rectified Linear Unit ***
( w 1   = 1.0, w 2   = 0.0)
0.990.900.76
Hybrid ****
( w 1   = 0.6, w 2   = 0.4)
0.990.950.84
* Accuracy = ( t f + t n ) / ( t f + t n + f f + f n ) ; Precision = ( t f ) / ( t f + f f ) ; Recall = ( t f ) / ( t f + f n ) ; ** Hyperbolic Tangent ( t f = 19, t n = 8245, f f = 2, f n = 6); *** Rectified Linear Unit ( t f = 21, t n = 8244, f f = 3, f n = 4); **** Hybrid ( t f = 21, t n = 8246, f f = 1, f n = 4).

Share and Cite

MDPI and ACS Style

Yoo, H.J.; Kim, D.H.; Kwon, H.-H.; Lee, S.O. Data Driven Water Surface Elevation Forecasting Model with Hybrid Activation Function—A Case Study for Hangang River, South Korea. Appl. Sci. 2020, 10, 1424. https://doi.org/10.3390/app10041424

AMA Style

Yoo HJ, Kim DH, Kwon H-H, Lee SO. Data Driven Water Surface Elevation Forecasting Model with Hybrid Activation Function—A Case Study for Hangang River, South Korea. Applied Sciences. 2020; 10(4):1424. https://doi.org/10.3390/app10041424

Chicago/Turabian Style

Yoo, Hyung Ju, Dong Hyun Kim, Hyun-Han Kwon, and Seung Oh Lee. 2020. "Data Driven Water Surface Elevation Forecasting Model with Hybrid Activation Function—A Case Study for Hangang River, South Korea" Applied Sciences 10, no. 4: 1424. https://doi.org/10.3390/app10041424

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop