Reservoir water flow prediction model construction method and reservoir water flow prediction method

Through the combination of modal decomposition and long-short-term memory network, a target water flow prediction model is constructed, which solves the problem of low prediction accuracy of existing hydrological models, realizes automated reservoir water flow prediction, and improves prediction accuracy and adaptability.

CN117744884BActive Publication Date: 2024-09-10LUBUGE HYDROELECTRIC POWER PLANT OF PEAK & FREQUENCY REGULATION POWER PLANT CHINA SOUTHERN POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311849087.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-09-10
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

Existing hydrological models have many parameters in reservoir water flow prediction and are related to the external environment, resulting in low prediction accuracy, requiring manual parameter adjustment, and unable to effectively respond to environmental changes.

Method used

Using a method that combines modal decomposition models and long-short-term memory networks, modal decomposition and optimization are carried out through historical water flow data, a target modal decomposition model and a water flow prediction model are constructed, and parameters are automatically adjusted to improve prediction accuracy.

Benefits of technology

It improves the accuracy of reservoir water flow prediction, reduces the need for manual parameter adjustment, and can effectively learn and predict water flow changes under different environmental and time conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117744884B
    Figure CN117744884B
Patent Text Reader

Abstract

The present application relates to a method for constructing a reservoir water flow prediction model, a reservoir water flow prediction method, a device for constructing a reservoir water flow prediction model, a reservoir water flow prediction device, a computer device, a storage medium and a computer program product. The method comprises: initializing a modal decomposition model and a water flow prediction model; based on the historical water flow of the reservoir in a historical time period, updating the modal decomposition model obtained by initialization to obtain a target modal decomposition model corresponding to the reservoir; performing modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model; based on multiple sub-water flow signals of the historical water flow, updating the water flow prediction model obtained by initialization to obtain a target water flow prediction model corresponding to the reservoir. The use of this method can improve the prediction accuracy of the reservoir water flow.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of water flow prediction, and in particular to a method for constructing a reservoir water flow prediction model, a reservoir water flow prediction method, a device for constructing a reservoir water flow prediction model, a reservoir water flow prediction device, computer equipment, storage media and computer program products. Background Art

[0002] Hydropower is the main source of green energy. For hydropower stations, accurate reservoir water flow prediction can ensure the safe operation of the hydropower station and the power generation efficiency of the hydropower station. If the water flow prediction of the upstream reservoir is inaccurate, the error will be superimposed on the downstream reservoir, resulting in insufficient power generation or increased scheduling difficulty of the downstream hydropower station. Therefore, it is necessary to predict the reservoir water flow.

[0003] In the prior art, hydrological models, such as the Xin'anjiang model, are often used to predict the water flow of a reservoir. However, the hydrological model has many parameters, and the parameters of the hydrological model are often related to the external environment of the reservoir, such as season, weather, water discharge from upstream reservoirs, power generation demand of hydropower stations, etc. Once the external environment of the reservoir changes, it is necessary to rely on manual experience to adjust the parameters of the hydrological model. Therefore, the prediction accuracy of the reservoir water flow based on the hydrological model is low. Summary of the invention

[0004] Based on this, it is necessary to address the technical problem of low prediction accuracy of reservoir water flow mentioned above and provide a method for constructing a reservoir water flow prediction model, a reservoir water flow prediction method, a device for constructing a reservoir water flow prediction model, a reservoir water flow prediction device, computer equipment, storage medium and computer program product that can improve the prediction accuracy of reservoir water flow.

[0005] In a first aspect, the present application provides a method for constructing a reservoir water flow prediction model, comprising:

[0006] Initialize the modal decomposition model and water flow prediction model;

[0007] Based on the historical water flow of the reservoir in the historical time period, the initialized modal decomposition model is updated to obtain a target modal decomposition model corresponding to the reservoir;

[0008] Performing modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model;

[0009] Based on the multiple sub-water flow signals of the historical water flow, the initialized water flow prediction model is updated to obtain a target water flow prediction model corresponding to the reservoir.

[0010] In one embodiment, the modal decomposition model obtained by initialization is a variational modal decomposition model;

[0011] The method of updating the initialized modal decomposition model based on the historical water flow of the reservoir in the historical time period to obtain the target modal decomposition model corresponding to the reservoir includes:

[0012] The water flow signal of the historical water flow is used as input information and supervision information, and the frost optimization algorithm is adopted to determine the target decomposition parameters of the variational modal decomposition model corresponding to the reservoir; the target decomposition parameters include at least one of the modal quantity parameter and the bandwidth constraint parameter of the variational modal decomposition model, the modal quantity parameter is used to characterize the number of the multiple center frequencies, and the bandwidth constraint parameter is used to characterize the bandwidth corresponding to each center frequency;

[0013] Based on the target decomposition parameters, a target variational modal decomposition model is obtained as the target modal decomposition model corresponding to the reservoir.

[0014] In one of the embodiments, the water flow prediction model obtained by the initialization includes a long short-term memory network;

[0015] The historical time period includes a plurality of continuous historical time intervals, each of which has a corresponding first historical water flow and a second historical water flow, the first historical water flow is the historical water flow in each of the historical time intervals, and the second historical water flow is the historical water flow in the next historical time interval of each of the historical time intervals;

[0016] The method of updating the initialized water flow prediction model based on the multiple sub-water flow signals of the historical water flow to obtain the target water flow prediction model corresponding to the reservoir includes:

[0017] Using a plurality of sub-water flow signals of a first historical water flow corresponding to each historical time interval as input information, using a water flow signal of a second historical water flow corresponding to each historical time interval as supervision information, and using a sparrow search algorithm to determine a target network parameter of the long short-term memory network corresponding to the reservoir;

[0018] Based on the target network parameters, a target long short-term memory network is obtained;

[0019] Based on the target long short-term memory network, a target water flow prediction model corresponding to the reservoir is obtained.

[0020] In one embodiment, the method further comprises:

[0021] Obtain the initial water flow data of the reservoir in the historical time period;

[0022] The initial water flow data is subjected to data preprocessing to obtain the historical water flow of the reservoir within the historical time period; the data preprocessing includes at least one of data cleaning and data filling.

[0023] In a second aspect, the present application also provides a reservoir water flow prediction method, comprising:

[0024] Obtain the water flow of the reservoir within a preset time interval;

[0025] Performing modal decomposition processing on the water flow signal of the water flow through the modal decomposition model corresponding to the reservoir to obtain multiple sub-water flow signals of the water flow at multiple center frequencies corresponding to the modal decomposition model;

[0026] Multiple sub-water flow signals corresponding to the water flow are input into the water flow prediction model corresponding to the reservoir to obtain a predicted water flow signal of the reservoir after the preset time interval; the predicted water flow signal is used to characterize the predicted water flow of the reservoir after the preset time interval; the water flow prediction model corresponding to the reservoir is constructed by the method for constructing a reservoir water flow prediction model in any of the above embodiments.

[0027] In a third aspect, the present application also provides a device for constructing a reservoir water flow prediction model, comprising:

[0028] Model initialization module, used to initialize the modal decomposition model and water flow prediction model;

[0029] A first updating module is used to update the initialized modal decomposition model based on the historical water flow of the reservoir in the historical time period to obtain a target modal decomposition model corresponding to the reservoir;

