Method for predicting deposition of particulate matters in drainage pipe network based on long and short term memory step sequence
The particle deposition prediction framework in the drainage pipe network constructed through the long short-term memory network solves the problem of gradient explosion and time series information not considered in the traditional method, achieves more accurate multi-step prediction and higher prediction accuracy, and is suitable for drainage The complex environment of particle deposition in pipeline network pipes.
Patent Information
- Application Number
- CN202410329165.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-03-21
AI Technical Summary
Existing prediction methods for particle deposition in drainage pipe networks fail to effectively consider the time series information of the input data, resulting in low prediction accuracy. Moreover, traditional recurrent neural networks are prone to gradient explosion and disappearance problems under long-term lag conditions, and cannot accurately reflect drainage. The deposition of particulate matter in the pipeline network.
A prediction method for particle deposition in drainage pipe networks based on long-short-term memory network is adopted. By constructing a long-short-term memory step sequence prediction framework, it contains multiple models to achieve multi-step advance prediction, and uses forgetting gates, input gates and output gates to regulate the information flow. , avoid gradient disappearance, and combine with sliding time window to deal with missing data to ensure the quality of input data.
It improves the accuracy of the prediction of particle deposition in the drainage pipe network, avoids the impact of later pipe conditions on the current deposition, and is more consistent with the actual situation. The prediction performance is verified through evaluation indicators (such as NSE value, root mean square error, coefficient of determination) improvement.
Smart Images

