Ecological flow forecasting method and system, electronic equipment and storage medium

By acquiring and downscaling real-time precipitation forecast data from multiple data sources, and combining it with multiple hydrological models, the problem of low accuracy of river ecological flow forecast in the existing technology is solved, and higher early warning accuracy and river ecological flow are achieved. System management effects.

CN118627664AInactive Publication Date: 2024-09-10GUANGDONG RES INST OF WATER RESOURCES & HYDROPOWER
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410665535.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing river ecological flow forecasting methods have low accuracy, mainly due to their reliance on specific weather forecast data or hydrological models, which result in huge uncertainties.

Method used

By obtaining the target ecological flow section and ecological flow threshold, the target watershed is divided, real-time precipitation forecast data from multiple data sources are obtained, downscaling processing is performed, and multiple hydrological models are combined for ecological flow forecasting to improve data resolution and early warning accuracy.

Benefits of technology

It improves the accuracy of river ecological flow early warning, reduces the uncertainty of single data sources and models, and enhances the management capabilities of river ecosystems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627664A
    Figure CN118627664A
Patent Text Reader

Abstract

The invention discloses an ecological flow early warning method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining a target ecological flow section and an ecological flow threshold value, dividing and determining a target drainage basin according to the target ecological flow section, obtaining a real-time rainfall forecast data set of different data sources of the target drainage basin, and carrying out the early warning of the ecological flow. Performing downscaling processing on the real-time rainfall forecast data set to obtain a downscaled real-time rainfall forecast data set, performing mean value calculation on the downscaled real-time rainfall forecast data set to obtain a surface rainfall forecast set, and determining an ecological flow forecast set according to the surface rainfall forecast set and a hydrological ensemble forecast model. And determining a first data set according to the ecological flow forecast set and the ecological flow threshold, and taking the proportion of the first data set in the ecological flow forecast set as an early warning result. Ecological flow early warning is carried out by combining rainfall forecast data of different data sources and the hydrological ensemble forecast model, and the early warning accuracy is improved. The embodiment of the invention can be widely applied to the technical field of ecological flow monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ecological flow monitoring, and in particular to an ecological flow forecasting method, system, electronic equipment and storage medium. Background Art

[0002] The ecological flow of a river is the minimum amount of water required to maintain the survival of organisms downstream of the river under the premise of maintaining the healthy operation of the river ecosystem. Accurate forecasting and early warning of the ecological flow of the river and regulating the ecological flow of the river according to the forecast results can protect the integrity and ecological balance of the river ecosystem, promote the protection and restoration of the water ecological environment, improve the utilization efficiency of water resources, reduce the waste and pollution of water resources, and ensure the sustainable development of human society; the existing forecasting method for the ecological flow of the river is based on a specific source of weather forecasts to drive a specific mechanism model or machine learning model for ecological flow early warning, and the early warning accuracy is low. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to provide an ecological flow warning method, system, electronic device and storage medium, which can improve the accuracy of the warning.

[0004] To achieve the above purpose, an embodiment of the present application provides an ecological flow early warning method, the method comprising:

[0005] Obtain a target ecological flow section and an ecological flow threshold, divide a target watershed according to the target ecological flow section, and obtain a real-time precipitation forecast data set for the target watershed; wherein the target watershed represents an upstream watershed of the target ecological flow section, and the real-time precipitation forecast data set includes real-time precipitation forecast data from several different data sources;

[0006] Performing a downscaling operation on the real-time precipitation forecast data set to obtain a downscaled real-time precipitation forecast data set, and performing mean calculation based on the downscaled real-time precipitation forecast data set to obtain a surface rainfall forecast set;

[0007] Determine an ecological flow forecast set according to the surface rainfall forecast set and the hydrological ensemble forecast model, and determine a first data set according to the ecological flow forecast set and the ecological flow threshold;

[0008] A proportional calculation is performed based on the first data set and the ecological flow forecast set as an early warning result.

[0009] In some embodiments, the downscaling operation is performed on the real-time precipitation forecast data set to obtain a downscaled real-time precipitation forecast data set, specifically comprising:

[0010] Performing a convolution operation on the real-time precipitation forecast data set to obtain a first data set, and performing parameterization processing on the first data set according to a preset activation function to obtain a second data set;

[0011] Performing a residual convolution operation on the second data set to obtain a third data set, performing a convolution operation and a batch normalization operation on the third data set to obtain a fourth data set, and performing a residual connection on the second data set and the fourth data set to obtain a fifth data set;

[0012] An upsampling operation is performed on the fifth data set to obtain a sixth data set, and a convolution operation is performed on the sixth data set to obtain a downscaled real-time precipitation forecast data set.

[0013] In some embodiments, performing a residual convolution operation on the second data set to obtain a third data set specifically includes:

