A multi-step daily runoff forecasting method based on meteorological information and deep learning algorithm

By employing a multi-step daily runoff forecasting method based on meteorological information and deep learning algorithms, and utilizing MIC, CCF, and PACF to select features, a GBRT model is constructed. This solves the problem of insufficient accuracy in reservoir daily runoff forecasting and achieves more accurate runoff forecasting and optimized hydropower scheduling.

CN113255986BActive Publication Date: 2024-09-03DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110551395.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-20
Publication Date
2024-09-03
Estimated Expiration
2041-05-20

AI Technical Summary

Technical Problem

Existing technologies lack sufficient accuracy in predicting daily runoff during reservoir optimization scheduling, especially in southern regions where heavy rainfall can lead to unreasonable power generation plans for hydropower stations, resulting in water wastage and economic losses.

Method used

A multi-step daily runoff forecasting method based on meteorological information and deep learning algorithms is adopted. The meteorological data features are selected by the maximum information coefficient (MIC), and historical lag data of observed runoff and rainfall are selected by combining the cross-correlation function (CCF) and partial autocorrelation function (PACF). A gradient boosting regression tree (GBRT) model is constructed for data scaling and integrated forecasting.

Benefits of technology

It improved the accuracy and reliability of daily runoff forecasting, reduced reservoir water wastage, increased power generation efficiency, and improved the level of hydropower dispatching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113255986B
    Figure CN113255986B
Patent Text Reader

Abstract

The present invention discloses a multi-step daily runoff forecasting method based on meteorological information and deep learning algorithm. In the first stage, the maximum mutual information coefficient MIC method is used to perform feature selection on the meteorological data set as the candidate input of the model's prediction factor, and the cross-correlation function CCF and the partial autocorrelation function PACF are used to select the historical lag data of the observed runoff and rainfall as the candidate input of the model's prediction factor; in the second stage, the selected prediction factors are first scaled, and then the data set is divided into a training set, a validation set, and a test set; in the third stage, the GBRT model parameters are first calibrated by a grid search algorithm, and then the preferred parameters are used to implement the forecast on the test set. The test shows that the GBRT-MIC method of the present invention can perform runoff forecasting well within the foreseeable period, and the research results are of great significance in assisting power plants to formulate power generation plans in advance, reduce hydropower abandonment, increase hydropower electricity, and improve the level of scientific scheduling of hydropower.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of hydrological forecasting, and in particular to a multi-step daily runoff forecasting method based on meteorological information and a deep learning algorithm. Background Art

[0002] Runoff forecast is the basis for optimizing reservoir scheduling and plays a vital role in reservoir management and operation. With the large-scale commissioning of cascade hydropower stations on major rivers in my country, the huge hydropower system faces very complex scheduling problems. Improper scheduling is very likely to cause water abandonment. Therefore, the accuracy of reservoir runoff forecast is required to be high during scheduling. However, the accuracy of daily runoff forecast is obviously insufficient, especially for southern my country. Due to the influence of strong convective weather such as typhoons, heavy rainfall in southern my country is usually concentrated within a few days. Low-precision runoff forecasts can easily lead to hydropower stations being unable to formulate reasonable power generation plans 7-15 days after the disaster occurs, resulting in unnecessary water abandonment and huge economic losses. On the other hand, affected by climate change and human activities, the flow characteristics and water inflow characteristics of the basin often change, and it is often necessary to frequently re-establish the daily runoff forecast model and recalculate and calibrate the model parameters based on recent actual runoff and meteorological data. This also brings difficulties to the daily runoff forecast of reservoirs.

[0003] Runoff is difficult to be accurately predicted due to its high complexity, non-stationarity, dynamics and nonlinearity. Although we have a deep understanding of the objective laws of runoff generation, it is extremely difficult to establish a dynamic equation that can approximately describe the entire process of runoff generation and convergence due to the limitations of monitoring methods, computing power and computing scale. At present, with the development of hydrological models, weather forecast models and land-atmosphere coupling models, many methods have been proposed to implement runoff forecasting, which are mainly divided into three categories: traditional statistical models, artificial intelligence models and conceptual models. Among them, traditional statistical methods mainly include autoregressive models (AR), autoregressive moving average models (ARMA), etc. Feng Guozhang et al. used a multivariate autoregressive model to predict runoff in the document "Application of Multivariate Autoregressive Model in Low-Water Runoff Forecasting". Based on the theory of time series analysis, the model structure is clear, and the input-output relationship is simple and easy to understand. However, the actual runoff series is complex, nonlinear and chaotic. Traditional statistical methods focus on mining some characteristics of the runoff series itself to predict it, and there is less mining of exogenous variables. Artificial intelligence models such as artificial neural network (ANN), multiple linear regression (MLR) and support vector regression (SVR) have the disadvantages of being easily trapped in local optimal values ​​and overfitting, and the determination of hyperparameters of artificial intelligence models is also very difficult and computationally intensive. Conceptual models such as the Xinanjiang model and the hydrological variable infiltration capacity (VIC) model have high requirements on the accuracy and continuity of boundary conditions and input data, and are mainly used for flood forecasting with a short forecast period. Therefore, due to the complexity of the above runoff forecasting problems and the limitations of various forecasting methods themselves, there is currently no effective forecasting method. Gradient boosting regression trees (GBRT) is a non-parametric machine learning method based on boosting strategies and decision trees. It has been successfully applied to transportation, environmental protection and other fields, and has achieved good results. Compared with ANN and SVR, GBRT has two advantages: (1) GBRT can sort the input of the model, which is of great significance for explaining the model mechanism and reducing the complexity of the model. (2) GBRT is a white box model, which is easy to explain. At present, GBRT has not been used in the study of daily runoff prediction. Therefore, the present invention selects GBRT for daily runoff prediction.

