A runoff interval forecasting method based on convolution optimization algorithm and Pyraformer neural network
Through the runoff interval forecasting method based on the convolution optimization algorithm and Pyraformer neural network, the model parameters are optimized by combining coverage, average width and symmetry indicators, which solves the problems of low parameter optimization efficiency and local optimality in the existing technology, and achieves more accurate Runoff interval forecast and error correction provide more comprehensive forecast information.
Patent Information
- Application Number
- CN202311112445.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-08-31
AI Technical Summary
The existing runoff interval forecast model parameter optimization efficiency is low, and the local optimization algorithm is easy to fall into local optimality, making it difficult to capture the global optimal result, and it is difficult to achieve the optimization of multiple indicators at the same time, resulting in insufficient forecast accuracy.
A runoff interval forecast method based on the convolution optimization algorithm and Pyraformer neural network is adopted. By collecting geographical potential dependence sequences, adjacent sequences and historical meteorological sequences, the coverage, average width and symmetry indicators are defined, and the Pyraformer model parameters are optimized, combined with fully connected predictions. Layer output upper and lower boundaries, and error correction strategies are designed to improve forecast accuracy.
A more accurate and comprehensive runoff interval forecast is achieved, which can effectively capture the long-term dependence of time series data, provide more reliable forecast results, and correct forecast deviations through error correction strategies to improve the accuracy and reliability of forecasts.
Smart Images