[0014] Performing a convolution operation and a batch normalization operation on the second data set to obtain a first sub-data set, and performing a parameterization operation on the first sub-data set according to the preset activation function to obtain a second sub-data set;

[0015] Performing a convolution operation and a batch normalization operation on the second sub-data set to obtain a third sub-data set, and performing an element-wise addition operation on the third sub-data set and the second data set to obtain a third data set.

[0016] In some embodiments, performing an upsampling operation on the fifth data set to obtain a sixth data set specifically includes:

[0017] Performing a convolution operation on the fifth data set to obtain a fourth sub-data set, and performing data interpolation processing on the fourth sub-data set to obtain a fifth sub-data set;

[0018] The fifth subset data set is parameterized according to the preset activation function to obtain a sixth data set.

[0019] In some embodiments, determining the first data set according to the ecological flow forecast set and the ecological flow threshold specifically includes:

[0020] Determining forecast data according to the ecological flow forecast set, and comparing the forecast data with the ecological flow threshold in sequence;

[0021] If the forecast data is less than the ecological flow threshold, the forecast data is marked as first data, and a first data set is determined according to the first data.

[0022] In some embodiments, the hydrological ensemble forecast model is determined by:

[0023] Obtaining a sample data set and constructing a number of hydrological forecast models; wherein the sample data set includes measured meteorological data and hydrological data;

[0024] Dividing the sample data set according to a preset ratio to obtain a training sample data set and a test sample data set, and training a plurality of the hydrological forecast models according to the training sample data sets to obtain a plurality of first models;

[0025] The calculation accuracy is calculated based on the test sample data set and several of the first models respectively, the target model is determined based on the several calculation accuracies and preset thresholds, and the target model is coupled to obtain a hydrological ensemble forecast model.

[0026] In some embodiments, determining the target model according to the plurality of the calculation accuracies, the preset thresholds and the plurality of the first models specifically includes:

[0027] Comparing a plurality of the calculation accuracies with the preset thresholds respectively;

[0028] If the calculation accuracy is greater than or equal to the preset threshold, taking the first model corresponding to the calculation accuracy as the target model;

[0029] If the calculation accuracy is less than the preset threshold, the parameters of the first model corresponding to the calculation accuracy are adjusted until the calculation accuracy is greater than or equal to the preset threshold, and the first model corresponding to the calculation accuracy is used as the target model.

[0030] To achieve the above purpose, another aspect of the embodiment of the present application provides an ecological flow early warning system, the system comprising:

[0031] The first module is used to obtain a target ecological flow section and an ecological flow threshold, divide a target watershed according to the target ecological flow section, and obtain a real-time precipitation forecast data set for the target watershed; wherein the target watershed represents an upstream watershed of the target ecological flow section, and the real-time precipitation forecast data set includes real-time precipitation forecast data from several different data sources;

[0032] The second module is used to perform a downscaling operation on the real-time precipitation forecast data set to obtain a downscaled real-time precipitation forecast data set, and calculate a surface rainfall forecast set according to the downscaled real-time precipitation forecast data set;

[0033] The third module is used to determine the ecological flow forecast set according to the surface rainfall forecast set and the hydrological ensemble forecast model, and determine the second data set according to the ecological flow forecast set and the ecological flow threshold;

[0034] The fourth module is used to perform a proportional calculation based on the second data set and the ecological flow forecast set as an early warning result.

[0035] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.

[0036] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0037] Implementation of the embodiments of the present application includes the following beneficial effects: the embodiments of the present application provide an ecological flow early warning method, system, electronic device and storage medium, which obtains a target ecological flow section and an ecological flow threshold, divides the target watershed according to the target ecological flow section, and obtains a real-time precipitation forecast data set for the target watershed, wherein the real-time precipitation forecast data set for the target watershed includes real-time precipitation forecast data from different data sources; then, downscaling is performed on the obtained real-time precipitation forecast data set, and mean calculation is performed on the real-time precipitation forecast data set after the downscaling operation to obtain a surface rainfall forecast set for the target watershed; then, calculation and processing are performed based on the obtained surface rainfall forecast set and the hydrological ensemble forecast model. The ecological flow forecast set of the target basin is obtained by processing; then, the first data set is determined according to the ecological flow forecast set and the ecological flow threshold of the target basin, and the ratio of the first data set to the ecological flow forecast set is calculated as the early warning result for the target basin; by obtaining real-time precipitation forecast data from a variety of different data sources, the obtained real-time precipitation forecast data is downscaled to improve the resolution of the data, thereby improving the early warning accuracy of the ecological flow, combining a variety of different hydrological forecast models to process the hydrological ensemble forecast data from a variety of different data sources, and obtaining a variety of possible results about the ecological flow. After comprehensive analysis of the various possible results, the early warning result of the ecological flow is obtained, thereby improving the accuracy of the early warning of the ecological flow for the target basin. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a schematic diagram of the steps of an ecological flow early warning method provided by an embodiment of the present application;

