Drainage pipe fault diagnosis and positioning method and system based on hydraulic gradient
By combining LSTM, TCN, and GCN networks in the hydraulic gradient diagnostic method, the problems of low detection efficiency and insufficient positioning accuracy of drainage pipelines are solved, achieving efficient and accurate fault diagnosis and positioning of drainage pipelines.
Patent Information
- Application Number
- CN202611223387.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for detecting drainage pipelines are inefficient and highly subjective. They fail to fully integrate multi-source data and ignore the topological relationships between nodes, resulting in limited global consistency and positioning accuracy of diagnostic results.
A fault diagnosis method for drainage pipes based on hydraulic gradients is adopted. This method combines LSTM and TCN networks to process image and time series data, performs feature fusion through a gating mechanism, and uses GCN network for relational reasoning to construct an undirected graph model to capture the propagation pattern of faults in the pipe network.
It enables efficient and accurate diagnosis and location of drainage pipeline faults, improves detection efficiency and location accuracy, overcomes the shortcomings of insufficient information from a single data source, and significantly improves the robustness and interpretability of the model.
Smart Images

Figure CN123158359A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method and system for diagnosing and locating drainage pipe faults based on hydraulic gradients, belonging to the field of water conservancy pipeline fault diagnosis technology. Background Technology
[0002] Urban underground drainage networks are the "lifeline" for the normal operation of modern cities, and their health directly affects flood control and drainage safety, water environment protection, and the quality of life for the public. However, due to the complex underground environment, pipe aging, and external loads, drainage pipes are prone to structural and functional failures such as rupture, leakage, and blockage. Traditional pipe inspection mainly relies on closed-circuit television robots or manual inspections, which suffer from bottlenecks such as high labor intensity, low inspection efficiency, strong subjectivity, and difficulty in achieving early warning. With the development of Internet of Things (IoT) technology, online monitoring technologies based on acoustic, pressure, and flow sensors are becoming increasingly widespread, providing a data foundation for real-time perception of pipe conditions.
[0003] In recent years, with the development of deep learning technology, intelligent detection methods based on image processing and time-series data analysis have been gradually applied to pipeline defect identification. However, most of these methods process images or time-series data separately, failing to fully integrate multi-source heterogeneous information and neglecting the topological coupling relationships between nodes in the pipeline network. This results in limited global consistency of diagnostic results and limited positioning accuracy.
[0004] In existing technology research, patent CN120162616 A discloses a method for accurately monitoring the operating status of water pump units, diagnosing faults, and generating maintenance strategies by constructing a digital twin model and integrating a multi-dimensional correction algorithm with a dual-channel machine learning model. Its application is to water pump units, and its function is to deeply perceive and predict the trend of equipment status, rather than focusing on rapid fault detection and location. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of existing drainage pipe detection methods, such as low efficiency, strong subjectivity, failure to fully integrate multi-source data and neglect of topological correlation between nodes, and to provide a drainage pipe fault diagnosis and location method and system based on hydraulic gradient.
[0006] The technical solution adopted in this invention is as follows: The method for fault diagnosis and location of drainage pipes based on hydraulic gradient includes the following steps: S1. Collect drainage network data, including drainage pipe images and hydraulic time series data; S2. Input each frame of pipeline image into the pre-trained YOLOv8 model, and select the feature map output by the last stage as the visual feature representation after global average pooling. S3. Input the hydraulic time series data into the LSTM and TCN branches respectively. The LSTM branch models the frequency feature sequence along the time dimension and performs pooling operation on the hidden states of all time steps to obtain the long-term hydraulic fluctuation feature vector. In the TCN network, the original time series is processed through L layers of residual blocks to obtain the local multi-scale hydraulic feature vector. The long-term hydraulic fluctuation feature vector and the local multi-scale hydraulic feature vector are then weighted and fused through a gating network to obtain the time series fusion feature. S4. Calculate dynamic routing weights using hydraulic gradients, and fuse visual features with temporal fusion features based on the weights to obtain comprehensive features; S5. Model the drainage network as an undirected graph, with nodes containing all pipe sections and manhole covers, and edges representing pipe connections. Generate an adjacency matrix based on the actual pipeline layout, using comprehensive features as initial node representations, and input the undirected graph into the GCN network for relation reasoning. S6. Each node's representation is updated iteratively through N GCN layers, ultimately yielding the features. , with final characteristics As input, a probability vector of K types of faults is output through a gating mechanism.
[0007] In the above method, after selecting the pre-trained YOLOv8 model in step S2, the channel attention weights and spatial attention weights are calculated. The two weights are multiplied with the feature map output by the YOLOv8 model and then global average pooling is performed to obtain the visual features.
[0008] The gated network weighted fusion process described in step S3 is as follows: First, the long-term hydraulic fluctuation characteristics and local multi-scale hydraulic characteristics are combined into a joint vector: , The original gated values are generated through a multilayer perceptron or linear layer, and then compressed to the interval (0, 1) using the Sigmoid function: , , in, Gating weight matrix, Gating bias The generated gate mask; Aligning long-term hydraulic fluctuation characteristics and local multi-scale hydraulic characteristics to the same dimension, and performing linear transformations on and respectively: , , in, For the projection matrix, Corresponding bias; Then, the features of the two branches are weighted and combined using the gating vector: , in, For time-series fusion features, The features are those obtained after linear projection; It is a complementary gating system.
[0009] In step S4, the hydraulic gradient is the "power" driving the water flow in the pipe, defined as the head loss per unit distance along the flow direction. The discrete points along the pipe axis are... , for Piezometric head at point, hydraulic gradient curvature for: , Dynamic route weights: , , in, It is dynamic visual weights. It is a dynamic time-series weight. Given the current hydraulic gradient curvature, is the curvature reference value, the average curvature value under fault-free conditions; k is the sensitivity coefficient, and ε is a small constant. The hydraulic gradient curvature, as prior physical knowledge, dynamically scales the comprehensive characteristics. : , in, It is a visual feature. It is a temporal fusion feature. It is dynamic visual weights. It is a dynamic time-series weight.
[0010] The gating mechanism described in step S6 is defined as follows: , in, This indicates the probability of a node experiencing a certain type of failure. If the probability of a node exceeds an empirical threshold, then the node is determined to be a faulty node. For weights, the gate vector Control the pass rate of each dimension of the feature. For gating weights, For gating layer parameters, These are the parameters for the classification layer.
[0011] The drainage pipe fault diagnosis and location system based on hydraulic gradient includes a data collection module, a visual feature extraction module, a long-term hydraulic fluctuation feature extraction module, a local multi-scale hydraulic feature extraction module, a temporal feature fusion module, a dynamic route fusion module, an undirected graph construction module, a GCN network extraction module, and a fault probability acquisition module. The data collection module is used to collect drainage network data, including drainage pipeline images and hydraulic time series data; The visual feature extraction module is used to input each frame of pipeline image into the pre-trained YOLOv8 model, and select the feature map output by the last stage as the visual feature representation after global average pooling. The long-term hydraulic fluctuation feature extraction module is used to input hydraulic time series data into the LSTM network branch, model the frequency feature sequence along the time dimension, and perform pooling operation on the hidden state of all time steps to obtain the long-term hydraulic fluctuation feature vector. The local multi-scale hydraulic feature extraction module is used to input hydraulic time-series data into the TCN branch network, and then... After layering residual blocks, local multi-scale hydraulic feature vectors are obtained; The temporal feature fusion module is used to weightedly fuse long-term hydraulic fluctuation feature vectors and local multi-scale hydraulic feature vectors through a gating network to obtain temporal fusion features. The dynamic routing fusion module uses hydraulic gradient to calculate dynamic routing weights, and then fuses visual features with temporal fusion features based on the weights to obtain comprehensive features. The undirected graph construction module is used to model the drainage network as an undirected graph. Nodes contain all pipe sections and manhole covers, and edges represent pipe connection relationships. An adjacency matrix is generated based on the actual pipeline layout. The GCN network extraction module is used to input an undirected graph into the GCN network for relation reasoning, using comprehensive features as the initial node representation. Each node's representation is updated iteratively through N GCN layers to obtain the final features. The fault probability acquisition module is used to output the probability vector of K types of faults through a gating mechanism.
[0012] The visual feature extraction module also includes an image preprocessing and enhancement module in front of the YOLOv8 model, and a channel attention and spatial attention module after the YOLOv8 model.
[0013] The beneficial effects of this invention are: This invention addresses the complexity of pipeline network faults by constructing a multi-dimensional detection system. It utilizes LSTM to handle the risk of instantaneous, sudden pipeline leaks, TCN to address cumulative blockage faults such as sediment buildup, and GCN to track the spatial impact of upstream blockages propagating downstream. This integrated approach fully reproduces the physical mechanisms of faults from both temporal evolution and spatial topology dimensions, providing a reliable solution for engineering practice.
[0014] This invention innovatively combines the advantages of LSTM and TCN, obtaining robust temporal features through a gated fusion mechanism; simultaneously, it introduces the YOLOv8 target detection network to efficiently extract key fault features from CCTV images. Furthermore, it fuses the "time-image" dual-modal features to construct a more comprehensive full-network feature vector, overcoming the shortcomings of insufficient information from a single data source.
[0015] This invention uses comprehensive features as input to a graph network (GCN), bridging multimodal spatiotemporal feature extraction and relational reasoning. The entire drainage network is modeled as a graph structure, and the GCN performs convolution operations along the pipe connection relationships defined by the adjacency matrix. By aggregating neighbor node information through multiple iterations, the model can capture the propagation patterns of faults in the network and utilize spatial context information to assist in diagnosis, significantly improving the localization accuracy in complex networks.
[0016] This invention introduces an adaptive feature fusion strategy based on a gating mechanism. This strategy constructs a lightweight gating unit that autonomously calculates adaptive weight vectors for each feature dimension, thereby dynamically evaluating the output reliability of LSTM and TCN in that dimension. The model can automatically learn and quantify the confidence levels of the two features in the current context based on the specific characteristics of the input sample, thus replacing the traditional method of manually setting fixed weights. This mechanism not only achieves adaptive calibration and complementary fusion of heterogeneous feature spaces but also effectively avoids subjective biases introduced by manual prior knowledge, significantly improving the robustness of feature representation.
[0017] This invention innovatively introduces "hydraulic gradient" as a physical prior for dynamically scaling multi-feature fusion, so that the contribution weights of vision and time sequence are adaptively allocated according to the state of drainage pipes. This achieves a deep integration of physical laws and data-driven approaches, making the model interpretable, adaptive, and highly accurate. It is particularly suitable for infrastructure diagnosis tasks such as drainage pipes where data is scarce and fault modes are diverse. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating the method of the present invention. Detailed Implementation
[0019] The present invention will be further described below with reference to specific embodiments.
[0020] Example 1: A method for fault diagnosis and location of drainage pipes based on hydraulic gradient, including the following steps (see...) Figure 1 )as follows: S1. Collect drainage network data, including drainage pipe images and hydraulic time series data.
[0021] Input drainage pipe image , where H and W are the image height and width, respectively.
[0022] S2. Input each frame of pipeline image into the pre-trained YOLOv8 model, and select the feature map output from the last stage as the visual feature representation after global average pooling.
[0023] Each frame of the pipeline image is input into a pre-trained YOLOv8 model, and the feature map output from the last stage is selected as the visual feature representation: , in, For the number of channels, These represent the height and width of the feature map, respectively.
[0024] Perform global average pooling (GAP) on the feature map: , Should The vector encodes the spatial information of the current frame. These represent the height and width of the feature map, respectively.
[0025] S3. Input the hydraulic time series data into the LSTM and TCN branches of the network respectively. The LSTM branch models the frequency feature sequence along the time dimension and performs pooling operations on the hidden states of all time steps to obtain the long-term hydraulic fluctuation feature vector; the original time series data in the TCN network is processed... After layering residual blocks, local multi-scale hydraulic feature vectors are obtained; long-term hydraulic fluctuation feature vectors and local multi-scale hydraulic feature vectors are weighted and fused through a gating network to obtain temporal fusion features.
[0026] For hydraulic time series data The inputs are fed into the LSTM and TCN networks respectively. The LSTM branch models the frequency feature sequence along the time dimension, and its core updates the hidden state and cell state through a gating mechanism. , , , , , , in, This is the input for the current time step t. The hidden state of the previous and current time steps is a compressed representation of historical information in the network. This is one of the temporal features we extracted. It represents the cell state at the previous and current time steps and is responsible for transmitting long-term information. These are the activation vectors for the forget gate, input gate, and output gate, respectively. This represents the candidate cell state. This is the weight matrix corresponding to each gating and candidate state. This is the corresponding bias vector. This is the Sigmoid activation function.
[0027] Hidden state for all time steps Pooling operations are performed to obtain long-term hydraulic fluctuation characteristic vectors: , in, Vectors summarize the hydraulic variation trends over a long period of time.
[0028] TCN is an architecture based on dilated causal convolution that can capture local dependencies at different time scales while preserving temporal causality. It transforms the original time series X into a time-frequency graph S and transposes it... Each time step corresponds to an F-dimensional frequency feature. The TCN is composed of L stacked residual blocks, the first of which is... The output of the dilated convolution of the block is: , Where K is the kernel size, The void ratio, For convolution kernel weights, For the first Layer in time Input volume, For bias. After L layers, the output is obtained. After global average pooling, local multi-scale hydraulic feature vectors are obtained. , Depend on It is obtained directly through global pooling and encodes local hydraulic models at different time scales.
[0029] To adaptively fuse temporal features, according to and In the current state, a gating network is introduced to dynamically calculate the weight vectors of the two features and adjust the fusion ratio of the two features.
[0030] First, the features from the two branches are concatenated into a joint vector: , The original gated values are generated through a multilayer perceptron or linear layer, and then compressed to the interval (0, 1) using the Sigmoid function: , , in, For the gated weight matrix, For the gate bias, G is the generated gate mask. Each element in G... The closer to 1, the more important the TCN feature in the corresponding dimension; the closer to 0, the more important the LSTM feature.
[0031] To align the features of the two branches to the same dimension, linear transformations are performed on and respectively: , , in, For the projection matrix, The corresponding bias.
[0032] The features of the two branches are weighted and combined using a gating vector. For numerical stability, a complementary approach is adopted. , in, Temporal fusion features The features are those obtained after linear projection; Complementary gating ensures information complementarity rather than simple superposition. This mechanism allows the network to flexibly decide whether to rely more on the long-term memory information of the LSTM or the multi-scale local patterns of the TCN in each feature dimension, based on the temporal and frequency structure of the current sample. Gated fusion can more effectively utilize the complementarity of the two branches compared to simple splicing of linear mappings.
[0033] S4. Calculate dynamic routing weights using hydraulic gradients, and fuse visual features with temporal fusion features based on the weights to obtain comprehensive features.
[0034] The hydraulic gradient is the "power" driving water flow in a pipe, defined as the head loss per unit distance along the direction of flow. In a healthy pipe system, the hydraulic gradient is a gently sloping line. When a pipe malfunctions, the shape of the gradient changes abruptly.
[0035] When a pipe becomes silted up or blocked, it creates a localized head loss. This causes the hydraulic gradient upstream to become suddenly steep, while downstream it becomes gentler. By calculating the upstream and downstream hydraulic gradients, the location of the blockage can be precisely pinpointed.
[0036] When a pipeline leaks, the pressure drops rapidly, causing an unusual "inflection point" or "sharp drop" in the hydraulic gradient before and after the leak point.
[0037] Discrete points along the pipeline axis are , Let i be the piezometric head, and let the hydraulic gradient curvature be... for: , Dynamic route weights: , , in, For dynamic visual weights, The weights are dynamic time series weights. C represents the current hydraulic gradient curvature. is the curvature reference value, the average curvature value under fault-free conditions; k is the sensitivity coefficient; ε is a small constant to ensure that timing characteristics do not disappear. When There is suspicion of leakage or deformation. Automatically increases; when C is normal, it may be blocked or in a healthy state. reduce, Dominant. The threshold value is set to 0.2.
[0038] The hydraulic gradient curvature, as prior physical knowledge, dynamically scales the comprehensive feature Z: , in, It is a visual feature. It is a temporal fusion feature. It is dynamic visual weights. It is a dynamic time-series weight.
[0039] S5. Model the drainage network as an undirected graph, where nodes contain all pipe sections and manhole covers, and edges represent pipe connections. Generate an adjacency matrix based on the actual pipeline layout, using comprehensive features as initial node representations, and input the undirected graph into the GCN network for relation reasoning.
[0040] When dealing with scenarios involving multiple entities and complex spatial dependencies, the topological relationships between drainage pipe nodes are often overlooked. Introducing a Graph Convolutional Network (GCN) by defining convolution operations on a graph naturally combines node features with topological structure. Each entity's multimodal fusion feature is treated as a node in the graph, and the pipe arrangement relationships between nodes are defined as edges. GCN is then used for relational inference. This not only preserves the richness of single-modal features but also introduces relational induction bias, significantly enhancing the model's expressive power.
[0041] Model the drainage pipe network as an undirected graph. Among them, nodes Includes all pipe sections and manhole covers. E represents the set of edges representing pipe connections. An adjacency matrix A is generated based on the actual pipeline layout. The connection relationships between nodes are defined. This experiment uses a spatial distance-based mapping strategy. , in, It is an adjacency matrix. Let i be the coordinates of the center point of defect i. Let J be the coordinates of the center point of defect j. This is a spatial distance threshold; within the same frame, if the center distance between two defects is less than the threshold... Then, an edge is established to reflect the mutual influence of nearby defects.
[0042] The fused feature matrix Z is used as the initial node representation, and together with the adjacency matrix A, it is input into the GCN for relation inference. To mitigate gradient vanishing and handle sparse connections, a normalized adjacency matrix is used for information propagation. , in, This is the activation function. The adjacency matrix for adding self-joins, where I is the identity matrix. for The degree matrix, diagonal elements . For the first The node representation of the layer, initially . Let be the learnable weight matrix for the l-th layer. This formula enables each node to aggregate the feature information of its neighboring nodes.
[0043] S6. Each node's representation is updated iteratively through N GCN layers, ultimately yielding the features. , with final characteristics As input, a probability vector of K types of faults is output through a gating mechanism.
[0044] Through multi-layer GCN stacking, the features of each node not only include its own visual and temporal information, but also incorporate information from the surrounding topological environment, thereby achieving scene-level contextual understanding.
[0045] Stack N GCN layers, i.e., from and Iteratively update the node representation. Finally, obtain... The features of each node have been integrated with information from its Nth-order neighbors.
[0046] For each node i, with its final characteristic As input, a probability vector of K types of faults is output through a gating mechanism. The gating structure is defined as follows: , in, This indicates the probability of a node experiencing a certain type of failure. If the probability of a node exceeds an empirical threshold, then the node is determined to be a faulty node. For weights, the gate vector Control the pass rate of each dimension of the feature. For gating weights, For gating layer parameters, These are the classification layer parameters. GCN aggregates pipeline topology information, enabling accurate diagnosis of drainage pipeline faults and location of fault nodes.
[0047] Example 2: A drainage pipe fault diagnosis and location system based on hydraulic gradient, including a data collection module, a visual feature extraction module, a long-term hydraulic fluctuation feature extraction module, a local multi-scale hydraulic feature extraction module, a temporal feature fusion module, a dynamic route fusion module, an undirected graph construction module, a GCN network extraction module, and a fault probability acquisition module. The data collection module is used to collect drainage network data, including drainage pipeline images and hydraulic time series data; The visual feature extraction module is used to input each frame of pipeline image into the pre-trained YOLOv8 model, and select the feature map output by the last stage as the visual feature representation after global average pooling. The long-term hydraulic fluctuation feature extraction module is used to input hydraulic time series data into the LSTM network branch, model the frequency feature sequence along the time dimension, and perform pooling operation on the hidden state of all time steps to obtain the long-term hydraulic fluctuation feature vector. The local multi-scale hydraulic feature extraction module is used to input hydraulic time-series data into the TCN branch network, and then... After layering residual blocks, local multi-scale hydraulic feature vectors are obtained; The temporal feature fusion module is used to weightedly fuse long-term hydraulic fluctuation feature vectors and local multi-scale hydraulic feature vectors through a gating network to obtain temporal fusion features. The dynamic routing fusion module uses hydraulic gradient to calculate dynamic routing weights, and then fuses visual features with temporal fusion features based on the weights to obtain comprehensive features. The undirected graph construction module is used to model the drainage network as an undirected graph. Nodes contain all pipe sections and manhole covers, and edges represent pipe connection relationships. An adjacency matrix is generated based on the actual pipeline layout. The GCN network extraction module is used to input an undirected graph into the GCN network for relation reasoning, using comprehensive features as the initial node representation. Each node's representation is updated iteratively through N GCN layers to obtain the final features. The fault probability acquisition module is used to output the probability vector of K types of faults through a gating mechanism.
[0048] The visual feature extraction module can utilize an attention-enhanced visual feature extraction module, adding a dual attention mechanism of channel attention and spatial attention to YOLOv8 to improve the model's ability to perceive minute defects such as pipe wall seams, including: The image preprocessing and enhancement module performs adaptive illumination equalization on the drainage pipe image before inputting it into YOLOv8. It then uses a contrast-limited adaptive histogram equalization (CLAHE) algorithm to enhance the image, resulting in an enhanced image. : , Meanwhile, to improve the model's robustness to different shooting angles of the pipeline, during the training phase... Enhance the effect with random rotation and random cropping.
[0049] The enhanced image is input into YOLOv8, and the output is the feature map. Then it proceeds to the channel attention module and the spatial attention module.
[0050] Channel attention module, for feature maps Global average pooling and global max pooling are performed, followed by summation after passing through a multilayer perceptron, and then the channel attention weights are obtained after sigmoid activation. : , The spatial attention module performs average pooling and max pooling on the channel dimension to obtain two spatial feature maps, which are then concatenated and passed through a convolutional layer and sigmoid activation to obtain the spatial attention weights. : , Apply the two attention weights sequentially to the original feature map: , Finally Perform global average pooling: , Will Alternative to Example 1 The subsequent steps of temporal feature extraction, gating fusion, dynamic routing, and GCN topology inference remain consistent with those in Example 1.
[0051] The above is a further description of the present invention in conjunction with specific embodiments, and the scope of protection of the present invention is not limited thereto.
Claims
1. A method for sewer fault diagnosis and localization based on hydraulic gradient, characterized in that, The steps include the following: S1. Collect drainage network data, including drainage pipe images and hydraulic time series data; S2. Input each frame of pipeline image into the pre-trained YOLOv8 model, and select the feature map output by the last stage as the visual feature representation after global average pooling. S3. Input the hydraulic time series data into the LSTM and TCN branches of the network respectively. The LSTM branch models the frequency feature sequence along the time dimension and performs pooling operation on the hidden states of all time steps to obtain the long-term hydraulic fluctuation feature vector; the original time series data in the TCN network is processed... After layering residual blocks, local multi-scale hydraulic feature vectors are obtained; long-term hydraulic fluctuation feature vectors and local multi-scale hydraulic feature vectors are weighted and fused through a gating network to obtain temporal fusion features; S4. Calculate dynamic routing weights using hydraulic gradients, and fuse visual features with temporal fusion features based on the weights to obtain comprehensive features; S5. Model the drainage network as an undirected graph, with nodes containing all pipe sections and manhole covers, and edges representing pipe connections. Generate an adjacency matrix based on the actual pipeline layout, using comprehensive features as initial node representations, and input the undirected graph into the GCN network for relation reasoning. S6. Each node's representation is updated iteratively through N GCN layers, ultimately yielding the features. , with final characteristics As input, a probability vector of K types of faults is output through a gating mechanism.
2. The method for fault diagnosis and location of drainage pipes based on hydraulic gradient according to claim 1, characterized in that, In step S2, channel attention weights and spatial attention weights are calculated after the pre-trained YOLOv8 model. The two weights are multiplied by the feature map output by the YOLOv8 model and then global average pooling is performed to obtain the visual features.
3. The method for fault diagnosis and location of drainage pipes based on hydraulic gradient according to claim 1, characterized in that, The gated network weighted fusion process described in step S3 is as follows: First, the long-term hydraulic fluctuation characteristics and local multi-scale hydraulic characteristics are combined into a joint vector: , The original gated values are generated through a multilayer perceptron or linear layer, and then compressed to the interval (0, 1) using the Sigmoid function: , , in, Gating weight matrix, Gating bias The generated gate mask; Aligning long-term hydraulic fluctuation characteristics and local multi-scale hydraulic characteristics to the same dimension, and performing linear transformations on and respectively: , , in, For the projection matrix, Corresponding bias; Then, the features of the two branches are weighted and combined using the gating vector: , in, For time-series fusion features, The features are those obtained after linear projection; It is a complementary gating system.
4. The method for fault diagnosis and location of drainage pipes based on hydraulic gradient according to claim 1, characterized in that, In step S4, the hydraulic gradient is the "power" driving the water flow in the pipe, defined as the head loss per unit distance along the flow direction. The discrete points along the pipe axis are... , for Piezometric head at point, hydraulic gradient curvature for: , Dynamic route weights: , , in, It is dynamic visual weights. It is a dynamic time-series weight. Given the current hydraulic gradient curvature, The curvature reference value is the average curvature value under fault-free conditions. Sensitivity coefficient Small constant; The hydraulic gradient curvature, as prior physical knowledge, dynamically scales the comprehensive characteristics. : , in, It is a visual feature. It is a temporal fusion feature. It is dynamic visual weights. It is a dynamic time-series weight.
5. The method for fault diagnosis and location of drainage pipes based on hydraulic gradient according to claim 1, characterized in that, The gating mechanism described in step S6 is defined as follows: , in, This indicates the probability of a node experiencing a certain type of failure. If the probability of a node exceeds an empirical threshold, then the node is determined to be a faulty node. For weights, the gate vector Control the pass rate of each dimension of the feature. For gating weights, For gating layer parameters, These are the parameters for the classification layer.
6. A drainage pipe fault diagnosis and location system based on hydraulic gradient, characterized in that, It includes modules for data collection, visual feature extraction, long-term hydraulic fluctuation feature extraction, local multi-scale hydraulic feature extraction, temporal feature fusion, dynamic routing fusion, undirected graph construction, GCN network extraction, and fault probability acquisition. The data collection module is used to collect drainage network data, including drainage pipeline images and hydraulic time series data; The visual feature extraction module is used to input each frame of pipeline image into the pre-trained YOLOv8 model, and select the feature map output by the last stage as the visual feature representation after global average pooling. The long-term hydraulic fluctuation feature extraction module is used to input hydraulic time series data into the LSTM network branch, model the frequency feature sequence along the time dimension, and perform pooling operation on the hidden state of all time steps to obtain the long-term hydraulic fluctuation feature vector. The local multi-scale hydraulic feature extraction module is used to input hydraulic time-series data into the TCN branch network, and then... After layering residual blocks, local multi-scale hydraulic feature vectors are obtained; The temporal feature fusion module is used to weightedly fuse long-term hydraulic fluctuation feature vectors and local multi-scale hydraulic feature vectors through a gating network to obtain temporal fusion features. The dynamic routing fusion module uses hydraulic gradient to calculate dynamic routing weights, and then fuses visual features with temporal fusion features based on the weights to obtain comprehensive features. The undirected graph construction module is used to model the drainage network as an undirected graph. Nodes contain all pipe sections and manhole covers, and edges represent pipe connection relationships. An adjacency matrix is generated based on the actual pipeline layout. The GCN network extraction module is used to input an undirected graph into the GCN network for relation reasoning, using comprehensive features as the initial node representation. Each node's representation is updated iteratively through N GCN layers to obtain the final features. The fault probability acquisition module is used to output the probability vector of K types of faults through a gating mechanism.
7. The drainage pipe fault diagnosis and location system based on hydraulic gradient according to claim 6, characterized in that, The visual feature extraction module also includes an image preprocessing and enhancement module in front of the YOLOv8 model, and a channel attention and spatial attention module after the YOLOv8 model.
Citation Information
Patent Citations
Method and system for monitoring operation state of water pump unit based on digital twin technology
CN120162616A
