Next Article in Journal
Detecting and Attributing Evapotranspiration Deviations Using Dynamical Downscaling and Convection-Permitting Modeling over the Tibetan Plateau
Previous Article in Journal
Effectiveness of Advanced Oxidation Processes in Wastewater Treatment: State of the Art
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multi-Step Sequence Flood Forecasting Based on MSBP Model

1
Institute of Public-Safety and Big Data, College of Data Science, Taiyuan University of Technology, Taiyuan 030060, China
2
College of Data Science, Taiyuan University of Technology, Taiyuan 030060, China
3
Center for Big Data Research in Health, Changzhi Medical College, Changzhi 046000, China
*
Author to whom correspondence should be addressed.
Water 2021, 13(15), 2095; https://doi.org/10.3390/w13152095
Submission received: 10 June 2021 / Revised: 23 July 2021 / Accepted: 28 July 2021 / Published: 30 July 2021

Abstract

:
Establishing a model predicting river flow can effectively reduce huge losses caused by floods. This paper proposes a multi-step time series forecasting model based on multiple input and multiple output strategies, and this model is applied to the flood forecasting process of a river basin in Shanxi, which effectively improves the engineering application value of the flood forecasting model based on deep learning. The experimental results show that after considering the seasonal characteristics of the river channel and screening the influencing factors, a simple neural network model can accurately predict the peak value, the peak time and flood trends. On this basis, we proposed the MSBP (Multi-step Back Propagation) model, which can accurately predict the flow trend of the river basin 20 h in advance, and the NSE (Nash Efficiency) is 0.89. The MSBP model can improve the reliability of flood forecasting and increase the internal interpretability of the model, which is of great significance for effectively improving the effect of flood forecasting.

1. Introduction

Effective flood prevention is an important part of water resources planning [1]. At the same time, floods are also the most common natural disasters in the world, especially in areas dominated by monsoon climates, where floods occur more frequently and are mostly concentrated in the rainy season [2,3]. Flood forecasting is one of the most important non-structural measures for flood control [4]. The establishment of an early warning system can effectively reduce flood damage [5,6,7]. At present, flood forecasting is mainly divided into two categories. One is the method based on hydrological knowledge: a large amount of professional knowledge is required as a basis; the other is a data-driven method [8]: based on the existing data in the basin, machine learning algorithms are used to mine data relationships for prediction. In traditional hydrological knowledge-based forecasting methods, data acquisition is mostly manual collection, and the storage is messy, resulting in a lack of hydrological data, and even difficult to obtain data in some remote areas. The data-driven artificial neural network only needs to input historical hydrological data in the basin [9,10], and it can complete flood forecasting through a self-learning function [11], avoiding the complicated modeling process, cumbersome parameter selection and long forecasting time in traditional hydrological methods. Therefore, it is favored by more and more researchers. Through the application of the genetic algorithm, particle swarm algorithm and other methods, it is found that machine learning can accurately capture important information such as flood peak flow value and peak present time [12], which can effectively improve the forecasting effect [13,14,15,16].
The artificial neural network can predict the flow of a certain location based on the flow of the upstream position of the river basin [17], which has a wider application range and stronger generalization ability than traditional methods [18]. Especially in areas with sufficient and more accurate data, the use of the BP (Back Propagation) neural network model can significantly improve the accuracy of flood forecasting [19]. BP neural network can overcome the shortcomings of traditional hydrological knowledge-based models where the convergence speed is slow and the extreme value is easily reached [20], so it is widely used. Researchers continue to make improvements to the BP neural network [21,22,23], combining the characteristics of the current watershed with the BP neural network, improving the input data of the BP neural network, optimizing the hidden layer activation function, and improving the flood forecasting effect. Because GA (Genetic Algorithm) has good simulation accuracy and can obtain the optimal solution in the global scope, the researchers combined GA and BP models [24,25] to effectively improve the prediction effect in the basin.
On the other hand, the use of time series analysis technology can make rapid and effective forecasts based on past data and improve the accuracy of flood forecasting [26,27], even if there is only a weak-to-medium relationship between the predicted value and the observed value. At present, in different watersheds, researchers have explored many different multi-step forecasting methods and have achieved great results. In the Three Gorges Reservoir basin, Yanlai Zhou et al. used UKF (Unscented Kalman Filter) combined with artificial neural network [28], genetic algorithm and least-squares methods [19] to capture the relationship between rainfall and runoff and reduce the uncertainty of flood forecasting. Fi-John Chang et al. [29] used a static neural network and two dynamic neural networks to screen and predict in the Taiwan watershed. Among them, the dynamic network effectively finds the dependence between factors by realizing multi-step long-term prediction. At the same time, the latest observations and output values are used to repeatedly adjust the model parameters, which improves the accuracy of multi-scale analysis and effectively alleviates the problem of time lag [30]. In the case of considering the weight of time and space [31], linking rainfall and runoff series can increase the internal interpretability of the model [32]. Although the LSTM (Long-Short Term Memory) model can simulate the flood process well, it is difficult to achieve the effect of real-time forecasting [33], and the forecasting time is long. Unlike single-step forecasting, multi-step forecasting usually faces uncertainties from various sources. For example, the accumulation of errors and lack of information make multi-step prediction more difficult [28].
In summary, although past research has clarified the predictive ability of BP neural network, few people have achieved its multi-step advanced time series prediction. This paper proposes a multi-step time series forecasting model based on multiple input and multiple output strategies, the MSBP model (Multi-Step BP), and verifies the feasibility of the model in the actual watershed. This paper first selects BP neural network and random forest models to verify the feasibility of data, machine learning methods, and data processing in the current watershed in the Fenhe Reservoir, Zhaishang area of Shanxi Province, China. The above method can accurately capture the peak discharge value and peak present time, and it obtains the Nash coefficient of 0.9–0.99. Then, by applying the MSBP model in the basin, it can achieve a multi-step sequence forecast N hours in advance and accurately predict the future flow trend.