[0004] Among the many methods reported in the current domestic related achievements and literature, there is no high-precision multi-step daily runoff forecasting method that considers meteorological information and deep learning algorithms. The results of this invention are supported by the National Natural Science Foundation of China (51979023) and the Central University Basic Research Business Expenses Special Fund Project (DUT20JC16). Taking the multi-step daily runoff forecast of reservoirs as the research background and the Xiaowan Hydropower Station in the lower reaches of the Lancang River Basin in Yunnan Province as the research object, a multi-step daily runoff prediction framework based on meteorological information and deep learning algorithms was constructed. First, the maximum information coefficient (MIC) was used to select features of the meteorological data set as the candidate input of the model; secondly, GBRT-MIC was used for daily runoff prediction. Finally, six widely used evaluation criteria were selected to compare the models and evaluate the forecast results, namely, root mean squared error (RMSE), mean absolute error (MAE), Pearson correlation coefficient (CORR), Kling–Gupta efficiency scores (KGE), the cumulative percentage deviation of the high section of the flow duration curve (BHV) and the index of agreement (IA). Compared with the prior art, the multi-step daily runoff forecast framework developed by the present invention, which integrates GBRT, MIC and reanalysis data, can obtain more accurate and reliable runoff forecasts, provide reliable runoff forecast results for reservoir operation, and is of great significance to reducing water abandonment in cascade reservoirs, increasing power generation benefits, and improving the level of scientific hydropower operation. Summary of the invention

[0005] The technical problem to be solved by the present invention is to propose a multi-step daily runoff forecasting method based on meteorological information and deep learning algorithm to solve the problem of insufficient runoff prediction accuracy in the reservoir optimization scheduling process. A daily runoff forecasting framework is constructed from three steps: input selection, forecast model construction, and forecast and result evaluation. In order to avoid the inaccurate evaluation of the prediction results caused by the evaluation bias of a single indicator, six widely used evaluation indicators, namely MAE, RMSE, CORR, KGE, BHV and IA, are selected to evaluate the forecast results of the framework and comparison model proposed by the present invention, and the Xiaowan Power Station in the lower reaches of the Lancang River Basin in Yunnan Province is used as the research area for model verification.

[0006] The technical solution of the present invention is:

[0007] A multi-step daily runoff forecasting method based on meteorological information and deep learning algorithm includes three stages. In the first stage, the maximum mutual information coefficient MIC method is used to select features of the meteorological data set as candidate inputs of the model's predictors, and the cross correlation function CCF (cross correlation function) and partial autocorrelation function PACF (partial autocorrelation function) are used to select historical lagged data of observed runoff and rainfall as candidate inputs of the model's predictors; in the second stage, the selected predictors are first scaled, and then the data set is divided into a training set, a validation set, and a test set. In the third stage, the GBRT model parameters are first calibrated by a grid search algorithm, and then the optimal parameters are used to implement the forecast on the test set. All stages of the framework are implemented based on the Python language and the scikit-learn module. Specifically, it can be divided into steps 1-3:

[0008] Step 1. Apply MIC, CCF and PACF to select the input of GBRT-MIC model.

[0009] The input data set mainly consists of two parts: meteorological data set and historical data of observation data set. For meteorological data set, the MIC of runoff data and multiple meteorological data variables selected based on experience is first calculated. Then the meteorological variables are sorted in descending order according to the calculation results of MIC. For observation data set, the PACF of runoff variable and historical runoff variable lagged one or more time periods is first calculated, and PACF is compared with its 95% confidence interval. If the PACF of runoff in a certain lagged time period does not fall into the confidence interval, the data of this lagged time period is used as input, and then the CCF of runoff variable and historical rainfall observation variable lagged one or more time periods is calculated, and CCF is compared with its 95% confidence interval. If the CCF of rainfall in a certain lagged time period does not fall into the confidence interval, the data of this lagged time period is used as input. If CCF decreases and the multi-order lag still does not fall into the 95% confidence interval, the rainfall data variables of the first period lag constitute an input set, the rainfall data variables of the first period lag and the second period lag constitute the second input set, and so on to form multiple input sets, and then add the historical runoff observation variables of one or more periods of lag selected by PACF to each set. Finally, the historical runoff observation variables of one or more periods of lag selected by PACF are used as an input set separately, and all input sets are calculated according to the trial method to obtain an optimal observation value input set, recorded as obs.

[0010] Then, the first meteorological variable among the multiple meteorological variables arranged in descending order according to MIC constitutes an input set alone, the first and second meteorological variables constitute the second input set, the first, second and third meteorological variables constitute the third input set, and so on, multiple input sets can be obtained. The obtained multiple input sets are all added to the optimal observation value input set obs to obtain new multiple input sets. The new multiple input sets are used to obtain the optimal input set through trial calculation method as the input structure of GBRT-MIC model.

[0011] The trial calculation method is carried out as follows: multiple input sets are used as inputs of the GBRT model respectively: the parameters of the GBRT model use the default parameters of the scikit-learn module in the Python language, and then the default evaluation indicators are used to evaluate the runoff forecast values ​​obtained by each input set as the input GBRT model. By comparing the evaluation results, the optimal input set among the multiple input sets, namely obs, is selected, and the trial calculation is completed; the entire trial calculation process needs to ensure that the parameters and evaluation indicators used in the selection process are consistent.

[0012] Step 2. Data scaling and dataset partitioning.

[0013] For the input selected in step 1, first scale the data of each variable according to the following formula to scale the magnitude of each variable to the same magnitude.

[0014]

[0015] Where: x scale is the transformed data sequence; x original is the original data sequence; x max and x min are the maximum and minimum values ​​in the original data sequence.

[0016] The scaled sequences are then divided into training, testing, and validation sets according to the ratio.

[0017] Step 3. Calibrate GBRT parameters and implement forecasting.

[0018] GBRT is an integrated prediction model that includes two algorithms: decision tree algorithm and boosting algorithm. The parameters that need to be optimized for the decision tree algorithm include the maximum depth of the tree (max_depth), the minimum number of samples required to split internal nodes (min_samples_spli), the minimum number of samples on a leaf node (min_samples_leaf), and the maximum number of leaf nodes (max_leaf_nodes). The boosting algorithm includes two parameters, learning rate (learning_rate) and the number of weak learners (n_estimators). Therefore, there are 6 parameters that need to be optimized in this step.

[0019] In order to obtain the optimal parameter combination as quickly as possible, all parameters are optimized in two steps. First, n_estimators and learning_rate use default parameters or select based on experience. The four adjustment parameters, max_leaf_nodes, min_samples_leaf, max_depth, and min_samples_split, are empirically determined to have discrete value spaces and then cross-grid values ​​are used to form parameter combinations, generating multiple parameter combinations in each forecast period. Secondly, after determining the tree parameters, the learning rate is corrected to a smaller value, n_estimators is set to multiple larger values, and then optimized to determine the optimal n_estimators. In order to reduce computational pressure, all models are calculated in parallel, and the scikit-learn module provides parallel implementation.

