Method for constructing rainfall runoff model based on rel-informer model

By employing the Rel-Informer model in rainfall-runoff modeling and utilizing innovative designs such as relative position encoding and multi-head self-attention mechanism, the problems of position encoding and data applicability of existing models are solved, achieving higher prediction accuracy and lower computational complexity, making it suitable for mobile devices.

CN117807517BActive Publication Date: 2026-11-27NANCHANG INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410017405.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-05-22
Filing Date
2024-01-05
Publication Date
2026-11-27
Estimated Expiration
2044-01-05

AI Technical Summary

Technical Problem

Existing rainfall-runoff modeling methods have problems with location encoding based on Transformer and Informer models, which leads to degraded model performance, high computational costs, and high requirements for meteorological input data, thus limiting their practical application.

Method used

By employing the Rel-Informer model and replacing absolute position encoding with relative position encoding, along with innovative designs such as multi-head self-attention mechanism and position embedding, a rainfall-runoff model is constructed to improve the model's prediction accuracy and data applicability.

Benefits of technology

It improves the prediction accuracy and universality of rainfall-runoff modeling, reduces training complexity and time and space overhead, is suitable for mobile devices, and enhances the model's prediction ability under dynamic environmental changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117807517B_ABST
    Figure CN117807517B_ABST
Patent Text Reader

Abstract

The application provides a construction method of a rainfall runoff model based on a Rel-Informer model, which comprises the following steps: generating an input vector; performing convolution operation on the input vector; performing relative position coding on the input vector; calculating a superposition vector; setting a maximum number of cycles, first processing the superposition vector through an improved self-distillation multi-head attention mechanism, then performing normalization processing on the superposition vector and an output result, and then sequentially performing convolution operation and pooling operation on the normalized features to obtain pooling features, and continuously cycling in this way to obtain an updated superposition vector; performing self-distillation multi-head attention mechanism operation on the superposition vector; performing multi-head attention mechanism operation on the updated superposition vector and a common execution; and outputting the result after the multi-head attention mechanism through a full connection layer to obtain a predicted runoff result. The application can improve the model performance and thus improve the prediction accuracy of modeling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of rainfall-runoff prediction technology, and in particular to a method for constructing a rainfall-runoff model based on the Rel-Informer model. Background Technology

[0002] Rainfall-runoff modeling is an important research topic in the field of hydrological science. It has always been one of the most important tasks in hydrological research. In particular, with the construction and improvement of modern hydrological observation systems, the rainfall and other meteorological forcing data required for rainfall-runoff modeling are becoming more and more abundant. At the same time, the advancement of computer technology and the emergence of high spatiotemporal resolution remote sensing data have also promoted the research on large-sample watershed rainfall-runoff modeling.

[0003] Currently, rainfall-runoff modeling mainly includes two types of methods. One type is based on physical process understanding, which couples hydrological processes at the watershed scale. However, this approach is computationally expensive and requires high-quality meteorological input data, which limits its practical application. The other type is based on attention mechanisms. Research on Transformer and Informer models in hydrological rainfall-runoff modeling is still scarce. In interpreting the principles of Transformer and Informer models, it has been found that these two models have problems with location encoding, which also leads to a decrease in model performance. Summary of the Invention

[0004] Therefore, the purpose of this invention is to propose a method for constructing a rainfall-runoff model based on the Rel-Informer model. The constructed rainfall-runoff model has more comprehensive data and can more accurately grasp the dynamic changes in the environment, thereby further improving the prediction accuracy of the model.