[0039] Figure 2This is a schematic flow chart of the steps of downscaling operation in an ecological flow early warning method provided in an embodiment of the present application;

[0040] Figure 3 It is a schematic flow chart of the steps of residual convolution operation in an ecological flow early warning method provided in an embodiment of the present application;

[0041] Figure 4 This is a schematic flow chart of the steps of upsampling operation in an ecological flow early warning method provided in an embodiment of the present application;

[0042] Figure 5 This is a schematic flow chart of the steps of determining a first data set in an ecological flow early warning method provided in an embodiment of the present application;

[0043] Figure 6 It is a schematic flow chart of the steps of determining a hydrological ensemble forecast model in an ecological flow early warning method provided in an embodiment of the present application;

[0044] Figure 7 It is a schematic diagram of the steps of determining a target model in an ecological flow early warning method provided in an embodiment of the present application;

[0045] Figure 8 It is a schematic diagram of the steps of a specific embodiment provided in the embodiment of the present application;

[0046] Fig. 9 is a schematic diagram of a target watershed in a specific embodiment provided in the embodiments of the present application;

[0047] Fig.10 is a structural schematic diagram of a downscaling generator in a specific embodiment provided in an embodiment of the present application;

[0048] Fig.11 This is a schematic diagram of the steps of generating an ecological flow forecast set in a specific embodiment provided in an embodiment of the present application;

[0049] Fig.12 This is a schematic diagram of the steps of generating a warning result in a specific embodiment provided in the embodiment of the present application;

[0050] Fig.13 It is a structural block diagram of an ecological flow early warning system provided by an embodiment of the present application;

[0051] Fig.14 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0052] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0053] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0054] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0055] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present invention.

[0056] River ecological flow refers to the minimum amount of water required to maintain the balance of downstream organisms under the premise of maintaining the health of the river ecosystem. It is related to the stability and health of the river ecosystem. By regulating the river ecological flow, the integrity of the river ecosystem and the ecological balance of the river can be maintained, the protection and restoration of the water ecological environment can be promoted, and the utilization efficiency of water resources can be further improved. In order to achieve reasonable regulation of river ecological flow, it is necessary to accurately predict the river ecological flow, and to forecast and warn the river ecological flow based on the forecast to achieve the management of the river ecosystem. The commonly used ecological flow forecast and warning methods are to establish a model for the river to conduct hydrological simulation to predict the change of water volume in the river and realize the forecast of river ecological flow; or to analyze the historical data and trends of the river based on statistics and machine learning to predict the river ecological flow; but the existing common methods are mostly based on weather forecast data from a specific source or modeling of hydrological models for the river. There is huge uncertainty in weather forecast data and modeling, so the accuracy of warning of river ecological flow is low.

[0057] In view of this, an ecological flow warning method, system, electronic device and storage medium are provided in an embodiment of the present application. The scheme divides the target watershed according to the target ecological flow section, obtains the real-time precipitation forecast data set of different data sources in the target watershed and the ecological watershed threshold of the target watershed; then, the real-time precipitation forecast data set is downscaled, and the surface rainfall forecast set is determined based on the downscaled real-time precipitation forecast data set; then, the obtained surface rainfall forecast set and the hydrological ensemble forecast model coupled with multiple hydrological models are processed to obtain the ecological flow forecast set of the target watershed; finally, a first data set is determined according to the ecological flow forecast set and the ecological flow threshold, and the first data set is used as the ecological flow warning result of the target watershed according to the proportion of the first data set in the ecological flow forecast set; the real-time forecast data from multiple different data sources are downscaled to improve the data resolution, and then analyzed and calculated in combination with the ensemble forecast model coupled with multiple different hydrological models to improve the accuracy of ecological flow warning for the target watershed.

[0058] Figure 1 is an optional flow chart of an ecological flow early warning method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S104.

[0059] Step S101, obtaining a target ecological flow section and an ecological flow threshold, dividing a target watershed according to the target ecological flow section, and obtaining a real-time precipitation forecast data set for the target watershed; wherein the target watershed represents an upstream watershed of the target ecological flow section, and the real-time precipitation forecast data set includes real-time precipitation forecast data from several different data sources;

[0060] Step S102, downscaling the real-time precipitation forecast data set to obtain a downscaled real-time precipitation forecast data set, and performing mean calculation on the downscaled real-time precipitation forecast data set to obtain a surface rainfall forecast set;