[0020] The optimized parameters are trained on the training set, and then the trained GBRT-MIC model is used to implement forecasts on the test set and validation set, and the runoff forecast results are evaluated.

[0021] Compared with the prior art, the present invention has the following beneficial effects: In view of the problem of insufficient accuracy of runoff prediction in the reservoir optimization scheduling process, the present invention proposes a multi-step daily runoff forecasting method based on meteorological information and deep learning algorithm. The method adopts three-stage modeling. In the first stage, the meteorological information selected by the reanalysis data selected by MIC is used as the prediction factor of the model to select candidate inputs. The second stage adopts GBRT-MIC to predict water inflow. Compared with the prior art, the multi-step daily runoff forecasting framework developed by the present invention that integrates GBRT, MIC and reanalysis data can perform relatively accurate runoff prediction within the forecast period. The method of the present invention is of great significance for assisting power plants to formulate power generation plans in advance and reduce lightning disasters and flood disasters. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a structural diagram of the decision tree model;

[0023] Figure 2 It is a technical roadmap for runoff forecasting;

[0024] Figure 3 This is a schematic diagram of the daily runoff sequence of Xiaowan Hydropower Station;

[0025] Figure 4 This is a schematic diagram of the control basin of Xiaowan Reservoir;

[0026] Figure 5(a) and Figure 5(b) are the partial autocorrelation diagram of Xiaowan daily runoff and the cross-correlation coefficient diagram of Xiaowan rainfall runoff, respectively;

[0027] Figure 6 It is a schematic diagram of the test results of 13 input structure observation data;

[0028] Figure 7 It is a schematic diagram of the experimental results of 26 input structures of the reanalysis data;

[0029] FIG8(a) and FIG8(b) are schematic diagrams of sensitivity analysis of activation function and number of hidden layer nodes in artificial neural network based on MAE, and the shaded area is the 95% confidence interval obtained by bootstrap of 50 tests, where FIG8(a) is for one-day forecast period and FIG8(b) is for ten-day forecast period;

[0030] Figure 9(a) to Figure 9(f) It is a schematic diagram of the performance of GBRT and GBRT-MIC on the six indicators of the test set (2017-2018), (a) MAE (b) RMSE (c) CORR (d) KGE (e) BHV (f) IA;

[0031] Figure 10(a) to Figure 10(c) It is a schematic diagram of the runoff prediction results of GBRT and GBRT-MIC on the test set for a five-day forecast period (2017-2018, 730 days), where Figure 10(a) is the observed and predicted runoff, Figure 10(b) is the prediction error histogram of the test set, and Figure 10(c) is the comparison between the measured flow and the predicted flow;

[0032] Figure 11(a) to Figure 11(f) Schematic diagram of the performance of GBRT-MIC, SVR-MIC, ANN-MIC and MLR-MIC on the six indicators of the test set (2017-2018); (a) MAE (b) RMSE (c) CORR (d) KGE (e) BHV (f) IA. DETAILED DESCRIPTION

[0033] The present invention is further described below in conjunction with the accompanying drawings and implementation examples.

[0034] The overall structural framework of the present invention is the GBRT-MIC model. The GBRT-MIC method adopts a three-stage modeling. First, in the first stage, the maximum mutual information coefficient MIC is used to perform feature selection on the meteorological data set as the candidate input of the model's predictor, and CCF and PACF are used to select the historical lagged data of observed runoff and rainfall as the candidate input of the model's predictor; in the second stage, the selected predictor is first scaled, and then the data set is divided into a training set, a validation set, and a test set. In the third stage, the GBRT model parameters are first calibrated by a grid search algorithm, and then the preferred parameters are used to implement forecasting and result evaluation on the test set. The specific process is described in detail below.

[0035] (I) Stage 1: Input selection using MIC, CCF, and PACF

[0036] The input dataset mainly consists of two parts: meteorological dataset and historical data of observation dataset. For the meteorological dataset, the MIC of runoff data and 26 meteorological data variables selected based on experience are first calculated. The detailed variable introduction is shown in Table 1.

[0037] The calculation of MIC is based on the concept of mutual information (MI). For a runoff variable X, the entropy of X is defined as:

[0038]

[0039] Where: p(x) is the probability density function of X = x. Further, for another meteorological data variable Y, the conditional entropy of X given Y can be estimated using formula (3):

[0040]

[0041] Where: H(X|Y) is the uncertainty of X under prior knowledge, p(x,y) and p(x|y) are the joint probability density and conditional probability when X=x and Y=y respectively. The reduction of the original uncertainty of X due to the prior knowledge of Y is called MI and is defined as:

[0042]

[0043] The calculation of MIC can be divided into three parts. Consider a given meteorological data set D, which contains variables X and Y, and the number of samples in the variable is n. First, draw a scatter plot of X and Y, and draw a grid to divide the area. This grid is called an x-by-y grid. D|G is defined as the distribution of D divided by a G in the x-by-y grid. MI*(D,x,y)=maxMI(D|G), where MI(D|G) is the mutual information of D|G. In the second step, the feature matrix is ​​defined as:

[0044]

[0045] Finally, MIC is introduced as the maximum value of the feature matrix, i.e. Where: B(n) is the upper bound of the number of grids, which is a function of the number of sampling points n and is defined as B = n 0.6 . Feature selection from the European Medium-Term Reanalysis data was implemented in two steps using the MIC approach. First, the MIC was calculated for each reanalysis variable and the observed runoff series. Then, the meteorological factor feature variables were ranked in descending order according to the size of the MIC and a trial-and-error procedure was used to determine the optimal set of meteorological factor inputs. In other words, starting from the first meteorological factor, the external inputs were then modified by successively adding one or more meteorological factors to the model input. The k meteorological factors selected from the reanalysis data were taken as part of the final model input, where k is the number of meteorological factors from the reanalysis data determined by the MIC.

