A medium- and long-term runoff probability forecasting method and system

By coupling the three-layer Bayesian inference framework and the support vector regression model, the parameters and kernel functions are optimized to generate probabilistic forecast results for medium and long-term runoff, which solves the problem of the inability to consider the uncertainty of future runoff in the existing technology and reduces the cost of reservoir dispatching. risk, improving the accuracy and reliability of forecasts.

CN113592144BActive Publication Date: 2024-09-27TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110720101.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-28
Publication Date
2024-09-27
Estimated Expiration
2041-06-28

AI Technical Summary

Technical Problem

Existing medium- and long-term runoff forecast models cannot effectively consider the uncertainty of future runoff, resulting in greater risks in reservoir operation.

Method used

The coupled three-layer Bayesian inference framework and support vector regression model are used to determine the kernel function and Bayesian inference through automatic correlation, optimize the model parameters and kernel function, and generate probabilistic forecast results for runoff.

Benefits of technology

It effectively reflects the uncertainty of future runoff, reduces the risk of reservoir dispatch based on runoff forecast, and improves the accuracy and reliability of the forecast.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113592144B
    Figure CN113592144B
Patent Text Reader

Abstract

The present invention provides a medium- and long-term runoff probability forecasting method and system, the method comprising: constructing a forecasting factor set in a target area according to a forecast period, forecasting factors and historical runoff data corresponding to the forecasting factors; inputting the forecasting factor set into a trained medium- and long-term runoff forecasting model to obtain a runoff probability forecasting normal distribution result, wherein the trained medium- and long-term runoff forecasting model is obtained by training an improved support vector regression model based on a sample forecasting factor set, and the improved support vector regression model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model; performing data processing on the runoff probability forecasting normal distribution result to obtain a runoff probability forecasting result of the target area within the forecast period. The present invention solves the problem that traditional data-driven models cannot generate medium- and long-term runoff probability forecasts, and better reflects the uncertainty of future runoff.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medium- and long-term runoff forecasting, and in particular to a medium- and long-term runoff probability forecasting method and system. Background Art

[0002] Medium- and long-term runoff forecasts generally refer to runoff forecasts with a forecast period of 3 days to 1 year and exceeding the confluence time of the basin. They can provide effective future runoff information and play an important role in reservoir power generation planning, drought and flood prevention, water resources planning and management, and comprehensive utilization, etc. Under the current climate change conditions, the future water resources are extremely uncertain, so medium- and long-term runoff forecasts that can provide future information have received widespread attention.

[0003] In the existing medium- and long-term runoff forecasting research, since runoff is affected by many factors such as climate, vegetation, topography and human activities, river runoff sequences have obvious random and nonlinear characteristics and high variability, which makes it difficult to accurately establish the relationship between future runoff and forecasting factors. Therefore, in the current research, many data-driven models are applied to medium- and long-term runoff forecasting to simulate the nonlinear characteristics of runoff sequences.

[0004] However, in the medium- and long-term runoff forecast based on data-driven models, only deterministic forecast results can be produced, and the uncertainty of future runoff cannot be considered. But in fact, due to the continuous increase in greenhouse gas emissions such as carbon dioxide caused by human activities, the global climate has changed significantly in the past, and will show a more complex trend in the future. This changing climate condition leads to greater uncertainty in the changes in water resources now and in the future. In this case, reservoir operation based on deterministic runoff forecast results will bring greater risks to the practical application of runoff forecast. Therefore, a method that can generate probabilistic forecasts is needed to generate probabilistic runoff forecasts to reflect the uncertainty of future runoff, thereby reducing the risk of reservoir operation based on runoff forecasts. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention provides a medium- and long-term runoff probability forecasting method and system.

[0006] The present invention provides a medium- and long-term runoff probability forecasting method, comprising:

[0007] Constructing a set of forecast factors in a target area according to the forecast period, the forecast factors and the historical runoff data corresponding to the forecast factors;

[0008] Inputting the prediction factor set into a trained medium- and long-term runoff prediction model to obtain a runoff probability prediction normal distribution result, wherein the trained medium- and long-term runoff prediction model is obtained by training an improved support vector regression model based on the sample prediction factor set, and the improved support vector regression model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model;

[0009] Data processing is performed on the normal distribution results of the runoff probability forecast to obtain the runoff probability forecast results of the target area within the forecast period.

[0010] According to a medium- and long-term runoff probability forecasting method provided by the present invention, the trained medium- and long-term runoff forecasting model is obtained by the following steps:

[0011] Based on a preset forecast period and a lag period of each sample forecast factor, a sample forecast amount and a sample forecast factor set corresponding to the sample forecast amount are constructed through sample runoff data and the sample forecast factors;

[0012] The sample forecast quantity and the sample forecast factor set are input into an improved support vector regression model for training to obtain a trained medium- and long-term runoff forecast model.

