An automatic optimization forecasting method for flood processes with coupled peak correction
By coupling the BP neural network algorithm with peak correction, the problem of low peak flow forecast accuracy in flood forecasting is solved, and high-precision flood forecasting is achieved, especially in flood peak forecasting, which improves the accuracy of the forecast.
Patent Information
- Application Number
- CN202310104380.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-13
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-02-13
AI Technical Summary
It is difficult for existing flood forecasting technology to take into account both forecast accuracy and forecast period, especially the problem of low peak flow forecast accuracy.
The BP neural network algorithm with coupled peak correction is used to determine the thresholds of different levels of flood peak flow through the super-threshold peak volume method, and establish super-threshold flood samples in each threshold interval for training to achieve high-precision flood peak forecasting.
It achieves high accuracy of flood forecasting, especially the improvement of flood peak forecasting accuracy. It can automatically identify rainfall events and flood peak thresholds, improving the accuracy of flood forecasting.
Smart Images

Figure CN116011678B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of basin flood prediction and management, and in particular to an automatic optimal forecasting method for flood processes coupled with peak correction. Background Art
[0002] Among many non-engineering measures, flood forecasting provides important technical support for flood control work. Accurate and timely flood forecasting can provide a scientific basis for flood control and disaster reduction. There are two main aspects of research on flood forecasting technology: one is to accurately and effectively extend the flood forecast forecast period to buy time for flood control and rescue; the other is to improve the accuracy of flood forecasting. According to accurate flood forecasting results, reasonable scheduling of flood control projects (reservoirs, dams, flood storage areas, etc.) can be achieved, floods can be effectively controlled, and the disaster reduction benefits of water conservancy projects can be fully utilized to minimize flood losses. Flood forecasting practice shows that the basin distributed hydrological model has a strong dependence on hydrological data, topographic data, underlying surface characteristics data, etc., and it is often difficult to take into account both forecast accuracy and forecast period. The use of neural network algorithms for flood forecasting may lead to low peak forecast accuracy due to the lack of large flow data samples. In practical applications, ensuring the forecast accuracy of peak flow is a key issue in flood forecasting. Summary of the invention
[0003] The present invention aims to propose a method for automatic optimization forecasting of flood processes with coupled peak correction, uses the Peak Over Threshold method to determine different levels of flood peak flow thresholds, and establishes basin over-threshold flood samples in each threshold interval. The BP neural network algorithm with coupled peak correction is used for training, thereby realizing an automatic optimization algorithm for flood processes and achieving the purpose of high-precision flood peak forecasting.
[0004] In order to achieve the above object, the present invention adopts the following technical solutions:
[0005] A flood process automatic optimization forecasting method coupled with peak correction, the method comprising the following steps:
[0006] Step 1: Collect the long-sequence daily-scale runoff data of hydrological stations within the basin and the basic geographic information of the basin controlled by the hydrological stations; the long-sequence daily-scale runoff data is used as the sample data set;
[0007] Step 2: performing data preprocessing, including filling in missing data and cleaning data of the runoff data, and removing multiple abnormal data values that appear periodically in the measured flow data recorded by the hydrological station;
[0008] Step 3: Use the declustering analysis method to divide and test flood events and determine the thresholds corresponding to each flood peak;
[0009] Step 4: Use the super-threshold peak volume method to calculate the optimal flood peak threshold. The specific steps are as follows:
[0010] Step 4-1: The flood peak sequence follows a generalized Pareto distribution with a cumulative distribution function. The generalized Pareto distribution is used to fit each extreme value sequence, and the cumulative distribution function F of the generalized Pareto distribution is calculated. (μ,σ,α) (x), as shown below:
[0011]
[0012] In the formula: α is the shape parameter, μ is the flood peak threshold, σ is the scale parameter, and x is the flood peak sequence sample data;
[0013] Step 4-2: Calculate the test value A of the AD test 2 , as shown below:
[0014]
[0015] Where: n is the number of flood peak sequence sample data, F(x) is the empirical cumulative distribution function of flood peak sequence sample data;
[0016] Determine the optimal flood peak threshold according to the AD test, that is, the test value A of the test 2 The closer it is to 0, the closer the corresponding peak sequence is to the assumed distribution;
[0017] Step 5: Introduce the peak correction function into the BP neural network algorithm. For the watershed with k optimal thresholds, define the peak correction coefficient matrix A as shown in the following formula:
[0018] A=[ξ1,ξ2,…,ξ k ]
[0019]
[0020] Where: m is the number of training times, is the sample expected value of the mth training, is the maximum expected value of the training sample, ξ k,m is the error peak correction coefficient of the traffic sequence corresponding to the kth threshold in the mth training, and L is the number of hidden layers;
[0021] is the input of the ith neuron in the lth layer, represents the output of the ith neuron in the lth layer, then the net input received from the previous layer is As shown below:
[0022]
[0023] The output of the i-th neuron node in the l-th layer is:
[0024]
[0025] When the number of network training times is m, the BP neural network error
[0026]
[0027] Where: N l is the total number of neuron nodes in the lth layer, m is the number of training times, t is the sample sequence number, f(x) is the logarithmic unipolar Sigmoid function, σ is the compression coefficient of the Sigmoid function, μ is the error correction amplification coefficient, is the connection weight between node i in layer l and node j in layer l-1, is the threshold of node i in layer l, L is the number of hidden layers, is the flow sequence output of the i-th neuron node in the l-th layer, is the flow sequence input of the i-th neuron node in the l-th layer;
[0028] The error correction amplification factor and the peak correction function generate a BP neural network coupled with peak correction;
[0029] Inputting the sample data into the BP neural network corrected by the coupling peak value to perform sample training until the error meets the preset prediction accuracy standard;
[0030] The flood peak forecast results are obtained after automatic optimization of the flood process.
[0031] Compared with the prior art, the present invention can achieve the following beneficial technical effects:
[0032] Through the improved flood forecasting BP algorithm, automatic division of rainfall events and automatic identification of flood peak thresholds can be achieved, and it has the characteristics of high flood forecasting accuracy, especially high flood peak forecasting accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is an overall flow chart of the automatic optimal forecasting method for flood processes with coupled peak correction according to the present invention. DETAILED DESCRIPTION
[0034] The technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings.
[0035] like Figure 1 As shown, it is an overall flow chart of a method for automatic optimization forecasting of flood process with coupled peak correction according to the present invention. The method comprises the following steps:
[0036] Step 1: Collect long-sequence daily-scale runoff data of hydrological stations within the basin and basic geographic information of the basin controlled by the hydrological stations; the long-sequence daily-scale runoff data is used as the sample data set required by the present invention;
[0037] Step 2: Data preprocessing, including data filling and data cleaning. The specific steps are as follows:
[0038] Step 2-1: Use Lagrange interpolation method to fill in the missing data of runoff data. The formula is as follows:
[0039]
[0040]
[0041] Where: L(Q) is the Lagrange interpolation polynomial, l a (Q) is the Lagrange basic polynomial, Q is the existing runoff data sequence, Q a is the ath independent variable position of the existing runoff data sequence, Q b is the bth independent variable position of the existing runoff data sequence, β a is the value of the corresponding function, n is the number of samples of the existing runoff data sequence, and a and b are the independent variable numbers of the runoff data sequence.
[0042] Step 2-2: Use the time series anomaly detection algorithm based on Grubbs' Test hypothesis test (SH-ESD algorithm) to clean the data and remove multiple abnormal data values that appear periodically in the measured flow data recorded by the hydrological station. The specific steps are as follows:
[0043] Step 2-2-1. Calculate the test statistic R of the pth runoff data in the existing runoff data sequence p , as shown below:
[0044]
[0045] in,
[0046]
[0047] MAD=median(|X p -median(X p )|) (5)
[0048] Where: is the median of the existing runoff data sequence samples, MAD is the absolute median difference of the existing runoff data sequence samples, ∈ is the number of outlier tests, Y p is the pth data in the existing runoff data sequence sample, median() is the median calculation function;
[0049] Step 2-2-2: Calculate the critical value Δ of the pth data in the existing runoff data sequence sample data set p :
[0050] 1≤p≤∈
[0051] c=α / (2n)
[0052] Where n is the number of samples of the existing runoff data series, α is the significance level parameter of the existing runoff data series, t c,n-c-1 is the critical value of t distribution with significance equal to c and degree of freedom equal to nc-1, and p is the sequence number of the existing runoff data;
[0053] Step 2-3: Compare the test statistic with the critical value. If R p >Δ p , then the sample point p is an outlier, and the above steps 2-1 and 2-2∈ are repeated until the algorithm ends;.
[0054] Step 3: Use the declustering analysis method proposed by the United States Water Resources Council (USWRC, 1976) to divide and test flood events and determine the thresholds corresponding to each flood peak. That is, continuous flood events must meet the following two conditions (this formula is an empirical formula):
[0055] λ<5days+log(S)
[0056] Q min >(3 / 4)min[Q1,Q2]
[0057] Where: λ is the time interval between two consecutive flood peaks (days), S is the basin area (km 2 ), Q min It is the minimum flow between two consecutive flood peaks Q1 and Q2;
[0058] Step 4: Use the super-threshold peak volume method to calculate the optimal flood peak threshold. The specific steps are as follows:
[0059] Step 4-1: The flood peak sequence follows a generalized Pareto distribution with a cumulative distribution function. The generalized Pareto distribution is used to fit each extreme value sequence, and the cumulative distribution function F of the generalized Pareto distribution is calculated. (μ,σ,α) (x), as shown below:
[0060]
[0061] Where: α is the shape parameter, μ is the threshold, σ is the scale parameter, and x is the flood peak sequence;
[0062] Step 4-2: Calculate the test value A of the AD test 2 , as shown below:
[0063]
[0064] Where: n is the number of sample data, F(x) is the empirical cumulative distribution function of the sample data, the closer the AD value is to 0, the closer the corresponding peak sequence is to the assumed distribution;
[0065] Anderson-Darling (AD) test is used to determine the optimal threshold. Specifically, considering the different flood peaks corresponding to flood events in the basin, the flood peak threshold is obtained according to the flood peak value classification, that is, for the initial sample with sample number n, the optimal flood peak threshold μ is calculated. n , and obtain the peak sequence {P z ; z = 1, ..., m}, m is the number of flood peak sequences;
[0066] For the remaining flood events with sample number k=nm, repeat the above calculation steps to obtain the threshold μ k , and finally complete the calculation of the corresponding thresholds of the peak flow of all independent flood events and determine the optimal threshold;
[0067] Step 5: Introduce the peak correction function into the BP neural network algorithm. For the watershed with k optimal thresholds, define the peak correction coefficient matrix A as shown in the following formula:
[0068] A=[ξ1,ξ2,…,ξ k ]
[0069] The matrix Q formed by the flow process of each flood event corresponding to k thresholds is shown in the following formula:
[0070]
[0071] The peak correction function is introduced into the BP neural network algorithm to modify the network weight in the direction of reducing the peak training error. Based on the idea of peak recognition, the network error correction tends to output a larger value of the sample, and the error peak correction coefficient ξ is defined as shown in the following formula:
[0072]
[0073] Where: m represents the number of training times, is the sample expected value of the mth training, is the maximum expected value of the training sample, ξ k,m is the error peak correction coefficient of the traffic sequence corresponding to the kth threshold in the mth training, and L is the number of hidden layers;
[0074] represents the input of the i-th neuron in the l-th layer, represents the output of the ith neuron in the lth layer, then the net input it receives from the previous layer is As shown below:
[0075]
[0076] The output of the i-th neuron node in the l-th layer is:
[0077]
[0078] When the number of network training times is m, the BP neural network error
[0079]
[0080] Where: N l is the total number of neuron nodes in the lth layer, m is the number of training times, t is the sample sequence number, f(x) is the logarithmic unipolar Sigmoid function, σ is the compression coefficient of the Sigmoid function, μ is the error correction amplification coefficient, is the connection weight between node i in layer l and node j in layer l-1, is the threshold of node i in layer l, L is the number of hidden layers, is the flow sequence output of the i-th neuron node in the l-th layer, is the flow sequence input of the i-th neuron node in the l-th layer;
[0081] The error correction amplification factor and the peak correction function generate a BP neural network coupled with peak correction;
[0082] Inputting the sample data into the BP neural network corrected by the coupling peak value to perform sample training until the error meets the preset prediction accuracy standard;
[0083] The flood peak forecast results are obtained after automatic optimization of the flood process.
[0084] The above technical solutions and specific implementation methods are only used to help understand the core idea of the present invention, but are not limited to the above implementation methods. Anyone should know that any structural changes made under the inspiration of the present invention, which have the same or similar technical solutions as the present invention, should be deemed to fall within the scope of protection of the present invention.
Claims
1. A flood process automatic optimization forecasting method coupled with peak correction, characterized in that: The method comprises the following steps: Step 1: Collect the long-sequence daily-scale runoff data of hydrological stations within the basin and the basic geographic information of the basin controlled by the hydrological stations; the long-sequence daily-scale runoff data is used as the sample data set; Step 2: performing data preprocessing, including filling in missing data and cleaning data of the runoff data, and removing multiple abnormal data values that appear periodically in the measured flow data recorded by the hydrological station; Step 3: Use the declustering analysis method to divide and test flood events and determine the thresholds corresponding to each flood peak; Step 4: Use the super-threshold peak volume method to calculate the optimal flood peak threshold. The specific steps are as follows: Step 4-1: The flood peak sequence follows a generalized Pareto distribution with a cumulative distribution function. The generalized Pareto distribution is used to fit each extreme value sequence, and the cumulative distribution function F of the generalized Pareto distribution is calculated. (μ,σ,α) (x), as shown below: In the formula: α is the shape parameter, μ is the flood peak threshold, σ is the scale parameter, and x is the flood peak sequence sample data; Step 4-2: Calculate the test value A of the AD test 2 , as shown below: Where: n is the number of flood peak sequence sample data, F(x) is the empirical cumulative distribution function of flood peak sequence sample data; The optimal flood peak threshold is determined according to the AD test. Specifically, considering that the flood events in the basin correspond to different flood peaks, the flood peak threshold is obtained according to the flood peak value classification, that is, for the initial sample with sample number n, the optimal flood peak threshold μ is calculated. n , and obtain the peak sequence {P z ; z = 1, ..., m}, m is the number of flood peak sequences; for the remaining flood events with sample number k = nm, the threshold μ is calculated k Finally, the calculation of the corresponding thresholds of the peak flow of all independent flood events is completed, and the optimal threshold is determined; the test value A 2 The closer it is to 0, the closer the corresponding peak sequence is to the assumed distribution; Step 5: Introduce the peak correction function into the BP neural network algorithm. For the watershed with k optimal thresholds, define the peak correction coefficient matrix A as shown in the following formula: A=[ξ1,ξ2,…,ξ k ] Where: m is the number of training times, is the sample expected value of the kth threshold in the mth training, is the maximum expected value of the training sample, ξ k,m is the error peak correction coefficient of the traffic sequence corresponding to the kth threshold in the mth training, and L is the number of hidden layers; is the input of the ith neuron in the lth layer, represents the output of the ith neuron in the lth layer, then the net input received from the previous layer is As shown below: The output of the i-th neuron node in the l-th layer is: When the number of network training times is m, the BP neural network error Where: N l is the total number of neuron nodes in the lth layer, m is the number of training times, t is the sample sequence number, f(x) is the logarithmic unipolar Sigmoid function, σ is the compression coefficient of the Sigmoid function, μ is the error correction amplification coefficient, is the connection weight between node i in layer l and node j in layer l-1, is the threshold of node i in layer l, L is the number of hidden layers, is the flow sequence output of the i-th neuron node in the l-th layer, is the flow sequence input of the i-th neuron node in the l-th layer; The error correction amplification factor and the peak correction function generate a BP neural network coupled with peak correction; Establishing a flood sample exceeding the threshold value in each threshold interval, inputting the sample data into the BP neural network with coupled peak correction, and performing sample training until the error meets the preset forecast accuracy standard; The flood peak forecast results are obtained after automatic optimization of the flood process.
2. The method for automatic optimization forecasting of flood process coupled with peak correction according to claim 1, characterized in that: In step 2, the threshold corresponding to each flood peak, i.e., the continuous flood event, must meet the following two conditions: λ<5 days+log(S) Q min >(3 / 4)min[Q1,Q2] Where: λ is the time interval between two consecutive flood peaks, S is the basin area, Q min It is the minimum flow between two consecutive flood peaks Q1 and Q2.
