Water conservancy project water regime prediction and dispatching optimization method and system based on machine learning
By constructing a directed graph of watershed reservoirs and a machine learning model, and dynamically adjusting the reservoir scheduling weights, the problems of water transfer and water level differences in reservoir group scheduling were solved, thus improving the accuracy and real-time performance of reservoir group scheduling.
Patent Information
- Application Number
- CN202611365181.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-27
AI Technical Summary
Existing reservoir group scheduling optimization methods are unable to accurately determine the appropriate water transfer level between reservoirs under rapidly evolving hydrological conditions. This can easily lead to excessive upstream water being transported to already pressurized downstream reservoirs, or failure to transfer excess upstream water to downstream areas in a timely manner, thereby reducing the accuracy of reservoir group scheduling.
A machine learning-based approach was adopted to construct a directed graph of reservoirs in the basin by obtaining the predicted inflow increment, inflow and outflow of each reservoir. The expected inflow and water level of each reservoir were calculated, and the scheduling pressure coefficient and backwater risk coefficient were obtained. The scheduling weights were dynamically adjusted to take into account the impact of water transfer and water level differences between reservoirs.
It improved the accuracy of representing the expected inflow status of each reservoir in the basin, reduced the deviation between the prediction results and the actual water conditions, and enhanced the accuracy and real-time performance of reservoir group scheduling.
Smart Images

