A method and system for regulating stage-by-stage dynamic flood control water level of a hydropower station

By integrating the characteristics and time-series prediction of historical rainfall and inflow in the basin, the flood control limit water level of the hydropower station is dynamically adjusted, solving the problem that fixed thresholds cannot adapt to changes in rainfall in the basin. This achieves efficient utilization of flood control capacity and smooth connection of dispatch instructions, ensuring flood control safety and stable operation.

CN123180712APending Publication Date: 2026-11-27SICHUAN DATANG INT GANZI HYDROELECTRIC DEV CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611044990.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, the fixed threshold of flood control water level cannot adapt to the spatiotemporal dynamic changes of rainfall in the basin, resulting in insufficient utilization of flood control storage capacity, increased risks in flood control and management, and a lack of ability to coordinate scheduling and control commands across multiple time scales, making it difficult to balance emergency response speed with the continuity of plan execution.

Method used

By acquiring historical rainfall data of the basin and current inflow sequence of the reservoir, feature fusion and time-series prediction are performed to calculate real-time response water level prediction values. Combined with water level threshold differences and emergency adjustment ranges, monthly scheduling benchmark values ​​are dynamically corrected, and time-domain smoothing is performed when necessary to generate flood control scheduling execution sequences.

Benefits of technology

It enables multi-scale dynamic control of the flood control limit water level of hydropower stations, improves the utilization efficiency of flood control reservoir capacity, ensures flood control safety, avoids the strong jumps in dispatching instructions, and meets the needs of decision-making continuity and operational safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180712A_ABST
    Figure CN123180712A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of flood control scheduling and process control of a hydropower station, and discloses a staged dynamic flood limit water level regulation method and system for a hydropower station. The method comprises the following steps: obtaining a historical rainfall in a basin and a reservoir inflow flow sequence, obtaining a real-time response water level prediction value through feature fusion and time sequence prediction; calculating the deviation of the prediction value and a flood limit water level threshold, matching a flood peak evolution characteristic in a risk interval to determine a real-time emergency adjustment range; weighting and correcting a monthly scheduling reference to obtain a short-term target water level, comparing a long-term target to calculate a jump amount and performing time domain smoothing processing; and generating a flood control scheduling execution sequence and outputting the sequence to a water gate control terminal. The method can realize multi-scale dynamic regulation and smooth connection of the flood limit water level of the hydropower station, and meets the core demand for decision continuity and operation safety in the flood control scheduling scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of flood control scheduling and process control technology for hydropower stations, and in particular to a method and system for phased dynamic flood control water level regulation of hydropower stations. Background Technology

[0002] Currently, in the field of technology, the precise control of flood control water levels, as a key link in ensuring flood control safety in river basins and coordinating the utilization of water resources, has become a key research topic.

[0003] In one existing technology, fixed flood control water levels or single-period static scheduling are mainly used to control water levels during the flood season. This relies primarily on preset water level thresholds or single scheduling rules. For example, a fixed flood control water level is used for daily operation scheduling, and flood discharge control commands are triggered by simple comparison of inflow values. However, this approach is clearly insufficient in complex and dynamically changing hydrological environments. Fixed thresholds cannot adapt to the spatiotemporal dynamic changes in basin rainfall, and single scheduling rules are easily affected by sudden rainstorms and the evolution of flood peaks. The alternation of seasonal floods, uneven rainfall distribution, and sudden changes in inflow can easily lead to insufficient utilization of flood control capacity or increased risks in flood control. Furthermore, it lacks the ability to coordinate scheduling across multiple time scales and smoothly transition control commands. Especially in complex scenarios where real-time hydrological changes occur and medium- and long-term scheduling plans need to be adjusted in conjunction, it is difficult to balance emergency response speed and plan execution continuity, resulting in highly erratic scheduling commands and insufficient stability of power plant operation.

[0004] In summary, existing technologies are insufficient. Summary of the Invention

[0005] This invention provides a phased dynamic flood control water level regulation method and system for hydropower stations, so as to realize multi-scale dynamic regulation and smooth connection of flood control water level of hydropower stations, and meet the core requirements of decision continuity and operational safety in flood control scheduling scenarios.

[0006] In a first aspect, to solve the above-mentioned technical problems, the present invention provides a method for phased dynamic flood control water level regulation of a hydropower station, comprising: The historical rainfall sequence of the watershed and the current inflow sequence of the reservoir are obtained and feature fusion and time series prediction are performed to obtain the real-time response water level prediction value. The difference between the real-time response water level prediction value and the preset flood limit water level threshold is calculated to obtain the initial water level deviation value. If it is within the preset risk deviation range, the real-time emergency adjustment range is determined based on the initial water level deviation value. If it is not within the range, the preset benchmark value is used as the real-time emergency adjustment range. Monthly scheduling baseline values ​​are extracted from the annual reservoir scheduling plan. The monthly scheduling baseline values ​​are then weighted and corrected according to the real-time emergency adjustment range to obtain short-term target water level values. Long-term target water level values ​​are extracted from the annual reservoir scheduling plan. The absolute difference between the short-term target water level values ​​and the long-term target water level values ​​is calculated to obtain the command jump amount. The instruction jump amount is compared with a preset jump judgment threshold. If it is greater than the threshold, the short-term target water level value is smoothed in the time domain to obtain a smoothed target water level value. If it is less than the threshold, the short-term target water level value is used as the smoothed target water level value. A flood control scheduling execution sequence is generated based on the smoothed target water level value, and the flood control scheduling execution sequence is output to the sluice gate control terminal.

[0007] Secondly, the present invention provides a phased dynamic flood control level regulation system for a hydropower station, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of the phased dynamic flood control level regulation method for a hydropower station as described above.

[0008] Thirdly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the phased dynamic flood control level regulation method for hydropower stations as described above.

[0009] Compared with the prior art, the present invention has the following beneficial effects: (1) This invention obtains the historical rainfall sequence of the basin and the current inflow sequence of the reservoir area, constructs a multi-dimensional hydrological feature matrix through interpolation and normalization, and performs spatial mapping and regression prediction after sliding window segmentation and temporal correlation feature extraction to obtain the real-time response water level prediction value. It breaks through the limitations of traditional fixed flood limit water level and single-period static scheduling that cannot adapt to the spatiotemporal dynamic changes of rainfall in the basin. It integrates the two-dimensional hydrological information of historical rainfall patterns and real-time inflow, accurately depicts the dynamic trend of water level evolution, solves the problem that static thresholds are difficult to cope with sudden rainstorms and flood peak evolution, and provides a reliable preliminary decision basis for dynamic regulation of flood limit water level.

[0010] (2) The present invention calculates the difference between the real-time response water level prediction value and the flood limit water level threshold to obtain the initial water level deviation value. When the deviation is in the risk range, it combines the rainfall confluence rate and the historical flood peak evolution characteristics to obtain the real-time emergency adjustment range. Based on the emergency adjustment range, the monthly scheduling benchmark value is weighted and corrected to obtain the short-term target water level value. This breaks through the limitations of traditional single scheduling rules, which are easily affected by sudden changes in inflow and have difficulty balancing reservoir capacity utilization and flood control risks. The scheduling benchmark is dynamically corrected with real-time water level deviation as the guide, taking into account both the monthly routine scheduling plan and the emergency response needs of sudden floods. Under the premise of ensuring flood control safety, the efficiency of flood control reservoir capacity utilization is improved, and the shortcomings of the existing static scheduling method, such as insufficient flexibility and low control accuracy, are made up for.

[0011] (3) The present invention calculates the absolute difference between the short-term target water level and the long-term target water level to obtain the instruction jump amount. When the jump amount exceeds the judgment threshold, the short-term target water level is subjected to time-domain interpolation smoothing to generate a smooth target water level and convert it into a flood control scheduling execution sequence output to the sluice gate control terminal. This breaks through the limitations of the traditional scheduling method, which lacks a multi-time scale connection mechanism and has strong instruction jumps that affect the stability of operation. It realizes the flexible connection between short-term emergency scheduling and long-term scheduling plan, avoids unit operation fluctuations and sluice gate impacts caused by sudden changes in scheduling instructions, and meets the core requirements of flood control scheduling scenarios for decision continuity and operational safety. Attached Figure Description

[0012] Figure 1 This is a schematic diagram of a phased dynamic flood control water level regulation method for a hydropower station provided in the first embodiment of the present invention. Detailed Implementation

[0013] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0014] Reference Figure 1 The first embodiment of the present invention provides a method for phased dynamic flood control water level regulation of a hydropower station, comprising the following steps: S101: Obtain the historical rainfall sequence of the watershed and the current inflow sequence of the reservoir area, and perform feature fusion and time series prediction processing to obtain the real-time response water level prediction value; S102, calculate the difference between the real-time response water level prediction value and the preset flood limit water level threshold to obtain the initial water level deviation value. If it is within the preset risk deviation range, determine the real-time emergency adjustment range based on the initial water level deviation value. If it is not within the range, use the preset benchmark value as the real-time emergency adjustment range. S103, extract the monthly scheduling benchmark value from the annual reservoir scheduling plan, and perform weighted correction processing on the monthly scheduling benchmark value according to the real-time emergency adjustment range to obtain the short-term target water level value; extract the long-term target water level value from the annual reservoir scheduling plan, and calculate the absolute difference between the short-term target water level value and the long-term target water level value to obtain the instruction jump amount; S104, compare the instruction jump amount with the preset jump judgment threshold. If it is greater than the threshold, perform time-domain smoothing on the short-term target water level value to obtain a smoothed target water level value. If it is less than the threshold, use the short-term target water level value as the smoothed target water level value. S105, Generate a flood control scheduling execution sequence based on the smoothed target water level value, and output the flood control scheduling execution sequence to the sluice gate control terminal.

[0015] In step S101, the step of acquiring the historical rainfall sequence of the watershed and the current inflow sequence of the reservoir area, and performing feature fusion and time-series prediction processing to obtain the real-time response water level prediction value includes: Interpolation and normalization are performed on the historical rainfall sequence and the inflow sequence to obtain a standard hydrological time series; A multidimensional hydrological feature matrix is ​​constructed based on the standard hydrological time series. Perform sliding window segmentation on the multidimensional hydrological feature matrix to obtain a hydrological state submatrix; Temporal correlation features are extracted from the water condition state submatrix to obtain a temporal state vector; Spatial mapping and regression prediction processing are performed on the time-series state vector to obtain the real-time response water level prediction value.

