A cross-media pollution tracing method and system based on a causal diagram network

By using causal graph networks and counterfactual reasoning, the problems of inaccurate identification and low data utilization in cross-media pollution source tracing have been solved, realizing an efficient and reliable pollution source tracing and regulatory closed loop, and improving the accuracy and efficiency of environmental supervision.

CN123159684APending Publication Date: 2026-11-24CHENGDU ZVAN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611387379.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing pollution source tracing technologies cannot effectively handle cross-media migration, resulting in inaccurate identification of pollution sources, low utilization of monitoring data, and a lack of credibility and verification loops in source tracing conclusions, making it difficult to meet the regulatory needs of complex pollution.

Method used

A cross-media pollution source tracing method based on causal graph networks is adopted. By spatiotemporal alignment and cross-modal fusion of multi-source heterogeneous data, a cross-media spatiotemporal causal heterogeneous graph is constructed. Combined with counterfactual reasoning and active learning, the pollution contribution is quantified and the source tracing results are interpretable.

Benefits of technology

It has achieved three-media linkage for source tracing, which has improved the accuracy of pollution source identification, increased the utilization rate of monitoring data, enhanced the credibility and regulatory efficiency of source tracing conclusions, reduced the workload of on-site sampling, and formed a closed-loop system of source tracing-verification-iteration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159684A_ABST
    Figure CN123159684A_ABST
Patent Text Reader

Abstract

This invention relates to a cross-media pollution source tracing method and system based on causal graph networks, belonging to the field of pollution source tracing technology. The method includes: Step 1: multi-source heterogeneous environmental monitoring data acquisition and preprocessing; Step 2: spatiotemporal alignment and cross-modal fusion of heterogeneous data at multiple time granularities; Step 3: construction of a cross-media spatiotemporal causal heterogeneous graph; Step 4: pollution contribution quantification based on counterfactual reasoning; Step 5: source tracing result output and proactive verification recommendation. This invention achieves full-link tracing of pollution migration, quantification of pollution source responsibility, and support for law enforcement evidence collection through spatiotemporal causal heterogeneous graphs and counterfactual reasoning technology, fully exploring the application value of multi-source monitoring data and significantly improving the accuracy and operational efficiency of environmental supervision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of pollution source tracing technology, and in particular to a cross-media pollution source tracing method and system based on causal graph networks. Background Technology

[0002] Pollution source tracing is a core technological support for environmental supervision and enforcement. Current pollution source tracing technologies primarily target single environmental media, resulting in mature technical routes such as water quality fluorescent fingerprint matching, atmospheric diffusion model source apportionment, and hydraulic model forward simulation, which are widely used in investigating anomalies in surface water and air quality. However, as environmental pollution in my country exhibits increasingly complex and cross-media migration characteristics, the transformation and transfer of pollutants between water, air, and soil are becoming more prevalent. Single-media source tracing can no longer meet the needs of precise supervision. Traditional pollution source tracing technologies face four major bottlenecks:

[0003] 1. Deficiencies in Media Isolation: Existing source tracing schemes are all conducted independently for single environmental media, separating water, air, and soil. This fragmented approach fails to reconstruct complete cross-media migration chains such as "exhaust gas emissions → atmospheric deposition → rainwater runoff into rivers" and "wastewater leakage → soil vadose zone → groundwater → river baseflow replenishment." According to statistics from environmental regulatory departments, approximately 35% of abnormal events at watershed sections are contributed by cross-media pollution. Single-media source tracing can only identify about 60% of pollution sources, resulting in incomplete tracing results and difficulty in identifying all responsible parties. Hidden cross-media pollution remains in a regulatory blind spot for a long time.

[0004] 2. Lack of Heterogeneous Data Fusion: The sampling frequencies for monitoring different environmental media vary significantly. Wastewater online monitoring is on the 5-minute scale, exhaust gas CEMS on the hourly scale, surface water automatic monitoring stations on the 4-hour scale, groundwater monitoring wells on the monthly scale, and soil sampling only on the quarterly scale, spanning four orders of magnitude in time granularity. Current technologies lack effective methods for aligning and fusing multi-time-granularity data. Most source tracing models can only use high-frequency monitoring data of the same frequency, while low-frequency monitoring data such as groundwater and soil cannot be used in modeling. The overall utilization rate of monitoring data is less than 40%, resulting in a significant waste of monitoring resources.

