Pipe burst event positioning method based on pipe network hydraulic state fusion data set

By fusing the hydraulic characteristics of the pipeline network and the user's water fluctuation information, a pipeline network hydraulic state fusion data set is generated, and a deep learning model is trained using the EVO-LSTM algorithm framework, the problem of low prediction accuracy of the explosive positioning method in the existing technology is solved. , achieving higher recognition and positioning accuracy.

CN118896263AActive Publication Date: 2024-11-05TIANJIN UNIV

Patent Information

Application Number
CN202411118218.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-05
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

The existing pipe burst positioning method has low prediction accuracy and cannot effectively reflect the impact of residents' water fluctuations on the pressure of pipeline networks. The number of pipe burst accident samples in the training data is small, resulting in overfitting and poor prediction effect.

Method used

Using a method based on the hydraulic state fusion dataset of the pipeline network, the hydraulic characteristics of the pipeline network and the user's water fluctuation information are fused to generate the hydraulic state fusion dataset of the pipeline network, and the deep learning model is trained using the EVO-LSTM algorithm framework to optimize the hyperparameters of the LSTM model. Improve the accuracy of identification and positioning of explosive incidents.

Benefits of technology

It improves the recognition accuracy and positioning accuracy of the explosion tube incident, maintains a stable accuracy under different operating conditions, reduces the influence of manual hyperparameter setting, and enhances the practicality of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118896263A_ABST
    Figure CN118896263A_ABST
Patent Text Reader

Abstract

The invention discloses a pipe burst event positioning method based on a pipe network hydraulic state fusion data set, and the method comprises the steps: collecting, classifying and sorting pipe network monitoring data, and constructing a water supply pipe network hydraulic model; secondly, generating pipe explosion simulation pressure data, and fusing the pipe explosion simulation pressure data with the pipe network monitoring pressure data by taking pressure drop as a medium to form a pipe network hydraulic state fusion data set; on the basis, an EVO-LSTM-based pipe explosion event identification and positioning model is constructed. And finally, inputting real-time monitoring data into the model to obtain pipe network working condition judgment and an area positioning result under a pipe explosion working condition. According to the method, the hydraulic characteristics of the pipe network and the long-term water consumption rule of the user are combined through the hydraulic state fusion data set, and the sample quality is improved while training set samples are expanded. And meanwhile, hyper-parameters of the LSTM model are optimized by using an EVO optimization algorithm, and a choice with higher accuracy and higher practicability is provided for identification and positioning of the pipe explosion event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for locating a pipe burst event, and in particular to a method for locating a pipe burst event based on a fusion data set of a pipe network hydraulic state. Background Art

[0002] The water supply network is an indispensable infrastructure for modern cities. However, the water supply system has a long lifespan. Long-term operation can easily lead to problems such as pipe aging and pipe bursts, which brings high costs to the maintenance of the network. Traditionally, pipe burst identification and location are carried out manually, through citizen reports and manual inspections to screen and locate pipe burst points throughout the network. However, due to the large area of ​​the water supply network, manual screening is inefficient. With the development of computer and Internet of Things technology, the cost of pipe network monitoring equipment has been reduced and the accuracy has been improved, which makes it possible to arrange monitoring points over a large area and locate pipe burst points by analyzing monitoring data. Among the many detection data, pressure monitoring data has been widely used in pipe burst location analysis as the easier to obtain monitoring data in the pipe network.

[0003] At present, many methods for locating pipe burst points through pressure data have emerged both at home and abroad. These methods can be mainly divided into two categories: simulation data analysis method and monitoring data analysis method.

[0004] The simulation data analysis method screens historical data within a certain operation cycle, and builds a hydraulic model of the pipeline network based on this data and the hydraulic characteristics of the pipeline network, and then uses the hydraulic model to simulate and generate a large number of pipe burst accident pressure data samples, and then uses mathematical methods to analyze the data samples to finally locate the pipe burst event. Although this type of method has a large number of simulated pipe burst data samples, due to the limitations of hydraulic model simulation, it cannot reflect the impact of residential water consumption fluctuations on pipeline network pressure during long-term operation of the pipeline network, so that its prediction accuracy is poor in practical applications.

[0005] The monitoring data analysis method directly uses all historical pressure data collected from the pipeline monitoring points for analysis, and uses the pre-processed pressure data for the training of mathematical methods such as machine learning or deep learning models, and then uses the mathematical model to identify and locate pipe burst events. However, since pipe burst accidents in pipeline networks are low-probability events, the sample size of pipe burst accidents in the monitoring data is relatively small, and overfitting often occurs when training mathematical models, resulting in poor prediction results. Summary of the invention

[0006] In response to the above-mentioned prior art, the present invention provides a method for locating pipe burst events based on a fusion data set of pipe network hydraulic state, which integrates large-scale pipe burst accident simulation data with pipe network hydraulic state characteristics and pipe network monitoring data with users' long-term water usage fluctuation information. The formed pipe network hydraulic state fusion data set is used for training an artificial intelligence model, thereby generating a mathematical model with higher accuracy, thereby achieving more accurate pipe burst identification and positioning.