[0005] According to the present invention, a method for constructing a rainfall-runoff model based on the Rel-Informer model is proposed, the method comprising: Acquire watershed meteorological data and runoff data corresponding to the target area, and generate input vectors X and Y based on the watershed meteorological data and the runoff data, respectively; Perform convolution operations on the input vectors X and Y respectively to obtain convolution vectors X and Y corresponding to the input vectors X and Y respectively. r、 Y r ; The input vectors X and Y are respectively encoded using relative position encoding to obtain the relative position encoded vectors X and Y respectively. c Y c ; According to the convolution vector X r、 Yr and the relative position encoding vector X c Y c Calculate the superposition vector and ; Set the maximum number of loops. First, the superimposed vectors After processing with the improved self-distillation multi-head attention mechanism, the output result is obtained. Next, the superimposed vectors and output results Normalization is performed to obtain normalized features. Then normalize the features Perform convolution and pooling operations sequentially to obtain pooled features. Determine if i is equal to If they are not equal, then let This process continues until i equals ... By stopping the loop operation, we can obtain... ,make To obtain the updated superposition vector ; Superimposed vectors Perform a self-distillation multi-head attention mechanism operation to obtain the output result after the self-distillation multi-head attention mechanism. ; Update the superposition vector and The multi-head attention mechanism is executed jointly to obtain the result after the multi-head attention mechanism is applied. ; The result after the multi-head attention mechanism The output is processed through a fully connected layer to obtain the predicted runoff results.

[0006] In summary, the Rel-Informer proposed in this invention is an innovative deep learning model based on Informer. Its core lies in replacing absolute positional encoding with relative positional encoding, and extending this approach to rainfall-runoff modeling tasks, achieving significant prediction results. Specifically, the advantage of relative positional encoding is that it can better capture the relative abstraction of length and temporal sequence between different samples in time-series data, thus possessing higher universality and generalizability. Compared to Informer and other methods based on absolute positional encoding, Rel-Informer greatly improves the prediction accuracy of time-series models, especially in rainfall-runoff modeling, where it has been widely applied. Furthermore, the input layer of Rel-Informer includes various meteorological and other influencing factors, giving the model more comprehensive data and enabling it to more accurately grasp environmental dynamics, thereby further improving the prediction accuracy of the modeling. Furthermore, another key aspect of the Rel-Informer proposed in this invention lies in its extension and improvement of the Informer model. Besides using relative positional encoding, Rel-Informer integrates a series of innovative designs, such as positional embedding and multi-head self-attention mechanisms, further enhancing its ability to model time series data and reducing training complexity and time-space overhead. These designs provide the foundation and lay many prerequisites for shaping and driving next-generation time series modeling applications.

[0007] Furthermore, the step of acquiring watershed meteorological data and runoff data corresponding to the target area, and generating input vectors X and Y based on the watershed meteorological data and the runoff data respectively, includes: An input vector is generated based on the meteorological data of the watershed. An input vector is generated based on the runoff data. Where X represents watershed meteorological data, Y represents runoff data, and x1, x2, x3, x4, x5, x6, x7, x8, x9, x1, x1, x2, x9, x1, x1, x2, x9, x1, x1, x2, x3 ... n+m Let y1, y2, and ym represent the watershed meteorological data for the first, second, and (n+m)th time intervals, respectively, where n and m are both positive integers. n These represent the runoff data for the first, second, and nth time units, respectively. The input vector Y is padded with zero vectors so that the length of Y is n+m, and so that... .

[0008] Further, the convolution operation is performed on the input vectors X and Y respectively to obtain the convolution vector X corresponding to the input vectors X and Y respectively. r、 Y r The steps include: input vector and After passing through a convolutional neural network layer, specifically: Perform the convolution operation according to the following formula: in, This indicates a convolution operation.

[0009] Further, the relative position encoding is performed on the input vectors X and Y respectively to obtain the relative position encoded vectors X and Y respectively. c Y c The steps include: The input vector is calculated according to the following formula. Perform relative position encoding: The input vector is calculated according to the following formula. Perform relative position encoding: in, This represents the encoding result of the relative positions of the 2c-th dimension i and j of the input vector X. This represents the encoding result of the relative positions of the (2c+1)th dimension i and j of the input vector X, where i and j represent the positions of the input vector X or Y, ij represents the relative positions of i and j, and c represents the c-th dimension of the input vector X or Y. This represents the encoding result of the relative positions of the 2c-th dimension i and j of the input feature X. d represents the encoding result of the relative positions of the (2c+1)th dimension i and j of the input feature X, and d represents the maximum dimension of the input vector X or Y.