[0030] A modal decomposition module, used to perform modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model;

[0031] The second updating module is used to update the initialized water flow prediction model based on the multiple sub-water flow signals of the historical water flow to obtain a target water flow prediction model corresponding to the reservoir.

[0032] In a fourth aspect, the present application also provides a reservoir water flow prediction device, comprising:

[0033] A flow acquisition module is used to obtain the water flow of the reservoir within a preset time interval;

[0034] A modal decomposition module, used to perform modal decomposition processing on the water flow signal of the water flow through the modal decomposition model corresponding to the reservoir, so as to obtain a plurality of sub-water flow signals of the water flow at a plurality of center frequencies corresponding to the modal decomposition model;

[0035] A flow prediction module is used to input multiple sub-water flow signals corresponding to the water flow into a water flow prediction model corresponding to the reservoir to obtain a predicted water flow signal of the reservoir after the preset time interval; the predicted water flow signal is used to characterize the predicted water flow of the reservoir after the preset time interval; the water flow prediction model corresponding to the reservoir is constructed by the construction method of the reservoir water flow prediction model in any of the above embodiments.

[0036] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0037] Initialize the modal decomposition model and water flow prediction model;

[0038] Based on the historical water flow of the reservoir in the historical time period, the initialized modal decomposition model is updated to obtain a target modal decomposition model corresponding to the reservoir;

[0039] Performing modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model;

[0040] Based on the multiple sub-water flow signals of the historical water flow, the initialized water flow prediction model is updated to obtain a target water flow prediction model corresponding to the reservoir.

[0041] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0042] Initialize the modal decomposition model and water flow prediction model;

[0043] Based on the historical water flow of the reservoir in the historical time period, the initialized modal decomposition model is updated to obtain a target modal decomposition model corresponding to the reservoir;

[0044] Performing modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model;

[0045] Based on the multiple sub-water flow signals of the historical water flow, the initialized water flow prediction model is updated to obtain a target water flow prediction model corresponding to the reservoir.

[0046] In a seventh aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0047] Initialize the modal decomposition model and water flow prediction model;

[0048] Based on the historical water flow of the reservoir in the historical time period, the initialized modal decomposition model is updated to obtain a target modal decomposition model corresponding to the reservoir;

[0049] Performing modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model;

[0050] Based on the multiple sub-water flow signals of the historical water flow, the initialized water flow prediction model is updated to obtain a target water flow prediction model corresponding to the reservoir.

[0051] The above-mentioned method for constructing a reservoir water flow prediction model, a reservoir water flow prediction method, a device for constructing a reservoir water flow prediction model, a reservoir water flow prediction device, a computer device, a storage medium and a computer program product first initialize the modal decomposition model and the water flow prediction model; then, based on the historical water flow of the reservoir in the historical time period, the initialized modal decomposition model is updated to obtain a target modal decomposition model corresponding to the reservoir; then, through the target modal decomposition model, the water flow signal of the historical water flow is modally decomposed to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model; finally, based on multiple sub-water flow signals of the historical water flow, the initialized water flow prediction model is updated to obtain the target water flow prediction model corresponding to the reservoir. In this way, by updating the initialized modal decomposition model and the initialized water flow prediction model based on the historical water flow of the reservoir in the historical time period, the modal decomposition model and the water flow prediction model can fully learn the changes in the water flow of the reservoir under different conditions and at different times, so that the modal decomposition model and the water flow prediction model can reach the optimal state in the water flow prediction scenario of the reservoir, and obtain the target modal decomposition model and the target water flow prediction model; based on the target modal decomposition model, the water flow signal modally decomposed into sub-water flow signals at different center frequencies, thereby realizing feature extraction of the water flow signal at different center frequencies; based on the target water flow prediction model, the water flow of the reservoir can be predicted; compared with the hydrological model in the prior art, the water flow prediction model obtained based on the above process does not require manual parameter adjustment, thereby improving the prediction accuracy of the reservoir water flow. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] FIG1 is a schematic flow chart of a method for constructing a reservoir water flow prediction model in one embodiment;

[0054] 2 is a flowchart of the steps of updating the initialized modal decomposition model based on the historical water flow of the reservoir in the historical time period to obtain the target modal decomposition model corresponding to the reservoir in one embodiment;

[0055] FIG3 is a schematic diagram of a water flow signal and a sub-water flow signal in one embodiment;

[0056] 4 is a flowchart of the steps of updating the initialized water flow prediction model based on multiple sub-water flow signals of historical water flow to obtain a target water flow prediction model corresponding to the reservoir in one embodiment;

[0057] FIG5 is a schematic diagram of a flow chart of a reservoir water flow prediction method in one embodiment;

[0058] FIG6 is a schematic flow chart of a reservoir water flow prediction method in another embodiment;

[0059] FIG7 is a schematic flow chart of a method for predicting short-term reservoir inflow in one embodiment;

[0060] FIG8 is a structural block diagram of a device for constructing a reservoir water flow prediction model in one embodiment;

[0061] FIG9 is a block diagram of a reservoir water flow prediction device according to an embodiment;

[0062] FIG. 10 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0064] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0065] In an exemplary embodiment, as shown in FIG1 , a method for constructing a reservoir water flow prediction model is provided. This embodiment uses the method applied to a server as an example for illustration. It is understandable that the method can also be applied to a terminal, and can also be applied to a system including a server and a terminal, and is implemented through the interaction between the server and the terminal. Among them, the server can be implemented as an independent server or a server cluster composed of multiple servers, and the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc. In this embodiment, the method includes the following steps:

[0066] Step S102, initializing the modal decomposition model and the water flow prediction model.

[0067] Among them, the modal decomposition model is used to perform modal decomposition processing on the signal and decompose the signal into sub-signals under different modes; the modal decomposition model can be implemented using a modal decomposition algorithm, such as VMD (Variational Mode Decomposition) and EMD (Empirical Mode Decomposition).

[0068] Among them, the water flow prediction model is used to predict the water flow of the reservoir in time series; the water flow of the reservoir refers to the inflow of the reservoir, that is, the water flow flowing into the reservoir. Since the water flow of the reservoir is predicted in time series, the water flow prediction model can be implemented using a neural network with memory, such as LSTM (Long Short-Term Memory) and RNN (Recurrent Neural Network).

[0069] Specifically, the server first obtains the historical water flow of the reservoir within the historical time period; then determines the modal decomposition algorithm used to construct the modal decomposition model, and the neural network that can be used to construct the water flow prediction model, and initializes the parameters of the modal decomposition algorithm and the parameters of the neural network to achieve the initialization of the modal decomposition model and the water flow prediction model.

[0070] For example, the server randomly initializes the parameters of the modal decomposition algorithm to obtain the modal decomposition model, and randomly initializes the parameters of the neural network to obtain the water flow prediction model.

[0071] The historical time period includes multiple continuous historical time intervals. For example, the server records the water flow of the reservoir in one time interval every hour. If the past three months are used as the historical time period, the historical water flow is the water flow of the reservoir in each hour in the past three months.

[0072] Step S104, based on the historical water flow of the reservoir in the historical time period, the initialized modal decomposition model is updated to obtain a target modal decomposition model corresponding to the reservoir.