[0005] 3. Insufficient causal inference capability: Most schemes rely on correlation analysis, physicochemical fingerprint matching, or forward diffusion simulation, which cannot distinguish between true causal relationships and spurious correlations caused by confounding factors such as meteorology and hydrology, nor can they quantify the true contribution of each pollution source. Fingerprint matching technology relies on a pre-built pollution source database and cannot identify new pollution sources without records in the database; forward simulation requires known source strength and precise physical parameters, making it poorly applicable in reverse source tracing scenarios. Existing source tracing conclusions are mostly qualitative inferences, lacking statistical causal support, and are difficult to use as effective technical evidence for administrative penalties.

[0006] 4. Uncertainty and Lack of Verification Loop: Existing source tracing results are mostly definitive, single conclusions, lacking quantitative assessment of their reliability. When these results are used as the basis for administrative penalties, disputes easily arise due to doubts about their credibility. Furthermore, existing technologies lack supporting verification and sampling recommendation mechanisms. On-site sampling relies heavily on experience-based site selection, resulting in high blind spots, high costs, and low efficiency. This prevents the formation of a "source tracing-verification-optimization" technical loop, hindering subsequent law enforcement evidence collection and model iteration optimization. Summary of the Invention

[0007] To address the aforementioned problems in existing technologies and avoid the lack of spatiotemporal causal heterogeneous graph representation and counterfactual reasoning quantification mechanisms during cross-media pollution source tracing, which leads to unexplainable cross-media migration paths, interference from confounding factors in contribution quantification, and a lack of proactive verification loops in source tracing results, this invention provides a cross-media pollution source tracing method and system based on causal graph networks.

[0008] A cross-media pollution source tracing method based on causal graph networks includes the following steps:

[0009] Step 1: Collect multi-source heterogeneous environmental monitoring data, including water, air, soil, and enterprise operating conditions, and perform preprocessing.

[0010] Step 2: Perform spatiotemporal alignment and cross-modal fusion on heterogeneous data with multiple time granularities. The spatiotemporal alignment specifically involves constructing a temporal interpolation autoencoder, wherein the encoder uses a bidirectional LSTM to map monitoring sequences with arbitrary sampling frequencies to a fixed-dimensional latent space, and the decoder uses a unidirectional LSTM to output a continuous sequence with a uniform time granularity. The cross-modal fusion is based on a multi-head attention mechanism to perform weighted fusion of the aligned water quality parameter sequence, meteorological parameter sequence, enterprise operating condition sequence, and static spatial encoding, and outputs a fixed-dimensional fusion feature tensor.

[0011] Step 3: Construct a cross-media spatiotemporal causal heterogeneous graph, which specifically includes: using enterprise wastewater discharge outlets, exhaust gas discharge outlets, surface water monitoring sections, and groundwater monitoring wells as node sets, and adding meteorological nodes, constructing spatial edge sets and causal edge sets, using GATv2 graph attention network to learn the spatial propagation intensity between nodes, and using temporal Transformer to capture the temporal dependency patterns inside nodes, and jointly training both end-to-end, with the optimization objective being to minimize the multi-step prediction error of monitoring nodes;

[0012] Step 4: Quantify pollution contribution based on counterfactual reasoning. This includes: when a monitoring section with an abnormal environmental quality signal is detected, using that section as the target node, performing a do-calculus counterfactual intervention operation on each candidate pollution source node according to the causal heterogeneity graph. The do-calculus counterfactual intervention operation specifically involves: replacing the emission characteristic values ​​of the candidate source nodes with historical normal baseline levels, keeping the states of other nodes in the graph unchanged, and recalculating the change in the predicted value of the target section through forward propagation; quantifying the contribution of each pollution source to the current pollution anomaly based on the change; and using the Monte Carlo Dropout method to perform multiple independent forward propagation samplings to obtain the empirical distribution and 95% confidence interval of the contribution of each candidate pollution source.

[0013] Step 5: Output the source tracing results and use an active learning strategy to recommend the optimal supplementary sampling scheme.

[0014] Furthermore, the collected multi-source heterogeneous environmental monitoring data specifically includes wastewater online monitoring data, exhaust gas CEMS data, surface water automatic station data, groundwater monitoring well data, soil sampling data, regional meteorological data, enterprise operating condition data, and GIS spatial data.

[0015] Furthermore, the preprocessing includes performing missing value imputation, outlier removal, and standardization on each data source. The missing value imputation adopts a hierarchical strategy: short-term missing values ​​in minute-level and hourly high-frequency data are filled with linear interpolation, long-term missing values ​​are filled with the historical mean of the same period, and monthly and quarterly low-frequency data are generated into continuous time series using cubic spline interpolation. The outlier removal adopts the 3σ criterion, replacing outliers that deviate from the mean by more than three standard deviations with adjacent valid values. The standardization process adopts the Z-score normalization method to map all monitoring data to a standard normal distribution, eliminating the interference of differences in the dimensions of different parameters on subsequent modeling.