Figure CN117273200B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of runoff interval forecasting, and in particular to a runoff interval forecasting method based on a convolution optimization algorithm and a Pyraformer neural network. Background Art
[0002] Under the combined influence of global climate change and human activities, extreme weather events occur frequently, the air humidity near the surface and in the troposphere has increased, and heavy precipitation in human activity areas has also intensified, which has increased the risk of floods year by year. At the same time, the characteristics of the watershed have changed, and the phenomenon of runoff fragmentation has become increasingly serious, resulting in significant changes in hydrological elements such as river runoff.
[0003] The runoff prediction model is a mathematical model for predicting river runoff. It is a simplified representation of the real hydrological system. It predicts the changes in river runoff in the future based on the hydrological characteristics, meteorological conditions, topography and other information of the river basin. It usually consists of the upper and lower boundaries of the runoff forecast. In the runoff interval prediction, in addition to a complete runoff interval prediction model, the model parameters also determine the key to the prediction accuracy. The parameter problem of the runoff interval prediction model is mainly the manual trial and error method. This method requires researchers to have a high level of experience and knowledge, but it is not efficient and the results are difficult to achieve the best.
[0004] With the development of modern computer technology and the advent of the era of big data, more abundant data resources are easily available, and local optimization algorithms have emerged to optimize the parameters of the runoff interval forecast model, such as the Rosenbrock method, the Powell method and the Simplex method. The local optimization algorithm provides convenience for the parameter rate of the runoff interval forecast model to a certain extent. However, due to the nonlinearity of the runoff interval forecast model, the local optimization algorithm is easy to fall into the local optimum and it is difficult to capture the global optimal calibration result. Therefore, the global optimal algorithm is proposed, such as the particle swarm algorithm, the differential evolution algorithm, the simulated annealing algorithm, etc. These algorithms have high robustness and can effectively avoid the interference of local extreme values. However, in the actual runoff interval forecast, there are often requirements for multiple indicators such as flow and flow process, and these indicators restrict each other and cannot reach the optimal at the same time. Therefore, a more accurate runoff interval forecast method is needed to provide more comprehensive forecast information. Summary of the invention
[0005] Purpose of the invention: The purpose of the present invention is to provide a runoff interval prediction method based on a convolution optimization algorithm and a Pyraformer neural network for accurate and rapid prediction of the upper and lower boundary intervals of runoff.
[0006] Technical solution: To achieve the above purpose, the runoff interval prediction method based on convolution optimization algorithm and Pyraformer neural network described in the present invention comprises the following steps:
[0007] Step 1: Collect data, including geographical potential dependency sequence, adjacent sequence, periodic repetition sequence, and historical meteorological sequence of the runoff area;
[0008] Step 2: Define the coverage index PICP, the average width index PINAW, and the symmetry index PIS;
[0009] Step 3: Use the convolution optimization algorithm to optimize the Pyraformer neural network model as the prediction model for runoff interval;
[0010] Step 4: Use the data in step 1 to run the runoff interval prediction model obtained in step 3 to obtain the parameter feasible domain of the model; use the indicators in step 2 to define the composite objective function CSWC of the convolution optimization algorithm as the fitness function of the model, and optimize the runoff interval prediction model parameters within the parameter feasible domain;
[0011] Step 5: Input the data set in step 1 into the runoff interval prediction model after the parameters are optimized in step 4, extract the temporal and spatial dimension characteristics of the data, and combine the fully connected prediction output layer to predict the upper and lower boundaries of the runoff interval value; use the indicators in step 2 to evaluate and correct the accuracy of the upper and lower boundaries of the predicted runoff interval;
[0012] Step 6: Calculate the upper and lower boundary errors of the predicted runoff interval to obtain error data, and send the error data to the prediction model of the runoff interval after optimizing the parameters to obtain the prediction results of the error data;
[0013] Step 7: Design an error correction strategy and feed the prediction results of the error data into the error correction strategy to obtain the final interval prediction results.
[0014] The data in step 1 is the entire basin containing |V| = N sub-basins, and the sub-basin control site set is defined as V = {v1,...,v n ,...,v N}, n represents the nth sub-basin site; the dependency matrix between sub-basin control sites is L = {L geo ,L rel}, where L geo is the geographic adjacency matrix, L rel is the latent spatial dependency adjacency matrix;
[0015] For any two different sub-basins i and j, their geographic adjacency matrix and potential dependency matrix distribution are expressed as:
[0016]
[0017]
[0018] Among them, CEPMI (v i ,v j ) represents the Copula entropy partial mutual information between sub-basins i and j; L rel =1, indicating that the partial mutual information between sub-basins i and j is greater than the given threshold δ;
[0019] According to the distribution of geographic adjacency matrix and potential dependency matrix of any two different sub-basins i and j, the subscript T is intercepted along the time axis. g Time series is a geographically latent dependent series
[0020] To analyze the time dependence of the basin runoff process on periodicity and near time, we intercept the subscript T along the time axis. h , T p and T m The time series segments are the inputs of the model at the near moment, periodic repetition moment, and historical meteorological sequence components. The t0 time series set is represented as
[0021] set up represents the runoff value in sub-basin n at time t, then is the set of runoff values of all sub-basins at time t, i.e., the target value;
[0022] Construct a sample set (x t ,Y t ),t=1,2,..,N, N represents the number of sub-basins, that is, the number of sample points, where x t =[L,K,P,T] T The input data set includes geographic potential dependency sequence L, adjacent sequence K, periodic repeating sequence P, and historical meteorological sequence T data information.
[0023] The indicators described in step 2 are:
[0024] Coverage indicator PICP:
[0025]
[0026]
[0027] When the target value is covered by the forecast interval, the Boolean function c i The value of is 1, otherwise it is 0;
[0028] Average Width Index PINAW:
[0029]
[0030] Symmetry indicator PIS:
[0031]
[0032] Among them, N represents the size of the sample set, R is the value range of the target vector, i is the sample point, y i Represents the measured value of the i-th sample point; LB i and UB i Respectively represent y i lower and upper limits.
[0033] The optimization method described in step 3 is: introducing the convolution optimization algorithm MCOA, optimizing the parameters of the Pyraformer neural network model including the learning rate, the number of hidden layers, and the number of detail points to improve the convergence speed of the model. The specific optimization process is: inputting the number of initialized populations, the dimension of individual positions, the maximum number of iterations, the convolution kernel parameters, and the fitness function; performing a position update strategy; updating the global optimal solution and its position; and outputting the optimal solution to assign it to the parameters of the Pyraformer neural network model.
[0034] The method for obtaining the parameter feasible domain of the runoff interval prediction model in step 4 is: initialize the parameters of the runoff interval prediction model, input data, obtain the optimal parameter set θ of the runoff interval prediction model, make a small disturbance to the set θ, the disturbance size is ω, and obtain the parameter feasible domain F. The feasible domain F is expressed as:
[0035] F=[θ-ω≤θ≤θ+ω].
[0036] The formula of the composite objective function CSWC in step 4 is as follows:
[0037]
[0038] Among them, a, b, and c are the weight values of the indicators. The smaller the CSWC, the higher the coverage rate of the forecast interval, the smaller the width, and the higher the symmetry;
[0039] In the CSWC function, PIARW is used as the main measurement indicator, and a is set to a larger value to ensure better coverage of the forecast interval, thereby obtaining a more ideal forecast interval. In the CSWC function, PICP, PIARW and the indicator PIS are summed to avoid the extreme case where PIARW is 0 in the product form, that is, the upper and lower boundaries of the forecast interval coincide, and the forecast width is 0.
[0040] The upper and lower boundaries of the predicted runoff interval described in step 5 are as follows:
[0041] The geographic potential dependency sequence, adjacent sequence, periodic repetitive sequence, and historical meteorological element sequence are constructed into a large matrix data set and sent to the runoff interval prediction model. A multi-resolution C-ary tree is constructed using the coarse-scale construction module CSCM, in which the coarse-scale nodes summarize the information of the corresponding fine-scale C nodes; the pyramid attention module PAM is introduced to further capture the temporal and spatial dependencies of different ranges, and the attention mechanism in the pyramid diagram is used to transmit messages; the output of the fully connected network is used directly as the prediction of the upper and lower boundaries of the interval forecast;
[0042] The pyramid attention module (PAM) includes scale-time connection and scale-space connection. The scale-time connection forms a C-ary tree, in which each parent node has C child nodes. The finest scale of the pyramid graph is associated with the hourly observations of the original time series, and the nodes on the coarse scale are regarded as the time features of the time series such as day, week and month. The adjacent nodes are connected through the scale space to capture the long-range dependency relationship in the coarse scale.
[0043] In the attention mechanism, X and Y represent the input and output of a single attention, respectively. First, X is linearly transformed into three different matrices, that is, query Q = XW Q , key K = XW K , value V = XW V ,in W Q ,W K ,W V The weight matrix of the query, the weight matrix of the key, and the weight matrix of the value are respectively, and the q of the i-th row in Q i is any row in K, i.e., the key, then the output of the attention mechanism is:
[0044]
[0045] in, is the transpose of the lth row in K, D K Indicates the dimension of the key; i is the sample point, y i Represents the measured value of the i-th sample point.
[0046] The historical sequence is predicted in a single step. After the sequence is encoded by the pyramid attention module PAM, the features given by the last node in the pyramid diagram at all scales are collected, concatenated and input into a fully connected layer for prediction. Two prediction values are output, and the larger value is used as the upper boundary of the prediction interval at that moment, and the smaller value is used as the lower boundary of the prediction interval at that moment.
[0047] The evaluation method described in step 5 is:
[0048] When the value of the coverage index PICP is close to 1, it indicates that the more measured values the forecast interval covers, the better the prediction model of the runoff interval is; the average width index PINAW is as narrow as possible in an effective forecast interval with a high coverage rate, indicating that the forecast interval contains valid information;
[0049] When the forecast interval covers the measured value, the symmetry index PIS takes a value between 0 and 0.5; when the measured value is in the center of the forecast interval, that is, the best symmetry, the symmetry index PIS takes a value of 0; when the symmetry index PIS is closer to 0, the better the symmetry of the forecast interval with respect to the measured value; when the measured value is less than the lower boundary of the forecast interval and greater than the upper boundary of the forecast interval, it indicates that the symmetry index PIS takes a value greater than 0.5, and the forecast interval has a high degree of asymmetry with respect to the measured value;
[0050] The correction method is: according to the upper and lower boundaries of the prediction interval, the evaluation results of the coverage index PICP, the average width index PINAW and the symmetry index PIS are calculated, and given a confidence probability of 100 (1-α)%, the forecast interval prediction that cannot meet the index is corrected by the following formula:
[0051]
[0052] in, The upper and lower boundaries of the predicted runoff interval, α is the significance level, and the prediction interval is expressed as The target vector is within the forecast interval The probability of
[0053] The error data in step 6 is expressed as:
[0054]
[0055] Where UB_Err i , and UB con Respectively represent the upper boundary error, the forecast upper boundary and the set upper boundary; LB_Err i , and LB con Respectively represent the lower boundary error, the forecast lower boundary and the set lower boundary; the forecast boundary and It is the prediction result of the runoff interval prediction model and the value after the result is corrected by three indicators;
[0056] The method for obtaining the prediction result of the error data is: i and LB_Err iThe error data is input into the prediction model of the runoff interval to obtain the prediction results of the error data, which are the upper boundary prediction results UB_Err pre And the lower boundary prediction result LB_Err pre .
[0057] The design process of the error correction strategy described in step 7 is:
[0058] Prediction results of the runoff interval prediction model after optimizing parameters and Calculate the coverage index PICP value;
[0059] If the coverage index PICP value is higher than the set confidence level, the adjustment strategy is as follows: then reducing the average width index PINAW and the symmetry index PIS is more important for improving the quality of the forecast interval than increasing the coverage index PICP;
[0060] When the upper boundary error UB_Err pre When it is positive, it indicates the upper boundary prediction result UB pre Greater than the set upper boundary UB con , then the upper boundary prediction result UB pre Subtract the upper boundary error UB_Err pre , to reduce the width of the forecast interval;
[0061] When the upper boundary error UB_Err pre When negative, it indicates the upper boundary prediction result UB pre Less than the set upper boundary UB con , then the upper boundary error UB_Err pre Converted to zero to avoid increasing the forecast interval width; LB pre Adjustment strategy and UB pre on the contrary;
[0062] If the coverage index PICP value is lower than the set confidence level, it is more important to increase PICP than to reduce PINAW and PIS. Therefore, the adjustment strategy is: upper boundary error UB_Err pre and the lower boundary error LB_Err pre Keep it unchanged to ensure that the forecast interval boundary is close to the set interval boundary; when the coverage index PICP increases, the quality of the forecast interval is improved;
[0063] The final interval prediction result obtained by the difference correction strategy is expressed as:
[0064]
[0065] Among them, UB cal and LB calrepresent the corrected upper boundary and the corrected lower boundary respectively.
[0066] Beneficial effects: The present invention has the following advantages: 1. The prediction model of the runoff interval constructed by this method can better process time series data and capture the long-term dependence relationship between data, and combined with the fully connected prediction layer, output the predicted upper and lower boundaries to form a complete forecast interval, providing more comprehensive forecast information; 2. The coverage index PICP, the average width index PINAW, and the symmetry index PIS are used to evaluate and correct the accuracy of the upper and lower boundaries of the predicted runoff interval to obtain a more accurate predicted runoff interval; 3. An error correction strategy is proposed to adjust the upper and lower boundaries of the forecast interval, and the possible deviations in the forecast interval are corrected in time to provide more reliable prediction results. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is a schematic diagram of the process of the present invention;
[0068] Figure 2 This is the flow chart of the Pyraformer neural network model. DETAILED DESCRIPTION
[0069] The technical solution of the present invention is described in detail below in conjunction with the embodiments and drawings.
[0070] like Figure 1 As shown, a runoff interval prediction method based on convolution optimization algorithm and Pyraformer neural network includes the following steps:
[0071] Step 1: Collect data, including geographical potential dependency sequence, adjacent sequence, periodic repetition sequence, and historical meteorological sequence of the runoff area;
[0072] Step 2: Define the coverage index PICP, the average width index PINAW, and the symmetry index PIS;
[0073] Step 3: Use the convolution optimization algorithm to optimize the Pyraformer neural network model as the prediction model for runoff interval;
[0074] Step 4: Use the data from step 1 to run the prediction model of the runoff interval and obtain the parameter feasible domain of the model; use the coverage index PICP, the average width index PINAW, and the symmetry index PIS to define the composite objective function CSWC of the convolution optimization algorithm as the fitness function of the model, and optimize the prediction model parameters of the runoff interval within the parameter feasible domain;
[0075] Step 5: Input the data set in step 1 into the prediction model of the runoff interval after optimizing the parameters to extract the temporal and spatial dimension characteristics of the data, and combine the fully connected prediction output layer to predict the upper and lower boundaries of the runoff interval value; use the coverage index PICP, the average width index PINAW, and the symmetry index PIS to evaluate and correct the accuracy of the upper and lower boundaries of the predicted runoff interval;
[0076] Step 6: Calculate the upper and lower boundary errors of the predicted runoff interval to obtain error data, and send the error data to the prediction model of the runoff interval after optimizing the parameters to obtain the prediction results of the error data;
[0077] Step 7: Design an error correction strategy and feed the prediction results of the error data into the error correction strategy to obtain the final interval prediction results.
[0078] The data in step 1 is the entire basin containing |V| = N sub-basins, and the sub-basin control site set is defined as V = {v1,...,v n ,...,v N}, n represents the nth sub-basin site; the dependency matrix between sub-basin control sites is L = {L geo ,L rel}, where L geo is the geographic adjacency matrix, L rel is the latent spatial dependency adjacency matrix;
[0079] For any two different sub-basins i and j, their geographic adjacency matrix and potential dependency matrix distribution are expressed as:
[0080]
[0081]
[0082] Among them, CEPMI (v i ,v j ) represents the Copula entropy partial mutual information between sub-basins i and j; L rel =1, indicating that the partial mutual information between sub-basins i and j is greater than the given threshold δ;
[0083] According to the distribution of geographic adjacency matrix and potential dependency matrix of any two different sub-basins i and j, the subscript T is intercepted along the time axis. g Time series is a geographically latent dependent series
[0084] To analyze the time dependence of the basin runoff process on periodicity and near time, we intercept the subscript T along the time axis. h , T p and T mThe time series segments are the inputs of the model at the near moment, periodic repetition moment, and historical meteorological sequence components. The t0 time series set is represented as
[0085] set up represents the runoff value in sub-basin n at time t, then is the set of runoff values of all sub-basins at time t, i.e., the target value;
[0086] Construct a sample set (x t ,Y t ),t=1,2,..,N, N represents the number of sub-basins, that is, the number of sample points, where x t =[L,K,P,T] T The input data set includes geographic potential dependency sequence L, adjacent sequence K, periodic repeating sequence P, and historical meteorological sequence T data information.
[0087] The indicators described in step 2 are:
[0088] Coverage indicator PICP:
[0089]
[0090]
[0091] When the target value is covered by the forecast interval, the Boolean function c i The value of is 1, otherwise it is 0;
[0092] Average Width Index PINAW:
[0093]
[0094] Symmetry indicator PIS:
[0095]
[0096] Among them, N represents the size of the sample set, R is the value range of the target vector, i is the sample point, y i Represents the measured value of the i-th sample point; LB i and UB i Respectively represent y i lower and upper limits.
[0097] The optimization method described in step 3 is: introducing the convolution optimization algorithm MCOA, optimizing the parameters of the Pyraformer neural network model including the learning rate, the number of hidden layers, and the number of detail points to improve the convergence speed of the model. The specific optimization process is: inputting the number of initialized populations, the dimension of individual positions, the maximum number of iterations, the convolution kernel parameters, and the fitness function; performing a position update strategy; updating the global optimal solution and its position; outputting the optimal solution and assigning it to the parameters of the Pyraformer neural network model, such as Figure 2 shown.
[0098] The method for obtaining the parameter feasible domain of the runoff interval prediction model in step 4 is: initialize the parameters of the runoff interval prediction model, input data, obtain the optimal parameter set θ of the runoff interval prediction model, make a small disturbance to the set θ, the disturbance size is ω, and obtain the parameter feasible domain F. The feasible domain F is expressed as:
[0099] F=[θ-ω≤θ≤θ+ω].
[0100] The formula of the composite objective function CSWC in step 4 is as follows:
[0101]
[0102] Among them, a, b, and c are the weight values of the indicators. The smaller the CSWC, the higher the coverage rate of the forecast interval, the smaller the width, and the higher the symmetry;
[0103] In the CSWC function, PIARW is used as the main measurement indicator, and a is set to a larger value to ensure better coverage of the forecast interval, thereby obtaining a more ideal forecast interval. In the CSWC function, PICP, PIARW and the indicator PIS are summed to avoid the extreme case where PIARW is 0 in the product form, that is, the upper and lower boundaries of the forecast interval coincide, and the forecast width is 0.
[0104] The upper and lower boundaries of the predicted runoff interval described in step 5 are as follows:
[0105] The geographic potential dependency sequence, adjacent sequence, periodic repetitive sequence, and historical meteorological element sequence are constructed into a large matrix data set and sent to the runoff interval prediction model. A multi-resolution C-ary tree is constructed using the coarse-scale construction module CSCM, in which the coarse-scale nodes summarize the information of the corresponding fine-scale C nodes; the pyramid attention module PAM is introduced to further capture the temporal and spatial dependencies of different ranges, and the attention mechanism in the pyramid diagram is used to transmit messages; the output of the fully connected network is used directly as the prediction of the upper and lower boundaries of the interval forecast;
[0106] The pyramid attention module (PAM) includes scale-time connection and scale-space connection. The scale-time connection forms a C-ary tree, in which each parent node has C child nodes. The finest scale of the pyramid graph is associated with the hourly observations of the original time series, and the nodes on the coarse scale are regarded as the time features of the time series such as day, week and month. The adjacent nodes are connected through the scale space to capture the long-range dependency relationship in the coarse scale.
[0107] In the attention mechanism, X and Y represent the input and output of a single attention, respectively. First, X is linearly transformed into three different matrices, that is, query Q = XW Q , key K = XW K , value V = XW V ,in W Q ,W K ,W V The weight matrix of the query, the weight matrix of the key, and the weight matrix of the value are respectively, and the q of the i-th row in Q i is any row in K, i.e., the key, then the output of the attention mechanism is:
[0108]
[0109] in, is the transpose of the lth row in K, D K Indicates the dimension of the key; i is the sample point, y i Represents the measured value of the i-th sample point.
[0110] The historical sequence is predicted in a single step. After the sequence is encoded by the pyramid attention module PAM, the features given by the last node in the pyramid diagram at all scales are collected, concatenated and input into a fully connected layer for prediction. Two prediction values are output, and the larger value is used as the upper boundary of the prediction interval at that moment, and the smaller value is used as the lower boundary of the prediction interval at that moment.
[0111] The evaluation method described in step 5 is:
[0112] When the value of the coverage index PICP is close to 1, it indicates that the more measured values the forecast interval covers, the better the prediction model of the runoff interval is; the average width index PINAW is as narrow as possible in an effective forecast interval with a high coverage rate, indicating that the forecast interval contains valid information;
[0113] When the forecast interval covers the measured value, the symmetry index PIS takes a value between 0 and 0.5; when the measured value is in the center of the forecast interval, that is, the best symmetry, the symmetry index PIS takes a value of 0; when the symmetry index PIS is closer to 0, the better the symmetry of the forecast interval with respect to the measured value; when the measured value is less than the lower boundary of the forecast interval and greater than the upper boundary of the forecast interval, it indicates that the symmetry index PIS takes a value greater than 0.5, and the forecast interval has a high degree of asymmetry with respect to the measured value;
[0114] The correction method is: according to the upper and lower boundaries of the prediction interval, the evaluation results of the coverage index PICP, the average width index PINAW and the symmetry index PIS are calculated, and given a confidence probability of 100 (1-α)%, the forecast interval prediction that cannot meet the index is corrected by the following formula:
[0115]
[0116] in, The upper and lower boundaries of the predicted runoff interval, α is the significance level, and the prediction interval is expressed as The target vector is within the forecast interval The probability of
[0117] The error data in step 6 is expressed as:
[0118]
[0119] Where UB_Err i , and UB con Respectively represent the upper boundary error, the forecast upper boundary and the set upper boundary; LB_Err i , and LB con Respectively represent the lower boundary error, the forecast lower boundary and the set lower boundary; the forecast boundary and It is the prediction result of the runoff interval prediction model and the value after the result is corrected by three indicators;
[0120] The method for obtaining the prediction result of the error data is: i and LB_Err i The error data is input into the prediction model of the runoff interval to obtain the prediction results of the error data, which are the upper boundary prediction results UB_Err pre And the lower boundary prediction result LB_Err pre .
[0121] The design process of the error correction strategy described in step 7 is:
[0122] Prediction results of the runoff interval prediction model after optimizing parameters and Calculate the coverage index PICP value;
[0123] If the coverage index PICP value is higher than the set confidence level, the adjustment strategy is as follows: then reducing the average width index PINAW and the symmetry index PIS is more important for improving the quality of the forecast interval than increasing the coverage index PICP;
[0124] When the upper boundary error UB_Err pre When it is positive, it indicates the upper boundary prediction result UB pre Greater than the set upper boundary UB con , then the upper boundary prediction result UB pre Subtract the upper boundary error UB_Err pre , to reduce the width of the forecast interval;
[0125] When the upper boundary error UB_Err pre When negative, it indicates the upper boundary prediction result UB pre Less than the set upper boundary UB con , then the upper boundary error UB_Err pre Converted to zero to avoid increasing the forecast interval width; LB pre Adjustment strategy and UB pre on the contrary;
[0126] If the coverage index PICP value is lower than the set confidence level, it is more important to increase PICP than to reduce PINAW and PIS. Therefore, the adjustment strategy is: upper boundary error UB_Err pre and the lower boundary error LB_Err pre Keep it unchanged to ensure that the forecast interval boundary is close to the set interval boundary; when the coverage index PICP increases, the quality of the forecast interval is improved;
[0127] The final interval prediction result obtained by the difference correction strategy is expressed as:
[0128]
[0129] Among them, UB cal and LB cal represent the corrected upper boundary and the corrected lower boundary respectively.
Claims
1. A runoff interval prediction method based on convolution optimization algorithm and Pyraformer neural network, characterized in that: The following steps are involved: Step 1: Collect data, including geographical potential dependency sequence, adjacent sequence, periodic repetition sequence, and historical meteorological sequence of the runoff area; Step 2: Define the coverage index PICP, the average width index PINAW, and the symmetry index PIS; Step 3: Use the convolution optimization algorithm to optimize the Pyraformer neural network model as the prediction model for runoff interval; Step 4: Use the data in step 1 to run the runoff interval prediction model obtained in step 3 to obtain the parameter feasible domain of the runoff interval prediction model; use the indicators in step 2 to define the composite objective function CSWC of the convolution optimization algorithm as the fitness function of the model, and optimize the runoff interval prediction model parameters within the parameter feasible domain; Step 5: Input the data set in step 1 into the runoff interval prediction model after the parameters are optimized in step 4, extract the temporal and spatial dimension characteristics of the data, and combine the fully connected prediction output layer to predict the upper and lower boundaries of the runoff interval value; use the indicators in step 2 to evaluate and correct the accuracy of the upper and lower boundaries of the predicted runoff interval; Step 6: Calculate the upper and lower boundary errors of the predicted runoff interval to obtain error data, and send the error data to the prediction model of the runoff interval after optimizing the parameters to obtain the prediction results of the error data; Step 7: Design an error correction strategy and feed the prediction results of the error data into the error correction strategy to obtain the final interval prediction results; The data in step 1 are control sites of |V|=N sub-basins, and the sub-basin control site set is defined as V={v1,...,v n ,...,v N }, vn represents the nth sub-basin control site; the dependency matrix between sub-basin control sites is L Z ={L geo ,L rel }, where L geo is the geographic adjacency matrix, L rel is the latent spatial dependency adjacency matrix; For any two different sub-basins i and j, their geographic adjacency matrix and potential spatial dependency adjacency matrix distribution are expressed as: Among them, CEPMI (v i ,v j ) represents the Copula entropy partial mutual information between sub-basins i and j; L rel =1, indicating that the partial mutual information between sub-basins i and j is greater than the given threshold δ; According to the distribution of the geographic adjacency matrix and the potential spatial dependency adjacency matrix of any two different sub-basins i and j, the subscript T is intercepted along the time axis. g Time series is a geographically latent dependent series To analyze the time dependence of the basin runoff process on periodicity and near time, we intercept the subscript T along the time axis. h , T p and T m The time series segments are the input of the model in the adjacent sequence, historical meteorological sequence, and periodic repetitive sequence components. The sequence sets at time t0 are represented as set up represents the runoff value in sub-basin n at time t, then is the set of runoff values of all sub-basins at time t, i.e., the target value; Construct a sample set (x t ,Y t ),t=1,2,..,N, N represents the number of sub-basins, that is, the number of sample points, where x t =[L,K,P,T] T The input data set includes the geographical potential dependency sequence L, adjacent sequence K, periodic repeating sequence P, and historical meteorological sequence T data information; Among them, the indicators described in step 2 are: Coverage indicator PICP: When the target value is covered by the forecast interval, the Boolean function c i The value of is 1, otherwise it is 0; Average Width Index PINAW: Symmetry indicator PIS: Where N is the number of sub-basins, R is the value range of the target vector, i is the sub-basin, y i represents the runoff value of the ith sub-basin at time t; LB i and UB i Respectively represent y i The lower and upper limits of The formula of the composite objective function CSWC in step 4 is as follows: Among them, a and b are the weight values of the indicators. The smaller the CSWC, the higher the coverage rate of the forecast interval, the smaller the width, and the higher the symmetry; In the CSWC function, the average width index PINAW is used as the main measurement index, and a is set to a larger value to ensure that the coverage of the forecast interval is better, and then a more ideal forecast interval is obtained. The coverage index PICP, the average width index PINAW and the symmetry index PIS in the CSWC function are summed to avoid the extreme case where the average width index PINAW is 0 in the product form, that is, the upper and lower boundaries of the forecast interval coincide, and the forecast width is 0; The evaluation method in step 5 is: When the value of the coverage index PICP is close to 1, it indicates that the more measured values the forecast interval covers, the better the prediction model of the runoff interval is; the average width index PINAW is as narrow as possible in an effective forecast interval with a high coverage rate, indicating that the forecast interval contains valid information; When the forecast interval covers the measured value, the symmetry index PIS takes a value between 0 and 0.5; when the measured value is in the center of the forecast interval, that is, the best symmetry, the symmetry index PIS takes a value of 0; when the symmetry index PIS is closer to 0, the better the symmetry of the forecast interval with respect to the measured value; when the measured value is less than the lower boundary of the forecast interval and greater than the upper boundary of the forecast interval, it indicates that the symmetry index PIS takes a value greater than 0.5, and the forecast interval has a high degree of asymmetry with respect to the measured value; The correction method is: according to the upper and lower boundaries of the prediction interval, the evaluation results of the coverage index PICP, the average width index PINAW and the symmetry index PIS are calculated, and given a confidence probability of 100 (1-α)%, the forecast interval prediction that cannot meet the index is corrected by the following formula: in, The upper and lower boundaries of the predicted runoff interval, α is the significance level, and the prediction interval is expressed as The target vector is within the forecast interval The probability of i is the sub-basin; The design process of the error correction strategy described in step 7 is as follows: Prediction results of the runoff interval prediction model after optimizing parameters and Calculate the coverage index PICP value; If the coverage index PICP value is higher than the set confidence level, the adjustment strategy is as follows: When the upper boundary error UB_Err i When it is positive, it indicates the upper boundary prediction result UB_Err pre Greater than the set upper boundary UB con , then the upper boundary prediction result UB_Err pre Subtract the upper boundary error UB_Err i , to reduce the width of the forecast interval; When the upper boundary error UB_Err i When negative, it indicates the upper boundary prediction result UB_Err pre Less than the set upper boundary UB con , then the upper boundary error UB_Err i Converted to zero to avoid increasing the forecast interval width; LB_Err i Adjustment strategy and UB_Err i on the contrary; If the coverage index PICP value is lower than the set confidence level, the adjustment strategy is: upper boundary error UB_Err i and lower boundary error LB_Err i Keep it unchanged to ensure that the forecast interval boundary is close to the set interval boundary; when the coverage index PICP increases, the quality of the forecast interval is improved; The final interval prediction result obtained through the error correction strategy is expressed as: Among them, UB cal and LB cal Represents the upper and lower boundaries of the correction, LB_Err pre The lower boundary prediction result.
2. The runoff interval prediction method based on convolution optimization algorithm and Pyraformer neural network according to claim 1 is characterized in that: The method of using the convolution optimization algorithm to optimize the Pyraformer neural network model in step 3 is: introducing the convolution optimization algorithm COA, optimizing the parameters of the Pyraformer neural network model including the learning rate, the number of hidden layers, and the number of detail points to improve the convergence speed of the model. The specific optimization process is: inputting the number of initialized populations, the dimension of individual positions, the maximum number of iterations, the convolution kernel parameters, and the fitness function; performing a position update strategy; updating the global optimal solution and its position; and outputting the optimal solution to assign it to the parameters of the Pyraformer neural network model.
3. The runoff interval prediction method based on convolution optimization algorithm and Pyraformer neural network according to claim 1 is characterized in that: The method for obtaining the parameter feasible domain of the runoff interval prediction model in step 4 is: initialize the parameters of the runoff interval prediction model, input data, obtain the optimal parameter set θ of the runoff interval prediction model, make a small disturbance to the set θ, the disturbance size is ω, and obtain the parameter feasible domain F. The feasible domain F is expressed as: F=[θ-ω≤θ≤θ+ω].
4. The runoff interval prediction method based on convolution optimization algorithm and Pyraformer neural network according to claim 1 is characterized in that: The upper and lower boundaries of the predicted runoff interval described in step 5 are as follows: The geographic potential dependency sequence, adjacent sequence, periodic repetitive sequence, and historical meteorological element sequence are constructed into a large matrix data set and sent into the runoff interval prediction model. The coarse-scale construction module CSCM is used to construct a multi-resolution C-ary tree, in which the coarse-scale nodes summarize the information of the corresponding fine-scale C nodes. The pyramid attention module PAM is introduced to further capture the temporal and spatial dependencies of different ranges, and the attention mechanism in the pyramid diagram is used to transmit messages. The output of the fully connected network is used directly as the prediction of the upper and lower boundaries of the interval forecast, with the larger value as the upper boundary of the prediction interval and the smaller value as the lower boundary of the prediction interval.
5. The runoff interval prediction method based on convolution optimization algorithm and Pyraformer neural network according to claim 1 is characterized in that: The error data in step 6 is expressed as: Where UB_Err i , and UB con Respectively represent the upper boundary error, the forecast upper boundary and the set upper boundary; LB_Err i , and LB con Respectively represent the lower boundary error, the forecast lower boundary and the set lower boundary; the forecast boundary and It is the prediction result of the runoff interval prediction model and the value after the result is corrected by three indicators, i is the sub-basin; The method for obtaining the prediction result of the error data is: i and LB_Err i The error data is input into the prediction model of the runoff interval to obtain the prediction results of the error data, which are the upper boundary prediction results UB_Err pre And the lower boundary prediction result LB_Err pre .
Citation Information
Patent Citations
An ensemble rainfall forecast and real-time flood probability forecast coupling method
CN106991278A
RBF neural network medium-and-long-term runoff prediction method based on runoff production mechanism
CN110188922A
Flood interval forecasting method based on multi-target random vector function connection network
CN110458722A
Complex reservoir group optimization scheduling method considering multi-source forecast error uncertainty
CN112711896A
Runoff prediction method and system and computer storage medium
CN113570159A
