A reservoir water level prediction method coupled with multi-channel clustering module

By coupling the multi-channel clustering module, using the cross-attention mechanism and the cluster-aware feed-forward network, the problem of neglected cross-correlation between channels in the existing reservoir water level prediction methods is solved, and the prediction accuracy and prediction of zero training samples are improved. Effect.

CN118410924BActive Publication Date: 2024-10-15JIANGXI ACAD OF WATER RESOURCES (JIANGXI PROVINCE DAM SAFETY MANAGEMENT CENT JIANGXI PROVINCE WATER RESOURCES MANAGEMENT CENT)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410882957.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-15
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

Existing reservoir water level prediction methods usually use channel-independent or channel-dependent strategies during model training, ignoring the cross-correlation between channels, resulting in poor prediction results, especially when channel similarity is low, over-smoothing makes it difficult to fit each channel.

Method used

The coupled multi-channel clustering module is used to convert the time series of each channel into a channel embedding vector through a multi-layer perceptron, calculate the similarity between the embedding vector and the cluster embedding vector, use the cross-attention mechanism to enhance intra-cluster correlation, and construct The clustering quality loss function is used for model training, combined with a cluster-aware feedforward network to capture time series patterns.

Benefits of technology

It improves the accuracy of reservoir water level prediction, achieves the prediction effect of zero training samples on unseen samples, and improves the consideration of correlation between channels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410924B_ABST
    Figure CN118410924B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the technical field of water level prediction, and provides a reservoir water level prediction method of a coupled multi-channel clustering module, the method comprising the following steps: collecting time series data of multiple channels such as reservoir water level and related influencing factors, and dividing the collected data into a training set and a test set; training a coupled multi-channel clustering module prediction model on the training set, and continuously adjusting parameters so that the reservoir water level prediction result output by the model on the training set and the corresponding measured reservoir water level reach satisfactory accuracy, using the trained coupled multi-channel clustering module prediction model and the uncoupled multi-channel clustering module prediction model on the test set to predict the reservoir water level, and evaluating the reservoir water level prediction effects of the two types of models. The method of the present invention can effectively improve the reservoir water level prediction accuracy on the basis of balancing the processing and calculation efficiency of each channel, and realize zero-sample prediction to a certain extent, thereby reducing the dependence on the amount of data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of water level prediction, and in particular relates to a reservoir water level prediction method coupling a multi-channel clustering module. Background Art

[0002] Accurate reservoir water level prediction is an important prerequisite for reservoir operation and scheduling, and is of great significance for ensuring flood prevention and rescue, drought relief and water replenishment, efficient utilization and scheduling of water resources, and maintenance and protection of the water ecological environment.

[0003] The change of reservoir water level is affected by many factors, and the combined effect of various influencing factors (i.e. channels) determines the future fluctuation process of reservoir water level. In recent years, with the development of computer science, machine learning methods and deep learning methods for reservoir water level have developed rapidly.

[0004] However, most of the current methods are mainly based on a channel-independent strategy when training models, that is, a univariate model shared among all channels is trained, only the relationship between a single channel (i.e., a single influencing factor) and the variable to be predicted is considered, and the mutual correlation between the time series samples of each channel is ignored; on the other hand, in addition to the channel-independent training strategy, another training mode is to adopt a channel-dependent strategy, that is, all channels are modeled as a whole to capture the relationship between channels, but they often show over-smoothing and are difficult to fit each channel, especially when the similarity between channels is very low, and their prediction effect is poor. Summary of the invention

[0005] The purpose of the embodiment of the present invention is to provide a reservoir water level prediction method coupled with a multi-channel clustering module, aiming to solve the problem raised in the third part of the background technology.

[0006] The embodiment of the present invention is implemented as follows: a reservoir water level prediction method coupled with a multi-channel clustering module, the method comprising the following steps:

[0007] S1: Collect time series data of multiple channels such as reservoir water level and its related influencing factors; divide the reservoir water level and its related influencing factors data into training set and test set, and take the reservoir water level as output and the reservoir water level related influencing factors as input;