[0010] Further, the step based on the convolution vector X r、 Y r and the relative position encoding vector X c Y c Calculate the superposition vector and The steps include: The superposition vector is calculated using the following formula. and : .

[0011] Furthermore, the setting of the maximum number of loops First, the superimposed vectors After processing with the improved self-distillation multi-head attention mechanism, the output result is obtained. Next, the superimposed vectors and output results Normalization is performed to obtain normalized features. Then normalize the features Perform convolution and pooling operations sequentially to obtain pooled features. Determine if i is equal to If they are not equal, then let This process continues until i equals ... By stopping the loop operation, we can obtain... ,make To obtain the updated superposition vector The steps include: Let the number of encoder network layers be . From i=1 to Perform the traversal operation; For a specific single-layer encoder network, there is... ,in This indicates a self-distillation multi-head attention mechanism. Represents the encoded part The output result after self-distillation of the multi-head attention mechanism; The superimposed vector is calculated according to the following formula. and output results Normalization is performed: Indicates the network normalization layer, regarding The specific formula is as follows: and These represent the scaling factor and the displacement factor, respectively. and These represent the mean and standard deviation, respectively. Perform a convolution operation on the processed feature data, i.e. ; The result after the fully connected layer is further subjected to a pooling operation, i.e. ,in, Indicates the max pooling layer. This indicates the i-th traversal. The result after max pooling operation; Determine if i is equal to If they are not equal, then let The loop continues, and if the results are equal, the loop stops. This yields... ,make .

[0012] Furthermore, the superimposed vector Perform a self-distillation multi-head attention mechanism operation to obtain the output result after the self-distillation multi-head attention mechanism. The steps include: For superimposed vectors Perform self-distillation multi-head attention mechanism operation, i.e. ,in Indicates the decoding part The output result after self-distillation of the multi-head attention mechanism.

[0013] Furthermore, the updated superposition vector and The multi-head attention mechanism is executed jointly to obtain the result after the multi-head attention mechanism is applied. The steps include: Update the superposition vector and Jointly execute multi-head attention mechanism operations, that is ,in This indicates a multi-head attention mechanism. express and The result after the multi-head attention mechanism.

[0014] Furthermore, the result after undergoing the multi-head attention mechanism... The steps for obtaining the predicted runoff results after passing through the fully connected layer include: The result The output is processed through a fully connected layer. ,in This represents a fully connected neural network and preserves... The last m data points are used as the predicted runoff results. .

[0015] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by means of embodiments of the invention. Attached Figure Description

[0016] Figure 1 This is a flowchart illustrating a method for constructing a rainfall-runoff model based on the Rel-Informer model according to an embodiment of the present invention.

[0017] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation

[0018] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0020] Please see Figure 1 The diagram shows a flowchart of a method for constructing a rainfall-runoff model based on the Rel-Informer model according to an embodiment of the present invention. The method includes steps S01 to S08, wherein: Step S01: Obtain watershed meteorological data and runoff data corresponding to the target area, and generate input vectors based on the watershed meteorological data and the runoff data respectively; In this step, to obtain the input vector, it is first necessary to generate the input vector based on the watershed meteorological data. An input vector is generated based on the runoff data. Where X represents watershed meteorological data, Y represents runoff data, and x1, x2, x3, x4, x5, x6, x7, x8, x9, x1, x1, x2, x9, x1, x1, x2, x9, x1, x1, x2, x3 ... n+m These represent the watershed meteorological data for the 1st, 2nd, and (n+m)th time periods, respectively, where n and m are both positive integers. This is an example, not a limitation. A time period generally refers to one day. Furthermore, the watershed meteorological or runoff data for time periods 1-n refer to historical data, while the watershed meteorological or runoff data for time periods n+1-n+m are future data. The watershed meteorological data for time periods n+1-n+m can be obtained from meteorological stations. The purpose of this scheme is to predict the runoff data for time periods n+1-n+m.

[0021] Furthermore, the input vector Y is padded with zero vectors so that the length of Y is n+m, and so that... Here, the original length of matrix Y is n, and m zeros are padded to ensure that the lengths of the inputs X and Y in the subsequent encoding and decoding parts are equal.