[0061] Step S103, determining an ecological flow forecast set according to the surface rainfall forecast set and the hydrological ensemble forecast model, and determining a first data set according to the ecological flow forecast set and the ecological flow threshold;

[0062] Step S104, performing a ratio calculation based on the first data set and the ecological flow forecast set as an early warning result.

[0063] Steps S101 to S104 shown in the embodiment of the present application are to select an ecological flow section for the river that needs ecological flow forecast, where the ecological flow section refers to a section in the river channel, obtain a digital elevation model of the river for which ecological flow forecast is to be performed, divide the river based on the digital elevation model and the ecological flow section, take the upstream basin of the ecological flow section as the target basin, and perform subsequent ecological flow forecast based on the target basin; then, obtain a real-time precipitation forecast data set for the target basin of multiple forecast products through TIGGE, where the real-time precipitation forecast data set includes precipitation forecast data for the target basin published by multiple data sources; then, use a downscaling generator to downscale the real-time precipitation forecast data set to improve the spatial downscaling of the real-time precipitation forecast data; calculate the surface rainfall forecast set for the target basin based on the downscaled real-time precipitation forecast data set, The surface rainfall forecast set is the average precipitation per unit area in the target watershed. The hydrological ensemble forecast model coupled with multiple hydrological models is driven according to the obtained surface rainfall forecast set. The precipitation forecast data of different forecast products are simulated and predicted through different hydrological models, and the corresponding forecast results are output. The forecast results output by each hydrological model are used as the ecological flow forecast set. Then, the ecological flow threshold is determined according to the target ecological flow section. When the water flow in the river is less than the ecological flow threshold, an alarm message needs to be issued to prompt the management personnel to regulate and manage the river. After determining the ecological flow threshold, the forecast data in the ecological flow forecast set is compared with the ecological flow threshold to screen out the forecast data that does not meet the ecological flow threshold, and the proportion of the forecast data that does not meet the ecological flow threshold in all the data in the ecological flow forecast data set is calculated, so as to determine the early warning result for the ecological flow of the river.

[0064] In step S101 of some embodiments, the river may be investigated and analyzed to determine the target ecological flow section of the river. Alternatively, the target ecological flow section of the river may be obtained by obtaining an existing publicly divided ecological flow section, but is not limited thereto.

[0065] See also Figure 2 In some embodiments, step S102 may include but is not limited to steps S201 to S203:

[0066] Step S201, performing a convolution operation on the real-time precipitation forecast data set to obtain a first data set, and performing parameterization processing on the first data set according to a preset activation function to obtain a second data set;

[0067] Step S202, performing a residual convolution operation on the second data set to obtain a third data set, performing a convolution operation and a batch normalization operation on the third data set to obtain a fourth data set, and performing a residual connection on the second data set and the fourth data set to obtain a fifth data set;

[0068] Step S203: performing an upsampling operation on the fifth data set to obtain a sixth data set, and performing a convolution operation on the sixth data set to obtain a downscaled real-time precipitation forecast data set.

[0069] In step S201 of some embodiments, the downscaling operation is to convert large-scale, low-resolution information into small-scale, high-resolution information, and perform a downscaling operation on the forecast data in the real-time precipitation forecast data set to improve the data resolution of the forecast data for the target basin, so as to improve the accuracy of the subsequent hydrological ensemble forecast model in predicting the input forecast data. In this embodiment, a downscaling generator is established based on a super-resolution generative adversarial network, and a historical precipitation forecast data set of multiple forecast products is obtained, including historical measured precipitation data and historical precipitation forecast data. The established The downscaling generator is trained, and the real-time precipitation forecast data set is downscaled by the trained downscaling generator. Before the downscaling operation, the downscaling generator first performs conventional convolution on the input real-time precipitation forecast data set, and parameterizes the convolved data set according to the activation function, and then inputs it into the next module for subsequent processing; illustratively, the downscaling generator convolves the forecast data in the input real-time precipitation forecast data set with a 3×3 convolution kernel with a set channel number of 64, and then parameterizes the convolution according to the PReLU activation function, thereby increasing the nonlinearity of the convolved data set and alleviating the gradient vanishing problem.

[0070] In step S202 of some embodiments, after the downscaling generator performs the processing in step S201 on the input real-time precipitation forecast data set, it performs residual convolution processing on the output data set to extract data features in the real-time precipitation forecast data, and then performs conventional convolution kernel batch normalization processing on the feature data output by the residual convolution processing, and then inputs it into the next module for upsampling operation to improve data resolution; in this embodiment, the downscaling generator sets multiple residual blocks to extract features from the real-time precipitation forecast data. In order to alleviate the gradient disappearance problem that occurs during the convolution process, the downscaling generator performs residual connection on the input data of the input residual convolution model and the output of the residual convolution module, sums the data elements, obtains the final output data, and inputs it into the next module for upsampling processing.