[0016] Furthermore, in step 2, the encoder uses a two-layer bidirectional LSTM network with 128 hidden units per layer, and the decoder uses a two-layer unidirectional LSTM network with 128 hidden units per layer. The output is a continuous time series with a granularity of 1 hour. The training loss function is L = L_reconstruction + λ·L_smoothness, where L_reconstruction represents the reconstruction error, L_smoothness represents the smoothness constraint, and λ is the balance coefficient.

[0017] The cross-modal fusion process uses meteorological parameters and spatial codes as query vectors, and water quality and operating condition parameters as key and value vectors. It adaptively calculates the attention weights of different modalities, strengthens the extraction of cross-media propagation features under meteorological and spatial constraints, and outputs a fixed-dimensional fusion feature tensor.

[0018] Furthermore, the spatial edge set in step 3 is established based on the physical relationship of environmental media transmission, including hydraulic transmission edge, solute transport edge, atmospheric diffusion edge and surface runoff edge; the causal edge set is obtained by performing the PCMCI+ algorithm on the monitoring time series of each node pair, and under the premise of controlling meteorological variables as conditional factors, identifying significant conditional Granger causal relationships, and retaining only the causal edges that pass the significance test.

[0019] Furthermore, the hydraulic transmission edge is generated based on the upstream and downstream topological relationship of the water system, and its direction is from upstream to downstream;

[0020] The solute transport edge is generated based on groundwater flow field data and corresponds to the direction of solute migration in groundwater.

[0021] The atmospheric diffusion edge is generated based on the regional prevailing wind direction and the relative position of the emission source;

[0022] The surface runoff edge is generated based on DEM elevation and soil permeability coefficient;

[0023] The specific construction process of the causal edge set is as follows: the potential parent node set of each node is initially screened through the PC algorithm to reduce the size of the condition variable; the instantaneous conditional independence MCI test is performed, the meteorological node is fixed as the condition factor throughout the process to eliminate meteorological interference, the maximum time lag L_max is set to 12 hours, the significance level α=0.01, and only the significant causal edges that pass the modified p-value test are retained.

[0024] Furthermore, in step 4, the contribution of each pollution source to the current pollution anomaly is quantified based on the amount of change. Specifically, the causal contribution of a candidate pollution source is defined as the ratio of the amount of change corresponding to that source to the sum of the amounts of change of all candidate sources, normalized to the interval [0,1]. The larger the value, the higher the causal contribution.

[0025] Furthermore, step 5 specifically includes:

[0026] Output a ranking table of the contribution of each candidate pollution source, a 95% confidence interval, and a description of the main cross-media migration paths;

[0027] Based on the expected information gain of each potential verification sampling point, an active learning strategy is adopted to recommend the optimal supplementary sampling scheme: the expected information gain of each candidate sampling point is calculated, and the sampling recommendation order is arranged in descending order of information gain, so as to achieve a closed loop of traceability with the minimum verification cost.

[0028] Furthermore, the calculation process for the expected information gain is as follows:

[0029] EIG(k)=H(C)-E[H(C|sample_k)],

[0030] Where C is the set of pollution sources; H(C) is the information entropy of the current pollution source contribution distribution, representing the uncertainty of the current source tracing; EIG is the expected information gain, the larger the value, the greater the reduction in source tracing uncertainty after sampling at this point, and the higher the verification value; E[H(C|sample_k)]=∑o P(o|k)·H(C|sample_k=o), represents the mathematical expectation of the information entropy after sampling at point k; o represents all possible observation results at point k; P(o|k) is the prior prediction probability of obtaining observation o at point k; H(C|sample_k=o) is the information entropy of the posterior distribution after obtaining observation o;

[0031] The recommended optimal supplementary sampling scheme includes the best sampling time window and core detection indicators, which guide the on-site sampling work to complete the traceability verification at the lowest cost, and the sampling results are sent back to the system to optimize the cause-effect graph structure and model parameters, forming a continuous iterative technical closed loop.

[0032] A cross-media pollution tracing system based on causal graph networks includes: a data acquisition and preprocessing module, a multi-source heterogeneous data fusion module, a spatiotemporal causal graph construction module, a counterfactual reasoning tracing module, and a result output and active verification module;

[0033] The data acquisition and preprocessing module supports access to multiple industrial protocols and automatically completes the cleaning and standardization of multi-source data.

[0034] The multi-source heterogeneous data fusion module incorporates a temporal interpolation autoencoder and a multi-head attention fusion unit to achieve multi-granularity data alignment and cross-modal feature fusion.

