Medium- and long-term runoff ensemble forecasting method and system based on rainfall forecast

Through the medium- and long-term runoff ensemble forecasting method based on rainfall forecast, using corrected rainfall data and multiple model fusion technologies, the problem of insufficient certainty and accuracy of runoff forecast in the existing technology is solved, and a more reliable and accurate Runoff forecast results.

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

Patent Information

Application Number
CN202110719851.1
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 forecasts are difficult to reflect the uncertainty of future runoff and lack rainfall information, resulting in insufficient certainty and accuracy of forecast results.

Method used

By constructing a medium- and long-term runoff ensemble forecasting method based on rainfall forecasts, using corrected rainfall forecast data as input, combining multiple data-driven models and Bayesian model averaging methods, the forecast results of different models are integrated to generate more reliable and accurate Runoff ensemble forecast.

Benefits of technology

Effectively retain the information gain of rainfall forecast, reduce the impact of rainfall forecast error, improve the accuracy and reliability of medium and long-term runoff forecast, and reflect the uncertainty of future runoff.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113592143B
    Figure CN113592143B
Patent Text Reader

Abstract

The present invention provides a medium- and long-term runoff ensemble forecasting method and system based on rainfall forecast, the method comprising: constructing the runoff ensemble forecasting data of the target area according to the forecast period, historical runoff data and the forecasting factors corresponding to the historical runoff data, wherein the rainfall factor in the forecasting factors is obtained by correcting the rainfall forecasting data; inputting the runoff ensemble forecasting data into a trained runoff ensemble forecasting model to obtain the medium- and long-term runoff ensemble forecasting result of the target area, wherein the trained runoff ensemble forecasting model is obtained by training multiple data-driven models with sample runoff ensemble forecasting data. The present invention improves the accuracy and reliability of medium- and long-term runoff forecasting, and solves the problem that the traditional medium- and long-term runoff forecasting method can only produce deterministic runoff forecasting results.
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 ensemble forecasting method and system based on rainfall forecasting. Background Art

[0002] In recent years, due to the continuous increase in greenhouse gas emissions such as carbon dioxide caused by human activities, the global climate has been significantly affected. The global surface temperature has shown an overall warming trend, while precipitation in different regions has shown different trends. Changing climate conditions have brought more uncertainty to the future amount of water resources, while the demand for water resources from human activities has continued to grow, which has brought great pressure to the comprehensive development and utilization of water resources. In this case, the medium- and long-term runoff forecast that can provide future runoff information can provide decision-making support for the comprehensive utilization of water resources and improve the efficiency of the comprehensive utilization of water resources, and therefore has received more and more attention.

[0003] There are two main difficulties in the existing medium- and long-term runoff forecast. On the one hand, due to the lack of reliable meteorological forecast results (such as reliable medium- and long-term rainfall forecasts) and the time scale of medium- and long-term runoff forecasts is mostly monthly, it is difficult to establish a physical model based on the rainfall-runoff relationship; on the other hand, affected by many factors such as climate, vegetation, topography and human activities, river runoff sequences have obvious random and nonlinear characteristics. In response to these two problems, current research often uses data-driven models to establish statistical relationships between autocorrelation factors such as runoff and previous runoff and telecorrelation factors such as climate factors. Among them, commonly used data-driven models include artificial neural networks (ANN), support vector regression (SVR) and random forests, while commonly used climate factors include atmospheric circulation factors, sea temperature factors, etc. In this way, reliable medium- and long-term runoff forecast results can be generated to a certain extent.

[0004] However, in this method, since the forecast factors used are all fixed values, deterministic forecast results are usually generated, which cannot reflect the uncertainty of future runoff and have great risks in practical applications. On the other hand, since the key information of rainfall is missing in the modeling process, there is information missing in the forecast, which will affect the accuracy of the forecast results. Therefore, a medium- and long-term runoff ensemble forecast method and system based on rainfall forecast is urgently needed to solve the above problems. 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 ensemble forecasting method and system based on rainfall forecast.

[0006] The present invention provides a medium- and long-term runoff ensemble forecasting method based on rainfall forecast, comprising:

[0007] Constructing ensemble runoff forecast data for a target area according to the forecast period, historical runoff data, and forecast factors corresponding to the historical runoff data, wherein the rainfall factor in the forecast factor is obtained by correcting the rainfall forecast data;

[0008] The runoff ensemble forecast data is input into a trained runoff ensemble forecast model to obtain a medium- and long-term runoff ensemble forecast result for the target area, wherein the trained runoff ensemble forecast model is obtained by training multiple data-driven models using sample runoff ensemble forecast data.

[0009] According to a medium- and long-term runoff ensemble forecasting method based on rainfall forecast provided by the present invention, the trained runoff ensemble forecasting model is obtained by the following steps:

[0010] Based on the preset forecast period and the 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 factor; the sample forecast factor set at least includes a sample rainfall factor, and the sample rainfall factor is the rainfall measured data corresponding to the sample runoff data in the same period;

[0011] Inputting the sample prediction amount and the sample prediction factor into different data-driven models for training respectively to obtain multiple runoff prediction sub-models;

[0012] Obtaining sample forecast rainfall data of the same period as the sample runoff data, and inputting the sample forecast rainfall data into a rainfall data correction model to obtain corrected sample forecast rainfall data; the corrected sample forecast rainfall data includes a plurality of rainfall forecast values ​​in each month;

[0013] Based on the corrected sample forecast rainfall data, the measured rainfall data of the corresponding month in the sample forecast factor set is replaced to obtain a replaced sample forecast factor set, and the replaced sample forecast factor set is respectively input into each runoff forecast sub-model to obtain a sample runoff ensemble forecast result output by each runoff forecast sub-model;

[0014] According to the sample runoff ensemble forecast results and the corresponding sample runoff ensemble measured results, the model weight of each runoff forecast sub-model is determined to obtain a trained runoff ensemble forecast model.