[0073] Specifically, the server uses the historical water flow of the reservoir in the historical time period as input information and supervision information, and optimizes the parameters of the modal decomposition model to obtain the target modal decomposition model corresponding to the reservoir.

[0074] For example, the server converts the data of historical water flow into a signal form, that is, obtains the water flow signal of the historical water flow; then, the server decomposes the water flow signal through the modal decomposition model to obtain multiple groups of sub-water flow signals, and reconstructs the multiple groups of sub-water flow signals to obtain a reconstructed water flow signal; then, the server calculates the first difference between the water flow signal and the reconstructed water flow signal, and optimizes the parameters of the modal decomposition model with the goal of reducing the first difference, thereby obtaining the target modal decomposition model corresponding to the reservoir.

[0075] Furthermore, the server may also use an optimization algorithm to optimize the parameters of the modal decomposition model, such as a genetic algorithm or a Rime optimization algorithm (RIME).

[0076] Furthermore, the server can take the historical water flow in each historical time interval as a sample and optimize the parameters of the modal decomposition model. For example, the server converts the data of the historical water flow in each historical time interval into a signal form, that is, obtains the water flow signal of each historical time interval; then, the server decomposes the water flow signal of each historical time interval through the modal decomposition model to obtain multiple groups of sub-water flow signals for each historical time interval, and reconstructs the multiple groups of sub-water flow signals for each historical time interval to obtain a reconstructed water flow signal for each historical time interval; then, the server calculates the first difference between the water flow signal corresponding to each historical time interval and the reconstructed water flow signal, and optimizes the parameters of the modal decomposition model with the goal of reducing the first difference, so as to obtain the target modal decomposition model corresponding to the reservoir.

[0077] Step S106, performing modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model.

[0078] Specifically, the server inputs the water flow signal of the historical water flow into the target modal decomposition model, and performs modal decomposition processing on the water flow signal through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model.

[0079] Step S108, based on the multiple sub-water flow signals of the historical water flow, the initialized water flow prediction model is updated to obtain a target water flow prediction model corresponding to the reservoir.

[0080] Each historical time interval has a corresponding first historical water flow and a second historical water flow. The historical water flow is the historical water flow in each historical time interval, and the second historical water flow is the historical water flow in the next historical time interval of each historical time interval.

[0081] Specifically, the service uses multiple sub-water flow signals of the first historical water flow corresponding to each historical time interval as input information, and the water flow of the second historical water flow corresponding to each historical time interval as supervision information, and optimizes the parameters of the water flow prediction model to obtain the target water flow prediction model corresponding to the reservoir.

[0082] For example, the server inputs multiple sub-water flow signals of the first historical water flow corresponding to each historical time interval into the water flow prediction model; for each historical time interval, the water flow prediction model predicts the water flow in the next historical time interval after the historical time interval: first, for each center frequency, the predicted sub-water flow signal corresponding to the next historical time interval is predicted, and then the multiple predicted sub-water flow signals are reconstructed to obtain the predicted water flow signal corresponding to the historical time interval; then, the server calculates the second difference between the second water flow signal corresponding to each historical time interval and the predicted water flow signal, and optimizes the parameters of the water flow prediction model with the goal of reducing the second difference to obtain the target water flow prediction model corresponding to the reservoir.

[0083] Furthermore, the server may also use an optimization algorithm to optimize the parameters of the water flow prediction model, such as a genetic algorithm or a Sparrow Search Algorithm (SSA).

[0084] After obtaining the target water flow prediction model corresponding to the reservoir, the server can predict the water flow of the reservoir based on the target water flow prediction model corresponding to the reservoir:

[0085] The server obtains the water flow of the reservoir within a preset time interval, wherein the preset time interval is a period of time in the past; then, the server performs modal decomposition processing on the water flow signal of the water flow through the target modal decomposition model corresponding to the reservoir, and obtains multiple sub-water flow signals of the water flow at multiple center frequencies corresponding to the modal decomposition model; then, the server inputs the multiple sub-water flow signals corresponding to the water flow into the target water flow prediction model corresponding to the reservoir, and obtains the predicted water flow signal of the reservoir after the preset time interval, wherein the predicted water flow signal is used to characterize the predicted water flow of the reservoir after the preset time interval.

[0086] It can be understood that different reservoirs are located in different environments. Therefore, corresponding target modal decomposition models and target water flow prediction models can be constructed for different reservoirs.

[0087] In the above-mentioned method for constructing a reservoir water flow prediction model, the server first initializes the modal decomposition model and the water flow prediction model; then, based on the historical water flow of the reservoir in the historical time period, the server updates the initialized modal decomposition model to obtain the target modal decomposition model corresponding to the reservoir; then, the server performs modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model; finally, the server updates the initialized water flow prediction model based on multiple sub-water flow signals of the historical water flow to obtain the target water flow prediction model corresponding to the reservoir. In this way, based on the update of the initialized modal decomposition model and the update of the initialized water flow prediction model based on the historical water flow of the reservoir in the historical time period, the server can make the modal decomposition model and the water flow prediction model fully learn the changes in the water flow of the reservoir under different conditions and at different times, so as to make the modal decomposition model and the water flow prediction model reach the optimal state in the water flow prediction scenario of the reservoir, and obtain the target modal decomposition model and the target water flow prediction model; based on the target modal decomposition model, the server can modally decompose the water flow signal into sub-water flow signals at different center frequencies, so as to realize the feature extraction of the water flow signal at different center frequencies; based on the target water flow prediction model, the server can predict the water flow of the reservoir; compared with the hydrological model in the prior art, the water flow prediction model obtained based on the above process does not require manual parameter adjustment, thereby improving the prediction accuracy of the reservoir water flow.

[0088] In an exemplary embodiment, the modal decomposition model obtained by initialization is a variational modal decomposition model, that is, the modal decomposition algorithm adopted by the modal decomposition model obtained by initialization is a variational modal decomposition algorithm (VMD).

[0089] As shown in FIG. 2 , the above step S104, based on the historical water flow of the reservoir in the historical time period, updates the initialized modal decomposition model to obtain the target modal decomposition model corresponding to the reservoir, specifically including the following steps:

[0090] Step S202, using the water flow signal of the historical water flow as input information and supervision information, and using the frost optimization algorithm, determine the target decomposition parameters of the variational mode decomposition model corresponding to the reservoir.

[0091] Step S204: Based on the target decomposition parameters, a target variational modal decomposition model is obtained as the target modal decomposition model corresponding to the reservoir.

[0092] Among them, the variational mode decomposition algorithm is a multi-scale signal decomposition method, which decomposes the original signal into a series of intrinsic mode functions (IMF) sub-signals through iterative optimization. Each sub-signal represents the vibration mode of the original signal within a specific frequency range. In the variational mode decomposition algorithm, the intrinsic mode function is defined as an amplitude-frequency modulation function with bandwidth limitation. The function of the variational mode decomposition algorithm is to decompose the original signal into a specified number of sub-signals by constructing and solving constrained variational problems. Based on the variational mode decomposition algorithm, multi-component signals can be decomposed into multiple single-component amplitude-frequency modulation signals, avoiding the endpoint effect and false component problems encountered during the iteration process.

