Pump station afterbay water level prediction method and system based on multi-dimensional sequence data correlation analysis

Through the multi-dimensional sequence data correlation analysis method, the pump station water level data is decomposed and predicted, which solves the problem of insufficient water level prediction accuracy and stability in traditional methods and achieves more accurate and robust water level prediction.

CN118569480AActive Publication Date: 2024-08-30BEIJING UNIV OF TECH +1

Patent Information

Application Number
CN202410617369.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-30
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

Traditional pumping station water level prediction methods cannot fully consider the complexity and diversity of water level changes, resulting in low accuracy and stability of prediction results, and ignore the complex interaction between multiple factors.

Method used

Using a method based on multi-dimensional sequence data correlation analysis, the pumping station operation monitoring data is decomposed into trend series, periodic series and residual series through the STL time series decomposition model, and features are extracted using a three-layer composite convolution layer and a neural network based on feature weighting. information and decoded through a recurrent neural network with a gating mechanism and a fully connected neural network for prediction.

Benefits of technology

It improves the model's understanding of time series data and prediction accuracy, has the ability to learn nonlinear structures and approximate complex functions, has better robustness and generalization capabilities, and can more comprehensively understand complex relationships and noisy data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569480A
    Figure CN118569480A
Patent Text Reader

Abstract

The invention provides a pump station afterbay water level prediction method and system based on multi-dimensional sequence data correlation analysis. The method comprises the following steps: carrying out data preprocessing on pump station monitoring data to obtain a trend sequence, a periodic sequence and a residual sequence; the encoder is composed of a multi-layer composite convolutional layer, performs feature extraction on the trend sequence, introduces a parallel neural network of a weighting mechanism, learns the relationship between different positions in feature information and performs weighting processing on the feature information, and the decoder is composed of a recurrent neural network layer with a gating mechanism, decodes the weighted information and performs decoding on the decoded weighted information. Performing prediction; and predicting the periodic sequence based on the multilayer perceptron, and adding the predicted value of the trend sequence and the predicted value of the periodic sequence with the residual sequence value to obtain final water level prediction. According to the method provided by the invention, different parts in the input sequence can be concerned, the change rule of the data is understood, the complex correlation relationship between the data is deeply mined, and the accurate prediction of the pump station water level is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of water level prediction, and in particular relates to a method and system for predicting the water level of a pump station back pool based on multi-dimensional sequence data correlation analysis. Background Art

[0002] In modern society, effective management and rational use of water resources are of vital importance. Accurate prediction of water levels at pumping stations plays a key role and has a profound impact on many aspects. By predicting the water levels at pumping stations, urban water supply plans can be arranged scientifically and rationally, water resources can be fairly and rationally allocated, and the needs of various fields can be met, thereby promoting social and economic development. As a key link in water resources management, pumping stations can scientifically and rationally dispatch and manage water resources, which will help to reasonably regulate the water storage capacity of reservoirs and maintain the balance of river ecosystems. It can improve the operating efficiency and safety of water conservancy projects and provide reliable support for social and economic development and ecological and environmental protection.

[0003] Water level prediction faces many challenges, including model complexity, large data volume, multiple data dimensions, and accurate capture of multiple influencing factors. Traditional prediction methods often fail to fully consider the complexity and diversity of water level changes, resulting in low accuracy and stability of prediction results. These methods often ignore the complex interactions between multiple factors, which affects the accuracy and stability of prediction results. Due to the complex correlation between pump station monitoring data, a more comprehensive approach is needed to deal with it. Summary of the invention

[0004] In order to solve the above technical problems, the present invention proposes a technical solution of a pump station back pool water level prediction method based on multi-dimensional sequence data correlation analysis to solve the above technical problems.

[0005] The first aspect of the present invention discloses a method for predicting water level in a pump station back pool based on multidimensional sequence data correlation analysis, the method comprising:

[0006] Step S1, collecting pump station operation monitoring data and constructing a pump station operation monitoring data set; based on the STL time series decomposition model, performing local weighted polynomial regression fitting on the pump station operation monitoring data set to obtain a decomposition into a trend sequence, a period sequence and a residual sequence;

[0007] Step S2: construct trend time series samples for the trend sequence by means of a sliding window; extract features of the trend time series samples using an encoder with three composite convolutional layers to obtain coding features;

[0008] Step S3, using multiple parallel neural networks based on feature weighting mechanisms to extract multiple position weighted information of the coding features, and splicing the multiple position weighted information; multiplying the spliced ​​weighted information with the training parameter matrix to obtain weighted features;

[0009] Step S4, decoding the weighted features based on a decoder of a recurrent neural network layer with a gating mechanism to obtain a prediction sequence of the trend sequence;

[0010] Step S5, applying a multi-layer fully connected neural network to predict the periodic sequence to obtain a prediction sequence of the periodic sequence; summing the prediction sequence of the trend sequence, the prediction sequence of the periodic sequence and the residual sequence to obtain a prediction sequence of the water level in the back pool of the pumping station.

[0011] According to the method of the first aspect of the present invention, in step S1, the pump station operation monitoring data includes:

[0012] Start-up time, voltage, current, water pump blade angle, pipeline pressure, water pump frequency, cumulative flow, reverse cumulative flow, active power, reactive power, vibration and swing of the unit, outlet pressure, water pump speed, inlet pool water level, front pool water level and rear pool water level.

[0013] According to the method of the first aspect of the present invention, in step S2, the encoder using three layers of composite convolutional layers extracts features from the trend time series samples to obtain coding features, including:

[0014] Inputting the trend time series sample into two convolution layers with weight normalization connected in series with the first composite convolution layer to obtain a weight normalized convolution output;

[0015] A residual structure is introduced, and a 1×1 convolution layer is used to adjust the dimension of the trend time series sample so that its dimension is the same as the dimension of the weight normalized convolution output; after connecting the trend time series sample after dimension adjustment with the weight normalized convolution output, an activation function is input to obtain the first composite convolution output;

[0016] Inputting the first composite convolution output into a convolution layer with a hole of two second composite convolution layers connected in series to obtain a hole convolution output;

[0017] After connecting the first composite convolution output and the hole convolution output, an activation function is input to obtain a second composite convolution output;

[0018] Inputting the second composite convolution output into a third composite convolution layer to obtain a third composite convolution output; the third composite convolution layer is a convolution layer with a hole composed of two second composite convolution layers connected in series;

[0019] After connecting the second composite convolution output and the third composite convolution output, the activation function is input to obtain the encoding feature.

[0020] According to the method of the first aspect of the present invention, in step S2, the method of inputting the trend time series sample into the convolution layer with weight normalization of two first composite convolution layers connected in series to obtain the weight normalized convolution output includes:

[0021] The structure of the convolutional layer with weight normalization of the first composite convolutional layer is:

[0022]

[0023] After ReLU function activation and Dropout random inactivation, nonlinearity is introduced and the risk of overfitting is reduced, and the convolution layer output with weight normalization of the first composite convolution layer is obtained after activation and then inactivation.

[0024] in, represents the convolutional layer process output with weight normalization of the first composite convolutional layer; is the weight of the convolution kernel; b (1) is the bias term of the convolution kernel; c is the size of the convolution kernel; trend time series sample T τ =[T τ,1 ,T τ,2 ,…,T τ,n ];

[0025]

[0026] Among them, F 1 () represents the convolutional layer with weight normalization of the first composite convolutional layer; Represents the weight normalized convolution output.

[0027] According to the method of the first aspect of the present invention, in step S2, the method of inputting the first composite convolution output to a convolution layer with a hole of two second composite convolution layers connected in series to obtain a hollow convolution output includes:

[0028] The structure of the convolutional layer with a hole in the second composite convolutional layer is:

[0029]

[0030] After ReLU activation and Dropout random inactivation, nonlinearity is introduced and the risk of overfitting is reduced, and the output of the second composite convolutional layer with a hole is obtained after activation and then inactivation. in, represents the output of the convolutional layer process with holes in the second composite convolutional layer; f() represents the convolution kernel, d represents the dilation factor, τ-d·i represents the past direction, Indicates that the input data is convolved with a convolution kernel with a dilation factor of d;

[0031]

[0032] Among them, F 2 () represents the convolutional layer with holes in the second composite convolutional layer; Represents the output of the dilated convolution.

[0033] According to the method of the first aspect of the present invention, in step S3, the method of extracting the position weighted information of the coding feature using a neural network based on a feature weighting mechanism includes:

[0034] Q=w Q Y t

[0035] K=w K Y t

[0036] V=w V Y t

[0037] Where Q represents the query vector, K represents the key vector, and V represents the value vector; w Q 、w K and w V is the weight matrix, and the weight matrix of each neural network based on the feature weighting mechanism is different; Y t Represents the encoding feature;

[0038] Through the query vector Q and the key vector K, we can get the attention level W of each position.

[0039]

[0040] Among them, K T is the transpose of K, d k represents the dimension of the key vector K; softmax() is the normalized exponential function;

[0041] A i (Q,K,V)=WV

[0042] Among them, A i (Q, K, V) represents the position weighted information extracted by the i-th neural network based on the feature weighting mechanism.

[0043] According to the method of the first aspect of the present invention, in step S4, the method for decoding the weighted features by the decoder based on the recurrent neural network layer with a gating mechanism includes:

[0044] The weighted features are selected to forget information through the forget gate:

[0045] f t =σ(W f [h t-1 ,x t ]+b f

[0046] Among them, f t Indicates forgotten information; h t-1 Indicates the output at the previous moment; x t represents weighted features; σ(·) represents the activation function, W f is the forget gate weight matrix, b f is the forget gate bias;

[0047] The weighted features are updated by the input gate:

[0048] i t =σ(W i [h t-1 ,x t ]+b i )

[0049] Among them, i t Indicates the update amount; W i represents the input gate weight matrix; b i represents the input gate bias term;

[0050] The weighted features are passed through the tanh layer to generate candidate values ​​for the unit state at the current moment;

[0051]

[0052] in, represents the candidate value of the unit state at the current moment; tanh() represents the tanh function; W c is connected to the previous moment h t-1 and the current time x t The weight matrix of c Represents the bias term of the tanh layer;

[0053] The current cell state is calculated based on the forgotten information, update amount and candidate value vector:

[0054]

[0055] Among them, C t Indicates the unit state at the current moment; Ct-1 Indicates the unit state at the previous moment;

[0056] The weighted features are calculated through the output gate information:

[0057] o t =σ(W 0 [h t-1 ,x t ]+b 0 )

[0058] Among them, t Indicates the output gate information; W 0 represents the output gate weight matrix; b 0 represents the output gate bias term;

[0059] According to the output gate information and the unit state at the current moment, the weighted feature decoding feature is calculated:

[0060] h t =o t tanh(C t )

[0061] Among them, h t Represents the weighted feature after decoding.

[0062] The second aspect of the present invention discloses a pump station back pool water level prediction system based on multi-dimensional sequence data correlation analysis, the system comprising:

[0063] The first processing module is configured to collect pump station operation monitoring data and construct a pump station operation monitoring data set; based on the STL time series decomposition model, perform local weighted polynomial regression fitting on the pump station operation monitoring data set to obtain a decomposition into a trend sequence, a period sequence and a residual sequence;

[0064] The second processing module is configured to construct a trend time series sample for the trend sequence by means of a sliding window; extract features from the trend time series sample using an encoder with three composite convolutional layers to obtain coding features;

[0065] The third processing module is configured to use multiple parallel neural networks based on feature weighting mechanisms to extract multiple position weighted information of the coding features, and splice the multiple position weighted information; multiply the spliced ​​weighted information with the training parameter matrix to obtain weighted features;

[0066] A fourth processing module is configured to decode the weighted features based on a decoder of a recurrent neural network layer with a gating mechanism to obtain a prediction sequence of the trend sequence;

[0067] The fifth processing module is configured to apply a multi-layer fully connected neural network to predict the periodic sequence to obtain a prediction sequence of the periodic sequence; sum the prediction sequence of the trend sequence, the prediction sequence of the periodic sequence and the residual sequence to obtain a prediction sequence of the water level in the rear pool of the pump station.

[0068] The third aspect of the present invention discloses an electronic device. The electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps in any one of the methods for predicting the water level of a pump station back pool based on multidimensional sequence data correlation analysis in the first aspect of the present disclosure are implemented.

[0069] The fourth aspect of the present invention discloses a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the pump station back pool water level prediction methods based on multidimensional sequence data correlation analysis in the first aspect of the present disclosure are implemented.

[0070] In summary, the solution proposed in the present invention can focus on different parts of the input sequence, understand the changing patterns of the data, and thus improve the model's ability to understand the input and the model's prediction accuracy. The model can more comprehensively understand the complex structure of time series data, has a strong ability in fitting complex relationships, decision-making and prediction under uncertainty, has the ability to learn nonlinear structures and approximate complex functions, is robust to noise and abnormal data, and has better generalization ability. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0072] Figure 1 It is a flow chart of a method for predicting water level in a pump station back pool based on multi-dimensional sequence data correlation analysis according to an embodiment of the present invention;

[0073] Figure 2 A structural diagram of a pump station back pool water level prediction system based on multi-dimensional sequence data correlation analysis according to an embodiment of the present invention;

[0074] Figure 3 The figure is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0075] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0076] The first aspect of the present invention discloses a method for predicting the water level of a pump station back pool based on multi-dimensional sequence data correlation analysis. Figure 1 FIG. 1 is a flow chart of a method for predicting water level in a pump station back pool based on multidimensional sequence data correlation analysis according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0077] Step S1, collecting pump station operation monitoring data and constructing a pump station operation monitoring data set; based on the STL time series decomposition model, performing local weighted polynomial regression fitting on the pump station operation monitoring data set to obtain a decomposition into a trend sequence, a period sequence and a residual sequence;

[0078] Step S2: construct trend time series samples for the trend sequence by means of a sliding window; extract features of the trend time series samples using an encoder with three composite convolutional layers to obtain coding features;

[0079] Step S3, using multiple parallel neural networks based on feature weighting mechanisms to extract multiple position weighted information of the coding features, and splicing the multiple position weighted information; multiplying the spliced ​​weighted information with the training parameter matrix to obtain weighted features;

[0080] Step S4, decoding the weighted features based on a decoder of a recurrent neural network layer with a gating mechanism to obtain a prediction sequence of the trend sequence;

[0081] Step S5, applying a multi-layer fully connected neural network to predict the periodic sequence to obtain a prediction sequence of the periodic sequence; summing the prediction sequence of the trend sequence, the prediction sequence of the periodic sequence and the residual sequence to obtain a prediction sequence of the water level in the back pool of the pumping station.

[0082] In step S1, the pump station operation monitoring data is collected to construct a pump station operation monitoring data set; based on the STL time series decomposition model, the pump station operation monitoring data set is locally weighted polynomial regression fitted to obtain a decomposition into a trend sequence, a periodic sequence and a residual sequence.

[0083] Z t =T t +S t +R t

[0084] Among them, Z t is the pump station operation monitoring data set, T t is the trend sequence, S t is a periodic sequence, R t is the residual sequence.

[0085] In some embodiments, in step S1, the pump station operation monitoring data includes:

[0086] Start-up time, voltage, current, water pump blade angle, pipeline pressure, water pump frequency, cumulative flow, reverse cumulative flow, active power, reactive power, vibration and swing of the unit, outlet pressure, water pump speed, inlet pool water level, front pool water level and rear pool water level.

[0087] Specifically, invalid data in the monitoring data are deleted, and the forward filling method is used to fill in the failed data to construct a pump station operation monitoring data set.

[0088] In step S2, a trend time series sample is constructed for the trend sequence by means of a sliding window; and a three-layer composite convolutional layer encoder is used to extract features from the trend time series sample to obtain coding features.

[0089] In some embodiments, in step S2, the encoder using three composite convolutional layers extracts features from the trend time series samples to obtain coding features, including:

[0090] Inputting the trend time series sample into two convolution layers with weight normalization connected in series with the first composite convolution layer to obtain a weight normalized convolution output;