[0015] According to a medium- and long-term runoff ensemble forecasting method based on rainfall forecast provided by the present invention, the rainfall data correction model is obtained by the following steps:

[0016] Acquire sample rainfall forecast data and sample rainfall measured data corresponding to the same period as the sample rainfall forecast data;

[0017] The sample rainfall forecast data and the sample rainfall measured data are input into a Bayesian joint probability distribution model for training to obtain a rainfall data correction model.

[0018] According to a medium- and long-term runoff ensemble forecasting method based on rainfall forecast provided by the present invention, the model weight of each runoff forecast sub-model is determined according to the sample runoff ensemble forecasting result and the corresponding sample runoff ensemble measured result to obtain a trained runoff ensemble forecasting model, including:

[0019] According to the sample runoff ensemble forecast results output by each runoff forecast sub-model, the corresponding sample runoff ensemble measured results are obtained;

[0020] Through the Bayesian model averaging method, the evaluation index of each runoff forecast sub-model is obtained according to the probability density estimation corresponding to the measured results of each sample runoff set;

[0021] According to the evaluation index, the model weight of each runoff forecast sub-model is obtained, and according to the model weight, all the runoff forecast sub-models are fused to obtain a trained runoff ensemble forecast model.

[0022] According to a medium- and long-term runoff ensemble forecast method based on rainfall forecast provided by the present invention, before constructing the runoff ensemble forecast data of the target area according to the forecast period, historical runoff data and the forecast factors corresponding to the historical runoff data, the method further includes:

[0023] Based on log-sinh transformation, the historical runoff data and the corrected rainfall forecast data are preprocessed to obtain the target historical runoff data and target rainfall forecast data.

[0024] The present invention also provides a medium- and long-term runoff ensemble forecasting system based on rainfall forecast, comprising:

[0025] A runoff forecast data construction module is used to construct the runoff ensemble forecast data of the target area according to the forecast period, the historical runoff data and the forecast factors corresponding to the historical runoff data, wherein the rainfall factor in the forecast factor is obtained by correcting the rainfall forecast data;

[0026] The medium- and long-term runoff ensemble forecast module is used to input the runoff ensemble forecast data into a trained runoff ensemble forecast model to obtain the medium- and long-term runoff ensemble forecast results for the target area, wherein the trained runoff ensemble forecast model is obtained by training multiple data-driven models using sample runoff ensemble forecast data.

[0027] According to a medium- and long-term runoff ensemble forecasting system based on rainfall forecast provided by the present invention, the system further comprises:

[0028] A sample construction module is used to construct a sample forecast amount and a sample forecast factor set corresponding to the sample forecast amount through sample runoff data and the sample forecast factor based on a preset forecast period and a lag period of each sample forecast factor; the sample forecast factor set at least includes a sample rainfall factor, and the sample rainfall factor is the rainfall measured data corresponding to the sample runoff data in the same period;

[0029] A training module, used for inputting the sample prediction amount and the sample prediction factor into different data-driven models for training, so as to obtain a plurality of runoff prediction sub-models;

[0030] A rainfall forecast data correction module is used to obtain sample forecast rainfall data of the same period as the sample runoff data, and input the sample forecast rainfall data into a rainfall data correction model to obtain corrected sample forecast rainfall data; the corrected sample forecast rainfall data contains a plurality of rainfall forecast values ​​in each month;

[0031] A rainfall forecast data replacement module is used to replace the rainfall measured data of the corresponding month in the sample forecast factor set based on the corrected sample forecast rainfall data to obtain a replaced sample forecast factor set, and input the replaced sample forecast factor set into each runoff forecast sub-model respectively to obtain a sample runoff ensemble forecast result output by each runoff forecast sub-model;

[0032] The model weight acquisition module is used to determine the model weight of each runoff forecast sub-model according to the sample runoff ensemble forecast results and the corresponding sample runoff ensemble measured results, so as to obtain a trained runoff ensemble forecast model.

[0033] According to a medium- and long-term runoff ensemble forecasting system based on rainfall forecast provided by the present invention, the model weight acquisition module includes:

[0034] A processing unit, used for obtaining corresponding sample runoff ensemble measured results according to the sample runoff ensemble forecast results output by each runoff forecast sub-model;

[0035] An evaluation unit, used to obtain an evaluation index of each runoff forecast sub-model by estimating the probability density corresponding to the measured results of each sample runoff set through a Bayesian model averaging method;

[0036] The multi-model fusion unit is used to obtain the model weight of each runoff forecast sub-model according to the evaluation index, so as to fuse all the runoff forecast sub-models according to the model weight to obtain a trained runoff ensemble forecast model.

[0037] 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 the medium- and long-term runoff ensemble forecasting method based on rainfall forecast as described in any one of the above are implemented.

[0038] 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 methods for medium- and long-term runoff ensemble forecasting based on rainfall forecast.

[0039] The medium- and long-term runoff ensemble forecasting method and system based on rainfall forecast provided by the present invention effectively apply rainfall forecast products to medium- and long-term runoff forecasts, retain effective information of rainfall forecasts, reduce the impact of rainfall forecast errors, and can improve the accuracy and reliability of medium- and long-term runoff forecasts through the information gain brought by rainfall forecasts, and solve the problem that traditional medium- and long-term runoff forecasting methods can only produce deterministic runoff forecast results. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] 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.

[0041] Figure 1 A schematic flow chart of the medium- and long-term runoff ensemble forecasting method based on rainfall forecast provided by the present invention;

[0042] Figure 2 A schematic diagram of the overall process of the medium- and long-term runoff forecast provided by the present invention;

[0043] Figure 3 A schematic diagram of the effect of the medium- and long-term runoff ensemble forecast results based on a hydrological station provided by the present invention;

[0044] Figure 4 A schematic diagram of the structure of the medium- and long-term runoff ensemble forecasting system based on rainfall forecast provided by the present invention;

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

[0046] 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.