[0013] According to a medium- and long-term runoff probability forecasting method provided by the present invention, the kernel function of the improved support vector regression model is an auto-correlation determination kernel function.

[0014] According to a medium- and long-term runoff probability forecasting method provided by the present invention, the sample forecast amount and the sample forecast factor set are input into an improved support vector regression model for training to obtain a trained medium- and long-term runoff forecasting model, including:

[0015] Based on the initial kernel function and the initial regularization coefficient, the improved support vector regression model is trained according to the sample prediction quantity and the sample prediction factor set;

[0016] In each round of training, the regularization coefficient of the current round is obtained according to the training results and the regularization coefficient formula. If the regularization coefficient of the current round is equal to the regularization coefficient of the previous round, the optimal regularization coefficient of the improved support vector regression model is obtained. Otherwise, the regularization coefficient of the current round is used as the regularization coefficient for the next round of training. The regularization coefficient formula is:

[0017]

[0018]

[0019]

[0020]

[0021] Among them, γ′ represents the optimal regularization coefficient, N represents the number of samples, and γ eff Indicates the number of valid parameters, E W Indicates the complexity of the model structure, E D represents the fitting error, α represents the model parameter to be calculated, Ω represents the kernel function matrix, e i represents the prediction error of the i-th sample, y i represents the i-th value in the forecast quantity Y; f(x i ) represents the fitted value, which represents the i-th sample in the sample prediction factor set X; N eff Expressed as the number of non-negative eigenvalues ​​of MΩM; λ G,i It is represented as the ith eigenvalue of MΩM sorted from largest to smallest non-negative eigenvalues, where is an N-order centralized matrix; N eff Indicates the number of valid samples;

[0022] According to the model evaluation index calculation formula, the evaluation index of the improved support vector regression model after the current round of training is obtained, and the evaluation index is judged. If the evaluation index does not meet the convergence condition, the kernel function calculation formula is determined by automatic correlation, the kernel function is recalculated, and the new kernel function is used for the next round of training; if the evaluation index meets the convergence condition, the target kernel function is obtained;

[0023] According to the objective kernel function and the optimal regularization coefficient, based on the model parameter formula, the model parameters of the improved support vector regression model are obtained through training. After meeting the preset number of training times, a trained medium- and long-term runoff forecast model is obtained. The model parameter formula is:

[0024]

[0025] Among them, α and b are the model parameters to be calculated, Y is the predicted value, 1 v is a column vector consisting of N 1s, I N is the N-order unit matrix, γ is the set regularization coefficient; Ω is the kernel function matrix, and the value of the i-th row and j-th column in the kernel function matrix is ​​Ω i,j =K(x i ,x j ), where x i 、x j are the i-th and j-th samples in the sample prediction factor set X, respectively, K(x i ,x j ) is the kernel function.

[0026] According to a medium- and long-term runoff probability forecasting method provided by the present invention, the automatic correlation determination kernel function calculation formula is:

[0027]

[0028] Among them, ninputs is the number of selected prediction factors, x i,k represents the kth prediction factor value of the ith sample in the sample prediction factor set X, x i,k represents the kth predictor value of the jth sample in the sample predictor set X, σ k is the kernel function parameter corresponding to the kth predictor.

[0029] According to a medium- and long-term runoff probability forecasting method provided by the present invention, the model evaluation index calculation formula is:

[0030]

[0031]

[0032] ζ=μ*γ;

[0033] Among them, μ represents the weight of model complexity in the final training, and ζ represents the weight of model fitting effect in the final training.

[0034] According to a medium- and long-term runoff probability forecasting method provided by the present invention, the forecast factor set in the target area is constructed according to the forecast period, the forecast factor and the historical runoff data corresponding to the forecast factor, including:

[0035] Based on log-sinh transformation, the historical runoff data is preprocessed to obtain the preprocessed historical runoff data;

[0036] According to the forecast period, the preprocessed historical runoff data is placed in the forecast factors of the corresponding months to obtain a forecast factor set.

[0037] The present invention also provides a medium- and long-term runoff probability forecasting system, comprising:

[0038] A forecast factor set construction module, used to construct a forecast factor set in a target area according to a forecast period, forecast factors and historical runoff data corresponding to the forecast factors;

[0039] A runoff probability distribution forecasting module, used for inputting the forecasting factor set into a trained medium- and long-term runoff forecasting model to obtain a runoff probability forecasting normal distribution result, wherein the trained medium- and long-term runoff forecasting model is obtained by training an improved support vector regression model based on the sample forecasting factor set, and the improved support vector regression model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model;

[0040] The runoff forecast generation module is used to perform data processing on the runoff probability forecast normal distribution result to obtain the runoff probability forecast result of the target area within the forecast period.

[0041] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned medium- and long-term runoff probability forecasting methods are implemented.

[0042] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described medium- and long-term runoff probability forecasting methods.

