A method, device, electronic device and medium for constructing a runoff forecast model

By acquiring and processing historical hydrological sequences and distribution functions, and generating error probability correlation functions, the problem of poor accuracy of traditional hydrological forecast models is solved, and efficient forecasting of hydrological sequences that do not meet the requirements of stationarity and consistency is achieved.

CN113159224BActive Publication Date: 2024-09-24CHINA INST OF WATER RESOURCES & HYDROPOWER RES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110533450.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-17
Publication Date
2024-09-24
Estimated Expiration
2041-05-17

AI Technical Summary

Technical Problem

Traditional medium- and long-term hydrological forecasting methods assume that historical hydrological series meet the requirements of stability and consistency. However, due to the influence of human activities, the historical hydrological series of some river basins no longer meet these conditions, resulting in poor accuracy of the constructed runoff forecast model.

Method used

By obtaining the historical hydrological sequence and target distribution function of the target watershed, the first and second probability sequences are generated, the prediction error sequence is calculated, and the error probability correlation function is generated based on the error threshold, and finally based on the target distribution function, probability prediction model and error probability correlation Function to build a forecast model to improve the accuracy of hydrological forecast.

Benefits of technology

This method can effectively handle historical hydrological series that do not meet the requirements of stationarity and consistency, generate a runoff forecast model with high prediction accuracy, and is suitable for predicting future hydrological conditions in the target watershed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113159224B
    Figure CN113159224B
Patent Text Reader

Abstract

The present application belongs to the field of hydrological analysis technology, and specifically relates to a method, device, electronic device and medium for constructing a runoff forecast model; wherein the method includes: obtaining a historical hydrological sequence of a target basin and a target distribution function for fitting the hydrological distribution of the target basin; substituting the historical hydrological sequence into the target distribution function to obtain a first probability sequence; according to the first probability sequence, obtaining a probability prediction model, a second probability sequence and a prediction error sequence; generating an error probability association function according to an error threshold sequence and the prediction error sequence; generating a runoff forecast model for predicting the hydrological conditions of the target basin according to the inverse function of the target distribution function, the probability prediction model and the error probability association function. The forecast model construction method provided in the present application can make the runoff forecast model have a higher accuracy through the mutual cooperation of the target distribution function, the probability prediction model and the error probability association function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of hydrological analysis, and specifically relates to a method, device, electronic equipment and medium for constructing a runoff forecast model. Background Art

[0002] In recent years, due to the intensified impact of human activities on the underlying surface and hydrological elements such as evapotranspiration, infiltration, and runoff, the runoff yield in some areas has decreased and the relationship between precipitation and runoff has changed.

[0003] Although the traditional medium- and long-term hydrological forecasting method is based on the historical hydrological sequence (mostly referring to runoff) and constructs a hydrological forecasting model to perform forecasting work, its premise is that the historical hydrological sequence meets the requirements of independence, stability, consistency, etc. At present, as time goes by, the historical hydrological sequence of some basins no longer meets the requirements of stability and consistency. If the hydrological forecasting model is still constructed using the traditional medium- and long-term runoff forecasting method, the accuracy of the constructed runoff forecasting model will be poor. Summary of the invention

[0004] The embodiments of the present application provide a method, device, electronic device and medium for constructing a runoff forecast model, which are used to improve the problem of poor accuracy of traditional hydrological forecast models.

[0005] In a first aspect, an embodiment of the present application provides a method for constructing a runoff forecast model, comprising:

[0006] Obtain the historical hydrological sequence of the target basin and the target distribution function used to fit the hydrological distribution of the target basin;

[0007] Substituting the historical hydrological sequence into the target distribution function to obtain a first probability sequence of the historical hydrological sequence;

[0008] According to the first probability sequence, a probability prediction model and a second probability sequence of the historical hydrological sequence are obtained, wherein the probability prediction model is used to predict the probability of the hydrological conditions of the target basin;

[0009] According to the first probability sequence and the second probability sequence, a prediction error sequence is obtained, wherein the prediction error sequence is used to indicate the degree of difference between the first probability and the second probability; wherein the first probability belongs to the first probability sequence, the second probability belongs to the second probability sequence, the first probability and the second probability correspond to the same historical hydrological data, and the historical hydrological data belongs to the historical hydrological sequence;

[0010] generating an error probability association function according to an error threshold sequence and the prediction error sequence, wherein the error probability association function is used to represent a proportion of a target element in the prediction error sequence, the target element being a prediction error greater than or equal to the error threshold, the prediction error belonging to the prediction error sequence, and the error threshold belonging to the error threshold sequence;

[0011] A forecast model is generated according to the inverse function of the target distribution function, the probability prediction model and the error probability association function, and the forecast model is used to predict the hydrological conditions of the target watershed.

[0012] In a second aspect, an embodiment of the present application provides a runoff forecast model construction device, comprising:

[0013] The first acquisition module is used to obtain the historical hydrological sequence of the target basin;