[0022] Step S02: Perform convolution operations on the input vectors respectively to obtain convolution vectors corresponding to the input vectors respectively; It should be noted that the input vector and After passing through a convolutional neural network layer, we have , ,in This indicates a convolution operation; here, X and Y are passed through a convolutional neural network to reduce the dimensionality of the input. When the length and features of the input data are too large, dimensionality reduction can ensure both the accuracy and efficiency of the model.

[0023] Step S03: Perform relative position encoding on the input vectors respectively to obtain relative position encoded vectors corresponding to the input vectors respectively; In some optional embodiments of the present invention, relative position encoding is performed on inputs X and Y, then... , ,in This represents the relative position encoding operation. The specific formula for relative position encoding is as follows: For X r The calculation formula is as follows: For Y r The calculation formula is as follows: in, This represents the encoding result of the relative positions of the 2c-th dimension i and j of the input vector X. This represents the encoding result of the relative positions of the (2c+1)th dimension i and j of the input vector X, where i and j represent the positions of the input vector X or Y, ij represents the relative positions of i and j, and c represents the c-th dimension of the input vector X or Y. This represents the encoding result of the relative positions of the 2c-th dimension i and j of the input feature X. d represents the relative position encoding result of the (2c+1)th dimension i and j of the input feature X, d represents the maximum dimension of the input vector X or Y, sin() represents the sine function, and cos() represents the cosine function.

[0024] It should be noted that the traditional operation uses direct encoding to encode the position of input X and Y. However, after encoding the input using this method, the position information will be lost after subsequent self-attention mechanism operations. Here, a new relative position encoding is designed to ensure that the position information of the input is not lost after subsequent operations.

[0025] Step S04: Calculate the superimposed vector based on the convolution vector and the relative position encoding vector; Specifically, the superimposed vector is calculated according to the following formula. and : .

[0026] In this step, the relative position encoding data of the input dimensionality-reduced data are added together, so that the data input to subsequent steps contains both the original data information and the position information.

[0027] Step S05: Set the maximum number of iterations. First, process the superimposed vector through the improved self-distillation multi-head attention mechanism to obtain the output result. Then, normalize the superimposed vector and the output result to obtain normalized features. Next, perform convolution and pooling operations on the normalized features in sequence to obtain pooled features. Determine whether the current number of iterations is equal to the maximum number of iterations. If they are equal, stop executing the iteration operation to obtain the updated superimposed vector. It should be noted that this step is the encoding part. First, let's assume the number of encoder network layers is... The specific steps are as follows: Step 5-1: From i=1 to Perform the traversal operation, i.e., for i = 1 TO do: Step 5-2: For a specific single-layer encoder network, then... ,in This indicates a self-distillation multi-head attention mechanism. Represents the encoded part The output result after the self-distillation multi-head attention mechanism; the self-distillation multi-head attention mechanism has the following advantages compared to the traditional multi-head attention mechanism: 1. More lightweight: Traditional multi-head attention mechanisms consume a lot of computing resources, while the self-distillation multi-head attention mechanism uses distillation technology to distill a smaller model from a larger model, making the model more lightweight without losing accuracy.

[0028] 2. More efficient: Because the self-distillation multi-head attention mechanism uses the knowledge of a larger model for distillation during training, it is more efficient than the traditional multi-head attention mechanism.

[0029] 3. More suitable for mobile devices: Because the self-distillation multi-head attention mechanism is more lightweight in terms of model size and computational resource usage, it is more suitable for running on mobile devices, such as mobile phones.

[0030] 4. Improved model generalization ability: The self-distillation multi-head attention mechanism uses a larger model for distillation during training, which enables the smaller model to have a stronger generalization ability and thus perform better on new data.

