A runoff prediction method using different attributes across datasets

By collecting and standardizing runoff data sets from various countries, and using a sequence-to-sequence model based on Transformer, the problem of runoff prediction limited to a single region in the existing technology has been solved, and the construction of a global runoff prediction model and cross-dataset prediction capabilities have been achieved. .

CN117610696BActive Publication Date: 2024-10-25NORTHWESTERN POLYTECHNICAL UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310219093.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-10-25
Estimated Expiration
2043-03-08

AI Technical Summary

Technical Problem

Existing runoff prediction models are usually limited to a certain country or region, and the underlying data structure and organizational form of the data sets in each country or region are different, making it difficult to directly build a global runoff prediction model.

Method used

By collecting rainfall-runoff data sets from various countries, structural differences are eliminated, a standardized data set is established, and a sequence-to-sequence model based on Transformer is adopted, including input linear transformation layer, attribute-free data source processing, position encoding layer, encoder, and decoder. and output linear transformation layer for data preprocessing and model training to solve cross-dataset prediction problems.

Benefits of technology

It realizes the construction of a global runoff prediction model, which is versatile and easy to transfer learning. It is suitable for runoff prediction across data sets and with little data, and provides effective cross-data set prediction capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117610696B_ABST
    Figure CN117610696B_ABST
Patent Text Reader

Abstract

The present invention relates to a runoff prediction method using different attributes across data sets, and belongs to the technical field of runoff prediction. First, the structural differences of rainfall-runoff data sets in various countries or regions are eliminated, and a normalized data set with global properties is established; secondly, a Transformer that can use different attributes across data sets is constructed, which makes full use of the flexible inductive bias of the Transformer, and can use different attributes across data sets. Non-autoregressive decoding can obtain multi-step prediction results at one time. Therefore, the trained runoff prediction model has prior knowledge of global runoff prediction, is universal, easy to transfer learning, and is suitable for runoff prediction across data sets, with little data or even no data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of runoff prediction, and in particular relates to a runoff prediction method capable of utilizing different attributes across data sets. Background Art

[0002] Rainfall-runoff modeling is a very important task in hydrology. It uses meteorological data such as rainfall and static properties to predict runoff values. Due to the influence of complex factors such as basin hydrological characteristics, basin boundary conditions, human activities, and the spatiotemporal distribution of rainfall, it leads to extremely complex hydrological processes. There are many methods for runoff prediction models, which can be mainly divided into physical models and data-driven models. Physical models are based on actual physical processes but are limited by simplified assumptions and are difficult to simulate nonlinear hydrological processes. In recent years, data-driven runoff prediction methods have received widespread attention. In particular, Transformer-based models have shown good performance in multi-step advance prediction. Transformer overcomes the problems of recurrent neural network (RNN) models such as long short-term memory networks (LSTMs), can fundamentally solve the gradient vanishing problem, truly capture and generate long time series, and can handle many sequence-to-sequence modeling tasks. In addition, Transformer has a more flexible inductive bias and has more potential on ultra-large-scale datasets. However, existing runoff prediction models are often limited to runoff prediction in a certain country or region and only involve datasets in a certain country or region. In addition, there are problems with national or regional data sets, such as unit conversion, missing data, no data source for attributes, and multiple data sources for attributes. In addition, the underlying file formats and directory organization structures are also different, making it difficult to directly use them to build a global runoff prediction model. Summary of the invention

[0003] Technical issues to be solved

[0004] Existing runoff prediction models are often limited to runoff prediction in a certain country or region, and the underlying data structure and organizational form of data sets in different countries or regions are different, making it difficult to directly use them to build a global runoff prediction model. In order to avoid the shortcomings of the prior art, the present invention provides a runoff prediction method using different attributes across data sets.

[0005] Technical Solution

[0006] A runoff prediction method using different attributes across data sets is characterized by the following steps:

[0007] Step 1: Collect rainfall-runoff datasets for each country or region;

[0008] Collect meteorological data in the study basins of each country or region and runoff data from hydrological stations to form original data sets for each country or region, and store the original data sets in persistent devices;

[0009] Step 2: Eliminate the structural differences among various datasets and establish a standardized dataset with global properties;

[0010] Step 3: Load the data of the standard dataset and perform preprocessing;