2. Application

2.1. Background of the Study Area

As shown in Figure 1, the study area is located in the upper reaches of the Fenhe Reservoir in Shanxi Province, China, in the northwest corner of Taiyuan City. The main river length above the section is 34.2 km, and the interval control area is 1551 km 2 . This section is joined by tributaries such as Lion River, Tianchi River, Tunlan River, Yuanping River and Dachuan River. The geological environment in the basin is complex, including 358.66 km 2 of metamorphic rock shrubland, accounting for 23.13% of the catchment area, limestone shrubland of 224.15 km 2 , accounting for 14.45% of the catchment area, and sand shale shrubland of 350.13 km 2 , accounting for Jiji. The water area is 22.57%; the sandy shale forest mountain area is 69.16 km 2 , accounting for 4.46% of the catchment area; the sandy shale rocky mountain area is 548.90 km 2 , accounting for 35.39% of the catchment area.
The Fenhe Reservoir, Zhaishang section is mainly controlled by the mainstream of the Fenhe River. The average longitudinal slope of the river is 3.39%, the roughness of the river bed is about 0.02, and the average width of the basin is 40.6 km. The multi-year average annual precipitation of the interval basin was 437.5 mm, the maximum annual precipitation was 642.8 mm, which occurred in 1988; and the minimum annual precipitation was 172.1mm, which occurred in 1972; the multi-year average flow was 11.2 m 3 /s, and the maximum instantaneous flow was 2130 m 3 /s, on 22 August 1967. In the Fen River Basin, due to the seasonality of the river, the rainy season is concentrated in June to August each year. Most of the floods occur from the end of July to mid-August each year.
There are 4 water level stations (Gaosheng, Malan, Xingjiashe, Jialequan), 1 hydrological station (Zhaishang), and 58 rainfall stations (basic stations, small and medium river stations, flash flood stations) in Fenhe Reservoir, Zhaishang section.

2.2. Data Collection

At present, there are 58 rainfall stations in the Fenhe Zhaishang Basin. However, some of the rainfall stations were constructed later, resulting in incomplete data in the basin. Direct input to the model will reduce the accuracy of the model. As shown in Figure 2, this paper analyzes the correlation between rainfall stations and Zhaishang flow stations, and 10 rainfall stations with much higher correlation (correlation greater than 0.1) than other stations were selected as the basic data of the model, reducing the input sequence model and reducing the data complexity. The site distribution of the final input model is shown in Figure 1.
In addition, the cumulative i-h catchment average rainfall of the flood (i = 1, 2, 3) and the flow of j hours ahead (j = 1, 2, 3) are used as the primary predictors (independent variables), and the period-by-period flood flow is taken as the forecast object (dependent variable), the forecast factor is screened through statistical analysis. The predictors screened by the correlation coefficient as the objective function are:
(1)
accumulate 2 h basin area average rainfall;
(2)
accumulate 3 h basin area average rainfall.
The processed data have a stronger correlation with the flow of the Zhaishang station, which is conducive to better training data for the model, quickly obtaining the optimal bias term, and performing flood forecasting.
In the Fenhe Reservoir, Zhaishang Interval Basin, complete and prominent flood peak data have been integrated into 11 flood data points from 1994 to 2006 and 2016 to 2018, which is No. 19940806, No. 19960803, No. 19990827, No. 20010810, No. 20060903, No. 20080814, No. 20160719, No. 20160824, No. 20170723, No20170727 and No. 20180713 that are named as the time of occurrence. After data preprocessing and integration, the data time step is 1h, including the data before the flood peak, when the flood peak appears, and after the flood peak. Among them, 8 single peaks and 1 compound flood were selected for model calibration, and 1 single peak and 1 compound flood were used for model verification. We used the BP neural network model and random forest to verify the 11 floods to ensure the practicability of the data in this paper. The results are shown in Tables 2 and 3. The first column of the table is the flood number named by the time of occurrence. At the same time, the MSBP model was used to predict 11 floods in multi-step time series, and the results of representative single-peak flood No. 19940806 and compound flood peak flood No. 20170727 were displayed.
The data selected strictly abide by the requirements of the Hydrological Information Forecast Specification (GB/T 22482-2008). The historical flood data, especially the flood data since the 1990s, are selected when establishing forecasting plans (calibration or verification). All hydrological stations and rainfall stations used in this project are the national basic station network. The data have been reviewed by the Taiyuan Hydrological Branch, accepted by the provincial bureau, and compiled by the river basin. The authenticity of data is very reliable.

3. Materials and Methods

3.1. BP Neural Network

BP neural network is a “universal model and error correction function”, each time the error analysis is carried out according to the training results and the expected results, and then the weights and thresholds are modified, step by step, the output is consistent with the expected results.
BP (Back-propagation) neural network is one of the most effective multi-layer neural network learning methods. It is characterized by forward transmission of signals and backward propagation of errors. By continuously adjusting the weight value of the network matrix, the final output of the network is as good as the expected output. It may be close to achieve the purpose of training and prediction.
BP neural network usually contains three layers of structure, namely input layer, hidden layer and output layer. There are two stages in the construction of a BP neural network: the first stage is the forward propagation of the signal. In this stage, our data are received by an input layer and processed by a hidden layer. Then, the output layer will receive the processed data from the hidden layer, giving us the final prediction results. Finally according to the prediction result and the true value, we can form the cost function. The second stage is the back propagation of errors. Using the gradient descent method [28], the weights of the output layer, hidden layer and the input layer can be adjusted in turn. In the process of back-propagation, the value of each parameter is continuously adjusted and optimized according to the error; the process is repeated continuously until convergence.
Refer to Algorithm 1 for the specific update process.
Algorithm 1: BP neural network algorithm.
Input: training set D = ( x k , y k ) k 1 m ;Learning rate η
Output:
1:function BP(D, η )
2:   Randomly initialize all connection weights and
      thresholds in the network within the range of (0,1)