[0016] It should be noted that, firstly, data collection and preprocessing were performed. Historical rainfall sequences were collected from a network of rain gauges deployed within the watershed, while the current reservoir inflow sequence was obtained from real-time inflow data collected from upstream water level gauges. This data was then calculated using the reservoir level-capacity curve and water balance equation. The sampling interval for both types of data was one hour, covering continuous records over the past 72 hours. Linear interpolation was used. For missing values ​​caused by communication interruptions or equipment self-checks during the data collection process, the arithmetic mean of the two valid samples before and after the missing point was used to fill in the gaps, ensuring a uniform time interval in the time series. Normalization employed the min-max normalization method, mapping the two different units of rainfall and inflow values ​​to a range of 0 to 1. The mapping benchmark was the extreme values ​​of the corresponding hydrological stations over the same period over the past three years; the maximum value corresponded to a mapping result of 1, and the minimum value to a mapping result of 0. This process yielded the standard hydrological time series. For periods spanning month boundaries (such as June 30 to July 1), the extrapolated weighted value of the extreme values ​​of the two adjacent months is taken as the transition benchmark. The weights are linearly distributed according to the distance of the period from the two month boundaries to ensure a smooth transition of the normalized benchmark when switching months.

[0017] It should be noted that the above-mentioned "same period" refers to the same calendar month, that is, taking the extreme values ​​of historical rainfall and inflow data of the same month over the past 3 years (e.g., all July) of the hydrological station as the normalized maximum and minimum values, respectively. If there are significant seasonal differences in the hydrological conditions of the basin, the same period window can also be divided into ten-day periods.

[0018] Next, a multidimensional hydrological feature matrix is ​​constructed. The rainfall and inflow sequences from the standard hydrological time series are concatenated column-wise with the time feature sequences. The time feature sequences consist of the hourly ordinal numbers corresponding to each sampling point, ranging from 0 to 23, and are used to characterize the influence of intraday rhythms on hydrological changes. The concatenation results in a two-dimensional matrix with 72 rows and 3 columns, which is the multidimensional hydrological feature matrix. Each row in the matrix corresponds to the hydrological state at a sampling time, and each column corresponds to a hydrological feature dimension. All values ​​have been normalized to maintain consistent dimensions.

[0019] It should be noted that the hourly ordinal numbers of the time feature sequence are also subjected to min-max normalization. The normalization mapping benchmark is the interval [0, 23]. After processing, this feature column is also mapped to the interval between 0 and 1 to ensure that the dimensions of this column are consistent with those of the previous two columns, rainfall and inflow.

[0020] Next, a sliding window segmentation process is performed. The multidimensional hydrological feature matrix is ​​segmented using a sliding window algorithm. The window length is set to 24 sampling points, corresponding to a 24-hour time period, and the sliding step size is set to 6 sampling points, corresponding to a 6-hour time period. The segmentation process starts from the first row of the matrix, moving downwards along the time axis by 6 rows each time, extracting a continuous 24-row matrix segment as a hydrological state sub-matrix, until the window reaches the last row of the matrix. Each sub-matrix obtained after segmentation has a dimension of 24 x 3, which can completely cover the hydrological fluctuation cycle within a day. Adjacent sub-matrices have an overlapping area of ​​18 rows, ensuring the continuity of temporal features. The window length and sliding step size can be adjusted according to the watershed's confluence characteristics. In mountainous watersheds with fast confluence velocities, the window length can be shortened to 16 sampling points, while in plain watersheds with slow confluence velocities, the window length can be extended to 32 sampling points. The adjustment range is limited to 0.7 to 1.3 times the baseline value. The above adjustment range is set according to the suggested range for flexible setting of scheduling parameters in the Guidelines for Compiling Reservoir Scheduling Regulations (SL706). In specific implementation, it can be finely adjusted within the range in combination with actual engineering conditions.

[0021] It should be noted that the determination of the window length adjustment range of 0.7 to 1.3 times (16 to 32 sampling points) is based on the following: In mountainous watersheds with fast confluence velocities, the confluence lag time from rainfall generation to reservoir inflow is typically 12 to 18 hours, and a 16-hour window covers the peak period of a complete confluence process; in plain watersheds with slow confluence velocities, the confluence lag time is typically 24 to 36 hours, and a 32-hour window can cover the peak period while retaining sufficient information on previous moisture conditions. By statistically analyzing the 90th percentile values ​​of water response duration for different watershed types over the past 5 years, adjustment boundaries of 16 hours as the lower limit and 32 hours as the upper limit were obtained, corresponding to approximately 0.7 times and 1.3 times the baseline 24 hours, respectively.

[0022] Subsequently, temporal correlation feature extraction was performed. Temporal feature extraction was implemented using a Long Short-Term Memory (LSTM) network with a single-layer recurrent structure and 128 hidden layer neurons. The hyperbolic tangent activation function was selected. Model training utilized a historical hydrological dataset from the past five years, containing approximately 12,000 samples of hydrological sequences under different seasons and rainfall levels, divided into training and validation sets in a 7:3 ratio. The training process employed an adaptive moment estimation algorithm to optimize weights, using the mean squared error function as the loss function. The initial learning rate was set to 0.001, decreasing by 0.2 every 10 training epochs. Training was stopped when the validation set loss fluctuation was less than 0.002 for eight consecutive epochs, with a maximum of 80 epochs. The hydrological state submatrix was sequentially input into the network step-by-step. The network used a forgetting gate to filter redundant short-term fluctuation information and an input gate to retain long-term dependency features related to runoff trends, ultimately outputting a 128-dimensional temporal state vector.

[0023] It should be noted that the datasets used by each model in this scheme have the following sources and relationships: The LSTM time-series prediction model uses a historical hydrological dataset from the past 5 years of the watershed, constructing approximately 12,000 input-label sample pairs with a 6-hour sliding sampling step, covering all four seasons and different rainfall levels, for training water level prediction capabilities; the random forest regressor uses 8,000 historical calculation records automatically extracted from sluice gate operation logs, each record containing water level deviation, actual discharge adjustment amount, and discharge capacity benchmark, for training emergency adjustment gradient prediction capabilities; the DTW matching uses over 800 historical flood peak evolution sequences taken from hydrological scheduling archives from the past 10 years, for retrieval and matching of historically similar flood peaks, and is independent of the training data for LSTM and random forest; the dynamic weighted matrix regression uses over 1,200 samples taken from the same historical scheduling database as the LSTM training set, but with a longer time span (nearly 10 years), extracting complete scheduling process records by flood event. Although the time range and sampling methods of each dataset overlap, they serve different modules, and there is no data leakage issue.

[0024] The model training labels are the actual observed water level values ​​in front of the dam six hours after the end of the corresponding time period for each group of hydrological status sub-matrices. These observed water level data are derived from the hourly raw data collected by the water level gauges in front of the dam from the reservoir's automatic hydrological monitoring system. After outlier removal (values ​​exceeding three times the standard deviation are considered outliers) and linear imputation of missing values, the hourly arithmetic mean is taken as the true label value. The LSTM network, fully connected layer, and regression output layer are trained end-to-end. During backpropagation, the mean squared error gradient is passed from the output layer through the fully connected layer to the LSTM layer to uniformly update all weight parameters. The training and validation sets are divided sequentially along the time axis in a 7:3 ratio. Data from the first 70% of the time period (the last 3.5 years) is used for training, and data from the last 30% of the time period (the last 1.5 years) is used for validation, avoiding the time-series data leakage problem caused by random partitioning.

[0025] It should be noted that the batch size is set to 32 during training, meaning that each parameter update is based on the average gradient of 32 samples. The 128-dimensional temporal state vector is taken from the hidden state of the last time step (t=24) of the LSTM, that is, in many-to-one mode, only the hidden layer output at the end of the sequence is retained, and the hidden states of the middle time steps are discarded.

[0026] The labels for the training samples are defined as the actual observed water level in front of the dam at the end of the corresponding time period for each hydrological condition submatrix. The samples are constructed by sliding sampling from historical data of the past 5 years in 6-hour increments, taking data from 30 consecutive hours each time (the first 24 hours as the input submatrix, and the actual observed water level at the 30th hour as the label), resulting in approximately 12,000 samples covering different seasons (approximately 3,000 samples each for spring, summer, autumn, and winter) and different rainfall levels (divided into five levels from no rain to heavy rain, with balanced sample sizes across each level). The training and validation sets are divided chronologically, with the first 70% of the data used for training and the last 30% used for validation, avoiding data leakage caused by random partitioning.

[0027] Next, spatial mapping and regression prediction are performed. The temporal state vector is input into a fully connected layer for spatial mapping. The fully connected layer has 256 neurons, and the activation function is a linear rectified function. This expands the 128-dimensional temporal features to a 256-dimensional high-dimensional feature space, decoupling the coupling relationships between different features. The mapped high-dimensional features are then input into the regression output layer. The output layer has a single neuron, and the activation function is a linear activation function. It directly outputs the water level prediction result for the next 6 hours, which is the real-time response water level prediction value. The predicted water level value is in meters (m), with one decimal place, covering the entire water level range during normal reservoir operation.

[0028] It should be noted that the number of neurons in the fully connected layer, 256, was determined by performing a grid search among four candidate values: {64, 128, 256, 512}. Using the mean squared error of the validation set (MSE) as the evaluation metric, the validation set loss was lowest at 256 neurons, reducing the MSE by approximately 12% compared to 128. The MSE of 512 neurons was the same as 256, but the number of parameters doubled. Therefore, 256 was selected as the final design value. The expansion operation of this fully connected layer aims to enhance the nonlinear expressive power of LSTM temporal features through high-dimensional mapping.

[0029] In this embodiment, the average absolute error of the prediction process can be controlled within 0.3m, which meets the accuracy requirements for flood season water level regulation. The method is applicable under the premise that the rainfall distribution in the basin is relatively uniform. Here, it is necessary to clearly quantify the judgment boundary of this relative uniformity, that is, the spatial variation coefficient of all rainfall data monitored by rain gauges within the basin in the current time period must be strictly less than 0.3, and there must be no sudden local severe convective weather. If local short-duration heavy rainfall causes the spatial variation coefficient to reach or exceed 0.3, thus exceeding the applicable boundary, radar rainfall forecast data can be simultaneously connected to correct the input characteristics to ensure the reliability of prediction under extreme conditions. A method for fusing radar rainfall forecast data and ground rain gauge data needs to be supplemented. The radar rainfall forecast data is spatially interpolated at 1-hour time intervals to obtain rainfall raster data with the same spatial resolution as the rain gauge network. For each raster cell, the corrected rainfall value is calculated using the weighted fusion formula: P_fused = (1 − w_radar) × P_gauge + w_radar × P_radar, where P_gauge is the measured rainfall from the corresponding rain gauge, P_radar is the radar forecast rainfall for that raster, w_radar = min(1.0, (CV − 0.3) / 0.3) is the radar data fusion weight, and CV is the spatial variation coefficient for the current time period. The physical meaning of this weighted fusion formula is that as the spatial variation coefficient increases from 0.3 to 0.6, the radar data weight linearly increases from 0 to 1.0, achieving a smooth transition between ground measurements and radar forecasts. The fused rainfall sequence replaces the corresponding time period values ​​in the original rainfall sequence, reconstructs a multidimensional hydrological feature matrix, and inputs it into an LSTM model for prediction.