[0046] For the observed data set, the PACF of the runoff series and the historical values ​​of the 1-12th order lag is calculated first, and the PACF is compared with the 95% confidence interval, and the lag values ​​that do not fall into the confidence interval are selected as input. Then the CCF of the runoff series and the rainfall observation series of the 1-12th order lag is calculated, and the CCF is compared with the 95% confidence interval, and the lag values ​​that do not fall into the confidence interval are selected as input. If the CCF decreases and the 12th order lag still does not fall into the confidence interval, the rainfall data is divided into 12 sets according to the 1st order lag, the 1st order and 2nd order lag, and the 1, 2 and 3rd order lag, and then the runoff lag selected by PACF is added to each set. The runoff lag selected by PACF is taken as a separate set to form 13 input structures. The detailed results can be found in Table 2.

[0047] Input selection results are shown in Figures 5(a) and 5(b) showing the partial autocorrelation, cross-correlation and corresponding 95% confidence intervals of the observed runoff series from lag 1 to lag 12. The partial autocorrelation shows significant autocorrelation at lag 1 and lag 4, respectively. Therefore, the runoff series lag 1 and lag 4 are selected as the input of the model. As the lag order increases, the correlation coefficient between runoff and rainfall decreases slowly but does not fall within the 95% confidence interval (Figure 5(b)). Therefore, it is necessary to use a model trial algorithm to determine the optimal lag order of the lagged rainfall series. The detailed information of the trial calculation is introduced in the third stage.

[0048] (II) Phase II: Data Scaling and Dataset Partitioning

[0049] Due to the scarcity of ground observation sites, short monitoring time and data confidentiality, measured data are often difficult to obtain. At the same time, the number of monitoring variables of ground observation data is limited. Therefore, the European Interim Reanalysis (ERA-interim) data is introduced to replace the actual monitoring site data for runoff forecasting. The data used are surface analysis data with a spatial resolution of 0.25° and a temporal resolution of 12h. The time range is 2011.1.1-2018.12.31, obtained from https: / / apps.ecmwf.int / datasets / data / interim-full-daily / levtype=sfc / . According to existing literature research, 26 near-surface variables are selected from the reanalysis data as potential input factors for runoff forecasting. These factors are listed in Table 1.

[0050] The scaled sequence is divided into training set, test set and validation set in a ratio of 2:1:1. For example, if the length of the data sequence is 2011-2018, the data of the training set is 2011-2014, and the data of the test set and validation set are 2015-2016 and 2017-2018 respectively.

[0051] Figure 3 The daily runoff series are shown, using the data from 2011.1.1-2014.12.31 (1461 days, about 50% of the entire dataset), 2015.1.1-2016.12.31 (731 days, about 25% of the entire dataset) and 2017.1.1-2018.12.31 (730 days, about 25% of the entire dataset) as the training set, validation set and test set respectively. The cumulative variables in the reanalysis dataset are taken as daily cumulative variables, and the instantaneous variables and daily maximum variables are also taken as the average instantaneous variables and the daily maximum variables. Figure 4 The control basin of Xiaowan Reservoir is shown. The red dots are monitoring points. There are 26 monitoring points in the control area. The meteorological data sequence used is the arithmetic mean sequence of the red monitoring point data. In order to eliminate the impact of the dimension and convert the order of magnitude of the data to the same level, the input factor sequence needs to be standardized. The data range is normalized by the following formula.

[0052]

[0053] Where: x scale is the transformed data sequence; x original is the original data sequence; x max and x min are the maximum and minimum values ​​in the original data sequence.

[0054] (III) Phase III: GBRT parameter calibration and forecast implementation

[0055] GBRT is an integrated prediction model with strong nonlinear capture capabilities, which can more fully capture the nonlinear relationship between input and output in a longer forecast period. It mainly includes two algorithms: decision tree algorithm and boosting algorithm. The decision tree shows strong robustness to input factors and is used as the basic model. The boosting algorithm is used as the integration rule to improve the accuracy of the model for runoff prediction.

[0056] A: Decision Tree

[0057] The decision tree in this invention refers to decision tree learning in computer science, which is one of the predictive modeling methods in machine learning. A decision tree consists of branch nodes (tree structure) and leaf nodes (tree output). Assume that a training data set has N features, each feature has n samples, {(X1, y1), (X2, y2), ..., (X n ,y n )}(X i =(x1,x2,…,x N ),i=1,2,…,n). In the input space where the training set is located, each region is recursively divided into two sub-regions, and the output value of each sub-region is used to construct a binary decision tree. The top-down loop branch learning of the decision tree adopts a greedy algorithm, and each branch node only cares about its own objective function. By traversing all features and all split points of each feature, the best feature j and split point s can be found by minimizing the square loss:

[0058]

[0059] Where:

[0060]

[0061]

[0062] Where: y i is the observed value, R1(j,s) and R2(j,s) are the partition results. c1 and c2 are the output values ​​of R1(j,s) and R2(j,s) respectively. Figure 1 An example of a decision tree model is shown, where the maximum depth and number of leaf nodes are 3 and 5 respectively. If the threshold of the loss is used as the stopping condition of the decision tree, it is easy to cause overfitting problems. Therefore, the following parameters are set to alleviate the overfitting problem of the decision tree model: the maximum depth of the tree, the minimum number of samples required to split the internal nodes, the minimum number of samples required to be at the leaf nodes, and the number of leaf nodes. These parameters are also the parameters that need to be optimized when using decision trees.

[0063] B: Boosting algorithm

[0064] The idea of ​​gradient boosting originated from Breiman's observation and can be interpreted as an optimization algorithm based on an appropriate cost function. Subsequently, an explicit regression gradient boosting algorithm was developed. Here we introduce the boosting algorithm used. Assume that a training data set has n samples, {(X1,y1),(X2,y2),···,(X n ,y n )}, the squared loss function is used to train the decision tree:

[0065]

[0066] The core of the GBRT algorithm is the iterative process of training decisions using the residual method. The GBRT iterative training process with M decision trees is as follows:

[0067] 1) Initialization

[0068] 2) For the m-th (m=1,2,...,M) decision tree:

[0069] (a) Operate the i-th (i=1,2,...,n) sample point. Replace the residual in the current model with the negative gradient of the loss function

[0070] (b) Use {(x i ,r mi )} Fit the regression tree. Get mt (t=1,2,...,T) as the i-th regression tree of its corresponding leaf node region, where t is the number of leaf nodes of regression.

[0071] (c) For each leaf region t = 1, 2, ..., T, the best fit value is obtained by Calculate to obtain.