3:   repeat
4:      for all ( x k , y k ) D do
5:         Calculate the current sample output
             y k ^ = f β j θ j
6:         Calculate the gradient of the output neuron
             g j = E k y ^ k · y ^ k β j
                = y ^ j k y j k f β j θ j
                = y ^ j k 1 y ^ j k y ^ j k y j k
7:         Calculate the neuron gradient term of the hidden
            layer e h = E k b h · b h α h
                         = j = 1 l E k β j · β j b h f α h γ h
                         = j = 1 l w h j g j f α h γ h
                         = b h 1 b h j = 1 l w h j g j
8:          Update weight w h k = η g j b h , v h k = η e j x i
9:         Update threshold
10:      end for
11:   until Stop condition reached
12:end function
Given the training set D = x 1 , y 1 , x 2 , y 2 , , x m , y m , x i R d , y i R l , the input is described by d attributes, and the output is an l-dimensional value vector. For the convenience of discussion, a multilayer feedforward network structure with d neurons, l output neurons and q hidden layer neurons is given. The threshold of the j neuron in the output layer is represented by θ j , and the threshold of the h neuron in the hidden layer is represented by γ h . The connection weight between the i neuron in the input layer and the h neuron in the hidden layer is v i h , and the connection weight between the h neuron in the hidden layer and the j neuron in the output layer is w i h . Remember the input received by the h neuron in the hidden layer as α h = i = 1 d v i h x i . The input and output received by the j neuron in the output layer is β j = h = 1 q w h j b h , where b h is the output of the h neuron in the hidden layer. For the training set D = x k , y k , it is supposed the output of the neural network is y k ^ = y 1 k ^ , y 2 k ^ , , y l k ^ , which is y k ^ = f β j θ j . The mean square error of the network on x k , y k is E k = 1 2 j = 1 l y j k ^ y j k 2 . The gradient of the neurons in the output layer is denoted as g i , the neuron gradient of the hidden layer is denoted as e h . The BP neural network learning rate is η .

3.2. Random Forest

Random forest [34] is an important ensemble learning method based on Bagging (Bootstrap aggregating), which can be used for classification, regression and other problems. It uses the bootstrap re-sampling method to extract multiple samples from the original sample, models each bootstrap sample, and then combines the predictions of multiple decision trees to obtain the final prediction result through voting. A large number of theoretical and empirical studies [35,36,37] have proved that random forest has a high prediction accuracy, a good tolerance for outliers and noise and is not easy to overfit. In the training phase, the random forest uses bootstrap sampling to collect multiple different sub-training data sets from the input training data set to train multiple different decision trees in turn. The model architecture diagram of random forest is shown in Figure 3.

3.3. MSBP Model

In this paper, the BP neural network model is modified and adjusted, and the MSBP model (Multi-step Back Propagation) is proposed. The model architecture process is shown in the Figure 4. The model is divided into four parts: site data, data processing, model, and result.
The station data are the acquired watershed data, including the rainfall data of each rainfall station in the entire watershed and the flow data of the river channel. Due to the influence of the monsoon climate in this basin, the rainfall is concentrated in June to August, which causes floods in the basin to occur more frequently in June to August. Therefore, the site data need to be processed reasonably to remove invalid data.
The data are processed to perform feature screening on the station rainfall data. There are many rainfall monitoring stations in the basin, and not all stations will have an impact on the river flow at the monitoring points. Therefore, the correlation analysis of rainfall stations can be carried out, and the rainfall stations with strong correlation can be selected as the model input data.
The core part of this model lies in the establishment of BP neural networks for simultaneous prediction to achieve multi-step prediction. Unlike the traditional BP model, which uses one model to output the results N hours in advance, this model builds N BP models, outputs the results 1, 2...N h in advance, and splices them. In parallel processing, the MSBP model inherits the automatic tuning process of the BP neural network. For the data input to the model, the hidden layer is processed, and the results are back-propagated to minimize the error loss and output the optimal results. The established many BP models can simultaneously process rainfall data in the river basin at different time scales, so that the model will output the watershed flow value for several hours in the future, and the average value can be calculated after multiple runs to obtain the final trend of future river basin changes.
The result of this model is not a single data point in the traditional BP model, but a time series. In Figure 4, T represents forecast T hours ahead, and M and N both represent the number of time windows, that is, the number of models. M can be any number from 1 to N. In addition, the T-N-M model represents any model from 1 to N models. In other words, the flood sequence we forecast does not necessarily start from 1 h and end in the next N hours, such as 1–10 h and 1–15 h. The time series may be a time series of M to N hours, for example, a time series of 6–10 h and 5–10 h.

3.4. Evaluation Index