[0091] A residual structure is introduced, and a 1×1 convolution layer is used to adjust the dimension of the trend time series sample so that its dimension is the same as the dimension of the weight normalized convolution output; after connecting the trend time series sample after dimension adjustment with the weight normalized convolution output, an activation function is input to obtain the first composite convolution output;

[0092]

[0093] in, Represents the first composite convolution output; Activation() represents the activation function;

[0094] Inputting the first composite convolution output into a convolution layer with a hole of two second composite convolution layers connected in series to obtain a hole convolution output;

[0095] After connecting the first composite convolution output and the hole convolution output, an activation function is input to obtain a second composite convolution output;

[0096]

[0097] in, Represents the second composite convolution output; Activation() represents the activation function;

[0098] Inputting the second composite convolution output into a third composite convolution layer to obtain a third composite convolution output; the third composite convolution layer is a convolution layer with a hole composed of two second composite convolution layers connected in series;

[0099]

[0100] in, represents the third composite convolution output;

[0101] After connecting the second composite convolution output and the third composite convolution output, input the activation function to obtain the encoding feature;

[0102]

[0103] Among them, Y t Represents the encoding feature.

[0104] The method of inputting the trend time series sample into the convolution layer with weight normalization of two first composite convolution layers connected in series to obtain the weight normalized convolution output comprises:

[0105] The structure of the convolutional layer with weight normalization of the first composite convolutional layer is:

[0106]

[0107] After ReLU function activation and Dropout random inactivation, nonlinearity is introduced and the risk of overfitting is reduced, and the convolution layer output with weight normalization of the first composite convolution layer is obtained after activation and then inactivation.

[0108] in, represents the convolutional layer process output with weight normalization of the first composite convolutional layer; is the weight of the convolution kernel; b (1) is the bias term of the convolution kernel; c is the size of the convolution kernel; trend time series sample T τ =[T τ,1 ,T τ,2 ,...,T τ,n ];

[0109]

[0110] Among them, F 1() represents the convolutional layer with weight normalization of the first composite convolutional layer; Represents the weight normalized convolution output.

[0111] The method of inputting the first composite convolution output into two convolution layers with holes connected in series to obtain the atrous convolution output comprises:

[0112] The structure of the convolutional layer with a hole in the second composite convolutional layer is:

[0113]

[0114] After ReLU activation and Dropout random inactivation, nonlinearity is introduced and the risk of overfitting is reduced, and the output of the second composite convolutional layer with a hole is obtained after activation and then inactivation. in, represents the output of the convolutional layer process with holes in the second composite convolutional layer; f() represents the convolution kernel, d represents the dilation factor, τ-d·i represents the past direction, Indicates that the input data is convolved with a convolution kernel with a dilation factor of d;

[0115]

[0116] Among them, F 2 () represents the convolutional layer with holes in the second composite convolutional layer; Represents the output of the dilated convolution.

[0117] In step S3, multiple position weighted information of the coding feature is extracted using multiple parallel neural networks based on feature weighting mechanism, and the multiple position weighted information is spliced; the spliced ​​weighted information is multiplied by the training parameter matrix to obtain weighted features;

[0118] A=Concat(A 1 ,A 2 ,...A i ,…,A m )

[0119] x t =AW O

[0120] Among them, A represents the weighted information after connection; Concat() represents concatenation; m represents the number of neural networks based on the feature weighting mechanism, A i Yes A i Simplified form of (Q,K,V); W O represents the training parameter matrix; x t represents weighted features.

[0121] The method of extracting the position weighted information of the coding feature using a neural network based on a feature weighting mechanism includes:

[0122] Q=w Q Y t

[0123] K=w K Y t

[0124] V=w V Y t

[0125] Where Q represents the query vector, K represents the key vector, and V represents the value vector; w Q 、w K and w V is the weight matrix, and the weight matrix of each neural network based on the feature weighting mechanism is different;

[0126] Through the query vector Q and the key vector K, we can get the attention level W of each position.

[0127]

[0128] Among them, K T is the transpose of K, d k represents the dimension of the key vector K; softmax() is the normalized exponential function;

[0129] A i (Q,K,V)=WV

[0130] Among them, A i (Q, K, V) represents the position weighted information extracted by the i-th neural network based on the feature weighting mechanism.

[0131] In step S4, the weighted features are decoded based on a decoder of a recurrent neural network layer with a gating mechanism to obtain a prediction sequence of the trend sequence.

[0132] In some embodiments, in step S4, the method for decoding the weighted features based on a decoder of a recurrent neural network layer with a gating mechanism includes:

[0133] The weighted features are selected to forget information through the forget gate:

[0134] f t =σ(W f [h t-1 ,x t ]+b f

[0135] Among them, f tIndicates forgotten information; h t-1 Indicates the output at the previous moment; x t represents weighted features; σ(·) represents the activation function, W f is the forget gate weight matrix, b f is the forget gate bias;

[0136] The weighted features are updated by the input gate:

[0137] i t =σ(W i [h t-1 ,x t ]+b i )

[0138] Among them, i t Indicates the update amount; W i represents the input gate weight matrix; b i represents the input gate bias term;

[0139] The weighted features are passed through the tanh layer to generate candidate values ​​for the unit state at the current moment;

[0140]

[0141] in, represents the candidate value of the unit state at the current moment; tanh() represents the tanh function; W c is connected to the previous moment h t-1 and the current time x t The weight matrix of c Represents the bias term of the tanh layer;

[0142] The current cell state is calculated based on the forgotten information, update amount and candidate value vector:

[0143]

[0144] Among them, C t Indicates the unit state at the current moment; C t-1 Indicates the unit state at the previous moment;

[0145] The weighted features are calculated through the output gate information:

[0146] o t =σ(W 0 [h t-1 ,x t ]+b 0 )

[0147] Among them, t Indicates the output gate information; W 0 represents the output gate weight matrix; b0 represents the output gate bias term;

[0148] According to the output gate information and the unit state at the current moment, the weighted feature decoding feature is calculated:

[0149] h t =o t tanh(C t )

[0150] Among them, h t represents the features after weighted feature decoding; h t After another linear layer, the predicted sequence of the trend sequence is obtained; the unit state at the current moment is outputted through the tanh() function to normalize the structure between -1 and 1.

[0151] In step S5, a multi-layer fully connected neural network is applied to predict the periodic sequence to obtain a prediction sequence of the periodic sequence; the prediction sequence of the trend sequence, the prediction sequence of the periodic sequence and the residual sequence are summed to obtain a prediction sequence of the water level of the back pool of the pumping station.

[0152] Specifically, a multi-layer fully connected neural network is used to predict the periodic sequence to obtain a predicted sequence of the periodic sequence:

[0153] S predicted =F 3 (S t )

[0154] Among them, S predicted represents the prediction sequence of the periodic sequence; F 3 () represents a multi-layer fully connected neural network.

[0155] The prediction sequence of the trend sequence, the prediction sequence of the period sequence and the residual sequence are summed to obtain the water level prediction sequence of the back pool of the pump station:

[0156] y predicted =T predicted +S predicted +R t

[0157] Among them, y predicted represents the water level prediction sequence of the back pool of the pump station; T predicted Represents the forecast sequence of the trend series;

[0158] The model is updated with gradients based on the error between the predicted water level and the actual water level to improve the prediction accuracy of the neural network:

[0159] E=∑(y predicted -y true ) 2

[0160]

[0161] Among them, y true represents the actual water level; E represents the sum of squares of errors; W new is the updated parameter, W old is the current parameter, η is the learning rate, is the partial derivative of the error function with respect to the current parameter. The model can automatically adjust the parameters in the network according to the error between the predicted result and the actual result of each training sample.

[0162] In summary, the solution proposed in the present invention can focus on different parts of the input sequence, understand the changing patterns of the data, and thus improve the model's ability to understand the input and the model's prediction accuracy. The model can more comprehensively understand the complex structure of time series data, has a strong ability in fitting complex relationships, decision-making and prediction under uncertainty, has the ability to learn nonlinear structures and approximate complex functions, is robust to noise and abnormal data, and has better generalization ability. .

[0163] The second aspect of the present invention discloses a pump station back pool water level prediction system based on multi-dimensional sequence data correlation analysis. Figure 2 FIG. 4 is a structural diagram of a pump station back pool water level prediction system based on multi-dimensional sequence data correlation analysis according to an embodiment of the present invention; Figure 2 As shown, the system 100 includes:

[0164] The first processing module 101 is configured to collect pump station operation monitoring data and construct a pump station operation monitoring data set; based on the STL time series decomposition model, perform local weighted polynomial regression fitting on the pump station operation monitoring data set to obtain a decomposition into a trend sequence, a period sequence and a residual sequence;

[0165] The second processing module 102 is configured to construct a trend time series sample for the trend sequence by means of a sliding window; extract features from the trend time series sample using an encoder with three composite convolutional layers to obtain coding features;

[0166] The third processing module 103 is configured to use multiple parallel neural networks based on feature weighting mechanisms to extract multiple position weighted information of the coding features, and splice the multiple position weighted information; multiply the spliced ​​weighted information with the training parameter matrix to obtain weighted features;

[0167] The fourth processing module 104 is configured to decode the weighted features based on a decoder of a recurrent neural network layer with a gating mechanism to obtain a prediction sequence of the trend sequence;

[0168] The fifth processing module 105 is configured to apply a multi-layer fully connected neural network to predict the periodic sequence to obtain a prediction sequence of the periodic sequence; sum the prediction sequence of the trend sequence, the prediction sequence of the periodic sequence and the residual sequence to obtain a prediction sequence of the water level in the back pool of the pump station.

[0169] According to the system of the second aspect of the present invention, the first processing module 101 is specifically configured as follows: the pump station operation monitoring data includes:

[0170] Start-up time, voltage, current, water pump blade angle, pipeline pressure, water pump frequency, cumulative flow, reverse cumulative flow, active power, reactive power, vibration and swing of the unit, outlet pressure, water pump speed, inlet pool water level, front pool water level and rear pool water level.

[0171] Specifically, invalid data in the monitoring data are deleted, and the forward filling method is used to fill in the failed data to construct a pump station operation monitoring data set.

[0172] According to the system of the second aspect of the present invention, the second processing module 102 is specifically configured as follows: the encoder using the three-layer composite convolutional layer extracts features from the trend time series samples, and the method for obtaining the encoding features includes:

[0173] Inputting the trend time series sample into two convolution layers with weight normalization connected in series with the first composite convolution layer to obtain a weight normalized convolution output;

[0174] A residual structure is introduced, and a 1×1 convolution layer is used to adjust the dimension of the trend time series sample so that its dimension is the same as the dimension of the weight normalized convolution output; after connecting the trend time series sample after dimension adjustment with the weight normalized convolution output, an activation function is input to obtain the first composite convolution output;

[0175]

[0176] in, Represents the first composite convolution output; Activation() represents the activation function;

[0177] Inputting the first composite convolution output into a convolution layer with a hole of two second composite convolution layers connected in series to obtain a hole convolution output;

[0178] After connecting the first composite convolution output and the hole convolution output, an activation function is input to obtain a second composite convolution output;

[0179]

[0180] in, Represents the second composite convolution output; Activation() represents the activation function;

[0181] Inputting the second composite convolution output into a third composite convolution layer to obtain a third composite convolution output; the third composite convolution layer is a convolution layer with a hole composed of two second composite convolution layers connected in series;

[0182]

[0183] in, represents the third composite convolution output;

[0184] After connecting the second composite convolution output and the third composite convolution output, input the activation function to obtain the encoding feature;

[0185]

[0186] Among them, Y t Represents the encoding feature.

[0187] The method of inputting the trend time series sample into the convolution layer with weight normalization of two first composite convolution layers connected in series to obtain the weight normalized convolution output comprises:

[0188] The structure of the convolutional layer with weight normalization of the first composite convolutional layer is:

[0189]

[0190] After ReLU function activation and Dropout random inactivation, nonlinearity is introduced and the risk of overfitting is reduced, and the convolution layer output with weight normalization of the first composite convolution layer is obtained after activation and then inactivation.

[0191] in, represents the convolutional layer process output with weight normalization of the first composite convolutional layer; is the weight of the convolution kernel; b (1) is the bias term of the convolution kernel; c is the size of the convolution kernel; trend time series sample T τ =[T τ,1 ,T τ,2 ,··.,T τ,n ];

[0192]

[0193] Among them, F 1 () represents the convolutional layer with weight normalization of the first composite convolutional layer; Represents the weight normalized convolution output.

[0194] The method of inputting the first composite convolution output into two convolution layers with holes connected in series to obtain the atrous convolution output comprises:

[0195] The structure of the convolutional layer with a hole in the second composite convolutional layer is:

[0196]

[0197] After ReLU activation and Dropout random inactivation, nonlinearity is introduced and the risk of overfitting is reduced, and the output of the second composite convolutional layer with a hole is obtained after activation and then inactivation. in, represents the output of the convolutional layer process with holes in the second composite convolutional layer; f() represents the convolution kernel, d represents the dilation factor, τ-d·i represents the past direction, Indicates that the input data is convolved with a convolution kernel with a dilation factor of d;

[0198]

[0199] Among them, F 2 () represents the convolutional layer with holes in the second composite convolutional layer; Represents the output of the dilated convolution.

[0200] According to the system of the second aspect of the present invention, the third processing module 103 is specifically configured to extract the position weighted information of the coding feature using a neural network based on a feature weighting mechanism:

[0201] Q=w Q Y t

[0202] K=w K Y t

[0203] V=w V Y t

[0204] Where Q represents the query vector, K represents the key vector, and V represents the value vector; w Q 、w K and w V is the weight matrix, and the weight matrix of each neural network based on the feature weighting mechanism is different;

[0205] Through the query vector Q and the key vector K, we can get the attention level W of each position.

[0206]

[0207] Among them, KT is the transpose of K, d k represents the dimension of the key vector K; softmax() is the normalized exponential function;

[0208] A i (Q,K,V)=WV

[0209] Among them, A i (Q, K, V) represents the position weighted information extracted by the i-th neural network based on the feature weighting mechanism.

[0210] According to the system of the second aspect of the present invention, the fourth processing module 104 is specifically configured to decode the weighted feature by the decoder based on the recurrent neural network layer with a gating mechanism:

[0211] The weighted features are selected to forget information through the forget gate:

[0212] f t =σ(W f [h t-1 ,x t ]+b f

[0213] Among them, f t Indicates forgotten information; h t-1 Indicates the output at the previous moment; x t represents weighted features; σ(.) represents the activation function, W f is the forget gate weight matrix, b f is the forget gate bias;

[0214] The weighted features are updated by the input gate:

[0215] i t =σ(W i [h t-1 ,x t ]+b i )

[0216] Among them, i t Indicates the update amount; W i represents the input gate weight matrix; b i represents the input gate bias term;

[0217] The weighted features are passed through the tanh layer to generate candidate values ​​for the unit state at the current moment;

[0218]

[0219] in, represents the candidate value of the unit state at the current moment; tanh() represents the tanh function; W cis connected to the previous moment h t-1 and the current time x t The weight matrix of c Represents the bias term of the tanh layer;

[0220] The current cell state is calculated based on the forgotten information, update amount and candidate value vector:

[0221]

[0222] Among them, C t Indicates the unit state at the current moment; C t-1 Indicates the unit state at the previous moment;

[0223] The weighted features are calculated through the output gate information:

[0224] o t =σ(W 0 [h t-1 ,x t ]+b 0 )

[0225] Among them, t Indicates the output gate information; W 0 represents the output gate weight matrix; b 0 represents the output gate bias term;

[0226] According to the output gate information and the unit state at the current moment, the weighted feature decoding feature is calculated:

[0227] h t =o t tanh(C t )

[0228] Among them, h t represents the features after weighted feature decoding; h t After another linear layer, the predicted sequence of the trend sequence is obtained; the unit state at the current moment is outputted through the tanh() function to normalize the structure between -1 and 1.

[0229] According to the system of the second aspect of the present invention, the fifth processing module 105 is specifically configured to use a multi-layer fully connected neural network to predict the periodic sequence to obtain a prediction sequence of the periodic sequence:

[0230] S predicted =F 3 (S t )

[0231] Among them, S predicted represents the prediction sequence of the periodic sequence; F 3 () represents a multi-layer fully connected neural network.

[0232] The prediction sequence of the trend sequence, the prediction sequence of the period sequence and the residual sequence are summed to obtain the water level prediction sequence of the back pool of the pump station:

[0233] y predicted =T predicted +S predicted +R t

[0234] Among them, y predicted represents the water level prediction sequence of the back pool of the pump station; T predicted Represents the forecast sequence of the trend series;

[0235] The model is updated with gradients based on the error between the predicted water level and the actual water level to improve the prediction accuracy of the neural network:

[0236] E=∑(y predicted -y true ) 2

[0237]

[0238] Among them, y true represents the actual water level; E represents the sum of squares of errors; W new is the updated parameter, W old is the current parameter, η is the learning rate, is the partial derivative of the error function with respect to the current parameter. The model can automatically adjust the parameters in the network according to the error between the predicted result and the actual result of each training sample.

[0239] The third aspect of the present invention discloses an electronic device. The electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the methods for predicting the water level of a pump station back pool based on multidimensional sequence data correlation analysis disclosed in the first aspect of the present invention are implemented.

[0240] Figure 3 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 3As shown, the electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, near field communication (NFC) or other technologies. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, a trackball or a touch pad set on the housing of the electronic device, or an external keyboard, touch pad or mouse, etc.

[0241] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a structural diagram of the part related to the technical solution of the present disclosure, and does not constitute a limitation on the electronic device to which the technical solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0242] The fourth aspect of the present invention discloses a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method for predicting the water level of a pump station back pool based on multidimensional sequence data correlation analysis in any one of the first aspects of the present invention are implemented.

[0243] Please note that the technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not 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. The above embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent in this application shall be based on the attached claims.

Claims

1. A method for predicting water level in a pump station back pool based on multidimensional sequence data correlation analysis, characterized in that: The method comprises: Step S1, collecting pump station operation monitoring data and constructing a pump station operation monitoring data set; based on the STL time series decomposition model, performing local weighted polynomial regression fitting on the pump station operation monitoring data set to obtain a decomposition into a trend sequence, a period sequence and a residual sequence; Step S2: construct trend time series samples for the trend sequence by means of a sliding window; extract features of the trend time series samples using an encoder with three composite convolutional layers to obtain coding features; Step S3, using multiple parallel neural networks based on feature weighting mechanisms to extract multiple position weighted information of the coding features, and splicing the multiple position weighted information; multiplying the spliced ​​weighted information with the training parameter matrix to obtain weighted features; Step S4, decoding the weighted features based on a decoder of a recurrent neural network layer with a gating mechanism to obtain a prediction sequence of the trend sequence; Step S5, applying a multi-layer fully connected neural network to predict the periodic sequence to obtain a prediction sequence of the periodic sequence; summing the prediction sequence of the trend sequence, the prediction sequence of the periodic sequence and the residual sequence to obtain a prediction sequence of the water level in the back pool of the pumping station.

2. The method for predicting water level in the back pool of a pump station based on multidimensional sequence data correlation analysis according to claim 1, characterized in that: In step S1, the pump station operation monitoring data includes: Start-up time, voltage, current, water pump blade angle, pipeline pressure, water pump frequency, cumulative flow, reverse cumulative flow, active power, reactive power, vibration and swing of the unit, outlet pressure, water pump speed, inlet pool water level, front pool water level and rear pool water level.

3. The method for predicting water level in a pump station back pool based on multidimensional sequence data correlation analysis according to claim 1, characterized in that: In step S2, the encoder using three composite convolutional layers extracts features from the trend time series samples to obtain coding features, including: Inputting the trend time series sample into two convolution layers with weight normalization connected in series with the first composite convolution layer to obtain a weight normalized convolution output; A residual structure is introduced, and a 1×1 convolution layer is used to adjust the dimension of the trend time series sample so that its dimension is the same as the dimension of the weight normalized convolution output; after connecting the trend time series sample after dimension adjustment with the weight normalized convolution output, an activation function is input to obtain the first composite convolution output; Inputting the first composite convolution output into a convolution layer with a hole of two second composite convolution layers connected in series to obtain a hole convolution output; After connecting the first composite convolution output and the hole convolution output, an activation function is input to obtain a second composite convolution output; Inputting the second composite convolution output into a third composite convolution layer to obtain a third composite convolution output; the third composite convolution layer is a convolution layer with a hole composed of two second composite convolution layers connected in series; After connecting the second composite convolution output and the third composite convolution output, the activation function is input to obtain the encoding feature.

4. A method for predicting water level in a pump station back pool based on multidimensional sequence data correlation analysis according to claim 3, characterized in that: In step S2, the method of inputting the trend time series samples into two convolution layers with weight normalization connected in series to obtain weight normalized convolution output includes: The structure of the convolutional layer with weight normalization of the first composite convolutional layer is: After ReLU activation and Dropout random inactivation, nonlinearity is introduced and the risk of overfitting is reduced, and the convolution layer output with weight normalization of the first composite convolution layer is obtained after activation and then inactivation. in, represents the convolutional layer process output with weight normalization of the first composite convolutional layer; is the weight of the convolution kernel; b (1) is the bias term of the convolution kernel; c is the size of the convolution kernel; trend time series sample T τ =[T τ,1 ,T τ,2 ,··.,T τ,n ]; Wherein, F1() represents the convolutional layer with weight normalization of the first composite convolutional layer; Represents the weight normalized convolution output.

5. The method for predicting water level in the back pool of a pump station based on multidimensional sequence data correlation analysis according to claim 3 is characterized in that: In step S2, the method of inputting the first composite convolution output into two convolution layers with holes connected in series to obtain the atrous convolution output includes: The structure of the convolutional layer with a hole in the second composite convolutional layer is: After ReLU activation and Dropout random inactivation, nonlinearity is introduced and the risk of overfitting is reduced, and the output of the second composite convolutional layer with a hole is obtained after activation and then inactivation. in, represents the output of the convolutional layer process with holes in the second composite convolutional layer; f() represents the convolution kernel, d represents the dilation factor, τ-d·i represents the past direction, Indicates that the input data is convolved with a convolution kernel with a dilation factor of d; Wherein, F2() represents the convolutional layer with holes in the second composite convolutional layer; Represents the output of the dilated convolution.

6. The method for predicting water level in a pump station back pool based on multidimensional sequence data correlation analysis according to claim 1, characterized in that: In step S3, the method of extracting the position weighted information of the coding feature using a neural network based on a feature weighting mechanism includes: Q=w Q Y t K=w K Y t V=w V Y t Where Q represents the query vector, K represents the key vector, and V represents the value vector; w Q 、w K and w V is the weight matrix, and the weight matrix of each neural network based on the feature weighting mechanism is different; Y t Represents the encoding feature; Through the query vector Q and the key vector K, we can get the attention level W of each position. Among them, K T is the transpose of K, d k represents the dimension of the key vector K; softmax() is the normalized exponential function; A i (Q,K,V)=WV Among them, A i (Q, K, V) represents the position weighted information extracted by the i-th neural network based on the feature weighting mechanism.

7. The method for predicting water level in a pump station back pool based on multidimensional sequence data correlation analysis according to claim 1, characterized in that: In step S4, the method for decoding the weighted features based on the decoder of the recurrent neural network layer with a gating mechanism includes: The weighted features are selected to forget information through the forget gate: f t =σ(W f [h t-1 ,x t ]+b f Among them, f t Indicates forgotten information; h t-1 Indicates the output at the previous moment; x t represents weighted features; σ(·) represents the activation function, W f is the forget gate weight matrix, b f is the forget gate bias; The weighted features are updated by the input gate: i t =σ(W i [h t-1 ,x t ]+b i ) Among them, i t Indicates the update amount; W i represents the input gate weight matrix; b i represents the input gate bias term; The weighted features are passed through the tanh layer to generate candidate values ​​for the unit state at the current moment; in, represents the candidate value of the unit state at the current moment; tanh() represents the tanh function; W c is connected to the previous moment h t-1 and the current time x t The weight matrix of c Represents the bias term of the tanh layer; The current cell state is calculated based on the forgotten information, update amount and candidate value vector: Among them, C t Indicates the unit state at the current moment; C t-1 Indicates the unit state at the previous moment; The weighted features are calculated through the output gate information: about t =σ(W0[h t-1 ,x t ]+b0) Among them, t Represents the output gate information; W0 represents the output gate weight matrix; b0 represents the output gate bias term; According to the output gate information and the unit state at the current moment, the weighted feature decoding feature is calculated: h t =o t fishy(C) t ) Among them, h t Represents the weighted feature after decoding.

8. A pump station back pool water level prediction system based on multi-dimensional sequence data correlation analysis, characterized in that: The system comprises: The first processing module is configured to collect pump station operation monitoring data and construct a pump station operation monitoring data set; based on the STL time series decomposition model, perform local weighted polynomial regression fitting on the pump station operation monitoring data set to obtain a decomposition into a trend sequence, a period sequence and a residual sequence; The second processing module is configured to construct a trend time series sample for the trend sequence by means of a sliding window; extract features from the trend time series sample using an encoder with three composite convolutional layers to obtain coding features; The third processing module is configured to use multiple parallel neural networks based on feature weighting mechanisms to extract multiple position weighted information of the coding features, and splice the multiple position weighted information; multiply the spliced ​​weighted information with the training parameter matrix to obtain weighted features; A fourth processing module is configured to decode the weighted features based on a decoder of a recurrent neural network layer with a gating mechanism to obtain a prediction sequence of the trend sequence; The fifth processing module is configured to apply a multi-layer fully connected neural network to predict the periodic sequence to obtain a prediction sequence of the periodic sequence; sum the prediction sequence of the trend sequence, the prediction sequence of the periodic sequence and the residual sequence to obtain a prediction sequence of the water level in the rear pool of the pump station.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps in a method for predicting the water level of a pump station back pool based on multidimensional sequence data correlation analysis as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of a method for predicting the water level of a pump station back pool based on multidimensional sequence data correlation analysis as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Reservoir level prediction method based on neural network

    CN116362406A

  • Time sequence variable prediction method and device, computing equipment and storage medium

    CN117671377A

  • Water level prediction device and water level prediction method

    JP6690867B1

Cited By

  • Reverse reservoir water level prediction method based on osmotic pressure data fusion

    CN120337170A

  • Reservoir level prediction method based on neural network and uncertainty perception and medium

    CN120851400A