[0047] In the current medium- and long-term runoff forecast, a statistical forecast model is often established through the teleconnection relationship between runoff and climate factors. However, in this case, only deterministic runoff forecasts can be produced, which cannot reflect the uncertainty of future runoff, and the lack of rainfall information will affect the forecast accuracy of the model.

[0048] In recent years, the continuous improvement of the forecast effect of medium- and long-term rainfall forecast products has brought more possibilities for medium- and long-term runoff forecast. Although the reliability and accuracy of the initial medium- and long-term rainfall forecast products are still poor, and the forecast rainfall has a large deviation from the measured rainfall, the forecast rainfall can be effectively corrected through error correction, thereby producing a relatively more reliable rainfall forecast result. Therefore, it is possible to consider using the corrected forecast rainfall as the input of the medium- and long-term runoff forecast to introduce the key information of rainfall.

[0049] In addition, studies have shown that error correction can be used to generate an ensemble forecast of future rainfall, which can effectively reflect the uncertainty of future rainfall. Therefore, each ensemble value in the corrected rainfall ensemble forecast data is used as the input of the medium- and long-term runoff forecast, which can introduce uncertain factors in the forecast, generate corresponding runoff ensemble forecast results, and reflect the uncertainty of future runoff. Although theoretically, introducing rainfall forecast products into the medium- and long-term runoff forecast can bring information gain and generate corresponding runoff ensemble forecasts, rainfall forecast errors may also cause runoff forecast errors to be larger. In this case, how to introduce rainfall forecast products into the medium- and long-term runoff forecast and retain their effective information and reduce the errors they bring is still a problem. Therefore, the present invention establishes a medium- and long-term runoff ensemble forecast method framework that introduces rainfall forecast products, effectively retains the information gain brought by rainfall forecasts, and reduces the influence of rainfall forecast errors as much as possible, improves the accuracy of runoff forecasts and generates reliable runoff ensemble forecast results to reflect the uncertainty of future runoff. In this method framework, the corrected rainfall ensemble forecast results are used as input, and the corresponding runoff ensemble forecast is generated through a variety of rainfall-runoff models. Finally, the ensemble forecast results of different models are fused by the model fusion method to produce a more reliable and accurate runoff ensemble forecast result.

[0050] Figure 1 A flow chart of the medium- and long-term runoff ensemble forecasting method based on rainfall forecast provided by the present invention is shown in FIG. Figure 1 As shown, the present invention provides a medium- and long-term runoff ensemble forecasting method based on rainfall forecast, comprising:

[0051] Step 101, constructing ensemble runoff forecast data for a target area based on a forecast period, historical runoff data and forecast factors corresponding to the historical runoff data, wherein a rainfall factor in the forecast factor is obtained by correcting the rainfall forecast data.

[0052] In the present invention, firstly, based on the forecast period, the months for which runoff forecasting is required are determined, so as to construct data input for forecasting medium- and long-term runoff according to the selected forecasting factors and data processing methods. The present invention is explained by the ensemble forecasting of runoff from January 2010 to December 2014 of a hydrological station, and the runoff from January 2010 to December 2014 is forecasted in sequence according to the ensemble forecasting data of the hydrological station from December 2009 to November 2014 (i.e., the ensemble forecasting data in December 2009 is used to forecast the runoff data in January 2010, and so on). Since the forecasting steps for different months are similar, the present invention takes the forecasting conducted in December 2009 as an example to illustrate the process of generating the ensemble forecasting result. Specifically, to forecast the runoff in January 2010 in December 2009, it is first necessary to obtain the rainfall data in January 2010 (as one of the forecasting factors), the month of January 2010, the runoff in December 2009 (i.e., historical runoff data), and other corresponding climate factors (e.g., radiation factors, circulation factors, and geographical factors, etc.). Except for the rainfall data, all other factors can be obtained in December 2009. Furthermore, for the historical runoff data, the log-sinh method can be used for preprocessing; for the climate monitoring index in the forecasting factor, a monthly standardization processing method is adopted; for the monthly data, it is normalized to between -1 and 1. After preprocessing the above data, an input x can be constructed. new , where the rainfall data is temporarily unavailable.

[0053] Furthermore, the corresponding forecast rainfall value is obtained and corrected to obtain the corrected rainfall ensemble forecast result. In the present invention, the rainfall forecast value P′ generated in December 2009 for January 2010 is obtained. new After correction, the rainfall ensemble forecast result for January 2010 is obtained as g(P′ new ) contains 1000 rainfall forecast data.

[0054] Preferably, based on the above embodiment, before constructing the runoff ensemble forecast data of the target area according to the forecast period, the historical runoff data and the forecast factors corresponding to the historical runoff data, the method further includes:

[0055] Based on log-sinh transformation, the historical runoff data and the corrected rainfall forecast data are preprocessed to obtain the target historical runoff data and target rainfall forecast data.

[0056] In the present invention, the data in the rainfall ensemble forecast result is preprocessed, and the rainfall ensemble forecast result g(P′ new ) is converted, and the converted data is recorded as g′(P′ new ). Similarly, the log-sinh method is also used to process the historical runoff data.

[0057] Furthermore, g′(P′ new ) is placed at x new The position of the rainfall factor corresponding to the month, and the input vector x new,j , thus obtaining the runoff ensemble forecast data x based on the rainfall forecast data new,j In the present invention, the runoff ensemble forecast data x new,j The rainfall forecast data for January 2010 contains 1000 forecast values.

[0058] Step 102, input the runoff ensemble forecast data into a trained runoff ensemble forecast model to obtain a medium- and long-term runoff ensemble forecast result for the target area, wherein the trained runoff ensemble forecast model is obtained by training multiple data-driven models using sample runoff ensemble forecast data.

[0059] In the present invention, any runoff ensemble forecast data x new,j Input into the trained runoff ensemble forecast model to generate a predicted runoff value f m (x new,j ); Further, in the present invention, the runoff forecast values ​​corresponding to the 1000 rainfall forecast values ​​are aggregated to form a runoff ensemble forecast result containing 1000 members, denoted as f m (x new ,g′(P′ new )).