According to the Hydrological Information Forecast Specification (GBT 22482-2008), this model uses three evaluation indicators, namely the relative error of flood peak, the error of peak present time and the certainty coefficient to verify and analyze the forecast accuracy.
(1) Relative error of flood peak. Rainfall and runoff forecasts take 20% of the measured peak flow as the allowable error; the river flow (water level) forecast takes 20% of the measured change within the forecast period as the allowable error. When the flow allowable error is less than 5% of the actual measured value, take 5% of the actual measured value of the flow. When the allowable error of the water level is less than 5% of the measured flood peak flow, the corresponding water level amplitude value or less than 0.10 m, then this value is taken as the allowable error.
Relative error calculation formula:
δ = Q c Q o Q o × 100 %
Among them, Q c represents the flow forecast value, and Q o represents the the true value of the flow.
(2) Peak present time error. The peak present time takes 30% of the time interval between the forecast based time and the actual measured flood peak as the allowable error. When the allowable error is less than 1 h or the calculation period is long, 1h or the calculation period is the allowable error.
(3) The formula for calculating the coefficient of certainty is:
D C = 1 i 1 n Q c Q o 2 i 1 n Q c Q o ¯ 2
Among them, Q c represents the flow forecast value, Q o represents the true value of the flow, Q o ¯ represents the average value of the true value of the flow, and n represents the length of the forecast time series.
(4) When the error of a forecast is less than the allowable error, it is a qualified forecast. The percentage of the ratio of the number of qualified forecasts to the total number of forecasts is the qualified rate, which represents the overall accuracy level of multiple forecasts.The formula for calculating the qualified rate is:
Q R = n m × 100 %
Among them, n is the number of qualified forecasts; m is the total number of forecasts.
(5) The evaluation criteria for the accuracy grade of flood forecasting results are shown in Table 1.
(6) Nash efficiency coefficient (NSE) is generally used to verify the quality of the hydrological model simulation results. The value of NSE is negative infinity to 1, and NSE is close to 1, indicating that the model is of good quality and the model has high reliability; NSE close to 0, indicating that the simulation result is close to the average level of the observations, that is, the overall result is credible, but the process simulation error is large; NSE is far less than 0, the model is not credible. The calculation formula of NSE is as follows:
N S E = 1 i = 1 n Q p i Q m i 2 i = 1 n Q p i Q p ¯ 2
Among them, Q p is the number of qualified forecasts; Q m is the total number of forecasts; Q p ¯ represents the average value of the true value of the flow.

4. Results

4.1. Evaluation of Model Performance

The MSBP model is improved on the traditional BP neural network, and the simple single-step forecast is improved into a multi-step time series forecast. In contrast, MSBP has a better recursive structure, which can simultaneously predict traffic at different time points in the future, and the error reverse adjustment is more effective and can reach the optimum in a shorter time. Compared with BP neural network, random forest model and LSTM model, MSBP can shorten the model running speed to 5–10 s. BP neural network and random forest are single-step prediction models, and the running time is one minute. The LSTM model can realize multi-step prediction. When there is a large amount of data, the prediction time is up to 4 h. This article puts more attention on the accuracy, stability and reliability of the model. Therefore, different methods are used to perform multiple training verifications on the training set and the verification set. Each method has a different performance in the prediction results of the best peak present time.
The MSBP model can accurately predict the trend of single-peak floods or retest flood peaks. For the floods that have occurred, we numbered them according to the time of occurrence, and we used this to test the data set. For example, No. 19940805 represents the flood that occurred on 5 August 1994. This article selects No. 19940805 and No. 20170727 for training. After multiple training and averaging, the prediction results are stable, and the best results can be predicted 20 h in advance.
As shown in Figure 5, when training on No. 19940806, the effect is optimal when the prediction time is 20 h. Not only can it predict the changes in the flow in the basin, but it can also be accurate for the peak occurrence time and flood peak value. After the peak of Hong has been trained for many times, the error value is between 10 and 50 m 3 /s, which can also be prevented in advance. The NSE reaches 0.87, and the accuracy rate is 0.9669.
Figure 6 shows the comparison of the 3 and 6 h prediction results of the MSBP model. Although it is possible to predict the change trend of the river flow, the relative error of the flood peak and the peak present time are quite different. Compared with the 20 h forecast, there is still a big gap.
There were two peaks on the No. 20170727, and the time interval was less than 24 h. MSBP can also accurately predict this situation Figure 7. Although the prediction results of the MSBP model for the largest flood peak have a large error, the MSBP model has made more accurate predictions for the flow data of other time periods, and the peak present time prediction is more accurate. The NSE is 0.89, and the accuracy rate is 0.9564.
Figure 8 shows the 3 h and 6 h forecasts made by the MSBP model on No. 20170727. The forecast results are poor, and the peak present time and the flood peak error are quite different. Compared with the best 20 h forecast time result, there are obvious shortcomings.
Regardless of single-peak flood or compound peak flood, the MSBP model has good prediction results. In this way, no matter how the flow in the river basin changes in the future, the MSBP model can accurately predict the flow based on the rainfall monitoring data at the stations. This also reflects the advantages of data-driven forecasting models. As long as you ensure that you have massive and accurate real data, after special preprocessing, you can get effective and accurate forecast results.
For time series forecasting, deep learning can well capture the changing trends of things over time, so as to achieve accurate time forecasts. After analyzing and comparing the data in the previous period, we found that the river has seasonal characteristics, and the flood is up to 24 h from the appearance to the end. Comparing the prediction results of the MSBP model at different times on No. 19940806 and No. 20170727, it can be seen that the MSBP model has a good effect 20 h in advance. In our opinion, forecasting 20 h in advance can take into account the entire event process from the appearance of the flood to the end, including some floods that occurred in a short period of time. However, the prediction effect of 3 h and 6 h in advance is poor because it is difficult to fully consider the flood cycle, and it only considers the changes in the part of the time when the flood occurs. Therefore, if the complete time trend can be input into the model, the MSBP model can provide more accurate prediction results.

4.2. Model Reliability Evaluation