[0043] The present invention provides a medium- and long-term runoff probability forecasting method and system, which can evaluate the parameter uncertainty in support vector regression by coupling a three-layer Bayesian inference framework and support vector regression, thereby calculating the uncertainty of runoff forecasting, and generating probability forecasting results based on this, thereby solving the problem that traditional data-driven models cannot generate medium- and long-term runoff probability forecasts, better reflecting the uncertainty of future runoff, and thus reducing the risk of reservoir scheduling based on runoff forecasting. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A schematic diagram of the flow chart of the medium- and long-term runoff probability forecasting method provided by the present invention;

[0046] Figure 2 The overall flow chart of the medium- and long-term runoff forecast provided by the present invention;

[0047] Figure 3 A schematic diagram of the verification effect of the medium- and long-term runoff probability forecast results provided by the present invention;

[0048] Figure 4 A schematic diagram of the structure of the medium- and long-term runoff probability forecasting system provided by the present invention;

[0049] Figure 5 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] Among the existing data-driven models for medium- and long-term runoff forecasting, the Support Vector Regression (SVR) method is a method that has been widely used in medium- and long-term runoff forecasting and has good forecasting results. However, in medium- and long-term runoff forecasting based on data-driven models, this method can often only produce deterministic forecast results, but cannot consider the uncertainty of future runoff.

[0052] In addition, there are two urgent problems to be solved in the commonly used SVR methods. In the existing SVR methods, the regularization coefficient and kernel function parameters have an important influence on the model structure and model effect, but it is difficult to solve directly in practical applications, so these two types of parameters are called hyperparameters. In current applications, the hyperparameters of SVR are often optimized by trial and error based on grid search. In this method, it is difficult to obtain the optimal parameters when the search grid is sparse, and increasing the density of the grid will increase the model calibration time. The training time and effect are mutually restricted, and in practical applications, the parameter search range needs to be set based on prior knowledge, so the optimization method needs to be further improved; on the other hand, in the existing SVR methods, radial basis kernel functions are often used, but this kernel function cannot distinguish the importance of different predictors. In fact, different predictors have different degrees of influence on runoff, so it is necessary to distinguish different predictors in the SVR method.

[0053] The present invention provides a medium- and long-term runoff probability forecasting method, which generates a medium- and long-term runoff probability forecast to reflect the uncertainty of future runoff by coupling a three-layer Bayesian inference framework, support vector regression and automatic relevance determination (ARD) kernel function; at the same time, by introducing Bayesian inference, the hyperparameter optimization problem of the support vector regression method can be solved, and the importance of different prediction factors can be distinguished by introducing the ARD kernel function.

[0054] In the method of coupling the three-layer Bayesian inference framework and support vector regression (denoted as BSVR), by replacing the kernel function of the SVR method with the ARD kernel function, a method of coupling Bayesian inference, support vector regression and ARD kernel function (denoted as BSVRARD) can be obtained. This method can distinguish the importance of different prediction factors and further improve the prediction effect.

[0055] Figure 1 The flow chart of the medium- and long-term runoff probability forecasting method provided by the present invention is as follows: Figure 1 As shown, the present invention provides a medium- and long-term runoff probability forecasting method, comprising:

[0056] Step 101: construct a forecast factor set in a target area according to a forecast period, forecast factors and historical runoff data corresponding to the forecast factors.

[0057] In the present invention, according to the selected prediction factors, a medium- and long-term model input x is constructed. new . Specifically, according to the selected forecasting factors, the values ​​corresponding to the current forecasting object are obtained respectively, and after corresponding data processing, the model input is formed. Specifically, in the present invention, the forecasting factor set in the target area is constructed according to the forecast period, the forecasting factors and the historical runoff data corresponding to the forecasting factors, which specifically includes: preprocessing the historical runoff data based on the log-sinh transformation to obtain the preprocessed historical runoff data; according to the forecast period, placing the preprocessed historical runoff data in the forecast factors of the corresponding month to obtain a forecasting factor set.

[0058] For example, in this embodiment, the forecast period is 1 month, and one of the selected forecast factors is the runoff 1 month ago. That is, when forecasting the runoff in January 2004, the runoff in December 2003 is obtained, processed by log-sinh, and placed in the model input x new The corresponding month position of the target area is selected, and the same processing method is adopted for other selected prediction factors to obtain the prediction factor set in the target area.

[0059] Step 102, inputting the prediction factor set into a trained medium- and long-term runoff prediction model to obtain a normal distribution result of runoff probability prediction, wherein the trained medium- and long-term runoff prediction model is obtained by training an improved support vector regression model based on the sample prediction factor set, and the improved support vector regression model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model;