[0014] A second acquisition module is used to acquire a target distribution function for fitting the hydrological distribution of a target watershed, and substitute the historical hydrological sequence into the target distribution function to obtain a first probability sequence of the historical hydrological sequence;

[0015] A third acquisition module is used to obtain a probability prediction model and a second probability sequence of the historical hydrological sequence according to the first probability sequence, wherein the probability prediction model is used to predict the probability of the hydrological conditions of the target basin;

[0016] a fourth acquisition module, configured to obtain a prediction error sequence according to the first probability sequence and the second probability sequence, wherein the prediction error sequence is used to indicate the degree of difference between the first probability and the second probability; wherein the first probability belongs to the first probability sequence, the second probability belongs to the second probability sequence, the first probability and the second probability correspond to the same historical hydrological data, and the historical hydrological data belongs to the historical hydrological sequence;

[0017] and generating an error probability association function according to the error threshold sequence and the prediction error sequence, the error probability association function being used to represent the proportion of a target element in the prediction error sequence, the target element being a prediction error greater than or equal to the error threshold, the prediction error belonging to the prediction error sequence, and the error threshold belonging to the error threshold sequence;

[0018] A modeling module is used to generate a forecast model based on the inverse function of the target distribution function, the probability prediction model and the error probability association function, and the forecast model is used to predict the hydrological conditions of the target basin at a certain time point in the future.

[0019] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0020] A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the method for constructing a runoff forecast model as described in the first aspect above.

[0021] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a program or instruction stored thereon, and when the program or instruction is executed by a processor, the steps in the method for constructing a runoff forecast model as described in the first aspect above are implemented.

[0022] In the technical solution provided in the embodiment of the present application, the runoff forecast model construction method improves the accuracy of the runoff forecast model used to predict the hydrological conditions of the target basin through the mutual coordination of the target distribution function, the probability prediction model and the error probability correlation function. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a flow chart of a method for constructing a runoff forecast model provided in an embodiment of the present application;

[0024] Figure 2 It is a structural schematic diagram of a runoff forecast model building device provided in an embodiment of the present application;

[0025] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] It should be noted that the terms "first", "second", etc. in the description and claims of the present application are used to distinguish similar objects, but not to describe a specific order or sequence.

[0028] See also Figure 1 , Figure 1 This is a flow chart of a method for constructing a runoff forecast model provided in an embodiment of the present application. The method can be executed by a runoff forecast model construction device. The runoff forecast model construction device can be composed of hardware and / or software and can generally be integrated in a device with a runoff forecast model construction function. The device can be an electronic device such as a server, a mobile terminal or a server cluster. Figure 1 As shown, the runoff forecast model construction method includes the following steps:

[0029] Step 101: Obtain the historical hydrological sequence of the target watershed and the target distribution function for fitting the hydrological distribution of the target watershed.

[0030] Step 102: Substitute the historical hydrological sequence into the target distribution function to obtain a first probability sequence of the historical hydrological sequence.

[0031] Step 103: According to the first probability sequence, a probability prediction model and a second probability sequence of the historical hydrological sequence are obtained.

[0032] Wherein, the probability prediction model is used to predict the probability of the hydrological conditions of the target basin.

[0033] Step 104: Obtain a prediction error sequence according to the first probability sequence and the second probability sequence.

[0034] Among them, the prediction error sequence is used to indicate the degree of difference between the first probability and the second probability; the first probability belongs to the first probability sequence, the second probability belongs to the second probability sequence, the first probability and the second probability correspond to the same historical hydrological data, and the historical hydrological data belongs to the historical hydrological sequence.

[0035] Step 105: Generate an error probability correlation function according to the error threshold sequence and the prediction error sequence.

[0036] Among them, the error probability association function is used to represent the proportion of the target element in the prediction error sequence, the target element is a prediction error greater than or equal to an error threshold, the prediction error belongs to the prediction error sequence, and the error threshold belongs to the error threshold sequence.

[0037] Step 106: Generate a forecast model according to the inverse function of the target distribution function, the probability prediction model and the error probability association function.

[0038] The forecast model is used to predict the hydrological conditions of the target basin at a certain time point in the future.

[0039] In recent years, affected by human activities (such as the construction of reservoirs, industrial and agricultural production, groundwater exploitation, and the promotion of urbanization), the relationship between precipitation and runoff in northern China has changed significantly, and the water resources in the Haihe River and Yellow River basins have declined significantly. Data show that, compared with the two periods of 1956-2000 and 2001-2018, the average precipitation in the Haihe River area in the latter period decreased by 4.7% compared with the previous period, but the natural river runoff decreased by 38.4%; the average precipitation in the Yellow River area in the latter period increased by 3.6% compared with the previous period, but the natural river runoff decreased by 10.1%.