In this paper, while using the MSBP model for multi-step sequence prediction, the BP neural network and random forest are used to predict the flow of a station in the basin one hour in advance. Research has shown that the quality of the data currently obtained in the basin is good, and the work carried out on the data set is effective, which confirms the reliability and practicability of the model. However, compared with the MSBP model, the single-step forecasting model, that is, the BP neural network and the random forest model, cannot perform multi-step time series forecasting, resulting in a lack of use space in practical applications.
As shown in Figure 9a, it is the BP neural network prediction result of a single peak, the No. 19940805. According to the rainfall information measured by the rainfall station, floods will occur at the Zhaishang site when large rainfall occurs in the current basin. The BP neural network model can accurately predict the occurrence of flood peaks based on rainfall information. According to “Hydrological Information Forecast Specification” (GBT 22482-2008), the relative error of No. 19940805 is 0.16, the error of peak present time is 1 h, and the certainty coefficient is 0.9353. From this, it can be seen that the prediction level of No. 19940805 reached Class A.
As shown in Figure 9b, it is the random forest prediction result of No. 19940805. According to the “Specifications for Hydrological Information Forecasting” (GBT 22482-2008), the relative error of the No. 19940805 flood peak is 0.28, the peak present time error is 1 h, and the certainty coefficient is 0.9325. From this, it can be seen that the prediction level of No. 19940805 reached Class A. Compared with random forest, BP neural network has improved in peak value and certainty coefficient.
As shown in Figure 10a, it is the BP neural network prediction result of a compound flood peak, namely the No. 20170727 flood. According to the “Specifications for Hydrological Information Forecasting” (GBT 22482-2008), the relative error of the No. 20170727 flood peak is 0.18, the error of the peak present time is 1 h, and the certainty coefficient is 0.9812. From this, it can be seen that the prediction level of No. 20170727 reached Grade A.
As shown in Figure 10b, it is the random forest prediction result of the No. 20170727. According to “Specifications for Hydrological Information Forecasting” (GBT 22482-2008), the relative error of No. 20170727 flood peak is 0.26, the error of peak present time is 1 h, and the certainty coefficient is 0.9639. From this, it can be seen that the prediction level of No. 20170727 reached Grade A. Compared with random forest, BP neural network has improved peak value and certainty coefficient.
In Figure 11, the model scatter plots of the BP neural network and random forest used in the training and testing phases are shown, respectively. The prediction results show that the two models are generally consistent with the real measurement data of the two stages. In general, the BP neural network model has better performance than the random forest model (higher DC and NSE values, narrower discrete points). It can be concluded that the BP neural network can make more accurate predictions in the Zhaishang watershed than the random forest, and it is more suitable for the Fenhe River Basin.
Based on the current rainfall data to predict the flow of the Zhaishang site in the next hour, that is, predict one hour in advance, the prediction results can reach Grade A. At the same time, the BP neural network is used to forecast floods in other time periods, and the prediction results are shown in Table 2. The relative error qualification rate of flood peak reached 81.82%, and the error of peak present time reached 100%. Taking the qualification rate and the certainty coefficient as the reference factors of the evaluation grade at the same time, the BP neural network model has reached the second-level flood prediction effect for the Fenhe Reservoir, Zhaishang Interval.
Table 3 shows the prediction results of 11 floods using random forest. Compared with the BP neural network, although the prediction level has reached the second level, the random forest forecast has reduced the relative error of the peak and the time error of the peak, and the overall certainty coefficient is not as high as the BP neural network model.
On the 11 flood data sets, BP neural network and random forest have good performance. Different single-step prediction models have complete predictions for river flow. Although part of the time is shifted back when predicting the peak present time, it can accurately predict the changing trend of the river basin. The forecast results can be used as a reference for the staff of the Bureau of Hydrology and take preventive measures to avoid a large number of economic and personnel losses. At the same time, good research results show that the data set used in this article is of high quality, ensuring the effectiveness of this research. In addition, using the same data measurement, compilation and processing styles, other stations in the basin can get a good forecast effect in advance by using the method in this paper.

5. Conclusions

Since the current basin has a monsoon climate, the time of flood occurrence is relatively concentrated, and the current available data in the basin are lacking, so the 11 floods from 1994 to 2018 were selected for training and research. Research shows that the MSBP model proposed in this paper can not only improve the accuracy of flood forecasting but also provide new ideas for multi-step time series forecasting in the basin.
The MSBP model uses the advantage of the BP neural network that does not consider the specific connection between the input sequences. It modifies the single-step prediction to multi-step sequence prediction, and it performs feature screening, which can accurately output the optimal sequence and reduce the complexity of the traditional forecasting model. In addition, the MSBP neural network model has the advantages of convenience, quick operation, simple operation and high efficiency, which can provide a useful reference for flood forecasting in other regions with seasonal characteristics.

Author Contributions