[0007] In order to solve the problems of low prediction accuracy and poor adaptability to changes in user water usage patterns in the existing pipe burst location methods, the present invention proposes a pipe burst event location method based on a pipe network hydraulic state fusion data set, comprising the following steps:

[0008] Step 1: Collect water supply network monitoring data, including user water consumption monitoring data, water plant pump station monitoring data and monitoring point pressure monitoring data in the network, select low, medium and high daily network monitoring data of each quarter according to the daily water consumption, and obtain a sample set of network monitoring data after classification and sorting; collect water supply network GIS data; import water supply network monitoring data and water supply network GIS data into EPANET software to build a hydraulic model of the water supply network;

[0009] Step 2, generate pipe burst simulation data, and use pressure drop as a medium to superimpose the pipe burst simulation data with the actual monitoring data to construct a pipe network hydraulic state fusion data set, including: according to the thin-wall large orifice outflow principle, use EPANET software to add the model node ejector coefficient to simulate the pipe burst event, use the dynamic link library of EPANET software to traverse the pipe burst events of all nodes, generate a large number of pipe burst event simulation data samples, and use the pipe burst season s', water flow degree q', pipe burst time t', pipe burst degree n and pipe burst node number j as labels for classification; subtract the normal operating condition simulation pressure data of the monitoring point after adding the ejector coefficient from the pipe burst event simulation pressure data of the monitoring point to obtain the corresponding pressure drop data sample set; fuse the pipe network monitoring data sample set with the pressure drop data sample set to obtain the final pipe network hydraulic state fusion data set that has both the user water use time series law and pipe burst characteristics;

[0010] Step 3, construct the EVO-LSTM algorithm framework, and obtain the pipe burst event recognition and positioning model based on EVO-LSTM after training: the EVO-LSTM algorithm framework is obtained by coupling the energy valley optimization EVO algorithm on the basis of the long short-term memory network LSTM deep learning model, which includes the input layer, LSTM layer, fully connected layer, softmax layer and classification layer. The energy valley optimization EVO algorithm is used to optimize the hyperparameters in the LSTM layer; the pipe burst recognition model and the pipe burst positioning model share the EVO-LSTM algorithm framework, and constitute a pipe burst event recognition and positioning model based on EVO-LSTM;

[0011] The input of the pipe burst identification model is the pressure monitoring data of the monitoring point obtained by real-time monitoring, and the output of the pipe burst identification model is the binary classification label of the pipe burst condition and the normal condition, wherein the pipe burst condition label is 1 and the normal condition label is 2; the pipe burst status in the pipe network is judged by the pipe burst identification model; in the pipe burst location model, the softmax layer loss function is set to the cross entropy between the predicted classification probability and the actual classification probability, and the expression is as follows:

[0012]

[0013] Where, J is the number of pipe burst nodes in the pipe burst event; y i is the probability of the actual classification; s i is the probability of predicting the classification; η i It indicates the score corresponding to the i-th classification result output after the input data is calculated by the LSTM layer and the fully connected layer;

[0014] The pipe burst location model is only started when the pipe burst identification model outputs a label corresponding to the pipe burst condition. The input of the pipe burst location model is the pressure monitoring data of the monitoring point obtained by real-time monitoring, and the output of the pipe burst location model is the unique thermal value classification label of the top 50 pipe burst points in the model prediction score. According to the different requirements of pipe burst identification and pipe burst location work for the training set, the feature matrix composed of the pipeline network hydraulic state fusion data set in step 2-3) and the monitoring point pressure monitoring data set in the monitoring data sample set in step 1 is labeled accordingly and input into the pipe burst identification model together, and the feature matrix composed of the pipeline network hydraulic state fusion data set is labeled accordingly and input into the pipe burst location model separately, which is recorded as the pipe burst event identification and location model based on EVO-LSTM.

[0015] Step 4, regional positioning of the pipe burst point prediction results: the pressure monitoring data of the monitoring point obtained by real-time monitoring is used as the input of the pipe burst event identification and positioning model based on EVO-LSTM, and the pipe burst prediction TOP50 node set is determined according to the output of the pipe burst positioning model; finally, the circular positioning area is obtained according to the position coordinates of the nodes in the TOP-50 node set and their output probability in the softmax layer of the pipe burst positioning model. The center of the positioning area is the weighted center of the output probability, and the radius is the weighted average distance from each node to the center.

[0016] Compared with the prior art, the present invention has the following beneficial effects:

[0017] 1. The present invention utilizes the hydraulic and topological characteristics of the pipe network and can generate a large number of pipe burst data samples of different categories using only a small amount of water consumption monitoring data during low, medium and high water consumption periods, thus solving the problem of insufficient actual pipe burst data samples in traditional deep learning training work and making the trained deep learning model more accurate in recognition.

[0018] 2. The present invention adopts a data fusion method to combine the actual monitoring data with the simulation data of pipe burst events in the pipeline network through pressure drop. The generated fusion data set not only has the hydraulic state characteristics of the pipeline network, but also has the long-term water consumption fluctuation law information of water users, so that the training data of the deep learning model is closer to the actual working condition of the pipeline network, and can maintain the same stable accuracy in pipeline network scenarios with different working conditions.