[0008] S2: Input the reservoir water level related influencing factors into the prediction model coupled with the multi-channel clustering module on the training set, and compare the reservoir water level output of the model on the training set with the corresponding measured reservoir water level, calculate the loss, and continuously adjust the parameters so that the reservoir water level prediction results output by the model on the training set and the corresponding measured reservoir water level reach a satisfactory accuracy;

[0009] S3: The prediction model of coupled multi-channel clustering module and the time series model of uncoupled multi-channel clustering module are used to predict the reservoir water level on the test set to evaluate the reservoir water level prediction effect of the two types of models;

[0010] S4: Collect the time series of the reservoir water level and its related influencing factors of another reservoir, divide the data of the reservoir water level and its related influencing factors into a training set and a test set, input the reservoir water level influencing factors on the test set into the prediction model coupled with the multi-channel clustering module, and realize the reservoir water level prediction of the reservoir with zero training samples without using the data of the reservoir training set for model training. At the same time, use the data of the training set to train the prediction model that is not coupled with the multi-channel clustering module, and perform the reservoir water level prediction on the test set to evaluate the reservoir water level prediction effects of the two.

[0011] Preferably, when the time series data of multiple channels such as the reservoir water level and its related influencing factors are collected in S1, they mainly include time series of reservoir water level, inflow, rainfall, evaporation and other types, where the reservoir water level is the variable to be predicted, and the current inflow, rainfall, evaporation corresponding to the reservoir water level and the inflow, rainfall and evaporation at different historical moments are characteristic variables affecting the change of the reservoir water level. Assuming that the number of characteristic variables after the final processing is F, since each characteristic time series variable corresponds to a channel, the number of channels is also F. Let the reservoir water level and its influencing characteristic time series be X∈R t×F , where R is a real number set with a dimension of t×F, indicating that it consists of F channels of time series, and the length of each channel is t. Then the time series of the i-th channel can be expressed as X i =X [1:t, i] .

[0012] Preferably, the prediction model adopted in S2 is the TimeFM model. The multi-channel clustering module coupled to the prediction model TimeFM first needs to prototype a set of cluster embedding vectors, convert the input time series of each channel into a channel embedding vector through a multi-layer perceptron, calculate the similarity between each channel embedding vector and the cluster embedding vector to which it belongs, and determine the association probability of each channel with each cluster through the normalized inner product.

[0013] Preferably, when the prototype in S2 is a set of cluster embedding vectors, assuming that the number of clusters embedded in the cluster is N, the set of cluster embedding matrix C can be expressed as C=[c1,...,c k ,..., c N ]∈R N×d , where the kth cluster is c k ∈R d , d is the hidden dimension, and the one-dimensional time series X of the i-th channel of the collected reservoir water level and its impact feature time seriesi Transformed into a d-dimensional channel embedding vector h through a multi-layer perceptron MLP i , all F channel embedding vectors form the channel embedding matrix H=[h1,...,h i ,...,h F ]∈R F×d Then the probability of association between the i-th channel embedding vector and the k-th clustering vector is It can be expressed as formula (1):

[0014] (1)

[0015] In the formula, is the normalization function; c k The transpose of || || represents the modulus of the vector, and the parameterization technique is used to obtain the clustering membership matrix M∈F×N, M ik ≈Bernoulli( ), Bernoulli said M ik Approximately satisfies the Bernoulli distribution.

[0016] Preferably, after determining the association probability of each channel with each cluster, the multi-channel clustering module coupled to the prediction model TimeFM in S2 needs to perform prototype learning. Specifically, a cluster allocator is first used to create a d-dimensional prototype cluster embedding matrix for each cluster in the training phase, and a cross-attention mechanism is used to enhance the correlation of channels within the cluster and reduce the interference of channel information outside the cluster. The prototype embedding after the cross-attention mechanism is processed It can be expressed as formula (2):

[0017] (2)

[0018] Where W Q , W K and W V is a learnable parameter, exp is an exponential function, which means the exponential operation with constant e as the base. As the cluster embedding matrix updated by the cross-attention mechanism.