Figure CN123180589A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of machine learning technology, specifically to a method and system for water situation prediction and scheduling optimization in water conservancy projects based on machine learning. Background Technology
[0002] The operation of reservoir groups in water conservancy projects typically relies on hydrological forecasts to coordinate and control the storage and release processes of various reservoirs within a watershed, balancing multiple objectives such as flood control, water supply security, and ecological needs. Within a watershed, reservoirs form a water transfer network with upstream and downstream relationships through rivers, flood diversion channels, or water diversion projects. The outflow from upstream reservoirs takes a certain propagation time before entering downstream reservoirs and overlaps with precipitation runoff in the downstream reservoir area. Therefore, water transfer between reservoirs exhibits significant time lag and spatial correlation characteristics. In actual operation, it is necessary to dynamically determine the appropriate water transfer level between reservoirs based on predicted future hydrological conditions and the current water storage status of each reservoir. Based on this, real-time outflow commands for each reservoir are generated, and then the overall regulation of the reservoir group is achieved through gate control.
[0003] Existing reservoir group scheduling optimization methods typically first use data-driven models to independently predict the inflow to each reservoir, and then combine the prediction results with multi-objective optimization algorithms to generate a static scheduling scheme. However, these methods do not fully consider the time lag in water transfer between reservoirs and the cumulative effect of predicted inflows from upstream and downstream areas. Under highly dynamic hydrological conditions such as short-duration heavy rainfall, the independent prediction results for each reservoir are insufficient to reflect the actual inflow process after the superposition of upstream inflows and downstream runoff. This leads to significant deviations between the scheduling pressure and water level differences calculated based on the prediction results and the actual situation. This can easily result in excessive upstream water being transported to downstream reservoirs already facing significant inflow pressure, or failure to promptly transfer excess upstream water downstream, thus affecting the real-time performance and accuracy of reservoir group scheduling. Summary of the Invention
[0004] This invention provides a method and system for water situation prediction and scheduling optimization in water conservancy projects based on machine learning, in order to solve the existing problems: under rapidly evolving hydrological conditions, existing reservoir group scheduling optimization methods are difficult to accurately determine the appropriate water transfer level between reservoirs, which can easily lead to excessive upstream water being transported to downstream reservoirs that are already under pressure, or failure to transfer excess upstream water to downstream in a timely manner, thereby reducing the accuracy of reservoir group scheduling.
[0005] The present invention relates to a machine learning-based method and system for water conservancy engineering hydrological prediction and scheduling optimization, which adopts the following technical solution:
[0006] One embodiment of the present invention provides a method for water situation prediction and scheduling optimization in water conservancy projects based on machine learning, the method comprising the following steps:
[0007] Obtain the predicted inflow increment, inflow, and outflow of each reservoir in the basin, and construct a directed graph of the basin's reservoirs;
[0008] Based on the directed diagram of the watershed reservoirs, the inflow and outflow of each reservoir, and the predicted increase in inflow, calculate the expected inflow of each reservoir; based on the expected inflow of each reservoir, obtain the expected water level and expected water storage pressure coefficient of each reservoir.
[0009] Based on the expected inflow and expected water storage pressure coefficient of each reservoir, the scheduling pressure coefficient of each reservoir is obtained; based on the expected water level difference between adjacent reservoirs, the backwater risk coefficient of adjacent reservoirs is obtained; based on the scheduling pressure coefficient of each reservoir and the backwater risk coefficient of adjacent reservoirs, the initial scheduling weight of adjacent reservoirs is obtained.
[0010] Based on the predicted inflow increment, inflow, and directed graph of reservoirs in the basin, the scheduling correction coefficients of adjacent reservoirs are obtained. The initial scheduling weights of adjacent reservoirs are then corrected based on the scheduling correction coefficients of adjacent reservoirs to obtain the corrected scheduling weights of adjacent reservoirs, and the reservoirs in the basin are regulated.
[0011] Preferably, the specific method for obtaining the predicted inflow increment, inflow, and outflow of each reservoir within the basin, and constructing a directed graph of the basin's reservoirs, includes:
[0012] Obtain the meteorological forecast precipitation and soil moisture content of the corresponding areas of each reservoir, and input the meteorological forecast precipitation and soil moisture content of the corresponding areas of each reservoir into the pre-trained hydrological prediction model to obtain the predicted inflow increment of each reservoir at each sampling time in the future;
[0013] By installing flow monitoring equipment at the inlet and outlet control sections of each reservoir, the inflow and outflow of each reservoir at each sampling time are obtained.
[0014] Based on the actual water transfer paths between reservoirs, determine the direction of water flow transfer between adjacent reservoirs and the average propagation time of water flow from the upstream reservoir to the downstream reservoir;
[0015] Using each reservoir as a node, the direction of water flow between adjacent reservoirs as directed edges, and the average propagation time between adjacent reservoirs as the hydraulic propagation delay of the corresponding directed edge, a directed graph of the watershed reservoirs is constructed.
[0016] Preferably, the specific method for calculating the expected inflow of each reservoir based on the directed graph of the watershed reservoirs, the inflow and outflow of each reservoir, and the predicted increase in inflow includes:
[0017] Any reservoir is designated as the target reservoir, and any reservoir in the directed watershed reservoir graph that points to the target reservoir is designated as the upstream reservoir of the target reservoir. Any upstream reservoir of the target reservoir is designated as the control reservoir, and the delay in the hydraulic propagation from the control reservoir to the target reservoir is designated as the delay period.
[0018] A prediction time range is preset. Any sampling time within the prediction time range is recorded as the target sampling time. The sampling time during the delay period before the target sampling time is recorded as the control sampling time. The outflow of the control reservoir at the control sampling time is used as the expected inflow of the control reservoir to the target reservoir at the target sampling time.
[0019] The sum of the expected inflow components of all upstream reservoirs to the target reservoir at the target sampling time, plus the predicted inflow increment of the target reservoir at the target sampling time, is used as the expected inflow of the target reservoir at the target sampling time.
[0020] Preferably, the specific method for obtaining the expected water level and expected water storage pressure coefficient of each reservoir based on the expected inflow of each reservoir includes:
[0021] For the target sampling time, the time interval between the target sampling time and its previous sampling time is multiplied by the expected inflow of the target reservoir at the previous sampling time, and the product is taken as the inflow of the target reservoir at the previous sampling time.
[0022] All sampling times between the current sampling time and the target sampling time are recorded as cumulative sampling times. The sum of the inflow of water into the target reservoir at all cumulative sampling times is taken as the cumulative inflow of water into the target reservoir at the target sampling time.
[0023] The product of the time interval between the current sampling time and the target sampling time and the outflow rate of the target reservoir at the current sampling time is used as the cumulative outflow rate of the target reservoir at the target sampling time.
[0024] The sum of the difference between the cumulative inflow and cumulative outflow of water in the target reservoir at the target sampling time and the water storage of the target reservoir at the current sampling time is used as the expected water storage of the target reservoir at the target sampling time.
[0025] Based on the expected water storage of the target reservoir at the target sampling time, and combined with the pre-constructed reservoir capacity function, the expected water level of the target reservoir at the target sampling time is obtained.
[0026] The ratio of the expected water storage capacity of the target reservoir at the target sampling time to the pre-obtained upper limit of the target reservoir's water storage capacity is used as the expected water storage pressure coefficient of the target reservoir at the target sampling time.
[0027] Preferably, the specific method for obtaining the scheduling pressure coefficient of each reservoir based on the expected inflow and expected water storage pressure coefficient of each reservoir includes:
[0028] The ratio of the expected inflow to the preset water conveyance capacity of the target reservoir at the target sampling time is used as the inflow intensity coefficient of the target reservoir at the target sampling time.
[0029] The product of the inflow intensity coefficient of the target reservoir at the target sampling time and the expected water storage pressure coefficient of the target reservoir at the target sampling time is used as the scheduling pressure coefficient of the target reservoir at the target sampling time.
[0030] Preferably, the specific method for obtaining the backwater risk coefficient of adjacent reservoirs based on the expected water level difference between adjacent reservoirs includes:
[0031] The difference between the expected water level of the control reservoir and the expected water level of the target reservoir at the target sampling time is denoted as the water level difference between the control reservoir and the target reservoir at the target sampling time.
[0032] The ratio of the difference in water level between the control reservoir and the target reservoir at the target sampling time to the pre-constructed difference in water level is recorded as the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time.
[0033] If the unobstructed flow factor of the control reservoir to the target reservoir is greater than 1 at the target sampling time, then the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time is set to 1.
[0034] If the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time is less than or equal to 1, then the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time shall be used as the unobstructed flow coefficient of the control reservoir to the target reservoir at the target sampling time.
[0035] The difference between 1 and the unobstructed flow coefficient of the control reservoir to the target reservoir at the target sampling time is taken as the backwater risk coefficient of the control reservoir to the target reservoir at the target sampling time.
[0036] Preferably, the method for obtaining the initial scheduling weights of adjacent reservoirs based on the scheduling pressure coefficients of each reservoir and the backwater risk coefficients of adjacent reservoirs includes:
[0037] The maximum value between the risk coefficient of the control reservoir to the target reservoir at the target sampling time and the scheduling pressure coefficient of the target reservoir at the target sampling time is denoted as the scheduling obstruction coefficient of the control reservoir to the target reservoir at the target sampling time.
[0038] The reciprocal of the scheduling obstruction coefficient of the control reservoir to the target reservoir at the target sampling time is used as the initial scheduling weight of the control reservoir to the target reservoir at the target sampling time.
[0039] Preferably, the specific method for obtaining the scheduling correction coefficients for adjacent reservoirs based on the predicted inflow increment, inflow, and directed graph of the basin reservoirs for each reservoir is as follows:
[0040] A historical time window is preset with the current sampling time as the endpoint, and any sampling time within the historical time window is recorded as a historical sampling time.
[0041] The sampling time within the time delay period of the historical sampling time is recorded as the reference sampling time;
[0042] The outflow from the control reservoir at the reference sampling time is recorded as the inflow from the control reservoir to the target reservoir at the historical sampling time.
[0043] For the target reservoir, the inflow rate of the target reservoir at the historical sampling time is subtracted from the sum of the inflow rates of all control reservoirs to the target reservoir at the historical sampling time to obtain the actual inflow rate of the target reservoir at the historical sampling time.
[0044] The inflow state coefficient of the target reservoir at the historical sampling time is obtained by comparing the actual inflow of the target reservoir at the historical sampling time with the predicted inflow increment of the target reservoir at the historical sampling time.
[0045] The ratio of the average inflow state coefficient of the control reservoir at all sampling times within the preset historical time window to the average inflow state coefficient of the target reservoir at all sampling times within the preset historical time window is used as the scheduling correction coefficient of the control reservoir for the target reservoir at the current sampling time.
[0046] Preferably, the specific method for correcting the initial scheduling weights of adjacent reservoirs based on their scheduling correction coefficients to obtain corrected scheduling weights for adjacent reservoirs includes:
[0047] The product of the initial scheduling weight of the control reservoir to the target reservoir and the scheduling correction coefficient at the current sampling time is used as the corrected scheduling weight of the control reservoir to the target reservoir at the current sampling time.
[0048] Another embodiment of the present invention provides a water conservancy project hydrological prediction and scheduling optimization system based on machine learning, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of any of the above-described water conservancy project hydrological prediction and scheduling optimization methods based on machine learning.
[0049] The beneficial effects of the technical solution of the present invention are as follows: The present invention obtains the predicted inflow increment, inflow and outflow of each reservoir in the basin, and constructs a directed graph of the basin reservoirs based on the actual hydraulic propagation relationship between the reservoirs to obtain the direction of water transfer and hydraulic propagation delay between the reservoirs; on this basis, the outflow status of the upstream reservoir is matched with the expected inflow status of the downstream reservoir at the corresponding time according to the hydraulic propagation delay, and the expected inflow of each reservoir is obtained by combining the predicted inflow increment of the corresponding area of the reservoir. Thus, the impact of the reservoir's own new inflow and the water transfer of the upstream reservoir on the future inflow status is considered at the same time, thereby improving the accuracy of the representation of the expected inflow status of each reservoir in the basin.
[0050] Furthermore, the expected water level and expected storage pressure coefficient are obtained based on the expected inflow of each reservoir. The scheduling pressure coefficient is obtained by combining the expected inflow and expected storage pressure coefficient. At the same time, the backwater risk coefficient is obtained based on the expected water level difference between adjacent reservoirs. This is used to quantify the future storage pressure of each reservoir and the risk of water transfer between adjacent reservoirs. Meanwhile, the scheduling obstruction coefficient is determined by the scheduling pressure coefficient and the backwater risk coefficient, and the initial scheduling weight is obtained. This ensures that the scheduling relationship between each reservoir is affected by both the reservoir's own storage status and the water level relationship between adjacent reservoirs, thereby improving the matching degree between the initial scheduling weight and the expected future water conditions.
[0051] Furthermore, based on the inflow and outflow of each reservoir within a historical time window, as well as the water propagation delay, the amount of water transferred from upstream reservoirs within the inflow is differentiated to obtain the inflow status of the corresponding reservoir area. By comparing the future inflow status with the predicted inflow increment, the difference between the historical and predicted inflow status is obtained. A scheduling correction coefficient is obtained based on the differences in inflow status within the historical time window, and this coefficient is used to correct the initial scheduling weights. This ensures that the current scheduling weights reflect future expected water conditions while incorporating the corrective effect of historical inflow status on the prediction results. This reduces the impact of the deviation between the prediction results and the actual water conditions on scheduling decisions, thereby regulating reservoirs within the basin. The scheduling weights of each reservoir within the basin can be dynamically adjusted according to changes in water conditions, thus improving the accuracy of coordinated scheduling of the basin's reservoir group. Attached Figure Description
[0052] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0053] Figure 1This is a flowchart illustrating the steps of the machine learning-based water situation prediction and scheduling optimization method for water conservancy projects according to the present invention. Detailed Implementation
[0054] To further illustrate the technical means and effects adopted by the present invention to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effects of the machine learning-based water situation prediction and scheduling optimization method and system for water conservancy projects proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics in one or more embodiments can be combined in any suitable form.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0056] The following description, in conjunction with the accompanying drawings, details the specific scheme of the machine learning-based water situation prediction and scheduling optimization method and system for water conservancy projects provided by this invention.
[0057] Please see Figure 1 The diagram illustrates a flowchart of a machine learning-based method for water situation prediction and scheduling optimization in water conservancy projects, according to an embodiment of the present invention. The method includes the following steps:
[0058] Step S001: Obtain the predicted inflow increment, inflow, and outflow of each reservoir in the basin, and construct a directed graph of the basin reservoirs.
[0059] It should be noted that, since reservoirs within a basin are not independent of each other, the outflow from upstream reservoirs propagates downstream through the river channel and is superimposed on the downstream precipitation runoff. If scheduling is based solely on independent forecasts for each reservoir, it is difficult to reflect the actual water transfer process between reservoirs. Furthermore, forecast data can only reflect future trends and cannot reflect the current storage and release status of the reservoirs. Therefore, this embodiment simultaneously acquires the predicted inflow increment, measured inflow, and outflow from each reservoir, and constructs a directed graph of basin reservoirs based on the actual river network and water conservancy project connections. The upstream and downstream topological relationships between reservoirs and the average propagation time are used as directed edge attributes, thereby unifying future changes, current states, and water conservancy connections between reservoirs within the same framework, providing a foundation for subsequent dynamic analysis.
[0060] Specifically, the forecast precipitation and soil moisture content of the corresponding areas of each reservoir are obtained, and the forecast precipitation and soil moisture content of the corresponding areas of each reservoir are input into the pre-trained hydrological prediction model to obtain the predicted inflow increment of each reservoir at each sampling time in the future.
[0061] The pre-trained hydrological prediction model is constructed using a data-driven approach. The training data consists of historical meteorological forecast precipitation, soil moisture content, and inflow increments of the reservoirs in the corresponding areas of each reservoir. The meteorological forecast precipitation and soil moisture content are used as inputs, and the inflow increments of the reservoirs due to precipitation runoff in the corresponding time period are used as labels. The hydrological prediction model is trained using a machine learning regression algorithm (a random forest regression model can be used for training, but since it is a well-known existing technology, it will not be described in detail in this embodiment). The predicted inflow increment represents the additional inflow to the target reservoir due to precipitation runoff in the corresponding area at a certain future sampling time, excluding the inflow transferred from upstream reservoirs.
[0062] Furthermore, by installing flow monitoring equipment at the inlet and outlet control sections of each reservoir, the inflow and outflow of each reservoir at each sampling time are obtained. The time interval between adjacent sampling times can be set according to the actual situation. This embodiment does not make a strict requirement. In this embodiment, a 10-minute sampling time interval is used as an example for description.
[0063] Based on the actual water transfer paths between reservoirs, determine the direction of water flow transfer between adjacent reservoirs and the average propagation time of water flow from the upstream reservoir to the downstream reservoir.
[0064] Using each reservoir as a node, the direction of water flow between adjacent reservoirs as directed edges, and the average propagation time between adjacent reservoirs as the hydraulic propagation delay of the corresponding directed edge, a directed graph of the watershed reservoirs is constructed.
[0065] It should be noted that the corresponding area for each reservoir refers to the upstream catchment area that has a major influence on the inflow into that reservoir. Since precipitation does not directly form all the inflow into the reservoir, but rather needs to go through processes such as surface runoff, slope runoff, and river runoff before entering the reservoir, the catchment area of the watershed can be divided according to the catchment area of each reservoir, topographic elevation, river network distribution, and surface runoff convergence relationship. The area that can converge into the corresponding reservoir through surface runoff and river runoff is determined as the corresponding area of that reservoir.
[0066] Forecasted precipitation refers to the precipitation prediction data provided by a meteorological forecasting system for the corresponding area of each reservoir within a preset future time range. Specifically, based on the spatial extent of the area corresponding to each reservoir, the meteorological forecast grid data is spatially matched, and the regional precipitation is obtained according to the spatial coverage relationship between the grid and the corresponding area. When the area corresponding to a reservoir covers multiple meteorological forecast grids, the forecasted precipitation of each grid can be weighted and calculated based on the coverage area of each grid within the corresponding area to obtain the forecasted precipitation for the area corresponding to that reservoir. By obtaining precipitation forecast data spatially corresponding to the reservoir's catchment area, hydrological prediction models can use future precipitation changes to reflect potential subsequent changes in water inflow to the corresponding area.
[0067] Soil moisture content refers to the soil moisture state in the corresponding area of each reservoir. Specifically, it can be obtained through soil moisture monitoring stations. Regional statistics on soil moisture content are conducted according to the spatial range of each reservoir's catchment area to obtain the soil moisture content corresponding to that reservoir's catchment area. Soil moisture content reflects the water storage state of the soil in the corresponding area before precipitation. When soil moisture content is high, the ability of subsequent precipitation to form surface runoff is usually different from that when soil moisture content is low. Therefore, inputting soil moisture content along with meteorological forecast precipitation into a hydrological prediction model allows the model to simultaneously consider future precipitation input and the underlying surface water storage state before precipitation occurs.
[0068] The predicted inflow increment refers to the increase in inflow caused by future changes in the hydrological conditions of the downstream reservoir area, assuming the water volume transferred from the upstream reservoir to the downstream reservoir. In other words, the predicted inflow increment represents the increase in water flow into the reservoir's catchment area due to future precipitation and changes in soil moisture content.
[0069] It should be further explained that, since reservoirs are connected by water transfer paths via rivers, flood diversion channels, or water diversion projects, the outflow from upstream reservoirs takes a certain amount of time to reach downstream reservoirs. Therefore, when constructing the directed graph of the watershed reservoirs, the direction of water transfer is determined based on the natural direction of water flow from upstream to downstream reservoirs in the actual river network. The average propagation time between adjacent reservoirs is obtained through lag correlation analysis of historical synchronous flow sequences. Specifically, for the outflow sequence of the upstream reservoir and the inflow sequence of the downstream reservoir, a preset lag time is traversed, and the lag time at which the correlation coefficient reaches its maximum value is taken as the average propagation time of water flow from the upstream reservoir to the downstream reservoir. This structures the water transfer relationship between reservoirs into directed edges with propagation delay attributes, providing a topological and temporal basis for subsequent scheduling analysis.
[0070] Step S002: Based on the directed diagram of the watershed reservoirs, the inflow and outflow of each reservoir, and the predicted increase in inflow, calculate the expected inflow of each reservoir; based on the expected inflow of each reservoir, obtain the expected water level and expected water storage pressure coefficient of each reservoir.
[0071] It should be noted that, since the outflow from the upstream reservoir takes a certain propagation time to reach the downstream reservoir, and may overlap with the predicted inflow increase due to precipitation, evaluating solely based on the independent predicted inflow increase of the downstream reservoir could lead to deviations in subsequent scheduling decisions. Therefore, this embodiment shifts the outflow from the upstream reservoir to the corresponding sampling time according to the corresponding hydraulic propagation delay, and adds it to the predicted inflow increase of the reservoir itself to obtain the expected inflow of the reservoir, thus accurately reflecting the total amount of water the reservoir may receive in the future. Furthermore, knowing only the magnitude of the expected inflow is insufficient to directly determine whether the reservoir will face the risk of exceeding its limits due to increased inflow. Also, different reservoirs have different water storage states and remaining capacity, and the same increase in inflow has a greater impact on reservoirs with near-saturated storage capacity. Simultaneously, the expected water level is the foundational data for subsequent calculations of upstream and downstream water level differences and assessment of the backwater effect. Therefore, in this embodiment, after obtaining the expected inflow, the expected water level and expected water pressure coefficient are obtained by recursively calculating the water balance and combining the reservoir's water storage and outflow. This transforms future changes in inflow into the reservoir's water storage status and pressure level, providing a basis for subsequently quantifying the reservoir's own scheduling pressure and the backwater risk between adjacent reservoirs.
[0072] Specifically, any reservoir is designated as the target reservoir, the reservoirs pointing towards the target reservoir in the directed watershed reservoir graph are designated as upstream reservoirs of the target reservoir, any upstream reservoir of the target reservoir is designated as a control reservoir, and the delay in the hydraulic propagation from the control reservoir to the target reservoir is designated as the delay period.
[0073] A prediction time range is preset. Any sampling time within the prediction time range is recorded as the target sampling time. The sampling time after the target sampling time is shifted forward by a delay period is recorded as the control sampling time. The outflow of the control reservoir at the control sampling time is used as the expected inflow of the control reservoir to the target reservoir at the target sampling time. The specific value of the prediction time range can be set according to the actual situation. This embodiment does not make a hard requirement. In this embodiment, the prediction time range is described as 24 hours after the current sampling time.
[0074] The sum of the expected inflow components of all upstream reservoirs to the target reservoir at the target sampling time, plus the predicted inflow increment of the target reservoir at the target sampling time, is used as the expected inflow of the target reservoir at the target sampling time.
[0075] It should be noted that, since the reservoirs within the basin are not independent of each other, the outflow from the upstream reservoir needs to be transmitted to the downstream reservoir along the actual hydraulic propagation path, and only after a certain period of time can it form part of the inflow into the downstream reservoir. Therefore, the expected inflow of the target reservoir at a future time is not only related to the new inflow generated in the corresponding area of the target reservoir, but also to the outflow of its upstream reservoir at an earlier time. Therefore, in this embodiment, the reservoirs pointing to the target reservoir in the directed graph of the basin reservoirs are identified as upstream reservoirs of the target reservoir, and any upstream reservoir is used as a control reservoir. The hydraulic propagation delay between the control reservoir and the target reservoir is used to determine the delay period. Furthermore, since the upstream inflow received at the target sampling time corresponds to the outflow of the upstream reservoir before the corresponding delay period, the target sampling time is shifted forward by the corresponding delay period to obtain the control sampling time, and the outflow of the control reservoir at the control sampling time is used as the expected inflow component of the control reservoir to the target reservoir at the target sampling time.
[0076] It should be further explained that, since the target reservoir may simultaneously receive water from multiple upstream reservoirs, using only the expected inflow component of any single control reservoir cannot fully characterize the upstream inflow to the target reservoir at future times. Furthermore, changes in precipitation and soil moisture content in the region corresponding to the target reservoir will generate new inflow, which does not originate from water transfer from upstream reservoirs. Therefore, this embodiment accumulates the expected inflow components corresponding to all upstream reservoirs at the target sampling time and adds them to the predicted inflow increment of the target reservoir. This simultaneously considers the impact of water transfer from upstream reservoirs and the increased inflow to the region corresponding to the target reservoir on the future inflow status of the target reservoir, thereby obtaining the expected inflow of the target reservoir at the target sampling time.
[0077] Specifically, for the target sampling time, the product of the time interval between the target sampling time and its previous sampling time and the expected inflow of the target reservoir at the previous sampling time is used as the inflow of the target reservoir at the previous sampling time (if the previous sampling time is the current sampling time, the product of the time interval between the target sampling time and the current sampling time and the inflow of the current sampling time is used as the inflow of the target reservoir at the previous sampling time).
[0078] All sampling times between the current sampling time and the target sampling time are recorded as cumulative sampling times. The sum of the inflow of water into the target reservoir at all cumulative sampling times is taken as the cumulative inflow of water into the target reservoir at the target sampling time.
[0079] The cumulative outflow of water from the target reservoir at the target sampling time is obtained by multiplying the time interval between the current sampling time and the target sampling time by the outflow rate of the target reservoir at the current sampling time.
[0080] The sum of the difference between the cumulative inflow and cumulative outflow of water in the target reservoir at the target sampling time and the water storage of the target reservoir at the current sampling time is used as the expected water storage of the target reservoir at the target sampling time.
[0081] Based on the expected water storage of the target reservoir at the target sampling time, and combined with the pre-constructed reservoir capacity function, the expected water level of the target reservoir at the target sampling time is obtained.
[0082] The ratio of the expected water storage capacity of the target reservoir at the target sampling time to the pre-obtained upper limit of the target reservoir's water storage capacity is used as the expected water storage pressure coefficient of the target reservoir at the target sampling time.
[0083] It should be noted that both the expected inflow and outflow are changes in water volume per unit time. The expected inflow at the target sampling time alone cannot directly represent the water storage of the target reservoir at the target sampling time. Therefore, this embodiment converts the expected inflow at each sampling time into the inflow within the corresponding time period by multiplying the time interval between adjacent sampling times with the expected inflow of the target reservoir at the previous sampling time. This allows the accumulation of inflow into the target reservoir at the target sampling time to be obtained. Furthermore, the time interval between the current sampling time and the target sampling time is multiplied by the outflow rate of the target reservoir at the current sampling time to obtain the cumulative outflow rate within the corresponding prediction period. (Since the outflow rates of each reservoir after the current sampling time are not yet available, this embodiment assumes that the outflow rate of the target reservoir remains unchanged from the current sampling time to the target sampling time, and the outflow rate at the current sampling time is used to approximate the average outflow rate within the prediction period. Therefore, multiplying the time interval by the outflow rate yields the cumulative outflow rate within the prediction period, thus allowing for a reasonable estimate of the outflow rate within the prediction period under the premise of data availability.) The difference between the cumulative inflow rate and the cumulative outflow rate is added to the water storage of the target reservoir at the current sampling time to obtain the expected water storage of the target reservoir at the target sampling time.
[0084] It should be further explained that, since the relationship between reservoir storage capacity and water level is not a simple linear one, the water level corresponding to different storage capacities needs to be determined in conjunction with the actual reservoir capacity characteristics. Therefore, this embodiment obtains the reservoir's design capacity curve or measured topographic data, and constructs a continuous capacity function by fitting the discrete relationship between water level and storage capacity. Based on the expected storage capacity of the target reservoir at the target sampling time, the corresponding expected water level is obtained, thus converting the future expected storage state of the target reservoir into an expected water level that can directly characterize the reservoir's water surface height. Furthermore, since different reservoirs have different storage capacities, simply comparing the expected storage capacity of different reservoirs is insufficient to accurately reflect the storage pressure borne by each reservoir relative to its own storage capacity. Therefore, this embodiment calculates the ratio of the expected storage capacity of the target reservoir to its upper storage limit to normalize the expected storage state of the target reservoir, obtaining the expected storage pressure coefficient. This provides a quantitative basis for subsequently determining the scheduling pressure based on the expected inflow state of the target reservoir.
[0085] Step S003: Obtain the scheduling pressure coefficient of each reservoir based on the expected inflow and expected water storage pressure coefficient; obtain the backwater risk coefficient of adjacent reservoirs based on the expected water level difference; obtain the initial scheduling weight of adjacent reservoirs based on the scheduling pressure coefficient of each reservoir and the backwater risk coefficient of adjacent reservoirs.
[0086] It should be noted that the scheduling pressure of a reservoir depends not only on the magnitude of its future inflow but also on its own storage capacity. Using only the expected inflow as a single indicator makes it difficult to distinguish the true urgency of a reservoir under different water storage conditions. Furthermore, the water transfer between adjacent reservoirs is also affected by the backwater effect of downstream water levels. When the expected water level of a downstream reservoir is high, its water conveyance capacity will be suppressed even if the upstream reservoir has a discharge demand. Therefore, this embodiment obtains the reservoir's scheduling pressure coefficient by combining the expected inflow and expected storage pressure coefficient, thus comprehensively reflecting the scheduling pressure of the reservoir under the constraints of inflow intensity and storage capacity. Simultaneously, by using the expected water level difference between adjacent reservoirs, the backwater risk coefficient of adjacent reservoirs is obtained, thereby quantifying the degree of water conveyance obstruction caused by high downstream water levels between adjacent reservoirs. The scheduling pressure coefficient and the backwater risk coefficient represent two different dimensions of risk: "whether the reservoir itself needs to suppress water inflow" and "whether water transfer between upstream and downstream is obstructed." If either risk is high, water transfer should be restricted. Therefore, this embodiment uses this as the basis to obtain the initial scheduling weight, thereby avoiding the reinforcement of water transfer for high-risk paths.
[0087] Specifically, the ratio of the expected inflow to the preset water conveyance capacity of the target reservoir at the target sampling time is used as the inflow intensity coefficient of the target reservoir at the target sampling time.
[0088] The product of the inflow intensity coefficient of the target reservoir at the target sampling time and the expected water storage pressure coefficient of the target reservoir at the target sampling time is used as the scheduling pressure coefficient of the target reservoir at the target sampling time.
[0089] It should be noted that, due to differences in the water conveyance capacity of rivers between different reservoirs, the same expected inflow may not pose a significant pressure on rivers with a larger water conveyance capacity, but may approach or exceed the safe discharge capacity of rivers with a smaller water conveyance capacity. Therefore, the absolute value of the inflow alone cannot be used to horizontally compare the degree of water impact faced by different reservoirs. Thus, this embodiment compares the expected inflow of the target reservoir at the target sampling time with the preset water conveyance capacity to obtain an inflow intensity coefficient. This converts the inflow into a relative intensity index relative to the river's water conveyance capacity, making the inflow pressure between different reservoirs comparable. The preset water conveyance capacity refers to the maximum flow allowed to pass through the river between the control reservoir and the target reservoir under flood control safety standards. Furthermore, since the reservoir's scheduling needs depend not only on the inflow intensity but also on the reservoir's own water storage status, reservoirs with higher water storage pressure, even with the same inflow intensity, have more limited available storage space and therefore face greater scheduling pressure. This embodiment multiplies the inflow intensity coefficient with the expected water storage pressure coefficient to obtain the scheduling pressure coefficient of the target reservoir. This comprehensively reflects the scheduling urgency under the combined effect of inflow intensity and limited storage space, providing a quantitative basis for determining the initial scheduling weight of the directed edge in conjunction with the backwater risk coefficient.
[0090] Specifically, the difference between the expected water level of the control reservoir and the expected water level of the target reservoir at the target sampling time is recorded as the water level difference between the control reservoir and the target reservoir at the target sampling time.
[0091] The ratio of the difference in water level between the control reservoir and the target reservoir at the target sampling time to the pre-constructed baseline water level difference is denoted as the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time.
[0092] If the unobstructed flow factor of the control reservoir to the target reservoir is greater than 1 at the target sampling time, then the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time is set to 1.
[0093] If the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time is less than or equal to 1, then the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time shall be used as the unobstructed flow coefficient of the control reservoir to the target reservoir at the target sampling time.
[0094] The difference between 1 and the unobstructed flow coefficient of the control reservoir to the target reservoir at the target sampling time is taken as the backwater risk coefficient of the control reservoir to the target reservoir at the target sampling time.
[0095] It should be noted that when water is transferred from an upstream reservoir to a downstream reservoir, the higher the water level in the downstream reservoir, the stronger the backwater effect on the upstream water, and the more the actual transportable flow is suppressed. The water level difference between the upstream and downstream reservoirs directly reflects this hydraulic driving state. Therefore, this embodiment obtains the water level difference between the control and target reservoirs by subtracting the expected water level of the target reservoir from the expected water level of the control reservoir at the target sampling time. This quantifies the strength of the hydraulic driving force between the control and target reservoirs; that is, the smaller the water level difference between the control and target reservoirs, the stronger the backwater effect and the more severe the water transport obstruction. Furthermore, since the water level differences in different river sections themselves vary in magnitude, this embodiment normalizes the water level difference by dividing it by a pre-constructed baseline water level difference to obtain the unobstructed flow factor. The pre-constructed benchmark water level difference is the average water level difference between the control reservoir and the target reservoir over the past week. The smaller the actual water level difference is relative to the benchmark water level difference, the higher the downstream water level is and the more obvious the backwater effect. Conversely, the larger the actual water level difference is relative to the benchmark water level difference, the closer the water flow is to or better than the normal discharge conditions.
[0096] It should be further explained that, since a smooth flow factor greater than 1 indicates that the current water level difference is better than normal, and backwater no longer poses an additional restriction on water conveyance, this embodiment uniformly sets the smooth flow factor greater than 1 to a smooth flow coefficient of 1; when the smooth flow factor is less than or equal to 1, its original value is retained as the smooth flow coefficient. Finally, since a larger smooth flow coefficient indicates better water conveyance conditions, and this embodiment subsequently requires an obstruction indicator consistent with the direction of the scheduling pressure, the smooth flow coefficient is subtracted from 1 to obtain the backwater risk coefficient. This reverses the "smoother water conveyance" to "greater backwater risk, more obstructed water conveyance," allowing it to be used together with the scheduling pressure coefficient to determine the initial scheduling weight.
[0097] Specifically, the maximum value between the backwater risk coefficient of the control reservoir to the target reservoir at the target sampling time and the scheduling pressure coefficient of the target reservoir at the target sampling time is recorded as the scheduling obstacle coefficient of the control reservoir to the target reservoir at the target sampling time (if both the backwater risk coefficient of the control reservoir to the target reservoir and the scheduling pressure coefficient of the target reservoir at the target sampling time are 0, then the scheduling obstacle coefficient of the control reservoir to the target reservoir at the target sampling time is set to 0.01).
[0098] The reciprocal of the scheduling obstruction coefficient of the control reservoir to the target reservoir at the target sampling time is used as the initial scheduling weight of the control reservoir to the target reservoir at the target sampling time.
[0099] It should be noted that when the control reservoir transfers water to the target reservoir, the expected water level of the target reservoir will affect the smooth discharge of upstream water, and the expected storage pressure of the target reservoir itself will also affect its ability to continue receiving water. Therefore, considering only the backwater risk between the control and target reservoirs, or only the scheduling pressure of the target reservoir itself, is insufficient to fully reflect the degree of scheduling obstruction encountered by the control reservoir when transferring water to the target reservoir. Therefore, this embodiment compares the backwater risk coefficient of the control reservoir to the target reservoir and the scheduling pressure coefficient of the target reservoir at the target sampling time, and selects the larger value of the two as the scheduling obstruction coefficient. This allows the scheduling obstruction coefficient to characterize the factors that have a greater impact on the current water scheduling, namely, the backwater risk and the target reservoir's own storage pressure.
[0100] Furthermore, since a larger scheduling obstacle coefficient indicates a stronger restriction on the current water allocation, the corresponding scheduling priority should be lower; while a smaller scheduling obstacle coefficient indicates a weaker restriction on the current water allocation, the corresponding scheduling priority should be higher. Therefore, this embodiment converts the scheduling obstacle degree into an initial scheduling weight that is positively correlated with the scheduling priority by performing a reciprocal operation on the scheduling obstacle coefficient. This provides a basis for subsequently correcting the scheduling weight by combining the predicted inflow increment and historical actual water conditions.
[0101] Step S004: Based on the predicted inflow increment, inflow, and directed graph of reservoirs in the basin, obtain the scheduling correction coefficients of adjacent reservoirs; adjust the initial scheduling weights of adjacent reservoirs according to the scheduling correction coefficients of adjacent reservoirs, obtain the adjusted scheduling weights of adjacent reservoirs, and regulate the reservoirs in the basin.
[0102] It should be noted that the initial scheduling weights are calculated based on predicted data. However, under highly dynamic hydrological evolution conditions, actual precipitation intensity and watershed runoff processes often differ from the predicted results, causing the actual inflow to deviate from the prediction. If scheduling is still carried out based on the initial scheduling weights, it may lead to excessive upstream water being transported to downstream reservoirs that have exceeded expectations, or failure to transfer excess upstream water downstream in a timely manner. Therefore, this embodiment obtains scheduling correction coefficients that reflect the true degree of deviation by combining measured inflow, outflow, and predicted inflow increment within a historical time window with a directed graph of watershed reservoirs. Then, the initial scheduling weights of adjacent reservoirs at the current sampling time are corrected based on the scheduling correction coefficients to obtain corrected scheduling weights. This allows the final scheduling weights to dynamically correct prediction deviations based on actual hydrological conditions, improving the reliability of reservoir group scheduling under dynamic hydrological conditions.
[0103] Specifically, a historical time window is preset with the current sampling time as the endpoint. Any sampling time within the historical time window is recorded as a historical sampling time. The specific length of the historical time window can be set according to the actual situation. This embodiment does not make a hard requirement. In this embodiment, a historical time window of 6 hours is used as an example for description.
[0104] The sampling time within the time delay period of the historical sampling time is recorded as the reference sampling time.
[0105] The outflow from the control reservoir at the reference sampling time is recorded as the inflow from the control reservoir to the target reservoir at the historical sampling time.
[0106] For the target reservoir, the actual inflow to the target reservoir at the historical sampling time is obtained by subtracting the sum of the inflow transfer from all control reservoirs to the target reservoir at the historical sampling time from the inflow to the target reservoir at the historical sampling time.
[0107] The inflow state coefficient of the target reservoir at the historical sampling time is obtained by comparing the actual inflow of the target reservoir at the historical sampling time with the predicted inflow increment of the target reservoir at the historical sampling time.
[0108] The ratio of the average inflow state coefficient of the control reservoir at all sampling times within the preset historical time window to the average inflow state coefficient of the target reservoir at all sampling times within the preset historical time window is used as the scheduling correction coefficient of the control reservoir for the target reservoir at the current sampling time.
[0109] It should be noted that the initial scheduling weights are based on predicted hydrological data. The predicted inflow increment reflects the increased water flow in the target reservoir's own area due to precipitation runoff, without considering the water volume transferred from upstream reservoirs. However, in actual monitoring, the inflow to the target reservoir includes both the water volume transferred from upstream reservoirs via the river channel and the water volume generated by runoff within the reservoir's own area. Directly comparing the inflow with the predicted inflow increment makes it impossible to distinguish whether the prediction deviation originates from changes in upstream water transfer or changes in the reservoir's own runoff, which can easily lead to incorrect correction directions. Therefore, in this embodiment, a historical time window is preset with the current sampling time as the endpoint. Historical sampling times are selected within the window, and the outflow of each upstream reservoir at the corresponding reference sampling time is used as the inflow to the target reservoir at the historical sampling time by utilizing the hydraulic propagation delay. Then, the inflow to the target reservoir is subtracted from the inflow of the target reservoir at the historical sampling time to obtain the actual inflow to the target reservoir area. In this way, the upstream water transfer volume is separated from the reservoir's own runoff volume, so that the actual inflow volume and the predicted inflow increment are consistent in terms of physical caliber.
[0110] It should be further explained that, since both the actual inflow and the predicted inflow increment are water volumes generated within the target reservoir's own regional runoff, their ratio directly reflects the degree of deviation between the actual and predicted inflow. Therefore, this embodiment uses this ratio as the inflow state coefficient, with a value greater than 1 indicating an excessive inflow and a value less than 1 indicating an insufficient inflow. Furthermore, since the inflow state coefficient at a single sampling moment is easily affected by instantaneous fluctuations, this embodiment takes the average of the inflow state coefficients at each sampling moment within a preset historical time window to smooth the impact of short-term disturbances on deviation judgment. Also, since the difference in inflow state between the control reservoir and the target reservoir reflects the relative trend of inflow state changes between them, when the average inflow state coefficient of the control reservoir is larger than that of the target reservoir, the scheduling correction coefficient increases accordingly; when the average inflow state coefficient of the control reservoir is smaller than that of the target reservoir, the scheduling correction coefficient decreases accordingly. This allows the scheduling correction coefficient to directionally correct the initial scheduling weights based on the differences in inflow state between adjacent reservoirs.
[0111] Specifically, the product of the initial scheduling weight of the control reservoir to the target reservoir and the scheduling correction coefficient at the current sampling time is used as the corrected scheduling weight of the control reservoir to the target reservoir at the current sampling time.
[0112] It should be noted that since the initial scheduling weight is determined based on the expected inflow status, expected water storage status, and backwater risk between adjacent reservoirs at the target sampling time, it corresponds to the expected scheduling status at the future target sampling time. The scheduling correction coefficient is determined based on the historical actual inflow status before the current sampling time. Therefore, after obtaining the initial scheduling weight for the future target sampling time at the current sampling time, the initial scheduling weight is not directly used as the final scheduling basis for the target sampling time. Instead, as time progresses and the target sampling time arrives, the initial scheduling weight for the target sampling time is corrected using the scheduling correction coefficient of the reference reservoir for the target reservoir at the current sampling time. This allows the initial scheduling weight formed at future times to be adjusted in conjunction with the actual hydrological information available up to that time.
[0113] It should be further explained that, as the predicted future water conditions gradually transform into the current actual water conditions over time, deviations may occur between the initial scheduling weights and the actual water conditions. Therefore, this embodiment obtains the corrected scheduling weights of the control reservoir for the target reservoir at the current sampling time by multiplying the initial scheduling weights of the control reservoir for the target reservoir at the current sampling time with the scheduling correction coefficient of the control reservoir for the target reservoir at the current sampling time. In this way, while retaining the expected water conditions, scheduling pressure, and backwater risk represented by the initial scheduling weights, the historical actual inflow status up to the current sampling time is introduced to correct the scheduling weights, so that the scheduling weights used in actual regulation are more in line with the actual operating status of the reservoir at the current time.
[0114] Furthermore, the corrected scheduling weights between adjacent reservoirs at the current sampling time are input into the pre-trained scheduling optimization model, and the scheduling optimization model outputs the real-time outflow setpoints for each reservoir.
[0115] Based on the real-time outflow set value of each reservoir, the data is sent to the gate control devices of each reservoir through the remote terminal unit in the reservoir dispatch automation system.
[0116] The gate control device adjusts the gate opening through proportional-integral regulation based on the difference between the received real-time outbound flow setpoint and the current measured outbound flow, so that the actual outbound flow gradually approaches the real-time outbound flow setpoint.
[0117] Meanwhile, each flow monitoring device continuously collects the actual inflow and outflow of each reservoir and transmits the data back to the dispatch center in real time through the data transmission network, providing the latest status information for the calculation of the next round of dispatch correction coefficients and the input update of the dispatch optimization model.
[0118] As time progresses, the calculation and control process of the above-mentioned revised scheduling weights is repeated to achieve dynamic closed-loop optimization of reservoir group scheduling.
[0119] It should be noted that the corrected scheduling weights reflect the appropriate water transfer level between adjacent reservoirs after the deviation between the current actual water conditions and the predicted water conditions has been corrected. The reservoirs in the basin are interconnected through upstream and downstream water transfer relationships. If traditional tabular or sequential models are used to process them directly, it is difficult to utilize both the upstream and downstream relationship structure between reservoirs and the scheduling weight information between adjacent reservoirs at the same time. Therefore, this embodiment uses a pre-trained scheduling optimization model to process the water transfer relationship between reservoirs in the basin and the corrected scheduling weights as a whole, thereby outputting the real-time outflow setpoint of each reservoir, so that the scheduling decision can directly affect the water transfer process between reservoirs.
[0120] The scheduling optimization model can employ a graph neural network model (specifically, a graph convolutional network model can be used; however, since graph convolutional networks are a well-known existing technology, they will not be elaborated upon in this embodiment). The inputs are the node features of each reservoir in the basin, the correlation features between adjacent reservoirs, and the corrected scheduling weights between adjacent reservoirs. The output is the real-time outflow setpoint for each reservoir. During training, training samples are constructed using scheduling data recorded during the historical normal operation of each reservoir in the basin. The historical actual outflow is used as the label, and the model is trained through supervised learning. This allows the model to learn how to reasonably allocate the outflow of each reservoir under different corrected scheduling weights, thereby achieving coordinated scheduling between upstream and downstream reservoirs.
[0121] In this embodiment, the real-time outflow setpoint represents the target outflow value that each reservoir is expected to achieve at the current sampling time. After the setpoint is sent to the gate control device of the corresponding reservoir via the remote terminal unit, the gate control device uses the difference between the setpoint and the measured outflow as the control input and continuously adjusts the gate opening using a proportional-integral regulation method, so that the actual outflow gradually approaches the setpoint, thereby achieving precise control of the reservoir outflow. Simultaneously, since the actual inflow and outflow data are transmitted back in real time and used to calculate the correction coefficient for the next round of scheduling, the scheduling process can be continuously updated according to the latest hydrological changes, avoiding a decline in scheduling effectiveness due to the accumulation of prediction deviations.
[0122] It should be further explained that, in order to avoid the denominator being zero during the fraction calculation process in this embodiment, when the denominator is 0, the denominator is set to 0.01 for fraction calculation. 0.01 is only an exemplary very small positive value. Those skilled in the art can set it according to the actual data volume and engineering experience to avoid division by zero anomalies without significantly affecting the calculation results.
[0123] Another embodiment of the present invention provides a water conservancy project hydrological prediction and scheduling optimization system based on machine learning, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the water conservancy project hydrological prediction and scheduling optimization method based on machine learning in steps S001 to S004.
[0124] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for water conservancy project hydrological prediction and scheduling optimization based on machine learning, characterized in that, The method includes the following steps: Obtain the predicted inflow increment, inflow, and outflow of each reservoir in the basin, and construct a directed graph of the basin's reservoirs; Based on the directed diagram of the watershed reservoirs, the inflow and outflow of each reservoir, and the predicted increase in inflow, calculate the expected inflow of each reservoir; based on the expected inflow of each reservoir, obtain the expected water level and expected water storage pressure coefficient of each reservoir. Based on the expected inflow and expected water storage pressure coefficient of each reservoir, the scheduling pressure coefficient of each reservoir is obtained; based on the expected water level difference between adjacent reservoirs, the backwater risk coefficient of adjacent reservoirs is obtained; based on the scheduling pressure coefficient of each reservoir and the backwater risk coefficient of adjacent reservoirs, the initial scheduling weight of adjacent reservoirs is obtained. Based on the predicted inflow increment, inflow, and directed graph of reservoirs in the basin, the scheduling correction coefficients of adjacent reservoirs are obtained. The initial scheduling weights of adjacent reservoirs are then corrected based on the scheduling correction coefficients of adjacent reservoirs to obtain the corrected scheduling weights of adjacent reservoirs, and the reservoirs in the basin are regulated.
2. The water conservancy project hydrological prediction and scheduling optimization method based on machine learning according to claim 1, characterized in that, The specific methods for obtaining the predicted inflow increment, inflow, and outflow of each reservoir within the basin, and constructing a directed graph of the basin's reservoirs, include: Obtain the meteorological forecast precipitation and soil moisture content of the corresponding areas of each reservoir, and input the meteorological forecast precipitation and soil moisture content of the corresponding areas of each reservoir into the pre-trained hydrological prediction model to obtain the predicted inflow increment of each reservoir at each sampling time in the future; By installing flow monitoring equipment at the inlet and outflow control sections of each reservoir, the inflow and outflow of each reservoir at each sampling time are obtained. Based on the actual water transfer paths between reservoirs, determine the direction of water flow transfer between adjacent reservoirs and the average propagation time of water flow from the upstream reservoir to the downstream reservoir; Using each reservoir as a node, the direction of water flow between adjacent reservoirs as directed edges, and the average propagation time between adjacent reservoirs as the hydraulic propagation delay of the corresponding directed edge, a directed graph of the watershed reservoirs is constructed.
3. The water conservancy project hydrological prediction and scheduling optimization method based on machine learning according to claim 2, characterized in that, The method for calculating the expected inflow of each reservoir based on the directed graph of the watershed reservoirs, the inflow and outflow of each reservoir, and the predicted increase in inflow includes the following specific methods: Any reservoir is designated as the target reservoir, and any reservoir in the directed watershed reservoir graph that points to the target reservoir is designated as the upstream reservoir of the target reservoir. Any upstream reservoir of the target reservoir is designated as the control reservoir, and the delay in the hydraulic propagation from the control reservoir to the target reservoir is designated as the delay period. A prediction time range is preset. Any sampling time within the prediction time range is recorded as the target sampling time. The sampling time during the delay period before the target sampling time is recorded as the control sampling time. The outflow of the control reservoir at the control sampling time is used as the expected inflow of the control reservoir to the target reservoir at the target sampling time. The sum of the expected inflow components of all upstream reservoirs to the target reservoir at the target sampling time, plus the predicted inflow increment of the target reservoir at the target sampling time, is used as the expected inflow of the target reservoir at the target sampling time.
4. The water conservancy project hydrological prediction and scheduling optimization method based on machine learning according to claim 3, characterized in that, The specific method for obtaining the expected water level and expected water storage pressure coefficient of each reservoir based on the expected inflow of each reservoir includes: For the target sampling time, the time interval between the target sampling time and its previous sampling time is multiplied by the expected inflow of the target reservoir at the previous sampling time, and the product is taken as the inflow of the target reservoir at the previous sampling time. All sampling times between the current sampling time and the target sampling time are recorded as cumulative sampling times. The sum of the inflow of water into the target reservoir at all cumulative sampling times is taken as the cumulative inflow of water into the target reservoir at the target sampling time. The product of the time interval between the current sampling time and the target sampling time and the outflow rate of the target reservoir at the current sampling time is used as the cumulative outflow rate of the target reservoir at the target sampling time. The sum of the difference between the cumulative inflow and cumulative outflow of water in the target reservoir at the target sampling time and the water storage of the target reservoir at the current sampling time is used as the expected water storage of the target reservoir at the target sampling time. Based on the expected water storage of the target reservoir at the target sampling time, and combined with the pre-constructed reservoir capacity function, the expected water level of the target reservoir at the target sampling time is obtained. The ratio of the expected water storage capacity of the target reservoir at the target sampling time to the pre-obtained upper limit of the target reservoir's water storage capacity is used as the expected water storage pressure coefficient of the target reservoir at the target sampling time.
5. The water conservancy project hydrological prediction and scheduling optimization method based on machine learning according to claim 4, characterized in that, The method for obtaining the scheduling pressure coefficient of each reservoir based on the expected inflow and expected water storage pressure coefficient includes the following specific methods: The ratio of the expected inflow to the preset water conveyance capacity of the target reservoir at the target sampling time is used as the inflow intensity coefficient of the target reservoir at the target sampling time. The product of the inflow intensity coefficient of the target reservoir at the target sampling time and the expected water storage pressure coefficient of the target reservoir at the target sampling time is used as the scheduling pressure coefficient of the target reservoir at the target sampling time.
6. The water conservancy project hydrological prediction and scheduling optimization method based on machine learning according to claim 3, characterized in that, The specific method for obtaining the backwater risk coefficient of adjacent reservoirs based on the expected water level difference between adjacent reservoirs includes: The difference between the expected water level of the control reservoir and the expected water level of the target reservoir at the target sampling time is denoted as the water level difference between the control reservoir and the target reservoir at the target sampling time. The ratio of the difference in water level between the control reservoir and the target reservoir at the target sampling time to the pre-constructed difference in water level is recorded as the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time. If the unobstructed flow factor of the control reservoir to the target reservoir is greater than 1 at the target sampling time, then the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time is set to 1. If the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time is less than or equal to 1, then the unobstructed flow factor of the control reservoir to the target reservoir at the target sampling time shall be used as the unobstructed flow coefficient of the control reservoir to the target reservoir at the target sampling time. The difference between 1 and the unobstructed flow coefficient of the control reservoir to the target reservoir at the target sampling time is taken as the backwater risk coefficient of the control reservoir to the target reservoir at the target sampling time.
7. The water conservancy project hydrological prediction and scheduling optimization method based on machine learning according to claim 6, characterized in that, The method for obtaining the initial scheduling weights of adjacent reservoirs based on the scheduling pressure coefficients of each reservoir and the backwater risk coefficients of adjacent reservoirs includes the following specific methods: The maximum value between the risk coefficient of the control reservoir to the target reservoir at the target sampling time and the scheduling pressure coefficient of the target reservoir at the target sampling time is denoted as the scheduling obstruction coefficient of the control reservoir to the target reservoir at the target sampling time. The reciprocal of the scheduling obstruction coefficient of the control reservoir to the target reservoir at the target sampling time is used as the initial scheduling weight of the control reservoir to the target reservoir at the target sampling time.
8. The water conservancy project hydrological prediction and scheduling optimization method based on machine learning according to claim 3, characterized in that, The method for obtaining the scheduling correction coefficients for adjacent reservoirs based on the predicted inflow increment, inflow, and directed graph of reservoirs in the basin includes the following specific methods: A historical time window is preset with the current sampling time as the endpoint, and any sampling time within the historical time window is recorded as a historical sampling time. The sampling time within the time delay period of the historical sampling time is recorded as the reference sampling time; The outflow from the control reservoir at the reference sampling time is recorded as the inflow from the control reservoir to the target reservoir at the historical sampling time. For the target reservoir, the inflow rate of the target reservoir at the historical sampling time is subtracted from the sum of the inflow rates of all control reservoirs to the target reservoir at the historical sampling time to obtain the actual inflow rate of the target reservoir at the historical sampling time. The inflow state coefficient of the target reservoir at the historical sampling time is obtained by comparing the actual inflow of the target reservoir at the historical sampling time with the predicted inflow increment of the target reservoir at the historical sampling time. The ratio of the average inflow state coefficient of the control reservoir at all sampling times within the preset historical time window to the average inflow state coefficient of the target reservoir at all sampling times within the preset historical time window is used as the scheduling correction coefficient of the control reservoir for the target reservoir at the current sampling time.
9. The water situation prediction and scheduling optimization method for water conservancy projects based on machine learning according to claim 8, characterized in that, The specific method for correcting the initial scheduling weights of adjacent reservoirs based on their scheduling correction coefficients to obtain the corrected scheduling weights of adjacent reservoirs includes: The product of the initial scheduling weight of the control reservoir to the target reservoir and the scheduling correction coefficient at the current sampling time is used as the corrected scheduling weight of the control reservoir to the target reservoir at the current sampling time.
10. A machine learning-based system for water conservancy project hydrological prediction and scheduling optimization, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, When the computer program is executed by the processor, it implements the steps of the machine learning-based water condition prediction and scheduling optimization method for water conservancy projects as described in any one of claims 1-9.