[0019] 3. The present invention identifies pipe burst events based on the EVO-LSTM deep learning algorithm framework, making full use of the time series characteristics of the pipeline pressure data and the advantages of the LSTM model in identifying time series data features, further improving the accuracy of pipe burst event identification. At the same time, the EVO intelligent optimization algorithm is used to optimize the LSTM model hyperparameters, reducing the impact of manually set hyperparameters on pipe burst identification, and further improving the accuracy of model prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A flow chart of a method for locating a pipe burst event according to the present invention;

[0021] Figure 2 It is an overall framework diagram of the pipe burst event positioning method of the present invention;

[0022] Figure 3 Schematic diagram of the hydraulic state fusion data set of the present invention Figure 1 ;

[0023] Figure 4 Schematic diagram of the hydraulic state fusion data set of the present invention Figure 2 ;

[0024] Figure 5 This is a schematic diagram of the structure of the burst pipe identification and positioning model. DETAILED DESCRIPTION

[0025] The design concept of a method for locating pipe burst events based on a pipe network hydraulic state fusion data set proposed in the present invention is: by establishing a hydraulic state fusion data set, the hydraulic characteristics of the pipe network and the long-term water use patterns of users are combined, and the number of training set samples is expanded while the quality of sample information is improved. At the same time, the structure of the traditional LSTM model is optimized by using the EVO optimization algorithm, providing a more accurate and practical option for the identification and positioning of pipe burst events. It mainly includes: first, collecting and sorting pipe network monitoring data samples to build a water supply pipe network hydraulic model; second, generating pipe burst simulation data, and using pressure drop as a medium, merging the pipe burst simulation data with the pipe network monitoring data to establish a pipe network hydraulic state fusion data set; then, constructing a pipe burst event identification and positioning deep learning model with the EVO-LSTM algorithm framework as the core. Finally, the real-time pressure monitoring data of the monitoring point is input into the model to obtain the pipe burst and the TOP-50 node set of the pipe burst event, and regional positioning is performed according to the node set results.

[0026] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but the following embodiments are by no means intended to limit the present invention in any way.

[0027] The main process of the method for locating pipe burst events based on the fusion data set of pipe network hydraulic status proposed in this invention is as follows: Figure 1 As shown, the overall framework is as follows Figure 2 The specific contents are as follows:

[0028] Step 1: Collect pipeline network monitoring data, classify and organize pipeline network monitoring data sample sets;

[0029] The network management monitoring data includes user water consumption data information in the pipe network, water plant pump station information and pressure data information of the water supply pipe network monitoring point. Due to the huge amount of pipe network monitoring data collected, in order to more accurately describe the characteristics of the data and facilitate the selection of data, this method further classifies the operation and maintenance data.

[0030] 1) Integrate various types of pipe network monitoring data into a pipe network monitoring data sample set with daily samples;

[0031] 2) In order to describe the seasonal changes in users’ water use patterns, according to the climate characteristics of the area where the water supply network is located, the collected data samples in units of days are divided into four seasonal sample sets according to the season s, denoted as S s (The subscript s represents the corresponding season);

[0032] 3) Calculate the total daily water consumption data of the water plant in the seasonal sample set, and further calculate the average value of the daily total water consumption data based on statistical principles and mean square error σ 总 ;

[0033] 4) Select As the demarcation threshold of the high-day, average-day, and low-day water consumption sample sets, the seasonal sample set is further divided into three subdivided sample sets with low, medium, and high water consumption levels, denoted by S sq (The subscript q represents the corresponding water consumption level).

[0034] Step 2: Import the pipe network GIS data and pipe network monitoring data sample set into EPANET software to build a hydraulic model of the water supply pipe network, which specifically includes the following steps.

[0035] 1) Collect GIS information of water supply network, import the geographical structure information of water supply network into EPANET software, and establish the topological structure of water supply network.

[0036] 2) In the pipeline monitoring data sample set, representative daily sample data from 12 subdivided sample sets with three water consumption levels of medium, low, medium and high in four quarters were selected respectively and imported into the hydraulic model, and the pipeline hydraulic model of 12 representative days was preliminarily established using the flow-driven method.

[0037] The specific selection principle of the representative daily sample data is as follows: Based on the segmented sample set established in the first step, select the sample data with the median daily total water consumption of users in each segmented sample set as the segmented sample set S sq Representative daily sample data S' sq , imported into the hydraulic model of the water supply network as the driving data of the model.

[0038] Among them, the representative day sample data information specifically includes the representative day user water consumption monitoring data, water plant pump station monitoring data and monitoring point pressure monitoring data.

[0039] 3) Select the corresponding pressure data information of the monitoring points of the water supply network in Japan and China to calibrate the preliminary hydraulic model and further improve the simulation accuracy of the hydraulic model.

[0040] The third step is to generate pipe burst simulation data and fuse the pipe burst simulation data with the pipe network monitoring data using pressure drop as the medium to establish a pipe network hydraulic state fusion data set. The specific steps include the following steps

[0041] 1) Pipe burst event simulation