[0040] Although the traditional medium- and long-term hydrological forecasting method is based on the historical hydrological sequence and constructs the hydrological forecasting model to carry out the forecasting work, its premise is to assume that the historical hydrological sequence meets the requirements of independence, stability, consistency, etc. However, as mentioned above, due to the influence of human activities, the historical hydrological sequences of the Haihe River and the Yellow River basins no longer meet the requirements of stability and consistency. If the hydrological forecasting model is still constructed by the traditional medium- and long-term hydrological forecasting method, the accuracy of the constructed hydrological forecasting model will be poor.

[0041] The method for constructing a runoff forecast model provided in the present application first fits the hydrological distribution of the target watershed through a target distribution function, and obtains a first probability sequence corresponding to the historical hydrological sequence; then obtains a probability prediction model and a second probability sequence corresponding to the historical hydrological sequence based on the first probability sequence; then, based on a preset error threshold sequence, statistics are performed on the error of the probability prediction model, and an error probability association function is generated accordingly; finally, a forecast model is generated based on the inverse function of the target distribution function, the probability prediction model and the error probability association function.

[0042] Since the runoff forecast model construction method provided in this application can fully process historical hydrological sequences that do not meet the requirements of stability and consistency through the combination of multiple methods such as fitting distribution, model prediction and error statistics, the forecast model finally generated can have better prediction accuracy.

[0043] During the application of the runoff forecast model, it is necessary to first obtain the predicted probability data of the target distribution function (with time-varying parameters) at the target time node (i.e., a future time node to be predicted) according to the probability prediction model; then, based on the specified target probability and the error probability association function, obtain the first target error threshold of the predicted probability data corresponding to the target probability; and then calculate the first predicted hydrological data based on the first target error threshold, the predicted probability data and the inverse function of the target distribution function. At this time, it can be determined that the probability that the actual hydrological data of the target basin at the target time node is less than or equal to the predicted hydrological data is the target probability.

[0044] An example is:

[0045] Assuming that the target time node is January 2023, the target distribution function is F(x t |θ(t)), where θ(t) is used to indicate the time-varying parameter in the target distribution function, and the x tIt is used to indicate the historical hydrological sequence, the predicted probability data of the target distribution function in January 2023 obtained according to the probability prediction model is v0, the specified target probability is α, and the first target error threshold corresponding to the target probability (obtained based on the error probability association function) is d α1 , the first predicted hydrological data of the target basin in January 2023 is y1, then the first predicted hydrological data y1 can be calculated by the following formula:

[0046]

[0047] At this point, it can be determined that the probability that the actual hydrological data of the target basin in January 2023 is less than or equal to the first predicted hydrological data y1 is α.

[0048] In addition, the degree of difference is used to represent the ratio of the probability difference to the first probability, and the probability difference is used to represent the difference between the second probability and the first probability.

[0049] An example is:

[0050] Assume that the historical hydrological sequence is x t (t=1,2,…,n), the first probability sequence is u t (t=1,2,…,n), the second probability sequence is v t (t=1,2,…,n), the prediction error sequence is D t (t=1,2,…,n), the prediction error sequence is specifically expressed as follows:

[0051]

[0052] Among them, t is used to represent the time serial number of the historical period in which the historical hydrological sequence is located, and n is used to represent the total number of unit times included in the historical period in which the historical hydrological sequence is located (assuming that the historical period in which the historical hydrological sequence is located is 2008-2010, and its unit time is set to a monthly scale, then the value of n is 36, and when the value of t is 1, it represents the time node of January 2008, and so on). It should be emphasized that in actual applications, the unit time (such as monthly scale, ten-day scale, weekly scale, daily scale, etc.) and the time length of the selected historical period (3 years, 5 years, 7 years, etc.) can be adaptively adjusted based on actual needs, and this application does not limit this.

[0053] In addition, as mentioned above, the historical hydrological series is x t (t=1,2,…,n), the target distribution function is F(x t |θ(t)), so the calculation formula of the first probability sequence can be:

[0054] u t =F(x t |θ(t))

[0055] As for the definition and application of the error probability correlation function, it can be illustrated as follows:

[0056] Assume that the prediction error sequence is still D t (t=1,2,…,n), the definitions of t and n refer to the above example, and the error threshold sequence is d k (k=1,2,…,m), the error probability correlation function is F d (d k ).

[0057] The k is used to represent the serial number of an element in the error threshold sequence, and the m is used to represent the total number of elements in the error threshold sequence.

[0058] F d (d1) is used to represent D t The elements in D that are greater than or equal to d1 are in D t The ratio of F d (d2) is used to represent D t The elements in D that are greater than or equal to d2 are in D t The proportion in , and so on.