[0093] Among them, the Rime Ice Optimization Algorithm (RIME) is a heuristic optimization algorithm, inspired by the growth mechanism of haze ice, which simulates the process of soft rime ice particles forming rime, and uses a combination of soft rime and hard rime to perform optimization search to find the optimal solution to the problem. The Rime Ice Optimization Algorithm has the characteristics of strong adaptability, strong global search capability, and good robustness.

[0094] Among them, the target decomposition parameters include at least one of a modal number parameter and a bandwidth constraint parameter of the variational modal decomposition model, the modal number parameter is used to characterize the number of multiple center frequencies, that is, the number of sub-signals, and the bandwidth constraint parameter is used to characterize the bandwidth corresponding to each center frequency, that is, the bandwidth of each sub-signal.

[0095] Specifically, the server uses the water flow signal of historical water flow as input information and supervision information, and combines it with the frost and ice optimization algorithm to reduce the difference between the input and output of the variational modal decomposition model as the optimization goal of the frost and ice optimization algorithm, and determines the modal number parameters and bandwidth constraint parameters of the variational modal decomposition model corresponding to the reservoir.

[0096] For example, the server decomposes the water flow signal through the variational mode decomposition model to obtain multiple groups of sub-water flow signals, and then reconstructs the multiple groups of sub-water flow signals to obtain a reconstructed water flow signal; then, the server uses the first difference between the water flow signal and the reconstructed water flow signal as the optimization target of the frost and ice optimization algorithm, and uses the frost and ice optimization algorithm to solve the variational mode decomposition model corresponding to the optimal mode number parameters and optimal bandwidth constraint parameters of the reservoir.

[0097] It is understandable that since there are many data sample points for historical water flow and the historical water flow is divided into flood season, dry season and macro-control at different times, the water flow in different historical time intervals is quite different. Using unoptimized VMD for decomposition is likely to result in modal aliasing data and the decomposition speed is slow. Therefore, it is necessary to optimize VMD for reservoir water flow prediction scenarios.

[0098] Furthermore, the principle of the frost optimization algorithm is as follows:

[0099] Step 1: Use the upper and lower boundaries of the search space to generate an initial random solution set as shown in Formula 1:

[0100] (Formula 1)

[0101] In the formula, For the frost and ice population; Frost ice particles.

[0102] Step 2: Based on the optimization goal, the objective function shown in Formula 2 is set. The method for constructing the reservoir flow prediction model provided in this application proposes an objective function that combines the mean square error and the integral absolute error, and introduces improvements in the weight coefficient and the number of iterations, so that the fitness value changes more significantly with the number of iterations, which is more conducive to judging whether it falls into a local optimum:

[0103] (Formula 2)

[0104] In the formula, is the objective function; and are the first weight coefficient and the second weight coefficient respectively; is the number of samples, i.e. the number of historical time intervals; is the true value of the sample, i.e. the first historical water flow corresponding to each historical time interval; is the predicted value, that is, the second historical water flow corresponding to each historical time interval; t is the number of iterations.

[0105] Step 3: Update the position of the rime particle population; in the rime optimization algorithm, the update of the population position is divided into soft rime search and hard rime penetration.

[0106] Among them, the soft frost search strategy model is shown in formula 3:

[0107] (Formula 3)

[0108] In the formula, To update the new location of the frost population; and Indicates the serial number of the frost ice particle; The best frost collection among the frost population Particles; For frost ice particles; is the frost particle adhesion, and They are the first frost control factor and the second frost control factor corresponding to the soft rime search stage respectively; It is environmental factors; is the angle between the frost growth direction and the horizontal direction; are the upper and lower bounds of the escape space, respectively. is the added coefficient.

[0109] Among them, in the hard frost penetration stage, in order to prevent environmental factors from causing the update to fall into a local optimal solution, the construction method of the reservoir water flow prediction model provided by this application further proposes a sample standard deviation judgment mechanism, as shown in Formula 4:

[0110] (Formula 4)

[0111] In the formula, To update the new location of the frost population; The best frost collection among the frost population Particles; The third frost control factor corresponding to the hard frost piercing stage; is the normalized value of the current fitness value.

[0112] By repeating the above steps and simulating the movement of frost particles, the server searches for the best aggregation mode among the particles randomly distributed in the air, namely, the optimal modal number parameter and the optimal bandwidth constraint parameter.

[0113] It should be noted that the mode number parameter determines the number of modes in VMD, and the number of modes determines the complexity of signal decomposition; too many modes will lead to over-decomposition, and vice versa, it will lead to under-decomposition.

[0114] In an exemplary embodiment, the server obtains the actual water flow of the reservoir from May to September as the historical water flow, and obtains the optimal modal quantity parameters corresponding to the variational mode decomposition model based on the frost optimization algorithm. ; Based on the modal quantity parameters The target variational mode decomposition model is used. The server decomposes the water flow signal from May to September into 10 groups of sub-water flow signals. FIG3 is a schematic diagram of the water flow signal and the 10 groups of sub-water flow signals.

[0115] In this embodiment, based on the optimization of the variational modal decomposition model based on historical water flow and frost and ice optimization algorithm, the server can learn the changes in the water flow of the reservoir under different conditions and at different times based on the variational modal decomposition model, and solve the optimal modal number parameters and optimal bandwidth constraint parameters in the water flow prediction scenario of the reservoir, and then obtain the target variational modal decomposition model; based on the target variational modal decomposition model, the server can decompose the historical water flow of the reservoir, thereby avoiding the endpoint effect and false component problems encountered in the subsequent iteration process, and can extract features of the historical water flow for different center frequencies, thereby facilitating the water flow prediction model to learn the changes in the water flow of the reservoir under different conditions and at different times.

[0116] In an exemplary embodiment, the initialized water flow prediction model includes a long short-term memory network, that is, the main network structure of the water flow prediction model adopts a long short-term memory network (LSTM).

[0117] The historical time period includes multiple continuous historical time intervals, each historical time interval has a corresponding first historical water flow and a second historical water flow, the first historical water flow is the historical water flow within each historical time interval, and the second historical water flow is the historical water flow within the next historical time interval of each historical time interval.

[0118] As shown in FIG. 4 , the above step S108, based on multiple sub-water flow signals of historical water flow, updates the initialized water flow prediction model to obtain a target water flow prediction model corresponding to the reservoir, specifically including the following steps:

[0119] Step S402, using multiple sub-water flow signals of the first historical water flow corresponding to each historical time interval as input information, and using the water flow signal of the second historical water flow corresponding to each historical time interval as supervision information, and using the sparrow search algorithm to determine the target network parameters of the long short-term memory network corresponding to the reservoir.

[0120] Step S404, obtaining a target long short-term memory network based on the target network parameters;

[0121] Step S406, based on the target long short-term memory network, obtain a target water flow prediction model corresponding to the reservoir.

[0122] The network parameters include at least the number of hidden layer units of the long short-term memory network, the learning rate and the regularization coefficient, and at least one of the learning rate reduction factor.

[0123] Among them, the long short-term memory network is a special recursive neural network. On the basis of the RNN neural network, a memory cell unit is added to update or discard historical information, so that the long short-term memory network has long-term memory ability and overcomes problems such as gradient explosion; the long short-term memory network consists of three parts: input gate, forget gate and output gate.

[0124] Among them, the sparrow optimization algorithm (SSA) is a heuristic optimization algorithm inspired by the search behavior of sparrow groups. It achieves the purpose of optimizing the objective function by simulating the behavior of sparrows in the process of finding food and avoiding natural enemies. It has the advantages of high search efficiency and simple parameter setting.