[0072] (d) by using The fit result can be updated by adding the obtained fit value to the previous fit value.

[0073] 3) Finally, a strong learning method is given

[0074] According to the above introduction to GBRT, the parameters of GBRT can be divided into two categories: boosting parameters and tree parameters. Boosting parameters include learning rate and the number of weak learners (learning_rate and n_estimators). Setting the learning rate is used to reduce the gradient step size. The learning rate affects the total training time. The smaller the learning rate, the more iterations are required for training. There are four tree parameters: max_leaf_nodes, min_samples_leaf, min_samples_split and max_depth. Therefore, GBRT has six parameters to control the model complexity, and the parameters are adjusted using a trial algorithm.

[0075] Before adjusting the parameters, the GBRT model with the default parameters of the scikit-learn module in Python was used to test the input structure selected in the first stage. First, the 13 input structures listed in Table 2 were determined from the observation data, and 50 tests were conducted on each input structure. The optimal input structure was selected and recorded as obs based on the evaluation indicators. Then, according to the 26 input structures determined from the meteorological data listed in Table 3, 50 tests were conducted on each input structure. The optimal input structure was selected as the final input structure of the model based on the evaluation indicators. Table 4 lists the input structure of the model finally selected, and parameter adjustment and model prediction are based on this input structure.

[0076] In order to obtain the optimal parameter combination as quickly as possible, all parameters are optimized in two steps. First, n_estimators and learning_rate are fixed to 100 and 0.1 respectively. The four adjustment parameters, max_leaf_nodes, min_samples_leaf, max_depth and min_samples_split, form parameter combinations according to the cross-grid values ​​in Table 6, and 40,000 parameter combinations are generated in each forecast period. Secondly, after determining the tree parameters, the learning rate is corrected to 0.01, and n_estimators is set to 40 combinations according to Table 6 of the manual, and then optimized to determine the optimal n_estimators. In order to reduce the computational pressure, all models are calculated in parallel, and the scikit-learn module provides parallel implementation.

[0077] The model structures of GBRT and GBRT-MIC are as follows:

[0078]

[0079]

[0080] Where: and are the GBRT and GBRT-MIC runoff forecast values ​​for the current time t with a forecast period of T. and are the six parameters (i.e., boosting parameters and four tree parameters) of GBRT and GBRT-MIC with a forecast period of T at the current time t. p and q are the lag orders determined by PACF and CCF, respectively. E t is the feature of the reanalysis data at the current time t, and k is the number of features from the reanalysis data determined by MIC.

[0081] The parameters optimized according to the above process are trained on the training set, and then the trained model is used to implement prediction on the test set and validation set, and the prediction results are evaluated.

[0082] Comparative evaluation: It is very important to select appropriate evaluation criteria based on historical observation data to evaluate the accuracy of the model, so as to avoid the evaluation bias of a single indicator leading to inaccurate evaluation. Six widely used evaluation indicators are introduced to judge the model results and prediction effects. The details are as follows:

[0083] Root mean squared error (RMSE) and mean absolute error (MAE) are the most commonly used criteria for evaluating the performance of forecast models and can be calculated using equations (11) and (12) respectively.

[0084]

[0085]

[0086] Where: and Q i are the estimated and observed values ​​of runoff in period i, respectively. n is the number of sample points. RMSE is more sensitive to the prediction accuracy of the peak value in the sample and is therefore used to evaluate the model's ability to simulate flood peaks.

[0087] The Pearson correlation coefficient (CORR) is used to evaluate the correlation between the predicted value sequence and the observed value sequence. It can be calculated using formula (13).

[0088]

[0089] Where: The average of the predicted values. The range of CORR is 0-1. The closer the CORR is to 1, the better the model predicts.

[0090] Kling–Gupta efficiency scores (KGE) are also widely used evaluation indicators. They can be calculated using equations (14) and (15).

[0091]

[0092]

[0093] Where: σ is the standard deviation of the observation sequence, is the standard deviation of the predicted value sequence, μ is the mean of the observed value sequence, is the mean of the series of forecast values.

[0094] The cumulative percentage deviation of the high segment of the flow duration curve (BHV) is also proposed to estimate the prediction performance of the peak of the runoff sequence. It can be calculated by formula (16).

[0095]

[0096] Where: h = 1, 2, ..., H is the index of runoff with a probability of exceeding the standard less than 0.02. According to historical runoff data, the runoff threshold with a probability of exceeding 0.02 is 1722m 3 / s.

[0097] The index of agreement (IA) plays an important role in evaluating the degree of agreement between the observed value sequence and the runoff prediction sequence. Similar to CORR, it ranges between 0 and 1 and is defined using formula (17):

[0098]

[0099] Figure 2The overall structure of the framework of the present invention is described. This structure consists of two main models: GBRT and GBRT-MIC. In GBRT, MIC can identify effective feature subsets from a large number of meteorological factors that significantly affect runoff. PACF and CCF evaluate the correlation between actual observed runoff and rainfall at different lag orders and runoff during the forecast period, and the appropriate lag order is selected as the predictor of the model through hypothesis testing and trial calculation. Then, data preprocessing and feature scaling are performed on the selected predictors. Next, the dataset is divided into training set, validation set and test set according to the pre-specified length of each dataset. The grid search algorithm is a method of exhaustively searching all candidate parameter combinations, and the optimization of model parameters is guided by evaluating the validation set of each forecast period. GBRT is a prediction model integrating decision trees, which has a strong nonlinear capture ability and can more fully capture the nonlinear relationship between input and output over a longer forecast period. Compared with GBRT, GBRT-MIC adds meteorological data factors selected by MIC as inputs to the model. GBRT-MIC is used to predict water inflow. Finally, the prediction results of different models are evaluated.

[0100] Case Study

[0101] Xiaowan Hydropower Station in the lower reaches of the Lancang River in Yunnan Province, my country is selected as a calculation example. The Lancang River has a large head drop and rich water resources. The "two reservoirs and thirteen levels" cascade hydropower development is planned in my country. It is one of the thirteen major hydropower bases in my country, and there are currently 11 giant hydropower stations in operation. The main stream of the Lancang River is about 2,000 kilometers long, and the upstream basin area of ​​the Xiaowan Hydropower Station is 113,300 square kilometers. The Lancang River, also known as the Mekong River, originates from the Qinghai-Tibet Plateau and flows through China, Myanmar, Laos, Thailand, Cambodia and Vietnam. The main source of water for the Lancang River comes from the melting snow of the Qinghai-Tibet Plateau. Xiaowan Hydropower Station is the controlling hydropower station of the Lancang River. It is of great significance to study it with Xiaowan Hydropower Station as an example.