[0019] Preferably, in S2, the reservoir water level output of the model on the training set is compared with the corresponding measured reservoir water level, and the loss function used when calculating the loss is the clustering quality loss function L C , which combines the consistency between channels and clusters, and the differences between different clusters. The clustering quality loss function L C It can be expressed as formula (3):

[0020] (3)

[0021] Where Tr is the tracking operator, M is the membership matrix, and M T is the transpose of the membership matrix, S=S ij (i=1,…,F,j=1,…,F) is the channel similarity matrix, S ij Represents the i-th channel time series X i and the jth channel X j The similarity of can be expressed as:

[0022] (4)

[0023] In the formula, is the scaling factor, and exp is an exponential function, which represents an exponential operation with a constant e as the base.

[0024] Preferably, when the model is trained in S2, a cluster-aware feedforward network is used to output the predicted value, that is, a feedforward network is assigned to each cluster, and each feedforward network is parameterized using a single linear layer. The reservoir water level prediction result of the final training period is the average value of the outputs of all cluster-aware feedforward networks. The reservoir water level prediction result of the training period is compared with the corresponding measured reservoir water level prediction result, and the model parameters are continuously adjusted until the cluster quality loss function L C It is in a small and reasonable range, and the model training is completed.

[0025] Preferably, in said S3, the TimeFM prediction model of the coupled multi-channel clustering module and the TimeFM module of the original uncoupled multi-channel clustering module are used to predict the reservoir water level on the test set, and the Nash coefficient NSE and the root mean square error RMSE are selected to evaluate the accuracy of the prediction result. The calculation formulas can be expressed as formula (5) and formula (6) respectively:

[0026] (5)

[0027] (6)

[0028] In the formula, Represents the predicted value of reservoir water level of each model at the i-th step in the test set; represents the measured value of the reservoir water level at the i-th step in the test set, and n represents the number of steps in the test set, that is, the length of the test set; Represents the average of all step length measurements on the test set.

[0029] Preferably, when performing reservoir water level prediction for zero training samples based on the TimeFM model of the coupled multi-channel clustering module in S4, the selected reservoir is a reservoir that did not appear in the aforementioned steps, that is, the time series data of the reservoir water level and its related influencing factors of the reservoir are not used for the training of the TimeFM model of the coupled multi-channel clustering module. The reservoir water level and related influencing factor data are divided into a training set and a test set. The TimeFM model of the coupled multi-channel clustering module trained on other reservoir water level and related influencing factor time series data sets is directly used on the test set to predict the reservoir water level prediction result; at the same time, in order to analyze the prediction effect of the TimeFM model of the coupled multi-channel clustering module on the reservoir, the training set of the reservoir is used to train the original TimeFM model of the uncoupled multi-channel clustering module, and then the prediction is performed on the test set of the reservoir to obtain the reservoir water level prediction result, and the prediction effects of the two models are evaluated using NSE and RMSE, and the prediction effect of the TimeFM model of the coupled multi-channel clustering module on the zero training sample of the reservoir is analyzed.

[0030] The embodiment of the present invention provides a reservoir water level prediction method coupled with a multi-channel clustering module. The method clusters each channel, fully considering the computational complexity and the correlation between channels. The method adopts a cross-attention mechanism to create a prototype embedding for each cluster as pre-training knowledge, and constructs a clustering quality loss function that couples direct prediction loss and clustering prediction loss for model training. The method uses cluster-aware feedforward to assign a feedforward network to each cluster to capture the time series pattern between each cluster, which effectively improves the prediction accuracy of the reservoir water level. At the same time, it can also help the model achieve zero-sample prediction on samples that have not been seen in other reservoirs. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 Schematic diagram of a flow chart of an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention.

[0033] like Figure 1 As shown, a reservoir water level prediction method coupled with a multi-channel clustering module is provided in an embodiment of the present invention, and the method comprises the following steps:

[0034] S1: Dataset collection;

