Drainage network pollutant tracing method and system based on multi-source data
By constructing a pipeline network topology and analyzing multi-source data, combined with a graph neural network model, the problem of insufficient accuracy in tracing from a single data source in existing technologies has been solved, and high-precision location of pollutants in complex pipeline networks has been achieved.
Patent Information
- Application Number
- CN202611656912.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for tracing pollutants in drainage pipe networks rely on a single type of monitoring data, making it difficult to accurately deduce the diffusion path of pollutants under complex pipe network topologies, resulting in insufficient accuracy in tracing sources.
The topology of the drainage pipe network is constructed, anomaly detection is performed by combining multi-source monitoring data, a local neighborhood structure is constructed by expanding along the water flow direction, pollutant feature vectors are extracted using a graph neural network model, and the pollution confidence is calculated through a cross-masking mechanism to finally determine the location of the pollution source.
It significantly improves the ability to extrapolate pollutant diffusion paths and the accuracy of source tracing in complex pipe networks under sparse monitoring conditions, overcomes the limitations of single data analysis, accurately locates the starting point of pollution source tracing, and filters out noise interference.
Smart Images

Figure CN123158382A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic digital data processing technology, specifically to a method and system for tracing pollutants in drainage pipe networks based on multi-source data. Background Technology
[0002] As a core component of urban water environment infrastructure, urban drainage pipe networks are responsible for the collection and transportation of domestic sewage, industrial wastewater, and rainwater. Therefore, timely and accurate source tracing of pollutants within the drainage pipe network is of great significance for urban water environment management and supervision.
[0003] However, in actual drainage network pollutant source tracing projects, numerous technical challenges are encountered: First, urban drainage networks are vast in scale and mostly buried deep underground. Due to high construction and maintenance costs, it is impossible to deploy monitoring equipment at every pipeline node. In actual projects, monitoring stations are usually only deployed at a few key nodes such as the intersection of main pipes and important outlets, resulting in a lack of direct monitoring data for a large number of branch pipes in the network. This sparsity of spatial observation means that the identification of pollution sources can only rely on indirect inference from a limited number of observation points, making location extremely difficult. Second, drainage networks exhibit complex tree-like or mesh-like topologies, including main pipes, branch pipes, inspection wells, and various merging and diverging nodes. During the migration of pollutants from the emission source to downstream monitoring points, they are directly affected by the network topology and hydrodynamic conditions, typically undergoing complex physicochemical changes such as dilution, mixing, deposition, and attenuation, leading to spatial distortion of pollution characteristics after long-distance transmission.
[0004] Existing methods for tracing pollutant sources in pipe networks mostly rely on single types of monitoring data (e.g., based solely on concentration thresholds of specific pollutants or changes in conductivity), failing to effectively integrate and fully utilize multi-source heterogeneous information such as water quality time-series data, hydrological data (e.g., flow rate, velocity), and pipe network spatial topology. Such analysis models based on a single data source have low fault tolerance and limited source-tracing capabilities. In real-world conditions where branch pipeline monitoring data is lacking and pipe network topology is complex, it is difficult to accurately deduce pollutant diffusion paths, resulting in insufficient accuracy in pollution source tracing. Summary of the Invention
[0005] To address the technical problem that existing methods for tracing pollutant sources in drainage networks rely on single types of monitoring data, making it difficult to accurately deduce the diffusion path of pollutants and resulting in insufficient accuracy in pollution source tracing, the present invention aims to provide a method and system for tracing pollutant sources in drainage networks based on multi-source data. The specific technical solution adopted is as follows: In a first aspect, the present invention provides a method for tracing the source of pollutants in a drainage network based on multi-source data, comprising the following steps: Construct the topology of the drainage network and obtain multi-source monitoring data of each monitoring node in the pipeline node of the network topology. Perform anomaly detection on the multi-source monitoring data to identify abnormal monitoring nodes with abnormal water quality. If the abnormal monitoring node is identified, then for the abnormal monitoring node, the upstream and downstream expansion along the water flow in the pipeline topology is carried out to construct a local neighborhood structure. In the local neighborhood structure, each monitoring node is taken as a target monitoring node. Based on the local neighborhood structure and the multi-source monitoring data of other monitoring nodes besides the target monitoring node, the predicted monitoring data of the target monitoring node and non-monitoring nodes in the pipeline node are determined. Based on the deviation between the multi-source monitoring data and the predicted monitoring data of the target monitoring node, the pollution confidence level corresponding to the target monitoring node is determined. For different shading states when each monitoring node is taken as the target monitoring node, based on the local neighborhood structure and the multi-source monitoring data of each monitoring node and the predicted monitoring data of non-monitoring nodes, the pollutant feature vector of each pipeline node in the local neighborhood structure is extracted. Based on the pollutant feature vector and the pollution confidence level corresponding to each target monitoring node, the independent pollution probability of each pipeline node in the pipeline network topology under different target monitoring node shading states is determined, and then fused to obtain the comprehensive pollution probability of each pipeline node in the pipeline network topology, thereby determining the location of the pollution source.
[0006] Furthermore, the network topology of the drainage pipe network is constructed, including: Each pipe segment in the drainage network is treated as a graph node in a directed topology graph. Based on the upstream and downstream directions of water flow in the drainage network, the directed edges between different graph nodes in the directed topology graph are determined; wherein the direction of the directed edges is consistent with the direction of water flow. Based on the graph nodes in the directed topology graph and the directed edges between different graph nodes, the pipeline network topology is obtained. Graph nodes in the pipeline network topology that are equipped with multi-source monitoring devices are marked as monitoring nodes, and other graph nodes besides the monitoring nodes are marked as non-monitoring nodes.
[0007] Furthermore, anomaly detection is performed on the multi-source monitoring data to identify abnormal monitoring nodes indicating abnormal water quality conditions, including: Based on the multi-source monitoring data of each monitoring node, the temporal feature sequence corresponding to each monitoring node within a preset time window is determined; The pipeline network topology and the time-series feature sequences corresponding to each monitoring node are input into a pre-trained first graph neural network model for classification processing, and the first graph neural network model outputs the anomaly classification results of each monitoring node. The monitoring nodes that are identified as abnormal in the anomaly classification results are determined, thereby obtaining the abnormal monitoring nodes with abnormal water quality status.
[0008] Furthermore, constructing a local neighborhood structure includes: Starting from the abnormal monitoring node, the pipeline network topology is expanded in the upstream reverse direction and downstream forward direction of the water flow, respectively. All pipeline nodes that can be reached by directed edges that do not exceed a preset expansion order, and the set of directed edges connected to them, are used as the local neighborhood structure.
[0009] Further, determining the predicted monitoring data for the target monitoring node and non-monitoring nodes within the pipeline includes: The multi-source monitoring data of the target monitoring node is masked, and only the multi-source monitoring data of other monitoring nodes in the local neighborhood structure are retained, in order to obtain the corresponding prediction reference data within a preset time window. The local neighborhood structure and the predicted reference data are input into a pre-trained second graph neural network model, which then outputs the predicted monitoring data of the target monitoring node and the non-monitoring nodes in the pipeline nodes of the local neighborhood structure.
[0010] Further, the pollutant feature vectors of each pipeline node in the local neighborhood structure are extracted, including: For different occlusion states when each monitoring node is used as the target monitoring node, the multi-source monitoring data of each monitoring node in the local neighborhood structure other than the target monitoring node, as well as the predicted monitoring data of the target monitoring node and the non-monitoring node, are used as the initial input features of the corresponding pipeline node. The initial input features of the local neighborhood structure and each pipe node are input into a pre-trained third graph neural network model. Through the graph convolution operation of the third graph neural network model, the initial input features of each pipe node and the features of its spatially connected neighboring nodes are spatially aggregated, and the pollutant feature vector of each pipe node in the local neighborhood structure is output.
[0011] Further, determining the independent contamination probability of each pipeline node in the pipeline network topology under different target monitoring node shading states includes: In the local neighborhood structure, the attenuation weight of each pipeline node relative to the target monitoring node is determined based on the shortest path from each pipeline node to the target monitoring node; Based on the attenuation weight and the pollution confidence of the target monitoring node, the neighborhood confidence influence of each pipeline node is determined, and based on the magnitude of the pollutant feature vector of each pipeline node, the intrinsic pollution intensity of each pipeline node is determined. The influence of the neighborhood credibility and the intrinsic pollution intensity are weighted and fused to obtain the independent pollution probability of each pipeline node under the shading state of the target monitoring node.
[0012] Furthermore, the comprehensive pollution probability of each pipeline node in the pipeline network topology is obtained by fusion, including: For any target monitoring node's occlusion state, calculate the average and standard deviation of the pollution confidence of all monitoring nodes in the local neighborhood structure other than the target monitoring node, and obtain the pollution confidence mean and pollution confidence standard deviation. The confidence weight of the target monitoring node is determined based on the deviation between the pollution confidence level corresponding to the target monitoring node and the mean pollution confidence level, as well as the standard deviation of the pollution confidence level. For any pipeline node in the local neighborhood structure, the independent pollution probabilities of the pipeline node under the occlusion state of each target monitoring node are weighted and fused using the confidence weights corresponding to each target monitoring node, so as to obtain the comprehensive pollution probability of the pipeline node in the pipeline network topology.
[0013] Furthermore, the location of the pollution source is determined, including: For any pipeline node in the pipeline network topology, if the pipeline node is in a local neighborhood structure constructed by the anomaly monitoring node, then the maximum value of the comprehensive pollution probability of the pipeline node in all the local neighborhood structures is determined as the global comprehensive pollution probability of the pipeline node. The global comprehensive pollution probability of each pipeline node in the pipeline network topology is compared with a preset probability threshold, and the location of the pollution source is determined based on the location of the pipeline node corresponding to the global comprehensive pollution probability being greater than the preset probability threshold.
[0014] Secondly, the present invention also provides a drainage network pollutant tracing system based on multi-source data, including a memory, a processor, and executable computer program code stored in the memory and executable on the processor. When the processor executes the computer program code, it executes the drainage network pollutant tracing method based on multi-source data in any of the above possible implementations.
[0015] This invention offers the following advantages: By constructing a drainage network topology and combining it with multi-source monitoring data for anomaly detection, this invention overcomes the limitations of single-type data analysis and accurately pinpoints the starting point for pollution source tracing. By expanding along the water flow direction to construct a local neighborhood structure, a reliable spatial investigation range is defined for source tracing. The mechanism of cross-shading monitoring nodes in the local neighborhood structure is used to extrapolate the predicted data of non-monitoring nodes and calculate the prediction bias. This not only fills the data gap in unmonitored areas but also quantifies the pollution credibility of each monitoring node using the spatial correlation between nodes, effectively filtering out interference from local noise and random errors. Based on this, by combining real multi-source monitoring data and predicted monitoring data, pollutant feature vectors of each pipeline node under different shading states are extracted, deeply exploring the spatial distribution and evolution of pollutants. Finally, by integrating multi-dimensional pollutant features with pollution credibility under cross-validation, the independent pollution probability of each pipeline node under different states is calculated and aggregated, eliminating extrapolation bias caused by a single observation model or a single node. This significantly improves the ability to extrapolate pollutant diffusion paths and the final source tracing accuracy of complex pipelines under sparse monitoring conditions. Attached Figure Description
[0016] To clearly illustrate the technical features of this solution, the embodiments of the present invention include the following figures: Figure 1 This is a flowchart illustrating the steps of the drainage network pollutant source tracing method based on multi-source data according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the structural composition of a drainage network pollutant tracing system based on multi-source data, according to an embodiment of the present invention. Detailed Implementation
[0017] The following will describe in detail the method and system for tracing pollutants in drainage pipe networks based on multi-source data provided by the embodiments of the present invention, with reference to the accompanying drawings.
[0018] Figure 1 This diagram illustrates the basic flow of a method for tracing pollutant sources in drainage pipe networks based on multi-source data, as provided in an embodiment of the present invention. Figure 1 As shown, the method specifically includes the following steps: Step S1: Construct the topology of the drainage network and obtain multi-source monitoring data of each monitoring node in the pipeline node of the network topology. Perform anomaly detection on the multi-source monitoring data and identify abnormal monitoring nodes with abnormal water quality.
[0019] A pipe network topology refers to a directed graph topology formed by mathematically abstracting the physical structure of a drainage pipe network. Each pipe node in the directed graph topology corresponds to a pipe segment in the drainage pipe network, and the directed edges reflect the upstream and downstream connectivity between pipe segments along the water flow direction. Each monitoring node in the pipe network topology refers to a node in the directed graph topology representing a pipe segment in the drainage pipe network that actually has multi-source monitoring equipment installed. Multi-source monitoring data refers to various indicator data reflecting the water state and environmental conditions of the drainage pipe network. For example, multi-source monitoring data can include water quality and hydrological data collected by multi-source monitoring equipment deployed within the pipe network, as well as meteorological data acquired synchronously from external equipment.
[0020] Water quality and hydrological indicators in drainage pipe networks under normal operating conditions are affected by meteorological conditions (such as rainfall), exhibiting regular, interconnected fluctuations. When the comprehensive monitoring data of a certain monitoring point deviates from its normal fluctuation pattern under these meteorological boundary conditions, it indicates that there is a high probability of pollution sources entering the site or other abnormalities in the pipe network at that point or its upstream. Therefore, by combining multi-source monitoring data from various monitoring nodes for anomaly detection, and identifying deviations from the normal interconnected patterns in multi-source data, abnormal monitoring nodes with pollution risks can be determined.
[0021] Specifically, based on the topology of the drainage pipe network, key locations within the pipeline section (such as main pipe junctions, important inspection wells, pump station inlets and outlets, and river / sea outlets) are designated as monitoring points. Various online monitoring sensors are deployed at each monitoring point as multi-source monitoring equipment, utilizing these sensors to collect multiple types of indicator data in real-time and continuously. For example, water quality data, including dissolved oxygen (DO), chemical oxygen demand (COD), pH, conductivity, turbidity, and ammonia nitrogen, are collected using online water quality analyzers; hydrological data, including instantaneous flow rate, velocity, and water depth (level), are collected using flow meters and level gauges; and meteorological data, including rainfall and ambient temperature, which affect infiltration or combined sewer overflows, are collected by connecting to local weather stations or miniature meteorological sensors within the pipe network.
[0022] For multiple indicator data at any monitoring point, the sampling frequency for each indicator data type is determined, and the highest sampling frequency among all sampling frequencies is selected as the benchmark sampling frequency. Using this benchmark sampling frequency as the frequency base, linear interpolation is employed to interpolate the multiple indicator data types for timestamp alignment, unifying them to the same frequency base, thus obtaining time-series aligned multiple indicator data. Subsequently, Z-score standardization is performed on each type of indicator data type after time-series alignment to eliminate differences in physical dimensions between water quality, hydrological, and meteorological data, ultimately yielding multi-source monitoring data for that monitoring point.
[0023] Furthermore, the topology of the drainage network is constructed, including: treating each pipe segment in the drainage network as a graph node in a directed topology graph; determining the directed edges between different graph nodes in the directed topology graph based on the upstream and downstream directions of water flow in the drainage network; wherein the direction of the directed edges is consistent with the direction of water flow; obtaining the network topology based on the graph nodes in the directed topology graph and the directed edges between different graph nodes, and marking the graph nodes in the network topology structure with multi-source monitoring devices deployed as monitoring nodes, and marking other graph nodes besides the monitoring nodes as non-monitoring nodes.
[0024] Specifically, each independent pipe segment in the drainage network is abstracted as a graph node in a directed topology graph. For monitoring points located at the intersection of multiple pipe segments, the multi-source monitoring data collected is uniquely mapped to the graph node corresponding to the downstream (or upstream) pipe segment adjacent to that monitoring point. Each graph node corresponds to at most one monitoring point where multi-source monitoring equipment is deployed in an independent pipe segment. If there are multiple monitoring points with multi-source monitoring equipment deployed in an independent pipe segment, the independent pipe segment is further divided into multiple sub-pipe segments, ensuring that each sub-pipe segment corresponds to at most one monitoring point. The graph nodes corresponding to all pipe segments constitute a graph node set. Where N is the total number of pipe segments in the drainage network. Based on the connectivity between different pipe segments (i.e., the upstream and downstream relationships in the direction of water flow), directed edges between nodes in the directed topology graph are determined. For nodes where water flow diverges or merges (such as monitoring wells), all hydraulic connectivity relationships between inflow and outflow pipe segments within them are converted into directed connections in the direction of water flow. Each "upstream pipe segment → downstream pipe segment" water flow path corresponds to a unidirectional directed edge. Based on the above-mentioned nodes and directed edges in the directed topology graph, the network topology of the drainage network is obtained. ,in, Let the set of directed edges be denoted as . any directed edge in Indicates from graph node Flow graph nodes .
[0025] Identify all independent pipe segments in the drainage network where monitoring points with multi-source monitoring equipment are deployed. Compare these independent pipe segments with the graph nodes in the network topology. Mark the graph nodes in the network topology corresponding to the independent pipe segments where monitoring points with multi-source monitoring equipment are deployed as monitoring nodes, and mark the remaining graph nodes in the network topology as non-monitoring nodes.
[0026] Furthermore, anomaly detection is performed on multi-source monitoring data to identify abnormal monitoring nodes with abnormal water quality status. This includes: determining the time-series feature sequence corresponding to each monitoring node within a preset time window based on the multi-source monitoring data of each monitoring node; inputting the pipeline topology and the time-series feature sequence corresponding to each monitoring node into a pre-trained first graph neural network model for classification processing, and outputting the anomaly classification results of each monitoring node by the first graph neural network model; and identifying the monitoring nodes that are indicated as abnormal in the anomaly classification results, thereby obtaining the abnormal monitoring nodes with abnormal water quality status.
[0027] Specifically, the standardized feature vectors for each moment are obtained by concatenating various indicators (values after standardization) from multi-source monitoring data at any monitoring node at the same time. A time window length T is set based on the typical water catchment cycle of the pipeline network (the typical water catchment cycle is 24 hours, and T is set to 12 hours), with the current moment as the starting point. Based on this, backtrack to a time window of length T (the time window includes the current moment). The standardized feature vector of any monitoring node within the time window is extracted and arranged chronologically to obtain the temporal feature sequence of that monitoring node. For non-monitoring nodes in the pipeline topology, zero vectors are used for initialization and padding to generate placeholder temporal feature sequences corresponding to the dimensions of the monitoring nodes. After generating the temporal feature sequences and placeholder temporal feature sequences, a binary identifier bit is appended to the end of each feature vector in the temporal feature sequences of all nodes (monitoring nodes with real multi-source monitoring data are fixed with 1, and non-monitoring nodes using zero vectors are fixed with 0), increasing the input feature dimension by one. The pipeline topology, the temporal feature sequences corresponding to each monitoring node after identifier bit appending, and the placeholder temporal feature sequences of non-monitoring nodes are simultaneously input into the first graph neural network model. The first graph neural network model performs classification processing and outputs the anomaly classification results for each monitoring node. The anomaly classification result is a binary label, with a value of 0 or 1, used to determine whether there is pollution at the monitoring point. 0 indicates normal, and 1 indicates pollution. Based on the anomaly classification results, the monitoring nodes corresponding to the binary classification label 1 are identified. These monitoring nodes are identified as abnormal monitoring nodes with abnormal water quality, while other monitoring nodes are identified as normal monitoring nodes, thereby realizing the identification of abnormal monitoring nodes in the drainage network.
[0028] The first graph neural network model consists of a temporal feature extraction layer, a spatial feature aggregation layer, and a classification prediction layer. The temporal feature extraction layer, composed of a Long Short-Term Memory (LSTM) network or a Gated Recurrent Unit (GRU), receives the temporal feature sequences of all pipeline nodes (including monitoring and non-monitoring nodes) in the pipeline network topology and extracts the dynamic temporal features that change over time. The spatial feature aggregation layer, composed of a Graph Convolutional Network (GCN) or a Graph Attention Network (GAT), uses the pipeline network topology as an adjacency matrix and the extracted dynamic temporal features as the initial state of the nodes. Through graph convolution or graph attention operations, it aggregates the dynamic temporal features of spatially connected neighboring nodes and outputs a spatiotemporal feature vector that incorporates the spatial hydraulic correlation effects of the pipeline network. The classification prediction layer, composed of a fully connected layer (FC) and a Sigmoid activation function, receives the spatiotemporal feature vector, maps it to probability values in the (0,1) interval, and outputs binary labels of 0 or 1 according to a probability threshold (e.g., 0.5).
[0029] Obtain the training sample set for the first graph neural network model. Collect time-series feature sequences composed of multi-source monitoring data from each monitoring node of the drainage pipe network over historical periods. Combine these with manual investigation records or alarm records of severe water quality exceedances, and manually label them with binary classification tags: time-series feature sequences from normal historical periods are labeled with 0, and time-series feature sequences from historical periods where illegal discharge or severe rainwater and sewage mixing is known to have occurred are labeled with 1. Construct the training sample set. During the training phase of the first graph neural network model, the placeholder time-series feature sequences for non-monitoring nodes are generated using the same zero-vector padding method. An additional binary identifier bit is appended to the end of each feature vector in the time-series feature sequences input to all nodes (monitoring nodes with real data are fixed with 1, and non-monitoring nodes using zero-vector placeholders are fixed with 0). The time-series feature sequences of all monitoring nodes, the placeholder time-series feature sequences of non-monitoring nodes, and the pipe network topology from the training sample set are simultaneously input into the first graph neural network model to obtain the predicted probability value for each monitoring node. The error between the predicted probability value of the monitoring node with the true binary classification label and the true binary classification label is calculated using the cross-entropy loss function. The network parameters in the model are then iteratively updated using a backpropagation algorithm (such as the Adam optimizer) until the loss function converges, completing the model training and obtaining the trained first graph neural network model. Since the process of constructing the first graph neural network model with the appropriate structure according to application requirements and obtaining the training sample set for training the model is a conventional technique in this field, it will not be elaborated upon here.
[0030] If all monitoring nodes are identified as normal, it is determined that there is no pollution event in the current drainage network that needs to be traced, and the subsequent tracing process is stopped; if at least one abnormal monitoring node is identified, the subsequent tracing process continues.
[0031] Step S2: If an abnormal monitoring node is identified, then for the abnormal monitoring node, extend it upstream and downstream along the water flow in the pipeline topology to construct a local neighborhood structure.
[0032] When anomaly monitoring points are identified, a pollutant source tracing process is required. Considering that pollutants only spread along the pipeline connection path, the pollution source must be within the hydraulic connectivity interval corresponding to the anomaly node. However, directly processing the pipeline topology incurs excessive computational overhead, and long-path information transmission can easily lead to over-smoothing of graph node features. Therefore, for each identified anomaly monitoring node, a corresponding local neighborhood structure is constructed. The local neighborhood structure is a pipeline connectivity substructure intercepted by extending upstream and downstream along the directed edges of the water flow, centered on the anomaly monitoring node. By constructing a local neighborhood structure, unconnected and irrelevant pipelines can be eliminated, narrowing the investigation scope to the truly related areas and preventing interference from other unrelated pipeline data during the source tracing process.
[0033] Furthermore, a local neighborhood structure is constructed, including: starting from the anomaly monitoring node, expanding along the upstream reverse direction and downstream forward direction of the water flow in the pipeline network topology, and connecting all pipeline nodes that can be reached by directed edges that do not exceed a preset expansion order and the set of directed edges inside them as the local neighborhood structure.
[0034] Specifically, for any identified first... Anomaly monitoring nodes With this abnormal monitoring node Starting from the upstream and downstream directions of the water flow along the pipeline network topology, the neighborhood is expanded. This is defined from the anomaly monitoring node. Starting from the beginning, traverse along the directed edges (including upstream reverse traversal and downstream forward traversal) for no more than the expansion order. All reachable pipe nodes constitute The set of neighborhoods of order 1, denoted as Extended order Used to define the scope of the investigation, for example, This indicates that it only includes directly connected upstream and downstream adjacent pipes. This indicates a pipe that contains a node at a time. The specific value can be adaptively preset according to the pipeline density and monitoring station distribution. In this embodiment, the value is set as follows: Anomaly monitoring nodes With Merging neighborhood sets yields a local node set with a local neighborhood structure. From all directed edges in the pipeline network topology, extract those edges whose starting and ending nodes both belong to the local node set. All directed edges constitute the local edge set of the local neighborhood structure. A set of local nodes with a local neighborhood structure. and local edge set Together they constitute anomaly monitoring nodes partial view After obtaining the partial image Next, determine the local image. The number of monitoring nodes included; if the number of monitoring nodes included is less than 3, the order of expansion will be determined. Gradually increase the size and expand it again until the local graph is obtained. It contains at least 3 monitoring nodes to obtain the local neighborhood structure.
[0035] Step S3: In the local neighborhood structure, each monitoring node is taken as the target monitoring node. Based on the local neighborhood structure and the multi-source monitoring data of other monitoring nodes besides the target monitoring node, the predicted monitoring data of the target monitoring node and the non-monitoring nodes in the pipeline node are determined. Based on the deviation between the multi-source monitoring data and the predicted monitoring data of the target monitoring node, the pollution confidence level corresponding to the target monitoring node is determined.
[0036] Predictive monitoring data refers to theoretical monitoring data predicted under the assumption that the pipe network follows normal hydraulic diffusion and there are no abnormal pollution sources. The method involves alternately masking the real multi-source monitoring data of any monitoring node within a local neighborhood structure, and then using the multi-source monitoring data of the remaining monitoring nodes for inference. Essentially, this is a cross-validation mechanism. This mechanism forces the model to infer the state of the masked target monitoring nodes along the drainage pipe network topology, removing any abnormal pollution noise that may be carried by individual monitoring nodes, in order to reconstruct the theoretical data distribution of the drainage pipe network under normal operating conditions.
[0037] The pollution confidence level of a target monitoring node characterizes the probability that the node is affected by a local, independent pollution source. If there are no pollution sources around the target monitoring node, the predicted monitoring data calculated based on spatial topology will match the actual multi-source monitoring data. Conversely, if there is illegal discharge near the target monitoring node, its actual multi-source monitoring data will undergo abrupt changes, and the predicted monitoring data derived from surrounding monitoring nodes according to normal patterns cannot reproduce this abrupt change, resulting in a significant deviation between the two. The larger the deviation, the more the actual multi-source monitoring data of the target monitoring node deviates from the normal upstream and downstream extrapolation data, and the higher the confidence level of the existence of an independent pollution source around it. Therefore, a quantitative analysis of the deviation between the multi-source monitoring data and the predicted monitoring data of the target monitoring node is performed to determine the pollution confidence level corresponding to the target monitoring node.
[0038] Furthermore, the predicted monitoring data for the target monitoring node and the non-monitoring nodes in the pipeline nodes are determined, including: masking the multi-source monitoring data of the target monitoring node, retaining only the multi-source monitoring data of other monitoring nodes in the local neighborhood structure besides the target monitoring node, and obtaining the corresponding predicted reference data within a preset time window; inputting the local neighborhood structure and the predicted reference data into a pre-trained second graph neural network model, and having the second graph neural network model output the predicted monitoring data for the target monitoring node and the non-monitoring nodes in the pipeline nodes in the local neighborhood structure.
[0039] Specifically, for any first Anomaly monitoring nodes Corresponding local neighborhood structure For each monitoring node in the local neighborhood structure, based on the multi-source monitoring data of each node, the temporal feature sequence of each monitoring node within a preset time window T is obtained according to the method described above. This node was designated as the target monitoring node, and its detection was masked. The temporal feature sequence is replaced with an all-zero temporal feature sequence, where each element has a value of 0 and the dimension is equal to the dimension of the temporal feature sequence. Within the entire local neighborhood structure, only the temporal feature sequences of monitoring nodes other than the target monitoring node are retained. Furthermore, for non-monitoring nodes in the local neighborhood structure, all-zero temporal feature sequences are used for placeholder padding to ensure the integrity of the input feature matrix dimension. Simultaneously, a binary identifier (e.g., 1 represents that the node has real prediction reference data input, 0 represents that the node is an occluded target monitoring node or a non-monitoring node with a placeholder in the all-zero temporal feature sequence) is appended to the end of each feature vector in the temporal feature sequence or the all-zero temporal feature sequence of each node. This guides the model to identify the target node that needs to be predicted and reconstructed, thereby obtaining the prediction reference data. The topological graph information of the local neighborhood structure and the aforementioned prediction reference data (including the real temporal feature sequences of unoccluded monitoring nodes, the all-zero-filled temporal feature sequences, and the binary identifier) are input into a pre-trained second graph neural network model. The second graph neural network model is pre-trained using time-series data from the pipeline network during historical stable periods. The model's predictions are based on the assumption that there are no abnormal pollution sources within the local neighborhood structure, and that changes in multi-source monitoring data perfectly conform to the normal hydraulic diffusion patterns along the pipeline topology. The model executes a graph propagation mechanism based on the input topological graph structure, propagating the known node information carried by the prediction reference data along directed edges to nodes lacking feature data. Thus, the second graph neural network model outputs predicted monitoring data for each pipeline node in the local neighborhood structure, thereby identifying the target monitoring node and the predicted monitoring data for all unmonitored pipeline nodes within the local neighborhood structure. This predicted monitoring data maintains consistency with the actual time-series feature sequences in terms of feature dimensions.
[0040] The second graph neural network model consists of multiple graph convolutional layers and an output mapping layer. The multiple graph convolutional layers, which can be GCN or GAT layers, are used to spatially aggregate and transmit the features of unmasked nodes along the directed edges of the water flow along the pipe network's directed graph topology, and output high-dimensional hidden node features for each pipe node. The output mapping layer, which can be a fully connected network layer, receives these high-dimensional hidden node features and maps them back to the original physical dimension of the multi-source monitoring data, outputting the predicted monitoring data for each pipe node in the local neighborhood structure.
[0041] Obtain the training sample set for the second graph neural network model. Collect multi-source monitoring data of the drainage network during historical pollution-free and stable periods, and extract the real time-series feature sequences of each monitoring node in the corresponding network topology according to the time window T. Preserve the complete network topology. Fill the non-monitoring nodes in the network topology with all-zero time-series feature sequences. Combine these with the real time-series feature sequences of each monitoring node to construct the graph sample set, thus obtaining the training sample set. Train the second graph neural network model using the training sample set. In each training iteration, randomly mask the monitoring nodes in the graph sample (e.g., randomly select 20% of the monitoring nodes). Replace the real time-series feature sequences of the selected nodes with all-zero time-series feature sequences, forcing them to become featureless. Similarly, append a binary identifier bit to the end of each feature vector in the real time-series feature sequence or the all-zero time-series feature sequence of each node (unmasked real monitoring nodes are fixed with 1, masked monitoring nodes and all-zero non-monitoring nodes are fixed with 0). The masked graph samples are input into the second graph neural network model. The model, through graph propagation, utilizes the data from the remaining unmasked monitoring nodes to output predicted monitoring data for all nodes in the graph. The predicted monitoring data of the masked monitoring nodes is extracted and compared with their actual monitoring data before masking. The mean squared error is calculated as the loss function, and the network parameters in the model are iteratively updated using a backpropagation algorithm (such as the Adam optimizer) until the loss function converges, completing the model training and obtaining the trained second graph neural network model. Since the process of constructing a second graph neural network model with the appropriate structure according to application requirements and obtaining the training sample set for training the model is a conventional technique in this field, it will not be elaborated further here.
[0042] The deviation between multi-source monitoring data and predicted monitoring data of the target monitoring node is analyzed to determine the pollution confidence level corresponding to the target monitoring node. Specifically, in any given... Anomaly monitoring nodes Corresponding local neighborhood structure Extract target monitoring nodes The time series feature sequence within the preset time window T and corresponding forecast monitoring data The Euclidean distance between the two in the feature space is calculated using the L2 norm and used as the prediction bias value. The prediction deviation value Essentially, this reflects the situation of obscuring target monitoring nodes. After analyzing its own monitoring data, can the true state of the target node be accurately reconstructed solely based on the normal evolution patterns of other monitoring nodes within the local pipe network? If there are no pollution sources within the local neighborhood structure, and the data changes of each monitoring node strictly follow the hydraulic diffusion patterns of the pipe network under normal operating conditions, then the data of the target monitoring node can be accurately deduced using only the data from the other monitoring nodes. The actual data and the predicted data are highly consistent, minimizing the prediction deviation. The pollution level is relatively low. Conversely, if there are abnormal pollution sources within the local neighborhood structure (especially when the pollution source is located upstream or near the target monitoring node), the illegal influx of pollutants will cause abrupt changes in the multi-source monitoring data of the target monitoring node that violate normal patterns. Since the neural network model in the second graph is based on the assumption of normal, pollution-free conditions and is calculated through topological propagation, the predicted monitoring data it provides cannot reproduce such pollution abrupt changes. At this time, a significant discrepancy will occur between the actual contaminated data and the normal predicted data, resulting in a prediction deviation value. Significantly increased.
[0043] The prediction bias value is normalized using a normalization function. Mapping to the (0,1) interval, the normalized values after mapping As a target monitoring node The corresponding contamination confidence level. For example, the normalization function can be a Min-Max normalization function, where the minimum value used by the Min-Max normalization function is set to 0, and the maximum value is set to a preset upper limit reference threshold. For example, this preset upper limit reference threshold can be determined by inputting a historical sample set (i.e., the time-series feature sequences collected during the training of the second graph neural network model) into the second graph neural network model and calculating the maximum value of the resulting prediction bias. It should be noted that if the prediction bias value... If the value exceeds the preset upper limit reference threshold, the mapped normalized value will be forcibly truncated to 1. The higher the pollution confidence level, the more the actual data of the target monitoring node deviates from the theoretical normal value, that is, the higher the confidence level of the existence of an independent abnormal pollution source around the node (especially its upstream). By taking turns using each monitoring node in the local neighborhood structure as the target monitoring node and performing the above operation, the pollution confidence level corresponding to each monitoring node can be obtained.
[0044] Step S4: For different shading states when each monitoring node is taken as the target monitoring node, extract the pollutant feature vector of each pipeline node in the local neighborhood structure based on the multi-source monitoring data of each monitoring node and the predicted monitoring data of non-monitoring nodes.
[0045] The pollutant feature vector is a hidden state vector characterizing the potential pollution intensity of each pipeline node in a local neighborhood structure. After pollution is discharged from the source, the migration and diffusion of pollutants are directly affected by the pipeline network topology, exhibiting a spatial distribution pattern of higher concentration closer to the pollution source and gradual dilution and attenuation further away. Therefore, based on the local neighborhood structure, the real multi-source monitoring data of other monitoring nodes in the local neighborhood structure besides the target monitoring node, the predicted monitoring data of the obscured target monitoring node, and the predicted monitoring data of the completed non-monitoring nodes, node feature aggregation is performed to quantify the spatial variation characteristics between each pipeline node and upstream and downstream data. This spatial diffusion pattern is then encoded into a pollutant feature vector, so that the magnitude of this vector can directly reflect the probability of the corresponding pipeline node being a pollution source.
[0046] Furthermore, the pollutant feature vectors of each pipeline node in the local neighborhood structure are extracted, including: for different occlusion states when each monitoring node is taken as the target monitoring node, the multi-source monitoring data of each monitoring node other than the target monitoring node in the local neighborhood structure, as well as the predicted monitoring data of the target monitoring node and non-monitoring nodes, are respectively used as the initial input features of the corresponding pipeline nodes; the initial input features of the local neighborhood structure and each pipeline node are input into a pre-trained third graph neural network model, and the initial input features of each pipeline node are spatially aggregated with the features of its spatially connected neighboring nodes through the graph convolution operation of the third graph neural network model, and the pollutant feature vectors of each pipeline node in the local neighborhood structure are output.
[0047] Specifically, for different occlusion states when each monitoring node is used as a target monitoring node, the predicted monitoring data of the currently occluded target monitoring node is extracted as its initial input feature; the real multi-source monitoring data of other monitoring nodes in the local neighborhood structure are extracted as the initial input feature of the corresponding monitoring node; simultaneously, the predicted monitoring data of non-monitoring nodes obtained under this occlusion state are extracted as the initial input feature of the corresponding non-monitoring node. The topological graph information of the local neighborhood structure and the initial input features of each pipeline node are jointly input into the pre-trained third graph neural network model. When a pollution source discharges into a certain pipeline node, under the influence of the unidirectional drive of the pipeline water flow, the pollutants only migrate and diffuse downstream along the water flow direction, thus exhibiting specific gradient distribution characteristics in space: the closer the downstream pipeline is to the pollution source, the more drastic the change in pollutant concentration; the farther away, the concentration gradually decreases due to the dilution of the pipeline water and physical attenuation; while the upstream pipeline, since it is not affected by the return water of the pollution source, its concentration characteristics should remain at a normal level. The third-graph neural network model is based on this physical law. Through multi-layer graph convolution operations, it spatially aggregates the initial input features of each pipeline node with the features of its spatially connected neighboring nodes along directed edges, thereby quantitatively learning the spatial gradient change patterns of multi-source monitoring data within the pipeline network. After spatial aggregation, the third-graph neural network model outputs the local neighborhood structure of each pipeline node. Pollutant feature vector under the current shading state , This represents the dimension of the pollutant feature vector. Length of the module Reflects pipeline nodes The potential pollution intensity when acting as a pollution source. A larger modulus indicates that the local spatial feature gradient around the node more closely matches the diffusion and divergence characteristics of a pollution source, and thus, a higher probability that it is a real pollution source. This pollutant feature vector... The vector direction reflects the type characteristics of pollutants. Different types of pollutants (such as organic pollution, ammonia nitrogen pollution, heavy metal pollution, etc.) will induce different spatiotemporal characteristic responses in multi-source data (water quality, hydrodynamics, etc.), corresponding to different component distribution patterns in the feature vector.
[0048] The third graph neural network model consists of an input feature mapping layer, a multi-layer graph spatial aggregation layer, and a feature embedding output layer. The input feature mapping layer, composed of fully connected layers, maps the initial input feature matrix, which integrates real multi-source monitoring data and predictive monitoring data, to a high-dimensional hidden space to extract initial nonlinear features. The multi-layer graph spatial aggregation layer consists of 2 to 3 layers of Directed Graph Convolutional Networks (Directed-GCN) or Graph Sampling and Aggregation Networks (Graph SAGE). A directed topological adjacency matrix is constructed based on the directed edge connections within the local neighborhood structure (e.g., if there is a connected edge between nodes along the water flow direction, the corresponding element in the matrix is 1; otherwise, it is 0). Each layer uses the pipe network's directed topological adjacency matrix as a guide, performing a weighted summation and nonlinear activation on the high-dimensional features of each pipe node and the features of its spatially connected neighboring nodes (implemented using the most standard low-level information transfer formulas of graph neural networks such as GCN and GraphSAGE). The number of layers determines the receptive field of spatial gradient information (e.g., a 2-layer GCN can aggregate hydraulic feature differences between nodes with a spacing of one node). The feature embedding output layer consists of non-linear fully connected layers, which map the features after multi-layer graph space aggregation to a fixed dimension. The final feature output (dimensional) is the pollutant feature vector.
[0049] Obtain the training sample set for the third-graph neural network model. Using routine maintenance or controlled experimental mechanisms of the drainage pipe network, a harmless tracer (such as high-concentration saline solution) is artificially and quantitatively added at known and determined pipe nodes to simulate real pollution sources. Real multi-source monitoring data from each monitoring node are collected to form a time-series feature sequence. When constructing the training samples, monitoring nodes are randomly selected to simulate obscured target monitoring nodes. For the remaining unobscured monitoring nodes, their real multi-source monitoring data are extracted, and combined with the second-graph neural network to obtain predicted monitoring data for both the target monitoring node and non-monitoring nodes. All of these data are used as initial input features. The pipe nodes where tracers are added are marked as real pollution sources (real labels). The remaining un-deployed pipeline nodes are marked as non-pollution sources (real labels). ), and combined with uncontaminated data from historical normal periods (the initial input features were processed using the same method of randomly selecting monitoring nodes to simulate occlusion, and the true labels of all nodes were also used). This involves constructing a training sample set with accurate real labels. Of course, other methods can also be used to construct the training sample set for the third-graph neural network model, which are not limited here.
[0050] The training sample images from the training sample set are input into the third-level graph neural network model. After spatial aggregation through multi-layer graph convolution, the model outputs the pollutant feature vectors of all pipe nodes. Subsequently, the pollutant feature vector is calculated. Length of the module The length of the module After being mapped through a learnable linear bias layer, a Sigmoid activation function is applied to map it to the predicted probability value that the pipeline node is a real pollution source. The expression for the linear bias layer is: , For learnable weights, For learnable bias, This is the output of the linear bias layer. A binary cross-entropy loss function is used to calculate the error between the predicted probability and the true label, and the gradient of the loss function is calculated using a backpropagation algorithm (such as the Adam optimizer), iteratively updating the network parameters. With the guidance of absolutely realistic tracer physical labels, the model can quickly converge and learn the correspondence of "how to accurately indicate the location of the pollution source through the magnitude of the feature vector," thus obtaining a well-trained third-graph neural network model. Since the process of constructing a third-graph neural network model with the appropriate structure according to application requirements and obtaining the training sample set for training the model is a conventional technique in this field, it will not be elaborated upon here.
[0051] Step S5: Based on the pollutant feature vector and the pollution confidence level corresponding to each target monitoring node, determine the independent pollution probability of each pipeline node in the pipeline network topology under different target monitoring node shading states, and then fuse them to obtain the comprehensive pollution probability of each pipeline node in the pipeline network topology, thereby determining the location of the pollution source.
[0052] Independent contamination probability refers to the likelihood that a pipeline node is a contamination source when a specific monitoring node is alternately occluded in a local neighborhood structure (i.e., a single occlusion state), taking into account the feature vector magnitude extracted in that state and the contamination confidence of the occluded monitoring node. Comprehensive contamination probability refers to the final global probability obtained by fusing all independent contamination probabilities calculated for the same pipeline node under all different occlusion states; it represents the comprehensive judgment result after multi-view cross-validation across the entire image.
[0053] In complex real-world pipeline networks, the actual location of illegal discharge points is unknown; relying solely on the entire... Figure 1Single-step feature extraction is easily interfered with by data from monitoring nodes that are already severely contaminated, leading to near-false positives or local blind spots. By employing a "rotating masking" mechanism, multiple parallel observation perspectives are created. When the masked node happens to be the one most affected by contamination, the model's predictions derived from the remaining normal nodes deviate most from the actual contamination data. The contamination reliability under this perspective is extremely high, and the extracted independent contamination probability is closest to the physical reality. When calculating the overall contamination probability, higher reliability perspectives are given greater decision weight to suppress interference from lower reliability perspectives. This cross-validation-based fusion mechanism effectively filters out random noise and local errors from single sensor data. Therefore, the overall contamination probability is the globally optimal solution after repeated interaction and cross-verification of multi-source data from various parties. The node with the highest overall contamination probability is the true location of the contamination source that best matches the distribution characteristics of the contamination source.
[0054] Furthermore, the independent pollution probability of each pipeline node in the pipeline network topology under different target monitoring node shading states is determined, including: in the local neighborhood structure, determining the attenuation weight of each pipeline node relative to the target monitoring node based on the shortest path from each pipeline node to the target monitoring node; determining the neighborhood credibility influence of each pipeline node based on the attenuation weight and the pollution credibility of the target monitoring node, and determining the intrinsic pollution intensity of each pipeline node based on the magnitude of the pollutant feature vector of each pipeline node; and weightedly fusing the neighborhood credibility influence and the intrinsic pollution intensity to obtain the independent pollution probability of each pipeline node under the target monitoring node shading state.
[0055] Specifically, for any first Anomaly monitoring nodes Corresponding local neighborhood structure Any pipe node in When monitoring nodes When being masked as a target monitoring node (i.e., in the presence of...) (Under the shielded state), determine the pipe nodes. With target monitoring nodes Topological distance between In local neighborhood structure In the middle, topological distance For from pipeline node To the target monitoring node The shortest path length along the directed graph topology of the pipeline network (quantified by the number of edges traversed; if directly connected, the topological distance is 1). Calculate the pipeline nodes based on this topological distance. Relative target monitoring node decay weight Since the farther the pollution source is from the monitoring point, the stronger the dilution and attenuation effect on its propagation path, and the weaker its impact on the monitoring data, the attenuation weight based on topological distance is used. ;in, This is an exponential function with the natural constant e as the base. It should be understood that if the pipe node... The target monitoring node cannot be reached along the directed graph topology of the pipeline network. If so, then directly set the attenuation weight to 0.
[0056] Extract pipe nodes At the target monitoring node Under the occlusion state, the pollutant feature vector output by the third graph neural network model and its vector magnitude The input is fed into the linear bias layer of the neural network model trained in the third figure, and finally passed through the Sigmoid activation function to obtain an output probability value between 0 and 1. This probability value is used as the pipeline node. The intrinsic pollution intensity is denoted as Obtain target monitoring nodes. The credibility of pollution Calculate the credibility of this pollution. With the above attenuation weight The product of , we get Impact of neighborhood credibility under occlusion The neighborhood credibility influence reflects the degree of impact of pollution anomalies from the target monitoring node on the current pipeline node.
[0057] Pre-set the influence weights of intrinsic pollution intensity and neighborhood credibility. and Influence weight and The range of values is . and It can be preset as an empirical value, such as and =0.5. This empirical value assigns equal weight to the intrinsic pollution intensity extracted from the hidden feature space by deep learning and the neighborhood credibility calculated from the physical residual space, ensuring that the final independent pollution probability takes into account both the overall macroscopic spatial gradient diffusion pattern of the pipeline network and the feedback of sudden physical anomalies at individual monitoring points, thus achieving optimal source tracing robustness. Utilizing influence weights... and For each pipeline node Intrinsic pollution intensity And the impact of neighborhood credibility After weighting and summing, the pipeline nodes are obtained. At the target monitoring node Independent contamination probability under shielding conditions Therefore, the independent contamination probability of each pipeline node under any target monitoring node occlusion state can be obtained.
[0058] Furthermore, the comprehensive pollution probability of each pipeline node in the pipeline network topology is obtained by fusion, including: for any target monitoring node's shading state, calculating the average and standard deviation of the pollution confidence of all monitoring nodes other than the target monitoring node in the local neighborhood structure, to obtain the pollution confidence mean and pollution confidence standard deviation; based on the deviation between the pollution confidence corresponding to the target monitoring node and the pollution confidence mean, and the pollution confidence standard deviation, determining the confidence weight corresponding to the target monitoring node; for any pipeline node in the local neighborhood structure, using the confidence weight corresponding to each target monitoring node, weighting and fusing the independent pollution probabilities corresponding to the pipeline node in the shading state of each target monitoring node, to obtain the comprehensive pollution probability of the pipeline node in the pipeline network topology.
[0059] Specifically, for any first Anomaly monitoring nodes Local neighborhood structure Extract the pollution confidence level of each monitoring node. To quantify the reliability of each occlusion state in the final decision, for any target monitoring node... Calculated in Credibility weight under occlusion Considering that if the contamination confidence of a certain masked state is significantly higher than the average level of other monitoring nodes, it indicates that this state has captured a key anomalous change in contamination, and should be assigned a higher fusion weight. Therefore, for the target monitoring node... Calculate the local neighborhood structure Except for the target monitoring nodes The mean and standard deviation of pollution confidence levels for all monitoring nodes other than the target node are used to obtain the pollution confidence mean and pollution confidence standard deviation. Based on these pollution confidence mean and pollution confidence standard deviation, the target monitoring node is then analyzed. The credibility of pollution Z-score standardization is performed, and a Sigmoid activation function is nested in the outer layer to map the standardization result to the (0,1) interval, ensuring the non-negativity and numerical stability of the weighted weights, thereby obtaining... Credibility weight under occlusion The corresponding calculation formula is: in, The average confidence level of contamination, i.e., the local neighborhood structure. Except for the target monitoring nodes The average pollution confidence level of all monitoring nodes other than those mentioned above; The standard deviation of contamination confidence, i.e., local neighborhood structure. Except for the target monitoring nodes The standard deviation of the pollution confidence level for all other monitoring nodes besides the one mentioned above.
[0060] It should be understood that if the standard deviation of the contamination credibility... A value of 0 means that the pollution confidence level of all other monitoring nodes is completely consistent, with no fluctuations. Therefore, the confidence level weight can be adjusted. Set a default baseline weight (e.g., a neutral value of 0.5).
[0061] For any number Anomaly monitoring nodes Local neighborhood structure Any pipe node in The independent pollution probability obtained under the occlusion state of each target monitoring node. Its corresponding credibility weight Multiply the results and sum them up for all target monitoring nodes. Calculate the summation result along with the credibility weight of all target monitoring nodes. The ratio of the summation results is used as the value of the pipe node. In local neighborhood structure Comprehensive pollution probability .
[0062] Furthermore, the location of the pollution source is determined by: for any pipe node in the pipeline network topology, if the pipe node is in a local neighborhood structure constructed by the abnormal monitoring node, the maximum value of the comprehensive pollution probability of the pipe node in all local neighborhood structures is determined as the global comprehensive pollution probability of the pipe node; the global comprehensive pollution probability of each pipe node in the pipeline network topology is compared with a preset probability threshold, and the location of the pollution source is determined based on the location of the pipe node whose global comprehensive pollution probability is greater than the preset probability threshold.
[0063] Specifically, due to the connectivity of the pipeline network topology, any pipeline node It may belong to the local neighborhood structure of multiple different anomaly monitoring nodes simultaneously. Therefore, extract the pipeline nodes. The maximum value among the comprehensive pollution probabilities calculated across all local neighborhood structures is selected as the final global comprehensive pollution probability for that pipeline node. It should be understood that if a pipeline node does not belong to any local neighborhood structure, then the global overall pollution probability of that pipeline node is directly set to 0.
[0064] A preset probability threshold is set, for example, a threshold of 0.8. The global comprehensive pollution probability of each pipeline node in the pipeline network topology is compared with the preset probability threshold. The location of the pipeline node with a global comprehensive pollution probability greater than the preset probability threshold is identified as the pollution source location of the suspected pollution source. If the global comprehensive pollution probability of all pipeline nodes in the pipeline network topology is not greater than the preset probability threshold, the pipeline node with the highest global comprehensive pollution probability is directly identified as the pollution source location of the suspected pollution source, and the source tracing and location results are output to the pipeline network management department.
[0065] Based on the same inventive concept, embodiments of the present invention also provide a drainage network pollutant tracing system based on multi-source data, such as... Figure 2 As shown, the system includes a memory, a processor, and computer program code stored in the memory and running on the processor. When the processor executes the computer program code, the system can perform the aforementioned method for tracing pollutant sources in drainage pipe networks based on multi-source data. Since the core of this system lies in implementing the aforementioned method for tracing pollutant sources in drainage pipe networks based on multi-source data, and the specific implementation process of this method has already been described in detail above, the system itself will not be repeated here.
[0066] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Any equivalent substitutions and modifications that do not depart from the concept of the present invention fall within the protection scope of the present invention.
Claims
1. A method for tracing pollutant sources in drainage pipe networks based on multi-source data, characterized in that, Includes the following steps: Construct the topology of the drainage network and obtain multi-source monitoring data of each monitoring node in the pipeline node of the network topology. Perform anomaly detection on the multi-source monitoring data to identify abnormal monitoring nodes with abnormal water quality. If the abnormal monitoring node is identified, then for the abnormal monitoring node, the upstream and downstream expansion along the water flow in the pipeline topology is carried out to construct a local neighborhood structure. In the local neighborhood structure, each monitoring node is taken as a target monitoring node. Based on the local neighborhood structure and the multi-source monitoring data of other monitoring nodes besides the target monitoring node, the predicted monitoring data of the target monitoring node and non-monitoring nodes in the pipeline node are determined. Based on the deviation between the multi-source monitoring data and the predicted monitoring data of the target monitoring node, the pollution confidence level corresponding to the target monitoring node is determined. For different shading states when each monitoring node is taken as the target monitoring node, based on the local neighborhood structure and the multi-source monitoring data of each monitoring node and the predicted monitoring data of non-monitoring nodes, the pollutant feature vector of each pipeline node in the local neighborhood structure is extracted. Based on the pollutant feature vector and the pollution confidence level corresponding to each target monitoring node, the independent pollution probability of each pipeline node in the pipeline network topology under different target monitoring node shading states is determined, and then fused to obtain the comprehensive pollution probability of each pipeline node in the pipeline network topology, thereby determining the location of the pollution source.
2. The method for tracing pollutant sources in drainage pipe networks based on multi-source data according to claim 1, characterized in that, Constructing the drainage pipe network topology includes: Each pipe segment in the drainage network is treated as a graph node in a directed topology graph. Based on the upstream and downstream directions of water flow in the drainage network, the directed edges between different graph nodes in the directed topology graph are determined; wherein the direction of the directed edges is consistent with the direction of water flow. Based on the graph nodes in the directed topology graph and the directed edges between different graph nodes, the pipeline network topology is obtained. Graph nodes in the pipeline network topology that are equipped with multi-source monitoring devices are marked as monitoring nodes, and other graph nodes besides the monitoring nodes are marked as non-monitoring nodes.
3. The method for tracing pollutant sources in drainage pipe networks based on multi-source data according to claim 1, characterized in that, Anomaly detection is performed on the multi-source monitoring data to identify abnormal monitoring nodes with abnormal water quality conditions, including: Based on the multi-source monitoring data of each monitoring node, the temporal feature sequence corresponding to each monitoring node within a preset time window is determined; The pipeline network topology and the time-series feature sequences corresponding to each monitoring node are input into a pre-trained first graph neural network model for classification processing, and the first graph neural network model outputs the anomaly classification results of each monitoring node. The monitoring nodes that are identified as abnormal in the anomaly classification results are determined, thereby obtaining the abnormal monitoring nodes with abnormal water quality status.
4. The method for tracing pollutant sources in drainage pipe networks based on multi-source data according to claim 1, characterized in that, Constructing a local neighborhood structure includes: Starting from the abnormal monitoring node, the pipeline network topology is expanded in the upstream reverse direction and downstream forward direction of the water flow, respectively. All pipeline nodes that can be reached by directed edges that do not exceed a preset expansion order, and the set of directed edges connected to them, are used as the local neighborhood structure.
5. The method for tracing pollutant sources in drainage pipe networks based on multi-source data according to claim 1, characterized in that, Determining the predicted monitoring data for the target monitoring node and non-monitoring nodes within the pipeline nodes includes: The multi-source monitoring data of the target monitoring node is masked, and only the multi-source monitoring data of other monitoring nodes in the local neighborhood structure are retained, in order to obtain the corresponding prediction reference data within a preset time window. The local neighborhood structure and the predicted reference data are input into a pre-trained second graph neural network model, which then outputs the predicted monitoring data of the target monitoring node and the non-monitoring nodes in the pipeline nodes of the local neighborhood structure.
6. The method for tracing pollutant sources in drainage pipe networks based on multi-source data according to claim 1, characterized in that, Extracting the contaminant feature vectors of each pipeline node in the local neighborhood structure includes: For different occlusion states when each monitoring node is used as the target monitoring node, the multi-source monitoring data of each monitoring node in the local neighborhood structure other than the target monitoring node, as well as the predicted monitoring data of the target monitoring node and the non-monitoring node, are used as the initial input features of the corresponding pipeline node. The initial input features of the local neighborhood structure and each pipe node are input into a pre-trained third graph neural network model. Through the graph convolution operation of the third graph neural network model, the initial input features of each pipe node and the features of its spatially connected neighboring nodes are spatially aggregated, and the pollutant feature vector of each pipe node in the local neighborhood structure is output.
7. The method for tracing pollutant sources in drainage pipe networks based on multi-source data according to claim 1, characterized in that, Determining the independent contamination probability of each pipeline node in the pipeline network topology under different target monitoring node shading states includes: In the local neighborhood structure, the attenuation weight of each pipeline node relative to the target monitoring node is determined based on the shortest path from each pipeline node to the target monitoring node; Based on the attenuation weight and the pollution confidence of the target monitoring node, the neighborhood confidence influence of each pipeline node is determined, and based on the magnitude of the pollutant feature vector of each pipeline node, the intrinsic pollution intensity of each pipeline node is determined. The influence of the neighborhood credibility and the intrinsic pollution intensity are weighted and fused to obtain the independent pollution probability of each pipeline node under the shading state of the target monitoring node.
8. The method for tracing pollutant sources in drainage pipe networks based on multi-source data according to claim 1, characterized in that, Furthermore, the comprehensive pollution probability of each pipeline node in the pipeline network topology is obtained by fusion, including: For any target monitoring node's occlusion state, calculate the average and standard deviation of the pollution confidence of all monitoring nodes in the local neighborhood structure other than the target monitoring node, and obtain the pollution confidence mean and pollution confidence standard deviation. The confidence weight of the target monitoring node is determined based on the deviation between the pollution confidence level corresponding to the target monitoring node and the mean pollution confidence level, as well as the standard deviation of the pollution confidence level. For any pipeline node in the local neighborhood structure, the independent pollution probabilities of the pipeline node under the occlusion state of each target monitoring node are weighted and fused using the confidence weights corresponding to each target monitoring node, so as to obtain the comprehensive pollution probability of the pipeline node in the pipeline network topology.
9. The method for tracing pollutant sources in drainage pipe networks based on multi-source data according to claim 1, characterized in that, This leads to the determination of the pollution source location, including: For any pipeline node in the pipeline network topology, if the pipeline node is in a local neighborhood structure constructed by the anomaly monitoring node, then the maximum value of the comprehensive pollution probability of the pipeline node in all the local neighborhood structures is determined as the global comprehensive pollution probability of the pipeline node. The global comprehensive pollution probability of each pipeline node in the pipeline network topology is compared with a preset probability threshold, and the location of the pollution source is determined based on the location of the pipeline node corresponding to the global comprehensive pollution probability being greater than the preset probability threshold.
10. A drainage network pollutant source tracing system based on multi-source data, characterized in that, It includes a memory, a processor, and executable computer program code stored in the memory and executable on the processor. When the processor executes the computer program code, it performs the pollutant source tracing method for drainage pipe networks based on multi-source data as described in any one of claims 1 to 9.