[0042] After establishing a relatively accurate hydraulic model of the water supply network, the method of the present invention uses the dynamic link library of EPANET software to traverse the pipe burst events of all nodes, and uses the method of adding model node injection coefficients to simulate the pipe burst events. The specific node injection coefficient C p The calculation method of its corresponding injection flow rate is shown in the following formula:

[0043] c c =0.63+0.37n 2

[0044]

[0045] Where: C c is the contraction coefficient of the orifice, which can be calculated by empirical formula in the event of pipe burst; n is the ratio of the cross-sectional area of ​​the pipe to the area of ​​the ruptured orifice, which is used to indicate the degree of pipe rupture, and the value of n is 0-1.0; Cq is the flow coefficient, which indicates the reduction coefficient of the actual flow relative to the ideal flow without resistance; ζ is the resistance coefficient, which is 0.06; A is the cross-sectional area of ​​the pipe; g is the acceleration of gravity; H is the pressure head at the node when the pipe burst occurs, which is obtained by simulation calculation of EPANET software; γ is the pressure index, which is 0.5;

[0046] The calculated node injector coefficient C p Importing the hydraulic model of the water supply network in the EPANET software can simulate pipe burst events with different proportions n and rupture degrees, obtain the pressure data of all nodes in the pipe network after all simulated different pipe burst events occur, form a pipe burst event simulation data sample set, select the pressure data of the nodes corresponding to the pipe network monitoring points, and make labels according to the conditions for simulating and generating the pressure data according to the pipe burst season s', water flow degree q', pipe burst time t', pipe burst degree n and pipe burst node number j, to form a pipe burst event simulation pressure data set for the monitoring point;

[0047] The simulated pressure data of the pipe burst event at the monitoring point after adding the ejector coefficient is subtracted from the simulated pressure data of the normal working condition at the monitoring point without adding the ejector coefficient to obtain the corresponding pressure drop data sample set; the pipe network monitoring data sample set is fused with the pressure drop data sample set to obtain the final pipe network hydraulic state fusion data set that has both the user water use time series law and the pipe burst characteristics. The construction process of the hydraulic state fusion data set is as follows: Figure 3 and Figure 4 shown.

[0048] 2) Classification of pipe burst events

[0049] In order to facilitate the rapid retrieval of pipe burst events in the subsequent data fusion work, each pipe burst event is distinguished by five dimensions of information, namely, pipe burst season s', water flow rate q', pipe burst time t', pipe burst degree n, and pipe burst node number j, forming a pipe burst event segmentation sample set S s'q't'n j .

[0050] Among them, pipe burst season s' is the season of the subdivided sample set corresponding to the representative daily data used by the hydraulic model to generate the simulation data; q' is the water consumption level of the subdivided sample set corresponding to the representative daily data used by the hydraulic model to generate the simulation data; pipe burst time t' is the time when the simulated pipe burst event occurs; pipe burst node number j is the number of the node where the pipe burst event occurs, and pipe burst degree n is the degree of pipeline rupture, which is used to test the model's recognition effect on pipe burst events of different degrees in the pipeline network.

[0051] 3) Establish a pressure drop sample set

[0052] The pressure data of the normal working condition simulation without adding the ejector coefficient is subtracted from the pressure data of the pipe burst working condition simulation after adding the ejector coefficient to obtain the corresponding pressure drop data sample set LS s'q't'n j .

[0053] The fourth step is to construct a fusion data sample set of pipe burst events.

[0054] According to different pipe burst degrees, the monitoring data is subdivided into sample sets S sq The samples at time t in each quarter s and water consumption level q are subtracted from the pressure drop data samples LS of pipe burst events at different levels n and pipe burst node j in the corresponding quarter and water consumption level. s’t’nj , and finally obtain the pipe burst event fusion data sample MS that combines the user's water use time series law and pipe burst characteristics stnj .

[0055] The fifth step is to construct the training set and test set feature matrices and corresponding labels for the burst pipe identification model and the burst pipe location model respectively.

[0056] 1) Construct the input feature matrix and corresponding output labels of the burst pipe recognition model.

[0057] The input feature matrix specifically includes two parts: the first is the data feature of the pipe burst condition, which is composed of the feature vector composed of the pressure values ​​at all pressure monitoring points at each moment in the pipeline network hydraulic state fusion data set; the second is the data feature of the normal condition, which is composed of the feature vector composed of the pressure values ​​collected at the pipeline network monitoring points at each moment in the pipeline network monitoring data sample set. Output labels are set for the pipe burst condition and the normal condition respectively, where 1 represents the pipe burst condition and 0 represents the normal condition.

[0058] 2) Construct the input feature matrix and corresponding output labels of the burst pipe location model.

[0059] The input feature matrix is ​​composed of the pipe burst event fusion sample set MS stnj The characteristic vector of the pressure values ​​at all pressure monitoring points at each moment in the output label is the classification code corresponding to the burst node number j, and the classification code is encoded using a unique hot code Y j express.

[0060] Among them, one-hot encoding is also called one-bit effective encoding. Its method is to use N-bit state register to encode N states, and each state has its own independent register bit. In the method of the present invention, one-hot encoding is used to classify pipe burst events occurring at different nodes. stnj There are a total of J nodes in the pipeline burst event, and J-dimensional vectors are used to distinguish them independently. For the fusion sample set MS stnj The pipe burst event occurred at the jth node in the corresponding one-hot encoding Y j The value of the jth dimension is 1, and the values ​​of the other dimensions are zero, that is: j =(0,0,…,y j ,…,0,0) T ,y j =1.