[0011] Load the dynamic and static properties of the standard data set, divide the data set into three mutually exclusive sets: training set, validation set, and test set; calculate the mean and standard deviation of the training set, and perform standardization; serialize the processed data set;

[0012] Step 4: Build a model for runoff prediction method using different attributes across datasets;

[0013] The model is a sequence-to-sequence model based on Transformer, and its architecture includes: input linear transformation layer, attribute data source processing, position encoding layer, encoder, decoder, output linear transformation layer and output selection operation; the specific steps are as follows:

[0014] Step 4-1: Input linear transformation layer to transform the dimension of input data and unify the data dimension;

[0015] Step 4-2: Attribute no data source processing, solve the attribute no data source problem;

[0016] Step 4-3: The position encoding layer injects position information into the input data;

[0017] Step 4-4: The encoder is composed of multiple encoder layers connected in series. Each encoder layer contains two sub-layers: multi-head self-attention and fully connected layer. Each sub-layer needs to be connected to residual connection and layer normalization.

[0018] The input sequence to the encoder is:

[0019] (x1, x2, …, x past-len+pred-len )

[0020] Where past_len represents the known sequence length, and pred_len represents the predicted sequence length;

[0021] Step 4-5: The decoder is composed of multiple decoder layers connected in series. Each decoder layer contains three sub-layers: multi-head self-attention, multi-head cross-attention and fully connected layer. Each sub-layer is connected to residual connection and layer normalization.

[0022] The input sequence to the decoder is:

[0023] (y1,y2,...,y past_len ,01,02,...,0 pred_len )

[0024] Where past_len indicates the known sequence length, pred_len indicates the predicted sequence length, 01, 02, ... indicate padding with 0, and there are a total of pred_len positions that need to be filled with 0;

[0025] Steps 4-6: multi-head self-attention and multi-head cross-attention;

[0026] calculate:

[0027] Q=W Q I1

[0028] K=W K I2

[0029] V=W V I3

[0030]

[0031] Among them, W Q , W K , W V is a learnable parameter matrix, softmax means Softmax operation, when inputs I2 and I3 are the same and different from input I1, Attn(Q, K, V) is called cross attention; when the three inputs I1, I2, and I3 are the same, Attn(Q, K, V) is called self-attention; Q means I1 after parameter W Q The result of linear transformation, K means I2 after the parameter W K The result obtained after the linear transformation of V represents I3 after the parameter W V The result obtained after linear transformation of ;

[0032] The multi-head attention calculation formula is as follows:

[0033] head i =Attn(QW i Q , KW i K , VW i V )

[0034] MultiHeadAttn(Q,K,V)=Concat(head1,...,head h )W O

[0035] Among them, Wi Q , W i K , W i V , W O is a learnable parameter matrix, h represents the number of heads, i ranges from 1 to h; head1,...,head h It means head;

[0036] When inputs I2 and I3 are the same and different from I1, MultiHeadAttn(Q, K, V) is called multi-head cross attention; when the three inputs I1, I2, and I3 are the same, MultiHeadAttn(Q, K, V) is called multi-head self-attention;

[0037] Step 4-7: The residual connection calculation formula is as follows:

[0038] o=x+Sublayer(x)

[0039] Among them, x represents the input of the sublayer, Sublayer(x) represents the output of the sublayer, and o represents the final output;

[0040] Step 4-8: Layer normalization, standardize the final output dimension;

[0041] Step 4-9: The output transformation layer transforms the output dimension of the decoder so that the output conforms to the final output dimension;

[0042] The decoder output sequence (o1, o2, ...., o past_len+pred_len ) is put into the fully connected layer to obtain the output sequence of the output transformation layer

[0043] Step 4-10: The output selection operation is the output sequence of the output transformation layer The selection process cuts the sequence. Abandoned, only The part is taken as the final output;

[0044] Step 5: Describe the input and output process of the model, define the loss function and optimizer, and train the model;

[0045] Step 6: Test the trained model;

[0046] Use the test set to test the trained model, obtain the prediction results, and evaluate the prediction results based on real data.

[0047] A further technical solution of the present invention: Step 2 is as follows:

[0048] Read the original data set in the persistent device into the memory, unify the units and perform conversion for the unit conversion problem;

[0049] To solve the problem of missing data, interpolation algorithm is used to fill in the missing data;