[0035] The spatiotemporal causal graph construction module can automatically generate physical space edges and data-driven causal edges to complete the joint training of the hybrid model;

[0036] The counterfactual reasoning source tracing module integrates intervention calculation and uncertainty quantification units, and outputs the pollution source contribution and confidence interval;

[0037] The result output and active verification module has result visualization and sampling recommendation functions, and supports the export of standardized law enforcement evidence collection reports.

[0038] The beneficial effects of this invention are as follows: This invention achieves a revolutionary approach to source tracing across three media—water, air, and soil—by integrating causal graph networks and counterfactual reasoning. It incorporates monitoring data from these three media into the same spatiotemporal causal heterogeneous graph, fully reconstructing hidden cross-media pollution migration chains such as waste gas deposition and groundwater leakage. Compared to traditional single-media source tracing schemes, the accuracy of pollution source identification across the entire chain is improved by more than 40%, filling a technological gap in cross-media pollution supervision. Simultaneously, based on causal discovery and counterfactual reasoning, it achieves interpretable source tracing conclusions, effectively eliminating spurious correlations caused by confounding factors such as meteorology. The source tracing conclusions possess statistical validity. By studying causal evidence, it can be directly used as technical evidence in environmental law enforcement, significantly improving its judicial credibility. Through time-series autoencoders, it achieves deep fusion of multi-granularity heterogeneous data, unifying and aligning monitoring data from minute to quarterly levels into a unified model, increasing the utilization rate of monitoring data by more than 60%, and fully exploring the application value of multi-source monitoring data. It quantifies the uncertainty of source tracing and provides active sampling recommendations, which can reduce the workload of on-site sampling by more than 50% compared with traditional experience-based sampling, significantly reducing verification costs and forming a closed-loop system of "intelligent source tracing - on-site verification - model iteration", greatly improving the accuracy and operational efficiency of environmental supervision. Attached Figure Description

[0039] Figure 1 This is a flowchart of the cross-media pollution source tracing method based on causal graph networks in the embodiments. Detailed Implementation

[0040] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0041] Example 1: This example uses a provincial-level chemical industrial park covering 3.2 square kilometers as the application object. The park houses three typical types of enterprises: Enterprise A is a fine chemical production enterprise, equipped with a wastewater treatment plant and an RTO (Regenerative Thermal Oxidizer) waste gas incineration system, mainly emitting ammonia nitrogen, COD, and VOCs; Enterprise B is a pharmaceutical intermediate production enterprise, equipped with a wastewater treatment system and a waste gas condensation and recovery device, mainly emitting COD and VOCs; Enterprise C is a warehousing and logistics enterprise, only discharging domestic wastewater. A municipal-level surface water monitoring section B is set 2.3 km downstream of the park, and section A is set 1.5 km upstream as a background reference; a groundwater monitoring well W1 is set 480 m downstream of Enterprise A, and a groundwater monitoring well W2 is set 320 m laterally to Enterprise B.

[0042] Triggering event: At 14:00 on June 15, 2026, the automatic monitoring station at section B detected an abnormal increase in ammonia nitrogen concentration to 3.8 mg / L, exceeding the standard limit of 2.0 mg / L. Simultaneously, the permanganate index rose from the background value of 4.1 mg / L to 9.6 mg / L. Figure 1 As shown, the process for tracing the source of cross-media contamination includes the following steps:

[0043] Step 1: Data acquisition and preprocessing of multi-source heterogeneous environmental monitoring data.

[0044] The system synchronously collects eight categories of monitoring data through multiple protocol interfaces such as Modbus and TCP / IP. Specific information is as follows: Wastewater online monitoring data is collected from 5-minute particle size data of wastewater discharge outlets of enterprises A, B, and C, with core parameters being COD, ammonia nitrogen, and flow rate. The collection period is from 00:00 on June 14, 2026 to 16:00 on June 15, 2026. Exhaust gas CEMS monitoring data is collected from 1-hour particle size data of exhaust stacks of enterprises A and B, with core parameters being SO2, NOx, VOCs, and oxygen content. The collection period is the same as for wastewater. Surface water automatic monitoring data is collected from 4-hour particle size data of sections A and B, with core parameters being ammonia nitrogen, permanganate index, TP, and pH. The collection period is from June 1 to June 15, 2026. Groundwater monitoring data is collected from monitoring wells W1 and W2. The data includes monthly monitoring data, with core parameters being ammonia nitrogen, COD, and water level, and the most recent data being June 1, 2026; soil sampling data is collected from quarterly monitoring data at 6 sampling points around the enterprise, with core parameters being ammonia nitrogen, organic matter, and heavy metals, and the most recent data being April 15, 2026; regional meteorological data is collected from 1-hour granular data of the park's automatic meteorological station, with core parameters being wind direction, wind speed, precipitation, and temperature, and the collection period is from June 1 to June 15, 2026; enterprise operating condition data is collected from 1-hour granular data of the enterprise's A, B, and CDCS systems, with core parameters being production load rate and treatment facility operating status, and the collection period is from June 14 to June 15; GIS spatial data is collected from static data of the entire park, including water system network, groundwater flow field, and DEM elevation data.