[0060] In the existing medium- and long-term runoff forecast based on data-driven models, the model output is mostly deterministic runoff forecast results, which cannot reflect the uncertainty of future runoff, bringing risks to reservoir scheduling based on runoff forecast. Therefore, in the present invention, the trained medium- and long-term runoff forecast model is obtained by coupling the three-layer Bayesian inference framework and the data-driven model SVR. The probabilistic forecast results are generated by the coupling method, solving the problem that the traditional medium- and long-term runoff forecast method cannot generate probabilistic forecasts. At the same time, the introduction of Bayesian inference can effectively determine the hyperparameters of the SVR model and solve the hyperparameter optimization problem of the SVR model.

[0061] In the data-driven model, its parameters include model parameters and model hyperparameters. Among them, model parameters are the parameters for actual fitting and prediction, which can be calculated according to specific training data after determining the hyperparameters. Model hyperparameters will affect the training process of the model. Different hyperparameters will train different model parameters, which in turn affect the fitting and prediction results of the model. For the SVR model, hyperparameters include kernel function parameters and regularization coefficients for controlling model complexity. In the method of coupling three-layer Bayesian inference and SVR model (denoted as BSVR), the first layer of Bayesian inference is used to optimize the parameters of the SVR model, the second layer of Bayesian inference is used to optimize the regularization coefficient of the SVR model, and the third layer of Bayesian inference is used to optimize the kernel function parameters of the model. Finally, by calculating the uncertainty of the model parameters in the Bayesian inference framework, the mean and variance of the normal distribution to which the forecast result belongs can be calculated, and based on this, a probabilistic forecast result that conforms to the normal distribution can be generated.

[0062] Furthermore, by inputting the prediction factor set obtained in step 101 into the trained medium- and long-term runoff prediction model, the model calculates the mean value f(x new ), the formula is:

[0063]

[0064] And calculate the variance of the probability forecast result var(x new ), the formula is:

[0065]

[0066] Among them, θ new =[K(x1,x new ); K(x2,x new );…;K(x N ,x new )], for x new and a vector of kernel functions of different input samples; D G Neff non-zero eigenvalues ​​λ G,i The diagonal matrix formed by N eff The unit matrix of order U G is N×N eff The matrix, the i-th column is v i MΩM corresponds to the eigenvalue λ G,i The feature vector of .

[0067] For any input x new , the model calculates the mean f(x new ) and variance var(x new ), then the probability forecast result is a normal distribution That is, the normal distribution result of runoff probability forecast is obtained.

[0068] Step 103, performing data processing on the normal distribution result of the runoff probability forecast to obtain the runoff probability forecast result of the target area within the forecast period.

[0069] In the present invention, in the early stage of constructing the prediction factor set, the data will be preprocessed. After the model outputs the runoff probability forecast normal distribution result, the runoff probability forecast normal distribution result is inversely processed to obtain the actual runoff probability forecast result of the target area. Specifically, in this embodiment, the preprocessing used for the historical runoff data is log-sinh transformation, so the inverse transformation is used to convert the runoff probability forecast normal distribution result into the runoff probability forecast result, where the point forecast result is f(x new ) converted value, and As forecast confidence intervals, confidence intervals for probabilistic forecasts can be obtained.

[0070] The medium- and long-term runoff probability forecasting method provided by the present invention can evaluate the parameter uncertainty in support vector regression by coupling the three-layer Bayesian inference framework and support vector regression, thereby calculating the uncertainty of runoff forecasting, and generating probability forecasting results based on this, thereby solving the problem that traditional data-driven models cannot generate medium- and long-term runoff probability forecasts, better reflecting the uncertainty of future runoff, and thus reducing the risk of reservoir scheduling based on runoff forecasting.

[0071] Based on the above embodiment, the trained medium- and long-term runoff forecast model is obtained by the following steps:

[0072] Based on a preset forecast period and a lag period of each sample forecast factor, a sample forecast amount and a sample forecast factor set corresponding to the sample forecast amount are constructed through sample runoff data and the sample forecast factors;

[0073] The sample forecast quantity and the sample forecast factor set are input into an improved support vector regression model for training to obtain a trained medium- and long-term runoff forecast model.

[0074] In the present invention, firstly, sample runoff data and data (i.e., sample prediction factors) that can be used to predict runoff are obtained. The monthly runoff prediction with a forecast period of 1 month of a certain regional hydrological station is used for illustration. Specifically, the monthly scale runoff data from January 1980 to December 2003 of the hydrological station are used for modeling, and then the runoff from January 2004 to December 2006 is predicted with a forecast period of 1 month using the established model. The present invention collects the monthly scale runoff data from January 1980 to December 2006 of the regional hydrological station, and 130 climate monitoring indexes issued by the National Climate Center in the same period, including 88 atmospheric circulation indexes, 26 sea temperature indexes and 16 other indexes (e.g., sunspot evolution cycle). In addition, in order to distinguish different months, the monthly data are also used as available prediction factors.

[0075] Then, the sample runoff data and other data (prediction factors, etc.) are preprocessed to make the data distribution more suitable for the data-driven model. Specifically, in one embodiment, the sample runoff data is processed by log-sinh data transformation; the climate factor data (prediction factors) are processed by monthly standardization; and the monthly data are normalized to between -1 and 1.