[0061] 3) Divide the input and output matrices of the training set and the test set. In order to adapt the model to the randomness of the data and identify the periodic characteristics of user water use, the feature vectors in the input and output matrices are randomly divided into the training set and the test set in a ratio of 7:3 on a daily basis (if there are feature vectors at T moments in a day, they are randomly allocated in units of T moments).

[0062] Step 6: Build the Energy Valley Algorithm Optimized Long Short-Term Memory Network (EVO-LSTM) algorithm framework

[0063] In the method of the present invention, the Energy Valley intelligent optimization algorithm is used to optimize the three hyperparameters of the number of iterations, the initial learning rate, and the number of LSTM hidden layer neurons in the long short-term memory network model, thereby reducing the negative impact of artificially selected hyperparameters on the classification effect of the LSTM model, and then constructing the EVO-LSTM algorithm framework.

[0064] Among them, the EVO-LSTM algorithm framework includes input layer, LSTM layer, fully connected layer, softmax layer and classification layer in sequence, and uses the energy valley optimization algorithm to optimize the hyperparameters in the LSTM layer.

[0065] Among them, the softmax layer loss function of the EVO-LSTM framework of the burst pipe positioning model is set to the cross entropy (Binary Cross Entropy, BCE) between the predicted classification probability and the actual classification probability, and the expression is as follows:

[0066]

[0067] Where, J is the number of pipe burst nodes in the pipe burst event; y i is the probability of the actual classification; s iTo predict the probability of classification, its expression is:

[0068]

[0069] In the formula, s i Represents the probability corresponding to the i-th classification result; η i It indicates the score corresponding to the i-th classification result output after the input data is calculated by the LSTM layer and the fully connected layer.

[0070] Among them, the Energy Valley Optimizer (EVO) algorithm is a novel meta-heuristic algorithm proposed by Mahdi Azizi et al. with few artificial constraints and fast convergence speed. Its design concept is derived from the physical principles of stability and different particle decay modes. The specific optimization process is as follows:

[0071] 1) Initialize the algorithm. Based on the physical principle of particle decay, the algorithm assumes that the search space for solutions is the universe, and the candidate solution (X1) is assumed to be particles with different stability levels in the universe (i.e., the search space for solutions) for optimization. The specific formula is as follows:

[0072]

[0073] Where n is the total number of particles (candidate solutions) in the universe (search space for solutions); d is the dimension of the optimization problem; is the initial spatial position corresponding to the j-dimensional variable of the i-th candidate solution; represents the upper bound of the j-th dimension variable of the i-th candidate solution; represents the lower bound of the j-th dimension variable of the ith candidate solution; rand is a random number uniformly distributed in the range of [0, 1]. In the method of the present invention, the variables of each dimension of each candidate solution particle correspond to the hyperparameters to be optimized in the LSTM model, and the upper and lower bounds of the variables of each dimension of the candidate solution particles of the energy valley intelligent optimization algorithm are set on this basis.

[0074] 2) Calculate the objective function. In order to describe the difference between neutron-rich particles and neutron-poor particles, the concept of particle enrichment bound (EB) is introduced. The value of the objective function corresponding to each solution particle is calculated as the neutron enrichment level (NEL) of the particle and the particle enrichment bound (EB) is calculated by the following formula:

[0075]

[0076] Where NEL iis the neutron enrichment level (NEL) of the ith particle. In the method of the present invention, they are the mean absolute error between the output results of the softmax layer of the recognition and positioning models and the true value, respectively. EB is the enrichment bound of particles in the universe.

[0077] 3) Calculate the stability level (SL) of the particles. The specific definition formula is as follows:

[0078]

[0079] In the formula, SL i is the stability level of the ith particle. The higher the stability level, the lower the stability of the particle. BS and WS represent the particles with the best and worst stability levels in the universe, respectively, and their values ​​are equal to the minimum and maximum values ​​of the loss function among the particles found so far.

[0080] During the main search loop of EVO, if the neutron enrichment level of a particle is above the neutron enrichment limit (NEL i >EB), it means that the particle has a high stability level (SL). According to the relevant physical principles, the particle will decay into alpha, beta and gamma. For this type of candidate solution, the following update scheme will be adopted:

[0081] First, a random number is generated between [0,1] to simulate the stability bound (SB) in the universe. If the stability level of the particle SL i Below the stability limit SB(SL i <SB), the particle is considered to be more stable, and two generations of alpha decay and gamma decay will occur to generate two new candidate solution particles with a lower spatial position span:

[0082] a) Alpha decay update. In this case, an alpha decay update will occur first. The program first generates a random integer Alpha Index I in the range [1, d] as the number of alpha rays generated during the decay process, and generates a random integer array Alpha Index II of Alpha Index I dimension to determine the variable dimension number of the candidate particle to replace the ray. The variable value of the dimension corresponding to the integer array Alpha Index II number in the candidate solution is replaced with the optimal solution so far (X BS ) is used as the new candidate solution particle generated by this update, thereby completing an alpha decay update. Its mathematical expression is as follows:

[0083]

[0084] In the formula, is the candidate particle newly generated after alpha decay; X i is the solution vector corresponding to the current candidate solution particle; X BS It is the solution vector with the best stability, that is, the lowest loss function value NEL; It is the dimension that emits alpha rays, that is, the dimension that performs updates and replacements.

[0085] b) Gamma decay update. After the first generation of alpha decay update is completed, a gamma decay update will continue. The program first generates a random integer Gamma Index I in the range [1, d] as the number of gamma rays generated during the decay process, and generates a random integer array Gamma Index II of Gamma Index I dimension to determine the variable dimension number of the candidate particle for ray replacement. The variable value of the dimension corresponding to the integer array Gamma Index II number in the candidate solution is replaced with the mean vector (X NG ) is used as the new candidate solution particle generated by this update, thereby completing a gamma decay update. Its mathematical expression is as follows:

[0086]

[0087] In the formula, is a candidate particle newly generated after gamma decay; X i is the solution vector corresponding to the current candidate solution particle; X Ng is the mean vector of random solution particles near the candidate particle in Euclidean space; It is the dimension that emits gamma rays, that is, the dimension that performs updates and replacements.

[0088] If the particle stability level SL i Above the stability limit SB(SL i >SB), the particle is considered to have a low stability level and two generations of beta decays of different types will occur, causing the solution particles to perform large-span controlled motion toward the candidate particles with the best stability level and the position of the particle center when updating.

[0089] Among them, the mathematical expression of the first-generation beta decay process is as follows:

[0090]

[0091] In the formula, and X i are the first generation updated position and current position of the i-th candidate solution particle in the search space; X CP is the position vector of the particle center; SL iis the stability level of the i-th particle; r1 and r2 are two random numbers between [0, 1], which determine the movement amount of the particle.

[0092] The mathematical expression of the second-generation beta decay process is as follows:

[0093]

[0094] In the formula, and X i are the first-generation updated position and the current position of the i-th candidate solution particle in the search space respectively; X BS is the solution vector with the optimal stability, that is, the lowest loss function value NEL; X Ng is the mean vector of several solution particles near the candidate particle in the Euclidean space; r3 and r4 are two random numbers between [0, 1], which determine the movement amount of the particle.

[0095] In the main search loop of EVO, if the neutron enrichment level of the particle is lower than the neutron enrichment boundary (NEL i < EB), it means that the particle has a higher stability. At this time, the particle tends to move towards the stable band by capturing electrons or emitting positrons. The mathematical expression of this process is as follows:

[0096]

[0097] In the formula, and X i are the first-generation updated position and the current position of the i-th candidate solution particle in the search space respectively; r is a random number between [0, 1], which determines the movement amount of the particle.

[0098] Among them, the objective function of the EVO intelligent optimization algorithm in the EVO-LSTM burst pipe positioning model - the neutron enrichment level (Neutron Enrichment Level, NEL) is set to the mean absolute error (MAE) of the test set loss function value. The calculation formula of the objective function is as follows:

[0099]

[0100] In the formula, NEL i represents the objective function value of the model trained by the j-th group of hyperparameters; m represents the number of test set samples; Loss i represents the loss function value when the model predicts the i-th test sample.

[0101] Step 7: Based on the EVO-LSTM algorithm framework, train the burst pipe recognition and positioning model to generate the positioning area of the burst pipe event.

[0102] 1) Initialize the basic parameters of each structural layer in the EVO-LSTM model. Since the water consumption of users has a daily cycle, the number of neurons in the input layer and the fully connected layer is set to the number of time t collected by the monitoring point in a day. The loss function of the softmax layer uses the cross entropy (BCE) between the predicted classification probability and the actual classification probability, and the optimizer uses the adaptive moment estimation (Adam). The maximum number of iterations is set to 20 times.

[0103] 2) Initialize the energy valley optimization algorithm in the EVO-LSTM model. In the method of the present invention, the energy valley algorithm is used to optimize the number of iterations, initial learning rate and number of hidden layer neurons of the LSTM model, and the threshold ranges of the above three hyperparameters are set as shown in the following table. The dimension of the optimization variable is set to 3, the initial number of candidate particles of the energy valley algorithm is 20, and the maximum number of receptions of the optimization algorithm is 50 generations.

[0104] Hyperparameter Name Iterations / times Initial learning rate Number of neurons in the hidden layer Threshold 10-50 0.01-0.15 10-500

[0105] 3) Use the energy valley optimization algorithm to optimize the burst pipe identification and positioning model respectively to obtain a pre-trained burst pipe identification and positioning model.

[0106] Among them, the structure of the burst pipe identification and positioning model is as follows: Figure 5 As shown in the figure, it includes two parts: the identification model and the positioning model. Both the identification model and the positioning model are based on the EVO-LSTM algorithm architecture. The difference is that the input of the identification model is the normal working condition data and the pipe burst condition data, and the output is the model score of the normal working condition (0) and the pipe burst condition (1). The classification result takes the maximum model score, while the input of the positioning model is only the pipe burst condition data, and the output is the model score of the node where the pipe burst event occurs. The nodes with the top 50 model scores are taken to form the TOP-50 node set of the pipe burst event.