[0045] Preprocessing stage: The 3σ criterion is used to remove outliers from each data source; linear interpolation is used to fill in short-term missing data such as wastewater and exhaust gas, and cubic spline interpolation is used to generate continuous time series for low-frequency data such as groundwater and soil; all parameters are standardized by Z-score and uniformly mapped to the standard normal distribution to eliminate dimensional differences.

[0046] Step 2: Spatiotemporal alignment and cross-modal fusion of heterogeneous data with multiple temporal granularities.

[0047] A temporal interpolation autoencoder (TIAE) was constructed, consisting of a two-layer bidirectional LSTM encoder with 128 hidden units per layer and a two-layer unidirectional LSTM decoder with 128 hidden units per layer. The model was trained using historical data from the past 180 days of the park, with a training loss function L = L_reconstruction + λ·L_smoothness. Here, L_reconstruction is the mean squared error, L_smoothness is the second-order difference penalty term between adjacent decoded values, and λ is a balance coefficient of 0.1. This balance coefficient aims to suppress abrupt noise in the decoded sequence while maintaining temporal reconstruction accuracy, resulting in a smoother temporal sequence that better reflects pollutant migration patterns. The batch size was set to 32, and the Adam optimizer was used with an initial learning rate of 0.001. After training, all heterogeneous time-series data were uniformly aligned into continuous sequences with a 1-hour granularity, achieving temporal dimension unification from minute-level to quarterly-level data.

[0048] The aligned data was divided into four modal groups: water quality parameters (ammonia nitrogen, COD, TP, etc.), meteorological parameters (wind direction, wind speed, precipitation, temperature), operating parameters (production load, facility operating status), and spatial coding (latitude, longitude, elevation, distance from the water system, and distance from the flow direction). A four-head attention mechanism was used for cross-modal fusion, with each attention head having a dimension of 32, resulting in a total output feature dimension of 128. During the fusion process, meteorological and spatial features were used as query vectors, and attention weights for different modalities were adaptively assigned to enhance the extraction of cross-media propagation features under meteorological and spatial constraints.

[0049] Step 3: Construction of cross-medium spatiotemporal causal heterogeneity graph.

[0050] Node set construction: A total of 10 nodes are set up, namely, enterprise A wastewater discharge outlet, enterprise A exhaust gas discharge outlet, enterprise B wastewater discharge outlet, enterprise B exhaust gas discharge outlet, enterprise C discharge outlet, section A, section B, monitoring well W1, monitoring well W2, and regional meteorological node Meteo.

[0051] Spatial boundary set construction: Spatial boundary sets are constructed strictly following the natural transport laws of pollutants. Based on GIS spatial analysis, five directed physical transport edges are generated: the hydraulic transport edge from enterprise A's wastewater discharge outlet to section B, with a downstream distance of 2.3km; the solute transport edge from enterprise A's wastewater discharge outlet to monitoring well W1, with a groundwater flow distance of 480m; the atmospheric diffusion edge from enterprise A's exhaust gas discharge outlet to section B, with a downwind distance of 1.8km; the atmospheric diffusion edge from enterprise B's exhaust gas discharge outlet to section B, located downwind of the prevailing wind; and the solute transport edge from enterprise B's wastewater discharge outlet to monitoring well W2.

[0052] Causal edge set construction: The PCMCI+ algorithm was applied to the aligned time series of all node pairs, with meteorological nodes fixed as condition variables, maximum time delay L_max=12, and significance level α=0.01. Three significant causal edges were ultimately detected: ammonia nitrogen sequence from enterprise A's wastewater discharge outlet → ammonia nitrogen sequence from section B (test statistic F=11.4, adjusted p=0.003); VOCs sequence from enterprise B's exhaust gas outlet → permanganate index sequence from section B (F=8.7, adjusted p=0.007); and ammonia nitrogen sequence from monitoring well W1 → ammonia nitrogen sequence from section B (F=7.3, adjusted p=0.009). The causal edge from monitoring well W1 further validates the cross-media pathway of enterprise A's wastewater leakage replenishing the river channel via groundwater.