[0125] Specifically, in step S102, the server initializes the input gate, forget gate, and output gate of the long short-term memory network, and initializes the number of hidden layer units of the long short-term memory network to 1, the maximum number of optimizer training times to 200, the learning rate to 0.01, and the learning rate reduction factor to 0.20.2, thereby obtaining a water flow prediction model.

[0126] Then, the server uses multiple sub-water flow signals of the first historical water flow corresponding to each historical time interval as input information, and the water flow signal of the second historical water flow corresponding to each historical time interval as supervision information, and combines it with the sparrow search algorithm to reduce the difference between the input and output of the water flow prediction model as the optimization goal of the sparrow search algorithm, and determines the target network parameters of the long short-term memory network corresponding to the reservoir.

[0127] For example, the server inputs multiple sub-water flow signals of the first historical water flow corresponding to each historical time interval into the water flow prediction model; for each historical time interval, the server predicts the water flow in the next historical time interval after the historical time interval through the long short-term memory network in the water flow prediction model: first, for each center frequency, the predicted sub-water flow signal corresponding to the next historical time interval is predicted, and then the multiple predicted sub-water flow signals are reconstructed to obtain the predicted water flow signal corresponding to the historical time interval; then, the server takes reducing the second difference between the second water flow signal corresponding to each historical time interval and the predicted water flow signal as the optimization goal of the sparrow search algorithm, and uses the sparrow search algorithm to solve the target network parameters of the long short-term memory network corresponding to the reservoir, thereby obtaining the target long short-term memory network, and further obtaining the target water flow prediction model.

[0128] In this embodiment, based on the optimization of the long short-term memory network using historical water flow and the sparrow search algorithm, the server can learn the changes in the water flow of the reservoir under different circumstances and at different times based on the long short-term memory network, solve the optimal network parameters in the water flow prediction scenario of the reservoir, and then obtain the target long short-term memory network; based on the target long short-term memory network, the server can construct a target water flow prediction model, and then predict the water flow of the reservoir based on the learning results of the changes in the water flow of the reservoir under different circumstances and at different times.

[0129] In an exemplary embodiment, the method for constructing a reservoir water flow prediction model provided in the present application also includes the following contents: obtaining initial water flow data of the reservoir within a historical time period; performing data preprocessing on the initial water flow data to obtain the historical water flow of the reservoir within the historical time period.

[0130] Among them, data preprocessing includes at least one of data cleaning and data filling.

[0131] Specifically, the server obtains the initial water flow data of the reservoir during the historical time period, and performs data preprocessing, such as data cleaning and data filling, on the original data in the initial water flow data that cannot be recorded in real time due to possible failure of power station equipment, so as to obtain the historical water flow of the reservoir during the historical time period.

[0132] Furthermore, data preprocessing may also include data normalization.

[0133] In this embodiment, the server can normalize the data by preprocessing the initial water flow data of the reservoir in the historical time period, which is beneficial to the training of the subsequent model.

[0134] In an exemplary embodiment, as shown in FIG5 , a reservoir water flow prediction method is provided. This embodiment is illustrated by applying the method to a server equipped with a target water flow prediction model obtained by the construction method of the above-mentioned reservoir water flow prediction model. It can be understood that the method can also be applied to a terminal equipped with the above-mentioned target water flow prediction model, and can also be applied to a system including a server and a terminal, and implemented through the interaction between the server and the terminal. Among them, the server can be implemented as an independent server or a server cluster composed of multiple servers, and the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc. In this embodiment, the method includes the following steps:

[0135] Step S502, obtaining the water flow of the reservoir within a preset time interval.

[0136] The preset time interval is a period of time in the past.

[0137] Specifically, the server obtains the water flow of the reservoir in the past period of time, such as the water flow in the past hour.

[0138] Step S504, performing modal decomposition processing on the water flow signal of the water flow through the modal decomposition model corresponding to the reservoir, and obtaining a plurality of sub-water flow signals of the water flow at a plurality of center frequencies corresponding to the modal decomposition model.

[0139] Among them, the modal decomposition model corresponding to the reservoir is the target modal decomposition model corresponding to the reservoir in the method for constructing the reservoir water flow prediction model in any of the above embodiments.

[0140] Specifically, the water flow signal of the water flow is input into the modal decomposition model corresponding to the reservoir, such as the variational modal decomposition model. The variational modal decomposition model decomposes the water flow signal according to the corresponding multiple center frequencies to obtain sub-water flow signals at each center frequency.

[0141] Step S506, inputting a plurality of sub-water flow signals corresponding to the water flow into a water flow prediction model corresponding to the reservoir to obtain a predicted water flow signal of the reservoir after a preset time interval.

[0142] The predicted water flow signal is used to characterize the predicted water flow of the reservoir after a preset time interval.

[0143] The pre-constructed water flow prediction model is constructed by the method for constructing a reservoir water flow prediction model in any of the above embodiments, that is, the target water flow prediction model of the reservoir in the method for constructing a reservoir water flow prediction model in any of the above embodiments.

[0144] Specifically, the server inputs multiple sub-water flow signals corresponding to the water flow into the water flow prediction model corresponding to the reservoir, and the water flow prediction model predicts the water flow after the preset time interval: first, for each center frequency, predict the predicted sub-water flow signal after the preset time interval, and then reconstruct the multiple predicted sub-water flow signals to obtain the predicted water flow signal after the preset time interval. For example, the server obtains the water flow of the reservoir one hour before, and through the modal decomposition model corresponding to the reservoir, the server divides the water flow signal of the water flow of the first hour into multiple sub-water flow signals under the center frequency; then the server inputs the sub-water flow signal under each center frequency into the water flow prediction model corresponding to the reservoir, and obtains multiple predicted sub-water flow signals after the preset time interval. Based on the reconstruction of the multiple predicted sub-water flow signals after the preset time interval, the server obtains the predicted water flow signal within one hour after the reservoir, so that the predicted water flow within one hour after the reservoir can be determined.

[0145] It can be understood that the specific limitations in the embodiments of the reservoir water flow prediction method provided in the present application can refer to the limitations on the method for constructing a reservoir water flow prediction model in the above text, and will not be repeated here.

[0146] In the above reservoir water flow prediction method, the server first obtains the water flow of the reservoir within a preset time interval; then, through the modal decomposition model corresponding to the reservoir, the water flow signal of the water flow is modally decomposed to obtain multiple sub-water flow signals of the water flow at multiple center frequencies corresponding to the modal decomposition model; finally, the multiple sub-water flow signals corresponding to the water flow are input into the water flow prediction model corresponding to the reservoir to obtain the predicted water flow signal of the reservoir after the preset time interval; the predicted water flow signal is used to characterize the predicted water flow of the reservoir after the preset time interval. In this way, based on the modal decomposition model corresponding to the reservoir, the server can decompose the water flow signal into sub-water flow signals at different center frequencies, thereby realizing feature extraction of the water flow signal at different center frequencies; based on the water flow prediction model corresponding to the reservoir, the server can predict the water flow of the reservoir. Compared with the prior art, the reservoir water flow prediction method based on the above process does not require manual parameter adjustment, thereby improving the prediction accuracy of the reservoir water flow.