[0030] It should be noted that the spatial variability coefficient threshold of 0.3 is determined based on the hydrological classification standard for spatial variability of rainfall. A variability coefficient less than 0.3 corresponds to a moderate to low variability intensity, within which the spatial distribution of rainfall in the watershed can be approximated as uniform. When the variability coefficient reaches or exceeds 0.3, the differences in rainfall from different rain gauges within the watershed begin to significantly affect the uniformity of the confluence process, leading to a decrease in the accuracy of water level prediction models based on the uniform distribution assumption. This threshold is consistent with the empirical classification boundary of the spatial homogeneity of rainfall fields from the American Meteorological Society (AMS).

[0031] Obtain the rainfall runoff rate corresponding to the initial water level deviation value, and construct an initial hydrological feature set; The evolution feature matrix is ​​obtained by matching the pre-acquired historical flood peak evolution sequence with the initial hydrological feature set; Perform a feature space mapping transformation on the initial water level deviation value and the evolution feature matrix to obtain a spatial feature vector; Perform regression fitting calculation on the spatial feature vector to obtain the regression fitting gradient; The real-time emergency adjustment range is obtained by superimposing the regression fitting gradient with the pre-acquired discharge capacity benchmark.

[0032] It should be noted that the rainfall runoff rate corresponding to the initial water level deviation value refers to the rainfall runoff rate at the same calculation moment as the initial water level deviation value. Specifically, when S101 outputs the water level prediction value for the next 6 hours and calculates the difference with the flood limit water level threshold, it takes the rainfall intensity data from the hour preceding the current moment and calculates the runoff rate generated by that rainfall intensity within the same time window using the unit hydrograph method, which is then used as the corresponding rainfall runoff rate.

[0033] It is worth noting that, firstly, the rainfall runoff rate corresponding to the initial water level deviation value was obtained to construct the initial hydrological feature set. Rainfall intensity data was collected in real time by a rain gauge network deployed in the upstream of the watershed, with a collection interval of 1 hour. The runoff rate was calculated using the unit hydrograph method, and combined with the watershed topographic slope and surface roughness parameters, the rainfall intensity was converted into the flow rate of surface runoff flowing into the reservoir area, with units of m³ / s. The initial hydrological feature set includes three types of features: rainfall intensity, runoff rate, and initial water level deviation. All features were uniformly mapped to the interval of 0 to 1 using the minimum-maximum normalization method to eliminate the influence of dimensional differences on subsequent calculations.

[0034] It should be noted that the watershed topographic slope is taken as the average gradient of the watershed, which can be calculated using a digital elevation model (DEM). The average gradient range for typical mountainous watersheds is 0.05 to 0.20. The surface roughness parameter uses the Manning roughness coefficient n, with a value of 0.035 to 0.050 for typical mountainous river channels. The specific values ​​of the above parameters can be found in the calibration data in the watershed hydrological handbook or dam design report.

[0035] Next, the evolution feature matrix is ​​obtained by matching the pre-stored historical flood peak evolution sequences with the initial hydrological feature set. The historical flood peak evolution sequences are taken from the watershed hydrological scheduling archives of the past 10 years, covering flood peak processes of different seasons and different rainfall levels, and contain more than 800 valid sequences. Each sequence not only records three isomorphic hydrological features before the flood peak: historical rainfall intensity, historical runoff rate, and historical initial water level deviation, but also records the water level rise rate, flood peak arrival time, and discharge response data after the flood peak.

[0036] Valid sequences must simultaneously meet the following conditions: no data interruptions with more than 3 consecutive missing sampling points; the sequence covers the complete process of a single flood peak from rise to peak to recede; the water level fluctuation in the sequence is not less than 1.0m, and records from the normal water period without obvious flood peaks are filtered out. It should be noted that the rules for determining the start and end points of the complete process are as follows: Start point: the inflow exceeds 120% of the reservoir's base flow (85m³ / s) for 2 consecutive hours, and shows a continuous upward trend for the following 24 hours; End point: the inflow falls back to below 150% of the base flow and the fluctuation range is ≤10% for 6 consecutive hours.

[0037] In the pre-acquired historical flood peak evolution sequence, each historical flood peak evolution sequence is stored as an M×3 two-dimensional array, where M is the number of sampling points for that flood peak (M ranges from 60 to 240 due to the different durations of each flood peak). The three columns correspond to the normalized water level rise rate (current 6-hour water level change ÷ total change of that flood peak); flood peak lag time (number of hours from the current moment to the peak rainfall time); and discharge efficiency (6-hour discharge ÷ 6-hour inflow). The sequence is recorded from the time the inflow exceeds the baseflow threshold until the flow returns to the baseflow threshold and stabilizes for 6 hours.

[0038] The matching employs a dynamic time warping algorithm. When calculating the metric, it directly performs Euclidean distance calculations on the current initial set of hydrological features and three isomorphic hydrological features from the historical sequence, each with its own independent dynamic time warping path calculation. The minimum warped distances across the three dimensions are then summed with equal weights to obtain a comprehensive distance score. Historical flood peaks with the highest similarity are selected and sorted by comprehensive distance score from smallest to largest. Three types of features—water level rise rate, flood peak delay time, and discharge efficiency—are extracted from these peaks and concatenated with the current hydrological features to form a 4x4 evolution feature matrix. The path constraint for dynamic time warping uses a Sakoe-Chiba bandwidth constraint, with the bandwidth set to 10% of the window length. This constraint limits the maximum offset of the warped path from the diagonal, ensuring reasonable local alignment and suppressing ill-conditioned matching caused by excessive curvature.

[0039] During matching, for the initial hydrological features of the current 72 hours and the first three columns of isomorphic features of each historical sequence, the Euclidean distance is independently calculated for each sequence under the Sakoe-Chiba bandwidth constraint of DTW (i.e., the three features generate three independent regular paths). The sum of the three Euclidean distances with equal weights is used as the comprehensive similarity. The top three historical sequences with the highest comprehensive similarity are selected, and four evolutionary features in their complete process are extracted: peak water level rise rate, peak flood lag time, trough discharge efficiency, and total flood peak duration. These features are then filled into rows 1 to 3 of the evolutionary feature matrix in ranking order. Row 4 is filled with the corresponding estimated starting values ​​calculated from the current initial hydrological feature set, forming a complete 4-row × 4-column evolutionary feature matrix.

[0040] It should be noted that the determination of equal weight for the three dimensions is based on the fact that, on more than 800 sets of sequences in the historical flood peak evolution dataset, the Top 3 recall rates of rainfall intensity, confluence rate, and initial water level deviation were tested independently. The average recall rates of the three features under all seasons and rainfall levels were 78%, 75%, and 77%, respectively, with a difference of no more than 5%. This indicates that the contributions of the three features to the judgment of the similarity of the flood peak process are similar, so it is reasonable to use equal weight to add them together.

[0041] It should be noted that the 4x4 evolution feature matrix is ​​constructed as follows: the first row is filled with three feature values ​​of the current hydrological feature set (rainfall intensity, runoff rate, and initial water level deviation), and the fourth column is padded with zeros; the second to fourth rows each correspond to a matched historical flood peak process, and each row is filled with three feature values ​​of the historical process: water level rise rate, flood peak lag time, and discharge efficiency, and the fourth column is filled with the DTW comprehensive distance score. That is, each row of the matrix represents a complete set of hydrological feature vectors, with the first three columns being the core hydrological parameters and the fourth column being the matching evaluation value of that set of features.

[0042] Secondly, a feature space mapping transformation is performed on the initial water level deviation value and the evolution feature matrix to obtain a spatial feature vector. The mapping is implemented using the radial basis function of the kernel principal component analysis algorithm. The model projection matrix of this algorithm is determined offline using unlabeled feature samples from the historical flood peak scheduling dataset. The dataset is divided into training and validation sets in a 7:3 ratio to prevent overfitting. The parameter solution process obtains orthogonal principal component directions by performing eigenvalue decomposition on the kernel matrix of the samples, without relying on any external artificial labels. The bandwidth parameter of the kernel function is determined to be 0.8 using the feature variance maximization criterion. The mapping projects low-dimensional hydrological features onto a 128-dimensional high-dimensional feature space, transforming the originally nonlinear hydrological response relationship into an approximately linear separable pattern. The output spatial feature vector has a dimension of 128, which can fully characterize the nonlinear coupling relationship of hydrological changes.

[0043] The projection matrix has a dimension of N×128, where N is the dimension of the input features (in this scheme, N=4, corresponding to the four-dimensional input of rainfall intensity, runoff rate, initial water level deviation, and DTW comprehensive distance score). Each column of the matrix corresponds to an orthogonal principal component direction vector. During offline computation, an N×N dimensional kernel matrix is ​​constructed for the more than 800 sets of unlabeled feature samples. After eigenvalue decomposition, the eigenvectors corresponding to the top 128 largest eigenvalues ​​are taken, and after normalization, 128 N-dimensional projection directions are obtained, arranged column by column to form an N×128 dimensional projection matrix. During online mapping, the new 4-dimensional hydrological feature vector obtained in step S102 is used as the independent variable of the kernel function. The inner product (radial basis kernel) of the kernel function is calculated with each of the 128 column vectors of the projection matrix to obtain a 128-dimensional spatial feature vector, which serves as the input to the subsequent random forest regressor.

[0044] It should be noted that the process of determining the KPCA bandwidth parameter of 0.8 is as follows: Rainfall intensity, runoff rate, and initial water level deviation are extracted from over 800 valid sequences in the watershed's hydrological scheduling archives over the past 10 years to form an unlabeled feature sample set (no post-observation features such as water level rise rate are required). A kernel matrix is ​​constructed from this sample set, and the bandwidth parameter values ​​are traversed within the range [0.3, 2.0] with a step size of 0.1. The variance of the eigenvalue distribution of the kernel matrix under each bandwidth is calculated, and the value of 0.8, which maximizes the variance, is selected as the final kernel function bandwidth. The projection matrices involved in the offline calculations are all determined based on this bandwidth and the aforementioned 800+ unlabeled feature samples.