[0053] Joint model training: A hybrid architecture of 2 layers of GATv2 and 2 layers of temporal Transformer was deployed. Each layer of GATv2 had 4-head attention and 64-dimensional hidden layers, while each layer of temporal Transformer had 4-head self-attention and 128-dimensional models. End-to-end synchronous training was performed using the multi-node concentration prediction error over the next 12 hours as the joint loss function. After training, the model achieved an RMSE of 0.42 mg / L for the 1-hour prediction of ammonia nitrogen at section B and an RMSE of 0.78 mg / L for the prediction of permanganate index, demonstrating good fitting ability for cross-media propagation patterns.

[0054] Step 4: Measuring pollution contribution based on counterfactual reasoning.

[0055] Using section B as the target node, the baseline value was set as the median emission value for the same period over the past 30 days for each node, and data from historical periods of abnormal emissions were excluded. Counterfactual interventions were implemented one by one: intervention was carried out at the wastewater discharge outlet of enterprise A, replacing the ammonia nitrogen emission value from 36.5 mg / L before the anomaly with the baseline value of 8.2 mg / L. After the intervention, the predicted ammonia nitrogen value at section B decreased from 3.54 mg / L to 1.32 mg / L, with an intervention effect ΔY1 = 2.22 mg / L; intervention was also carried out at the exhaust gas discharge outlet of enterprise B, reducing VOCs... The emission value was replaced from 210 mg / m³ before the anomaly to a baseline value of 45 mg / m³. After the intervention, the predicted permanganate index at section B decreased from 8.9 mg / L to 5.2 mg / L, with an intervention effect ΔY2 = 3.7 mg / L. At the intervention site C, after replacing the emission with the baseline value, the concentration change at the section was less than 0.1 mg / L, and the intervention effect was negligible. At the upstream background section A, after replacing the emission with the historical normal baseline level, the concentration change ΔYbackground = 0.35 mg / L. The historical normal baseline level was taken as the median emission monitoring values ​​of the candidate source node over the past 30 days, during the same period as the anomaly, and data from historical anomaly emission periods were excluded to ensure that the baseline represents the true normal emission level.

[0056] The formula for calculating the causal contribution of a single pollution source is Ci=ΔYi / ΣΔYj, where ΔYi is the change in the predicted value of the target section before and after the intervention of the pollution source, ΣΔYj is the sum of the changes of all candidate pollution sources, and the sum of the contributions of all pollution sources is 1, so that the causal contribution is normalized to the interval [0,1]. The larger the value, the higher the causal contribution.

[0057] After normalizing the causal contribution of each pollution source, 100 Monte Carlo Dropout samplings were performed with a random dropout probability r=0.3 to obtain a 95% confidence interval. The final statistical results show that: the average contribution of direct wastewater discharge from Company A is 0.47, with a 95% confidence interval of [0.35, 0.59], and the migration path is: direct wastewater discharge → 2.3km downstream of the water system → section B; the average contribution of exhaust gas emissions from Company B is 0.31, with a 95% confidence interval of [0.20, 0.42], and the migration path is: VOCs atmospheric emissions → precipitation deposition → surface runoff → section B; the average contribution of wastewater leakage from Company A is 0.09, with a 95% confidence interval of [0.02, 0.18], and the migration path is: wastewater leakage → groundwater migration → river baseflow replenishment → section B; the average contribution of upstream background water is 0.10, with a 95% confidence interval of [0.05, 0.15]; and the average contribution of domestic wastewater discharge from Company C is 0.03, which is negligible.

[0058] Conclusion of source tracing: The ammonia nitrogen anomaly at section B on June 15 was caused by the direct discharge of wastewater from enterprise A and the cross-media sedimentation of exhaust gas from enterprise B. Enterprise A is the primary responsible party, and enterprise B is the secondary responsible party. There was also a small amount of groundwater leakage and the superposition of upstream background effects.

[0059] Step 5: Outputting source tracing results and actively validating recommendations.

[0060] The system automatically outputs a standardized source tracing report, which includes a ranking table of the contribution of each candidate pollution source, a 95% confidence interval, a visualization of cross-media migration paths, and a conclusion on the determination of the responsible party. It supports exporting to PDF format for law enforcement evidence collection.

[0061] Simultaneously, the expected information gain (EIG) of each potential sampling point is calculated to generate a priority sampling recommendation scheme: water sampling 100m downstream of the discharge outlet of enterprise A (EIG=0.47) can directly verify the causal chain of wastewater discharge and has the highest priority; soil / sediment sampling 500m downwind of enterprise B (EIG=0.34) can verify the cross-media link of atmospheric deposition → surface runoff; river cross-section sampling between monitoring well W1 and section B (EIG=0.19) can verify the transmission pathway of groundwater recharge to the river. The recommended sampling time window is during the period of anomaly, and sampling should be completed within 24 hours. After sampling, the measured data will be returned to the system to further optimize the causal graph structure and model parameters, forming a complete closed loop of "source tracing-verification-iteration".