[0147] In an exemplary embodiment, as shown in FIG6 , another reservoir water flow prediction method is provided, which is described by taking the method applied to a server as an example, and includes the following steps:

[0148] Step S601, obtaining initial water flow data of the reservoir in a historical time period, performing data preprocessing on the initial water flow data, and obtaining historical water flow of the reservoir in the historical time period.

[0149] Step S602, initializing the variational mode decomposition model and the water flow prediction model.

[0150] Step S603, using the water flow signal of the historical water flow of the reservoir in the historical time period as input information and supervision information, adopting the frost optimization algorithm, determining that the initialized variational modal decomposition model corresponds to the target decomposition parameters of the reservoir, and obtaining the target variational modal decomposition model based on the target decomposition parameters.

[0151] Step S604: performing modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model.

[0152] Step S605, using multiple sub-water flow signals of the first historical water flow corresponding to each historical time interval within the historical time period as input information, and the water flow signal of the second historical water flow corresponding to each historical time interval as supervision information, and adopting the sparrow search algorithm, determine the target network parameters of the long short-term memory network corresponding to the reservoir in the initialized water flow prediction model.

[0153] Step S606, based on the target network parameters, a target long short-term memory network is obtained, and based on the target long short-term memory network, a target water flow prediction model corresponding to the reservoir is obtained.

[0154] Step S607, obtaining the water flow of the reservoir within a preset time interval.

[0155] Step S608, performing modal decomposition processing on the water flow signal of the water flow through the target modal decomposition model corresponding to the reservoir, and obtaining a plurality of sub-water flow signals of the water flow at a plurality of center frequencies corresponding to the modal decomposition model.

[0156] Step S609: input a plurality of sub-water flow signals corresponding to the water flow into a target water flow prediction model corresponding to the reservoir to obtain a predicted water flow signal of the reservoir after a preset time interval.

[0157] In this embodiment, based on the historical water flow of the reservoir in the historical time period, the server updates the variational modal decomposition model initialized and the long short-term memory network in the water flow prediction model initialized, so that the modal decomposition model and the water flow prediction model can fully learn the changes in the water flow of the reservoir under different conditions and at different times, so that the modal decomposition model and the water flow prediction model can reach the optimal state in the water flow prediction scenario of the reservoir, and obtain the target modal decomposition model and the target water flow prediction model; based on the target modal decomposition model, the server can modally decompose the water flow signal into sub-water flow signals at different center frequencies, so as to realize feature extraction of the water flow signal at different center frequencies; based on the target water flow prediction model, the server can predict the water flow of the reservoir; compared with the hydrological model in the prior art, the water flow prediction model obtained based on the above process does not require manual parameter adjustment, thereby improving the prediction accuracy of the reservoir water flow.

[0158] In order to more clearly illustrate the method for constructing a reservoir water flow prediction model provided by the embodiment of the present application, the method for constructing a reservoir water flow prediction model is specifically described below with a specific embodiment, but it should be understood that the embodiment of the present application is not limited thereto. As shown in FIG. 7 , in an exemplary embodiment, the present application also provides a method for predicting a short-term inflow flow of a reservoir, which specifically includes the following steps:

[0159] Step 1: Obtain the initial water flow data of the reservoir in the historical time period (e.g., May-September) on an hourly basis.

[0160] Step 2: Perform data preprocessing on the initial water flow data, such as data cleaning and data filling, to obtain the historical water flow of the reservoir in the historical time period; divide the historical water flow into a training set and a test set.

[0161] Step 3: Initialize the VMD model and LSTM network.

[0162] Step 4: Based on the RIME algorithm and training set, optimize the VMD model and solve the optimal VMD model corresponding to the reservoir, namely the RIME-VMD model.

[0163] Step 5: Based on the RIME-VMD model, the historical water flow in the training set is subjected to signal decomposition processing to obtain multiple IMF sub-signals of the historical water flow.

[0164] Step 6: Take multiple IMF sub-signals as samples, optimize the LSTM network based on the SSA algorithm and training set, and solve the optimal LSTM network corresponding to the reservoir, that is, the SSA-LSTM network.

[0165] Step 7: Based on the LSTM network, an LSTM model is obtained; the VMD model is combined with the LSTM network to obtain a VMD-LSTM model; the VMD model is combined with the SSA-LSTM network to obtain a VMD-SSA-LSTM model; the RIME-VMD model is combined with the SSA-LSTM network to obtain a RIME-VMD-SSA-LSTM model.

[0166] Among them, the LSTM model refers to a model that does not perform signal decomposition processing on historical water flow, but directly uses the LSTM network to predict reservoir water flow.

[0167] Among them, the VMD-LSTM model refers to a model that uses the VMD model to decompose the historical water flow signal and uses the LSTM network to predict the reservoir water flow.

[0168] Among them, the VMD-SSA-LSTM model refers to a model that uses the VMD model to perform signal decomposition processing on historical water flow and uses the SSA-LSTM network to predict reservoir water flow.

[0169] Among them, the RIME-VMD-SSA-LSTM model refers to a model that uses the RIME-VMD model to perform signal decomposition processing on historical water flow and uses the SSA-LSTM network to predict reservoir water flow.

[0170] Step 8: Use the test set to evaluate the LSTM model, VMD-LSTM model, VMD-SSA-LSTM model, and RIME-VMD-SSA-LSTM model. Specifically, RMSE (Root Mean Squared Error), MAE (Mean Absolute Error), MAPE (Mean Absolute Percentage Error), and R 2 (Regression Index) for evaluation.

[0171] Step 9: The model with the best evaluation result in step 8 is determined as the reservoir flow prediction model corresponding to the reservoir; based on the reservoir flow prediction model corresponding to the reservoir, the future short-term water flow of the reservoir is predicted. After multiple tests on multiple reservoirs, it is known that the RIME-VMD-SSA-LSTM model has the best prediction accuracy, prediction speed, and prediction stability.

[0172] In this embodiment, the RIME-VMD model has obvious advantages over the single VMD model in terms of computational efficiency, noise robustness, parameter selection, and application scope, and can solve the shortcomings of the single VMD model, thereby having better denoising performance and more accurate modal decomposition results; the advantages of the SSA-LSTM network are mainly reflected in better long-term dependency learning ability, higher prediction accuracy, flexible parameter selection, etc. Therefore, the combination of SSA and LSTM effectively improves the accuracy of the algorithm. Therefore, by combining multiple algorithms, the optimization of the model is achieved, avoiding the shortcomings of a single model, so that the short-term water flow of the reservoir can be predicted more accurately.

[0173] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0174] Based on the same inventive concept, the embodiment of the present application also provides a device for constructing a reservoir water flow prediction model for implementing the method for constructing a reservoir water flow prediction model involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for constructing one or more reservoir water flow prediction models provided below can refer to the limitations of the method for constructing a reservoir water flow prediction model above, and will not be repeated here.

[0175] In an exemplary embodiment, as shown in FIG8 , a device for constructing a reservoir flow prediction model is provided, comprising: a model initialization module 802, a first updating module 804, a modal decomposition module 806, and a second updating module 808, wherein:

[0176] The model initialization module 802 is used to initialize the modal decomposition model and the water flow prediction model.