[0060] In the present invention, the trained runoff ensemble forecast model is constructed by training multiple data-driven models. By using different models, the runoff ensemble forecast results corresponding to different models can be obtained, and the runoff ensemble forecast results of each model can be fused through the weights of each model. It should be noted that the above-mentioned runoff ensemble forecast results are all results in the data space after log-sinh transformation, and the fused ensemble forecast results need to be converted into actual runoff ensemble forecast results. Therefore, the present invention adopts the inverse transformation of log-sinh transformation to convert each value in the ensemble forecast result into an actual runoff value, thereby obtaining the medium- and long-term runoff ensemble forecast results of the target area.

[0061] The medium- and long-term runoff ensemble forecasting method based on rainfall forecast provided by the present invention effectively applies rainfall forecast products to medium- and long-term runoff forecasting, retains effective information of rainfall forecasting, reduces the impact of rainfall forecasting errors, can improve the accuracy and reliability of medium- and long-term runoff forecasting through the information gain brought by rainfall forecasting, and solves the problem that traditional medium- and long-term runoff forecasting methods can only produce deterministic runoff forecasting results.

[0062] Based on the above embodiment, the trained runoff ensemble forecast model is obtained by the following steps:

[0063] Step 201, 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 factor; the sample forecast factor set includes at least a sample rainfall factor, and the sample rainfall factor is the actual rainfall data corresponding to the sample runoff data in the same period.

[0064] In the present invention, the original sample data is first obtained and preprocessed. In one embodiment, the monthly runoff data (i.e., monthly sample runoff data) of a hydrological station from January 1959 to December 2009 and the sample rainfall measured data of the same period are collected, and the month information corresponding to the monthly runoff data is naturally obtained; in addition, 130 climate monitoring indexes (as sample forecasting factors) released by the National Climate Center of the same period are also collected, including 88 atmospheric circulation indexes, 26 sea temperature indexes and 16 other indexes (for example, sunspot index). For the sample runoff data and the sample rainfall measured data, the log-sinh method is used to process them; for the 130 climate monitoring indexes, a monthly standardized processing method is adopted; for the monthly data, it is normalized to between -1 and 1, and the processed sample runoff data, sample rainfall measured data, monthly information and climate factor data are recorded as Q, R, M and F respectively.