[0107] 4) Carry out real-time early warning of monitoring data, input the single-moment monitoring point data monitored in real time into the pre-trained pipe burst identification and positioning model. When the recognition model identifies the pipe burst event, the positioning model starts to further locate the pipe burst node and output the TOP-50 node set of the pipe burst event.

[0108] 5) Based on the TOP-50 node set of pipe burst events, generate the pipe burst event location area.

[0109] The pipe burst event location area is a circular area, the center of which is the weighted average coordinate obtained by summing the node coordinates in the TOP-50 node set multiplied by the output probability of the corresponding model softmax layer, and the area radius is the weighted average radius obtained by multiplying the distance from each node to the center of the area by the output probability of the corresponding model softmax layer. The calculation formula is as follows:

[0110]

[0111] In the formula, X is the horizontal coordinate of the center of the positioning area; i is the horizontal coordinate of the ith node; P i is the softmax layer output probability of the i-th node; Y is the vertical coordinate of the center of the positioning area; i is the ordinate R of the i-th node O is the radius of the positioning area; D iO is the distance between the i-th node and the center of the circle;

[0112] Although the present invention has been described above in conjunction with the accompanying drawings, the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can make many improvements and changes without departing from the purpose of the present invention, which are all within the protection of the present invention.

Claims

1. A method for locating pipe burst events based on a fusion data set of pipe network hydraulic status, characterized in that: The following steps are involved: Step 1: Collect water supply network monitoring data, including user water consumption monitoring data, water plant pump station monitoring data and monitoring point pressure monitoring data in the network, select low, medium and high daily network monitoring data of each quarter according to the daily water consumption, and obtain a sample set of network monitoring data after classification and sorting; collect water supply network GIS data; import water supply network monitoring data and water supply network GIS data into EPANET software to build a hydraulic model of the water supply network; Step 2: Generate pipe burst simulation data, and use pressure drop as a medium to superimpose the pipe burst simulation data with the actual monitoring data to construct a fusion data set of the hydraulic state of the pipe network, including: 2-1) Based on the thin-wall large orifice outflow principle, EPANET software was used to add the model node ejector coefficient to simulate pipe burst events. The dynamic link library of EPANET software was used to traverse the pipe burst events of all nodes, generate a large number of pipe burst event simulation data samples, and classify them with pipe burst season s', water flow rate q', pipe burst time t', pipe burst degree n and pipe burst node number j as labels; 2-2) Subtract the simulated pressure data of the pipe burst event at the monitoring point after adding the injector coefficient from the normal operating condition simulated pressure data of the monitoring point calculated by EPANET software without adding the injector coefficient, calculate the pressure drop value of the monitoring point after different pipe burst events, and obtain the corresponding pressure drop data sample set; 2-3) Subtract the pressure monitoring data of the monitoring points in the monitoring data sample set in step 1 from the corresponding pressure drop value of the monitoring point calculated in step 2-2) to obtain the pressure data of the pipe burst event after hydraulic state fusion, and construct a pipe network hydraulic state fusion data set that combines the user water use time sequence law and pipe burst characteristics; Step 3: Build the EVO-LSTM algorithm framework and obtain the pipe burst event recognition and positioning model based on EVO-LSTM after training: The EVO-LSTM algorithm framework is based on the long short-term memory network LSTM Based on the deep learning model, the EVO algorithm is optimized by coupling the energy valley; the pipe burst event identification and positioning model based on EVO-LSTM includes a pipe burst identification model and a pipe burst positioning model; the pipe burst identification model and the pipe burst positioning model share the EVO-LSTM algorithm framework; The EVO-LSTM algorithm framework includes an input layer, an LSTM layer, a fully connected layer, a softmax layer, and a classification layer. The energy valley optimization EVO algorithm is used to optimize the hyperparameters in the LSTM layer. The input of the pipe burst identification model is the pressure monitoring data of the monitoring point obtained by real-time monitoring, and the output of the pipe burst identification model is a binary classification label of the pipe burst condition and the normal condition, wherein the pipe burst condition label is 1 and the normal condition label is 2; the pipe burst status in the pipe network is judged by the pipe burst identification model; In the pipe burst location model, the softmax layer loss function is set to the cross entropy between the predicted classification probability and the actual classification probability, and the expression is as follows: Where, J is the number of pipe burst nodes in the pipe burst event; y i is the probability of the actual classification; s i is the probability of predicting the classification; η i It indicates the score corresponding to the i-th classification result output after the input data is calculated by the LSTM layer and the fully connected layer; The pipe burst location model is only started when the pipe burst identification model outputs a label corresponding to the pipe burst condition. The input of the pipe burst location model is the pressure monitoring data of the monitoring point obtained by real-time monitoring, and the output of the pipe burst location model is the unique thermal value classification label of the top 50 pipe burst points in the model prediction score. According to the different requirements of pipe burst identification and pipe burst location work for the training set, the feature matrix composed of the pipeline network hydraulic state fusion data set in step 2-3) and the monitoring point pressure monitoring data set in the monitoring data sample set in step 1 is labeled accordingly and input into the pipe burst identification model together, and the feature matrix composed of the pipeline network hydraulic state fusion data set is labeled accordingly and input into the pipe burst location model separately, which is recorded as the pipe burst event identification and location model based on EVO-LSTM. Step 4: Regionally locate the pipe burst point prediction results: The pressure monitoring data of the monitoring points obtained by real-time monitoring is used as the input of the pipe burst event identification and positioning model based on EVO-LSTM. According to the output of the pipe burst positioning model, the TOP50 node set for pipe burst prediction is determined. Finally, the circular positioning area is obtained according to the position coordinates of the nodes in the TOP-50 node set and their output probabilities in the softmax layer of the pipe burst positioning model. The center of the positioning area is the weighted center of the output probability, and the radius is the weighted average distance from each node to the center.