[0062] In the description of embodiments of the present invention, the terms "first," "second," "third," and "fourth" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first," "second," "third," or "fourth" may explicitly or implicitly include one or more of that feature. In the description of the present invention, unless otherwise stated, "a plurality of" means two or more.

[0063] In the description of embodiments of the present invention, the term "and / or" is used only to describe the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Additionally, the character " / " generally indicates that the preceding and following associated objects are in an "or" relationship.

[0064] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A cross-media pollution source tracing method based on causal graph networks, characterized in that, Includes the following steps: Step 1: Collect multi-source heterogeneous environmental monitoring data, including water, air, soil, and enterprise operating conditions, and perform preprocessing. Step 2: Perform spatiotemporal alignment and cross-modal fusion on heterogeneous data with multiple time granularities. The spatiotemporal alignment specifically involves constructing a temporal interpolation autoencoder, wherein the encoder uses a bidirectional LSTM to map monitoring sequences with arbitrary sampling frequencies to a fixed-dimensional latent space, and the decoder uses a unidirectional LSTM to output a continuous sequence with a uniform time granularity. The cross-modal fusion is based on a multi-head attention mechanism to perform weighted fusion of the aligned water quality parameter sequence, meteorological parameter sequence, enterprise operating condition sequence, and static spatial encoding, and outputs a fixed-dimensional fusion feature tensor. Step 3: Construct a cross-media spatiotemporal causal heterogeneous graph, which specifically includes: using enterprise wastewater discharge outlets, exhaust gas discharge outlets, surface water monitoring sections, and groundwater monitoring wells as node sets, and adding meteorological nodes, constructing spatial edge sets and causal edge sets, using GATv2 graph attention network to learn the spatial propagation intensity between nodes, and using temporal Transformer to capture the temporal dependency patterns inside nodes, and jointly training both end-to-end, with the optimization objective being to minimize the multi-step prediction error of monitoring nodes; Step 4: Quantify pollution contribution based on counterfactual reasoning. This includes: when a monitoring section with an abnormal environmental quality signal is detected, using that section as the target node, performing a do-calculus counterfactual intervention operation on each candidate pollution source node according to the causal heterogeneity graph. The do-calculus counterfactual intervention operation specifically involves: replacing the emission characteristic values ​​of the candidate source nodes with historical normal baseline levels, keeping the states of other nodes in the graph unchanged, and recalculating the change in the predicted value of the target section through forward propagation; quantifying the contribution of each pollution source to the current pollution anomaly based on the change; and using the Monte Carlo Dropout method to perform multiple independent forward propagation samplings to obtain the empirical distribution and 95% confidence interval of the contribution of each candidate pollution source. Step 5: Output the source tracing results and use an active learning strategy to recommend the optimal supplementary sampling scheme.

2. The cross-media pollution source tracing method based on causal graph networks according to claim 1, characterized in that, The collected multi-source heterogeneous environmental monitoring data specifically includes wastewater online monitoring data, exhaust gas CEMS data, surface water automatic station data, groundwater monitoring well data, soil sampling data, regional meteorological data, enterprise operating condition data, and GIS spatial data.

3. The cross-media pollution source tracing method based on causal graph networks according to claim 1, characterized in that, The preprocessing includes performing missing value imputation, outlier removal, and standardization on each data source. The missing value imputation adopts a hierarchical strategy: short-term missing values ​​in minute-level and hourly high-frequency data are filled with linear interpolation, long-term missing values ​​are filled with the historical mean of the same period, and monthly and quarterly low-frequency data are generated into continuous time series using cubic spline interpolation. The outlier removal adopts the 3σ criterion, replacing outliers that deviate from the mean by more than three standard deviations with adjacent valid values. The standardization process adopts the Z-score normalization method to map all monitoring data to a standard normal distribution.

4. The cross-media pollution source tracing method based on causal graph networks according to claim 1, characterized in that, In step 2, the encoder uses a two-layer bidirectional LSTM network with 128 hidden units per layer, and the decoder uses a two-layer unidirectional LSTM network with 128 hidden units per layer. The output is a continuous time series with a granularity of 1 hour. The training loss function is L = L_reconstruction + λ·L_smoothness, where L_reconstruction represents the reconstruction error, L_smoothness represents the smoothness constraint, and λ is the balance coefficient. The cross-modal fusion process uses meteorological parameters and spatial codes as query vectors, and water quality and operating condition parameters as key and value vectors. It adaptively calculates the attention weights of different modalities, strengthens the extraction of cross-media propagation features under meteorological and spatial constraints, and outputs a fixed-dimensional fusion feature tensor.