[0031] set up and Matrix represented in separate tables ,and The i-th vector, and Matrix represented in separate tables , and The j-th vector, Matrix represented in separate tables If the l-th vector is..., then Attention can be defined as a kernel smoother in probabilistic form: , , , in, Represents the asymmetric exponential kernel. Indicates will The output is obtained by combining and calculating probabilities. Indicates to The result is represented after the asymmetric exponential kernel operation. This represents the dot product operation. Indicates the dimension of the input features.

[0032] Step 5-2-2: Calculate the attention probability Satisfy uniform distribution The KL divergence is given by the following formula: The sparsity score metric for the i-th query is represented as follows: Step 5-2-3: The specific expression for the final self-distillation multi-head attention mechanism is as follows: in, Indicates and A sparse matrix of the same size, containing only the first u query values ​​under a sparse metric, is typically set... Where c is a constant factor, express The length.

[0033] Step 5-3: Normalize the input features, i.e. ,in Indicates the network normalization layer. express and The input after the network normalization layer, regarding The specific formula is as follows: in, and These represent the scaling factor and the displacement factor, respectively. and These represent the mean and standard deviation, respectively. Normalization here helps improve the model's training stability, accelerates convergence, and enhances generalization ability.

[0034] Step 5-4: Perform a convolution operation on the processed feature data, i.e. ,in This represents a one-dimensional convolutional neural network. express The output after a one-dimensional convolutional layer can be used to extract local features from a time series data through convolution operations. In a convolution operation, the convolution kernel slides a window across the input data, extracting local features similar in shape to the kernel. These features can reflect local patterns and trends in the time series data.

[0035] Step 5-5: Perform a pooling operation on the result after the fully connected layer, i.e. ,in, Indicates the max pooling layer. This indicates the i-th traversal. The result after max pooling; pooling operations are mainly used to reduce the dimensionality and number of parameters of input features, thereby reducing computational cost and improving the robustness and generalization performance of the model. Specifically, the effects of pooling operations include the following aspects: 1. Reduce the number of parameters: Convolutional neural networks have a very large number of parameters. Pooling operations can reduce the dimensionality of feature maps, thereby reducing the total number of parameters in the network. This helps improve the training and prediction speed of the model.

[0036] 2. Reduce overfitting: Pooling operations can reduce spatial information in feature maps, thereby reducing the risk of overfitting in space and improving the robustness of the model.

[0037] 3. Improve the stability of features after pooling: The pooling operation takes a fixed statistic from the features of a large region, such as the maximum value, to represent the features of that region. This can improve the stability of the features and give them some tolerance to changes in the input.

[0038] 4. Reduce the size of feature maps: Pooling operations can reduce the size of feature maps, thereby making the network more invariant to transformations and local deformations of the input image and improving the generalization performance of the model.

[0039] Steps 5-6: Determine if i is equal to If they are not equal, then let Return to step 5-1 and continue the operation. If they are equal, stop the loop operation. This will yield the desired result. ,make Step S06: Perform a self-distillation multi-head attention mechanism operation on the superimposed vector to obtain the output result after the self-distillation multi-head attention mechanism; In this step, specifically, the superposition vectors are... Perform self-distillation multi-head attention mechanism operation, i.e. ,in Indicates the decoding part The output result after self-distillation of the multi-head attention mechanism.

[0040] Step S07: Perform a multi-head attention mechanism operation on the updated superposition vector and the output result after the self-distillation multi-head attention mechanism to obtain the result after the multi-head attention mechanism. This step mainly involves updating the superposition vector. and Jointly execute multi-head attention mechanism operations, that is ,in This indicates a multi-head attention mechanism. express and The result after applying the multi-head attention mechanism. Detailed steps are as follows: Step 7-1: The specific formula for a single attention mechanism is as follows: , , in, Represent the input matrix and ; express Length; yes The dimension; and yes Three learnable matrix parameters mapped to different spaces; and They are respectively called query value, key value, and value; These are hyperparameters and need to be set manually. This indicates that the operation is performed along the last dimension; Step 7-2: Combining multiple individual attention mechanisms yields a multi-head attention mechanism, the specific formula of which is as follows: , , , in, Indicates the number of heads; Indicates the dimensions of the head; This indicates that the pieces are joined along the second dimension; This is a parameter that is learned automatically.

