Mountainous area runoff prediction model generation method and system, computer device and medium
By calculating daily data series in the flash flood prediction model to obtain the dataset and performing parameter splitting and iteration, weighted set and verification, a strong runoff prediction model is generated, which solves the problem of insufficient prediction accuracy of existing models during the wet and dry seasons and achieves higher prediction accuracy.
Patent Information
- Application Number
- CN202310853726.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-12
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-07-12
AI Technical Summary
Existing flash flood prediction models lack sufficient accuracy during high-water and low-water periods and cannot provide optimal prediction results for all types of time series data.
The dataset to be tested is obtained by calculating the daily data series, and then split into a training parameter set and a validation parameter set. The training parameter set is used to iterate the model and weight the set to generate a strong runoff prediction model. The model is then validated using the validation parameter set to determine whether the coefficients are greater than a preset threshold in order to set the final prediction model.
It improves the accuracy of flash flood prediction models on time series data and enhances the prediction accuracy of hydrological models, especially showing higher simulation accuracy in applications in humid and semi-arid regions.
Smart Images

Figure CN117313912B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of model generation, and in particular to a method, system, computer equipment and medium for generating a mountain runoff prediction model. Background Technology
[0002] Mountainous areas are characterized by steep slopes and uneven terrain; rainfall is concentrated in summer and autumn, primarily in the form of heavy downpours, easily triggering flash floods. Flash floods are often characterized by their suddenness and destructive power. Hydrological models, which describe hydrophysical processes through mathematical equations, are one of the effective methods for flash flood forecasting. Mountain floods mainly originate from runoff from torrential rains. During heavy rains, due to the high permeability of the soil, rainfall rapidly infiltrates the soil and flows along the slopes, forming storm runoff and thus inducing flash flood disasters.
[0003] Currently, flood forecasting mainly relies on simple physical models, such as using semi-distributed conceptual models to achieve distributed hydrological response flash flood runoff forecasting through a very simple framework. Many improvements to flood forecasting models are based on this type of simple and practical model. However, research indicates that no single model can provide the best forecast results for all types of time series data (such as wet and dry seasons). Therefore, how to improve the accuracy of existing forecasting models has become an urgent problem to be solved. Application content
[0004] Based on this, it is necessary to propose a method, system, computer equipment, and medium for generating mountain runoff prediction models that can combine time series data to improve the accuracy of prediction models, in order to address the above problems.
[0005] This application provides a method for generating a runoff prediction model in mountainous areas, including:
[0006] The dataset to be tested for the mountainous area is obtained by calculating the daily data series. The dataset to be tested is the collection of data to be tested obtained for the mountainous area at a set time node in the daily data series.
[0007] The dataset to be tested is split based on the set time nodes to generate a training parameter set and a validation parameter set;
[0008] The training parameter set is input into a set hydrological model for calculation, thereby outputting several weak distribution models for calculating runoff results;
[0009] The multiple weak distribution models are weighted and set together to generate a strong runoff prediction model for simulating the runoff prediction process curve.
[0010] The verification parameter set is input into the strong runoff prediction model for iteration, and the judgment coefficient of the runoff simulation prediction process curve finally output by the strong runoff prediction model is obtained.
[0011] Determine whether the judgment coefficient is greater than a preset threshold. If so, set the strong runoff prediction model as the final prediction model.
[0012] Furthermore, the mountainous areas to be tested include humid watersheds and semi-arid watersheds;
[0013] The step of obtaining the test dataset for the mountainous area to be tested, wherein the test dataset is a collection of test data obtained from the mountainous area to be tested at various time points within a set time period, specifically includes:
[0014] The test data corresponding to each time node in the daily data series of the humid watershed and the semi-arid watershed are obtained, and the time nodes are added to the test data to generate the test sample.
[0015] The individual test samples are merged to generate the test dataset.
[0016] Furthermore, the step of splitting the dataset to be tested based on the set time node to generate a training parameter set and a validation parameter set specifically includes:
[0017] Determine whether the time node is within a first preset range;
[0018] If so, the test sample containing the time node is recorded as the training sample, and the training samples are merged into the training parameter set;
[0019] Determine whether the time node is within a second set range, wherein the start end of the second set range is connected to the end end of the first set range;
[0020] If so, the test samples containing the time nodes will be merged into the verification parameter set.
[0021] Furthermore, the step of inputting the training parameter set into a set hydrological model for calculation, thereby outputting several weakly distributed models for calculating runoff results, specifically includes:
[0022] Each of the training samples is assigned the same initial inference weight, which is specifically manifested as follows:
[0023] =1 / n
[0024] Wherein, p is the set initial weight, w is the set initial probability, x is the training sample, and i is used to indicate the i-th training sample, i≠0;
[0025] The data to be measured obtained in the humid watershed is denoted as the parameter to be observed, PARA, and the maximum and minimum values of the parameter to be observed are denoted as PMAX and PMIN, respectively.
[0026] The set hydrological model is initialized based on PARA, PMAX, and PMIN to generate an initialized hydrological model, which is specifically manifested as follows:
[0027] PARA = (PMAX - PMIN) double(rand()) / 32767+PMIN
[0028] Wherein, double(rand()) is a set double-precision random number;
[0029] The training samples and the initial calculated weights are input into the initial hydrological model for simulation, thereby outputting the simulated runoff sample set of the mountainous area to be measured;
[0030] The simulated runoff sample set, the training parameter set, and the initial estimation weights are input into a set estimation function for iterative iteration, thereby outputting several weak distribution models.
[0031] Furthermore, the simulated runoff sample set contains several simulated runoff samples, and each simulated runoff sample corresponds one-to-one with the training sample.
[0032] The process of inputting the simulated runoff sample set, the training parameter set, and the initial estimation weights into a set estimation function for iterative iteration, thereby outputting several weakly distributed models, specifically includes:
[0033] The set calculation function is obtained, and the training sample and the simulated runoff sample are input into the set calculation function for iterative looping, thereby outputting several target functions;
[0034] Find the minimum value among all the stated objective functions, and denot it as... At this point, the specific manifestation of the set calculation function is as follows:
[0035]
[0036] Among them, the To output the The training samples at that time, To be consistent with the above The matched simulated runoff samples, where τ is a set evaluation parameter, exp represents returning the power of the natural constant e, and t is used to represent the t-th weak distribution model;
[0037] According to the above and the The weak distribution model is derived.
[0038] Furthermore, the statement based on the and the The steps for deriving the weak distribution model specifically include:
[0039] The above calculations were performed using the established extreme standardization model. and the The absolute error between them, specifically expressed by the extreme normalization model, is as follows:
[0040]
[0041] Among them, the c represents the weight of the i-th training sample in the t-th weak distribution model. t The weights representing the t-th weak model are... The constructor for output;
[0042] Determine whether the extreme normalization model simultaneously satisfies the following: The value is less than a preset threshold while ct∈(0,1);
[0043] If so, then the extreme standardization model is denoted as the weak distribution model;
[0044] Update the above and the The updated version Specifically, this manifests as follows:
[0045] ;
[0046] The updated version Specifically manifested as
[0047]
[0048] The Replace with the above and the Replace with Then, return to the step of assigning the same initial inference weights to each of the training samples until a set number of the weak distribution models are output.
[0049] Furthermore, the step of obtaining the judgment coefficients output by the strong runoff prediction model during the iteration process specifically includes:
[0050] Obtain the set Nash coefficient calculation function, which is specifically expressed as follows:
[0051] N
[0052] Then the Nash is the judgment coefficient.
[0053] This application also discloses a mountain runoff prediction model generation system, including:
[0054] The acquisition unit is used to acquire the dataset of the mountainous area to be tested by calculating the daily data series. The dataset is the collection of the data to be tested obtained from the mountainous area to be tested at a set time node in the daily data series.
[0055] The splitting unit is used to split the dataset to be tested based on the set time node, thereby generating a training parameter set and a validation parameter set;
[0056] The extrapolation unit is used to input the training parameter set into a set hydrological model for extrapolation, thereby outputting several weak distribution models for calculating runoff results;
[0057] A set unit is used to weight and set multiple weak distribution models to generate a strong runoff prediction model for simulating the runoff prediction process curve.
[0058] An iterative unit is used to input the verification parameter set into the strong runoff prediction model for iteration, and to obtain the judgment coefficients of the runoff simulation prediction process curve finally output by the strong runoff prediction model.
[0059] The judgment unit is used to determine whether the judgment coefficient is greater than a preset threshold. If so, the strong runoff prediction model is set as the final prediction model.
[0060] A computer device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps:
[0061] The dataset to be tested for the mountainous area is obtained by calculating the daily data series. The dataset to be tested is the collection of data to be tested obtained for the mountainous area at a set time node in the daily data series.
[0062] The dataset to be tested is split based on the set time nodes to generate a training parameter set and a validation parameter set;
[0063] The training parameter set is input into a set hydrological model for calculation, thereby outputting several weak distribution models for calculating runoff results;
[0064] The multiple weak distribution models are weighted and set together to generate a strong runoff prediction model for simulating the runoff prediction process curve.
[0065] The verification parameter set is input into the strong runoff prediction model for iteration, and the judgment coefficient of the runoff simulation prediction process curve finally output by the strong runoff prediction model is obtained.
[0066] Determine whether the judgment coefficient is greater than a preset threshold. If so, set the strong runoff prediction model as the final prediction model.
[0067] A computer-readable medium storing a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0068] The dataset to be tested for the mountainous area is obtained by calculating the daily data series. The dataset to be tested is the collection of data to be tested obtained for the mountainous area at a set time node in the daily data series.
[0069] The dataset to be tested is split based on the set time nodes to generate a training parameter set and a validation parameter set;
[0070] The training parameter set is input into a set hydrological model for calculation, thereby outputting several weak distribution models for calculating runoff results;
[0071] The multiple weak distribution models are weighted and set together to generate a strong runoff prediction model for simulating the runoff prediction process curve.
[0072] The verification parameter set is input into the strong runoff prediction model for iteration, and the judgment coefficient of the runoff simulation prediction process curve finally output by the strong runoff prediction model is obtained.
[0073] Determine whether the judgment coefficient is greater than a preset threshold. If so, set the strong runoff prediction model as the final prediction model.
[0074] This application, through the aforementioned method and structure, obtains the dataset of the mountainous area to be measured by calculating daily data series, then splits the dataset to generate a training parameter set and a validation parameter set. The training parameter set is used for model iteration, and the validation parameter set is used for model validation. This reduces the simulation error of parameters obtained at each time node within the daily data series during model iteration, thereby improving the accuracy of the model's calculations for time series data. It solves the problem that existing hydrological simulation models, due to their poor accuracy, cannot provide optimal prediction results for all types of time series data, thus improving the accuracy of hydrological model predictions. Attached Figure Description
[0075] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0076] in:
[0077] Figure 1 This is a flowchart of a method for generating a mountain runoff prediction model in one embodiment;
[0078] Figure 2 This is a schematic diagram illustrating the effect of the final prediction model in a humid region in one embodiment.
[0079] Figure 3 This is a schematic diagram illustrating the effect of the final prediction model in a semi-arid region in one embodiment.
[0080] Figure 4 This is a system structure diagram of a mountain runoff prediction model generation system in one embodiment;
[0081] Figure 5 This is a structural block diagram of a computer device in one embodiment;
[0082] The labels in the diagram are: 1 - Acquisition unit, 2 - Splitting unit, 3 - Calculation unit, 4 - Set unit, 5 - Iteration unit, and 6 - Judgment unit. Detailed Implementation
[0083] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0084] refer to Figure 1 This application provides a method for generating a mountain runoff prediction model, including:
[0085] S1. Obtain the test dataset of the mountainous area to be tested by calculating the daily data series. The test dataset is the collection of test data obtained from the mountainous area to be tested at a set time node in the daily data series.
[0086] As described in step S2 above, the background system obtains the test dataset for the mountainous area by calculating daily data series. It is understood that the test dataset is the collection of test data obtained from the mountainous area at a set time point within the daily data series. Furthermore, in this example, this application does not impose any limitations on the specific type of test data. In addition, the mountainous area to be tested can consist of several test locations. For example, the mountainous area to be tested includes a designated humid region and a semi-arid region. The humid region uses the daily series from 1981 to 1984, and the semi-arid region uses the daily series from 2001 to 2004. The specific representation of the test dataset in this case is shown in Table 1 below:
[0087]
[0088] Table 1
[0089] It is understood that time nodes 1 and 2 are included in the daily sequence of the humid region, and time nodes 3 and 4 are included in the daily sequence of the semi-arid region. In fact, the daily sequence of the humid region and the daily sequence of the semi-arid region are the same daily sequence.
[0090] S2. The dataset to be tested is split based on the set time node to generate a training parameter set and a validation parameter set;
[0091] As described in step S2 above, the background system splits the dataset to be tested based on the set time node, thereby generating a training parameter set and a validation parameter set. For example, the background system uses the data from 1981 to 1983 in the humid region as the training parameter set and the data from 1984 as the validation parameter set. Similarly, the data from 2001 to 2003 in the semi-arid region is used as the training parameter set and the data from 2004 is used as the validation parameter set, thereby completing the splitting and generation of the training parameter set and the validation parameter set.
[0092] S3. Input the training parameter set into the set hydrological model for calculation, thereby outputting several weak distribution models for calculating runoff results;
[0093] As described in the above embodiments, the background system first sets the number of the set hydrological models, and inputs the training parameters contained in the training parameter set into the set hydrological models for more than 5000 iterations, thereby outputting several weak distribution models. Each weak distribution model contains corresponding undetermined physical parameters (i.e., the training parameters contained in the training parameter set) and weight coefficients that match the weak distribution model. It can be understood that this application does not limit the specific number of weak distribution models generated, as long as the output weak distribution model is not a single one.
[0094] S4. Weight the multiple weak distribution models to generate a strong runoff prediction model for simulating the runoff prediction process curve.
[0095] As described in step S4 above, the background system inputs the undetermined physical parameters into each of the weakly distributed models for hydrological calculation, thereby outputting several runoff results corresponding to each of the set time nodes in the weakly distributed models. Then, the background system weights and sets the runoff results to generate a strong runoff prediction model for simulating the runoff prediction process curve.
[0096] S5. Input the verification parameter set into the strong runoff prediction model for iteration, and obtain the judgment coefficient of the runoff simulation prediction process curve finally output by the strong runoff prediction model.
[0097] As described in step S5 above, the background system inputs the verification parameter set into the strong runoff prediction model for iteration. At this time, the strong runoff prediction model can finally output a runoff simulation prediction process curve corresponding to the mountainous area to be measured. Then, the background system obtains the judgment coefficient of the runoff simulation prediction process curve. It can be understood that the judgment coefficient is the deterministic coefficient in hydrology.
[0098] S6. Determine whether the judgment coefficient is greater than a preset threshold. If so, set the strong runoff prediction model as the final prediction model.
[0099] As described in the above embodiments, the background system uses the judgment coefficient (i.e., the deterministic coefficient) to evaluate the final result of the strong runoff prediction model. The judgment coefficient ranges from 0 to 1, and the larger the value, the higher the simulation accuracy. Therefore, the background system can set a preset threshold. When the judgment coefficient is greater than the preset threshold, the background system can determine that the value of the judgment coefficient is large enough, that is, the simulation accuracy of the strong runoff prediction model is high enough. At this time, the background system can set the strong runoff prediction model as the final prediction model.
[0100] As can be seen from the above embodiments, the greatest benefit of this application lies in the following: after obtaining the test dataset of the mountainous area by calculating the daily data series, the test dataset is split to generate a training parameter set and a validation parameter set. The training parameter set is used for model iteration, and the validation parameter set is used for model validation after weighted set. This reduces the simulation error of the parameters obtained at each time node in the daily data series during model iteration, thereby improving the accuracy of the model in extrapolating time series data. This solves the problem that existing hydrological simulation models in the prior art cannot provide the best prediction results for all types of time series data due to poor accuracy, and improves the accuracy of hydrological model prediction.
[0101] In one embodiment, the mountainous area to be tested includes both humid and semi-arid watersheds;
[0102] Step S1 specifically includes:
[0103] S11. Obtain the data to be tested corresponding to each time node in the daily data series of the humid watershed and the semi-arid watershed, add the time node to the data to be tested to generate a sample to be tested, and merge the samples to be tested to generate the dataset to be tested.
[0104] As described in the above embodiments, the background system obtains each time node contained in the daily data series and adds the time node to the test data that matches the time node. It can be understood that the test data that matches the time node is the test data obtained within the time node. Then, the background system records the test data with the added time node as the test sample and merges the generated multiple test samples to generate the test dataset.
[0105] In one embodiment, step S2 specifically includes:
[0106] S21. Determine whether the time node is within a first set range. If so, record the test sample containing the time node as a training sample and merge the training samples into the training parameter set. Determine whether the time node is within a second set range, where the start of the second set range is connected to the end of the first set range. If so, merge several test samples containing the time node into the verification parameter set.
[0107] As described in the above embodiments, the background system obtains the first set range and determines whether the time node is within the first set range. If so, the test samples containing the time node are recorded as training samples, and the training samples are merged into the training parameter set. Then, the background system obtains the second set range, where the start end of the second set range is connected to the end end of the first set range, and determines whether the time node is within the second set range. If so, several test samples containing the time node are merged into the verification parameter set. For example, if the first set range is "1981-1983" and "2001-2003", and the second set range is 1984 and 2004, then the background system will use the test samples from 1981-1983 and 2001-2003 as the training parameter set, and the test samples from 1984 and 2004 as the training parameter set, and the data from 1984 as the verification parameter set. Similarly, the data from 2001-2003 in the semi-arid region will be used as the training parameter set, and the data from 2004 will be used as the verification parameter set.
[0108] In one embodiment, step S3 specifically includes:
[0109] S31. Assign the same initial inference weight to each of the training samples, wherein the initial inference weight is specifically manifested as follows:
[0110] =1 / n
[0111] Wherein, p is the set initial weight, w is the set initial probability, x is the training sample, and i is used to indicate the i-th training sample, i≠0;
[0112] S32. The data to be measured obtained in the humid watershed is denoted as the parameter to be observed, PARA, and the maximum and minimum values of the parameter to be observed are denoted as PMAX and PMIN, respectively. The hydrological model is initialized based on PARA, PMAX, and PMIN to generate an initialized hydrological model. The initialized hydrological model is specifically manifested as follows:
[0113] PARA = (PMAX - PMIN) double(rand()) / 32767+PMIN
[0114] Wherein, double(rand()) is a set double-precision random number;
[0115] S33. The training samples and the initial inference weights are input into the initial hydrological model for simulation, thereby outputting the simulated runoff sample set of the mountainous area to be measured. The simulated runoff sample set, the training parameter set, and the initial inference weights are input into the set inference function for iterative looping, thereby outputting several weak distribution models.
[0116] As described in the above embodiments, the background system assigns the same weight to each training sample in the set hydrological model before initialization based on the Boosting concept. The initial calculated weights are specifically manifested as follows:
[0117] =1 / n
[0118] Wherein, p is the set initial weight, w is the set initial probability, x is the training sample, and i is used to indicate the i-th training sample, i≠0;
[0119] The backend system then uses a C++ random number generator to initialize the set hydrological model based on PARA, PMAX, and PMIN, thereby generating an initialized hydrological model. The initialized hydrological model is specifically manifested as follows:
[0120] PARA = (PMAX - PMIN) double(rand()) / 32767+PMIN
[0121] Wherein, double(rand()) is a double-precision random number output by a set C++ random number generator. Then, the background system inputs the training samples and the initial inference weights into the initial hydrological model for simulation, thereby outputting the simulated runoff sample set of the mountainous area to be measured. Based on the simulated runoff sample set, the training parameter set, and the initial inference weights, the system inputs them into a set inference function for iterative looping, thereby outputting several weak distribution models.
[0122] In one embodiment, the simulated runoff sample set contains a plurality of simulated runoff samples, and the simulated runoff samples correspond one-to-one with the training samples;
[0123] The process of inputting the simulated runoff sample set, the training parameter set, and the initial estimation weights into a set estimation function for iterative iteration, thereby outputting several weakly distributed models, specifically includes:
[0124] S34. Obtain the set estimation function, and input the training samples and the simulated runoff samples into the set estimation function for iterative processing, thereby outputting several objective functions. Obtain the minimum value among the objective functions and record it as... At this point, the specific manifestation of the set calculation function is as follows:
[0125]
[0126] Among them, the To output the The training samples at that time, To be consistent with the above The matched simulated runoff samples, where τ is a set evaluation parameter, exp represents returning a power to the base e of the natural constant, and t represents the t-th weak distribution model, according to the... and the The weak distribution model is derived.
[0127] As described in the above embodiments, the background system obtains the set calculation function, which is specifically embodied as follows:
[0128]
[0129] Among them, the To output the The training samples at that time, To be consistent with the above The matched simulated runoff samples, where τ is a set evaluation parameter, exp represents returning a power to the base of the natural constant e, and t represents the t-th weak distribution model, then the backend system, based on the... and the Multiple simulations are performed within the defined extrapolation function, and the objective function of all outputs is obtained. The minimum value among all the objective functions is then recorded as... At this time, the output is as described. The above and the If the model parameters in the set calculation function are correct, then the background system will calculate based on the... and the The weak distribution model is derived.
[0130] In one embodiment, the step according to the and the The steps for deriving the weak distribution model specifically include:
[0131] S35. Calculate the above using the set extreme standardization model. and the The absolute error between them, specifically expressed by the extreme normalization model, is as follows:
[0132]
[0133] Among them, the c represents the weight of the i-th training sample in the t-th weak distribution model. t The weights representing the t-th weak model are... The constructor for output;
[0134] S36. Determine whether the extreme normalization model simultaneously satisfies the following... If the value is less than a preset threshold and ct∈(0,1), then the extreme normalization model is recorded as the weak distribution model, and the value is updated. and the The updated version Specifically, this manifests as follows:
[0135] ;
[0136] The updated version Specifically manifested as
[0137]
[0138] S37, the above Replace with the above and the Replace with Then, return to the step of assigning the same initial inference weights to each of the training samples until a set number of the weak distribution models are output.
[0139] As described in the above embodiments, the backend system uses a predefined, highly standardized model to calculate the... and the The absolute error value between them can be understood as, the stated This is actually a simulated runoff, the aforementioned In reality, if it is an observed runoff, then the extreme normalization model described above will specifically manifest as follows:
[0140]
[0141] Among them, the c represents the weight of the i-th training sample in the t-th weak distribution model. t The weights representing the t-th weak model are... The output constructor is then used by the backend system to determine whether the above-mentioned extreme normalization model simultaneously satisfies the following: If the value is less than a preset threshold and ct∈(0,1), then the extreme normalization model is recorded as the weak distribution model. At this time, the backend system can obtain a complete weak distribution model. Afterwards, in order to calculate more weak distribution models, the backend system begins to update the... and the The updated version Specifically, this manifests as follows:
[0142] ;
[0143] The updated version Specifically manifested as
[0144]
[0145] The backend system will then... Replace with the above and the Replace with Then, return to the step of assigning the same initial inference weights to each of the training samples until a set number of the weak distribution models are output.
[0146] In one embodiment, the step of obtaining the judgment coefficients output by the strong runoff prediction model during the iteration process specifically includes:
[0147] S51. Obtain the set Nash coefficient calculation function, wherein the Nash coefficient calculation function is specifically manifested as follows:
[0148] N
[0149] S52, then the Nash is the judgment coefficient.
[0150] As described in the above embodiments, the background system obtains the set Nash coefficient estimation function, which is specifically manifested as follows:
[0151] N
[0152] At this time, the background system can record the Nash output in the above Nash coefficient calculation function as the judgment coefficient;
[0153] For example, when the final prediction model described above uses the Nash coefficient estimation function to estimate the Nash coefficients, the estimated results are shown in Table 1 below:
[0154]
[0155] Table 1
[0156] It can be seen that when predicting the humid and semi-arid areas contained within the mountainous region to be measured, the judgment coefficients output by the final prediction model are all larger than those output by existing single models. Combined with the above embodiment, which states that "the background system uses the judgment coefficients (i.e., the deterministic coefficients) to evaluate the final results of the strong runoff prediction model, and the range of the judgment coefficients is 0-1, with larger values representing higher simulation accuracy," it can be determined that the accuracy output by the final prediction model is higher than that of existing single models, thereby improving the accuracy of model prediction.
[0157] In addition, such as Figure 2 The performance of the final prediction model in the wet region is illustrated. It can be seen that the final prediction model, represented by the thick dashed line, more closely approximates the measured runoff values compared to existing hydrological models. It can be understood that the observed runoff depth (mm) is equivalent to the measured runoff depth. And the predicted runoff depth (mm) is the same as the ;
[0158] Similarly, such as Figure 3 The performance of the final prediction model in the semi-arid region is shown. It can be seen that the final prediction model, represented by the thick dashed line, more closely approximates the measured runoff values compared to existing hydrological models. It can be understood that the observed runoff depth (mm) is equivalent to the measured runoff depth. And the predicted runoff depth (mm) is the same as the ;
[0159] It can be seen that the final prediction model is applicable to runoff prediction in the humid and semi-arid regions, and achieves better accuracy than existing single models, thereby improving the versatility and accuracy of the final prediction model.
[0160] refer to Figure 4 This application also provides a mountain runoff prediction model generation system, including:
[0161] The acquisition unit 1 is used to acquire the test dataset of the mountainous area to be tested by calculating the daily data series. The test dataset is the collection of test data acquired from the mountainous area to be tested at a set time node in the daily data series.
[0162] Splitting unit 2 is used to split the dataset to be tested based on the set time node, thereby generating a training parameter set and a validation parameter set;
[0163] The calculation unit 3 is used to input the training parameter set into a set hydrological model for calculation, thereby outputting several weak distribution models for calculating runoff results.
[0164] Set unit 4 is used to weight and set multiple weak distribution models to generate a strong runoff prediction model for simulating the runoff prediction process curve.
[0165] Iteration unit 5 is used to input the verification parameter set into the strong runoff prediction model for iteration, and to obtain the judgment coefficient of the runoff simulation prediction process curve finally output by the strong runoff prediction model.
[0166] Judgment unit 6 is used to determine whether the judgment coefficient is greater than a preset threshold. If so, the strong runoff prediction model is set as the final prediction model.
[0167] The modules mentioned above are for executing the above-mentioned mountain runoff prediction model generation system, and will not be described in detail here.
[0168] Figure 5 An internal structural diagram of a computer device in one embodiment is shown. This computer device may specifically be a server, including but not limited to high-performance computers and high-performance computer clusters. Figure 5 As shown, the computer device includes a processor, memory, and network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement the multi-application concurrent recording method. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the mountain runoff prediction model generation system.
[0169] In one embodiment, the multi-application concurrent recording method provided by the present invention can be implemented as a computer program, which can be implemented in the form of, for example... Figure 5 The system runs on the computer device shown. The computer device's memory can store the various program templates that make up the mountain runoff prediction model generation system. For example: 1 - Acquisition unit, 2 - Splitting unit, 3 - Calculation unit, 4 - Aggregation unit, 5 - Iteration unit, 6 - Judgment unit.
[0170] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, performs the following steps:
[0171] The dataset to be measured in the mountainous area is obtained by extrapolating daily data series. The dataset is a collection of data obtained from the mountainous area at a set time node within the daily data series. The dataset is split based on the set time node to generate a training parameter set and a validation parameter set. The training parameter set is input into a set hydrological model for extrapolation, thereby outputting several weak distribution models for calculating runoff results. The multiple weak distribution models are weighted together to generate a strong runoff prediction model for simulating the runoff prediction process curve. The validation parameter set is input into the strong runoff prediction model for iteration, and the judgment coefficient of the runoff simulation prediction process curve finally output by the strong runoff prediction model is obtained. It is determined whether the judgment coefficient is greater than a preset threshold. If so, the strong runoff prediction model is set as the final prediction model.
[0172] As can be seen from the above embodiments, the greatest benefit of this application lies in the fact that, after obtaining the test dataset of the mountainous area by calculating the daily data series, the test dataset is split to generate a training parameter set and a validation parameter set. The training parameter set is used for model iteration, and the validation parameter set is used for model validation after weighted set. This reduces the simulation error of the parameters obtained at each time node in the daily data series during model iteration, thereby improving the accuracy of the model in extrapolating time series data. It solves the problem that existing hydrological simulation models in the prior art cannot provide the best prediction results for all types of time series data due to poor accuracy, and improves the accuracy of hydrological model prediction.
[0173] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0174] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for generating a runoff prediction model in mountainous areas, characterized in that, include: The dataset to be tested for the mountainous area is obtained by calculating the daily data series. The dataset to be tested is the collection of data to be tested obtained for the mountainous area at a set time node in the daily data series. The dataset to be tested is split based on the set time nodes to generate a training parameter set and a validation parameter set; The training parameter set is input into a set hydrological model for calculation, thereby outputting several weak distribution models for calculating runoff results; The multiple weak distribution models are weighted and set together to generate a strong runoff prediction model for simulating the runoff prediction process curve. The verification parameter set is input into the strong runoff prediction model for iteration, and the judgment coefficient of the runoff simulation prediction process curve finally output by the strong runoff prediction model is obtained. Determine whether the judgment coefficient is greater than a preset threshold. If so, set the strong runoff prediction model as the final prediction model. The step of inputting the training parameter set into a set hydrological model for calculation, thereby outputting several weakly distributed models for calculating runoff results, specifically includes: Each of the training samples is assigned the same initial inference weight, which is specifically manifested as follows: =1 / n; Wherein, p is the set initial weight, w is the set initial probability, x is the training sample, and i is used to indicate the i-th training sample, i≠0; The data to be measured obtained in the humid watershed is denoted as the parameter to be observed, PARA, and the maximum and minimum values of the parameter to be observed are denoted as PMAX and PMIN, respectively. The set hydrological model is initialized based on PARA, PMAX, and PMIN to generate an initialized hydrological model, which is specifically manifested as follows: PARA = (PMAX - PMIN) double(rand()) / 32767+PMIN Wherein, double(rand()) is a set double-precision random number; The training samples and the initial calculated weights are input into the initial hydrological model for simulation, thereby outputting the simulated runoff sample set of the mountainous area to be measured; The simulated runoff sample set, the training parameter set, and the initial calculation weights are input into a set calculation function for iterative looping, thereby outputting several weak distribution models. The simulated runoff sample set contains several simulated runoff samples, and each simulated runoff sample corresponds one-to-one with the training sample. The process of inputting the simulated runoff sample set, the training parameter set, and the initial estimation weights into a set estimation function for iterative iteration, thereby outputting several weakly distributed models, specifically includes: The set calculation function is obtained, and the training sample and the simulated runoff sample are input into the set calculation function for iterative looping, thereby outputting several target functions; Find the minimum value among all the stated objective functions, and denot it as... At this point, the specific manifestation of the set calculation function is as follows: ; Among them, the To output the The training samples at that time, To be consistent with the above The matched simulated runoff samples, where τ is a set evaluation parameter, exp represents returning the power of the natural constant e, and t is used to represent the t-th weak distribution model; According to the above and the The weak distribution model is derived.
2. The method for generating a mountain runoff prediction model as described in claim 1, characterized in that, The mountainous areas to be tested include humid watersheds and semi-arid watersheds; The step of obtaining the test dataset for the mountainous area to be tested, wherein the test dataset is a collection of test data obtained from the mountainous area to be tested at various time points within a set time period, specifically includes: The test data corresponding to each time node in the daily data series of the humid watershed and the semi-arid watershed are obtained, and the time nodes are added to the test data to generate the test sample. The individual test samples are merged to generate the test dataset.
3. The method for generating a mountain runoff prediction model as described in claim 1, characterized in that, The step of splitting the dataset to be tested based on the set time node to generate a training parameter set and a validation parameter set specifically includes: Determine whether the time node is within a first preset range; If so, then the test samples containing the time nodes are recorded as training samples, and the training samples are merged into the training parameter set; Determine whether the time node is within a second set range, wherein the start end of the second set range is connected to the end end of the first set range; If so, the test samples containing the time nodes will be merged into the verification parameter set.
4. The method for generating a mountain runoff prediction model as described in claim 1, characterized in that, According to the and the The steps for deriving the weak distribution model specifically include: The above calculations were performed using the established extreme standardization model. and the The absolute error between them, specifically expressed by the extreme normalization model, is as follows: ; Among them, the c represents the weight of the i-th training sample in the t-th weak distribution model. t The weights representing the t-th weak model, the The constructor for output; Determine whether the extreme normalization model simultaneously satisfies the following: The value is less than a preset threshold while ct∈(0,1); If so, then the extreme standardization model is denoted as the weak distribution model; Update the above and the The updated version Specifically, this manifests as follows: ; The updated version Specifically manifested as ; The Replace with the above and the Replace with Then, return to the step of assigning the same initial inference weights to each of the training samples until a set number of the weak distribution models are output.
5. The method for generating a mountain runoff prediction model as described in claim 1, characterized in that, The step of obtaining the judgment coefficients output by the strong runoff prediction model during the iteration process specifically includes: Obtain the set Nash coefficient calculation function, which is specifically expressed as follows: N ; Then the Nash is the judgment coefficient.
6. A system for generating a mountain runoff prediction model, comprising: The acquisition unit is used to acquire the dataset of the mountainous area to be tested by calculating the daily data series. The dataset is the collection of the data to be tested obtained from the mountainous area to be tested at a set time node in the daily data series. The splitting unit is used to split the dataset to be tested based on the set time node, thereby generating a training parameter set and a validation parameter set; The extrapolation unit is used to input the training parameter set into a set hydrological model for extrapolation, thereby outputting several weak distribution models for calculating runoff results; A set unit is used to weight and set multiple weak distribution models to generate a strong runoff prediction model for simulating the runoff prediction process curve. An iterative unit is used to input the verification parameter set into the strong runoff prediction model for iteration, and to obtain the judgment coefficients of the runoff simulation prediction process curve finally output by the strong runoff prediction model. The judgment unit is used to determine whether the judgment coefficient is greater than a preset threshold. If so, the strong runoff prediction model is set as the final prediction model. The mountain runoff prediction model generation system is applied to the mountain runoff prediction model generation method described in any one of claims 1-5.
7. A computer device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the mountain runoff prediction model generation method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for generating a mountain runoff prediction model as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Medium-and-long term runoff forecast method and system
CN108876021A
Runoff interval prediction method and system based on improved SCA and QRGRU
CN114282431A