[0071] In step S203 of some embodiments, the downscaling generator performs residual processing on the input real-time precipitation forecast data set through the set residual convolution module, and then upsamples the data output by the residual convolution module through the set upsampling module to improve the resolution of the data output by the residual convolution module; illustratively, the upsampling module in the downscaling generator takes the output data of the previous module as input, extracts features from the input data, and performs interpolation operations on the input data to obtain high-resolution output data.

[0072] See also Figure 3 In some embodiments, step S202 may include but is not limited to steps S301 to S302:

[0073] Step S301, performing a convolution operation and a batch normalization operation on the second data set to obtain a first sub-data set, and performing a parameterization operation on the first sub-data set according to a preset activation function to obtain a second sub-data set;

[0074] Step S302: performing a convolution operation and a batch normalization operation on the second sub-data set to obtain a third sub-data set, and performing an element-wise addition operation on the third sub-data set and the second data set to obtain a third data set.

[0075] In step S301 of some embodiments, a plurality of residual blocks are provided in the residual convolution module of the downscaling generator, and residual convolution operations are performed on the input data in sequence. Each residual block performs convolution operations and batch normalization on the input data, outputs the convolved data, and then parameterizes the feature data obtained by the convolution to improve the nonlinearity of the feature data and reduce the gradient disappearance. Exemplarily, the residual block convolves the input data with a 3×3 convolution kernel with a set channel number of 64, and processes it through a batch normalization layer, and then uses a PReLU activation function to parameterize the data output by the convolution kernel.

[0076] In step S302 of some embodiments, the feature data obtained in step S301 is processed again using a convolution kernel to extract feature information of the input data, and is processed through a batch normalization layer to improve the nonlinearity of the convolution kernel output data. Then, the output data processed by the batch normalization layer is residually connected with the data of the input residual block, and the connected data is used as the output data of the residual block, and the output data is processed as the input data of the next residual block. Finally, the output data of the last residual block in the residual convolution module is processed by the convolution layer and the batch normalization layer, and then residually connected with the input data of the input residual convolution module as the output data of the residual convolution module.

[0077] See also Figure 4In some embodiments, step S203 may include but is not limited to steps S401 to S402:

[0078] Step S401, performing a convolution operation on the fifth data set to obtain a fourth sub-data set, and performing data interpolation processing on the fourth sub-data set to obtain a fifth sub-data set;

[0079] Step S402: parameterize the fifth subset data set according to a preset activation function to obtain a sixth data set.

[0080] In step S401 of some embodiments, the downscaling generator uses the output data of the residual convolution module as the input data of the upsampling module. The upsampling module performs convolution processing on the input data, and then inputs the convolved data into the upsampling layer for data interpolation to improve the resolution of the input data.

[0081] In step S402 of some embodiments, the data after data interpolation in step S401 is then parameterized as output data; in particular, multiple upsampling modules can be set to perform multiple data interpolation operations on the output data of the residual convolution module to obtain high-resolution output data, thereby improving the accuracy of subsequent ecological flow warnings.

[0082] See also Figure 5 In some embodiments, step S103 may include but is not limited to steps S501 to S502:

[0083] Step S501, determining forecast data according to the ecological flow forecast set, and comparing the forecast data with the ecological flow threshold in sequence;

[0084] Step S502: if the forecast data is less than the ecological flow threshold, the forecast data is marked as first data, and a first data set is determined according to the first data.

[0085] In step S501 of some embodiments, the hydrological ensemble forecast model is driven by the surface rainfall forecast set to perform calculations to obtain an ecological flow forecast set, which includes prediction results of the ecological flow of the target river basin based on different hydrological models according to different forecast products. The different prediction results are compared with the ecological flow threshold of the target river basin in turn, and the ecological flow forecast set is divided according to the comparison results, so as to evaluate the probability that the ecological flow of the target river basin does not meet the ecological flow section of the river, and issue an early warning.

[0086] In step S502 of some embodiments, the prediction results in the ecological flow forecast set are compared with the ecological flow threshold of the target watershed, and the corresponding forecast values ​​are marked according to the comparison results. If the prediction result is greater than or equal to the ecological flow threshold, the forecast value corresponding to the prediction result is marked as 0; if the prediction result is less than the ecological flow threshold, the forecast value corresponding to the prediction result is marked as 1; then, all prediction results with forecast values ​​marked as 1 are counted as the first data set.

[0087] See also Figure 6 In some embodiments, before step S103, the ecological flow forecasting method further includes predetermining a hydrological ensemble forecasting model, the hydrological ensemble forecasting model is used to process the real-time precipitation forecasting data set of the target basin to obtain the ecological flow forecasting set of the target basin, and the method for determining the hydrological ensemble forecasting model includes steps S601 to S603:

[0088] Step S601, obtaining a sample data set and constructing a number of hydrological forecast models; wherein the sample data set includes measured meteorological data and hydrological data;

[0089] Step S602, dividing the sample data set according to a preset ratio to obtain a training sample data set and a test sample data set, and training a plurality of hydrological forecast models according to the training sample data sets to obtain a plurality of first models;

[0090] Step S603, respectively perform calculation accuracy calculations based on the test sample data set and the plurality of first models, determine the target model based on the plurality of calculation accuracies, preset thresholds and the plurality of first models, couple the target model, and obtain a hydrological ensemble forecast model.

[0091] In step S601 of some embodiments, measured meteorological data and hydrological data of the target basin are obtained as sample data, and different hydrological forecast models are established, including the Xin'anjiang model, a terrain-based hydrological model, a runoff curve hydrological model, and a long-short-term memory network model, etc. The established hydrological forecast models are trained, calibrated, and verified based on the acquired sample data, and the hydrological forecast models that meet the requirements are determined and coupled to obtain a hydrological ensemble forecast model.

[0092] In step S602 of some embodiments, the acquired measured meteorological data and hydrological data are divided into training data sets and test data sets according to a preset ratio, and the training data sets are respectively input into the established hydrological forecast models for training, and then the test data sets are used to calibrate and verify the parameters of each hydrological forecast model after training.

[0093] In step S603 of some embodiments, the test data set is respectively input into each trained hydrological forecast model for prediction, and calculation is performed based on the prediction result of each hydrological forecast model and the input test data set to obtain the calculation accuracy of each hydrological forecast model. The target model is determined based on the calculation accuracy of each hydrological forecast model and a preset threshold, and the determined target model is coupled to obtain the final hydrological ensemble forecast model.

[0094] See also Figure 7 In some embodiments, step S603 may include but is not limited to steps S701 to S703:

[0095] Step S701, comparing several calculation accuracies with preset thresholds respectively;

[0096] Step S702, if the calculation accuracy is greater than or equal to a preset threshold, the first model corresponding to the calculation accuracy is used as the target model;

[0097] Step S703: if the calculation accuracy is less than a preset threshold, the parameters of the first model corresponding to the calculation accuracy are adjusted until the calculation accuracy is greater than or equal to the preset threshold, and the first model corresponding to the calculation accuracy is used as the target model.

[0098] In step S701 of some embodiments, the calculation accuracy of each hydrological forecast model calculated in step S603 is compared with a preset threshold, and the hydrological forecast model is determined as the target model based on the comparison result for subsequent model coupling, or the hydrological forecast model is calibrated and verified.

[0099] In step S702 of some embodiments, when the calculation accuracy of each hydrological forecast model is compared with a preset threshold in step S701, the calculation accuracy is greater than or equal to the preset threshold, indicating that the prediction result of the hydrological forecast model corresponding to the calculation accuracy is not much different from the measured data and has a high prediction accuracy. The hydrological forecast model corresponding to the calculation accuracy is determined as the target model, and model coupling is performed.

[0100] In step S703 of some embodiments, when the calculation accuracy of each hydrological forecast model is compared with a preset threshold in step S701, the calculation accuracy is less than the preset threshold, indicating that the prediction result of the hydrological forecast model corresponding to the calculation accuracy is significantly different from the measured data, and it is necessary to adjust the parameters of the hydrological forecast model and re-enter the test data for verification to obtain the calculation accuracy of the hydrological forecast model after parameter adjustment, and compare the calculation accuracy with the preset threshold. If the calculation accuracy is greater than or equal to the preset threshold, the hydrological forecast model at this time is determined as the target model. If the calculation accuracy is still less than the preset threshold, the parameters of the hydrological forecast model are adjusted again, and the test data is input for verification until the calculation accuracy meets the preset threshold.

[0101] Below, in conjunction with specific application examples, the solution proposed in the embodiment of the present application is described in detail and explained:

[0102] See also Figure 8 , obtain the ecological flow assessment section of the basin to be forecasted, and obtain the digital elevation data of the basin to be forecasted, mark the ecological flow assessment section of the basin to be forecasted on the digital elevation data, and divide the upstream basin as the target basin according to the marked ecological flow assessment section, such as Fig. 9 As shown in Figure 1, various meteorological forecast data sets of the target basin are obtained through the TIGGE platform. Then, the obtained various meteorological forecast data sets are input into the established downscaling generator for downscaling operation to obtain a high-resolution forecast data set. The downscaling generator is built based on the SRGANs super-resolution algorithm, and its structure is as follows: Fig.10 As shown in Figure 2, the high-resolution forecast data set is then averaged to obtain the surface rainfall forecast set, which is then input into the hydrological ensemble forecast model for processing to obtain the forecast data for the target basin at the ecological flow assessment section, as shown in Figure 2. Fig.11 Then, according to the ecological flow threshold and forecast data of the ecological flow assessment section, a statistical analysis was performed, and it was calculated that the proportion of forecast data below the ecological flow threshold was 34%, that is, the probability that the ecological flow of the basin to be forecast is lower than the ecological flow threshold is numerically equal to the proportion, as shown in Fig.12 As shown, the early warning information for the basin to be forecasted is: the probability that the ecological flow of the basin to be forecasted is lower than the ecological flow threshold is 34%.