[0076] Furthermore, the forecast period is set, and according to the forecast period and the lag period of different factors, a candidate forecast factor set Z and a corresponding sample forecast quantity Y are formed. Specifically, in one embodiment, the forecast period is set to 1 month, the lag period of the previous runoff factor is set to 1 month, and the maximum lag period of the impact of climate factors on runoff is 12 months. Then, the data of the same month is added to the candidate forecast factor set. When the runoff of the tth month is to be forecasted, the sample forecast quantity is Y. t =Q t (Q is the runoff after data processing), the alternative prediction factors include the runoff Q one month ago t-1 , climate factor data within the previous 12 months [F t-1 ,F t-2 ,…,F t-12 ](F is the climate factor after data processing), the monthly data of the month M t (M is the month after data processing), then the corresponding candidate prediction factor set is Z t =[Q t-1 ,F t-1 ,F t-2 ,…,F t-12 ,M tBased on this, the sample forecast quantity and sample forecast factor for different months can be constructed. The sample forecast quantity and sample forecast factor of each month are taken as a sample and arranged in chronological order, then the sample forecast quantity Y and the corresponding set of candidate forecast factors Z can be obtained.

[0077] Finally, the present invention uses a factor selection method to select appropriate predictors from the candidate predictor set Z, and forms a predictor set X according to the selection results, thereby constructing a sample prediction quantity and a sample predictor set. Specifically, the present invention uses a factor selection method based on partial mutual information to select appropriate predictors from all candidate predictor sets and form a sample predictor set X.

[0078] After constructing the training set, the model is established using the prediction factor set X and the sample prediction quantity Y, that is, the coupling method of Bayesian inference and support vector regression is used to establish the relationship between the sample prediction quantity Y and the prediction factor X. The specific steps are:

[0079] Step 201, setting the initial kernel function parameter vector σ of support vector regression, where different values ​​in the vector correspond to different prediction factors;

[0080] Step 202, setting the initial regularization coefficient γ of support vector regression;

[0081] Step 203, training a model according to the set kernel function parameter σ, regularization coefficient γ, sample prediction quantity Y and prediction factor X, the model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model;

[0082] Step 204, calculate the optimal regularization coefficient γ′ according to the trained model, if γ′=γ, proceed to the next step, otherwise set γ=γ′, that is, use the calculated γ′ as the γ of the next round of training, and repeat step 203;

[0083] Step 205, calculating evaluation indicators reflecting model fitting error and complexity according to the trained model;

[0084] Step 206, determine whether the evaluation index of the model converges, if converged, proceed to the next step, otherwise change the kernel function parameter vector, and repeat steps 202 to 205;

[0085] Step 207, training the model according to the kernel function parameter vector and the regularization coefficient obtained by optimization to obtain a model that can be used for forecasting, that is, to obtain a trained medium- and long-term runoff forecasting model.

[0086] Based on the above embodiment, the kernel function of the improved support vector regression model is an autocorrelation determination kernel function.

[0087] In the present invention, by introducing the ARD kernel function in the method of coupling the three-layer Bayesian inference framework and the support vector regression, the importance of different prediction factors can be effectively distinguished in the support vector regression method, so that the factors with greater impact on runoff play a more important role, thereby further improving the effect of runoff forecasting.

[0088] On the basis of the above embodiment, the sample prediction amount and the sample prediction factor set are input into the improved support vector regression model for training to obtain a trained medium- and long-term runoff forecast model, including:

[0089] Based on the initial kernel function and the initial regularization coefficient, the improved support vector regression model is trained according to the sample prediction quantity and the sample prediction factor set.

[0090] In the present invention, the initial kernel function parameter σ and the initial regularization coefficient γ of the support vector regression are set. Specifically, in this embodiment, the values ​​of the kernel function parameters corresponding to different prediction factors are all 1, and the initial regularization coefficient is set to 1. Then, according to the set hyperparameters and data training model, the parameters of the model for fitting and prediction are calculated.

[0091] In each round of training, the regularization coefficient of the current round is obtained according to the training results and the regularization coefficient formula. If the regularization coefficient of the current round is equal to the regularization coefficient of the previous round, the optimal regularization coefficient of the improved support vector regression model is obtained. Otherwise, the regularization coefficient of the current round is used as the regularization coefficient for the next round of training. The regularization coefficient formula is:

[0092]

[0093]

[0094]

[0095]

[0096] Among them, γ′ represents the optimal regularization coefficient, N represents the number of samples, and γ eff Indicates the number of valid parameters, E W Indicates the complexity of the model structure, E D represents the fitting error, α represents the model parameter to be calculated, Ω represents the kernel function matrix, e i represents the prediction error of the i-th sample, y i represents the i-th value in the forecast quantity Y; f(x i ) represents the fitted value, which represents the i-th sample in the sample prediction factor set X; N eff Expressed as the number of non-negative eigenvalues ​​of MΩM; λ G,iIt is represented as the ith eigenvalue of MΩM sorted from largest to smallest non-negative eigenvalues, where is an N-order centralized matrix; N eff Indicates the number of valid samples.

[0097] In the present invention, the model is trained according to the current γ. After the current round of training is completed, γ′ is calculated according to the above formula. It should be noted that in the formula In the equation, γ′ is the regularization coefficient calculated in the previous round of training.

[0098] According to the model evaluation index calculation formula, the evaluation index of the improved support vector regression model after the current round of training is obtained, and the evaluation index is judged. If the evaluation index does not meet the convergence condition, the kernel function calculation formula is determined by automatic correlation, the kernel function is recalculated, and the new kernel function is used for the next round of training; if the evaluation index meets the convergence condition, the target kernel function is obtained. The model evaluation index calculation formula is:

[0099]

[0100]

[0101] ζ=μ*γ;

[0102] Among them, μ represents the weight of model complexity in the final training, and ζ represents the weight of model fitting effect in the final training.

[0103] The automatic correlation kernel function calculation formula is:

[0104]

[0105] Among them, ninputs is the number of selected prediction factors, x i,k represents the kth prediction factor value of the ith sample in the sample prediction factor set X, x i,k represents the kth predictor value of the jth sample in the sample predictor set X, σ k is the kernel function parameter corresponding to the kth prediction factor. It should be noted that when all σ k When they have the same value, it degenerates into the BSVR method.

[0106] In the present invention, the evaluation index of the model is judged by the evaluation index of the third layer Bayesian inference Whether it converges, if it converges, continue to the next step, otherwise change the kernel function parameter vector, use the regularization coefficient and kernel function parameters calculated in this round of training as the parameters of the next round of training, and train the model again. Specifically, different optimization algorithms can be used to search for the kernel function parameter vector that minimizes the evaluation index, and the evaluation index converges to the minimum value.

[0107] According to the objective kernel function and the optimal regularization coefficient, based on the model parameter formula, the model parameters of the improved support vector regression model are obtained through training. After meeting the preset number of training times, a trained medium- and long-term runoff forecast model is obtained. The model parameter formula is:

[0108]

[0109] Among them, α and b are the model parameters to be calculated, Y is the predicted value, 1 v is a column vector consisting of N 1s, I N is the N-order unit matrix, γ is the set regularization coefficient; Ω is the kernel function matrix, and the value of the i-th row and j-th column in the kernel function matrix is ​​Ω i,j =K(x i ,x j ), where x i 、x j are the i-th and j-th samples in the sample prediction factor set X, respectively, K(x i ,x j ) is the kernel function. In the present invention, the kernel function parameter vector of the trained medium- and long-term runoff forecast model is [0.01; 2.01], and the regularization coefficient is 6.44.

[0110] In one embodiment, the monthly runoff probability forecast result of a hydrological station in a certain region with a forecast period of one month from January 2004 to December 2006 is used for illustration. Figure 2 The overall flow chart of the medium- and long-term runoff forecast provided by the present invention can be referred to Figure 2 As shown, in step S1, a sample set for training the model is first constructed through data processing and factor selection; in step S2, a forecast model is established based on the constructed sample set to obtain a trained forecast model; in step S3, an actual runoff forecast is performed on a certain area, and a runoff probability forecast result for the area is generated according to the forecast model.

[0111] Figure 3 The schematic diagram of the verification effect of the medium- and long-term runoff probability forecast results provided by the present invention is as follows: Figure 3 As shown in , W is the average width of the forecast confidence interval, P is the frequency of measured runoff within the forecast confidence interval, and RMSE is the root mean square error of the probability forecast mean compared to the measured value. Figure 3It can be seen that the probability forecast mean is basically consistent with the measured value, and the root mean square error is 2.02m 3 / s, indicating that the center of the probability forecast is close to the measured value. In addition, from the probability forecast results, 86.1% of the measured values ​​fall within the forecast confidence interval, indicating that the forecast confidence interval can well reflect the uncertainty of the forecast and the probability forecast results are relatively reliable. On the other hand, the average width of the forecast confidence interval is narrow, at 3.61m 3 / s, the forecast has high practicality. In contrast, if the kernel function parameters in the above training steps are set as scalars, the forecast results of the BSVR method can be obtained. The forecast effect evaluation indicators obtained by the two methods are shown in Table 1:

[0112] Table 1

[0113] method P(%) <![CDATA[W(m 3 / s)]]> <![CDATA[RMSE(m 3 / s)]]> BSVR 91.7 3.98 2.27 BSVRARD 86.1 3.61 2.02

[0114] From Table 1, we can see that the prediction width of the BSVRARD method is reduced by 0.37m compared with the BSVR method. 3 / s, the relative reduction is 9.3%; RMSE is reduced by 0.25m 3 / s, a relative decrease of 11.0%; the P value decreased by 5.6%, a relative decrease of 6.1%. Although the P value of the probabilistic forecast of BSVR is larger and the forecast interval includes more measured runoff values, this is mainly due to the wider width of its forecast interval; from the other two indicators, the BSVRARD method has better forecasting effect than the BSVR method. Overall, the forecasting effect of the BSVRARD method is better. Compared with the traditional SVR method, both BSVRARD and BSVR methods can produce probabilistic forecast results, reflecting the uncertainty of future runoff, thereby reducing the risk of reservoir operation based on forecasts.

[0115] Figure 4 The schematic diagram of the structure of the medium- and long-term runoff probability forecasting system provided by the present invention is as follows: Figure 4As shown, the present invention provides a medium- and long-term runoff probability forecasting system, including a forecast factor set construction module 401, a runoff probability distribution forecasting module 402 and a runoff forecasting generation module 403, wherein the forecast factor set construction module 401 is used to construct a forecast factor set in a target area according to a forecast period, forecast factors and historical runoff data corresponding to the forecast factors; the runoff probability distribution forecasting module 402 is used to input the forecast factor set into a trained medium- and long-term runoff forecasting model to obtain a runoff probability forecasting normal distribution result, wherein the trained medium- and long-term runoff forecasting model is obtained by training an improved support vector regression model based on a sample forecast factor set, and the improved support vector regression model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model; the runoff forecasting generation module 403 is used to perform data processing on the runoff probability forecasting normal distribution result to obtain a runoff probability forecasting result for the target area within the forecast period.

[0116] The medium- and long-term runoff probability forecasting system provided by the present invention can evaluate the parameter uncertainty in support vector regression by coupling the three-layer Bayesian inference framework and support vector regression, thereby calculating the uncertainty of runoff forecasting, and generating probability forecasting results based on this, thereby solving the problem that traditional data-driven models cannot generate medium- and long-term runoff probability forecasts, better reflecting the uncertainty of future runoff, and thus reducing the risk of reservoir scheduling based on runoff forecasting.

[0117] The system provided by the present invention is used to execute the above-mentioned method embodiments. Please refer to the above-mentioned embodiments for the specific processes and detailed contents, which will not be repeated here.

[0118] Figure 5 A schematic diagram of the structure of an electronic device provided by the present invention, such as Figure 5As shown, the electronic device may include: a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 communicate with each other through the communication bus 504. The processor 501 may call the logic instructions in the memory 503 to execute the medium- and long-term runoff probability forecasting method, the method comprising: constructing a forecast factor set in the target area according to the forecast period, the forecast factor and the historical runoff data corresponding to the forecast factor; inputting the forecast factor set into the trained medium- and long-term runoff forecast model to obtain the runoff probability forecast normal distribution result, wherein the trained medium- and long-term runoff forecast model is obtained by training an improved support vector regression model based on the sample forecast factor set, and the improved support vector regression model is obtained by coupling the three-layer Bayesian inference framework and the support vector regression model; performing data processing on the runoff probability forecast normal distribution result to obtain the runoff probability forecast result of the target area within the forecast period.

[0119] In addition, the logic instructions in the above-mentioned memory 503 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0120] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the medium- and long-term runoff probability forecasting method provided by the above-mentioned methods, and the method includes: constructing a forecast factor set in a target area according to a forecast period, forecast factors and historical runoff data corresponding to the forecast factors; inputting the forecast factor set into a trained medium- and long-term runoff forecast model to obtain a runoff probability forecast normal distribution result, wherein the trained medium- and long-term runoff forecast model is obtained by training an improved support vector regression model based on a sample forecast factor set, and the improved support vector regression model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model; performing data processing on the runoff probability forecast normal distribution result to obtain a runoff probability forecast result for the target area within the forecast period.