[0065] Furthermore, by setting the forecast period and the lag period of the impact of different factors on runoff, the sample forecast and the corresponding set of candidate forecast factors are constructed. Specifically, the monthly information and sample measured rainfall data are all based on the data of the same period as the sample runoff data, the previous runoff factor uses the latest runoff data currently available, and the climate factor data uses the current and previous climate factor data. In the present invention, the forecast period is set to 1 month, and the maximum lag period of the climate factor data is set to 12. Then, when the runoff Q of the tth month (January 1959 is the first month) is to be forecasted, t When the candidate forecast factors include the measured rainfall data R t 、Data for the same period M t , current sample runoff data Q t-1 And the previous climate factor data [F t-1 ,F t-2 ,…,F t-12 Based on this, we can construct a set of candidate prediction factors and the corresponding sample prediction quantity, where the corresponding sample prediction quantity Q t The set of candidate predictors is [F t-1 ,F t-2 ,…,F t-12 ,Q t-1 ,M t ,R t ]. Considering that the climate factors in the previous 12 months are used as candidate prediction factors, t should be between 13 and 612, so a total of 600 sample points can be obtained, that is, the runoff from January 1960 to December 2009 is predicted respectively. These 600 sample points are ranked from 1 to 600, and the prediction value y of the i-th sample point is i is the runoff Q of the i+12th month i+1 , alternative predictor z i For the corresponding [F i+11 ,F i+10 ,…,F i ,Q i+11 ,M i+12 ,R i+12 ], then 600 y i Can form the forecast quantity Y, 600 z i A set Z of candidate predictors may be constructed.

[0066] It should be noted that, in the present invention, the rainfall factor is used as the selected forecasting factor, and appropriate forecasting factors are selected from other forecasting factors in the candidate forecasting factor set (the present invention uses the factor selection method to select the forecasting factor that can produce the maximum gain for the forecast from other factors in the candidate forecasting factor set) to form the forecasting factor set X. Specifically, the forecasting factor is selected from the candidate forecasting factor set Z using the factor selection method based on partial mutual information. The selected factors include the rainfall factor (determined in the previous period), the previous runoff factor, the month, and some climate factors. Then, the columns corresponding to these forecasting factors are selected from Z to form the sample forecasting factor set X.

[0067] Step 202, inputting the sample prediction amount and the sample prediction factor into different data-driven models for training respectively, to obtain a plurality of runoff prediction sub-models;

[0068] In the present invention, different data-driven models are selected to establish rainfall-based runoff forecast sub-models based on sample forecast quantity Y and forecast factor X. Among them, the data-driven models used in the present invention are three data-driven models: support vector regression (SVR), multi-layer perceptron (MLP) and long short-term memory network (LSTM), so as to establish the relationship between the forecast quantity and the forecast factor. For any input vector x i , the fitted values ​​of the outputs of the three models are f m (x i ), m = 1, 2, ..., M, M is the total number of models selected, in the present invention, m is between 1 and 3, representing SVR, MLP and LSTM models respectively. By training the above three models respectively, when the preset training conditions are met (for example, the preset number of training times is reached), multiple runoff forecast sub-models are obtained.

[0069] Step 203, obtaining sample forecast rainfall data of the same period as the sample runoff data, and inputting the sample forecast rainfall data into a rainfall data correction model to obtain corrected sample forecast rainfall data; the corrected sample forecast rainfall data contains multiple rainfall forecast values ​​in each month.

[0070] On the basis of the above embodiment, before correcting the rainfall data, it is first necessary to construct a rainfall data correction model, and the rainfall data correction model is obtained by the following steps:

[0071] Obtaining sample rainfall forecast data and sample rainfall measured data corresponding to the same period as the sample rainfall forecast data;

[0072] The sample rainfall forecast data and the sample rainfall measured data are input into a Bayesian joint probability distribution model for training to obtain a rainfall data correction model.

[0073] In the present invention, the forecast rainfall data P′ of the basin with a forecast period and consistent with the runoff forecast is collected. In this embodiment, the sample rainfall forecast data with a forecast period of 1 month of the SEAS5 version of the European Centre for Medium-Range Weather Forecasts (ECMWF) is downloaded and interpolated to the basin scale. The sample forecast rainfall data includes the forecast data generated from January 1993 to December 2009, that is, the forecast rainfall from February 1993 to January 2010.

[0074] Furthermore, the sample rainfall forecast data and the corresponding sample measured rainfall data are used as inputs of the data correction method to establish a rainfall data correction model. In the present invention, a Bayesian Joint Probability distribution (BJP) model is adopted, and the inputs are the sample measured rainfall data from February 1993 to January 2010, and the sample rainfall forecast data from February 1993 to January 2010 generated from January 1993 to December 2009 (for example, the forecast rainfall for February 1993 is generated in January 1993, and so on). The established model can be based on a forecast rainfall value P′ j Generate a rainfall ensemble forecast result, denoted as g(P′ j ), in the present invention, it is assumed that the ensemble forecast result contains 1000 ensemble forecast values, that is, g(P′ j ) contains 1000 values.

[0075] Then, all the original forecast rainfall data are corrected using the rainfall data correction model obtained through training. In the present invention, the forecast rainfall from February 1993 to January 2010 is corrected, and the ensemble forecast rainfall from February 1993 to January 2010 (a total of 216 months, with 1000 forecast values ​​for each month) is obtained after correction, which is recorded as g(P′).

[0076] Step 204, based on the corrected sample forecast rainfall data, replace the measured rainfall data of the corresponding month in the sample forecast factor set to obtain a replaced sample forecast factor set, and input the replaced sample forecast factor set into each runoff forecast sub-model respectively to obtain the sample runoff ensemble forecast result output by each runoff forecast sub-model.

[0077] In the present invention, from the monthly runoff data from January 1959 to December 2009 and the sample forecast rainfall data of the same period, the months with both sample forecast quantities and sample forecast rainfall data are selected, and the corresponding sample forecast rainfall data, corrected rainfall ensemble forecast data, sample forecast quantities and corresponding sample forecast factors are intercepted. In the present invention, the months with both forecast quantities and forecast rainfall data are from February 1993 to December 2009 (a total of 215 months). The sample forecast rainfall data during this period are the first 215 values ​​of P', denoted as P2', and the corresponding corrected rainfall ensemble forecast result is denoted as g(P2'). The sample forecast quantities and sample forecast factors corresponding to this period are the last 215 sample data of Y and X, denoted as Y2 and X2, respectively.

[0078] Furthermore, all data in g(P2′) are converted to obtain converted data. In the present invention, the rainfall ensemble forecast data (i.e., each sample forecast data) is converted using log-sinh transformation, and the converted data is recorded as g′(P2′). Next, each forecast value in g′(P2′) is used to replace the corresponding rainfall factor in the forecast factor X2, and the replaced input vector is used as the input of each runoff forecast sub-model to obtain a predicted runoff value, and then the predicted runoff values ​​corresponding to different predicted rainfall values ​​in g′(P2′) are combined to obtain the sample runoff ensemble forecast result.

[0079] Step 205, determining the model weight of each runoff forecast sub-model according to the sample runoff ensemble forecast result and the corresponding sample runoff ensemble measured result, and obtaining a trained runoff ensemble forecast model.

[0080] In the present invention, g′(P2′) contains 215*1000 forecast values. Taking the i-th month among 215 months as an example, the transformed rainfall ensemble forecast data is g′(P 2 ' i ), contains 1000 values, corresponding to the i-th sample x2 in X2 i . With g′(P2′ i ) replaces x2 with the jth value in i The value corresponding to the rainfall factor in , and a new input vector is obtained Using it as input to the data-driven model, we can get a fitted value In the present invention, if i is set to 1 to 215 and j is set to 1 to 1000, 1000 forecast runoff values ​​corresponding to 215 months can be obtained, so that the runoff ensemble forecast corresponding to each runoff forecast sub-model can be generated based on the rainfall ensemble forecast.

[0081] Preferably, based on the above embodiment, the model weight of each runoff forecast sub-model is determined according to the sample runoff ensemble forecast result and the corresponding sample runoff ensemble measured result to obtain a trained runoff ensemble forecast model, including:

[0082] According to the sample runoff ensemble forecast results output by each runoff forecast sub-model, the corresponding sample runoff ensemble measured results are obtained;

[0083] Through the Bayesian model averaging method, the probability density corresponding to the measured results of the sample runoff set is estimated to obtain the evaluation index of each runoff forecast sub-model;

[0084] According to the evaluation index, the model weight of each runoff forecast sub-model is obtained, and according to the model weight, all the runoff forecast sub-models are fused to obtain a trained runoff ensemble forecast model.

[0085] In the present invention, the Bayesian Model Averaging (BMA) method is used to fuse the results of different models. In the BMA method, the corresponding sample runoff ensemble measured results are obtained according to the sample runoff ensemble forecast results of different models; then the probability density estimate based on the measured value is used as the evaluation index of the runoff ensemble forecast results of each model. In the present invention, the larger the probability density estimate, the more concentrated the forecast is near the measured value, and the greater the weight of the model. Specifically, when the present invention is fused by the BMA method, different weights are used for the forecast results of different months, that is, from January to December, the weights corresponding to the SVR, MLP, and LSTM models are different, among which the weights corresponding to the three models in the runoff forecast in January are 0.53, 0.34 and 0.13, respectively, and the sum of the model weights is 1. When fusion is performed, according to the size of the weight of each model, the corresponding number of runoff forecast values ​​are sampled from each runoff ensemble forecast result to form a new ensemble runoff forecast result. For example, when making the forecast for January, the weights of each model are 0.53, 0.34, and 0.13, respectively. Then 530, 340, and 130 prediction values ​​are sampled from the runoff ensemble forecasts of the SVR, MLP, and LSTM models, respectively, to form the fused ensemble forecast results.

[0086] In the present invention, a medium- and long-term runoff ensemble forecast method framework is established, which takes the corrected rainfall ensemble forecast results as input, generates runoff ensemble forecasts using a variety of rainfall-runoff models, and fuses the ensemble forecast results of different models using a model fusion method. Through this framework, rainfall forecast products can be introduced into the medium- and long-term runoff forecast, generating accurate and reliable runoff ensemble forecast results.

[0087] In one embodiment, Figure 2The overall process diagram of the medium- and long-term runoff forecast provided by the present invention can be referred to Figure 2 As shown, in step S1, data processing and prediction factor selection are first performed to construct sample forecast quantities and sample prediction factors; then, in step S2, based on the sample set obtained in the previous step, different data-driven models are trained to obtain multiple rainfall-runoff models, that is, to obtain runoff forecast sub-models; in step S3, the corrected rainfall forecast data is obtained, and the rainfall factors in the forecast factors are replaced; further, in step S4, based on the forecast factors that replace the rainfall forecast data, the weights of each runoff forecast sub-model during model fusion are determined to obtain a trained runoff ensemble forecast model; finally, in step S5, the trained runoff ensemble forecast model is applied to actual medium- and long-term runoff forecast scenarios.

[0088] The runoff ensemble forecast model constructed by the present invention is used to make an ensemble forecast of the runoff of the hydrological stations in the above embodiment from January 2010 to December 2014, and the mid- and long-term runoff ensemble forecast results from January 2010 to December 2014 are obtained. Figure 3 The schematic diagram of the effect of the medium- and long-term runoff ensemble forecast results based on a hydrological station provided by the present invention is as follows: Figure 3 As shown in the figure, the box plot is the distribution of the ensemble forecast. In each year, '+' is the outlier of the ensemble forecast. It can be seen that about 90% of the measured values ​​fall within the ensemble forecast results of runoff, indicating that the forecast results have high reliability. On the other hand, the non-flood season and the flood season have different forecast characteristics. In the non-flood season, that is, the months with smaller measured runoff, the forecast interval is also very small, which is basically consistent with the measured value. In the flood season, that is, the months with larger measured runoff, the uncertainty of runoff is greater, so the forecast interval is also larger to better reflect the uncertainty of the forecast.

[0089] In order to illustrate the improvement of the forecast effect of the medium- and long-term runoff ensemble forecast method used in the present invention, the forecast effect is evaluated from a quantitative perspective and the forecast effects under different conditions are compared. The evaluation index used is the continuous ranked probability score (CRPS) that reflects the overall ensemble forecast effect, and its calculation formula is as follows:

[0090]

[0091]

[0092] Among them, y i is the measured value, N is the number of samples in the validation set, and F iis the cumulative distribution function of the ensemble forecast of the i-th sample point. In the present invention, the smaller the CRPS value, the better the forecast effect. In order to compare the advantages and disadvantages of different models, the following CRPSS index is defined:

[0093]

[0094] Among them, CRPS Ref is an evaluation index of a reference model, CRPS New It is an evaluation indicator of the new model. The CRPSS value reflects the improvement of the forecasting effect of the new model compared with the reference model.

[0095] Furthermore, in order to illustrate the improvement of rainfall forecast products on the mid- and long-term runoff ensemble forecast effect, the corrected rainfall ensemble forecast results in the above embodiment are changed to rainfall ensemble forecasts based on random sampling of historical rainfall, and used as inputs of different data-driven models, and the mid- and long-term runoff ensemble forecast results without rainfall forecast products can be obtained. The CRPS values ​​in the two cases and the improvement in forecast effect (CRPSS) after adding rainfall forecast products are shown in Table 1:

[0096] Table 1

[0097] method <![CDATA[CRPS Ref ]]> <![CDATA[CRPS P ]]> CRPSS(%) SVR 0.446 0.378 15.4 MLP 0.451 0.391 13.3 LSTM 0.459 0.393 14.2

[0098] CRPS in Table 1 Ref When there is no rainfall forecast product (the rainfall ensemble forecast is obtained based on random sampling of historical data), the evaluation index of the forecast of the three models in this embodiment, CRPS P is the forecast evaluation index value when there is a rainfall forecast product (forecasting is performed according to the above specific implementation method), and CRPSS is the forecast effect improvement after the introduction of the rainfall forecast product. As can be seen from Table 1, the difference in forecast effects between different models is relatively small. Compared with the forecast without rainfall forecast products, the forecast effect is significantly improved when there is a rainfall forecast product. The obtained CRPSS value is between 13.3% and 15.4%, indicating that the introduction of rainfall forecast products can effectively improve the runoff forecast effect, and the method framework described in the present invention can play a beneficial role in rainfall forecast products.

[0099] In order to illustrate the influence of model fusion on the runoff ensemble forecast effect in the present invention (i.e., the improvement of the runoff ensemble forecast effect after fusion by the BMA method), the forecast effect of different models is used as a reference to calculate the improvement of the forecast effect after fusion. The results are shown in Table 2:

[0100] Table 2

[0101] Reference Method <![CDATA[CRPS P ]]> <![CDATA[CRPS BMA ]]> CRPSS(%) SVR 0.378 2.1 MLP 0.391 0.370 5.4 LSTM 0.393 5.9

[0102] CRPS in Table 2 BMAis the CPRS value after fusion. As can be seen from Table 2, compared with the runoff ensemble forecasts generated by the three single models, the forecast effect after fusion by the BMA method is further improved, with CRPSS ranging from 2.1% to 5.9%, indicating that the model fusion method used can effectively combine the advantages of different models and produce better runoff forecast results.

[0103] Through the above comparative analysis, it can be seen that the medium- and long-term runoff ensemble forecasting method based on rainfall forecast described in the present invention can effectively incorporate rainfall forecast products into medium- and long-term runoff forecasts, and produce reliable medium- and long-term runoff ensemble forecast results. The introduction of rainfall forecast products can bring more information gain. The present invention effectively retains the useful information of rainfall forecast products, improves the accuracy of runoff forecasts, and makes ensemble forecasts more reliable. In addition, the model fusion method of the present invention can combine the advantages of different models to further improve the effect of medium- and long-term runoff ensemble forecasts.

[0104] Figure 4 The schematic diagram of the structure of the medium- and long-term runoff ensemble forecasting system based on rainfall forecast provided by the present invention is as follows: Figure 4 As shown, the present invention provides a medium- and long-term runoff ensemble forecasting system based on rainfall forecast, comprising a runoff forecast data construction module 401 and a medium- and long-term runoff ensemble forecasting module 402, wherein the runoff forecast data construction module 401 is used to construct the runoff ensemble forecasting data of the target area according to the forecast period, historical runoff data and the forecasting factors corresponding to the historical runoff data, and the rainfall factor in the forecasting factors is obtained by correcting the rainfall forecasting data; the medium- and long-term runoff ensemble forecasting module 402 is used to input the runoff ensemble forecasting data into a trained runoff ensemble forecasting model to obtain the medium- and long-term runoff ensemble forecasting result of the target area, wherein the trained runoff ensemble forecasting model is obtained by training multiple data-driven models with sample runoff ensemble forecasting data.

[0105] The medium- and long-term runoff ensemble forecasting system based on rainfall forecast provided by the present invention effectively applies rainfall forecast products to medium- and long-term runoff forecasts, retains effective information of rainfall forecasts, reduces the impact of rainfall forecast errors, can improve the accuracy and reliability of medium- and long-term runoff forecasts through the information gain brought by rainfall forecasts, and solves the problem that traditional medium- and long-term runoff forecasting methods can only produce deterministic runoff forecast results.

[0106] On the basis of the above embodiment, the system also includes a sample construction module, a training module, a rainfall forecast data correction module, a rainfall forecast data replacement module and a model weight acquisition module, wherein the sample construction module is used to construct a sample forecast amount and a sample forecast factor set corresponding to the sample forecast amount through sample runoff data and the sample forecast factor based on a preset forecast period and the lag period of each sample forecast factor; the sample forecast factor set at least includes a sample rainfall factor, and the sample rainfall factor is the rainfall measured data corresponding to the sample runoff data in the same period; the training module is used to input the sample forecast amount and the sample forecast factor into different data-driven models for training, so as to obtain multiple runoff forecast sub-models; the rainfall forecast data correction module is used to obtain the sample forecast amount and the sample forecast factor set corresponding to the sample runoff data in the same period; The sample forecast rainfall data is used to replace the measured rainfall data of the corresponding month in the sample forecast factor set based on the corrected sample forecast rainfall data to obtain the replaced sample forecast factor set, and the replaced sample forecast factor set is respectively input into each runoff forecast sub-model to obtain the sample runoff ensemble forecast result output by each runoff forecast sub-model; and the model weight acquisition module is used to determine the model weight of each runoff forecast sub-model according to the sample runoff ensemble forecast result and the corresponding sample runoff ensemble measured result to obtain the trained runoff ensemble forecast model.

[0107] On the basis of the above embodiment, the model weight acquisition module includes a processing unit, an evaluation unit and a multi-model fusion unit, wherein the processing unit is used to obtain the corresponding sample runoff set measured results according to the sample runoff set prediction results output by each runoff forecast sub-model; the evaluation unit is used to obtain the evaluation index of each runoff forecast sub-model according to the probability density estimation corresponding to the measured results of each sample runoff set through the Bayesian model averaging method; the multi-model fusion unit is used to obtain the model weight of each runoff forecast sub-model according to the evaluation index, so as to fuse all the runoff forecast sub-models according to the model weight to obtain a trained runoff ensemble forecast model.

[0108] 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.

[0109] 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 803 to execute a medium- and long-term runoff ensemble forecasting method based on rainfall forecast, the method comprising: constructing the runoff ensemble forecasting data of the target area according to the forecast period, the historical runoff data and the forecasting factors corresponding to the historical runoff data, wherein the rainfall factor in the forecasting factors is obtained by correcting the rainfall forecasting data; inputting the runoff ensemble forecasting data into the trained runoff ensemble forecasting model to obtain the medium- and long-term runoff ensemble forecasting result of the target area, wherein the trained runoff ensemble forecasting model is obtained by training multiple data-driven models with sample runoff ensemble forecasting data.

[0110] 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.

[0111] 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 ensemble forecasting method based on rainfall forecast provided by the above-mentioned methods, the method including: constructing runoff ensemble forecast data for a target area according to a forecast period, historical runoff data and forecast factors corresponding to the historical runoff data, wherein the rainfall factor in the forecast factors is obtained by correcting the rainfall forecast data; inputting the runoff ensemble forecast data into a trained runoff ensemble forecast model to obtain a medium- and long-term runoff ensemble forecast result for the target area, wherein the trained runoff ensemble forecast model is obtained by training multiple data-driven models using sample runoff ensemble forecast data.

[0112] 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 ensemble forecasting method based on rainfall forecast provided in the above-mentioned embodiments, the method comprising: constructing runoff ensemble forecast data for a target area according to a forecast period, historical runoff data and forecast factors corresponding to the historical runoff data, wherein the rainfall factor in the forecast factors is obtained by correcting the rainfall forecast data; inputting the runoff ensemble forecast data into a trained runoff ensemble forecast model to obtain a medium- and long-term runoff ensemble forecast result for the target area, wherein the trained runoff ensemble forecast model is obtained by training multiple data-driven models using sample runoff ensemble forecast data.

[0113] 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.

[0114] 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.

[0115] 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 ensemble forecasting method based on rainfall forecast, characterized in that: include: Constructing ensemble runoff forecast data for a target area according to the forecast period, historical runoff data and forecast factors corresponding to the historical runoff data, wherein the rainfall factor in the forecast factor is obtained by correcting the rainfall forecast data; Inputting the runoff ensemble forecast data into a trained runoff ensemble forecast model to obtain a medium- and long-term runoff ensemble forecast result for the target area, wherein the trained runoff ensemble forecast model is obtained by training multiple data-driven models using sample runoff ensemble forecast data; The trained runoff ensemble forecast model is obtained by the following steps: Based on the preset forecast period and the 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 factor; the sample forecast factor set at least includes a sample rainfall factor, and the sample rainfall factor is the rainfall measured data corresponding to the sample runoff data in the same period; Inputting the sample prediction amount and the sample prediction factor into different data-driven models for training respectively to obtain multiple runoff prediction sub-models; Obtaining sample forecast rainfall data of the same period as the sample runoff data, and inputting the sample forecast rainfall data into a rainfall data correction model to obtain corrected sample forecast rainfall data; the corrected sample forecast rainfall data includes a plurality of rainfall forecast values ​​in each month; Based on the corrected sample forecast rainfall data, the measured rainfall data of the corresponding month in the sample forecast factor set is replaced to obtain a replaced sample forecast factor set, and the replaced sample forecast factor set is respectively input into each runoff forecast sub-model to obtain a sample runoff ensemble forecast result output by each runoff forecast sub-model; Determine the model weight of each runoff forecast sub-model according to the sample runoff ensemble forecast result and the corresponding sample runoff ensemble measured result, and obtain a trained runoff ensemble forecast model; The rainfall data correction model is obtained by the following steps: Acquire sample rainfall forecast data and sample rainfall measured data corresponding to the same period as the sample rainfall forecast data; Inputting the sample rainfall forecast data and the sample rainfall measured data into a Bayesian joint probability distribution model for training to obtain a rainfall data correction model; The method of determining the model weight of each runoff forecast sub-model according to the sample runoff ensemble forecast result and the corresponding sample runoff ensemble measured result to obtain a trained runoff ensemble forecast model includes: According to the sample runoff ensemble forecast results output by each runoff forecast sub-model, the corresponding sample runoff ensemble measured results are obtained; Through the Bayesian model averaging method, the evaluation index of each runoff forecast sub-model is obtained according to the probability density estimation corresponding to the measured results of each sample runoff set; According to the evaluation index, the model weight of each runoff forecast sub-model is obtained, and according to the model weight, all the runoff forecast sub-models are integrated to obtain a trained runoff ensemble forecast model; Before constructing the runoff ensemble forecast data of the target area according to the forecast period, the historical runoff data and the forecast factors corresponding to the historical runoff data, the method further includes: Based on log-sinh transformation, the historical runoff data and the corrected rainfall forecast data are preprocessed to obtain the target historical runoff data and target rainfall forecast data.

2. A medium- and long-term runoff ensemble forecasting system based on rainfall forecast, characterized in that: The system is used to execute the medium- and long-term runoff ensemble forecasting method based on rainfall forecast according to claim 1, comprising: A runoff forecast data construction module is used to construct the runoff ensemble forecast data of the target area according to the forecast period, the historical runoff data and the forecast factors corresponding to the historical runoff data, wherein the rainfall factor in the forecast factor is obtained by correcting the rainfall forecast data; The medium- and long-term runoff ensemble forecast module is used to input the runoff ensemble forecast data into a trained runoff ensemble forecast model to obtain the medium- and long-term runoff ensemble forecast results for the target area, wherein the trained runoff ensemble forecast model is obtained by training multiple data-driven models using sample runoff ensemble forecast data.

3. The medium- and long-term runoff ensemble forecasting system based on rainfall forecast according to claim 2 is characterized in that: The system further comprises: A sample construction module is used to construct a sample forecast amount and a sample forecast factor set corresponding to the sample forecast amount through sample runoff data and the sample forecast factor based on a preset forecast period and a lag period of each sample forecast factor; the sample forecast factor set at least includes a sample rainfall factor, and the sample rainfall factor is the rainfall measured data corresponding to the sample runoff data in the same period; A training module, used for inputting the sample prediction amount and the sample prediction factor into different data-driven models for training, so as to obtain a plurality of runoff prediction sub-models; A rainfall forecast data correction module is used to obtain sample forecast rainfall data of the same period as the sample runoff data, and input the sample forecast rainfall data into a rainfall data correction model to obtain corrected sample forecast rainfall data; the corrected sample forecast rainfall data contains a plurality of rainfall forecast values ​​in each month; A rainfall forecast data replacement module is used to replace the rainfall measured data of the corresponding month in the sample forecast factor set based on the corrected sample forecast rainfall data to obtain a replaced sample forecast factor set, and input the replaced sample forecast factor set into each runoff forecast sub-model respectively to obtain a sample runoff ensemble forecast result output by each runoff forecast sub-model; The model weight acquisition module is used to determine the model weight of each runoff forecast sub-model according to the sample runoff ensemble forecast results and the corresponding sample runoff ensemble measured results, so as to obtain a trained runoff ensemble forecast model.

4. The medium- and long-term runoff ensemble forecasting system based on rainfall forecast according to claim 3 is characterized in that: The model weight acquisition module includes: A processing unit, used for obtaining corresponding sample runoff ensemble measured results according to the sample runoff ensemble forecast results output by each runoff forecast sub-model; An evaluation unit, used to obtain an evaluation index of each runoff forecast sub-model by estimating the probability density corresponding to the measured results of each sample runoff set through a Bayesian model averaging method; The multi-model fusion unit is used to obtain the model weight of each runoff forecast sub-model according to the evaluation index, so as to fuse all the runoff forecast sub-models according to the model weight to obtain a trained runoff ensemble forecast model.

5. 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 computer program, the steps of the medium- and long-term runoff ensemble forecasting method based on rainfall forecast as claimed in claim 1 are implemented.

6. 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 ensemble forecasting method based on rainfall forecast as claimed in claim 1 are implemented.