[0035] In this step, time series data of multiple channels such as reservoir water level and its related influencing factors are collected; the data of reservoir water level and its related influencing factors are divided into training set and test set, and the reservoir water level is used as output and the reservoir water level related influencing factors are used as input.

[0036] S2: Multi-channel clustering module construction;

[0037] In this step, the reservoir water level related influencing factors are input into the prediction model coupled with the multi-channel clustering module on the training set, and the reservoir water level output of the model on the training set is compared with the corresponding measured reservoir water level, the loss is calculated, and the parameters are continuously adjusted so that the reservoir water level prediction results output by the model on the training set and the corresponding measured reservoir water level achieve satisfactory accuracy.

[0038] S3: Multi-channel clustering module coupled with prediction model;

[0039] In this step, the prediction model of the coupled multi-channel clustering module and the time series model of the uncoupled multi-channel clustering module are used to predict the reservoir water level on the test set to evaluate the reservoir water level prediction effect of the two types of models.

[0040] S4: Evaluation of reservoir water level prediction effect;

[0041] In this step, the time series of the reservoir water level and its related influencing factors of another reservoir are collected, and the data of the reservoir water level and its related influencing factors are divided into a training set and a test set. The reservoir water level influencing factors on the test set are input into the prediction model coupled with the multi-channel clustering module. There is no need to use the data of the reservoir training set for model training, so as to realize the reservoir water level prediction of the reservoir with zero training samples. At the same time, the prediction model of the uncoupled multi-channel clustering module is trained with the data of the training set, and the reservoir water level prediction is performed on the test set to evaluate the reservoir water level prediction effects of the two.

[0042] Further, in the embodiment of the present invention, when the time series data of multiple channels such as the reservoir water level and its related influencing factors are collected in step S1, the time series data mainly include the reservoir water level, inflow, rainfall, evaporation and other types of time series, wherein the reservoir water level is the variable to be predicted, and the current inflow, rainfall, evaporation corresponding to the reservoir water level and the inflow, rainfall and evaporation at different historical moments are the characteristic variables affecting the change of the reservoir water level. Assuming that the number of characteristic variables after the final processing is F, since each characteristic time series variable corresponds to a channel, the number of channels is also F, and the reservoir water level and its influencing characteristic time series are X∈R t×F , where R is a real number set with a dimension of t×F, indicating that it consists of F channels of time series, and the length of each channel is t. Then the time series of the i-th channel can be expressed as X i =X[1:t, i] .

[0043] Furthermore, in an embodiment of the present invention, the prediction model adopted in step S2 is the TimeFM model. The multi-channel clustering module coupled to the prediction model TimeFM first needs to prototype a set of cluster embedding vectors, convert the input time series of each channel into a channel embedding vector through a multi-layer perceptron, calculate the similarity between each channel embedding vector and the cluster embedding vector to which it belongs, and determine the association probability of each channel with each cluster through the normalized inner product.

[0044] Furthermore, when the prototype in S2 is a set of cluster embedding vectors, assuming that the number of clusters of cluster embedding is N, the cluster embedding matrix C can be expressed as C=[c1,...,c k ,..., c N ]∈R N×d , where the kth cluster is c k ∈R d , d is the hidden dimension, and the one-dimensional time series X of the i-th channel of the collected reservoir water level and its impact feature time series i Transformed into a d-dimensional channel embedding vector h through a multi-layer perceptron MLP i , all F channel embedding vectors form the channel embedding matrix H=[h1,...,h i ,...,h F ]∈R F×d Then the probability of association between the i-th channel embedding vector and the k-th clustering vector is It can be expressed as formula (1):

[0045] (1)

[0046] In the formula, is the normalization function; c k The transpose of || || represents the modulus of the vector, and the parameterization technique is used to obtain the clustering membership matrix M∈R F×N , M ik ≈Bernoulli( ), Bernoulli said M ik Approximately satisfies the Bernoulli distribution.