[0177] The first updating module 804 is used to update the initialized modal decomposition model based on the historical water flow of the reservoir in the historical time period to obtain a target modal decomposition model corresponding to the reservoir.

[0178] The modal decomposition module 806 is used to perform modal decomposition processing on the water flow signal of the historical water flow through the target modal decomposition model to obtain sub-water flow signals of the historical water flow at multiple center frequencies corresponding to the target modal decomposition model.

[0179] The second updating module 808 is used to update the initialized water flow prediction model based on multiple sub-water flow signals of historical water flow, and obtain a target water flow prediction model corresponding to the reservoir.

[0180] In an exemplary embodiment, the initialized modal decomposition model is a variational modal decomposition model.

[0181] The first update module 804 is also used to use the water flow signal of the historical water flow as input information and supervision information, and adopt the frost optimization algorithm to determine the target decomposition parameters of the variational modal decomposition model corresponding to the reservoir; the target decomposition parameters include at least one of the modal number parameter and bandwidth constraint parameter of the variational modal decomposition model, the modal number parameter is used to characterize the number of multiple center frequencies, and the bandwidth constraint parameter is used to characterize the bandwidth corresponding to each center frequency; based on the target decomposition parameters, the target variational modal decomposition model is obtained as the target modal decomposition model corresponding to the reservoir.

[0182] In an exemplary embodiment, the initialized water flow prediction model includes a long short-term memory network.

[0183] The historical time period includes multiple continuous historical time intervals, each historical time interval has a corresponding first historical water flow and a second historical water flow, the first historical water flow is the historical water flow within each historical time interval, and the second historical water flow is the historical water flow within the next historical time interval of each historical time interval.

[0184] The second updating module 808 is also used to use multiple sub-water flow signals of the first historical water flow corresponding to each historical time interval as input information, and the water flow signal of the second historical water flow corresponding to each historical time interval as supervision information, and adopt a sparrow search algorithm to determine the target network parameters of the long short-term memory network corresponding to the reservoir; based on the target network parameters, obtain the target long short-term memory network; based on the target long short-term memory network, obtain the target water flow prediction model corresponding to the reservoir.

[0185] In an exemplary embodiment, the device for constructing a reservoir water flow prediction model also includes a data processing module, which is used to obtain initial water flow data of the reservoir within a historical time period; perform data preprocessing on the initial water flow data to obtain historical water flow of the reservoir within the historical time period; the data preprocessing includes at least one of data cleaning and data filling.

[0186] Based on the same inventive concept, the embodiment of the present application also provides a reservoir water flow prediction device for implementing the reservoir water flow prediction method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more reservoir water flow prediction device embodiments provided below can refer to the limitations of the reservoir water flow prediction method above, and will not be repeated here.

[0187] In an exemplary embodiment, as shown in FIG9 , a reservoir water flow prediction device is provided, comprising: a flow acquisition module 902 , a mode decomposition module 904 and a flow prediction module 906 , wherein:

[0188] The flow acquisition module 902 is used to acquire the water flow of the reservoir within a preset time interval.

[0189] The modal decomposition module 904 is used to perform modal decomposition processing on the water flow signal of the water flow through the modal decomposition model corresponding to the reservoir, and obtain multiple sub-water flow signals of the water flow at multiple center frequencies corresponding to the modal decomposition model.

[0190] The flow prediction module 906 is used to input multiple sub-water flow signals corresponding to the water flow into the water flow prediction model corresponding to the reservoir to obtain the predicted water flow signal of the reservoir after a preset time interval; the predicted water flow signal is used to characterize the predicted water flow of the reservoir after a preset time interval; the water flow prediction model corresponding to the reservoir is constructed by any of the reservoir water flow prediction model construction methods in the above embodiments.

[0191] The above-mentioned reservoir water flow prediction model construction device and each module in the reservoir water flow prediction device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0192] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG10. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store water flow data of the reservoir. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for constructing a reservoir water flow prediction model or a reservoir water flow prediction method is implemented.

[0193] Those skilled in the art will understand that the structure shown in FIG. 10 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0194] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0195] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0196] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0197] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0198] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0199] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for constructing a reservoir water flow prediction model. It is characterized in that The method comprises: Initializing a modal decomposition model and a water flow prediction model, and dividing the historical water flow of the reservoir in a historical time period into a training set and a test set; the modal decomposition model obtained by the initialization is a variational modal decomposition model VMD; the water flow prediction model obtained by the initialization is a long short-term memory network LSTM; Based on the training set and the frost and ice optimization algorithm RIME, the modal decomposition model obtained by the initialization is updated to obtain the target modal decomposition model RIME-VMD corresponding to the reservoir; Performing modal decomposition processing on the water flow signal of the training set by using the target modal decomposition model RIME-VMD to obtain sub-water flow signals of the training set at multiple center frequencies corresponding to the target modal decomposition model; Based on the multiple sub-water flow signals of the training set and the sparrow search algorithm SSA, the initialized water flow prediction model is updated to obtain the target water flow prediction model SSA-LSTM corresponding to the reservoir; Determine the water flow prediction model obtained by the initialization as an LSTM model, combine the modal decomposition model obtained by the initialization and the water flow prediction model obtained by the initialization into a VMD-LSTM model, combine the modal decomposition model obtained by the initialization and the target water flow prediction model SSA-LSTM into a VMD-SSA-LSTM model, and combine the target modal decomposition model RIME-VMD and the target water flow prediction model SSA-LSTM into a RIME-VMD-SSA-LSTM model; Based on the test set, the LSTM model, the VMD-LSTM model, the VMD-SSA-LSTM model and the RIME-VMD-SSA-LSTM model are evaluated respectively to obtain evaluation results corresponding to the LSTM model, the VMD-LSTM model, the VMD-SSA-LSTM model and the RIME-VMD-SSA-LSTM model; Based on the evaluation results corresponding to the LSTM model, the VMD-LSTM model, the VMD-SSA-LSTM model and the RIME-VMD-SSA-LSTM model, a model with the best evaluation result is determined from the LSTM model, the VMD-LSTM model, the VMD-SSA-LSTM model and the RIME-VMD-SSA-LSTM model, and the model with the best evaluation result is determined as the reservoir water flow prediction model for predicting the water flow of the reservoir; the reservoir water flow prediction model is the RIME-VMD-SSA-LSTM model; The LSTM model refers to a model that directly uses the long short-term memory network LSTM to predict water flow without performing signal decomposition processing; The VMD-LSTM model refers to a model that uses the variational mode decomposition model VMD to perform signal decomposition processing and uses the long short-term memory network LSTM to predict water flow; The VMD-SSA-LSTM model refers to a model that uses the variational mode decomposition model VMD to perform signal decomposition processing and uses the target water flow prediction model SSA-LSTM to predict water flow; The RIME-VMD-SSA-LSTM model refers to a model that uses the target modal decomposition model RIME-VMD to perform signal decomposition processing and uses the target water flow prediction model SSA-LSTM to predict water flow.