Figure CN118627655A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of prediction of particle deposition in drainage pipe networks, and specifically relates to a method for predicting particle deposition in drainage pipe networks based on long-short term memory step sequences. Background Art
[0002] The deposition of particles in the drainage network will affect the hydraulic capacity of the urban drainage and sewer system, and affect the operating efficiency of the drainage network. In order to reduce the adverse effects of continuous deposition of particles in the drainage network, the drainage network system is usually designed with a self-cleaning mechanism to keep the bottom of the drainage network clean and prevent particles from depositing in the drainage network. Obviously, accurate prediction and simulation of particle deposition in the drainage network can better prevent the deposition of particles and maintain the normal operation of the drainage network.
[0003] The deposition of particulate matter in the drainage network affects the flow rate in the drainage network pipes and the shear stress distribution at the pipe wall. The main causes of particulate matter deposition include irregularities in water flow, industrial emissions and infiltration. If the sediment stays in the drainage network for too long, the nature of the sediment may change, leading to further deposition and complete blockage of the drainage network pipes. Therefore, accurately predicting the deposition of particulate matter in the drainage network pipes and taking effective countermeasures are of great significance to improving the operating efficiency of the drainage network.
[0004] Drainage networks can usually be regarded as rigid boundary channels, which are channels with immovable beds and sides. At present, in order to predict the deposition of particulate matter in drainage networks, the Froude number of particulate matter in drainage networks is usually predicted, and the Froude number is used to reflect the deposition of particulate matter. In recent years, data-driven methods such as artificial neural networks, recursive neural networks, and long short-term memory networks (LSTM) have been widely used in urban water systems. These methods can use big data to simulate highly nonlinear and complex systems and have good performance in the field of hydrology.
[0005] Artificial neural networks are widely used to model complex systems in the hydrological field, such as evapotranspiration prediction, flood prediction, and rainfall-runoff modeling. However, many methods based on traditional artificial neural networks do not consider the time series information of the input data. Compared with traditional artificial neural networks, recursive neural networks fully consider the time series information of the input data, can remember the previous information of the input data and capture the time dynamic change information, so as to obtain better prediction performance. Obviously, compared with traditional artificial neural networks, recursive neural networks are more suitable for modeling complex time series such as hydrology and meteorology.
[0006] However, traditional recurrent neural networks suffer from exploding and vanishing gradient problems when trained with long lags. The training of traditional recurrent neural networks relies on an extended version of backpropagation, called backpropagation through time, which requires calculating not only the cost gradient corresponding to the input weights, but also the hidden weights corresponding to the previous time steps. The cost gradient may explode or vanish with long lags, which causes the learnable parameters of traditional recurrent neural networks to not be updated well. Long short-term memory networks (LSTMs) can overcome the above shortcomings because they maintain their states over time, and their nonlinear gating units (i.e., forget gates, input gates, and output gates) regulate the flow of information into and out of the memory cells. The forget gate determines what information will be forgotten by the cell state. It ranges from 0 to 1, which means "completely delete the memory" to "completely keep the memory." The input gate determines what information is used to update the cell state. The output gate controls the cell state information that flows into the new hidden state. In addition, deep learning has received widespread attention in recent years, and deep neural networks have achieved excellent performance in difficult tasks in different fields. The original LSTM network and its variants (e.g., Gated Recurrent Units), a type of deep neural network configured with the recurrent neural network framework, have shown remarkable performance in language modeling, speech-to-text transcription, machine translation, and other applications.
[0007] In the field of hydrology, methods based on LSTM networks have shown good performance. For example, LSTM networks are used to simulate and predict the water level of the overflow structure of the combined sewer network and to predict the groundwater level in areas where hydrogeological data are difficult to obtain. However, the traditional LSTM network-based methods do not encode the particulate matter in the drainage network as input data, and do not obtain the following important information in the input data: (a) sequence information of the particulate matter sequence in the drainage network; (b) the previous particulate matter deposition, which contains partially compressed information of all factors that affect the predicted particulate matter deposition. The compressed information mainly includes all possible influencing factors that affect runoff pollution, such as the volume sand content of the sedimentary bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ), etc. The term “compression” refers to the low-dimensional results obtained from high-dimensional factors, which contain information about these factors. Sequence-to-sequence models do not consider the following in practice: The particle deposition of the day is not affected by The impact on the operation status of the drainage network after days. Summary of the invention
[0008] In order to solve the current technical problems, the present invention aims to propose a method for predicting particle deposition in drainage pipe networks based on long short-term memory step sequences, which is used for predicting particle deposition in drainage pipe networks. The long short-term memory network solves the gradient explosion and vanishing problems of particle deposition prediction in drainage pipe networks, and can improve the prediction performance. Improving the prediction accuracy of particle deposition in drainage pipe networks is of great significance for improving the operation efficiency of drainage pipe networks. At the same time, the step prediction framework of particle deposition sequence in drainage pipe networks, which contains m A model that can be implemented m Step 1: Prediction of particle deposition in drainage pipes. When predicting the particle deposition in drainage pipes, the current particle deposition in the pipe is not affected by the later pipe conditions, which is more consistent with the actual situation; and the Froude number of particles in the drainage pipe network can reflect the deposition of particles, which is also one of the key indicators of the drainage network self-cleaning mechanism.
[0009] In order to realize the above technical features, the purpose of the present invention is achieved as follows: A method for predicting particle deposition in a drainage pipe network based on a long short-term memory step sequence comprises the following steps: Step 1, prepare the input data and output data for prediction of particle deposition in the drainage network and preprocess the data; Step 2: construct a prediction model for particle deposition in the drainage pipe network based on the long short-term memory step sequence to predict the particle deposition in the drainage pipe network; Step 3: train and test the model and set the model parameters to ensure that the model can accurately simulate the particle deposition in the drainage network; Step 4: simulate the particle deposition in the drainage network and evaluate the prediction performance of the model.
[0010] The specific steps of step 1 are: Step 1.1, select the main influencing factors of the prediction of particle deposition in the drainage network, that is, input data, and decision variables, that is, output data; among them, the influencing factors mainly include: volume sand content of the sediment bed under non-deposition conditions , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient ; The output data of the prediction model is the Froude number of particles ; Step 1.2: After collecting all the input data and output data of the particle deposition prediction model in the drainage network, check the quality of the data and use a sliding time window to replace the missing data and erroneous data in the input data and output data to ensure that the quality of the input data and output data of the prediction model meets the prediction requirements.
[0011] The specific steps of step 2 are: Step 2.1: Construct a step prediction framework for particle deposition sequence in drainage pipe network based on long short-term memory network. The framework includes m Models for implementation m Prediction of particle deposition in drainage pipe network; Step 2.2: Use the first model in the step prediction framework of the particle deposition sequence in the drainage network to predict the particle deposition in the drainage network in the first step, and use it as the second, third, ..., and third step prediction models. m The input of the prediction model of particle deposition in the drainage network in advance is the second, third, ..., and third order in the step prediction framework of the particle deposition sequence in the drainage network. m Models; Step 2.3: Use the first step of the particle deposition sequence prediction framework in the drainage network. i (1< i < m ) model predicts the i The first step is to advance the deposition of particles in the drainage network and serve as the first i +1,…,th m The input of the prediction model of particle deposition in the drainage network in advance is the first step in the step prediction framework of particle deposition sequence in the drainage network. i +1, …, m Models; Step 2.4: Use the first step of the particle deposition sequence prediction framework in the drainage network. m The model predicts the m Step ahead to prevent the deposition of particulate matter in the drainage network; Step 2.5, combined with steps 2.2-2.4, by m The model predicts m The first step is to predict the particle deposition in the drainage network.
[0012] The specific steps of step 3 are: Step 3.1, determine the learnable parameters and hyperparameters of the particle deposition prediction model in the drainage network, so as to predict the particle deposition in the drainage network in the step prediction framework. m The model is trained and tested to ensure that the prediction model can accurately output the prediction data of particle deposition in the drainage network; Step 3.2, determine the performance evaluation index of the particle deposition prediction model in the drainage network, ensure that each model of the step prediction framework of particle deposition in the drainage network can be effectively trained, and obtain the particle deposition prediction model in the drainage network that meets the accuracy requirements; Step 3.3, input the input data of the particle deposition prediction model in the drainage pipe network into the particle deposition prediction model framework, train and test the particle deposition prediction model in the drainage pipe network, and ensure that the output data of the particle deposition prediction model in the drainage pipe network can accurately reflect the actual changes in particle deposition in the drainage pipe network.
[0013] The step 4 is specifically as follows: Step 4.1, construct a two-layer long short-term memory network as a benchmark model for predicting particle deposition in drainage pipe networks, and evaluate the prediction performance of the step prediction framework for particle deposition sequence in drainage pipe networks; Step 4.2: Predict the input data of particle deposition in the drainage network: the volumetric sand content of the sedimentary bed under non-deposition conditions , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient The predicted time series data of particle deposition in the drainage network are obtained and compared with the output results of the step prediction framework of particle deposition sequence in the drainage network; Step 4.3, input data through the prediction model of particle deposition in the drainage network: volumetric sand content of the sediment bed under non-deposition conditions , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient , the output data of the particle deposition prediction model in the drainage network are predicted: the Froude number of the particles The prediction performance of the model is analyzed by comparing it with the Froude number calculated by the empirical formula.
[0014] The step 2.1 is specifically as follows: Step 2.1.1, construct a step prediction model for the particle deposition sequence in a single drainage network pipe, and obtain the particle deposition prediction output data in the drainage network pipe by predicting the particle deposition prediction input data in the drainage network pipe; Step 2.1.2, Build The step prediction model of particle deposition sequence in the drainage network is obtained, and the step prediction framework of particle deposition sequence in the drainage network is obtained, including A sequence step prediction model for particulate matter in the drainage network is used to predict the particle deposition in the drainage network using the input data. Prediction data of particle deposition in drainage pipe network; The step 2.5 is specifically as follows: Step 2.5.1, training the first advance drainage pipe network pipe particle deposition prediction model, and using the drainage pipe network pipe particle deposition prediction input data to predict the first step advance drainage pipe network pipe particle deposition prediction output data; Step 2.5.2, training the second advance drainage pipe network pipe particle deposition prediction model, using the drainage pipe network pipe particle deposition prediction input data and the first step advance drainage pipe network pipe particle deposition prediction output data to predict the second step advance drainage pipe network pipe particle deposition prediction output data; Step 2.5.3, for i ( ) advanced drainage pipe network particle deposition prediction model is trained, using the drainage pipe network particle deposition prediction input data and the previous i -1 step ahead of the prediction output data of the particle deposition in the drainage network to obtain the first i Step ahead to predict the output data of particle deposition in the drainage network; Step 2.5.4, summarize the m-step drainage network pipe particle deposition prediction output data obtained in steps 2.5.1-2.5.3 to obtain the m-step advanced drainage network pipe particle deposition prediction data.
[0015] The step 3.1 is specifically as follows: Step 3.1.1, determine the dimensions of each LSTM network unit. Each network unit contains 5 dimensions, including: volume sand content of the sedimentary bed under non-sedimentary conditions , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient ; Step 3.1.2, normalize the five-dimensional input data of each LSTM network unit. All input data are normalized using the z-score normalization method; Step 3.1.3, set the hidden state length of each LSTM network unit to 32, set the push rate to 0.1 to avoid overfitting, set the learning rate to 0.001, set the number of samples per batch to 256, and use the root mean square error MSE as the loss function; Step 3.1.4, select k real observation data of particulate matter deposition in the drainage network to train the proposed step prediction framework of particulate matter deposition sequence in the drainage network, obtain k NSE values through k training times, and select the hyperparameter set that produces the highest NSE median value among all hyperparameter combinations as the hyperparameters of the step prediction framework of particulate matter deposition sequence in the drainage network.
[0016] The step 4.1 is specifically as follows: Step 4.1.1, a long short-term memory network is used to construct a double-layer drainage pipe network particle deposition sequence prediction framework, which contains two encoder sequences, a state vector and a decoder sequence. The first decoder sequence has a long short-term memory network unit, and its input includes the volume sand content of the sediment bed under non-deposition conditions. , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient ; The second decoder sequence has LSTM units, and its input data is the observed data of particle deposition in the drainage network; the state vector contains the compressed and processed information of the input from the two encoder sequences; the decoder sequence has m LSTM units, and the output is the m-step-ahead prediction of particle deposition in the drainage network; In step 4.1.2, the actual data of particle deposition in the drainage pipe networks of k cities are used to train the particle deposition sequence prediction framework in the double-layer drainage pipe network. K NSE values are obtained through k training times, and the hyperparameter set that produces the highest NSE median value among all hyperparameter combinations is selected as the hyperparameter of the particle deposition sequence prediction framework in the double-layer drainage pipe network.
[0017] The step 4.2 is specifically as follows: Step 4.2.1, select The actual observation data of particle deposition in the drainage pipe network of each city were input into the step prediction framework of particle deposition sequence in the drainage pipe network and the double-layer drainage pipe network prediction framework to obtain the prediction data of particle deposition in the drainage pipe network. Step 4.2.2, after obtaining the prediction data of particle deposition in the drainage network, the consistency index, mean absolute error, root mean square error, Coefficient of determination and Adjustment coefficients are used, and the prediction performance of the particle deposition sequence step prediction framework in the drainage network and the particle deposition prediction framework in the double-layer drainage network are compared and evaluated based on these indicators.
[0018] The present invention has the following beneficial effects: The particle deposition prediction method in the drainage network based on the long short-term memory step sequence is of great significance for improving the prediction accuracy of particle deposition in the drainage network, especially for realizing multi-step advance particle deposition prediction in the drainage network. The long short-term memory network solves the gradient explosion and vanishing problems of particle deposition prediction in the drainage network, and can improve the prediction performance. At the same time, the particle deposition prediction sequence step prediction framework in the drainage network includes m A model that can be implemented m When predicting the particle deposition in the drainage network, the particle deposition in the current pipe is not affected by the later pipe conditions, which is more consistent with the actual situation. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0020] Figure 1 This is a flow chart of the particle deposition prediction method in the drainage network based on long short-term memory step sequence.
[0021] Figure 1 It is mainly divided into 4 parts: 1. Preparation of prediction data for particle deposition in drainage pipe networks; 2. Construction of a step prediction framework for particle deposition sequence in drainage pipe networks; 3. A step prediction framework for particle deposition sequence in drainage pipe networks; 4. Comparison and evaluation of particle prediction performance in drainage pipe networks.
[0022] Figure 2 Schematic diagram of the network structure of a recurrent neural network.
[0023] Figure 3 Schematic diagram of the network structure of the long short-term memory network.
[0024] Figure 4 Schematic diagram of the step prediction framework structure of particle deposition sequence in drainage pipe network.
[0025] Figure 5 Schematic diagram of the architecture of the two-layer rainfall-runoff pollution series prediction framework.
[0026] Figure 6 Schematic diagram of the network structure of the double-layer rainfall-runoff pollution sequence prediction framework.
[0027] Figure 7 This is a framework diagram of the particle deposition prediction method in the drainage network based on long short-term memory step sequence.
[0028] Figure 8 This is a diagram showing the prediction effect when using the first set of non-deposition data to train the step prediction framework for particle deposition sequence in the drainage network.
[0029] Fig. 9 This is a diagram showing the prediction effect when using the second set of non-deposition data to train the step prediction framework for particle deposition sequence in the drainage network.
[0030] Fig.10 This is a diagram showing the prediction effect when using the third set of non-deposition data to train the step prediction framework for particle deposition sequence in the drainage network.
[0031] Fig.11 This is the prediction effect diagram when using the fourth set of non-deposition data to train the step prediction framework of particulate matter deposition sequence in the drainage network.
[0032] Fig.12 This is the prediction effect diagram when using the fifth set of non-deposition data to train the step prediction framework of particulate matter deposition sequence in the drainage network.
[0033] Fig.13 The model prediction performances obtained using the first set of real observation data are the prediction model, the empirical model and the two empirical formulas.
[0034] Fig.14 The model prediction performance obtained using the second set of real observation data for the predictive model, the empirical model and the two empirical formulas.
[0035] Fig.15 The model prediction performance obtained using the third set of real observation data for the predictive model, the empirical model and the two empirical formulas.
[0036] Fig.16 The model prediction performance obtained using the fourth set of real observation data for the predictive model, the empirical model, and the two empirical formulas.
[0037] Fig.17 The model prediction performances obtained using the fifth set of real observation data are shown for the predictive model, the empirical model, and the two empirical formulas. DETAILED DESCRIPTION
[0038] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.
[0039] Embodiment 1: See also Figure 1 The present invention provides a method for predicting particle deposition in a drainage network based on a long short-term memory step sequence, comprising the following steps: Step 1, prepare the input data and output data for prediction of particle deposition in the drainage network and preprocess the data; Step 2: construct a particle deposition prediction model in the drainage network based on the long short-term memory step sequence to predict the deposition process of particles in the drainage network; Step 3: Train and test the model and set the model parameters to ensure that the model prediction results can accurately reflect the deposition process of particles in the drainage network; Step 4, predicting the deposition process of particles in the drainage network and evaluating the prediction performance of the model; Further, the step 1 is specifically as follows: Step 1.1, select the main influencing factors (input) and decision variables (output) for the prediction of particle deposition in the drainage network, where the influencing factors mainly include: volume sand content of the sedimentary bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ), the output of the prediction model is the Froude number of the particle ( ).
[0040] Step 1.2, after collecting all the input data and output data of the particle deposition prediction model in the drainage network, check the quality of the data, and use a sliding time window to replace the missing data and erroneous data in the input data and output data to ensure that the quality of the input data and output data of the prediction model meets the prediction requirements; Further, the step 2 is specifically as follows: Step 2.1: Construct a step prediction framework for particle deposition sequence in drainage pipe network based on long short-term memory network. The framework includes m Models for implementation m Prediction of particle deposition in drainage pipe network; Step 2.2: Use the first model in the step prediction framework of the particle deposition sequence in the drainage network to predict the first step of the particle deposition prediction value in the drainage network, and use it as the (second, third, ..., m ) step ahead of the input of the particle deposition prediction model in the drainage network (i.e., the second, third, ..., and third inputs in the particle deposition prediction framework in the drainage network) m models); Step 2.3: Use the first step of the particle deposition sequence prediction framework in the drainage network. i (1< i < m ) model predicts the i The predicted value of particle deposition in the drainage pipe network is used as the first step i +1,…,th m ) step ahead of the input of the particle deposition prediction model in the drainage network (i.e., the first i+1, …, m models); Step 2.4, using the prediction framework for particle deposition in drainage pipe networks m The model predicts the m Step ahead to predict the particle deposition in the drainage network; Step 2.5, combined with steps 2.2-2.4, by m The model predicts m The first step is to predict the particle deposition in the drainage network.
[0041] Further, the step 3 is specifically as follows: Step 3.1, determine the learnable parameters and hyperparameters of the particle deposition prediction model in the drainage network, so as to predict the particle deposition sequence in the drainage network in the step prediction framework. m The model is trained and tested to ensure that the prediction model can accurately output the particle deposition sequence data in the drainage network; Step 3.2, determine the performance evaluation index of the particle deposition prediction model in the drainage network, ensure that each model of the particle deposition sequence step prediction framework in the drainage network can be effectively trained, and obtain the particle deposition prediction model in the drainage network that meets the accuracy requirements; Step 3.3, input the input data of the particle deposition prediction model in the drainage pipe network into the particle deposition sequence step prediction framework in the drainage pipe network, train and test the particle deposition prediction model in the drainage pipe network, and ensure that the output data of the particle deposition prediction model in the drainage pipe network (i.e., the Froude number of the particles in the drainage pipe network) can accurately reflect the actual particle deposition situation in the drainage pipe network.
[0042] Further, the step 4 is specifically as follows: Step 4.1, construct a two-layer long short-term memory network as a benchmark model for predicting particle deposition in drainage pipe networks, and evaluate the prediction performance of the step prediction framework for particle deposition sequence in drainage pipe networks; Step 4.2: Input data (volume sand content of sedimentary bed under non-deposition conditions) through the prediction model of particle deposition in drainage network ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( )) predicts the output data of the particle deposition prediction model in the drainage network (the Froude number of the particles ( )) and compared with the output of the step prediction framework for particle deposition sequences in drainage networks; Step 4.3, input data (volume sand content of sediment bed under non-deposition conditions) through the prediction model of particle deposition in the drainage network ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( )) predicts the output data of the particle deposition prediction model in the drainage network (the Froude number of the particles ( )), and compared with the Froude number calculated by the empirical formula to analyze the prediction performance of the model.
[0043] When making the comparison, the following two empirical formulas were mainly considered: ; ; Further, the step 2.1 is specifically as follows: Step 2.1.1, construct a step prediction model for the particle deposition sequence in a single drainage network pipe, and obtain the predicted value of the particle deposition in the drainage network pipe by predicting the particle deposition prediction input data in the drainage network pipe; Long short-term memory network belongs to recursive neural network, which takes the state of hidden neurons in the previous time step as additional input of the next time step, remembers the previous information and captures the dynamic changes of time. In the traditional recursive neural network unit, the state of output data can be expressed as: ; In the formula, is the hyperbolic tangent function, yes The input vector at time instant, yes The hidden state of the moment, is a learnable matrix connecting two hidden states, is the learning matrix connecting the input vector and the hidden state, is an adjustable bias vector. Due to its vanishing or exploding gradient problem, this model cannot learn patterns with long-term lags well; LSTM networks overcome this shortcoming by replacing the normal neurons of a recurrent neural network with a memory block that contains four parts: in addition to the three gates (i.e., forget gate, input gate, and output gate), it also includes a constant error rotation unit. The constant error rotation unit can run straight down the entire chain without any activation function, so the gradient does not vanish when the LSTM network is trained using time backpropagation of the particle deposition sequence in the drainage network. In addition, the LSTM network can maintain its state over time, and its nonlinear gating unit can regulate the flow of information in and out of the memory unit; The working principle of the long short-term memory network can be expressed by the following mathematical equation: ; ; ; ; ; ; In the formula, is the sigmoid function, represents element-wise multiplication, It's time The input gate of , It's time The forget gate of , It's time The output gate of is, whose learnable parameters are , The unit is at time The latent state of , whose learnable parameters are , It's time The unit status, is the hidden state of the cell. These gates can control the flow of information in and out of the memory cell. The forget gate determines what information the cell state forgets. The value range is from 0 to 1, indicating "completely delete the memory" to "completely keep the memory". The input gate determines what information is used to update the cell state. The potential cell state gate (i.e., tanh layer) adds a new candidate value to the state. The output gate controls the flow of information from the cell state into the new hidden state; Step 2.1.2 Build The step prediction model of particle deposition sequence in the drainage network is obtained, and the step prediction framework of particle deposition sequence in the drainage network is obtained (including The particle deposition sequence step prediction model in the drainage network is used to predict the particle deposition in the drainage network using the input data. Prediction data of particle deposition in drainage pipe network; The step prediction framework for particle deposition sequences in drainage pipe networks includes A step prediction model for particle deposition sequence in a drainage network is used to Prediction of particle deposition in drainage pipe networks. The step prediction models of the particle deposition sequence in the drainage network are not independent of each other. For example, when training the particle deposition prediction model in the drainage network in the second step, the output data of the particle deposition prediction model in the drainage network in the first step is needed; for the particle deposition prediction model in the drainage network in the previous step, the input data By the last variable continuous time steps, where ( ) includes the volumetric sand content of the sedimentary bed under non-depositional conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ); ; In the formula, It is The predicted value of particle deposition in the drainage network is obtained by using the observation data of particle deposition in the drainage network and Prediction input data of particle deposition in the drainage network (volume sand content of the sediment bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( )), for the first ( ) days in the drainage network (i.e., the particle deposition in the drainage network in step 1) is predicted. Then, the prediction model for particle deposition in the drainage network in step 2 is defined as: ; use Observation data of particle deposition in secondary drainage pipe network, Prediction and analysis of particle deposition in secondary drainage pipe networks Data on the factors affecting the deposition of particulate matter in the drainage pipe network was used to predict the The particle deposition in the drainage pipe network on the day of the experiment (i.e., the particle deposition in the drainage pipe network in step 2). The prediction model of particle deposition in the first-step drainage pipe network is defined as: ; use Daily observation data of particle deposition in drainage pipe network, Daily prediction data of particle deposition in drainage pipe network and The observation data of the factors affecting the deposition of particulate matter in the drainage network on a daily basis is used to predict the The particle deposition in the drainage network on the first day (i.e. (deposition of particulate matter in the drainage network).
[0044] Further, the step 2.5 is specifically as follows: Step 2.5.1, train the first advance drainage pipe network particle deposition prediction model, using the volume sand content of the sediment bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ) Predict the particle prediction data in the drainage pipe network in the first step; Step 2.5.2, train the second advance drainage pipe network particle deposition prediction model, using the volume sand content of the sediment bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ) and the first step of the advance drainage pipe network pipe particle deposition prediction data; Step 2.5.3, for i ( ) advanced drainage pipe network particle deposition prediction models were trained, and the volume sand content of the sediment bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ) and before i -1 Step 1 Prediction of the particle size in the drainage network to obtain the Step ahead to predict the output data of particle deposition in the drainage network; Step 2.5.4, summarize the results from steps 2.5.1-2.5.3 mThe output data of particle deposition prediction in the drainage network is obtained. m The first step is to predict the particle deposition in the drainage network.
[0045] Further, the step 3.1 is specifically as follows: Step 3.1.1, determine the dimensions of each LSTM network unit. Each network unit contains four dimensions, including: volume sand content of the sedimentary bed under non-depositional conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ); Step 3.1.2, normalize the four-dimensional input data of each LSTM network unit. All input data are normalized using the z-score normalization method; Step 3.1.3, set the hidden state length of each LSTM network unit to 32, set the dropout rate to 0.1 to avoid overfitting, set the learning rate to 0.001, set the batch size (per batch) sample number to 256, and use the root mean square error (MSE) as the loss function; Step 3.1.4, select k The proposed step prediction framework for particle deposition sequence in drainage pipe networks is trained by using real observation data of particle deposition in drainage pipe networks. k Training times k The hyperparameter set that produces the highest median NSE value among all hyperparameter combinations is selected as the hyperparameters for the step prediction framework of the particle deposition sequence in the drainage network.
[0046] Further, the step 4.1 is specifically as follows: Step 4.1.1, a long short-term memory network is used to construct a double-layer drainage pipe network particle deposition sequence prediction framework, which contains two encoder sequences, a state vector and a decoder sequence. The first decoder sequence has a long short-term memory network unit, and its input includes the volume sand content of the sedimentary bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ). The second decoder sequence has LSTM network units, and its input data is the observed particle deposition data in the drainage network. The state vector contains the compressed and processed information of the input from these two encoder sequences. The decoder sequence has mLSTM units, and the output is m Prediction of particle deposition in drainage pipe network in advance; Step 4.1.2, use k The actual data of particle deposition prediction in drainage pipe network is used to train the particle deposition sequence prediction framework in double-layer drainage pipe network. k Training times k The hyperparameter set that produces the highest median NSE value among all hyperparameter combinations is selected as the hyperparameters of the particle deposition series prediction framework in the double-layer drainage network.
[0047] Further, the step 4.2 is specifically as follows: Step 4.2.1, select The actual observation data of particle deposition in the drainage pipe network of each city were input into the step prediction framework of particle deposition sequence in the drainage pipe network and the double-layer drainage pipe network prediction framework to obtain the prediction data of particle deposition in the drainage pipe network. Step 4.2.2, after obtaining the prediction data of particle deposition in the drainage network, the consistency index, mean absolute error, root mean square error, Coefficient of determination and Adjustment coefficients, based on these indicators, the prediction performance of the step prediction framework for particle deposition in the drainage network and the prediction framework for particle deposition in the double-layer drainage network are compared and evaluated; The calculation formula of the consistency index of the Froude number is: ; In the formula, The consistency index of the Froude number is the ratio of the root mean square error to the potential error, which is used to measure the quality of the model. The value of varies between 0 and 1, where 1 indicates a perfect match and 0 indicates a complete mismatch. represents the actual value of the Froude number, represents the predicted value of the Froude number, represents the average value of the actual value of the Froude number; The mean absolute error of the Froude number is calculated as: ; In the formula, MAE represents the mean absolute error of the Froude number, which is the average of the absolute errors between all the predicted values and the true values of the Froude number. The value range of MAE is 0 to , the smaller the better; The root mean square error calculation formula of the Froude number is: ; In the formula, represents the root mean square error of the Froude number; Froude number The formula for calculating the coefficient of determination is: ; Determines the proportion of variance in the actual values that can be explained by the predicted variables. It can be estimated as a combination of the actual values and the single distribution of the predicted values. It is a measure of the goodness of fit of the statistical model. The value ranges from 0 to 1, where 1 indicates a good model and 0 indicates a biased model; Froude number The adjustment coefficient calculation formula is: Adjusted ; Embodiment 2: The purpose of the present invention is to propose a method for predicting particle deposition in drainage pipe networks based on long short-term memory step sequences. The long short-term memory network solves the gradient explosion and vanishing problems of particle deposition prediction in drainage pipe networks, and can improve the prediction performance. At the same time, the step prediction framework of particle deposition sequence in drainage pipe networks is proposed, which contains m A model that can be implemented m When predicting the particle deposition in the drainage network, the current particle deposition in the pipe is not affected by the later pipe conditions and is more consistent with the actual situation.
[0048] Five sets of non-sedimentary layer data commonly used in existing studies are selected to illustrate the proposed method. The input data include the volume sand content of the sedimentary bed under non-sedimentary conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ), and the output of the prediction model is the Froude number of the particle ( ); The main influencing factors of the particle deposition prediction model in the drainage network are shown in Table 1: Table 1 Main influencing factors of the prediction model of particle deposition in drainage pipe network
[0049] The data ranges of the five groups of non-sedimentary layer data are shown in Table 2: Table 25 Data range of non-sedimentary layer data
[0050] After collecting 5 sets of non-sedimentary layer data, the volume sand content ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ) and the Froude number ( ) to replace the missing data and erroneous data in the data set to ensure that the quality of the input data and output data of the particle deposition prediction model in the drainage network meets the prediction requirements; like Figure 2 As shown in the figure, the long short-term memory network is a recurrent neural network that takes the state of the hidden neurons in the previous time step as an additional input for the next time step, remembering the previous information and capturing temporal dynamic changes. express Input at the moment, express In a traditional recurrent neural network unit, the state of the output data can be expressed as: ; In the formula, is the hyperbolic tangent function, yes The input vector at time instant, yes The hidden state of the moment, is a learnable matrix connecting two hidden states, is the learning matrix connecting the input vector and the hidden state, is an adjustable bias vector. Due to its vanishing or exploding gradient problem, this model cannot learn patterns with long-term lags well; LSTM networks overcome this shortcoming by replacing the normal neurons of a recurrent neural network with a memory block that contains four parts: in addition to the three gates (i.e., forget gate, input gate, and output gate), it also includes a constant error rotation unit. The constant error rotation unit can run straight down the entire chain without any activation function, so the gradient does not vanish when the LSTM network is trained using time backpropagation of the particle deposition sequence in the drainage network. In addition, the LSTM network can maintain its state over time, and its nonlinear gating unit can regulate the flow of information in and out of the memory unit; like Figure 3 As shown, , and represent input, hidden state and The unit status at the moment; The working principle of the long short-term memory network can be expressed by the following mathematical equation: ; ; ; ; ; ; In the formula, is the sigmoid function, represents element-wise multiplication, It's time The input gate of , It's time The forget gate of , It's time The output gate of is, whose learnable parameters are , The unit is at time The latent state of , whose learnable parameters are , It's time The unit status, is the hidden state of the cell. These gates can control the flow of information in and out of the memory cell. The forget gate determines what information the cell state forgets. The value range is from 0 to 1, indicating "completely delete the memory" to "completely keep the memory". The input gate determines what information is used to update the cell state. The potential cell state gate (i.e., tanh layer) adds a new candidate value to the state. The output gate controls the flow of information from the cell state into the new hidden state; Step 2.1.2, Build The step prediction model of particle deposition sequence in the drainage network is obtained, and the step prediction framework of particle deposition sequence in the drainage network is obtained (including The particle deposition sequence step prediction model in the drainage network is used to predict the particle deposition in the drainage network using the input data. The prediction data of particle deposition in the drainage network is as follows: Figure 4 As shown; The step prediction framework for particle deposition sequences in drainage pipe networks includes A step prediction model for particle deposition sequence in a drainage network is used to Prediction of particle deposition in drainage pipe networks. The step prediction models of the particle deposition sequence in the drainage network are not independent of each other. For example, when training the second-step advance prediction model for particle deposition in the drainage network, the output data of the first-step advance prediction model for particle deposition in the drainage network is needed; for the previous step prediction model for particle deposition in the drainage network, the input data By the last variable continuous time steps, where ( ) includes the volumetric sand content of the sedimentary bed under non-depositional conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ); ; In the formula, It is The predicted value of particle deposition in the drainage network is obtained by using the observation data of particle deposition in the drainage network and Prediction input data of particle deposition in the drainage network (volume sand content of the sediment bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( )), for the first ( ) days in the drainage network (i.e., the particle deposition in the drainage network in step 1) is predicted. Then, the prediction model for particle deposition in the drainage network in step 2 is defined as: ; use Observation data of particle deposition in the drainage pipe network, Prediction data of particle deposition in the drainage pipe network and The prediction of particle deposition in the drainage pipe network is input with data, and the prediction is The particle deposition in the drainage pipe network on the day of the experiment (i.e., the particle deposition in the drainage pipe network in step 2). The prediction model of particle deposition in the first-step drainage pipe network is defined as: ; use Daily observation data of particle deposition in drainage pipe network, Daily prediction data of particle deposition in drainage pipe network and The daily prediction of particle deposition in the drainage network is input with data, and the prediction is obtained. The particle deposition in the drainage network on the first day (i.e. (deposition of particulate matter in the drainage network); Step 2.2: Use the first model in the step prediction framework of the particle deposition sequence in the drainage network to predict the particle deposition in the drainage network in the first step, and use it as the (second, third, ..., m ) step ahead of the input of the prediction model for particle deposition in the drainage network (i.e., the second, third, ..., and third steps in the step prediction framework for particle deposition in the drainage network). m models); Step 2.3: Use the first step of the particle deposition sequence prediction framework in the drainage network. i (1< i < m ) model predicts the i Step 1: Pre-drainage pipe network pipe particle deposition, and as (the first i +1,…,th m ) step ahead of the input of the prediction model for particle deposition in the drainage network (i.e., the first step in the prediction framework for the sequence of particle deposition in the drainage network). i +1, …, m models); Step 2.4: Use the first step of the particle deposition sequence prediction framework in the drainage network. m The model predicts the m Step ahead to prevent the deposition of particulate matter in the drainage network; Step 2.5, combined with steps 2.2-2.4, by m The model predicts m The first step is to predict the particle deposition in the drainage network.
[0051] Step 2.5.1, train the first advance drainage pipe network particle deposition prediction model, using the volume sand content of the sediment bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ) data prediction to obtain the output data of the particle deposition prediction in the drainage pipe network in step 1; Step 2.5.2, train the second advance drainage pipe network particle deposition prediction model, using the volume sand content of the sediment bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ) data and the output data of the particle deposition prediction in the advanced drainage pipe network in step 1 are used to predict the output data of the particle deposition in the advanced drainage pipe network in step 2; Step 2.5.3, for i ( ) advanced drainage pipe network particle deposition prediction models were trained, and the volume sand content of the sediment bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ) data and previous i -1 Step forward the output data of particle deposition in the drainage network to obtain the i Output data of particle deposition in the drainage pipe network in advance; Step 2.5.4, summarize the results from steps 2.5.1-2.5.3 m The output data of particle deposition in the drainage pipe network is obtained m The first step is to predict the particle deposition in the drainage network.
[0052] Step 3: Use five sets of non-sedimentary layer data to train the particle deposition prediction model in the drainage network. Each long short-term memory network unit contains five dimensions, including: volume sand content of the sedimentary bed under non-sedimentary conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ); The hidden state length of each LSTM network unit is set to 32, the rollout rate is set to 0.1 to avoid overfitting, the learning rate is set to 0.001, the batch size (per batch) sample number is set to 256, and the root mean square error (MSE) is used as the loss function; The five-dimensional input data of each LSTM network unit were normalized, and all input data were normalized using the z-score normalization method; The prediction model of particulate matter deposition in the drainage network was trained using five sets of non-deposition data in turn, and the prediction models of particulate matter deposition in the drainage network were obtained respectively. k The hyperparameter set that produces the highest median NSE value among all hyperparameter combinations is selected as the hyperparameters of the step prediction framework for the particle deposition sequence in the drainage network. like Figure 8 As shown in the figure, after the particle deposition prediction model in the drainage network is trained using the first set of non-deposition data, the comparison diagram of the model prediction data and the real data. As shown in the figure, the Froude number predicted by the model is close to the Froude number of the real observed data. is 0.70; like Fig. 9 As shown in the figure, after the particle deposition prediction model in the drainage network is trained using the first set of non-deposition data, the comparison diagram of the model prediction data and the real data. As shown in the figure, the Froude number predicted by the model is close to the Froude number of the real observed data. is 0.80; like Fig.10 As shown in the figure, after the particle deposition prediction model in the drainage network is trained using the first set of non-deposition data, the comparison diagram of the model prediction data and the real data. As shown in the figure, the Froude number predicted by the model is close to the Froude number of the real observed data. is 0.843; like Fig.11 As shown in the figure, after the particle deposition prediction model in the drainage network is trained using the first set of non-deposition data, the comparison diagram of the model prediction data and the real data. As shown in the figure, the Froude number predicted by the model is close to the Froude number of the real observed data. is 0.895; like Fig.12 As shown in the figure, after the particle deposition prediction model in the drainage network is trained using the first set of non-deposition data, the comparison diagram of the model prediction data and the real data. As shown in the figure, the Froude number predicted by the model is close to the Froude number of the real observed data. is 0.923; The long short-term memory network is used to construct a prediction framework for particle deposition sequences in double-layer drainage pipe networks. Fig.10 As shown in Figure 1, the framework consists of two encoder sequences, a state vector, and a decoder sequence. The first decoder sequence has a long short-term memory network unit, whose input includes the volume sand content of the sedimentary bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ). The second decoder sequence has LSTM network units, and its input data is the observed particle deposition data in the drainage network. The state vector contains the compressed and processed information of the input from these two encoder sequences. The decoder sequence has m LSTM units, and the output is m Step ahead of time to predict the particle deposition in the drainage network, such as Fig.11 As shown; The particle deposition sequence prediction framework in the double-layer drainage network is trained by using the actual data of particle deposition in k drainage pipes. k Training times k The hyperparameter set that produces the highest median NSE value among all hyperparameter combinations is selected as the hyperparameters of the particle deposition series prediction framework in the double-layer drainage network.
[0053] Step 4, using the step prediction framework of the particle deposition sequence in the drainage network to simulate the particle deposition in the drainage network, and using the particle deposition prediction benchmark model and empirical formula in the drainage network to calculate the Froude number, and evaluate the prediction performance of the step prediction framework of the particle deposition sequence in the drainage network; Step 4.1, construct a two-layer long short-term memory network as a benchmark model for predicting particle deposition in drainage pipe networks, and evaluate the prediction performance of the step prediction framework for particle deposition sequence in drainage pipe networks; Step 4.1.1, use the long short-term memory network to build a double-layer drainage pipe network particle deposition sequence prediction framework, such as Fig.10 As shown in Figure 1, the framework consists of two encoder sequences, a state vector, and a decoder sequence. The first decoder sequence has a long short-term memory network unit, whose input includes the volume sand content of the sedimentary bed under non-deposition conditions ( ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( ). The second decoder sequence has LSTM network units, and its input data is the observed particle deposition data in the drainage network. The state vector contains the compressed and processed information of the input from these two encoder sequences. The decoder sequence has m LSTM units, and the output is m Step ahead of time to predict the particle deposition in the drainage network, such as Fig.11 As shown; Step 4.1.2, use k The actual data of particle deposition prediction in drainage pipe network is used to train the particle deposition sequence prediction framework in double-layer drainage pipe network.k Training times k The hyperparameter set that produces the highest median NSE value among all hyperparameter combinations is selected as the hyperparameters of the particle deposition series prediction framework in the double-layer drainage network.
[0054] Step 4.2, input data (volume sand content of sedimentary bed under non-deposition conditions) through the prediction of particle deposition in the drainage network. ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( )) predicts the particle deposition in the drainage network and compares it with the output of the step prediction framework of the particle deposition sequence in the drainage network.
[0055] Step 4.2.1, select j The actual observation data of particle deposition in the drainage pipe network are input into the step prediction framework of particle deposition sequence in the drainage pipe network and the double-layer drainage pipe network prediction framework to obtain the prediction data of particle deposition in the drainage pipe network. Step 4.2.2, after obtaining the predicted data of particle deposition in the drainage network, calculate the consistency index, mean absolute error, root mean square error, Coefficient of determination and Adjustment coefficients are used, and the prediction performance of the step prediction framework for particle deposition sequence in drainage pipe networks and the prediction performance of the double-layer drainage pipe network particle deposition sequence prediction framework are compared and evaluated based on these indicators.
[0056] Step 4.3, input data (volume sand content of sediment bed under non-deposition conditions) through the prediction model of particle deposition in the drainage network ), dimensionless particle diameter ( ), median particle size of sediments ( )、hydraulic radius( ) and the pipe friction coefficient ( )) predicts the output data of the particle deposition prediction model in the drainage network (the Froude number of the particles ( )), and compared with the Froude number calculated by the empirical formula to analyze the prediction performance of the model.
[0057] like Fig.13As shown, the prediction performance of the model obtained by the prediction model, the empirical model and the two empirical formulas using the first group of real observation data is given. As shown in the figure, when the model prediction performance is compared and evaluated in the first group of observation data of particle deposition in the drainage network, the determination coefficient and adjustment coefficient calculated by the particle deposition prediction model are better than the results calculated by the empirical formula; like Fig.14 As shown, the prediction performance of the model obtained by the prediction model, the empirical model and the two empirical formulas using the second group of real observation data is given. As shown in the figure, when the model prediction performance is compared and evaluated in the second group of particle deposition observation data in the drainage network, compared with the benchmark model, the five indicators of the particle deposition prediction model are better than the benchmark model; like Fig.15 As shown, the prediction performance of the model obtained by the prediction model, the empirical model and the two empirical formulas using the third group of real observation data is given. As shown in the figure, when the model prediction performance is compared and evaluated in the third group of observation data of particle deposition in the drainage network, the mean absolute error calculated by the particle deposition prediction model is better than the result calculated by the empirical formula; like Fig.16 As shown, the prediction performance of the model obtained by the prediction model, the empirical model and the two empirical formulas using the fourth group of real observation data is given. As shown in the figure, when the model prediction performance is compared and evaluated in the fourth group of particle deposition observation data in the drainage network, the mean absolute error and root mean square error calculated by the particle deposition prediction model are better than the results calculated by the empirical formula; like Fig.17 As shown in the figure, the prediction performance of the model obtained by the prediction model, the empirical model and the two empirical formulas using the fifth group of real observation data is given. As shown in the figure, when the model prediction performance is compared and evaluated in the fifth group of particle deposition observation data in the drainage network, the determination coefficient and adjustment coefficient calculated by the particle deposition prediction model are better than the results calculated by the empirical formula.
Claims
1. A method for predicting particle deposition in a drainage network based on long short-term memory step sequences, characterized in that: The following steps are involved: Step 1, prepare the input data and output data for prediction of particle deposition in the drainage network and preprocess the data; Step 2: construct a prediction model for particle deposition in the drainage pipe network based on the long short-term memory step sequence to predict the particle deposition in the drainage pipe network; Step 3: train and test the model and set the model parameters to ensure that the model can accurately simulate the particle deposition in the drainage network; Step 4: Simulate the particle deposition in the drainage network and evaluate the prediction performance of the model.
2. According to claim 1, a method for predicting particle deposition in a drainage network based on a long short-term memory step sequence is characterized in that: The specific steps of step 1 are: Step 1.1, select the main influencing factors of the prediction of particle deposition in the drainage network, that is, input data, and decision variables, that is, output data; among them, the influencing factors mainly include: volume sand content of the sediment bed under non-deposition conditions , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient ; The output data of the prediction model is the Froude number of particles ; Step 1.2: After collecting all the input data and output data of the particle deposition prediction model in the drainage network, check the quality of the data and use a sliding time window to replace the missing data and erroneous data in the input data and output data to ensure that the quality of the input data and output data of the prediction model meets the prediction requirements.
3. According to claim 2, a method for predicting particle deposition in a drainage network based on a long short-term memory step sequence is characterized in that: The specific steps of step 2 are: Step 2.1: Construct a step prediction framework for particle deposition sequence in drainage pipe network based on long short-term memory network. The framework includes m Models for implementation m Prediction of particle deposition in drainage pipe network; Step 2.2: Use the first model in the step prediction framework of the particle deposition sequence in the drainage network to predict the particle deposition in the drainage network in the first step, and use it as the second, third, ..., and third step prediction models. m The input of the prediction model of particle deposition in the drainage network in advance is the second, third, ..., and third order in the step prediction framework of the particle deposition sequence in the drainage network. m Models; Step 2.3: Use the first step of the particle deposition sequence prediction framework in the drainage network. i (1< i < m ) model predicts the i The first step is to advance the deposition of particles in the drainage pipe network and serve as the first i +1,…,th m The input of the prediction model of particle deposition in the drainage network in advance is the first step in the step prediction framework of particle deposition sequence in the drainage network. i +1, …, m Models; Step 2.4: Use the first step of the particle deposition sequence prediction framework in the drainage network. m The model predicts the m Step ahead to prevent the deposition of particulate matter in the drainage network; Step 2.5, combined with steps 2.2-2.4, by m The model predicts m Step ahead to predict the particle deposition in the drainage network.
4. According to claim 3, a method for predicting particle deposition in a drainage network based on a long short-term memory step sequence is characterized in that: The specific steps of step 3 are: Step 3.1, determine the learnable parameters and hyperparameters of the particle deposition prediction model in the drainage network, so as to predict the particle deposition in the drainage network in the step prediction framework. m The model is trained and tested to ensure that the prediction model can accurately output the prediction data of particle deposition in the drainage network; Step 3.2, determine the performance evaluation index of the particle deposition prediction model in the drainage network, ensure that each model of the step prediction framework of particle deposition in the drainage network can be effectively trained, and obtain the particle deposition prediction model in the drainage network that meets the accuracy requirements; Step 3.3, input the input data of the particle deposition prediction model in the drainage pipe network into the particle deposition prediction model framework, train and test the particle deposition prediction model in the drainage pipe network, and ensure that the output data of the particle deposition prediction model in the drainage pipe network can accurately reflect the actual changes in particle deposition in the drainage pipe network.
5. The method for predicting particle deposition in a drainage network based on a long short-term memory step sequence according to claim 1 is characterized in that: The step 4 is specifically as follows: Step 4.1, construct a two-layer long short-term memory network as a benchmark model for predicting particle deposition in drainage pipe networks, and evaluate the prediction performance of the step prediction framework for particle deposition sequence in drainage pipe networks; Step 4.2: Predict the input data of particle deposition in the drainage network: the volumetric sand content of the sedimentary bed under non-deposition conditions , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient The predicted time series data of particle deposition in the drainage network are obtained and compared with the output results of the step prediction framework of particle deposition sequence in the drainage network; Step 4.3, input data through the prediction model of particle deposition in the drainage network: volumetric sand content of the sediment bed under non-deposition conditions , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient , the output data of the particle deposition prediction model in the drainage network are predicted: the Froude number of the particles The prediction performance of the model is analyzed by comparing it with the Froude number calculated by the empirical formula.
6. The method for predicting particle deposition in a drainage pipe network based on a long short-term memory step sequence according to claim 3 is characterized in that: The step 2.1 is specifically as follows: Step 2.1.1, construct a step prediction model for the particle deposition sequence in a single drainage network pipe, and obtain the particle deposition prediction output data in the drainage network pipe by predicting the particle deposition prediction input data in the drainage network pipe; Step 2.1.2, Build The step prediction model of particle deposition sequence in the drainage network is obtained, and the step prediction framework of particle deposition sequence in the drainage network is obtained, including A sequence step prediction model for particulate matter in the drainage network is used to predict the particle deposition in the drainage network using the input data. Prediction data of particle deposition in drainage pipe network.
7. The method for predicting particle deposition in a drainage network based on a long short-term memory step sequence according to claim 3 is characterized in that: The step 2.5 is specifically as follows: Step 2.5.1, training the first advance drainage pipe network pipe particle deposition prediction model, and using the drainage pipe network pipe particle deposition prediction input data to predict the first step advance drainage pipe network pipe particle deposition prediction output data; Step 2.5.2, training the second advance drainage pipe network pipe particle deposition prediction model, using the drainage pipe network pipe particle deposition prediction input data and the first step advance drainage pipe network pipe particle deposition prediction output data to predict the second step advance drainage pipe network pipe particle deposition prediction output data; Step 2.5.3, for i ( ) advanced drainage pipe network particle deposition prediction model is trained, using the drainage pipe network particle deposition prediction input data and the previous i -1 step ahead of the prediction output data of the particle deposition in the drainage network to obtain the first i Step ahead to predict the output data of particle deposition in the drainage network; Step 2.5.4, summarize the m-step drainage network pipe particle deposition prediction output data obtained in steps 2.5.1-2.5.3 to obtain the m-step advanced drainage network pipe particle deposition prediction data.
8. The method for predicting particle deposition in a drainage network based on a long short-term memory step sequence according to claim 4 is characterized in that: The step 3.1 is specifically as follows: Step 3.1.1, determine the dimensions of each LSTM network unit. Each network unit contains 5 dimensions, including: volume sand content of the sedimentary bed under non-sedimentary conditions , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient ; Step 3.1.2, normalize the five-dimensional input data of each LSTM network unit. All input data are normalized using the z-score normalization method; Step 3.1.3, set the hidden state length of each LSTM network unit to 32, set the push rate to 0.1 to avoid overfitting, set the learning rate to 0.001, set the number of samples per batch to 256, and use the root mean square error MSE as the loss function; Step 3.1.4, select k real observation data of particulate matter deposition in the drainage network to train the proposed step prediction framework of particulate matter deposition sequence in the drainage network, obtain k NSE values through k training times, and select the hyperparameter set that produces the highest NSE median value among all hyperparameter combinations as the hyperparameters of the step prediction framework of particulate matter deposition sequence in the drainage network.
9. The method for predicting particle deposition in a drainage network based on a long short-term memory step sequence according to claim 5, characterized in that: The step 4.1 is specifically as follows: Step 4.1.1, a long short-term memory network is used to construct a double-layer drainage pipe network particle deposition sequence prediction framework, which contains two encoder sequences, a state vector and a decoder sequence. The first decoder sequence has a long short-term memory network unit, and its input includes the volume sand content of the sediment bed under non-deposition conditions. , dimensionless particle diameter , median particle size of sediment , hydraulic radius and pipe friction coefficient ; The second decoder sequence has long short-term memory network units, and its input data is the observation data of particle deposition in the drainage network pipes; the state vector contains the compressed and processed information of the inputs from these two encoder sequences; The decoder sequence has m LSTM network units, and the output is the m-step-ahead prediction of particle deposition in the sewer network; In step 4.1.2, the actual data of particle deposition in the drainage pipe networks of k cities are used to train the particle deposition sequence prediction framework in the double-layer drainage pipe network. K NSE values are obtained through k training times, and the hyperparameter set that produces the highest NSE median value among all hyperparameter combinations is selected as the hyperparameter of the particle deposition sequence prediction framework in the double-layer drainage pipe network.
10. The method for predicting particle deposition in a drainage network based on a long short-term memory step sequence according to claim 5, characterized in that: The step 4.2 is specifically as follows: Step 4.2.1, select The actual observation data of particle deposition in the drainage pipe network of each city were input into the step prediction framework of particle deposition sequence in the drainage pipe network and the double-layer drainage pipe network prediction framework to obtain the prediction data of particle deposition in the drainage pipe network. Step 4.2.2, after obtaining the prediction data of particle deposition in the drainage network, the consistency index, mean absolute error, root mean square error, Coefficient of determination and Adjustment coefficients are used, and the prediction performance of the particle deposition sequence step prediction framework in the drainage network and the particle deposition prediction framework in the double-layer drainage network are compared and evaluated based on these indicators.
Citation Information
Patent Citations
Method for predicting distribution and ratio of sedimentary particles
CN106959261A
Power plant coal storage capacity short-term prediction method based on SSA and LSTM deep learning
CN110390436A
Method, system and equipment for predicting total wax deposition amount of mixed transportation pipeline and medium
CN116306200A
Short-term wind power prediction method based on PSO-CNN-BILSTM
CN116646929A
Foreign exchange time series prediction method
WO2021082811A1