[0050] For the problem of multiple data sources for attributes, determine a data source;

[0051] Store data in a persistent device according to predefined rules to generate a persistent standard data set;

[0052] All persisted normalized datasets together constitute a normalized dataset with global properties.

[0053] A further technical solution of the present invention: The standardization formula for preprocessing the original data set in step 3 is: Where x represents the original data, represents the sample mean, S represents the sample standard deviation, and z represents the standardized data.

[0054] A further technical solution of the present invention is that the data serialization of the preprocessed original data set is performed using a sliding window, and the formula for the sliding window serialization is as follows:

[0055]

[0056] Among them, z i represents the i-th sequence after serialization, x i represents the i-th feature of the original data set, n represents the size of the original data set, and l represents the size of the sliding window.

[0057] A further technical solution of the present invention: The attribute data source-free processing method described in step 4-2 includes zero filling or learnable missing value filling.

[0058] A further technical solution of the present invention: Step 5 is as follows:

[0059] The input and output process can be described as follows: first, the meteorological data is transformed through the input transformation layer, and the positional encoding is added, and then sent to the encoder for processing to obtain the encoder output; secondly, the historical runoff data is transformed through the input transformation layer, and the positional encoding is added, and then sent to the decoder together with the encoder output for processing to obtain the decoder output; then, non-autoregressive decoding is performed, and the output transformation layer transforms the dimension of the decoder output to make it conform to the dimension of the final output, generating all prediction results at one time; finally, the output selection operation selects the output sequence of the output transformation layer, retaining only the useful part

[0060] The loss function during training adopts the smoothed NSE loss function, and its calculation formula is as follows:

[0061]

[0062] Where N is the number of mini-batch samples, D n is the predicted number of days for the nth sample, is the predicted value on day d, y d is the true value of runoff on day d, S b is the standard deviation of the true value of runoff of all data of the site corresponding to the sample, ∈ represents a very small number, the purpose of which is to avoid division by 0;

[0063] The model is trained for multiple iterations. After each iteration, the test set data is used to evaluate the performance of the model, and the Nash efficiency coefficient NSE is used as an indicator. The NSE calculation formula is as follows:

[0064]

[0065] in, is the mean of the true values ​​of the nth sample runoff.

[0066] A computer system, characterized in that it comprises: one or more processors, and a computer-readable storage medium for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned method.

[0067] A computer-readable storage medium, characterized in that it stores computer-executable instructions, which are used to implement the above method when executed.

[0068] Beneficial Effects

[0069] The present invention provides a runoff prediction method using different attributes across data sets. First, the structural differences in rainfall-runoff data sets of various countries or regions are eliminated, and a normalized data set with global properties is established; secondly, a Transformer that can use different attributes across data sets is constructed, which makes full use of the flexible inductive bias of the Transformer and can use different attributes across data sets. Non-autoregressive decoding can obtain multi-step prediction results at one time. Therefore, the trained runoff prediction model has prior knowledge of global runoff prediction, is universal, easy to transfer learning, and is suitable for runoff prediction across data sets, with little data or even no data. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like components throughout the drawings.

[0071] Figure 1 is a flow chart of the method of the present invention.

[0072] Figure 2 It is a schematic diagram of the calculation of multi-head attention of the method of the present invention.

[0073] Figure 3 It is a structural diagram of the Transformer model of the method of the present invention. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solutions 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. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0075] The present invention provides a runoff prediction method that can use different attributes across data sets. First, collect rainfall-runoff data sets from various countries or regions; second, eliminate the structural differences of each data set and establish a normalized data set with global properties; third, load the data of the normalized data set and perform preprocessing; from this, a model definition of a runoff prediction method that can use different attributes across data sets is defined; then, describe the input and output process of the model, define the loss function and optimizer, and train the model; finally, test the trained model. It includes the following steps:

[0076] Step 1: Collect rainfall-runoff datasets for each country or region;

[0077] Collect meteorological data in the study basins of each country or region and runoff data from hydrological stations to form original data sets of each country or region. These original data sets will be stored in persistent devices (such as disks, USB flash drives, mobile hard drives, and clouds, etc.);

[0078] Step 2: Eliminate the structural differences among various datasets and establish a standardized dataset with global properties;