[0045] Subsequently, regression fitting calculations were performed on the spatial feature vectors to obtain the regression fitting gradient. The regression fitting was implemented using a random forest regressor, which contained 80 decision trees. The Gini coefficient criterion was used for node splitting, and the maximum tree depth was set to 12. The ground truth used for training was taken from the actual discharge adjustment gradient in historical scheduling records. Physically, this gradient represents the discharge adjustment intensity corresponding to a unit water level deviation, and is a dimensionless coefficient. The extraction module read the absolute value of the water level deviation change and the corresponding absolute value of the actual gate discharge flow increment from the sluice gate operation log. It automatically calculated and generated this dimensionless value as the ground truth label by dividing the absolute value of the water level deviation change by the product of the discharge capacity benchmark. The extraction process required no manual annotation, and the total size of the training set precisely contained 8000 sets of objective historical calculation records. Training used a bootstrap sampling method to generate training subsets for each tree. Four features were randomly selected from each tree as splitting candidates. During training, the mean square error of the validation set was monitored, and training was stopped when the error fluctuation was less than 0.003 for seven consecutive rounds. The final output regression fit gradient is the arithmetic mean of all decision tree predictions, with a value between 0 and 1.

[0046] Then, the real-time emergency adjustment range is obtained by superimposing the regression fitting gradient with the pre-obtained discharge capacity benchmark. The discharge capacity benchmark is the maximum discharge flow rate of the reservoir with all floodgates fully open. The value is determined by the reservoir's hydraulic design parameters, with a typical value of 5000 m³ / s. Specific values ​​can be found in the dam's discharge capacity curve calibration. The superposition operation multiplies the regression fitting gradient by the discharge capacity benchmark to obtain the required additional discharge adjustment, which is the real-time emergency adjustment range. The unit remains consistent with the discharge capacity benchmark. The risk deviation interval is determined by performing a grid search on the historical scheduling dataset, setting three continuous intervals: 0 to 1m, 1 to 2m, and above 2m. The 1 to 2m interval is the risk deviation interval, defined by the flood control reservoir capacity falling below the safety line within this deviation range. This interval division can be adjusted according to the basin's flood control standards. For high-standard flood control scenarios, the lower limit of the interval can be lowered to 0.8m, and for conventional scenarios, it can be raised to 1.2m, with the adjustment range limited to 0.8 to 1.2 times the benchmark value.

[0047] It should be noted that the real-time emergency adjustment range obtained by the above superposition calculation is the discharge adjustment amount (unit: m³ / s). In step S103, the discharge adjustment amount is converted into the corresponding water level adjustment amount (unit: m) based on the reservoir water level-capacity curve: according to the reservoir capacity value corresponding to the current dam front water level on the reservoir water level-capacity curve, after superimposing the cumulative discharge volume increment of the discharge adjustment amount during the scheduling period, the adjusted target water level value is obtained by looking up the water level-capacity curve. The difference between the target water level value and the current dam front water level is the water level adjustment amount.

[0048] It should be noted that the evaluation metric for grid search is the flood control reservoir capacity safety index, defined as the ratio of the actual flood control reservoir capacity to the designed flood control reservoir capacity in historical scheduling cases. The optimization objective is to minimize the root mean square error (RMSE) of this safety index on the validation set. The search space is set with an upper limit of 0.5m to 3.0m and a step size of 0.1m, and a lower limit of 0m to 2.0m and a step size of 0.1m. After traversing all combinations, the boundary combination with the smallest RMSE is selected, and finally, 0 to 1m is determined as the normal range and 1 to 2m as the risk range.

[0049] It should be noted that the preset benchmark value is 0. When the initial water level deviation is in the range of 0 to 1m or above 2m, it indicates that the current water situation has not yet entered or has exceeded the risk area that requires dynamic adjustment. The real-time emergency adjustment range is directly set to 0 (i.e., no additional discharge adjustment is triggered) to maintain normal scheduling operation.

[0050] Finally, the verification rules and applicable boundaries of the calculation results are clarified. The obtained real-time emergency adjustment range needs to be verified by upper and lower limits. The upper limit of the adjustment range shall not exceed 30% of the discharge capacity benchmark, and the lower limit shall not be lower than 5% of the discharge capacity benchmark, to avoid downstream river risks caused by sudden changes in discharge flow. This calculation method is applicable under the premise that the inflow is steadily increasing. If a sudden increase in flow is caused by short-duration heavy rainfall, exceeding the applicable boundary of steady evolution, the preset flood control plan dispatch instructions can be directly called to replace the calculation results to ensure the dispatch response speed under extreme conditions. For example, if the discharge capacity benchmark of a reservoir is 5000 m³ / s, the calculated regression fitting gradient is 0.16. After multiplication, the real-time emergency adjustment range is 800 m³ / s, corresponding to a risk scenario with a water level deviation of 1.5 m.

[0051] The upper limit of 30% is determined based on the safety regulation in the water conservancy industry that the adjustment amount of a single discharge should not exceed 30% of the maximum discharge capacity, to prevent sudden opening and closing of the gate from causing a sharp rise and fall in downstream water levels and river scouring. The lower limit of 5% is determined based on the fact that when the adjustment range is less than 5% of the maximum discharge capacity, the actual change in the discharge flow is close to the minimum adjustable precision of the gate opening. Continuing to perform minor adjustments may lead to frequent gate operations, increasing mechanical wear and resulting in insignificant actual discharge effect.

[0052] In step S103, the step of extracting the monthly scheduling benchmark value from the annual reservoir scheduling plan and performing a weighted correction process on the monthly scheduling benchmark value according to the real-time emergency adjustment range to obtain the short-term target water level value includes: A dynamic weighted matrix is ​​constructed based on the real-time emergency adjustment range and the monthly scheduling benchmark value; The corrected water level sequence is obtained by performing a weighted correction calculation on the real-time emergency adjustment range and the monthly scheduling benchmark value using the dynamic weighting matrix. The corrected water level sequence is compared with a preset safe scheduling range. If the corrected water level sequence exceeds the safe scheduling range, the corrected water level sequence is smoothed and peak-shaving processed to obtain a safe water level sequence. If it does not exceed the safe scheduling range, the corrected water level sequence is directly used as the safe water level sequence. The control node features of the safe water level sequence are identified to obtain the corresponding short-term target water level values.

[0053] In the transition between steps S102 and S103, a physical quantity conversion from discharge adjustment to water level adjustment is required. Based on the reservoir capacity value corresponding to the current upstream water level on the reservoir level-capacity curve, the cumulative discharge volume increment during the scheduling period is superimposed. Then, the adjusted target water level value is obtained by looking up the water level-capacity curve. The difference between this target water level value and the current upstream water level is the water level adjustment, expressed in meters (m). This converted water level adjustment serves as the water level input for the weighted correction process in step S103. The cumulative discharge volume increment equals the discharge adjustment (m³ / s) multiplied by the scheduling period duration (s). The water level-capacity curve represents the deterministic hydraulic design parameters of the reservoir, which can be obtained from the reservoir design report or reservoir area topographic survey data.

[0054] It should be noted that the monthly scheduling benchmark value is taken from the conventional control water level of the corresponding month in the reservoir's annual flood control scheduling plan, which is jointly determined by the basin flood control plan and reservoir design parameters. The typical value during the main flood season is 150m. The real-time emergency adjustment range, after being converted from the discharge adjustment amount to the water level adjustment amount as described in step S102, is used as the input of the water level reduction amount corresponding to the water level deviation, with the unit being meters.

[0055] Using the historical emergency adjustment range X1, the historical monthly baseline value X2, and the historical time decay coefficient X3 as independent variables, the numerical sequences of the three types of independent variables are subjected to min-max normalization to eliminate the difference in dimensions. Then, the least squares method is used to solve the multiple linear regression coefficient vector β=(XᵀX)⁻¹XᵀY.

[0056] The method for determining the dependent variable Y (optimal actual water level adjustment) is replaced as follows: Dependent variable Y: Two measured water level values ​​in front of the dam are extracted from the historical flood control records for each flood: the actual water level in front of the dam at the start of the flood control operation, H0, and the stable water level value H1 after the water level in front of the dam recovers to the allowable fluctuation range (±0.3m) of the flood limit water level within 72 hours after the flood. Y = H1 − H0 is defined as the actual effective net water level adjustment in the flood control operation. This value is calculated entirely from the measured data of the water level gauge in front of the dam and does not rely on subjective evaluation. Independent variables X1 (real-time emergency adjustment amplitude) and X2 (monthly control baseline value): These are the calculated values ​​for the corresponding historical flood events. Independent variable X3 (historical time decay coefficient): Taking the start time of the historical flood control operation as the baseline time t0, X3 is defined as e^(−λ·Δt), where λ = 0.01 / day, and Δt is the number of days from t0 at the regression modeling time. During training, X3 for each sample is calculated independently according to the occurrence time of its own flood event. This design enables the model to automatically reduce the weight of long-term experience during the prediction phase based on the time distance between the current moment and different historical events. The regression solution uses the least squares method with L2 regularization (λ_reg=0.01), resulting in a 3×1 weighted matrix. The aforementioned 1200+ samples are divided into training and validation sets in a 7:3 ratio along the time axis. Closed-loop validation: After the regression solution is completed, for each flood in the validation set, the deviation between the model's predicted short-term target water level and the historical optimal dispatch trajectory for the same period is calculated on a time-by-time basis.

[0057] The historical optimal scheduling trajectory refers to the water level time series with the minimum flood control capacity consumption and a final water level deviation of no more than 0.3m among the historical scheduling records for the same flood season (pre-flood season / main flood season / post-flood season), automatically retrieved according to the above dual conditions. If the average deviation of the validation set exceeds 0.5m, the validation set samples are merged into the training set, and the regression solution is re-executed. It should be noted that the above independent variable X3 (historical time decay coefficient) is only used in the training phase of multiple linear regression. Its role is to assign higher training weights to recent flood events and lower training weights to long-term events to reflect the time drift characteristics of the water situation response pattern. After the training phase is completed, the weighting matrix remains unchanged once determined and no longer changes with Δt.

[0058] The three components b1, b2, and b3 of the obtained regression coefficient β are used as weighting coefficients for the emergency adjustment magnitude term, the monthly baseline term, and the time decay coefficient term, respectively. These three weighting coefficients form the main diagonal elements of the dynamic weighting matrix, and the off-diagonal elements are set as the cross-coupling regression coefficients b between the corresponding independent variables. 12 b 13 b 21 b 23 b 31 b 32 The statistical advantage of this method lies in the fact that the regression coefficients naturally satisfy the minimum mean square error criterion, eliminating the need to construct a covariance matrix for variables of different dimensions, and the regression coefficients have a clear partial effect interpretation: b1 represents the water level adjustment amount corresponding to each unit increase in the emergency adjustment range when the monthly baseline and time decay remain constant. When there is a high linear correlation among the independent variables, an L2 regularization term (ridge regression, regularization coefficient λ=0.01) can be introduced into the least squares objective function to ensure the numerical stability of the coefficient solution.