[0103] Implementation of the embodiments of the present application includes the following beneficial effects: The embodiments of the present application provide an ecological flow warning method, system, electronic device and storage medium, which obtains a target ecological flow section and an ecological flow threshold, divides the target watershed according to the target ecological flow section, and obtains a real-time precipitation forecast data set for the target watershed, wherein the real-time precipitation forecast data set includes real-time precipitation forecast data from different data sources; then, the real-time precipitation forecast data set is downscaled, and the mean of the downscaled real-time precipitation forecast data set is calculated to obtain a surface rainfall forecast set; then, calculations are performed based on the surface rainfall forecast set and a hydrological ensemble forecast model to obtain an ecological flow forecast set for the target watershed; finally, a first data set is determined based on the obtained ecological flow forecast set and the ecological flow threshold, a proportional calculation is performed between the first data set and the ecological flow forecast set, and the calculation result is used as an ecological flow warning result for the target watershed. Obtain real-time precipitation forecast data from different data sources and combine different hydrological models to reduce the uncertainty of single data or a single model, thereby improving the accuracy of early warning; downscale the real-time precipitation forecast data obtained from different data sources to improve the resolution of real-time precipitation forecast data, thereby improving the accuracy of ecological flow early warning.

[0104] See also Fig.13 The embodiment of the present application also provides an ecological flow early warning system, which can implement the above ecological flow forecasting method, and the system includes:

[0105] The first module is used to obtain the target ecological flow section and the ecological flow threshold, divide the target watershed according to the target ecological flow section, and obtain the real-time precipitation forecast data set of the target watershed; wherein the target watershed represents the upstream watershed of the target ecological flow section, and the real-time precipitation forecast data set includes real-time precipitation forecast data from several different data sources;

[0106] The second module is used to perform a downscaling operation on the real-time precipitation forecast data set to obtain a downscaled real-time precipitation forecast data set, and calculate the surface rainfall forecast set based on the downscaled real-time precipitation forecast data set;

[0107] The third module is used to determine the ecological flow forecast set according to the surface rainfall forecast set and the hydrological ensemble forecast model, and determine the second data set according to the ecological flow forecast set and the ecological flow threshold;

[0108] The fourth module is used to perform proportional calculation based on the second data set and the ecological flow forecast set as the early warning result.

[0109] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0110] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above ecological flow warning method when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.

[0111] It can be understood that the contents of the above method embodiments are applicable to the present device embodiment, the functions specifically implemented by the present device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0112] See also Fig.14 , Fig.14 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0113] The processor 1401 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0114] The memory 1402 may be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1402 may store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1402, and the processor 1401 calls and executes the ecological flow early warning method of the embodiment of this application;

[0115] Input / output interface 1403, used to implement information input and output;

[0116] The communication interface 1404 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0117] A bus 1405 that transmits information between the various components of the device (e.g., the processor 1401, the memory 1402, the input / output interface 1403, and the communication interface 1404);

[0118] The processor 1401 , the memory 1402 , the input / output interface 1403 and the communication interface 1404 are connected to each other in communication within the device via a bus 1405 .

[0119] Among them, the memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. The memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a remote memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0120] In addition, the embodiment of the present application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer-readable storage medium. The processor of the computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above method. Similarly, the contents in the above method embodiment are all applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.

[0121] An embodiment of the present application further provides a computer-readable storage medium, which stores a program executable by a processor. The program executable by the processor is used to implement the above method when executed by the processor.

[0122] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0123] It is understood that all or some steps and systems in the disclosed method above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0124] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. An ecological flow early warning method, characterized in that: The method comprises: Obtain a target ecological flow section and an ecological flow threshold, divide a target watershed according to the target ecological flow section, and obtain a real-time precipitation forecast data set for the target watershed; wherein the target watershed represents an upstream watershed of the target ecological flow section, and the real-time precipitation forecast data set includes real-time precipitation forecast data from several different data sources; Performing a downscaling operation on the real-time precipitation forecast data set to obtain a downscaled real-time precipitation forecast data set, and performing mean calculation based on the downscaled real-time precipitation forecast data set to obtain a surface rainfall forecast set; Determine an ecological flow forecast set according to the surface rainfall forecast set and the hydrological ensemble forecast model, and determine a first data set according to the ecological flow forecast set and the ecological flow threshold; A proportional calculation is performed based on the first data set and the ecological flow forecast set as an early warning result.