[0079] First, read the original data set in the persistent device into the memory, unify the units and perform conversions to solve the unit conversion problem; second, for the problem of missing data, use interpolation algorithms such as nearest neighbor interpolation, linear interpolation, and Newton interpolation to fill in the gaps; third, for the problem of multiple data sources for attributes, try to select the most suitable data source based on the description of the original data set, otherwise select one randomly; then, store it in the persistent device according to predefined rules to generate a persistent standard data set; finally, all persistent standard data sets together constitute a normalized data set with global properties.

[0080] Step 3: Load the data of the standard dataset and perform preprocessing;

[0081] First, load the dynamic and static properties of the standard data set and divide the data set into three mutually exclusive sets: training set, validation set, and test set. Then, calculate the mean and standard deviation of the training set and perform standardization. Finally, serialize the processed data set.

[0082] Step 4: Model definition of a runoff prediction method that can exploit different attributes across datasets;

[0083] A runoff prediction method that can use different attributes across data sets uses a sequence-to-sequence model based on Transformer. The architecture includes: input linear transformation layer, attribute data source processing, position encoding layer, encoder, decoder, output linear transformation layer and output selection operation. The specific steps are as follows:

[0084] Step 4-1: Input linear transformation layer to transform the dimension of input data and unify the data dimension;

[0085] Step 4-2: Attribute no data source processing, solve the attribute no data source problem;

[0086] Methods for processing attribute data without data sources include zero filling or learnable missing value filling.

[0087] Step 4-3: The position encoding layer injects position information into the input data;

[0088] Step 4-4: The encoder is composed of multiple encoder layers connected in series. Each encoder layer contains two sub-layers: multi-head self-attention and fully connected layer. Each sub-layer needs to be connected to residual connection and layer normalization.

[0089] The input sequence to the encoder is:

[0090] (x1, x2, …, x past_len+pred_len )

[0091] Where past_len represents the known sequence length, and pred_len represents the predicted sequence length;

[0092] Step 4-5: The decoder is composed of multiple decoder layers connected in series. Each decoder layer contains three sub-layers: multi-head self-attention, multi-head cross-attention and fully connected layer. Each sub-layer is connected to residual connection and layer normalization.

[0093] The input sequence to the decoder is:

[0094] (y1,y2,...,ypast_len ,01,02,...,0 pred_len )

[0095] Where past_len indicates the known sequence length, pred-len indicates the predicted sequence length, 01, 02, ... indicate padding with 0, and there are a total of pred_len positions that need to be filled with 0;

[0096] Steps 4-6: Multi-head self-attention and multi-head cross-attention, which are special cases of multi-head attention, which is a special case of attention. The attention mechanism is a weighted sum mechanism that assigns different weights to different positions, and it will give more important positions greater weights;

[0097] calculate:

[0098] Q=W Q I1

[0099] K=W K I2

[0100] V=W V I3

[0101]

[0102] Among them, W Q , W K , W V is a learnable parameter matrix, softmax indicates a Softmax operation, when inputs I2 and I3 are the same and different from input I1, Attn(Q, K, V) is called cross attention; when the three inputs I1, I2, and I3 are the same, Attn(Q, K, V) is called self-attention;

[0103] The calculation of multi-head attention, when attention is applied to the input multiple times in parallel and the results are concatenated and transformed, the multi-head attention calculation formula is as follows:

[0104] head i =Attn(QW i Q , KW i K , VW i V )

[0105] MultiHeadAttn(Q,K,V)=Concat(head1,...,head h )W O

[0106] Among them, W iQ , W i K , W i V , W O is a learnable parameter matrix, h represents the number of heads, i ranges from 1 to h; head1,...,head h It means head;

[0107] When inputs I2 and I3 are the same and different from I1, MultiHeadAttn(Q, K, V) is called multi-head cross attention; when the three inputs I1, I2, and I3 are the same, MultiHeadAttn(Q, K, V) is called multi-head self-attention;

[0108] Step 4-7: Residual connection, which is used to prevent gradient disappearance and network degradation. The calculation formula is as follows:

[0109] o=x+Sublayer(x)

[0110] Among them, x represents the input of the sublayer, Sublayer(x) represents the output of the sublayer, and o represents the final output;