[0102] The test results are as follows Figure 6 As shown in the figure, the results show that the combination of the seventh input factor has the best performance. On this basis, the rainfall series with a lag of 1-6 days was selected as the input of the model. 26 input structures were tried (Table 3), and 50 tests were conducted for each input structure.

[0103] The results are as follows Figure 7As shown. The results show that the 8th input structure combination obtains the best performance, so the variables numbered 1-8 in Table 3 are selected as model inputs. Finally, a total of 16 variables (including 8 observed variables and 8 reanalysis variables) are selected as model inputs. As shown in Table 4, No. 9-18 are reanalysis variables, and the MIC of the selected reanalysis variables ranges from 0.643 to 0.847. In addition, No. 9 and No. 13-16 are variables related to temperature. Soil temperature level 3 (No. 9) is the temperature of the 3rd layer of soil (28-100cm, 0cm on the surface). The temperature of the snow layer (No. 13) gives the temperature of the snow layer from the ground to the snow-air interface. No. 10-12 are variables related to atmospheric water content. The 2-meter dew point temperature (No. 10) is a measure of air humidity. Combining temperature and pressure, relative humidity can be calculated. Total column water vapor (No. 11) is simply the total amount of water vapor, which is part of the total column water vapor. Total water column (No. 12) is the sum of water vapor, liquid water, cloud ice, rain, and snow in a water column extending from the Earth's surface to the top of the atmosphere. Layer 1 soil moisture volume (No. 19) is the volume of soil moisture in layer 1. Overall, all selected predictions are interpretable and have a good physical connection to runoff.

[0104] Hyperparameter optimization: The grid search method was used to optimize the hyperparameters of GBRT, GBRT-MIC, ANN-MIC and SVR-MIC. L-BFGS, an optimizer in the quasi-Newton method family, was used as the training algorithm of the neural network, and the number of hidden layers was fixed to 3. Appropriate parameters were selected from 2-2 neurons and four commonly used ANN activation functions (Logistic, Tanh, Identity, Relu) through grid search. In order to reduce the impact of randomly initialized weights, 50 neural network models were trained for each parameter combination. The optimal activation function and the number of nodes in the hidden layer were determined based on the minimum MAE of the validation set for each forecast period. The experimental results show that tanh and logistic functions are two more robust activation functions (Figure 8(a) and Figure 8(b)) and artificial neural networks with fewer nodes tend to obtain lower errors.

[0105] The optimal parameter combination for each forecast period is shown in Table 5. It can be seen that the optimal number of nodes is 2, 3 or 4, and the optimal activation function is the tanh function or the logistic function. For SVR, according to Lin et al. and Dibike et al., the radial basis function (RBF) performs better than other kernel functions in runoff simulation, so the present invention adopts RBF as the kernel function. There are three parameters that need to be adjusted. First, the appropriate parameter adjustment range is determined by trial and error. Then, through grid search, the parameters are optimized using the trial criterion with the smallest MAE to find the optimal parameters. The optimal parameter adjustment range for SVR is shown in Table 5. As mentioned above, for GBRT, there are six parameters that need to be adjusted. In order to obtain the optimal parameter combination as soon as possible, all parameters are optimized in two steps. First, n_estimators and learning_rate are fixed to 100 and 0.1 respectively. max_leaf_nodes, min_samples_leaf, max_depth and min_samples_split, the four adjustment parameters generate 40,000 models in each forecast period. Secondly, after determining the tree parameters, the learning rate was fixed to 0.01, and n_estimators was determined by grid search. In order to reduce the computational pressure, all models were distributed in about 12 central processing units (CPUs), and the total running time was about 7 hours for GBRT-MIC and GBRT. Table 6 lists the best parameter combinations for GBRT and GBRT-MIC.

[0106] Input comparison: Figure 9(a) to Figure 9(f) The performance indicators of GBRT and GBRT-MIC for the 1-10 day forecast period on the test set (2017 / 01 / 01-2018 / 12 / 31) are illustrated. It is obvious that the reanalysis data selected by MIC have greatly improved the forecasts of GBRT for both short and long forecast periods. In particular, for longer forecast periods, the prediction results of GBRT-MIC are significantly better than GBRT. As can be seen from Figure 9(a), compared with GBRT, the MAE of GBRT-MIC decreases from 175 to 172, a decrease of 1.74% for the two-day forecast period, and from 273 to 237, a decrease of 13.18% for the ten-day forecast period. As can be seen from Figure 9(b), compared with GBRT, the RMSE of GBRT-MIC for the two-day and ten-day forecasts is reduced by 1.4% and 10.6%, respectively. As can be seen from Figure 9(c), Figure 9(d) and Figure 9(f), the two-day forecast results of CORR, KGE and IA of GBRT-MIC increase by 0.2%, 2.2% and 1.0% respectively, and the ten-day forecast results increase by 3.4%, 7.8% and 2.2% respectively. Figure 9(e) compares the BHV of GBRT and GBRT-MIC, indicating that reanalysis data can improve the prediction ability of extreme values.

[0107] Figure 10(a) shows the five-day forecast runoff and observed runoff of GBRT-MIC and GBRT on the test set. The slopes of the fitting curves of GBRT-MIC and GBRT are 0.89 and 0.81, respectively, which also shows that GBRT-MIC can obtain more accurate runoff forecasts than GBRT. Figure 10(b) illustrates the distribution of the prediction errors of GBRT and GBRT-MIC. The results show that the prediction errors of the two models are close to the normal distribution, the prediction error of the GBRT-MIC model contains less unextracted information than the GBRT model, and the prediction runoff errors are concentrated around 0. Figure 10(c) provides the predicted runoff time series of GBRT-MIC and GBRT with a forecast period of five days (from the test set). It can be seen that GBRT-MIC provides good performance compared with GBRT, especially in extreme value forecasts. This shows that the problem of inaccurate extreme value forecasts of the GBRT model in rainfall-concentrated areas can be alleviated by combining the reanalysis data identified by MIC.