[0059] The weighting of the matrix can be adjusted according to the scheduling priority. In the flood control priority scenario, the weight of the emergency adjustment item can be increased, and in the power generation priority scenario, the weight of the monthly benchmark item can be increased. The adjustment range is limited to 0.8 to 1.2 times the benchmark value.

[0060] The time decay coefficient is defined as follows: with the current scheduling time as the baseline (decay coefficient = 0), the decay coefficient increases linearly by 0.1 for every hour the scheduling time is shifted forward. That is, the decay coefficient for time period t is 0.1 × (t-1), where t = 1, 2, ..., 12. The physical meaning of this coefficient is that the weight of emergency adjustments gradually decreases over time, while the weight of the monthly plan baseline gradually recovers, allowing the water level to smoothly return to the regular scheduling plan after the emergency response. It should be noted that the 'predicted time decay coefficient' described here is used in the weighted correction calculation phase (distinct from X3 in the training phase). Its function is to gradually reduce the influence of the emergency adjustment component and restore the dominant position of the monthly plan baseline when recursively generating the water level sequence for the next 12 time periods, thus achieving a smooth transition from emergency response to regular scheduling. The X3 in the training phase and the decay coefficient in the prediction phase serve different calculation phases, have different functional forms and physical meanings, and are distinguished by different variable names. The training phase uses X3 (historical time decay coefficient), and the prediction phase uses α_t (prediction time decay coefficient), α_t=0.1×(t−1), t=1,2,...,12.

[0061] Next, a weighted correction calculation is performed on the real-time emergency adjustment range and the monthly scheduling benchmark value using a dynamic weighted matrix to obtain the corrected water level sequence. The weighted correction calculation uses the real-time emergency adjustment range, the monthly scheduling benchmark value, and the time decay coefficient to form an initial state vector, which is then multiplied by the dynamic weighted matrix to complete a linear transformation, outputting the water level evolution trajectory for the next 12 time periods, each lasting one hour. The time decay coefficient gradually increases with the progression of the time periods, resulting in larger water level adjustments in the early stages and a gradual return to the monthly benchmark level in the later stages, ensuring a smooth transition in scheduling. The unit of the corrected water level sequence is meters (m), with numerical precision retained to one decimal place, covering the water level control target for the next 12 hours.

[0062] It should be noted that the expansion of the 3×1 vector into a 12-period sequence is as follows: the weighted matrix is ​​multiplied by the sum of the three components of the output 3×1 vector to obtain the water level value for the next period (t=1). This water level value is then used as the new monthly dispatch baseline value. The emergency adjustment range remains unchanged, and the time decay coefficient increases according to the definition. The 3×1 state vector is reconstructed and multiplied by the weighted matrix again to obtain the water level value for the next period (t=2). This process is repeated 12 times to obtain the complete 12-period water level sequence. In each iteration, only the monthly dispatch baseline value and the time decay coefficient are updated; the dynamic weighted matrix remains unchanged throughout the entire calculation.

[0063] The closed-loop verification method for the weighted correction calculation involves calculating the deviation between the 12-period corrected water level sequence output by the weighted correction and the historical optimal dispatch trajectory for the same period, and taking the average absolute deviation of each period as the verification error. When the verification error exceeds 0.5m, it indicates that the weight allocation of the current dynamic weighting matrix fails to fully reflect the actual hydrological response characteristics. In this case, recent historical cases are extracted from the dispatch database, and regression analysis or covariance matrix inversion is performed to update the weighting matrix.

[0064] It should be noted that this closed-loop verification and regression update operation is performed offline, with a single flood event as the basic execution cycle. Specifically, after a complete flood control process, the actual water level response sequence of the flood is extracted from the control log and compared with the predicted output of the weighted matrix. If the verification error exceeds 0.5m, the process data of that flood is added to the training set as new training samples, and the least squares regression solution is re-executed during non-control periods to update the weighted matrix parameters. The updated weighted matrix is ​​deployed before the next flood event, without consuming real-time control computing resources.

[0065] Secondly, the corrected water level sequence is compared with the preset safe operation interval. The safe operation interval is set according to the reservoir dam safety operation specifications. The upper limit of the interval is the safe operating water level corresponding to the flood control limit, with a typical value of 154m, and the lower limit is the lowest operating water level corresponding to the dead water level, with a typical value of 142m. The boundary of this interval is determined by the design safety standards of the hydraulic structures. Exceeding the upper limit will increase the flood control risk, while exceeding the lower limit will affect power generation and water supply capacity. The comparison is performed time-by-time to check whether the corrected water level in each time period falls within the interval, and the time period and the extent of exceeding the limit are recorded.

[0066] It should be noted that the upper limit of the safe operation interval of 154m corresponds to the flood control limit level of the reservoir, and the lower limit of 142m corresponds to the dead water level. These values ​​are determined based on the definitions and calculation methods of characteristic water levels of reservoirs in the Classification of Water Conservancy and Hydropower Projects and Flood Standards (SL252) and the Design Code for Concrete Gravity Dams (SL319), combined with the hydraulic design parameters and flood control operation requirements of this reservoir. Different reservoirs should redetermine the upper and lower limits of this safe operation interval according to their respective design normal storage level, flood control limit level, and dead water level parameters, in accordance with the above-mentioned industry standards.

[0067] Subsequently, a smoothing and peak-shaving process is performed based on the comparison results to obtain the safe water level sequence. If the corrected water level sequence contains periods exceeding the safe scheduling range, a Kalman filter algorithm is used to smooth and smooth the out-of-limit sequence. The Kalman filter sets the state transition matrix and observation matrix to identity matrices, the process noise covariance to 0.01, and the observation noise covariance to 0.04. The filter uses a recursive estimation method to smooth and constrain the abrupt peaks exceeding the limits, limiting the highest water level to below the upper limit of the safe range and the lowest water level to above the lower limit of the safe range, thus obtaining the safe water level sequence.

[0068] If the entire corrected water level sequence falls within the safe dispatch interval, it is directly used as the safe water level sequence. The safe water level sequence is a time series containing timestamps and corresponding target water levels, with a time interval of 1 hour. Control node features are identified from the safe water level sequence to obtain the corresponding short-term target water level values. Control node identification employs an inflection point detection method, calculating the first-order difference of the water level sequence point by point, identifying the trough points where the difference changes from negative to positive and the peak points where it changes from positive to negative, and selecting the peak time corresponding to the flood peak as the water level control node. The water level value corresponding to the control node is the short-term target water level value, representing the highest control water level that needs to be achieved in this round of dispatch.

[0069] The identification process requires that the direction of water level change remains consistent for at least three consecutive time periods before and after the control node to avoid misidentification caused by random fluctuations. For example, if a modified water level sequence reaches a peak of 153m in the 6th hour, and the water level rises and falls in the four consecutive time periods before and after it, then the 6th hour is determined to be the control node, and the short-term target water level value is 153m.

[0070] It should be noted that the weighted correction method is applicable only when hydrological changes are within the normal fluctuation range and water level deviation does not exceed 3 meters. If a severe flood occurs and the water level deviation exceeds this boundary, violating the method's applicable conditions, the pre-set flood control emergency plan will be switched on directly to ensure rapid response under extreme conditions. The obtained short-term target water level value must undergo safety verification; the value must fall within the safe dispatch range. If the verification fails, the weighted correction and peak shaving process will be re-executed to ensure the output meets the dam's safe operation requirements.

[0071] In one implementation, the step of extracting the long-term target water level value from the annual reservoir scheduling plan, calculating the absolute difference between the short-term target water level value and the long-term target water level value, and obtaining the command jump amount includes: The long-term target water level value is obtained by performing feature analysis on the annual plan baseline value in the annual reservoir scheduling plan. The absolute difference is compared with a preset seasonal fluctuation range. If the absolute difference exceeds the seasonal fluctuation range, non-linear amplification processing is performed on the absolute difference to obtain the instruction jump amount. If it does not exceed the seasonal fluctuation range, the absolute difference is directly used as the instruction jump amount. The corresponding jump level is determined by comparing the jump amount of the instruction with a pre-established difference mapping matrix.

[0072] It should be noted that, firstly, the annual planned baseline value in the reservoir's annual dispatch plan is analyzed to obtain the long-term target water level value. The annual planned baseline value is stored in the reservoir dispatch database, divided into different control water level entries according to natural months, corresponding to flood control and water conservancy dispatch targets for different stages, and updated annually before the flood season based on the hydrological forecast. The analysis process reads the monthly entry corresponding to the current dispatch cycle and extracts the water level value used to guide the overall macro-level water resource allocation throughout the year as the long-term target water level value, with the unit being meters (m) and precision retained to one decimal place. This value is jointly determined by the basin flood control plan and the reservoir water conservancy plan, representing the conventional operating water level baseline for the corresponding period. It should be added that the reservoir's annual dispatch plan is stored in the dispatch database in the form of a data table, with the table structure being [Flood Season Stage | Start Date | End Date | Target Water Level Value (m)]. The system compares the current date with the start / end dates of each stage to determine the current flood season stage and extracts the corresponding target water level value as the long-term target water level value. If the current date falls within the overlapping period of two periods, the period with the closer start date will be used.

[0073] Next, the short-term target water level value and the long-term target water level value are subtracted, and the absolute value is taken to obtain the absolute difference. Before the calculation, it is confirmed that the dimensions of the two types of water level values ​​are completely consistent, both in meters (m). The calculation process directly subtracts the two water level values ​​and takes the absolute value, with the output absolute difference value remaining in meters. This difference directly reflects the degree of deviation between the short-term emergency dispatch target and the medium- and long-term routine plan; the larger the difference, the more obvious the divergence between the two types of dispatch targets.

[0074] The absolute difference is compared with the preset seasonal fluctuation range. The seasonal fluctuation range is determined based on the natural fluctuations of water levels in the same period over the past 10 years. It is calculated using the absolute physical difference between the highest and lowest operating water levels within a single day, with a 24-hour natural day as the independent calculation period. All daily absolute physical difference samples for the corresponding month of the historical year are extracted and sorted in ascending order. The fluctuation value at the 90th percentile is taken as the upper limit of the range. The benchmark upper limit is set at 3.0m during the main flood season, which can be adjusted to 4.0m during the dry season and 3.5m during the pre-flood drawdown period. The adjustment range is limited to 0.8 to 1.2 times the benchmark value. The lower limit of the range is fixed at 0m. A difference falling within the range indicates that the water level deviation is within the normal seasonal fluctuation range. A difference exceeding the range indicates that the deviation has exceeded the normal fluctuation level, and there is a risk of command jump.