2. The method according to claim 1, It is characterized in that The updating of the initialized modal decomposition model based on the training set and the frost and ice optimization algorithm RIME to obtain the target modal decomposition model RIME-VMD corresponding to the reservoir includes: The water flow signal of the training set is used as input information and supervision information, and the frost and ice optimization algorithm RIME is adopted to determine the target decomposition parameters of the variational modal decomposition model VMD corresponding to the reservoir; the target decomposition parameters include at least one of the modal quantity parameter and the bandwidth constraint parameter of the variational modal decomposition model VMD, the modal quantity parameter is used to characterize the number of the multiple center frequencies, and the bandwidth constraint parameter is used to characterize the bandwidth corresponding to each center frequency; Based on the target decomposition parameters, a target variational modal decomposition model RIME-VMD is obtained as the target modal decomposition model RIME-VMD corresponding to the reservoir.

3. The method according to claim 1, It is characterized in that The historical time period includes a plurality of continuous historical time intervals, each of which has a corresponding first historical water flow and a second historical water flow, the first historical water flow is the historical water flow in each of the historical time intervals, and the second historical water flow is the historical water flow in the next historical time interval of each of the historical time intervals; The method of updating the initialized water flow prediction model based on the multiple sub-water flow signals of the training set and the sparrow search algorithm SSA to obtain the target water flow prediction model SSA-LSTM corresponding to the reservoir includes: Using a plurality of sub-water flow signals of a first historical water flow corresponding to each historical time interval of the training set as input information, using a water flow signal of a second historical water flow corresponding to each historical time interval of the training set as supervision information, and using the sparrow search algorithm SSA to determine the target network parameters of the long short-term memory network LSTM corresponding to the reservoir; Based on the target network parameters, a target long short-term memory network is obtained; Based on the target long short-term memory network, a target water flow prediction model SSA-LSTM corresponding to the reservoir is obtained.

4. The method according to claim 1, It is characterized in that The method further comprises: Obtain the initial water flow data of the reservoir in the historical time period; The initial water flow data is subjected to data preprocessing to obtain the historical water flow of the reservoir within the historical time period; the data preprocessing includes at least one of data cleaning and data filling.

5. A reservoir water flow prediction method, It is characterized in that The method comprises: Obtain the water flow of the reservoir within a preset time interval; The target modal decomposition model RIME-VMD in the reservoir water flow prediction model RIME-VMD-SSA-LSTM model used to predict the water flow of the reservoir is used to perform modal decomposition processing on the water flow signal of the water flow to obtain multiple sub-water flow signals of the water flow at multiple center frequencies corresponding to the modal decomposition model; the reservoir water flow prediction model RIME-VMD-SSA-LSTM model used to predict the water flow of the reservoir is constructed by the construction method of the reservoir water flow prediction model described in any one of claims 1 to 4; The multiple sub-water flow signals corresponding to the water flow are input into the target water flow prediction model SSA-LSTM in the reservoir water flow prediction model RIME-VMD-SSA-LSTM model to obtain the predicted water flow signal of the reservoir after the preset time interval; the predicted water flow signal is used to characterize the predicted water flow of the reservoir after the preset time interval.

6. A device for constructing a reservoir water flow prediction model, It is characterized in that The device comprises: The model initialization module is used to initialize the modal decomposition model and the water flow prediction model, and to divide the historical water flow of the reservoir in the historical time period into a training set and a test set; the modal decomposition model obtained by the initialization is a variational modal decomposition model VMD; the water flow prediction model obtained by the initialization is a long short-term memory network LSTM; A first updating module is used to update the initialized modal decomposition model based on the training set and the frost and ice optimization algorithm RIME to obtain a target modal decomposition model RIME-VMD corresponding to the reservoir; A modal decomposition module, used to perform modal decomposition processing on the water flow signal of the training set through the target modal decomposition model RIME-VMD, to obtain sub-water flow signals of the training set at multiple center frequencies corresponding to the target modal decomposition model; A second updating module is used to update the initialized water flow prediction model based on the multiple sub-water flow signals of the training set and the sparrow search algorithm SSA to obtain a target water flow prediction model SSA-LSTM corresponding to the reservoir; The device is also used to determine the water flow prediction model obtained by initialization as an LSTM model, combine the modal decomposition model obtained by initialization and the water flow prediction model obtained by initialization into a VMD-LSTM model, combine the modal decomposition model obtained by initialization and the target water flow prediction model SSA-LSTM into a VMD-SSA-LSTM model, and combine the target modal decomposition model RIME-VMD and the target water flow prediction model SSA-LSTM into a RIME-VMD-SSA-LSTM model; based on the test set, respectively evaluate the LSTM model, the VMD-LSTM model, the VMD-SSA-LSTM model and the RIME-VMD-SSA-LSTM model to obtain the LSTM model, the The evaluation results corresponding to the VMD-LSTM model, the VMD-SSA-LSTM model and the RIME-VMD-SSA-LSTM model respectively; based on the evaluation results corresponding to the LSTM model, the VMD-LSTM model, the VMD-SSA-LSTM model and the RIME-VMD-SSA-LSTM model respectively, a model with the best evaluation result is determined from the LSTM model, the VMD-LSTM model, the VMD-SSA-LSTM model and the RIME-VMD-SSA-LSTM model, and the model with the best evaluation result is determined as the reservoir water flow prediction model for predicting the water flow of the reservoir; the reservoir water flow prediction model is the RIME-VMD-SSA-LSTM model; The LSTM model refers to a model that directly uses the long short-term memory network LSTM to predict water flow without performing signal decomposition processing; The VMD-LSTM model refers to a model that uses the variational mode decomposition model VMD to perform signal decomposition processing and uses the long short-term memory network LSTM to predict water flow; The VMD-SSA-LSTM model refers to a model that uses the variational mode decomposition model VMD to perform signal decomposition processing and uses the target water flow prediction model SSA-LSTM to predict water flow; The RIME-VMD-SSA-LSTM model refers to a model that uses the target modal decomposition model RIME-VMD to perform signal decomposition processing and uses the target water flow prediction model SSA-LSTM to predict water flow.

7. A reservoir water flow prediction device, It is characterized in that The device comprises: A flow acquisition module is used to obtain the water flow of the reservoir within a preset time interval; A modal decomposition module, used to perform modal decomposition processing on the water flow signal of the water flow through the target modal decomposition model RIME-VMD in the reservoir water flow prediction model RIME-VMD-SSA-LSTM model used to predict the water flow of the reservoir, so as to obtain multiple sub-water flow signals of the water flow at multiple center frequencies corresponding to the modal decomposition model; the reservoir water flow prediction model RIME-VMD-SSA-LSTM model used to predict the water flow of the reservoir is constructed by the construction method of the reservoir water flow prediction model described in any one of claims 1 to 4; The flow prediction module is used to input multiple sub-water flow signals corresponding to the water flow into the target water flow prediction model SSA-LSTM in the reservoir water flow prediction model RIME-VMD-SSA-LSTM model to obtain the predicted water flow signal of the reservoir after the preset time interval; the predicted water flow signal is used to characterize the predicted water flow of the reservoir after the preset time interval.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the processor implements the steps of the method for constructing a reservoir water flow prediction model according to any one of claims 1 to 4, or the steps of the method for predicting reservoir water flow according to claim 5.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method for constructing a reservoir water flow prediction model according to any one of claims 1 to 4 are implemented, or the steps of the reservoir water flow prediction method according to claim 5 are implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method for constructing a reservoir water flow prediction model according to any one of claims 1 to 4 are implemented, or the steps of the reservoir water flow prediction method according to claim 5 are implemented.