[0047] Furthermore, in the embodiment of the present invention, after determining the association probability of each channel with each cluster, the multi-channel clustering module coupled to the prediction model TimeFM in step S2 needs to perform prototype learning. Specifically, a cluster allocator is first used to create a d-dimensional prototype cluster embedding matrix for each cluster in the training phase, and a cross-attention mechanism is used to enhance the correlation of channels within the cluster and reduce the interference of channel information outside the cluster. The prototype embedding after the cross-attention mechanism is processed It can be expressed as formula (2):

[0048] (2)

[0049] Where W Q , W K and W V is a learnable parameter, exp is an exponential function, which means the exponential operation with constant e as the base. As the cluster embedding matrix updated by the cross-attention mechanism.

[0050] Furthermore, in the embodiment of the present invention, in step S2, the reservoir water level output of the model on the training set from 2015 to 2020 is compared with the corresponding measured reservoir water level, and the loss function used to calculate the loss is the clustering quality loss function L C , which combines the consistency between channels and clusters, and the differences between different clusters. The clustering quality loss function L C It can be expressed as formula (3):

[0051] (3)

[0052] Where Tr is the tracking operator, M is the membership matrix, and M T is the transpose of the membership matrix, S=S ij (i=1,…,F,j=1,…,F) is the channel similarity matrix, S ij Represents the i-th channel time series X i and the jth channel X j The similarity of can be expressed as:

[0053] (4)

[0054] In the formula, is the scaling factor, and exp is an exponential function, which represents an exponential operation with a constant e as the base.

[0055] Furthermore, in the embodiment of the present invention, when the model is trained in step S2, a cluster-aware feedforward network is used to output the predicted value, that is, a feedforward network is assigned to each cluster, and each feedforward network is parameterized using a single linear layer. The final reservoir water level prediction result during the training period from 2015 to 2020 is the average value of the outputs of all cluster-aware feedforward networks. The reservoir water level prediction results during the training period are compared with the corresponding measured reservoir water level prediction results, and the model parameters are continuously adjusted until the cluster quality loss function L C It is in a small and reasonable range, and the model training is completed.

[0056] Furthermore, in the embodiment of the present invention, in step S3, the TimeFM prediction model of the coupled multi-channel clustering module and the TimeFM module of the original uncoupled multi-channel clustering module are used to predict the reservoir water level on the test set, and the Nash coefficient NSE and the root mean square error RMSE are selected to evaluate the accuracy of the prediction result. The calculation formulas can be expressed as formula (5) and formula (6) respectively:

[0057] (5)

[0058] (6)

[0059] In the formula, Represents the predicted value of reservoir water level of each model at the i-th step in the test set; represents the measured value of the reservoir water level at the i-th step in the test set, and n represents the number of steps in the test set, that is, the length of the test set; It represents the average value of all step lengths measured on the test set. The specific evaluation results are shown in Table 1:

[0060] Table 1 Accuracy of reservoir water level prediction results by coupling multi-channel clustering module

[0061] Prediction Model NSE RMSE(m) Multi-channel clustering module + TimeFM 0.997 0.0853 TimeFM 0.984 0.1021

[0062] Furthermore, in an embodiment of the present invention, when performing reservoir water level prediction for zero training samples based on the TimeFM model coupled with a multi-channel clustering module in step S4, Reservoir B is selected as the research object, and the time series data of the reservoir water level and its related influencing factors of Reservoir B from 2016 to 2022 are collected, wherein the time series data of the water level and its related influencing factors of Reservoir B are not used for the training of the TimeFM model coupled with a multi-channel clustering module. The water level and related influencing factor data of Reservoir B are divided into a training set and a test set. The training set is from 2016 to 2020, and the test set is from 2021 to 2022. The TimeFM model of the coupled multi-channel clustering module trained on the time series data set of Reservoir A water level and related influencing factors is directly used for prediction in the test set from 2021 to 2022. At the same time, in order to analyze the prediction effect of the TimeFM model of the coupled multi-channel clustering module on the reservoir, the training set of Reservoir B from 2016 to 2020 is used to train the TimeFM model of the original uncoupled multi-channel clustering module, and then the prediction result of Reservoir B water level is obtained on the test set of Reservoir B. The prediction effects of the two models are evaluated by NSE and RMSE. The final prediction results are shown in Table 2:

[0063] Table 2 Prediction results accuracy of the reservoir water level prediction model coupled with the multi-channel clustering module trained with the B reservoir data

[0064] Prediction Model NSE RMSE(m) Multi-channel clustering module + TimeFM + A reservoir data training 0.937 0.3046 TimeFM+B reservoir data training 0.944 0.2837

[0065] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. 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 performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0066] 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 program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0067] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.

[0068] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0069] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A reservoir water level prediction method coupled with a multi-channel clustering module, characterized in that: The method comprises the following steps: S1: Collect time series data of multiple channels of reservoir water level and its related influencing factors; divide the reservoir water level and its related influencing factors data into training set and test set, and take reservoir water level as output and reservoir water level related influencing factors as input; S2: Input the reservoir water level related influencing factors into the prediction model coupled with the multi-channel clustering module on the training set, and compare the reservoir water level output of the model on the training set with the corresponding measured reservoir water level, calculate the loss, and continuously adjust the parameters so that the reservoir water level prediction results output by the model on the training set and the corresponding measured reservoir water level reach the preset accuracy; The prediction model is the TimeFM model. The multi-channel clustering module coupled to the prediction model TimeFM first needs to prototype a set of cluster embedding vectors, convert the input time series of each channel into a channel embedding vector through a multi-layer perceptron, calculate the similarity between each channel embedding vector and the cluster embedding vector to which it belongs, and determine the association probability of each channel with each cluster through the normalized inner product; When the prototype is a set of cluster embedding vectors, assuming that the number of clusters of cluster embedding is N, then this set of cluster embedding matrix C is expressed as C = [c1,...,c k ,...,c N ]∈R N×d , where the kth cluster is c k ∈R d , d is the hidden dimension, and the one-dimensional time series X of the i-th channel of the collected reservoir water level and its impact feature time series i Transformed into a d-dimensional channel embedding vector h through a multi-layer perceptron MLP i , all F channel embedding vectors form the channel embedding matrix H = [h1,...,h i ,...,h F ]∈R F×d Then the association probability p between the i-th channel embedding vector and the k-th clustering vector is i,k It is expressed as formula (1): In the formula, Norm is the normalization function; c k The transpose of |‖‖| represents the modulus of the vector, and the parameterization technique is used to obtain the clustering membership matrix M∈F×N, M ik ≈Bernoulli(p i,k ), Bernoulli said M ik Approximately satisfies the Bernoulli distribution; The multi-channel clustering module coupled to the prediction model TimeFM needs to perform prototype learning after determining the association probability of each channel with each cluster. Specifically, the cluster allocator is first used to create a d-dimensional prototype cluster embedding matrix for each cluster in the training phase. At the same time, the cross-attention mechanism is used to enhance the correlation of channels within the cluster and reduce the interference of channel information outside the cluster. The prototype embedding processed by the cross-attention mechanism It is expressed as formula (2): Where W Q , W K and W V is a learnable parameter, As the cluster embedding matrix updated by the cross attention mechanism, exp is an exponential function, which means the exponential operation with constant e as the base; S3: The prediction model of coupled multi-channel clustering module and the time series model of uncoupled multi-channel clustering module are used to predict the reservoir water level on the test set to evaluate the reservoir water level prediction effect of the two types of models; S4: Collect the time series of the reservoir water level and its related influencing factors of another reservoir, divide the data of the reservoir water level and its related influencing factors into a training set and a test set, input the reservoir water level influencing factors on the test set into the prediction model coupled with the multi-channel clustering module, and realize the reservoir water level prediction of the reservoir with zero training samples without using the data of the reservoir training set for model training. At the same time, use the data of the training set to train the prediction model that is not coupled with the multi-channel clustering module, and perform the reservoir water level prediction on the test set to evaluate the reservoir water level prediction effects of the two.