[0121] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the medium- and long-term runoff probability forecasting method provided in the above-mentioned embodiments, the method comprising: constructing a set of forecast factors in a target area according to a forecast period, forecast factors and historical runoff data corresponding to the forecast factors; inputting the set of forecast factors into a trained medium- and long-term runoff forecasting model to obtain a normal distribution result of a runoff probability forecast, wherein the trained medium- and long-term runoff forecasting model is obtained by training an improved support vector regression model based on a sample forecast factor set, and the improved support vector regression model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model; performing data processing on the normal distribution result of the runoff probability forecast to obtain a runoff probability forecast result for the target area within the forecast period.

[0122] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A medium- and long-term runoff probability forecasting method, characterized in that: include: Constructing a set of forecast factors in a target area according to the forecast period, the forecast factors and the historical runoff data corresponding to the forecast factors; Inputting the prediction factor set into a trained medium- and long-term runoff prediction model to obtain a runoff probability prediction normal distribution result, wherein the trained medium- and long-term runoff prediction model is obtained by training an improved support vector regression model based on the sample prediction factor set, and the improved support vector regression model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model; Performing data processing on the normal distribution result of the runoff probability forecast to obtain the runoff probability forecast result of the target area within the forecast period; The trained medium- and long-term runoff forecast model is obtained by the following steps: Based on a preset forecast period and a lag period of each sample forecast factor, a sample forecast amount and a sample forecast factor set corresponding to the sample forecast amount are constructed through sample runoff data and the sample forecast factors; Inputting the sample forecast quantity and the sample forecast factor set into an improved support vector regression model for training to obtain a trained medium- and long-term runoff forecast model; The kernel function of the improved support vector regression model is an autocorrelation determined kernel function; The sample prediction amount and the sample prediction factor set are input into the improved support vector regression model for training to obtain a trained medium- and long-term runoff prediction model, including: Based on the initial kernel function and the initial regularization coefficient, the improved support vector regression model is trained according to the sample prediction quantity and the sample prediction factor set; In each round of training, the regularization coefficient of the current round is obtained according to the training results and the regularization coefficient formula. If the regularization coefficient of the current round is equal to the regularization coefficient of the previous round, the optimal regularization coefficient of the improved support vector regression model is obtained. Otherwise, the regularization coefficient of the current round is used as the regularization coefficient for the next round of training. The regularization coefficient formula is: Among them, γ′ represents the optimal regularization coefficient, N represents the number of samples, and γ eff Indicates the number of valid parameters, E W Indicates the complexity of the model structure, E D represents the fitting error, α represents the model parameter to be calculated, ... represents the kernel function matrix, e i represents the prediction error of the i-th sample, y i represents the i-th value in the forecast quantity Y; f(x i ) represents the fitted value, which represents the i-th sample in the sample prediction factor set X; N eff Expressed as the number of non-negative eigenvalues ​​of M…M; λ G,i It is represented as the i-th eigenvalue of M…M after the non-negative eigenvalues ​​are sorted from large to small, where: is an N-order centralized matrix; N eff Indicates the number of valid samples; According to the model evaluation index calculation formula, the evaluation index of the improved support vector regression model after the current round of training is obtained, and the evaluation index is judged. If the evaluation index does not meet the convergence condition, the kernel function calculation formula is determined by automatic correlation, the kernel function is recalculated, and the new kernel function is used for the next round of training; if the evaluation index meets the convergence condition, the target kernel function is obtained; According to the objective kernel function and the optimal regularization coefficient, based on the model parameter formula, the model parameters of the improved support vector regression model are obtained through training. After meeting the preset number of training times, a trained medium- and long-term runoff forecast model is obtained. The model parameter formula is: Among them, α and b are the model parameters to be calculated, Y is the predicted value, 1 v is a column vector consisting of N 1s, I N is the N-order unit matrix, γ is the set regularization coefficient; Ω is the kernel function matrix, and the value of the i-th row and j-th column in the kernel function matrix is ​​Ω i,j =K(x i , x j ), where x i 、x j are the i-th and j-th samples in the sample prediction factor set X, respectively, K(x i , x j ) is the kernel function; The automatic correlation kernel function calculation formula is: Among them, ninputs is the number of selected prediction factors, x i,k represents the kth prediction factor value of the ith sample in the sample prediction factor set X, x i,k represents the kth predictor value of the jth sample in the sample predictor set X, σ k is the kernel function parameter corresponding to the kth prediction factor; The model evaluation index calculation formula is: ζ=μ*γ; Among them, μ represents the weight of model complexity in the final training, and ζ represents the weight of model fitting effect in the final training; The method of constructing a forecast factor set in a target area according to the forecast period, the forecast factor and the historical runoff data corresponding to the forecast factor includes: Based on log-sinh transformation, the historical runoff data is preprocessed to obtain the preprocessed historical runoff data; According to the forecast period, the preprocessed historical runoff data is placed in the forecast factors of the corresponding months to obtain a forecast factor set.

2. A medium- and long-term runoff probability forecasting system, characterized in that: The system is used to execute the medium- and long-term runoff probability forecasting method according to claim 1, comprising: A forecast factor set construction module, used to construct a forecast factor set in a target area according to a forecast period, forecast factors and historical runoff data corresponding to the forecast factors; A runoff probability distribution forecasting module, used for inputting the forecasting factor set into a trained medium- and long-term runoff forecasting model to obtain a runoff probability forecasting normal distribution result, wherein the trained medium- and long-term runoff forecasting model is obtained by training an improved support vector regression model based on the sample forecasting factor set, and the improved support vector regression model is obtained by coupling a three-layer Bayesian inference framework and a support vector regression model; The runoff forecast generation module is used to perform data processing on the runoff probability forecast normal distribution result to obtain the runoff probability forecast result of the target area within the forecast period.

3. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the medium- and long-term runoff probability forecasting method as claimed in claim 1 are implemented.

4. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the medium- and long-term runoff probability forecasting method as claimed in claim 1 are implemented.