2. The method for locating a pipe burst event according to claim 1, characterized in that: In step 1, the low, medium and high daily pipe network monitoring data of each quarter are screened out according to the daily water consumption, and the pipe network monitoring data sample set is obtained after classification and sorting. The specific contents include: The pipe network monitoring data sample set is in days. According to the climate characteristics of the area where the water supply pipe network is located, the collected data samples in days are divided into four seasonal sample sets according to the season s, denoted as Ss, where the subscript s represents the corresponding season, s = 1, 2, 3, 4; the daily total water consumption data of the water plant in the seasonal sample set is calculated, and the average value of the daily total water consumption data is calculated according to statistical principles and mean square error σ 总 ; Select As the demarcation threshold of high-day, average-day and low-day water consumption sample sets, the seasonal sample set is divided into three subdivided sample sets of low, medium and high water consumption levels, denoted by S sq , where the subscript q represents the corresponding water consumption level, q = low, medium, high.

3. The method for locating a pipe burst event according to claim 2, characterized in that: In step 1, the water supply network monitoring data and water supply network GIS data are imported into EPANET software to construct a water supply network hydraulic model. The basic data used are 12 subdivided sample sets S with three water use levels of low, medium and high in four seasons. sq The representative daily sample data of each subdivided sample set S sq The representative daily sample data is the median total daily water consumption of the user; the representative daily sample data includes the representative daily user water consumption data information, water plant pump station water output and water pressure information.

4. The method for locating a pipe burst event according to claim 1, characterized in that: In the step 2-1), the node injector coefficient C p The calculation method of its corresponding injection flow rate Q is as follows: C c =0.63+0.37n 2 Where: C c is the shrinkage coefficient of the orifice, which can be calculated by empirical formula in the event of pipe burst; n is the ratio of the cross-sectional area of ​​the pipe to the area of ​​the ruptured orifice, which is used to indicate the degree of rupture of the pipe, and the value of n is 0-1.0; C q is the flow coefficient, which indicates the reduction coefficient of the actual flow relative to the ideal flow without resistance; ζ is the resistance coefficient, which is 0.06; A is the cross-sectional area of ​​the pipe; g is the acceleration of gravity; H is the pressure head at the node when the pipe burst occurs, which is obtained by simulation calculation of EPANET software; γ is the pressure index, which is 0.5; The calculated node injector coefficient C p The hydraulic model of the water supply network in the EPANET software can be imported to simulate pipe burst events with different proportions n and rupture degrees. The pressure data of all nodes in the pipe network after all simulated different pipe burst events are obtained to form a sample set of simulated data for pipe burst events. The pressure data of the nodes corresponding to the monitoring points of the pipe network are screened, and labels are made according to the conditions for simulating the generation of the pressure data according to the pipe burst season s', water flow rate q', pipe burst time t', pipe burst degree n and pipe burst node number j to form a simulated pressure data set for the monitoring point.

5. The method for locating a pipe burst event according to claim 1, characterized in that: In step 4, the pipe burst event location area is a circular area, the center of the area is the weighted average coordinate obtained by summing the node coordinates in the TOP-50 node set multiplied by the output probability in the softmax layer of the pipe burst event location model, and the area radius is the weighted average radius obtained by multiplying the distance from each node to the center of the area by the output probability in the softmax layer of the pipe burst event location model, and the calculation formula is as follows: In the formula, X is the horizontal coordinate of the center of the positioning area; i is the horizontal coordinate of the ith node; P i is the softmax layer output probability of the i-th node; Y is the vertical coordinate of the center of the positioning area; i is the ordinate R of the i-th node o is the radius of the positioning area; D io is the distance between the ith node and the center of the circle.

Citation Information

Patent Citations

  • Tube burst locating method based on water supply network pressure change value analysis

    CN108758357A

  • PDD-based urban water supply pipe network pipe explosion early warning and positioning method

    CN111120876A

  • Water supply network pressure monitoring point optimization layout method based on pipe explosion detection benefit

    CN112989535A

  • Water supply network leakage accurate positioning method based on ResNet

    CN113970073A

  • Water supply network anomaly detection method, system and device and storage medium

    CN116108604A

Cited By

  • Urban lifeline pipe network burst prevention system and method based on Internet of Things large model

    CN120799351A