[0108] Model comparison: GBRT-MIC, SVR-MIC, ANN-MIC and the obtained optimal model parameters were used to perform 1-10 day runoff forecasts. The results of the training set and test set are shown in Table 7 and Table 8, respectively. In order to avoid falling into the local minimum problem, 50 ANN-MIC models were trained for each forecast period, and the median of the forecast results of the 50 models was used as the final evaluation result. It can be clearly seen from Table 7 that in terms of performance indicators within the 1-10 day forecast period, the GBRT-MIC model is more effective than other models in the training set, indicating that the GBRT-MIC model has a strong fitting ability. At the same time, all machine learning models have better prediction effects than the MLR-MIC model, and the MLR-MIC model cannot capture nonlinear relationships. It is worth noting that ANN-MIC has the best BHV in the training set.

[0109] As shown in Table 8, GBRT-MIC performs best on the six indicators of the test set within the 4-10 day forecast period. In the 10-day forecast period, the KGE of GBRT-MIC even reaches 0.8317. In the 1-3 day forecast period, the performance of the three machine learning models is close, but better than MLP-MIC. The machine learning model is able to obtain sufficient information for prediction in a shorter forecast period (1-3 days).

[0110] The performance indicators of these four models in the test set (2017-2018) for the 1-10 day forecast period are as follows: Figure 11(a) to Figure 11(f)As shown. The results show that the performance of the four models decreases as the forecast period increases (higher MAE, RMSE and BHV, lower CORR, KGE and IA). As mentioned above, the four models perform equally well in 1-3 day forecasts, but their performance differs significantly when the forecast period exceeds 3 days. The results show that, except for the prediction effect of ANN-MIC, which is close to that of GBRT-MIC, the prediction effect of GBRT on CORR, KGE and IA for 4-10 day forecasts is significantly higher than that of the other three models, and the prediction effect of MAE, RMSE and BHV is also significantly lower than that of GBRT-MIC. It is worth noting that SVR performs the worst according to BHV and KGE, which indicates that SVR cannot take into account the forecast of extreme values. On the contrary, the BHV of the GBRT-MIC model in the forecast period of 1-10 days is significantly better than that of other models, which indicates that the GBRT-MIC model is able to obtain high-precision extreme value forecasts among all the models developed.

[0111] Table 1. Description and symbols of selected meteorological data variables

[0112]

[0113] Table 2. Candidate inputs selected by PACF and CCF

[0114]

[0115]

[0116] Table 3. Candidate inputs selected by MIC

[0117]

[0118] Note: obs represents the best input set selected from the observed data set obs = {Q t-1 ,Q t-4 ,R t-1 ,R t-2 ,R t-3 ,R t-4 ,R t-5 ,R t-6}

[0119] Table 4. List of GBRT-MIC input factors. There are two types of input factors, observed variables and reanalysis variables. Reanalysis variables are available twice daily at 00:00 UTC and 12:00 UTC. Cumulative variables (e.g., total column water) are the sum of two monitoring periods, and instantaneous variables (e.g., 2-meter dew point temperature) are the average of two monitoring periods.

[0120]

[0121] Table 5. Optimization parameters of ANN-MIC and SVR-MIC

[0122]

[0123] Note: The parameter represents a set, (min, max, step) means

[0124] Table 6. Optimization parameters of GBRT and GBRT-MIC

[0125]

[0126] Table 7. Performance indicators of the training set

[0127]

[0128] Table 8. Performance indicators of the test set

[0129]

Claims

1. A multi-step daily runoff forecasting method based on meteorological information and deep learning algorithm, It is characterized in that It includes three stages. In the first stage, the maximum mutual information coefficient MIC method is used to select the features of the meteorological data set as the candidate input of the model's predictor, and the cross-correlation function CCF and partial autocorrelation function PACF are used to select the historical lagged data of observed runoff and rainfall as the candidate input of the model's predictor; in the second stage, the selected predictor is first scaled, and then the data set is divided into a training set, a validation set, and a test set; in the third stage, the GBRT model parameters are first calibrated by the grid search algorithm, and then the optimal parameters are used to implement the forecast on the test set; all stages are implemented based on the Python language and the scikit-learn module; the specific steps are as follows: Step 1. Apply MIC, CCF and PACF to select the input of GBRT-MIC model The input data set consists of two parts: the historical data of the meteorological data set and the observation data set. For the meteorological data set, the MIC of the runoff data and multiple meteorological data variables selected based on experience is first calculated. Then, the meteorological variables are sorted in descending order according to the calculation results of MIC. For the observed data set, the PACF of the runoff variable and the historical runoff variable lagged by one or more periods is calculated first, and the PACF is compared with its 95% confidence interval. If the PACF of the runoff in a certain lagged period does not fall into the confidence interval, the data of this lagged period is used as input, and then the CCF of the runoff variable and the historical rainfall observation variable lagged by one or more periods is calculated, and the CCF is compared with its 95% confidence interval. If the CCF of the rainfall in a certain lagged period does not fall into the confidence interval, the data of this lagged period is used as input; if the CCF decreases and the multi-order lag still does not fall into the 95% confidence interval, the rainfall data variable lagged by the first period is used to form an input set alone, and the rainfall data variables lagged by the first period and the second period are used to form the second input set, and so on to form multiple input sets, and then the historical runoff observation variables lagged by one or more periods selected by PACF are added to each set; finally, the historical runoff observation variables lagged by one or more periods selected by PACF are used as an input set alone, and all input sets are calculated according to the trial calculation method to obtain an optimal observation value input set, which is recorded as obs; Then, the first meteorological variable among the multiple meteorological variables arranged in descending order according to MIC constitutes an input set alone, the first and second meteorological variables constitute the second input set, the first, second and third meteorological variables constitute the third input set, and so on, multiple input sets can be obtained; the obtained multiple input sets are all added to the optimal observation value input set obs to obtain new multiple input sets; the new multiple input sets are used to obtain the optimal input set through trial calculation method as the input structure of GBRT-MIC model; The trial calculation method is carried out as follows: multiple input sets are respectively used as inputs of the GBRT model: the parameters of the GBRT model use the default parameters of the scikit-learn module in the Python language, and then the default evaluation indicators are used to evaluate the runoff forecast value obtained by using each input set as the input GBRT model, and by comparing the evaluation results, the optimal input set among the multiple input sets, i.e., obs, is selected, and the trial calculation is completed; the entire trial calculation process needs to ensure that the parameters and evaluation indicators used in the selection process are consistent; Step 2. Data Scaling and Dataset Partitioning For the input selected in step 1, first scale each variable according to the following formula to scale the magnitude of each variable to the same magnitude; Where: x scale is the transformed data sequence; x original is the original data sequence; x max and x min is the maximum and minimum value in the original data sequence; The scaled sequences are then divided into training, test, and validation sets according to the ratio; Step 3. Calibrate GBRT parameters and implement forecasting GBRT is an integrated prediction model that includes two algorithms: decision tree algorithm and boosting algorithm. The parameters that need to be optimized for the decision tree algorithm include the maximum depth of the tree max_depth, the minimum number of samples required to split internal nodes min_samples_spli, the minimum number of samples on a leaf node min_samples_leaf, and the maximum number of leaf nodes max_leaf_nodes. The boosting algorithm includes the learning rate learning_rate and the number of weak learners n_estimators. In order to obtain the best parameter combination as quickly as possible, all parameters are optimized in two steps. First, n_estimators and learning_rate use default parameters or are selected based on experience. max_leaf_nodes, min_samples_leaf, max_depth and min_samples_split are determined based on experience in discrete value spaces and then cross-grid values ​​are used to form parameter combinations, generating multiple parameter combinations in each forecast period. Second, after determining the tree parameters, the learning rate is corrected to a smaller value, n_estimators is set to multiple larger values, and then optimized to determine the best n_estimators. In order to reduce computational pressure, all models are computed in parallel, and the scikit-learn module provides parallel implementation. The optimized parameters are trained on the training set, and then the trained GBRT-MIC model is used to implement forecasts on the test set and validation set, and the runoff forecast results are evaluated.