[0059] In the application process, if a certain probability or ratio (such as the target probability in the above example) is given, a corresponding error threshold (such as the target error threshold in the above example) can be obtained according to the error probability association function; in addition, the error probability association function can be expressed by a formula, and can also be expressed by a line graph (the ordinate is the error threshold, and the abscissa is the prediction error sequence D t The elements in D that are greater than or equal to the error threshold are t The error probability correlation function is expressed in the form of a percentage. The embodiment of the present application does not limit the specific expression form of the error probability correlation function.

[0060] It should be noted that in practical applications, the runoff forecast model generated based on the runoff forecast model construction method provided in this application can be provided to the hydrological forecast department to which the target basin belongs, so that the hydrological forecast department can obtain and disseminate the hydrological data of the target basin at a specific time point in the future.

[0061] Optionally, the step of generating an error probability association function according to the error threshold sequence and the prediction error sequence includes:

[0062] The second probability sequence is clustered to obtain a plurality of mutually independent data clusters.

[0063] A plurality of cluster prediction error sequences are obtained according to the plurality of data clusters and the prediction error sequence.

[0064] The multiple cluster prediction error sequences correspond one-to-one to the multiple data clusters.

[0065] A plurality of cluster correlation functions are generated respectively according to the plurality of cluster prediction error sequences and the error threshold sequence.

[0066] Among them, the multiple cluster association functions correspond one-to-one to the multiple data clusters, the cluster association function is used to represent the proportion of cluster target elements in the cluster prediction error sequence, the cluster target elements are cluster prediction errors greater than or equal to the error threshold, and the cluster prediction errors belong to the cluster prediction error sequence.

[0067] The step of generating a runoff forecast model according to the inverse function of the target distribution function, the probability prediction model and the error probability association function includes: generating the runoff forecast model according to the inverse function of the target distribution function, the probability prediction model and the multiple cluster association functions.

[0068] In practical applications, the second probability sequence may be clustered by a clustering algorithm to obtain multiple independent data clusters. The specific clustering process may be:

[0069] Assume that the second probability sequence is still v t (t=1,2,…,n), the definitions of t and n refer to the above example; and the data cluster is set to B i (i=1,2,…,l), wherein i is used to represent the unique serial number of a data cluster among multiple data clusters, l is used to represent the total number of the multiple independent data clusters, and l is a positive integer greater than or equal to 2 and less than or equal to 5.

[0070] From the second probability sequence v t (t=1,2,…,n) randomly determines l elements, and uses the determined l elements as cluster centers to construct multiple independent data clusters B1, B2,…, B l .

[0071] For the second probability sequence v t (t=1,2,…,n) is traversed, and in the traversal process, each time from the second probability sequence v tIf an element x is taken out from (t=1,2,…,n), the data cluster to which the element x belongs is determined according to the preset distance formula, and the element x is placed in the data cluster to which it belongs, and the mean of the data cluster to which the element x belongs is recalculated.

[0072] The distance formula is expressed as follows:

[0073] E=(||xu i ||) 2

[0074] Wherein, E is used to represent the element x and a data cluster B i The distance u i Used to represent data cluster B i When the value of E of the element x is the smallest, it means that the element x belongs to the data cluster corresponding to the mean value that makes E the smallest.

[0075] After completing the above traversal, the multiple independent data clusters are finally obtained.

[0076] It should be noted that the above clustering process can be completed by the K-Means algorithm, the binary K-means algorithm or the K-Means++ algorithm, or other clustering algorithms. The embodiment of the present application does not limit the specific clustering algorithm used in the above clustering processing.

[0077] The generation process of obtaining the plurality of cluster correlation functions can be illustrated as follows:

[0078] Assume that the error threshold sequence is still d k (k=1,2,…,m), assuming that the prediction error sequence is still D t (t=1,2,…,n), assuming that the data cluster is B i (i=1,2,…,l), assuming that the second probability sequence is still v t (t=1,2,…,n), then for each error threshold d k For example, D t The elements are divided into D according to their numerical values. t ≥d k and D t <d k Two categories, respectively denoted as A1 and A2, calculate D t ≥d k and D t <d k The probabilities are P k (A1) and P k (A2).

[0079] After that, calculate the v in class A1 and class A2 t ∈B i The probability density f of (i=1,2,…,l) k (B i |A1) and f k (B i |A2).

[0080] Next, according to the Bayesian formula and the above two probability density formulas, the posterior probability formula P is obtained. k (A1|B i ).

[0081] Finally, according to the posterior probability formula P k (A1|B i ) and the error threshold sequence can obtain multiple cluster correlation functions, which are preferably expressed in the form of a line graph. In this case, the abscissa in the line graph is used to indicate the posterior probability formula P k (A1|B i ), and the vertical axis in the line graph is used to indicate a certain error threshold corresponding to the posterior probability formula.

[0082] It should be noted that, in practical applications, there should be l broken lines in the line graph, and each broken line represents a data cluster.

[0083] Through the above-mentioned clustering processing process, the second probability sequence is divided into multiple independent data clusters, and based on each data cluster, the corresponding cluster prediction error sequence and cluster correlation function are obtained; since the data of the second probability sequence is further differentiated (divided into multiple independent data clusters), the accuracy of the finally generated runoff forecast model can be further improved.

[0084] It should be noted that when the runoff forecast model generated according to the inverse function of the target distribution function, the probability prediction model and the multiple cluster association functions is applied, it is necessary to first obtain the predicted probability data of the target distribution function at the target time node (i.e., a certain future time node to be predicted) according to the probability prediction model, and then determine the target data cluster to which the predicted probability data belongs; then, according to the specified target probability and the cluster association function corresponding to the target data cluster, obtain the second target error threshold of the predicted probability data corresponding to the target probability; then, according to the second target error threshold, the predicted probability data and the inverse function of the litigation target distribution function, calculate the second predicted hydrological data. At this time, it can be determined that the probability that the actual hydrological data of the target basin at the target time node is less than or equal to the second predicted hydrological data is the target probability.

[0085] An example is:

[0086] Assuming that the target time node is still January 2023, the target distribution function is still F(x t |θ(t)), the predicted probability data of the target distribution function in January 2023 obtained according to the probability prediction model is still v0, the specified target probability is still α, and the second target error threshold corresponding to the target probability is d α2 (based on the cluster correlation function), the second predicted hydrological data of the target basin in January 2023 is y2, and the second predicted hydrological data y2 can be calculated by the following formula:

[0087]

[0088] At this time, it can be determined that the probability that the actual hydrological data of the target basin in January 2023 is less than or equal to the second predicted hydrological data y2 is α.

[0089] Optionally, the step of obtaining a probability prediction model according to the first probability sequence includes:

[0090] A plurality of candidate meteorological sequences are obtained, wherein the plurality of candidate meteorological sequences respectively represent the distribution of a plurality of candidate meteorological factors in the target basin in the historical period.

[0091] According to the first probability sequence and the multiple candidate meteorological sequences, multiple correlation indexes are obtained, the multiple correlation indexes correspond to the multiple candidate meteorological sequences one by one, and the correlation index is the correlation coefficient between the candidate meteorological sequence and the first probability sequence.

[0092] The multiple meteorological influence sequences are obtained according to the multiple candidate meteorological sequences, and the meteorological influence sequences are used to represent the candidate meteorological sequences whose correlation index is greater than a correlation threshold.

[0093] The probability prediction model is obtained according to the multiple meteorological impact sequences and the first probability sequence.

[0094] The correlation index is preferably the rank correlation coefficient between the alternative meteorological sequence and the first probability sequence, the probability prediction model is preferably a BP neural network model, and the multiple alternative meteorological factors can be the rainfall in the target basin, the North Pacific sea temperature data, the Northern Hemisphere 100hPa average height field, the Northern Hemisphere 500hPa average height field, etc.

[0095] Optionally, the step of obtaining the historical hydrological sequence of the target watershed and the target distribution function for fitting the hydrological distribution of the target watershed includes:

[0096] Obtain historical hydrological series.

[0097] The historical hydrological series is fitted using multiple alternative distributions with time-varying parameters to obtain multiple distribution extreme value data and multiple function degrees of freedom, respectively. The multiple distribution extreme value data correspond one-to-one to the multiple alternative distributions, and the multiple function degrees of freedom correspond one-to-one to the multiple alternative distributions.

[0098] The distribution extreme value data and the function degree of freedom of each candidate distribution are processed by using an evaluation function to obtain a plurality of evaluation indicators, wherein the plurality of evaluation indicators correspond one-to-one to the plurality of candidate distributions.

[0099] The target distribution function is obtained according to the multiple evaluation indicators.

[0100] Furthermore, the step of fitting the historical hydrological series using multiple alternative distributions with time-varying parameters to obtain multiple distribution extreme value data respectively includes:

[0101] The historical hydrological series is fitted using a plurality of alternative distributions with time-varying parameters to obtain a plurality of probability density functions, respectively, and the plurality of probability density functions correspond one-to-one to the plurality of alternative distributions.

[0102] Maximum likelihood estimation is performed on the multiple probability density functions to obtain the multiple distribution extreme value data respectively.

[0103] An example is:

[0104] Assume that one of the multiple candidate distributions is M j (j=1, 2, ..., s), wherein j is used to represent the unique serial number of a certain alternative distribution among the multiple alternative distributions, and s is used to represent the total number of the multiple alternative distributions.

[0105] Still set the historical hydrological sequence as x t (t=1,2,…,n), and assume that for some alternative distribution M j For the historical hydrological sequence x t The corresponding probability density function obtained after fitting (t=1,2,…,n) is f(x t |θ j (t)). Among them, the θ j (t) is used to represent an alternative distribution M j The time-varying parameters in (such as location parameters, scale parameters and shape parameters, etc.), the θ j (t) is preferably a cubic spline function of t.

[0106] For the f(x t |θ j (t)) can be estimated by maximum likelihood to obtain an alternative distribution Mj The corresponding distribution extreme value data and the corresponding time-varying parameter values

[0107] The evaluation function is set as: Wherein, p is used to represent the penalty function, and df j It is used to represent the degree of freedom of a function corresponding to an alternative distribution. j It is used to represent the evaluation index corresponding to a certain alternative distribution, and the target distribution function is the alternative distribution function with the smallest corresponding evaluation index.

[0108] It should be noted that, in practical applications, the multiple candidate distributions with time-varying parameters may be Weibull distribution, Gumbel distribution, lognormal distribution, gamma distribution, etc., but are not limited thereto.

[0109] Please refer to Figure 2 , Figure 2 : is a schematic diagram of a runoff forecast model construction device in some embodiments of the present application, the runoff forecast model construction device comprising:

[0110] The first acquisition module 201 is used to acquire the historical hydrological sequence of the target basin.

[0111] The second acquisition module 202 is used to acquire a target distribution function for fitting the hydrological distribution of the target watershed, and substitute the historical hydrological sequence into the target distribution function to obtain a first probability sequence of the historical hydrological sequence.

[0112] The third acquisition module 203 is used to obtain a probability prediction model and a second probability sequence of the historical hydrological sequence according to the first probability sequence, wherein the probability prediction model is used to predict the probability of the hydrological conditions in the target watershed.

[0113] A fourth acquisition module 204 is used to obtain a prediction error sequence according to the first probability sequence and the second probability sequence, wherein the prediction error sequence is used to indicate the degree of difference between the first probability and the second probability; wherein the first probability belongs to the first probability sequence, the second probability belongs to the second probability sequence, the first probability and the second probability correspond to the same historical hydrological data, and the historical hydrological data belongs to the historical hydrological sequence;

[0114] And based on the error threshold sequence and the prediction error sequence, an error probability association function is generated, the error probability association function is used to represent the proportion of the target element in the prediction error sequence, the target element is a prediction error greater than or equal to the error threshold, the prediction error belongs to the prediction error sequence, and the error threshold belongs to the error threshold sequence.

[0115] The modeling module 205 is used to generate a runoff forecast model based on the inverse function of the target distribution function, the probability prediction model and the error probability correlation function. The runoff forecast model is used to predict the hydrological conditions of the target basin at a certain time point in the future.

[0116] Optionally, the fourth acquisition module 204 includes a clustering submodule, and the clustering submodule is used to:

[0117] Performing clustering processing on the second probability sequence to obtain a plurality of mutually independent data clusters;

[0118] According to the plurality of data clusters and the prediction error sequences, a plurality of cluster prediction error sequences are obtained, wherein the plurality of cluster prediction error sequences correspond one-to-one to the plurality of data clusters;

[0119] According to the multiple cluster prediction error sequences and the error threshold sequence, a plurality of cluster association functions are respectively generated, the multiple cluster association functions correspond to the multiple data clusters one by one, the cluster association functions are used to represent the proportion of cluster target elements in the cluster prediction error sequence, the cluster target elements are cluster prediction errors greater than or equal to the error threshold, and the cluster prediction errors belong to the cluster prediction error sequence;

[0120] The modeling module is used to generate the runoff forecast model according to the inverse function of the target distribution function, the probability prediction model and the multiple cluster association functions.

[0121] Optionally, the third acquisition module 203 includes a sieve element module, and the sieve element module is used to:

[0122] Acquire multiple candidate meteorological sequences, wherein the multiple candidate meteorological sequences respectively represent the distribution of multiple candidate meteorological factors in the target basin in the historical period;

[0123] According to the first probability sequence and the multiple candidate meteorological sequences, a plurality of correlation indexes are obtained, wherein the multiple correlation indexes correspond to the multiple candidate meteorological sequences one by one, and the correlation index is a correlation coefficient between the candidate meteorological sequence and the first probability sequence;

[0124] Obtain the plurality of meteorological influence sequences according to the plurality of candidate meteorological sequences, wherein the meteorological influence sequences are used to represent the candidate meteorological sequences whose correlation index is greater than a correlation threshold;

[0125] The probability prediction model is obtained according to the plurality of meteorological impact sequences and the first probability sequence. Optionally, the second acquisition module 202 includes a fitting submodule, and the fitting submodule is used to:

[0126] Obtain historical hydrological series;

[0127] Fitting the historical hydrological series using multiple alternative distributions with time-varying parameters to obtain multiple distribution extreme value data and multiple function degrees of freedom, respectively, wherein the multiple distribution extreme value data correspond to the multiple alternative distributions one-to-one, and the multiple function degrees of freedom correspond to the multiple alternative distributions one-to-one;

[0128] Processing the distribution extreme value data and the function degree of freedom of each candidate distribution by using an evaluation function to obtain a plurality of evaluation indicators, wherein the plurality of evaluation indicators correspond one-to-one to the plurality of candidate distributions;

[0129] The target distribution function is obtained according to the multiple evaluation indicators.

[0130] Furthermore, the fitting submodule is specifically used for:

[0131] Fitting the historical hydrological series using a plurality of alternative distributions with time-varying parameters to obtain a plurality of probability density functions, respectively, wherein the plurality of probability density functions correspond one-to-one to the plurality of alternative distributions;

[0132] Maximum likelihood estimation is performed on the multiple probability density functions to obtain the multiple distribution extreme value data respectively.

[0133] The runoff forecast model construction device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes of the runoff forecast model construction method in the method embodiment shown will not be described again here.

[0134] It should be noted that the runoff forecast model building device in the embodiment of the present application can be a device, or a component, integrated circuit or chip in an electronic device.

[0135] See also Figure 3 , Figure 3 is a structural diagram of an electronic device provided in an embodiment of the present application, such as Figure 3 As shown, the electronic device 300 includes: a memory 301, a processor 302, and a program or instruction stored in the memory 301 and executable on the processor 302, and when the program or instruction is executed by the processor 302, the steps in the above-mentioned runoff forecast model construction method are implemented.

[0136] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned runoff forecast model construction method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0138] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for constructing a runoff forecast model. It is characterized in that The method comprises: Obtain the historical hydrological sequence of the target basin and the target distribution function used to fit the hydrological distribution of the target basin; Substituting the historical hydrological sequence into the target distribution function to obtain a first probability sequence of the historical hydrological sequence; According to the first probability sequence, a probability prediction model and a second probability sequence of the historical hydrological sequence are obtained, wherein the probability prediction model is used to predict the probability of the hydrological conditions of the target basin; According to the first probability sequence and the second probability sequence, a prediction error sequence is obtained, wherein the prediction error sequence is used to indicate the degree of difference between the first probability and the second probability; wherein the first probability belongs to the first probability sequence, the second probability belongs to the second probability sequence, the first probability and the second probability correspond to the same historical hydrological data, and the historical hydrological data belongs to the historical hydrological sequence; generating an error probability association function according to an error threshold sequence and the prediction error sequence, wherein the error probability association function is used to represent a proportion of a target element in the prediction error sequence, the target element being a prediction error greater than or equal to the error threshold, the prediction error belonging to the prediction error sequence, and the error threshold belonging to the error threshold sequence; Generate a forecast model according to the inverse function of the target distribution function, the probability prediction model and the error probability association function, wherein the forecast model is used to predict the hydrological conditions of the target basin; The step of generating an error probability correlation function according to the error threshold sequence and the prediction error sequence includes: Performing clustering processing on the second probability sequence to obtain a plurality of mutually independent data clusters; According to the plurality of data clusters and the prediction error sequences, a plurality of cluster prediction error sequences are obtained, wherein the plurality of cluster prediction error sequences correspond one-to-one to the plurality of data clusters; According to the multiple cluster prediction error sequences and the error threshold sequence, a plurality of cluster association functions are respectively generated, the multiple cluster association functions correspond to the multiple data clusters one by one, the cluster association functions are used to represent the proportion of cluster target elements in the cluster prediction error sequence, the cluster target elements are cluster prediction errors greater than or equal to the error threshold, and the cluster prediction errors belong to the cluster prediction error sequence; The step of generating a prediction model according to the inverse function of the target distribution function, the probability prediction model and the error probability association function comprises: generating the prediction model according to the inverse function of the target distribution function, the probability prediction model and the plurality of cluster association functions; Wherein, the step of obtaining a probability prediction model according to the first probability sequence includes: Acquire multiple candidate meteorological sequences, wherein the multiple candidate meteorological sequences respectively represent the distribution of multiple candidate meteorological factors in the target basin in the historical period; According to the first probability sequence and the multiple candidate meteorological sequences, a plurality of correlation indexes are obtained, wherein the multiple correlation indexes correspond to the multiple candidate meteorological sequences one by one, and the correlation index is a correlation coefficient between the candidate meteorological sequence and the first probability sequence; Obtaining a plurality of meteorological influence sequences according to the plurality of candidate meteorological sequences, wherein the meteorological influence sequences are used to represent the candidate meteorological sequences whose correlation index is greater than a correlation threshold; Obtaining the probability prediction model according to the multiple meteorological impact sequences and the first probability sequence; The step of obtaining the historical hydrological sequence of the target watershed and the target distribution function for fitting the hydrological distribution of the target watershed includes: Obtain historical hydrological series; Fitting the historical hydrological series using multiple alternative distributions with time-varying parameters to obtain multiple distribution extreme value data and multiple function degrees of freedom, respectively, wherein the multiple distribution extreme value data correspond to the multiple alternative distributions one-to-one, and the multiple function degrees of freedom correspond to the multiple alternative distributions one-to-one; Processing the distribution extreme value data and the function degree of freedom of each candidate distribution by using an evaluation function to obtain a plurality of evaluation indicators, wherein the plurality of evaluation indicators correspond one-to-one to the plurality of candidate distributions; According to the multiple evaluation indicators, obtaining the target distribution function; The step of fitting the historical hydrological series using multiple alternative distributions with time-varying parameters to obtain multiple distribution extreme value data respectively includes: Fitting the historical hydrological series using a plurality of alternative distributions with time-varying parameters to obtain a plurality of probability density functions, respectively, wherein the plurality of probability density functions correspond one-to-one to the plurality of alternative distributions; Maximum likelihood estimation is performed on the multiple probability density functions to obtain the multiple distribution extreme value data respectively.