2. A reservoir water level prediction method coupled with a multi-channel clustering module according to claim 1, characterized in that: When the time series data of multiple channels of reservoir water level and its related influencing factors are collected in S1, it mainly includes time series of reservoir water level, inflow, rainfall and evaporation, among which the reservoir water level is the variable to be predicted, and the current inflow, rainfall, evaporation corresponding to the reservoir water level and the inflow, rainfall and evaporation at different historical moments are the characteristic variables affecting the change of reservoir water level. Assuming that the number of characteristic variables after final processing is F, since each characteristic time series variable corresponds to one channel, the number of channels is also F. Let the reservoir water level and its influencing characteristic time series be X∈R t×F , where R is a real number set with a dimension of t×F, indicating that it consists of F channels of time series, and the length of each channel is t. The time series of the i-th channel is represented by X i =X [1:t,i] .

3. A reservoir water level prediction method coupled with a multi-channel clustering module according to claim 2, characterized in that: In S2, the reservoir water level output of the model on the training set is compared with the corresponding measured reservoir water level. The loss function used to calculate the loss is the clustering quality loss function L C , L C The clustering quality loss function L combines the consistency between channels and clusters, and the differences between different clusters. C It is expressed as formula (3): L C =-Tr(M T SM)+Tr((1-MM T )S) (3) Where Tr is the tracking operator, M is the membership matrix, and M T is the transpose of the membership matrix, S = S ij (i=1,…,F,j=1,…,F) is the channel similarity matrix, S ij represents the i-th channel time series X i and the jth channel X j The similarity is calculated as follows: Where σ is the scaling factor, and exp is an exponential function, which represents an exponential operation with a constant e as the base.

4. A reservoir water level prediction method coupled with a multi-channel clustering module according to claim 3, characterized in that: When the model is trained in S2, a cluster-aware feedforward network is used to output the predicted value, that is, a feedforward network is assigned to each cluster, and each feedforward network is parameterized using a single linear layer. The reservoir water level prediction result of the final training period is the average value of the outputs of all cluster-aware feedforward networks. The reservoir water level prediction result of the training period is compared with the corresponding measured reservoir water level prediction result, and the model parameters are continuously adjusted until the cluster quality loss function L C It is within a reasonable range, and the model training is completed.

5. A reservoir water level prediction method coupled with a multi-channel clustering module according to claim 4, characterized in that: In the above S3, the TimeFM prediction model of the coupled multi-channel clustering module and the TimeFM module of the original uncoupled multi-channel clustering module are used to predict the reservoir water level on the test set. The Nash coefficient NSE and the root mean square error RMSE are selected to evaluate the accuracy of the prediction results. The calculation formulas are respectively expressed as formula (5) and formula (6): In the formula, y_P i represents the predicted value of reservoir water level of each model at the i-th step in the test set; y i represents the measured value of the reservoir water level at the i-th step in the test set, and n represents the number of steps in the test set, that is, the length of the test set; Represents the average of all step length measurements on the test set.

6. A reservoir water level prediction method coupled with a multi-channel clustering module according to claim 5, characterized in that: When performing reservoir water level prediction for zero training samples based on the TimeFM model of the coupled multi-channel clustering module in S4, the selected reservoir is a reservoir that does not appear in the aforementioned steps, that is, the reservoir water level and related influencing factor time series data of the reservoir are not used for the training of the TimeFM model of the coupled multi-channel clustering module. The reservoir water level and related influencing factor data are divided into a training set and a test set. The TimeFM model of the coupled multi-channel clustering module trained on other reservoir water level and related influencing factor time series data sets is directly used on the test set to predict the reservoir water level prediction result; at the same time, in order to analyze the prediction effect of the TimeFM model of the coupled multi-channel clustering module on the reservoir, the original TimeFM model of the uncoupled multi-channel clustering module is trained using the training set of the reservoir, and then the prediction is performed on the test set of the reservoir to obtain the reservoir water level prediction result, and the prediction effects of the two models are evaluated using NSE and RMSE, and the prediction effect of the TimeFM model of the coupled multi-channel clustering module on the zero training sample of the reservoir is analyzed.