[0075] Then, the instruction jump amount is calculated based on the comparison results. If the absolute difference D exceeds the upper limit B of the seasonal fluctuation range, a nonlinear amplification process is performed on the absolute difference. This amplification process is implemented using a standard logic stearic sigmoid function, and the complete analytical expression is: In the formula, J represents the final output command jump amount, with dimensions consistent with the absolute difference D, where D is the absolute difference obtained from previous calculations, B is the upper limit of the seasonal fluctuation range, and e is a natural constant. Analytical calculations using this logistic model show that the amplification factor of the absolute difference at the interval boundary is precisely 1.2. When the absolute difference doubles, the amplification factor smoothly increases to 1.45. This nonlinearly amplified dimensionless value is then used as the command jump amount. If the absolute difference D does not exceed the upper limit B of the seasonal fluctuation range, the absolute difference is directly used as the command jump amount, maintaining a linear correspondence between the two. When the water level deviation exceeds the normal seasonal fluctuation range, its impact on the stability of the power plant operation exhibits a nonlinear upward trend. Therefore, it is necessary to increase the weight of the deviation difference through nonlinear amplification to ensure the stability of the unit operation.

[0076] It should be noted that the determination of the three constants 0.52, 2.4, and 1.2 in the logistic sigmoid function is based on the following: 0.52 controls the upper limit of the overall amplification intensity. By statistically analyzing the frequency and amplitude of extreme deviation events with jumps greater than 10m in historical scheduling cases, this value is chosen so that 95% of the cases do not exceed the upper limit of the jump level of 10.0 after amplification; 2.4 controls the steepness of the S-curve. By testing the level differentiation of jumps under different steepness parameters in the range of [0.5, 5.0] with a step size of 0.2, the level differentiation of jumps in different severity scenarios is optimal at 2.4; 1.2 is the amplification start bias, so that the amplification factor starts from 1.2 at the D=B boundary instead of starting from 1.0, to ensure a smooth transition near the boundary.

[0077] It should be noted that the above three parameters were determined through nonlinear least squares fitting on the historical scheduling dataset. With D / B as the independent variable and J / D as the dependent variable, a standard logistic growth function J / D = 1 + a / (1 + e^(−b×(D / B−c))) was used to fit the historical sample scatter points. Here, a = 0.52 (maximum additional amplification factor), b = 2.4 (steepness of the transition zone), and c = 1.2 (midpoint offset of the curve). The fitting results showed a coefficient of determination R² = 0.87 on the validation set, indicating that the model has good explanatory power for historical data. Those skilled in the art can recalibrate the above three parameters based on the measured data from multiple floods at this reservoir, following the same nonlinear least squares fitting process, during actual deployment.

[0078] Then, the instruction jump amount is compared with a pre-established difference mapping matrix to determine the corresponding jump level. The difference mapping matrix is ​​established based on the graded impact of deviations in historical scheduling cases, and the matrix is ​​divided into three continuous jump amount intervals, corresponding to level one, level two, and level three jumps, respectively. The interval boundaries are determined by performing a grid search on a historical dataset containing more than 900 scheduling deviation cases from the past 5 years. The dataset is divided into training and validation sets in a 7:3 ratio to test the scheduling stability index corresponding to different boundaries. Finally, the boundary value with the best stability is selected. The baseline division rule is that 0 to 2.0 corresponds to level one jump, 2.0 to 5.0 corresponds to level two jump, and 5.0 and above corresponds to level three jump. The higher the level, the greater the degree of instruction jump, and the higher the intensity of subsequent smoothing processing required.

[0079] It should be noted that the evaluation metric for grid search, the scheduling stability metric, is defined as the standard deviation of water level adjustments in adjacent time periods of a scheduling command sequence; its physical meaning is the intensity of fluctuations in the scheduling commands. The search space is set as follows: the upper limit of the first-level interval is from 1.0 to 3.0 with a step size of 0.5, and the upper limit of the second-level interval is from 4.0 to 6.0 with a step size of 0.5. After traversing all combinations, the boundary value that minimizes the mean of the scheduling stability metric among more than 900 cases in the validation set is selected, namely 0 to 2.0 (first-level), 2.0 to 5.0 (second-level), and above 5.0 (third-level).

[0080] It is worth noting that after obtaining the jump level, verification needs to be performed in conjunction with the current scheduling scenario. In flood control emergency scenarios, the boundaries of each interval can be increased by 20%, while in regular operation scenarios, the baseline boundaries must be strictly adhered to. This grading method is applicable only if the water level deviation falls within the range of regular scheduling adjustments. If the command jump exceeds 10.0, exceeding the upper limit of the grading, it is directly determined as a special-level jump, and a special smoothing plan is activated to replace the regular processing procedure, ensuring a smooth transition of scheduling commands under extreme conditions. For example, in a certain scenario, the absolute difference is 6.5m, exceeding the upper limit of the seasonal fluctuation range of 3.0m. After nonlinear amplification, the command jump is 9.58m, which is determined to be a level three jump according to the mapping matrix.

[0081] Obtain the time node associated with the short-term target water level value; The interpolation step size and interpolation interval are determined based on the short-term target water level value and the time node; The short-term target water level value is linearly interpolated within the interpolation interval according to the interpolation step size to obtain a smooth water level sequence;

[0082] The mapping relationship of smoothing parameters corresponding to different jump levels is predefined by the difference mapping matrix, as follows: The baseline step size is the sampling step size predicted by LSTM in step S101 (6 sampling points, i.e., 6 hours). A higher jump level indicates a more drastic deviation between the short-term and long-term target water levels. In this case, the water level adjustment rate should be slowed down (by reducing the interpolation step size and extending the interpolation interval) to avoid frequent and large-scale sluice gate operations that could impact the generating units and dam. The above mapping relationship is determined based on statistical analysis of the optimal smoothing parameters under different jump amplitudes in historical scheduling and can be fine-tuned within a range of ±20% during actual operation.

[0083] It should be noted that the process first compares the command jump amount with the jump judgment threshold, while simultaneously obtaining the time nodes associated with the short-term target water level value. The jump judgment threshold is determined by performing a grid search on the historical scheduling dataset. The dataset is compiled from nearly 5 years of power plant operation records, containing stability index data such as unit vibration and sluice gate wear under different water level adjustment ranges, totaling over 800 valid samples, which are divided into training and validation sets in a 7:3 ratio to prevent overfitting. Smooth scheduling and operational stability evaluation are performed under three candidate thresholds: 4, 5, and 6, respectively. Finally, the candidate value 5, which optimizes the overall operational stability of the power plant, is selected as the fixed benchmark threshold. For scenarios with high stability requirements, the threshold can be lowered to 4, and for scenarios with rapid response requirements, it can be raised to 6, with the adjustment range limited to 0.8 to 1.2 times the benchmark value. The time nodes are extracted from the timestamp sequence of the previously generated safe water level sequence, containing the current scheduling start time and the target time corresponding to the short-term target water level, with a unified time resolution of 1 hour.

[0084] It should be noted that the input features for each sample group consist of three components: the command jump amount, the target adjustment range, and the water level fluctuation rate. The stability score S for each sample group is calculated by extracting the unit vibration acceleration and gate wear from the operating records according to the above definition. The water level adjustment range of the more than 800 sample groups is distributed in the range of 1m to 8m, covering the entire range from small fine-tuning to large-scale emergency dispatching. There are approximately 200 sample groups in every 2m interval, ensuring that the training data for grid search has a representative distribution.