[0041] Step S08: The results after the multi-head attention mechanism are passed through a fully connected layer and output to obtain the predicted runoff results.

[0042] It should be noted that the result from step seven is output after passing through a fully connected layer, i.e. ,in This represents a fully connected neural network, retaining only... The last m data points are used as the prediction result. The remaining data is discarded. The final output passes through a fully connected layer to combine local features from the convolutional or recurrent layers, mapping the learned features to the output space and enabling parameter sharing, thereby improving model performance and training efficiency.

[0043] In summary, the Rel-Informer proposed in this invention is an innovative deep learning model based on Informer. Its main innovation lies in replacing absolute position encoding with relative position encoding, and extending this method to rainfall-runoff modeling tasks, achieving significant prediction results. The advantage of relative position encoding is that it can better capture the relative abstraction of length and temporal sequence between different samples in time series data, thus possessing higher universality and generalizability. Compared to Informer and other methods based on absolute position encoding, Rel-Informer significantly improves the prediction accuracy of time series models, especially in rainfall-runoff modeling, where it has been widely applied. Furthermore, the input layer of Rel-Informer includes various meteorological and other influencing factors, giving the model more comprehensive data and enabling it to more accurately grasp environmental dynamics, thereby further improving the prediction accuracy of the modeling.

[0044] Another significant contribution of Rel-Informer lies in its innovative extension and improvement of the Informer model. In addition to using relative positional encoding, Rel-Informer integrates a series of innovative designs, such as positional embedding and multi-head self-attention mechanisms, further enhancing its ability to model time series data and reducing training complexity and time-space overhead. These designs lay the foundation and set many prerequisites for shaping and driving the next generation of time series modeling applications.

[0045] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0046] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.

Claims

1. A method for constructing a rainfall-runoff model based on the Rel-Informer model, characterized in that, The Rel-Informer model is obtained by replacing the absolute positional encoding in the Informer model with relative positional encoding. The method includes: Acquire watershed meteorological data and runoff data corresponding to the target area, and generate input vectors X and Y based on the watershed meteorological data and the runoff data, respectively; Perform convolution operations on the input vectors X and Y respectively to obtain convolution vectors X and Y respectively. r、 Y r ; The input vectors X and Y are respectively encoded using relative position encoding to obtain the relative position encoded vectors X and Y respectively. c Y c ; According to the convolution vector X r、 Y r and the relative position encoding vector X c Y c Calculate the superposition vector and ; Set the maximum number of loops. First, the superimposed vectors After processing with the improved self-distillation multi-head attention mechanism, the output result is obtained. Next, the superimposed vectors and output results Normalization is performed to obtain normalized features. Then normalize the features Perform convolution and pooling operations sequentially to obtain pooled features. Determine if i is equal to If they are not equal, then let This process continues until i equals ... Stopping the loop operation will yield the following result. ,make To obtain the updated superposition vector ; Superimposed vectors Perform a self-distillation multi-head attention mechanism operation to obtain the output result after the self-distillation multi-head attention mechanism. ; Update the superposition vector and The multi-head attention mechanism is executed jointly to obtain the result after the multi-head attention mechanism is applied. ; The result after the multi-head attention mechanism The output is processed through a fully connected layer to obtain the predicted runoff results.

2. The method for constructing a rainfall-runoff model based on the Rel-Informer model according to claim 1, characterized in that, The steps of acquiring watershed meteorological data and runoff data corresponding to the target area, and generating input vectors X and Y based on the watershed meteorological data and the runoff data respectively, include: An input vector is generated based on the meteorological data of the watershed. An input vector is generated based on the runoff data. Where X represents watershed meteorological data, Y represents runoff data, and x1, x2, x... n+m Let y1, y2, and ym represent the watershed meteorological data for the first, second, and (n+m)th time intervals, respectively, where n and m are both positive integers. n These represent the runoff data for the first, second, and nth time units, respectively. The input vector Y is padded with zero vectors so that the length of Y is n+m, and so that... .