[0111] Step 4-8: Layer normalization, standardizing the final output dimension, is conducive to the convergence of training;

[0112] Step 4-9: The output transformation layer transforms the output dimension of the decoder so that the output conforms to the final output dimension;

[0113] The decoder output sequence (o1, o2, ..., o past_len+pred_len ) is put into the fully connected layer to obtain the output sequence of the output transformation layer

[0114] Step 4-10: The output selection operation is the output sequence of the output transformation layer The selection process cuts the sequence. Abandoned, only The part is taken as the final output;

[0115] Step 5: Describe the input and output process of the model, define the loss function and optimizer, and train the model;

[0116] The input and output process can be described as follows: first, the meteorological data is transformed through the input transformation layer to obtain the transformed data, and the positional encoding is added, and then the data is sent to the encoder for processing to obtain the encoder output; secondly, the historical runoff data is transformed through the input transformation layer to obtain the transformed data, and the positional encoding is added, and then the data is sent to the decoder together with the encoder output for processing to obtain the decoder output; then, non-autoregressive decoding is performed, and the output transformation layer transforms the dimension of the decoder output to make it conform to the dimension of the final output, generating all prediction results at one time; finally, the output selection operation selects the output sequence of the output transformation layer and retains only the useful parts.

[0117] The loss function during training adopts the smoothed NSE loss function, and its calculation formula is as follows:

[0118]

[0119] Where N is the number of mini-batch samples, D n is the predicted number of days for the nth sample, is the predicted value on day d, y d is the true value of runoff on day d, S b is the standard deviation of the true value of runoff for all data of the site corresponding to the sample;

[0120] The model is trained for multiple iterations. After each iteration, the test set data is used to evaluate the performance of the model, and the Nash efficiency coefficient NSE is used as an indicator. The NSE calculation formula is as follows:

[0121]

[0122] in, is the mean of the true values ​​of the nth sample runoff;

[0123] Step 6: Test the trained model;

[0124] Use the test set to test the trained model, obtain the prediction results, and evaluate the prediction results based on real data.

[0125] Preferably, the standardization formula for preprocessing the original data set is: Where x represents the original data, represents the sample mean, S represents the sample standard deviation, and z represents the standardized data.

[0126] Preferably, the data serialization of the preprocessed original data set is performed using a sliding window, and the formula for serialization of the sliding window is as follows:

[0127]

[0128] Among them, z i represents the i-th sequence after serialization, x i represents the fth feature of the original dataset, n represents the size of the original dataset, and l represents the size of the sliding window.

[0129] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should be included in the protection scope of the present invention.

Claims