2. The method according to claim 1, characterized in that The downscaling operation is performed on the real-time precipitation forecast data set to obtain a downscaled real-time precipitation forecast data set, specifically comprising: Performing a convolution operation on the real-time precipitation forecast data set to obtain a first data set, and performing parameterization processing on the first data set according to a preset activation function to obtain a second data set; Performing a residual convolution operation on the second data set to obtain a third data set, performing a convolution operation and a batch normalization operation on the third data set to obtain a fourth data set, and performing a residual connection on the second data set and the fourth data set to obtain a fifth data set; An upsampling operation is performed on the fifth data set to obtain a sixth data set, and a convolution operation is performed on the sixth data set to obtain a downscaled real-time precipitation forecast data set.

3. The method according to claim 2, characterized in that The performing a residual convolution operation on the second data set to obtain a third data set specifically includes: Performing a convolution operation and a batch normalization operation on the second data set to obtain a first sub-data set, and performing a parameterization operation on the first sub-data set according to the preset activation function to obtain a second sub-data set; Performing a convolution operation and a batch normalization operation on the second sub-data set to obtain a third sub-data set, and performing an element-wise addition operation on the third sub-data set and the second data set to obtain a third data set.

4. The method according to claim 2, characterized in that: The upsampling operation is performed on the fifth data set to obtain a sixth data set, specifically comprising: Performing a convolution operation on the fifth data set to obtain a fourth sub-data set, and performing data interpolation processing on the fourth sub-data set to obtain a fifth sub-data set; The fifth subset data set is parameterized according to the preset activation function to obtain a sixth data set.

5. The method according to claim 1, characterized in that The determining of the first data set according to the ecological flow forecast set and the ecological flow threshold specifically includes: Determining forecast data according to the ecological flow forecast set, and comparing the forecast data with the ecological flow threshold in sequence; If the forecast data is less than the ecological flow threshold, the forecast data is marked as first data, and a first data set is determined according to the first data.

6. The method according to claim 1, characterized in that The hydrological ensemble forecast model is determined in the following way: Obtaining a sample data set and constructing a number of hydrological forecast models; wherein the sample data set includes measured meteorological data and hydrological data; Dividing the sample data set according to a preset ratio to obtain a training sample data set and a test sample data set, and training a plurality of the hydrological forecast models according to the training sample data sets to obtain a plurality of first models; The calculation accuracy is calculated based on the test sample data set and several of the first models respectively, the target model is determined based on the several calculation accuracies and preset thresholds, and the target model is coupled to obtain a hydrological ensemble forecast model.

7. The method according to claim 6, characterized in that Determining the target model according to the plurality of calculation accuracies and preset thresholds specifically includes: Comparing a plurality of the calculation accuracies with the preset thresholds respectively; If the calculation accuracy is greater than or equal to the preset threshold, taking the first model corresponding to the calculation accuracy as the target model; If the calculation accuracy is less than the preset threshold, the parameters of the first model corresponding to the calculation accuracy are adjusted until the calculation accuracy is greater than or equal to the preset threshold, and the first model corresponding to the calculation accuracy is used as the target model.

8. An ecological flow early warning system, characterized in that: include: The first module is used to obtain a target ecological flow section and an ecological flow threshold, divide a target watershed according to the target ecological flow section, and obtain a real-time precipitation forecast data set for the target watershed; wherein the target watershed represents an upstream watershed of the target ecological flow section, and the real-time precipitation forecast data set includes real-time precipitation forecast data from several different data sources; The second module is used to perform a downscaling operation on the real-time precipitation forecast data set to obtain a downscaled real-time precipitation forecast data set, and calculate a surface rainfall forecast set according to the downscaled real-time precipitation forecast data set; The third module is used to determine the ecological flow forecast set according to the surface rainfall forecast set and the hydrological ensemble forecast model, and determine the second data set according to the ecological flow forecast set and the ecological flow threshold; The fourth module is used to perform a proportional calculation based on the second data set and the ecological flow forecast set as an early warning result.

9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to perform the method according to any one of claims 1 to 7 when executed by the processor.

Citation Information

Patent Citations

  • Flood forecasting method and system based on historical data

    CN104298841A

  • Runoff forecasting improvement method based on meteorological big data

    CN111260111A

  • Ecological flow prediction method and system based on land-sea-gas coupling mode

    CN115688614A

  • Environmental ecological drought evaluation system and its method

    KR102664304B1

  • KR20240009219A