[0085] The method for quantifying the overall operational stability of the power plant is as follows: Stability score S = 0.5 × A_vibration + 0.5 × A_wear, where A_vibration is the normalized value of the peak vibration acceleration of the unit (normalized to [0,1] based on the vibration acceleration under rated operating conditions), and A_wear is the normalized value of the cumulative wear per unit stroke of the sluice gate screw (normalized to [0,1] based on the average annual allowable wear during the gate's design life). A smaller S value indicates better stability. Under the three candidate values ​​4, 5, and 6, the mean S values ​​were 0.32, 0.28, and 0.35, respectively. Candidate value 5 had the lowest mean S value, therefore, 5 was selected as the benchmark threshold.

[0086] It should be noted that the selection of the three candidate values ​​{4, 5, 6} is based on the statistical analysis of the distribution characteristics of instruction jump amounts in over 800 scheduling cases over the past 5 years. Cases with jump amounts in the range of 4 to 6 account for 78% of the total, indicating that this range is the most common jump amount range in this scheme. Therefore, the candidate values ​​focus on this range. Performing a grid search within this candidate range can cover the judgment requirements of most actual operating scenarios. The selection of the three candidate values, based on covering 78% of common jump amount scenarios, uses uniform sampling with a step size of 1, where a step size of 1 corresponds to the baseline control accuracy of the jump amount. If the distribution characteristics of the jump amount in actual operation vary significantly due to different reservoir sizes or scheduling strategies, the candidate value range can be scaled proportionally, but a grid density of at least 3 candidate values ​​must be maintained.

[0087] Next, the interpolation step size and interpolation interval are determined based on the short-term target water level value and the time node. The starting point of the interpolation interval is the actual reservoir water level corresponding to the current moment, and the ending point is the short-term target water level value corresponding to the target moment. The time span of the interval is the difference between the two time nodes. The interpolation step size is set to 1 hour, consistent with the time resolution of conventional dispatching instructions. The step size can be adjusted according to the control precision of the sluice gate actuator. In high-precision and refined control scenarios, it can be shortened to 0.5 hours, and in conventional operation scenarios, it can be extended to 2 hours. The adjustment range is limited to 0.5 to 2 times the baseline value. The physical basis for this setting is that a uniform step size can ensure a continuous and smooth water level transition process, avoiding water hammer and unit load fluctuations caused by sudden and large adjustments.

[0088] Secondly, linear interpolation is performed on the short-term target water level values ​​within the interpolation interval according to the interpolation step size to obtain a smooth water level sequence. The linear interpolation uses a first-order linear interpolation method, uniformly dividing the time nodes within the interpolation interval according to the interpolation step size. The water level value of each intermediate node is calculated by weighting the water levels of the two endpoints before and after it according to their time proportions. During the calculation process, all water level values ​​are uniformly expressed in meters (m), and the time unit is uniformly expressed in hours (h), maintaining dimensional consistency throughout. The generated smooth water level sequence includes all interpolation nodes from the start time to the target time, with water level values ​​changing uniformly over time and no abrupt jumps. For example, if the current water level is 145m, the short-term target water level is 151m, the time span is 6 hours, and the step size is 1 hour, the interpolated water levels at each node are 146m, 147m, 148m, 149m, 150m, and 151m respectively.

[0089] Then, the end node of the smoothed water level sequence is extracted. It should be noted that if the instruction jump amount in the preceding comparison is not greater than the jump judgment threshold, the above time-domain smoothing process is skipped directly, and the short-term target water level value is directly used as the final smoothed target water level value. This avoids invalid calculations and improves the response speed of control commands. That is, the target time corresponding to the original short-term target water level is directly extracted as the water level value of that node as the smoothed target water level value. Deviation verification is performed synchronously during the parsing process. The deviation between the end node water level and the original short-term target water level should be less than 0.1m to ensure that the smoothing process only adjusts the water level transition process and does not change the final control target. The unit of the smoothed target water level value is meters (m), and the numerical precision is retained to one decimal place, consistent with the precision of the previous water level parameters.

[0090] It is worth noting that the linear interpolation smoothing method is applicable only when the water level change rate does not exceed 1 m per hour, falling within the scope of routine scheduling adjustments. In the event of an emergency scheduling operation during a major flood, where the water level change rate exceeds this boundary condition, a piecewise nonlinear interpolation method is used. The initial adjustment rate is faster to ensure flood control safety, while the rate gradually decreases in the later stages to maintain stable operation and ensure the rationality of scheduling under extreme conditions. The obtained smoothed target water level value must be verified within a safe operating range; the value must fall within the safe operating water level range of the dam. If the verification fails, the interpolation parameters and range are readjusted to ensure that the output always conforms to the safe operation specifications of hydraulic structures.

[0091] In step S105, generating a flood control scheduling execution sequence based on the smoothed target water level value and outputting the flood control scheduling execution sequence to the sluice gate control terminal includes: Based on the smoothed target water level value, match the corresponding scheduling action and add a timestamp to generate a flood control scheduling execution sequence; The flood control scheduling execution sequence is subjected to scale transformation and resampling processing to obtain the connection control command; The connection control command is output to the sluice gate control terminal so that the sluice gate control terminal can parse and convert it into a physical drive signal.

[0092] It should be noted that the scheduling actions are matched based on the reservoir's discharge capacity curve, which is calibrated by the dam's hydraulic design parameters, clearly defining the correspondence between discharge flow rates at different water levels and gate openings. A drop in water level corresponds to a gate opening action, and a rise in water level corresponds to a gate closing action. The gate opening adjustment per unit water level change is calculated using the discharge formula, and all mechanical and geometric parameters maintain consistent dimensions. Timestamps are in the format of year, month, day, hour, minute, and second, with time precision down to the minute. Each scheduling action is bound to a unique execution time, and these actions are arranged chronologically to form a complete flood control scheduling execution sequence. The initial time interval of the sequence is consistent with the smoothed water level sequence at 1 hour, but can be adjusted according to the desired scheduling precision, with the adjustment range limited to 0.5 to 2 times the baseline value. It should be noted that the specific conversion process from the target water level to the gate opening is a technical component of this method. Based on the reservoir discharge capacity curve, after determining the difference between the current upstream water level and the target upstream water level, the corresponding discharge difference on the curve is retrieved. Then, according to the gate opening-discharge relationship curve (obtained from hydraulic model tests or on-site calibration), the discharge difference is converted into the target gate opening value (unit: cm). The water level-storage capacity curve, discharge capacity curve, and gate opening-discharge relationship curve upon which this conversion process relies are all deterministic hydraulic design parameters of the reservoir, which can be obtained from the reservoir design report, hydraulic model test report, or gate factory calibration documents.

[0093] Next, the flood control scheduling execution sequence undergoes scale transformation and resampling to obtain the connecting control commands. The purpose of scale transformation is to match the time resolution difference between the scheduling decision-making layer and the equipment execution layer. The resampling adopts a downsampling method, using the response cycle of the sluice gate control terminal as the window length, and extracting the cumulative water level adjustment within each window as the control target of a single command. The window length is set to 15 minutes, corresponding to the mechanical response cycle of a conventional sluice gate actuator. In high-frequency operation scenarios, it can be shortened to 10 minutes, and in low-speed heavy-load scenarios, it can be extended to 30 minutes. The adjustment range is limited to 0.7 to 2 times the baseline value. The resampling process simultaneously retains the trend characteristics of water level adjustment, avoiding frequent start-stop operations caused by splitting continuous actions and reducing mechanical wear on the gate.

[0094] It should be noted that the above resampling process essentially upsamples the scheduling decision instructions at the 1-hour granularity to execution instructions at the 15-minute granularity. The total water level adjustment within each 1-hour period is distributed equally among the four 15-minute windows contained within that hour, meaning that the water level adjustment in each 15-minute window is one-quarter of the total adjustment for that hour. The reason for using equal distribution is that the water level adjustment process within a 1-hour scale is mainly controlled by the constant speed of the gate, and the water level change is approximately linear. Equal distribution can ensure the uniformity and predictability of the execution instructions.

[0095] The control commands are output to the sluice gate control terminal. The output channel uses an industrial control bus for transmission, and the communication protocol follows standard industrial control specifications. The command frame contains four fields: address code, control code, data bits, and check bits. A cyclic redundancy check (CRC) method is used for verification, with a check bit length of 16 bits to ensure data integrity and accuracy during transmission. After receiving the command, the terminal first performs a verification operation. If the verification passes, it proceeds to the parsing process; if the verification fails, it returns a retransmission request until a correct command is received or the three-retransmission limit is reached, triggering a communication alarm.

[0096] Subsequently, the sluice gate control terminal parses and converts the connection control commands into physical drive signals. The parsing process first breaks down the various fields of the command frame, extracting the control action type and target opening parameters, and then converts the opening parameters into motor drive duration. The drive signal uses a DC level signal, with a typical drive voltage of 24V. The drive current matches the rated parameters of the winch motor; gate lifting corresponds to a positive-phase output, and gate lowering corresponds to an inverted-phase output. The output duration is proportional to the opening adjustment. Throughout the conversion process, dimensional matching is maintained: opening is in cm, duration is in seconds, and the conversion factor is obtained from the motor speed and transmission ratio calibration.

[0097] The specific relationship for converting the opening parameter into drive time is: t_drive = ΔG / [n × p ÷ 60], where t_drive is the drive time in seconds (s), ΔG is the opening adjustment amount in centimeters (cm), n is the rated motor speed in r / min, and p is the transmission system pitch in cm / r. The typical rated motor speed is 1500 r / min, and the transmission system pitch depends on the winch drum diameter and reduction ratio, with a typical value of 0.5 cm per revolution. Taking a single opening adjustment of 5 cm as an example, the drive time is approximately 0.4 seconds.

[0098] Then, the sluice gate control terminal executes the drive signal and updates the operating status. The drive signal directly acts on the sluice gate's motor driver, controlling the winch motor to operate and causing the gate to adjust its opening by a set range. The terminal's built-in opening position sensor collects the actual gate position in real time at a frequency of 1Hz, and transmits data such as the current opening, operating status, and fault codes back to the dispatching terminal, forming a closed-loop verification circuit. If the relative deviation between the actual opening and the command target exceeds 0.5%, a fine-tuning command is triggered for correction to ensure the execution accuracy of water level control. This deviation threshold is set according to the mechanical transmission accuracy of the gate; for high-precision hydraulic gates, it can be lowered to 0.3%, and for old maintenance gates, it can be raised to 0.8%, with the adjustment range limited to 0.6 to 1.6 times the reference value.

[0099] It is worth noting that this scale conversion and drive control method is applicable only when the gate is in normal operating condition, without mechanical jamming, hydraulic leakage, or other faults, and the water level adjustment range is within the allowable range of single-round scheduling. If the gate action response timeout or opening deviation continuously exceeds the limit, exceeding the applicable boundary of the method, the automatic scheduling command output will be stopped immediately, a fault alarm will be triggered, and the system will switch to manual control mode to ensure equipment and operational safety under extreme conditions.

[0100] In this scheme, the determination of the applicable boundary is automatically executed. The specific rules include: the current water level in front of the dam deviates from the safe dispatch range (142~154m) and continues for more than 30 minutes; the spatial variation coefficient exceeds the threshold of 0.3 for three consecutive sampling periods and the radar forecast data is unavailable; the LSTM prediction model fails to converge for eight consecutive iterations (loss fluctuation ≥ 0.002).

[0101] When any of the judgment conditions is triggered, an alarm message is automatically generated and highlighted on the dispatch interface. Simultaneously, a suggested switchover state is entered; that is, until operator confirmation, the current smooth dispatch continues but no new forecast value input is accepted. After operator confirmation, the system switches to a preset flood control emergency plan (such as following a fixed discharge dispatch table) or switches to manual control mode. If the operator does not respond within 15 minutes of the alarm being issued, a safe switchover is automatically executed. This three-stage design retains the necessary redundancy for manual decision-making in flood control dispatching while preventing response failures due to communication interruptions or personnel absence.

[0102] In one implementation, the step of performing scale transformation and resampling processing on the flood control scheduling execution sequence to obtain the coherent control instructions includes: Extract the action execution frequency from the flood control scheduling execution sequence; The resampling time window is determined based on the frequency of the action execution and the mechanical response cycle of the sluice gate control terminal; The flood control scheduling execution sequence is aggregated within the resampling time window to obtain a scale-transformed sequence; The scale conversion sequence is encapsulated using a communication protocol to obtain connection control instructions.

[0103] It should be noted that, firstly, the execution frequency of actions in the flood control scheduling execution sequence is extracted. The flood control scheduling execution sequence contains hourly water level control targets and corresponding gate action commands. The action execution frequency is the total number of gate opening adjustments per unit time, measured in times per hour. The extraction process iterates through the timestamps of all action commands within the sequence, counts the total number of action triggers within a continuous 6-hour interval, and divides the total number by the interval duration to obtain the average execution frequency. This frequency can intuitively reflect the intensity of actions in the current scheduling plan, providing a quantitative basis for the dynamic setting of the subsequent resampling window.

[0104] Next, the resampling time window is determined based on the frequency of action execution and the mechanical response cycle of the sluice gate control terminal. The baseline value of the resampling time window is determined based on the physical boundaries of the sluice gate's mechanical operation. The shortest mechanical response time for a conventional winch-type sluice gate to complete a single opening adjustment is approximately 15 minutes. Too short an instruction interval will cause frequent start-ups and shutdowns of the equipment, exacerbating mechanical wear and affecting water flow stability. Therefore, the baseline resampling time window is set to 15 minutes. For intensive scheduling scenarios with an action execution frequency higher than 8 times per hour, the window can be extended to 20 minutes. For smooth scheduling scenarios with an action execution frequency lower than 2 times per hour, the window can be shortened to 10 minutes. The adjustment range is limited to 0.7 to 1.3 times the baseline value.

[0105] Secondly, the flood control scheduling execution sequence is aggregated within the resampling time window to obtain a scale-transformed sequence. Aggregation employs a method of merging cumulative adjustments within the window, algebraically summing all gate opening adjustment commands within a single window. Opening actions are recorded as positive values, and closing actions as negative values. The merged result serves as the target adjustment amplitude for a single aggregated command. The aggregation process retains the window start timestamp as the command execution time, ensuring strict alignment between the time node and the mechanical response cycle. This aggregation method can convert high-frequency scheduling decision commands into low-frequency control commands adapted to the equipment's execution capabilities, avoiding mechanical fatigue and downstream river flow fluctuations caused by frequent gate opening and stopping.

[0106] Subsequently, a stationarity check is performed on the amplitudes of adjacent commands in the scale conversion sequence. The check threshold is determined based on the stationarity requirements of the sluice gate's mechanical operation. When the difference in opening adjustment amplitude between adjacent commands exceeds 15% of the gate's maximum stroke, it will cause water flow turbulence and increased equipment vibration. Therefore, the baseline check threshold is set to 15% of the maximum stroke. For sluice gates at drinking water sources with high stationarity requirements, the threshold can be lowered to 12%, and for emergency flood discharge scenarios during flood season, it can be raised to 18%, with the adjustment range limited to 0.8 to 1.2 times the baseline value. Commands that fail the check are automatically split into two consecutive windows for execution, ensuring that the adjustment amount of a single command always falls within the allowable range for stable mechanical operation.

[0107] Then, the scale conversion sequence is encapsulated using a communication protocol to obtain the connection control command. The communication protocol adopts the standard industrial control protocol, and the encapsulation process sequentially adds four fields: device address code, function code, opening data bits, and check bits. The device address code is used to distinguish different control terminals in multi-gate scenarios, the function code identifies the current command as an opening adjustment type, and the opening data bits record the aggregated target opening value in cm. Cyclic redundancy check (CRC) is used for verification, with a check bit length of 16 bits, capable of detecting single-bit and multi-bit errors during transmission. The encapsulated command frame has a fixed length, fully adapting to the transmission format requirements of the industrial control bus.

[0108] Finally, the encapsulated control commands are first stored in the transmission buffer and queued in chronological order for delivery. The transmission channel uses industrial Ethernet or a private wireless network, and the transmission cycle is consistent with the resampling time window. This scaling method is applicable only if the gate is in normal working condition, without mechanical jamming or hydraulic system leakage. If an equipment malfunction is detected that exceeds the applicable boundaries, the automatic aggregation and encapsulation process is paused, and the system switches to a single command sequential delivery mode to ensure control safety under extreme conditions.

[0109] In summary, this invention discloses a method that includes acquiring historical rainfall and reservoir inflow sequences for the watershed, obtaining real-time response water level predictions through feature fusion and time-series prediction; calculating the deviation between the predictions and the flood control water level threshold, matching the flood peak evolution characteristics within the risk interval to determine the real-time emergency adjustment range; weighted correction of the monthly scheduling benchmark to obtain the short-term target water level, comparing it with the long-term target to calculate the jump amount and performing time-domain smoothing; and generating a flood control scheduling execution sequence and outputting it to the sluice gate control terminal. This method achieves multi-scale dynamic control of the flood control water level and smooth command connection, balancing emergency response to sudden floods with medium- and long-term scheduling continuity, effectively balancing flood control safety and water resource utilization efficiency, and meeting the core requirements of watershed flood control scheduling for decision-making continuity and operational safety.

[0110] The second embodiment of the present invention provides a phased dynamic flood control water level regulation system for a hydropower station, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of the phased dynamic flood control water level regulation method for a hydropower station as described above.

[0111] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A method for phased dynamic flood control water level regulation in a hydropower station, characterized in that, include: The historical rainfall sequence of the watershed and the current inflow sequence of the reservoir are obtained and feature fusion and time series prediction are performed to obtain the real-time response water level prediction value. The difference between the real-time response water level prediction value and the preset flood limit water level threshold is calculated to obtain the initial water level deviation value. If it is within the preset risk deviation range, the real-time emergency adjustment range is determined based on the initial water level deviation value. If it is not within the range, the preset benchmark value is used as the real-time emergency adjustment range. Monthly scheduling baseline values ​​are extracted from the annual reservoir scheduling plan. The monthly scheduling baseline values ​​are then weighted and corrected according to the real-time emergency adjustment range to obtain short-term target water level values. Long-term target water level values ​​are extracted from the annual reservoir scheduling plan. The absolute difference between the short-term target water level values ​​and the long-term target water level values ​​is calculated to obtain the command jump amount. The instruction jump amount is compared with a preset jump judgment threshold. If it is greater than the threshold, the short-term target water level value is smoothed in the time domain to obtain a smoothed target water level value. If it is less than the threshold, the short-term target water level value is used as the smoothed target water level value. A flood control scheduling execution sequence is generated based on the smoothed target water level value, and the flood control scheduling execution sequence is output to the sluice gate control terminal.

2. The method for phased dynamic flood control water level regulation of a hydropower station according to claim 1, characterized in that, The process of obtaining historical rainfall sequences and current inflow sequences from the watershed, performing feature fusion and time-series prediction processing, to obtain real-time response water level prediction values ​​includes: Interpolation and normalization are performed on the historical rainfall sequence and the inflow sequence to obtain a standard hydrological time series; A multidimensional hydrological feature matrix is ​​constructed based on the standard hydrological time series. Perform sliding window segmentation on the multidimensional hydrological feature matrix to obtain a hydrological state submatrix; Temporal correlation features are extracted from the water condition state submatrix to obtain a temporal state vector; Spatial mapping and regression prediction processing are performed on the time-series state vector to obtain the real-time response water level prediction value.

3. The method for phased dynamic flood control water level regulation of a hydropower station according to claim 1, characterized in that, If the water level is within a preset risk deviation range, the real-time emergency adjustment range is determined based on the initial water level deviation value, including: Obtain the rainfall runoff rate corresponding to the initial water level deviation value, and construct an initial hydrological feature set; The evolution feature matrix is ​​obtained by matching the pre-acquired historical flood peak evolution sequence with the initial hydrological feature set; Perform a feature space mapping transformation on the initial water level deviation value and the evolution feature matrix to obtain a spatial feature vector; Perform regression fitting calculation on the spatial feature vector to obtain the regression fitting gradient; The real-time emergency adjustment range is obtained by superimposing the regression fitting gradient with the pre-acquired discharge capacity benchmark.

4. The method for phased dynamic flood control water level regulation of a hydropower station according to claim 1, characterized in that, The process of extracting monthly scheduling baseline values ​​from the annual reservoir scheduling plan, and then weighting and correcting these monthly scheduling baseline values ​​according to the real-time emergency adjustment range to obtain short-term target water level values ​​includes: A dynamic weighted matrix is ​​constructed based on the real-time emergency adjustment range and the monthly scheduling benchmark value; The corrected water level sequence is obtained by performing a weighted correction calculation on the real-time emergency adjustment range and the monthly scheduling benchmark value using the dynamic weighting matrix. The corrected water level sequence is compared with a preset safe scheduling range. If the corrected water level sequence exceeds the safe scheduling range, the corrected water level sequence is smoothed and peak-shaving processed to obtain a safe water level sequence. If it does not exceed the safe scheduling range, the corrected water level sequence is directly used as the safe water level sequence. Peak control node features are identified in the safe water level sequence to obtain the corresponding short-term target water level value.

5. The method for phased dynamic flood control water level regulation of a hydropower station according to claim 1, characterized in that, The process of extracting the long-term target water level value from the annual reservoir scheduling plan, calculating the absolute difference between the short-term target water level value and the long-term target water level value, and obtaining the command jump amount includes: The long-term target water level value is obtained by performing feature analysis on the annual plan baseline value in the annual reservoir scheduling plan. The absolute difference is obtained by subtracting the short-term target water level value from the long-term target water level value and taking the absolute value. The absolute difference is compared with a preset seasonal fluctuation range. If the absolute difference exceeds the seasonal fluctuation range, non-linear amplification processing is performed on the absolute difference to obtain the instruction jump amount. If it does not exceed the seasonal fluctuation range, the absolute difference is directly used as the instruction jump amount. The corresponding jump level is determined by comparing the jump amount of the instruction with a pre-established difference mapping matrix.

6. The method for phased dynamic flood control water level regulation of a hydropower station according to claim 1, characterized in that, The step of performing time-domain smoothing on the short-term target water level value to obtain a smoothed target water level value includes: Obtain the time node associated with the short-term target water level value; The interpolation step size and interpolation interval are determined based on the short-term target water level value and the time node; The short-term target water level value is linearly interpolated within the interpolation interval according to the interpolation step size to obtain a smooth water level sequence; The smoothed water level sequence is parsed using control nodes to obtain the smoothed target water level value.

7. The method for phased dynamic flood control water level regulation of a hydropower station according to claim 1, characterized in that, The step of generating a flood control scheduling execution sequence based on the smoothed target water level value and outputting the flood control scheduling execution sequence to the sluice gate control terminal includes: Based on the smoothed target water level value, match the corresponding scheduling action and add a timestamp to generate a flood control scheduling execution sequence; The flood control scheduling execution sequence is subjected to scale transformation and resampling processing to obtain the connection control command; The connection control command is output to the sluice gate control terminal so that the sluice gate control terminal can parse and convert it into a physical drive signal.

8. The method for phased dynamic flood control water level regulation of a hydropower station according to claim 7, characterized in that, The process of performing scale transformation and resampling on the flood control scheduling execution sequence to obtain the connecting control instructions includes: Extract the action execution frequency from the flood control scheduling execution sequence; The resampling time window is determined based on the frequency of the action execution and the mechanical response cycle of the sluice gate control terminal; The flood control scheduling execution sequence is aggregated within the resampling time window to obtain a scale-transformed sequence; The scale conversion sequence is encapsulated using a communication protocol to obtain connection control instructions.

9. A phased dynamic flood control water level regulation system for a hydropower station, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the phased dynamic flood control water level regulation method for hydropower stations as described in any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the phased dynamic flood control water level regulation method for hydropower stations as described in any one of claims 1 to 8.