2. A runoff forecast model construction device, It is characterized in that The device comprises: The first acquisition module is used to obtain the historical hydrological sequence of the target basin; A second acquisition module is used to acquire a target distribution function for fitting the hydrological distribution of a target watershed, and substitute the historical hydrological sequence into the target distribution function to obtain a first probability sequence of the historical hydrological sequence; A third acquisition module is used to obtain a probability prediction model and a second probability sequence of the historical hydrological sequence according to the first probability sequence, wherein the probability prediction model is used to predict the probability of the hydrological conditions of the target basin; a fourth acquisition module, configured to obtain a prediction error sequence according to the first probability sequence and the second probability sequence, wherein the prediction error sequence is used to indicate the degree of difference between the first probability and the second probability; wherein the first probability belongs to the first probability sequence, the second probability belongs to the second probability sequence, the first probability and the second probability correspond to the same historical hydrological data, and the historical hydrological data belongs to the historical hydrological sequence; and generating an error probability association function according to the error threshold sequence and the prediction error sequence, the error probability association function being used to represent the proportion of a target element in the prediction error sequence, the target element being a prediction error greater than or equal to the error threshold, the prediction error belonging to the prediction error sequence, and the error threshold belonging to the error threshold sequence; A modeling module, used for generating a forecast model according to the inverse function of the target distribution function, the probability prediction model and the error probability association function, wherein the forecast model is used for predicting the hydrological conditions of the target basin at a certain time point in the future; The fourth acquisition module includes a clustering submodule, and the clustering submodule is used for: Performing clustering processing on the second probability sequence to obtain a plurality of mutually independent data clusters; According to the plurality of data clusters and the prediction error sequences, a plurality of cluster prediction error sequences are obtained, wherein the plurality of cluster prediction error sequences correspond one-to-one to the plurality of data clusters; According to the multiple cluster prediction error sequences and the error threshold sequence, a plurality of cluster association functions are respectively generated, the multiple cluster association functions correspond to the multiple data clusters one by one, the cluster association functions are used to represent the proportion of cluster target elements in the cluster prediction error sequence, the cluster target elements are cluster prediction errors greater than or equal to the error threshold, and the cluster prediction errors belong to the cluster prediction error sequence; The modeling module is used to generate the forecast model according to the inverse function of the target distribution function, the probability prediction model and the multiple cluster association functions; Wherein, the third acquisition module includes a sieve molecule module, and the sieve molecule module is used to: Acquire multiple candidate meteorological sequences, wherein the multiple candidate meteorological sequences respectively represent the distribution of multiple candidate meteorological factors in the target basin in the historical period; According to the first probability sequence and the multiple candidate meteorological sequences, a plurality of correlation indexes are obtained, wherein the multiple correlation indexes correspond to the multiple candidate meteorological sequences one by one, and the correlation index is a correlation coefficient between the candidate meteorological sequence and the first probability sequence; Obtaining a plurality of meteorological influence sequences according to the plurality of candidate meteorological sequences, wherein the meteorological influence sequences are used to represent the candidate meteorological sequences whose correlation index is greater than a correlation threshold; Obtaining the probability prediction model according to the multiple meteorological impact sequences and the first probability sequence; The second acquisition module includes a fitting submodule, and the fitting submodule is used to: Obtain historical hydrological series; Fitting the historical hydrological series using multiple alternative distributions with time-varying parameters to obtain multiple distribution extreme value data and multiple function degrees of freedom, respectively, wherein the multiple distribution extreme value data correspond to the multiple alternative distributions one-to-one, and the multiple function degrees of freedom correspond to the multiple alternative distributions one-to-one; Processing the distribution extreme value data and the function degree of freedom of each candidate distribution by using an evaluation function to obtain a plurality of evaluation indicators, wherein the plurality of evaluation indicators correspond one-to-one to the plurality of candidate distributions; According to the multiple evaluation indicators, obtaining the target distribution function; Wherein, the fitting submodule is specifically used for: Fitting the historical hydrological series using a plurality of alternative distributions with time-varying parameters to obtain a plurality of probability density functions, respectively, wherein the plurality of probability density functions correspond one-to-one to the plurality of alternative distributions; Maximum likelihood estimation is performed on the multiple probability density functions to obtain the multiple distribution extreme value data respectively.

3. An electronic device, It is characterized in that The method comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the steps of the method as claimed in claim 1 when executed by the processor.

4. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to claim 1 are implemented.