2. A multi-step daily runoff forecasting method based on meteorological information and deep learning algorithm according to claim 1, It is characterized in that The MIC method is as follows: For a runoff variable X, the entropy of X is defined as: Where: p(x) is the probability density function of X=x; further, for another meteorological data variable Y, the conditional entropy of X given Y can be estimated using formula (3): Where: H(X|Y) is the uncertainty of X under prior knowledge, p(x,y) and p(x|y) are the joint probability density and conditional probability when X=x and Y=y respectively; the reduction of the original uncertainty of X due to the prior knowledge of Y is called MI, which is defined as: The calculation of MIC is divided into three parts. Consider a given meteorological data set D, which contains variables X and Y, and the number of samples in the variable is n. First, draw a scatter plot of X and Y, and draw a grid to divide the area. This grid is called an x-by-y grid. D|G is defined as the distribution of D divided by a G in the x-by-y grid. MI * (D,x,y)=maxMI(D|G), where MI(D|G) is the mutual information of D|G; In the second step, the feature matrix is ​​defined as: Finally, MIC is introduced as the maximum value of the feature matrix, i.e. Where: B(n) is the upper bound of the number of grids, which is a function of the number of sampling points n and is defined as B = n 0.6 ; Feature selection from the European Medium-Term Reanalysis data was implemented in two steps using the MIC method; first, the MIC was calculated for each reanalysis variable and observed runoff series; then, the meteorological factor characteristic variables were sorted in descending order according to the size of the MIC and a trial and error procedure was used to determine the optimal set of meteorological factor inputs; in other words, starting from the first meteorological factor, the external inputs were then modified by adding one or more meteorological factors to the model input in sequence; the k meteorological factors selected from the reanalysis data were taken as part of the final model input, where k is the number of meteorological factors from the reanalysis data determined by the MIC.

3. A multi-step daily runoff forecasting method based on meteorological information and deep learning algorithm according to claim 1, It is characterized in that The two algorithms in the GBRT model are as follows: A: Decision Tree A decision tree consists of branch nodes and leaf nodes. Assume that a training data set has N features, each feature has n samples, {(X 1 ,y 1 ),(X 2 ,y 2 ),…,(X n ,y n )},X i =(x 1 ,x 2 ,…,x N , i = 1, 2, ..., n; in the input space where the training set is located, each region is recursively divided into two sub-regions, and the output value of each sub-region is used to construct a binary decision tree; the top-down cyclic branch learning of the decision tree adopts a greedy algorithm, and each branch node only cares about its own objective function; by traversing all features and all segmentation points of each feature, the best feature j and segmentation point s can be found by minimizing the square loss: Where: Where: y i is the observed value, R 1 (j,s) and R 2 (j,s) is the partition result; c1 and c2 are R 1 (j,s) and R 2 The output value of (j,s); B: Boosting algorithm Assume that a training data set has n samples, {(X 1 ,y 1 ),(X 2 ,y 2 ),…,(X n ,y n )}, the squared loss function is used to train the decision tree: The core of the GBRT algorithm is the iterative process of training decisions using the residual method; the GBRT iterative training process with M decision trees is as follows: 1) Initialization 2) For the m-th decision tree, m = 1, 2, ..., M: (a) Operate the i-th sample point, i = 1, 2, ..., n; replace the residual in the current model with the negative gradient of the loss function (b) Use {(x i ,r mi )} Fit the regression tree; get the mt as the i-th regression tree of its corresponding leaf node region, where t is the number of leaf nodes of regression, t = 1, 2, ..., T; (c) For each leaf region t = 1, 2, ..., T, the best fit value is obtained by Calculate and obtain; (d) by using x i ∈R mt The fitting result can be updated by adding the obtained fitting value to the previous fitting value; 3) Finally, a strong learning method is given x i ∈R mt .

4. The multi-step daily runoff forecasting method based on meteorological information and deep learning algorithm according to claim 1, It is characterized in that The structures of the GBRT and GBRT-MIC models are as follows: Where: and are the GBRT and GBRT-MIC runoff forecast values ​​at the current time t with a forecast period of T, and are the six parameters of GBRT and GBRT-MIC with a forecast period of T at the current time t, namely two boosting parameters and four tree parameters; p and q are the lag orders determined by PACF and CCF respectively; E t is the feature of the reanalysis data at the current time t, and k is the number of features from the reanalysis data determined by MIC.