3. The method for constructing a rainfall-runoff model based on the Rel-Informer model according to claim 2, characterized in that, The input vectors X and Y are convolved to obtain convolution vectors X and Y respectively. r、 Y r The steps include: input vector and After passing through a convolutional neural network layer, specifically: Perform the convolution operation according to the following formula: in, This indicates a convolution operation.

4. The method for constructing a rainfall-runoff model based on the Rel-Informer model according to claim 2, characterized in that, The input vectors X and Y are respectively subjected to relative position encoding to obtain the relative position encoded vectors X and Y respectively. c Y c The steps include: The input vector is calculated according to the following formula. Perform relative position encoding: The input vector is calculated according to the following formula. Perform relative position encoding: in, This represents the encoding result of the relative positions of the 2c-th dimension i and j of the input vector X. This represents the encoding result of the relative positions of the (2c+1)th dimension i and j of the input vector X, where i and j represent the positions of the input vector X or Y, ij represents the relative positions of i and j, and c represents the c-th dimension of the input vector X or Y. This represents the encoding result of the relative positions of the 2c-th dimension i and j of the input feature X. d represents the encoding result of the relative positions of the (2c+1)th dimension i and j of the input feature X, and d represents the maximum dimension of the input vector X or Y.

5. The method for constructing a rainfall-runoff model based on the Rel-Informer model according to claim 3 or 4, characterized in that, The convolution vector X r、 Y r and the relative position encoding vector X c Y c Calculate the superposition vector and The steps include: The superposition vector is calculated using the following formula. and : 。 6. The method for constructing a rainfall-runoff model based on the Rel-Informer model according to claim 5, characterized in that, Setting the maximum number of loops First, the superimposed vectors After processing with the improved self-distillation multi-head attention mechanism, the output result is obtained. Next, the superimposed vectors and output results Normalization is performed to obtain normalized features. Then normalize the features Perform convolution and pooling operations sequentially to obtain pooled features. Determine if i is equal to If they are not equal, then let This process continues until i equals ... By stopping the loop operation, we can obtain... ,make To obtain the updated superposition vector The steps include: Let the number of encoder network layers be . From i=1 to Perform the traversal operation; For a specific single-layer encoder network, there is... ,in This indicates a self-distillation multi-head attention mechanism. Represents the encoded part The output result after self-distillation of the multi-head attention mechanism; The superimposed vector is calculated according to the following formula. and output results Normalization is performed: Indicates the network normalization layer, regarding The specific formula is as follows: and These represent the scaling factor and the displacement factor, respectively. and These represent the mean and standard deviation, respectively. Perform a convolution operation on the processed feature data, i.e. ; The result after the fully connected layer is further subjected to a pooling operation, i.e. ,in, Indicates the max pooling layer. This indicates the i-th traversal. The result after max pooling operation; Determine if i is equal to If they are not equal, then let The loop continues, and if the results are equal, the loop stops. This yields... ,make .

7. The method for constructing a rainfall-runoff model based on the Rel-Informer model according to claim 6, characterized in that, The superimposed vector Perform a self-distillation multi-head attention mechanism operation to obtain the output result after the self-distillation multi-head attention mechanism. The steps include: For superimposed vectors Perform self-distillation multi-head attention mechanism operation, i.e. ,in Indicates the decoding part The output result after self-distillation of the multi-head attention mechanism.

8. The method for constructing a rainfall-runoff model based on the Rel-Informer model according to claim 7, characterized in that, The updated superposition vector and The multi-head attention mechanism is executed jointly to obtain the result after the multi-head attention mechanism is applied. The steps include: Update the superposition vector and Jointly execute multi-head attention mechanism operations, that is ,in, This indicates a multi-head attention mechanism. express and The result after the multi-head attention mechanism.

9. The method for constructing a rainfall-runoff model based on the Rel-Informer model according to claim 8, characterized in that, The result after undergoing the multi-head attention mechanism The steps for obtaining the predicted runoff results after passing through the fully connected layer include: The result The output is processed through a fully connected layer. ,in This represents a fully connected neural network and preserves... The last m data points are used as the predicted runoff results. .