Y.Z., J.R., R.W., F.F. and W.Z. designed the project. Y.Z., R.W., F.F. analyzed the data. Y.Z., R.W., F.F. and W.Z. wrote the paper. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by National Natural Science Foundation of China, Grant No. 11702289, Key core technology and generic technology research and development project of Shanxi Province, No. 2020XXX013 and National Key Research and Development Project.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jingku, L. Artificial neural network application in the field of water resources planning. Water Resour. Dev. Manag. 2017, 3, 19–22. [Google Scholar]
  2. Wang, Z.; Lai, C.; Chen, X.; Yang, B.; Zhao, S.; Bai, X. Flood hazard risk assessment model based on random forest. J. Hydrol. 2015, 527, 1130–1141. [Google Scholar] [CrossRef]
  3. Yu, Z.; Jiang, P.; Gautam, M.R.; Zhang, Y.; Acharya, K. Changes of seasonal storm properties in California and Nevada from an ensemble of climate projections. J. Geophys. Res. Atmos. 2015, 120, 2676–2688. [Google Scholar] [CrossRef]
  4. Puttinaovarat, S.; Horkaew, P. Flood Forecasting System Based on Integrated Big and Crowdsource Data by Using Machine Learning Techniques. IEEE Access 2020, 8, 5885–5905. [Google Scholar] [CrossRef]
  5. Cloke, H.; Pappenberger, F. Ensemble flood forecasting: A review. J. Hydrol. 2009, 375, 613–626. [Google Scholar] [CrossRef]
  6. Werner, M.; Reggiani, P.; Roo, A.D.; Bates, P.; Sprokkereef, E. Flood Forecasting and Warning at the River Basin and at the European Scale. Nat. Hazards 2005, 36, 25–42. [Google Scholar] [CrossRef]
  7. Weimin, B.; Wei, S.; Simin, Q. Flow Updating in Real-Time Flood Forecasting Based on Runoff Correction by a Dynamic System Response Curve. J. Hydrol. Eng. 2014, 19, 747–756. [Google Scholar] [CrossRef]
  8. Pagano, T.C.; Wood, A.W.; Ramos, M.H.; Cloke, H.L.; Pappenberger, F.; Clark, M.P.; Cranston, M.; Kavetski, D.; Mathevet, T.; Sorooshian, S.; et al. Challenges of operational river forecasting. J. Hydrometeorol. 2015, 15, 1692–1707. [Google Scholar] [CrossRef] [Green Version]
  9. Noymanee, J.; Nikitin, N.O.; Kalyuzhnaya, A.V. Urban Pluvial Flood Forecasting using Open Data with Machine Learning Techniques in Pattani Basin. Procedia Comput. Sci. 2017, 119, 288–297. [Google Scholar] [CrossRef]
  10. 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]
  11. Hou, X.; Tang, Y. Comparative Study on the Applications of Three Neural Networks to Flood Forecasting. Comput. Syst. Appl. 2013, 22, 35–38. [Google Scholar]
  12. Tayfur, G.; Singh, V.P.; Moramarco, T.; Barbetta, S. Flood Hydrograph Prediction Using Machine Learning Methods. Water 2018, 10, 968. [Google Scholar] [CrossRef] [Green Version]
  13. Huang, D.J.; Tian, C.C.; Jiang, J.Y. Application of GA-BP neural network model for small watershed flood forecasting in Chun’an county, China. IOP Conf. Ser. Earth Environ. Sci. 2020, 612, 012066. [Google Scholar] [CrossRef]
  14. Cigizoglu, H.K. Estimation, forecasting and extrapolation of flow data by artificial neural networks. Int. Assoc. Sci. Hydrol. Bull. 2003, 48, 349–361. [Google Scholar] [CrossRef]
  15. Chen, L.; Sun, N.; Zhou, C.; Zhou, J.; Zhou, Y.; Zhang, J.; Zhou, Q. Flood Forecasting Based on an Improved Extreme Learning Machine Model Combined with the Backtracking Search Optimization Algorithm. Water 2018, 10, 1362. [Google Scholar] [CrossRef] [Green Version]
  16. Hag, S.H. Artificial Neural Networks (ANNs) for flood forecasting at Dongola Station in the River Nile, Sudan. Alex. Eng. J. 2014, 53, 655–662. [Google Scholar]
  17. Dtissibe, F.Y.; Ari, A.A.A.; Titouna, C.; Thiare, O.; Gueroui, A.M. Flood forecasting based on an artificial neural network scheme. Nat. Hazards 2020, 104, 1211–1237. [Google Scholar] [CrossRef]
  18. Wang, J.; Shi, P.; Jiang, P.; Hu, J.; Xiao, Z. Application of BP Neural Network Algorithm in Traditional Hydrological Model for Flood Forecasting. Water 2017, 9, 48. [Google Scholar] [CrossRef] [Green Version]
  19. Zhou, Y.; Guo, S.; Chang, F.J. Explore an evolutionary recurrent ANFIS for modelling multi-step-ahead flood forecasts. J. Hydrol. 2019, 570, 343–355. [Google Scholar] [CrossRef]
  20. Zhao, Y.; Nan, J.; Cui, F.Y.; Guo, L. Water quality forecast through application of BP neural network at Yuqiao reservoir. Zhejiang Univ. J. 2007, 8, 1482–1487. [Google Scholar] [CrossRef]
  21. Hu, J.W.; Zhou, Y.L.; Jin, J.L. Flood Forecasting Model on BP Neural Networks and Its Application in Flood Forecasting Systems. Hydrology 2015, 35, 20–25. [Google Scholar]
  22. Yan, W.; Chuanhai, W.; Ni, W.; Jingbo, C.; Qiang, X. Application of BP Neural Network in Tidal River Hydrodynamic Flood Forecasting. Water Power 2016, 042, 21–25. [Google Scholar]
  23. Heng, L. Study on classified flood forecasting based on neural network and genetic algorithms. Water Resour. Hydropower Eng. 2020, 1, 31–38. [Google Scholar]
  24. Zhu, W.; Xu, Y.; Jing, Z.; Jun-shi, H. Dahuofang Reservoir Flood Forecasting Based on BP Neural Network. Int. J. Hydroelectr. Energy 2016, 34, 31–34. [Google Scholar]
  25. Ju, Q.; Yu, Z.; Hao, Z.; Ou, G.; Zhao, J.; Liu, D. Division-based rainfall-runoff simulations with BP neural networks and Xinanjiang model. Neurocomputing 2009, 72, 2873–2883. [Google Scholar] [CrossRef]
  26. Toth, E.; Brath, A.; Montanari, A. Comparison of short-term rainfall prediction models for real-time flood forecasting. J. Hydrol. 2000, 239, 132–147. [Google Scholar] [CrossRef]
  27. Bao, Y.; Xiong, T.; Hu, Z. Multi-Step-Ahead Time Series Prediction using Multiple-Output Support Vector Regression. Neurocomputing 2014, 129, 482–493. [Google Scholar] [CrossRef] [Green Version]
  28. Zhou, Y.; Guo, S.; Xu, C.Y.; Chang, F.J.; Yin, J. Improving the Reliability of Probabilistic Multi-Step-Ahead Flood Forecasting by Fusing Unscented Kalman Filter with Recurrent Neural Network. Water 2020, 12, 578. [Google Scholar] [CrossRef] [Green Version]
  29. Chang, F.J.; Chen, P.A.; Lu, Y.R.; Huang, E.; Chang, K.Y. Real-time multi-step-ahead water level forecasting by recurrent neural networks for urban flood control. J. Hydrol. 2014, 517, 836–846. [Google Scholar] [CrossRef]
  30. Chen, P.A.; Chang, L.C.; Chang, F.J. Reinforced recurrent neural networks for multi-step-ahead flood forecasts. J. Hydrol. 2013, 497, 71–79. [Google Scholar] [CrossRef]
  31. Ding, Y.; Zhu, Y.; Feng, J.; Zhang, P.; Cheng, Z. Interpretable spatio-temporal attention LSTM model for flood forecasting. Neurocomputing 2020, 403, 348–359. [Google Scholar] [CrossRef]
  32. Kao, I.F.; Zhou, Y.; Chang, L.C.; Chang, F.J. Exploring a Long Short-Term Memory based Encoder-Decoder Framework for Multi-Step-Ahead Flood Forecasting. J. Hydrol. 2020, 583, 124631. [Google Scholar] [CrossRef]
  33. He, W.; Wan, J.; Zuo, Y.; Shi, J.; Wu, J.; Guo, J. Simulation of Ankang Reservoir Inflow Based on LSTM Model. J. Water Resour. Res. 2020, 9, 9. [Google Scholar]
  34. Liaw, A.; Wiener, M. Classification and Regression by randomForest. R News 2002, 23, 18–22. [Google Scholar]
  35. Tang, T.; Liang, Z.; Hu, Y.; Li, B.; Wang, J. Research on flood forecasting based on flood hydrograph generalization and random forest in Qiushui River basin, China. J. Hydroinform. 2020, 22, 1588–1602. [Google Scholar] [CrossRef]
  36. Li, B.; Yang, G.; Wan, R.; Dai, X.; Zhang, Y. Comparison of random forests and other statistical methods for the prediction of lake water level: A case study of the Poyang Lake in China. Hydrol. Res. 2016, 47, 69–83. [Google Scholar] [CrossRef] [Green Version]
  37. Alipour, A.; Ahmadalipour, A.; Abbaszadeh, P.; Moradkhani, H. Leveraging machine learning for predicting flash flood damage in the Southeast US. Environ. Res. Lett. 2020, 15, 024011. [Google Scholar] [CrossRef]