5. The cross-media pollution source tracing method based on causal graph networks according to claim 1, characterized in that, The spatial edge set in step 3 is established based on the physical relationships of environmental media transmission, including hydraulic transmission edges, solute transport edges, atmospheric diffusion edges, and surface runoff edges; the causal edge set is established by performing the PCMCI+ algorithm on the monitoring time series of each node pair, and under the premise of controlling meteorological variables as conditional factors, identifying significant conditional Granger causal relationships, and retaining only the causal edges that pass the significance test.

6. The cross-media pollution source tracing method based on causal graph networks according to claim 5, characterized in that, The hydraulic transmission edge is generated based on the upstream and downstream topological relationship of the water system, and its direction is from upstream to downstream. The solute transport edge is generated based on groundwater flow field data and corresponds to the direction of solute migration in groundwater. The atmospheric diffusion edge is generated based on the regional prevailing wind direction and the relative position of the emission source; The surface runoff edge is generated based on DEM elevation and soil permeability coefficient; The specific construction process of the causal edge set is as follows: the potential parent node set of each node is initially screened through the PC algorithm to reduce the size of the condition variable; the instantaneous conditional independence MCI test is performed, the meteorological node is fixed as the condition factor throughout the process to eliminate meteorological interference, the maximum time lag L_max is set to 12 hours, the significance level α=0.01, and only the significant causal edges that pass the modified p-value test are retained.

7. The cross-media pollution source tracing method based on causal graph networks according to claim 1, characterized in that, In step 4, the contribution of each pollution source to the current pollution anomaly is quantified based on the change amount. Specifically, the causal contribution of a candidate pollution source is defined as the ratio of the change amount corresponding to that source to the sum of the changes of all candidate sources, normalized to the interval [0,1]. The larger the value, the higher the causal contribution.

8. The cross-media pollution source tracing method based on causal graph networks according to claim 1, characterized in that, Step 5 specifically includes: Output a ranking table of the contribution of each candidate pollution source, a 95% confidence interval, and a description of the main cross-media migration paths; Based on the expected information gain of each potential verification sampling point, an active learning strategy is adopted to recommend the optimal supplementary sampling scheme: the expected information gain of each candidate sampling point is calculated, and the sampling recommendation order is arranged in descending order of information gain, so as to achieve a closed loop of traceability with the minimum verification cost.

9. A cross-media pollution source tracing method based on causal graph networks according to claim 8, characterized in that, The calculation process for the expected information gain is as follows: EIG(k)=H(C)-E[H(C|sample_k)], Where C is the set of pollution sources; H(C) is the information entropy of the current pollution source contribution distribution, representing the uncertainty of the current source tracing; EIG is the expected information gain, the larger the value, the greater the reduction in source tracing uncertainty after sampling at this point, and the higher the verification value; E[H(C|sample_k)]=∑o P(o|k)·H(C|sample_k=o), represents the mathematical expectation of the information entropy after sampling at point k; o represents all possible observation results at point k; P(o|k) is the prior prediction probability of obtaining observation o at point k; H(C|sample_k=o) is the information entropy of the posterior distribution after obtaining observation o; The recommended optimal supplementary sampling scheme includes the best sampling time window and core detection indicators, which guide the on-site sampling work to complete the traceability verification at the lowest cost, and the sampling results are sent back to the system to optimize the cause-effect graph structure and model parameters, forming a continuous iterative technical closed loop.

10. A cross-media pollution source tracing system based on causal graph networks, used to implement the cross-media pollution source tracing method based on causal graph networks as described in any one of claims 1 to 9, characterized in that, include: Data acquisition and preprocessing module, multi-source heterogeneous data fusion module, spatiotemporal causal graph construction module, counterfactual reasoning and tracing module, result output and active verification module; The data acquisition and preprocessing module supports access to multiple industrial protocols and automatically completes the cleaning and standardization of multi-source data. The multi-source heterogeneous data fusion module incorporates a temporal interpolation autoencoder and a multi-head attention fusion unit to achieve multi-granularity data alignment and cross-modal feature fusion. The spatiotemporal causal graph construction module can automatically generate physical space edges and data-driven causal edges to complete the joint training of the hybrid model; The counterfactual reasoning source tracing module integrates intervention calculation and uncertainty quantification units, and outputs the pollution source contribution and confidence interval; The result output and active verification module has result visualization and sampling recommendation functions, and supports the export of standardized law enforcement evidence collection reports.