1. A runoff prediction method using different attributes across data sets, characterized by Here are the steps: Step 1: Collect rainfall-runoff datasets for each country or region; Collect meteorological data in the study basins of each country or region and runoff data from hydrological stations to form original data sets for each country or region, and store the original data sets in persistent devices; Step 2: Eliminate the structural differences among various datasets and establish a standardized dataset with global properties; Read the original data set in the persistent device into the memory, unify the units and perform conversion for the unit conversion problem; To solve the problem of missing data, interpolation algorithm is used to fill in the missing data; For the problem of multiple data sources for attributes, determine a data source; Store data in a persistent device according to predefined rules to generate a persistent standard data set; All persisted normalized datasets together constitute a normalized dataset with global properties; Step 3: Load the data of the standard dataset and perform preprocessing; Load the dynamic and static properties of the standard data set and divide the data set into three mutually exclusive sets: training set, validation set, and test set; Calculate the mean and standard deviation on the training set and standardize: ,in, Represents the original data, represents the sample mean, represents the sample standard deviation, Represents the data after standardization; the processed data set is serialized, and the data serialization of the preprocessed original data set is done using a sliding window. The formula for sliding window serialization is as follows: in, Represents the first A sequence, Represents the original data set Features, represents the original dataset size, Indicates the size of the sliding window; Step 4: Build a model for runoff prediction method using different attributes across datasets; The model is a sequence-to-sequence model based on Transformer, and its architecture includes: input linear transformation layer, attribute data source processing, position encoding layer, encoder, decoder, output linear transformation layer and output selection operation; the specific steps are as follows: Step 4-1: Input linear transformation layer to transform the dimension of input data and unify the data dimension; Step 4-2: Attribute no data source processing, solve the attribute no data source problem; Step 4-3: The position encoding layer injects position information into the input data; Step 4-4: The encoder is composed of multiple encoder layers connected in series. Each encoder layer contains two sub-layers: multi-head self-attention and fully connected layer. Each sub-layer needs to be connected to residual connection and layer normalization. The input sequence to the encoder is: in represents the known sequence length, Indicates the predicted sequence length; Step 4-5: The decoder is composed of multiple decoder layers connected in series. Each decoder layer contains three sub-layers: multi-head self-attention, multi-head cross-attention and fully connected layer. Each sub-layer is connected to residual connection and layer normalization. The input sequence to the decoder is: in represents the known sequence length, represents the predicted sequence length, Indicates that 0 is used for padding, there are a total of Positions need to be filled with 0; Steps 4-6: multi-head self-attention and multi-head cross-attention; calculate: in, , , is a learnable parameter matrix, softmax represents the Softmax operation, when the input and Same as input At the same time, It is called cross attention; when three input , , When they are the same, It is called self-attention; express The parameters are The result of the linear transformation is express The parameters are The result obtained after linear transformation is: express The parameters are The result obtained after linear transformation of ; The multi-head attention calculation formula is as follows: in, , , , is the learnable parameter matrix, Indicates the number of heads, The value range is from arrive ; It means head; When input and Same as and At the same time, It is called multi-head cross attention; when three inputs , , When they are the same, It is called multi-head self-attention; Step 4-7: The residual connection calculation formula is as follows: in, represents the input of the sublayer, represents the output of the sublayer, Represents the final output; Step 4-8: Layer normalization, standardize the final output dimension; Step 4-9: The output transformation layer transforms the output dimension of the decoder so that the output conforms to the final output dimension; The decoder output sequence Put it into the fully connected layer to get the output sequence of the output transformation layer ; Step 4-10: The output selection operation is the output sequence of the output transformation layer The selection process cuts the sequence. Abandoned, only The part is taken as the final output; Step 5: Describe the input and output process of the model, define the loss function and optimizer, and train the model; Step 6: Test the trained model; Use the test set to test the trained model, obtain the prediction results, and evaluate the prediction results based on real data.

2. The runoff prediction method using different attributes across data sets according to claim 1, characterized in that: The attribute data source processing method described in step 4-2 includes zero filling or learnable missing value filling.

3. The runoff prediction method using different attributes across data sets according to claim 1 is characterized by: Step 5 is as follows: The input and output process can be described as follows: first, the meteorological data is transformed through the input transformation layer, and the positional encoding is added, and then sent to the encoder for processing to obtain the encoder output; second, the historical runoff data is transformed through the input transformation layer, and the positional encoding is added, and then sent to the decoder together with the encoder output to obtain the decoder output; then, non-autoregressive decoding is performed, and the output transformation layer transforms the dimension of the decoder output to make it consistent with the dimension of the final output, generating all prediction results at one time; finally, the output selection operation selects the output sequence of the output transformation layer and only retains the useful part; The loss function during training adopts the smoothed NSE loss function, and its calculation formula is as follows: in, is the number of mini-batch samples, It is The predicted number of days for samples, It is The predicted value for the day, It is The actual value of the day's runoff, is the standard deviation of the true value of runoff of all data corresponding to the sample site, Represents a very small number, the purpose of which is to avoid division by 0; The model is trained for multiple iterations. After each iteration, the test set data is used to evaluate the performance of the model, and the Nash efficiency coefficient NSE is used as an indicator. The NSE calculation formula is as follows: in, It is The mean of the true values ​​of the sample runoff.

4. A computer system, characterized in that include: One or more processors, and a computer-readable storage medium for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method of claim 1.

5. A computer-readable storage medium, characterized in that Computer executable instructions are stored, and when the instructions are executed, they are used to implement the method of claim 1.

Citation Information

Patent Citations

  • Method and equipment for optimizing evaluation model based on cross-domain data

    CN113128594A

  • Industrial internet multi-mode machine learning data processing method

    CN114662698A

  • Conv-Transform-based flood forecasting method

    CN114819386A

  • Runoff prediction method based on Transform sequence-to-sequence model

    CN115146700A

  • Machine learning for time series using semantic and time series data

    US20190065988A1