Figure 1. Map of major rainfall sites. After characteristic analysis, the above 10 rainfall stations are the main influencing factors in the flood forecast of Zhaishang. The green dot is the rainfall station, and the red dot is the forecast point of Zhaishang flow.
Figure 1. Map of major rainfall sites. After characteristic analysis, the above 10 rainfall stations are the main influencing factors in the flood forecast of Zhaishang. The green dot is the rainfall station, and the red dot is the forecast point of Zhaishang flow.
Water 13 02095 g001
Figure 2. Correlation coefficient matrix of predictors. The figure shows that the correlation of the predictors used in this model is strongly related to the flow of Zhaishang. 41022180 is the code of Luyukou rainfall station, 41022100 is the code of Geshang rainfall station, 41022200 is the code of Tianchidian rainfall station, 41022250 is the code of Baijiatan rainfall station, 41022300 is the code of Chakou rainfall station, 41022350 is Tuncun The code of the rainfall station, 41022400 is the code of Chang’an rainfall station, 41022450 is the code of Caozhuangtou rainfall station, 41022550 is the code of Xingjiashe rainfall station, 41000800 is the code of Zhaishang rainfall station. Flownow is the river flow at the Zhaishang site.
Figure 2. Correlation coefficient matrix of predictors. The figure shows that the correlation of the predictors used in this model is strongly related to the flow of Zhaishang. 41022180 is the code of Luyukou rainfall station, 41022100 is the code of Geshang rainfall station, 41022200 is the code of Tianchidian rainfall station, 41022250 is the code of Baijiatan rainfall station, 41022300 is the code of Chakou rainfall station, 41022350 is Tuncun The code of the rainfall station, 41022400 is the code of Chang’an rainfall station, 41022450 is the code of Caozhuangtou rainfall station, 41022550 is the code of Xingjiashe rainfall station, 41000800 is the code of Zhaishang rainfall station. Flownow is the river flow at the Zhaishang site.
Water 13 02095 g002
Figure 3. The structure of the random forest model. To return a new object from an input vector, put the input vector down each of the trees in the forest. Each tree gives a classification or a regression. The forest chooses the classification having the most votes (over all the trees in the forest), or it averages the prediction results of multiple internal decision trees.
Figure 3. The structure of the random forest model. To return a new object from an input vector, put the input vector down each of the trees in the forest. Each tree gives a classification or a regression. The forest chooses the classification having the most votes (over all the trees in the forest), or it averages the prediction results of multiple internal decision trees.
Water 13 02095 g003
Figure 4. In the figure, T means forecast T hours in advance, and M and N both represent the size of time windows. When the time window is N, the number of BP neural network models is N. Among them, 0 < M < N, T-N-M > 0.
Figure 4. In the figure, T means forecast T hours in advance, and M and N both represent the size of time windows. When the time window is N, the number of BP neural network models is N. Among them, 0 < M < N, T-N-M > 0.
Water 13 02095 g004
Figure 5. No. 19940806 MSBP model prediction. Pink is the true value, and blue is the predicted value.
Figure 5. No. 19940806 MSBP model prediction. Pink is the true value, and blue is the predicted value.
Water 13 02095 g005
Figure 6. The forecasting process of the No. 19940805 flood. The blue line is the actual measured flow of the Zhaishang site; the green line is the forecast three hours in advance; the brown line is the forecast six hours in advance.
Figure 6. The forecasting process of the No. 19940805 flood. The blue line is the actual measured flow of the Zhaishang site; the green line is the forecast three hours in advance; the brown line is the forecast six hours in advance.
Water 13 02095 g006
Figure 7. No. 20170727 MSBP model prediction. Pink is the true value, and blue is the predicted value.
Figure 7. No. 20170727 MSBP model prediction. Pink is the true value, and blue is the predicted value.
Water 13 02095 g007
Figure 8. The forecasting process of the No. 20170727 flood. The blue line is the actual measured flow of the Zhaishang site; the green line is the forecast three hours in advance; the brown line is the forecast six hours in advance.
Figure 8. The forecasting process of the No. 20170727 flood. The blue line is the actual measured flow of the Zhaishang site; the green line is the forecast three hours in advance; the brown line is the forecast six hours in advance.
Water 13 02095 g008
Figure 9. The forecasting process of the No. 19940805 flood. (a) Flood forecast results of No. 19940805 flood under the BP neural network model. (b) Flood forecast results of No. 19940805 flood under the random forest model. Among them, the blue line is the measured flow at the Zhaishang station, the red line is the predicted flow at the Zhaishang station, and the blue histogram is the rainfall value in the basin.
Figure 9. The forecasting process of the No. 19940805 flood. (a) Flood forecast results of No. 19940805 flood under the BP neural network model. (b) Flood forecast results of No. 19940805 flood under the random forest model. Among them, the blue line is the measured flow at the Zhaishang station, the red line is the predicted flow at the Zhaishang station, and the blue histogram is the rainfall value in the basin.
Water 13 02095 g009
Figure 10. The forecasting process of flood No. 20170727. (a) Flood forecast results of the No. 20170727 flood under the BP neural network model. (b) Flood forecast results of the No. 20170727 flood under the random forest model. Among them, the blue line is the measured flow at the Zhaishang station, the red line is the predicted flow at the Zhaishang station, and the blue histogram is the rainfall value in the basin.
Figure 10. The forecasting process of flood No. 20170727. (a) Flood forecast results of the No. 20170727 flood under the BP neural network model. (b) Flood forecast results of the No. 20170727 flood under the random forest model. Among them, the blue line is the measured flow at the Zhaishang station, the red line is the predicted flow at the Zhaishang station, and the blue histogram is the rainfall value in the basin.
Water 13 02095 g010
Figure 11. Scatter pictures of BP neural network and random forest for forecasting.
Figure 11. Scatter pictures of BP neural network and random forest for forecasting.
Water 13 02095 g011
Table 1. Accuracy grades of forecast results.
Table 1. Accuracy grades of forecast results.
ProjectCoefficient of CertaintyPass Rate/%
acc classADC >= 0.90QR > 85.0
B0.90 > DC >= 0.7085.0 > QR >= 70.0
C0.70 > DC >= 0.5070.0 > QR >= 60.0
Table 2. Analysis of BP neural network prediction results.
Table 2. Analysis of BP neural network prediction results.
NumberMeasured Flood Peak
/m 3 s 1
Forecast
Flood/m 3 s 1
Relative Error of
Flood Peak
Peak Present
Time Error/h
Coefficient of
Certainty
19940806202168.6913830.16531210.9353
19960803101101.3670550.00363400.9958
1999082792.686.3575570.06479400.9945
20010810103107.0182340.03883400.9928
20060903116106.3299110.08620610.9838
20080814177169.9880220.04519200.9924
20160719127127.1058440.00083400.9946
20160824116118.5480420.01724400.9972
20170723123123.7487950.00605200.9971
20170727256208.1455180.18593700.9812
201807134952.8345920.06123510.9468
pass rate 81.82%100%
Table 3. Analysis of random forest prediction results.
Table 3. Analysis of random forest prediction results.
NumberMeasured Flood Peak
/m 3 s 1
Forecast
Flood/m 3 s 1
Relative Error of
Flood Peak
Peak Present
Time Error/h
Coefficient of
Certainty
19940806202144.7438650.28217810.9325
1996080310180.1020790.19233410.7176
1999082792.691.1380900.01579810.6377
2001081010399.7807200.03125510.6756
20060903116101.2116310.12930110.9518
20080814177117.4923880.33892200.8848
20160719127120.2961110.05511800.9705
20160824116101.7800220.12931310.9093
20170723123110.2843020.10337920.8309
20170727256188.6683180.26563500.9639
201807134954.0211580.10247200.9351
pass rate 72.73%90.91%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhang, Y.; Ren, J.; Wang, R.; Fang, F.; Zheng, W. Multi-Step Sequence Flood Forecasting Based on MSBP Model. Water 2021, 13, 2095. https://doi.org/10.3390/w13152095

AMA Style

Zhang Y, Ren J, Wang R, Fang F, Zheng W. Multi-Step Sequence Flood Forecasting Based on MSBP Model. Water. 2021; 13(15):2095. https://doi.org/10.3390/w13152095

Chicago/Turabian Style

Zhang, Yue, Juanhui Ren, Rui Wang, Feiteng Fang, and Wen Zheng. 2021. "Multi-Step Sequence Flood Forecasting Based on MSBP Model" Water 13, no. 15: 2095. https://doi.org/10.3390/w13152095

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