An atmospheric pollution source tracing method and system based on a graph neural network

By constructing a dynamic bipartite graph based on graph neural networks and optimizing attention weights, the problems of idealized physical assumptions and limited accuracy in existing methods for tracing atmospheric pollution sources are solved. This enables accurate inversion of pollution source contribution rates in complex atmospheric environments, improving the accuracy and interpretability of source tracing.

CN123179087APending Publication Date: 2026-11-27WESTERN THIRD-PARTY INSPECTION GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing methods for tracing the sources of air pollution have problems such as idealized physical assumptions, non-unique inversion results, and limited accuracy. In particular, they are difficult to accurately invert the contribution rate of pollution sources in complex atmospheric environments.

Method used

A graph neural network-based approach is adopted to construct a dynamic bipartite graph by preprocessing pollution source emission inventories, monitoring station observation data, and meteorological field grid data. Embedding vectors of nodes and edges are generated using an embedding network, and attention weights are optimized through multi-round bidirectional message passing to invert the pollution source contribution rate.

Benefits of technology

It improves the accuracy and physical interpretability of pollution source contribution rate inversion, and can accurately invert the contribution ratio of each pollution source to the monitoring station under complex atmospheric conditions, providing a quantitative basis for air pollution prevention and control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179087A_ABST
    Figure CN123179087A_ABST
Patent Text Reader

Abstract

The application relates to an atmospheric pollution source tracing method and system based on a graph neural network. The method comprises the following steps: processing multi-source monitoring data to obtain a standardized feature matrix; taking pollution sources and monitoring stations as nodes, dynamically determining a directed edge according to a meteorological wind direction, constructing a two-part graph, and calculating a physical initial weight of each edge; inputting node features and meteorological edge features into an embedding network to obtain embedding vectors of a unified dimension; fusing the physical initial weight and meteorological constraints to calculate an initial attention weight, iteratively updating node representation and attention weight through multiple rounds of message passing, and obtaining a final attention weight matrix and node time sequence representation; calculating an emission intensity estimate value and a concentration prediction value based on the time sequence representation, and combining the final attention weight to inverse a contribution rate matrix of each pollution source to each monitoring station. The method fuses meteorological physical constraints and iterative learning of the graph neural network, effectively improves the accuracy and physical interpretability of atmospheric pollution source reverse tracing under a complex meteorological scenario.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer technology, and in particular relates to a method and system for tracing atmospheric pollution sources based on graph neural networks. Background Technology

[0002] Air pollution source tracing, also known as air pollution source apportionment or source contribution rate inversion, refers to the technical process of inversely inferring the contribution ratio of each potential pollution source to the pollutant concentration at a specific monitoring point based on time-series data of pollutant concentrations observed from a limited number of environmental monitoring stations, combined with meteorological field information and prior information about pollution sources. This technology is an important scientific basis for formulating precise air pollution prevention and control strategies, and its accuracy is directly related to the effectiveness of pollution control measures and the rationality of resource allocation.

[0003] Currently, three main technical approaches are used for tracing the sources of air pollution. The first approach is based on physical diffusion models, with the Gaussian diffusion model being the most typical. The Gaussian diffusion model describes the transport process of pollutants from emission sources to monitoring stations using analytical formulas. Its simple form and high computational efficiency have led to its widespread use in practical applications. However, the model's core assumptions—that meteorological conditions remain constant during diffusion, the underlying surface is flat and uniform, pollutants are inert and do not undergo chemical reactions, and the contributions of each pollution source to the receptor are linearly additive—are almost entirely invalid in real atmospheric environments. In the actual atmosphere, wind speed and direction fluctuate continuously on a minute-by-minute scale, urban building clusters and complex terrain significantly affect airflow, secondary pollutants undergo complex nonlinear chemical reactions during atmospheric transport, and when multiple sources coexist, pollutants emitted from each source mix and react with each other in the atmosphere. These factors result in the Gaussian model having severely insufficient accuracy in tracing sources in complex real-world scenarios.

[0004] Specifically, the second category is receptor-based methods, including chemical mass balance models and positive matrix factorization. Chemical mass balance models assume that the pollutant concentration at the receptor is a linear weighted sum of contributions from each source, requiring that the chemical fingerprints of each pollution source be significantly different and remain unchanged during atmospheric transport. When different pollution sources have similar chemical spectra, the model cannot effectively distinguish them; when pollutants undergo chemical transformation in the atmosphere, the assumption of source spectrum stability fails. Positive matrix factorization decomposes the observed concentration matrix into the product of the source contribution matrix and the source spectrum matrix, but its decomposition results suffer from serious mathematical non-uniqueness problems. Different factor settings may lead to completely different source apportionment conclusions, and its physical interpretability is poor.

[0005] Specifically, the third category is based on neural networks, which utilize neural networks for air pollution source tracing. The core idea is to first run a physical diffusion model to obtain a simulated concentration field, and then construct a graph neural network model for training based on the simulation results. The fundamental limitation of this method is that the training of the graph neural network model relies on the simulation results of the physical diffusion model as input. This means that inherent errors in the physical diffusion model, such as biases caused by linear assumptions, uncertainties in meteorological parameter values, and simplifications of complex terrain, will be passed to the neural network through the training data. Therefore, the upper limit of the method's accuracy is limited by the accuracy of the physical diffusion model it relies on. Furthermore, existing research has used graph attention networks for air pollutant concentration prediction, but its task is essentially a forward problem—predicting future concentration distribution given source emissions and historical concentration data. Source contribution rate inversion, on the other hand, is a backward problem—inferring the contribution ratio of each pollution source to the observed concentration from known monitoring concentration observations. The backward problem is mathematically ill-conditioned, facing the challenges of non-unique solutions and high sensitivity to observational noise. Its technical difficulty and processing logic are fundamentally different from forward prediction. Currently, source contribution rate inversion methods based on graph neural networks are still relatively undeveloped. Summary of the Invention

[0006] Therefore, it is necessary to provide a graph neural network-based method and system for tracing atmospheric pollution sources to address the aforementioned technical problems. This aims to solve the problems of idealized physical assumptions, non-unique inversion results, and limited accuracy in existing source tracing methods, and to improve the accuracy and physical interpretability of pollution source contribution rate inversion under complex atmospheric conditions.

[0007] Firstly, this application provides a method for tracing atmospheric pollution sources based on graph neural networks, including:

[0008] S1. Preprocess the pollution source emission inventory data, monitoring station observation data, and meteorological field grid data to obtain a standardized pollution source feature matrix, a standardized monitoring station feature matrix, and a meteorological field feature matrix. The pollution source emission inventory data includes the emission intensity value and first location coordinates of each pollution source, and the monitoring station observation data includes the pollutant concentration observation value and second location coordinates of each monitoring station.

[0009] S2. Based on the standardized pollution source feature matrix and the standardized monitoring station feature matrix, each pollution source is taken as the first type of node and each monitoring station is taken as the second type of node. Based on the wind direction information at each moment in the meteorological field feature matrix, it is determined whether there is a directed edge between each pollution source and each monitoring station. Based on the determination result, a bipartite graph containing the first type of node, the second type of node and the directed edge is constructed, and the physical initial weight of each directed edge is calculated.

[0010] S3. Input the features of each first type node and each second type node in the bipartite graph into the first embedding network and the second embedding network respectively to obtain the embedding vector of the pollution source node and the embedding vector of the monitoring station node. Generate the meteorological feature vector of each directed edge according to the meteorological field feature matrix. Input the meteorological feature vector of each directed edge in the bipartite graph into the third embedding network to obtain the embedding vector of the meteorological field constraint edge.

[0011] S4. Based on the pollution source node embedding vector, monitoring station node embedding vector, meteorological field constraint edge embedding vector, and physical initial weights, calculate the initial attention weights of the meteorological field constraints to obtain the initial attention weight matrix. Based on the initial attention weight matrix, perform multiple rounds of bidirectional message passing on the bipartite graph. After each round of message passing, recalculate the attention weights based on the updated node representations to obtain the iteratively optimized final attention weight matrix and the temporal final representation vector of each node in the bipartite graph.

[0012] S5. Calculate the emission intensity estimate of each pollution source and the pollutant concentration prediction of each monitoring station based on the time-series final representation vector of each node. Calculate the contribution rate matrix of each pollution source to each monitoring station based on the final attention weight matrix and the emission intensity estimate of each pollution source.

[0013] Secondly, this application also provides an atmospheric pollution source tracing system based on graph neural networks, including:

[0014] The data standardization preprocessing module is used to preprocess the pollution source emission inventory data, monitoring station observation data, and meteorological field grid data to obtain the standardized pollution source feature matrix, the standardized monitoring station feature matrix, and the meteorological field feature matrix. The pollution source emission inventory data includes the emission intensity value and first location coordinates of each pollution source, and the monitoring station observation data includes the pollutant concentration observation value and second location coordinates of each monitoring station.

[0015] The dynamic bipartite graph construction module is used to determine whether there are directed edges between each pollution source and each monitoring station based on the standardized pollution source feature matrix and the standardized monitoring station feature matrix, with each pollution source as the first type of node and each monitoring station as the second type of node. Based on the wind direction information at each time in the meteorological field feature matrix, it constructs a bipartite graph containing the first type of nodes, the second type of nodes and the directed edges, and calculates the physical initial weight of each directed edge.

[0016] The feature embedding unified coding module is used to input the features of each first type node and each second type node in the bipartite graph into the first embedding network and the second embedding network respectively to obtain the pollution source node embedding vector and the monitoring station node embedding vector. Based on the meteorological field feature matrix, the meteorological feature vector of each directed edge is generated. The meteorological feature vector of each directed edge in the bipartite graph is input into the third embedding network to obtain the meteorological field constraint edge embedding vector.

[0017] The attention iterative optimization module is used to calculate the initial attention weights of meteorological field constraints based on the embedding vectors of pollution source nodes, monitoring station nodes, meteorological field constraint edges, and physical initial weights, thus obtaining the initial attention weight matrix. Based on the initial attention weight matrix, multiple rounds of bidirectional message passing operations are performed on the bipartite graph. After each round of message passing, the attention weights are recalculated based on the updated node representations to obtain the iteratively optimized final attention weight matrix and the final temporal representation vector of each node in the bipartite graph.

[0018] The contribution rate accurate inversion module is used to calculate the emission intensity estimate of each pollution source and the pollutant concentration prediction of each monitoring station based on the time series final representation vector of each node, and to calculate the contribution rate matrix of each pollution source to each monitoring station based on the final attention weight matrix and the emission intensity estimate of each pollution source.

[0019] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the first aspect.

[0020] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the first aspect.

[0021] The aforementioned method and system for tracing atmospheric pollution sources based on graph neural networks first standardizes and preprocesses multi-source monitoring, emission, and meteorological data, providing reliable input features for graph model construction. Second, a dynamic bipartite graph of pollution sources and monitoring stations is constructed, and directed edges for transmission are determined based on wind direction conditions and assigned initial physical weights, introducing prior knowledge of atmospheric transmission into the graph structure. Subsequently, three sets of embedding networks generate low-dimensional embedding vectors for pollution sources, monitoring stations, and meteorological constraint edges, achieving a unified representation of heterogeneous features. Initial attention weights are calculated by combining node and edge embeddings and physical weights, and multiple rounds of bidirectional message passing are conducted on the bipartite graph, iteratively updating the attention to obtain a node temporal representation and optimized attention matrix that considers both physical constraints and data features. Finally, emission intensity and pollutant concentration are inverted using the node temporal representation, and the pollution source contribution rate matrix is ​​solved using the optimized attention matrix, realizing reverse tracing of atmospheric pollution sources and providing quantitative source contribution evidence for precise prevention and control. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 A flowchart of an atmospheric pollution source tracing method based on graph neural networks is provided as an exemplary embodiment of the present invention;

[0024] Figure 2 This is a schematic diagram of an atmospheric pollution source tracing system based on a graph neural network, provided as an exemplary embodiment of the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0026] In one embodiment, such as Figure 1As shown, a method for tracing atmospheric pollution sources based on graph neural networks is provided. This embodiment illustrates the application of this method to a terminal. It is understood that this method can also be applied to a server, and to a system including both a terminal and a server, and implemented through the interaction between the terminal and the server. In this embodiment, the method includes S1-S5, and this application uses a graph neural network as the core computing model. The graph neural network includes a graph construction module, a node feature embedding module, a graph attention calculation module, and a readout module. Among them, S2 corresponds to the graph construction module, S3 corresponds to the node feature embedding module, S4 corresponds to the graph attention calculation module and the message passing module, and S5 corresponds to the readout module. Specifically, the method includes:

[0027] S1. Preprocess the pollution source emission inventory data, monitoring station observation data, and meteorological field grid data to obtain a standardized pollution source feature matrix, a standardized monitoring station feature matrix, and a meteorological field feature matrix. The pollution source emission inventory data includes the emission intensity value and first location coordinates of each pollution source, and the monitoring station observation data includes the pollutant concentration observation value and second location coordinates of each monitoring station.

[0028] Specifically, complete pollution source emission inventory data, time-series observation data from ground monitoring stations, and gridded meteorological field data covering the entire region can be collected first. However, these three types of raw data come from different sources, have significant differences in dimensions, and suffer from issues such as sampling time misalignment, local missing data, and anomalous noise, making them unsuitable for direct use in graphical model feature learning. Therefore, the raw data can undergo unified preprocessing. For example, time alignment can be used to normalize all data to the same time resolution, eliminating time-series misalignment; missing value completion and outlier removal can improve data quality; and standardization transformation can eliminate the magnitude differences between different physical indicators. Through a standardized data preprocessing process, discrete, heterogeneous, and dimensionally inconsistent raw observation information can be converted into a standardized feature matrix with regular dimensions, stable distribution, and direct applicability to model calculations. This provides a reliable and unified basic input for subsequent operations, avoiding the problems of model training distortion and source tracing result deviation caused by noise and dimensional bias in the raw data.

[0029] S2. Based on the standardized pollution source feature matrix and the standardized monitoring station feature matrix, each pollution source is taken as the first type of node and each monitoring station is taken as the second type of node. Based on the wind direction information at each moment in the meteorological field feature matrix, it is determined whether there is a directed edge between each pollution source and each monitoring station. Based on the determination result, a bipartite graph containing the first type of node, the second type of node and the directed edge is constructed, and the physical initial weight of each directed edge is calculated.

[0030] Specifically, this step aims to model the spatial relationships of atmospheric pollutant transport as a learnable graph topology. Unlike traditional static graph structures or fully connected graphs, a heterogeneous bipartite graph structure between pollution sources and monitoring stations can be adopted to distinguish between emission source nodes and receptor monitoring nodes, aligning with the unidirectional "source-to-receptor" physical logic of atmospheric pollution transport. Simultaneously, the validity of directed edges between nodes can be dynamically determined using time-by-time meteorological wind direction information, retaining only source-receptor associations that conform to atmospheric transport laws (i.e., monitoring stations are located downwind of pollution sources), and eliminating invalid connections without practical transport significance under meteorological conditions, allowing the graph topology to evolve dynamically with the meteorological field in real time. Based on this, the initial physical weights of valid directed edges can be calculated by combining atmospheric diffusion and transport laws, incorporating prior physical information such as distance, wind direction matching degree, and wind speed into the graph edge weights. Through the meteorological-driven dynamic bipartite graph construction, a physically consistent initial graph structure and edge weight constraints are provided for subsequent graph attention calculations, avoiding the shortcomings of traditional fixed graph structures that cannot reflect the time-varying characteristics of transport direction, and reducing redundant computation.

[0031] S3. Input the features of each first-class node and each second-class node in the bipartite graph into the first embedding network and the second embedding network respectively to obtain the embedding vector of the pollution source node and the embedding vector of the monitoring station node. Generate the meteorological feature vector of each directed edge according to the meteorological field feature matrix. Input the meteorological feature vector of each directed edge in the bipartite graph into the third embedding network to obtain the embedding vector of the meteorological field constraint edge.

[0032] Specifically, since pollution source node features, monitoring station node features, and meteorological edge features belong to a heterogeneous feature system with completely different original feature dimensions and physical semantics, cross-node attention matching and message passing computation cannot be directly performed in the same computational space. Therefore, this step uses three sets of independent first, second, and third embedding networks to perform nonlinear mapping transformations on the two types of node features and edge features, respectively. This maps the original physical features with different semantics and dimensions to the same latent vector space, generating node embedding vectors and meteorological constraint edge embedding vectors with consistent dimensions and fused semantics. This achieves deep fusion and unified representation of emission features, monitoring concentration features, geographical location features, and meteorological transmission features, providing a unified feature expression basis for the subsequent graph attention computation module.

[0033] S4. Based on the pollution source node embedding vector, monitoring station node embedding vector, meteorological field constraint edge embedding vector, and physical initial weights, calculate the initial attention weights of the meteorological field constraints to obtain the initial attention weight matrix. Based on the initial attention weight matrix, perform multiple rounds of bidirectional message passing on the bipartite graph. After each round of message passing, recalculate the attention weights based on the updated node representations to obtain the iteratively optimized final attention weight matrix and the temporal final representation vector of each node in the bipartite graph.

[0034] Specifically, this step corresponds to the graph attention calculation module and message passing module in a graph neural network. It is the core computational process of the graph attention network, including two major stages: attention weight initialization and message passing. In the attention initialization stage, node feature similarity, meteorological transmission constraint features, and physical prior initial weights can be fused to construct an initial attention weight matrix constrained by the meteorological field. This ensures that the initial association weights of the model possess both data-driven characteristics and atmospheric diffusion physical prior constraints, overcoming the shortcomings of standard graph attention networks that rely entirely on data-driven approaches and are prone to learning physically unreasonable associations (such as assigning high attention weights to downwind pollution sources). In the message passing stage, multiple rounds of bidirectional message passing operations can be performed on the bipartite graph: forward passing achieves feature aggregation from pollution source nodes to monitoring station nodes, enabling the representation of monitoring station nodes to incorporate emission information from surrounding pollution sources; backward passing achieves feature aggregation from monitoring station nodes to pollution source nodes, enabling the representation of pollution source nodes to incorporate concentration observation information from the monitoring stations they affect. Simultaneously, this step can also employ a mechanism for collaborative iterative updates of attention weights and node representations. That is, after each round of message passing updates the node features, the attention weights are recalculated based on the updated node representations combined with meteorological constraint edge embeddings. Through multiple iterations, the node representation and attention weights correct each other and converge collaboratively, gradually eliminating the static bias of the initial physical weights and the false correlations caused by data noise. Finally, an optimized attention weight matrix that takes into account both physical laws and real observation data, as well as the node temporal final representation vector containing spatiotemporal multi-hop neighborhood information, are obtained, thereby greatly improving the model's ability to fit complex nonlinear transmission relationships.

[0035] S5. Calculate the emission intensity estimate of each pollution source and the pollutant concentration prediction of each monitoring station based on the time-series final representation vector of each node. Calculate the contribution rate matrix of each pollution source to each monitoring station based on the final attention weight matrix and the emission intensity estimate of each pollution source.

[0036] Specifically, based on the node time-series representation vector obtained through iterative optimization, the nonlinear mapping relationship between deep node features and actual emissions and concentration observations can be explored. This allows for the fitting of pollution source emission intensity with pollutant concentrations at monitoring stations, ensuring that the model can reproduce the true evolution of air pollution. Furthermore, by combining the final attention weight matrix, which has undergone multiple rounds of iterative optimization and possesses both physical rationality and data-driven adaptability, with the real-time emission intensity of each pollution source, the contribution ratio of different pollution sources to the pollutant concentrations at each monitoring station can be quantitatively solved. This completes the ill-conditioned source tracing solution for back-deriving the source contribution rate from monitoring concentration observation data.

[0037] The above method first preprocesses the three types of data to obtain the corresponding standardized feature matrices, providing a data foundation for graph structure modeling. Secondly, using pollution sources and monitoring stations as two types of nodes, the existence of directed edges is dynamically determined based on wind direction information at various times in the meteorological field, constructing a bipartite graph structure. This overcomes the deficiency of traditional static graph structures in reflecting the time-varying characteristics of atmospheric transport direction. Furthermore, the physical initial weights of each edge are calculated by combining wind speed, wind direction consistency, and distance, providing physical prior constraints for the calculation of attention weights. Node features and edge meteorological features are input into independent embedding networks to obtain embedding vectors in a unified vector space, achieving modal alignment of multi-source heterogeneous features. Initial attention weights constrained by the meteorological field are calculated based on node embedding, edge embedding, and physical initial weights. Attention weights and node representations are iteratively updated through multiple rounds of bidirectional message passing, solving the problem that fixed attention weights cannot adapt to dynamic changes in node representations. Finally, based on the optimized node representations and final attention weights, the contribution rate matrix of each pollution source to each monitoring station is inverted, realizing an end-to-end mapping from monitoring data to source contribution rates, providing technical support for precise source tracing of air pollution.

[0038] In one embodiment, the atmospheric pollution source tracing method S2 based on graph neural networks provided in this application may include:

[0039] S21. Based on the standardized pollution source feature matrix and the standardized monitoring station feature matrix, calculate the geographical azimuth of each pollution source to each monitoring station according to the first location coordinates of each pollution source and the second location coordinates of each monitoring station.

[0040] S22. Based on the meteorological field characteristic matrix, extract the average wind direction along the transmission path between each pollution source and each monitoring station at each time point;

[0041] S23. Calculate the angle between the geographical azimuth and the average wind direction as an indicator of transmission consistency.

[0042] S24. When the transmission consistency index is less than 90 degrees and the distance between the pollution source and the monitoring station is less than the preset maximum transmission distance, the directed edge is determined to exist; otherwise, the directed edge is determined to not exist.

[0043] S25. For each directed edge that is determined to exist, construct a bipartite graph with each pollution source as the first type of node and each monitoring station as the second type of node.

[0044] S26. For each directed edge that is determined to exist, calculate the initial physical weight of each directed edge based on the average wind speed on the transmission path, the transmission consistency index, and the distance between the pollution source and the monitoring station.

[0045] Specifically, S21 to S26 above provide detailed constraints on the bipartite graph construction process. This allows for the dynamic determination of the existence of directed edges using meteorological wind direction information, enabling the graph topology to evolve in real-time with weather conditions. Simultaneously, the calculation of initial physical weights provides prior constraints consistent with atmospheric diffusion patterns for the subsequent attention mechanism, thus addressing the technical problems of traditional fixed graph structures failing to reflect the time-varying characteristics of transmission directions and the lack of physical interpretability in purely data-driven models. In S21, the first location coordinates of each pollution source (i.e., longitude and latitude) can be read from the standardized pollution source feature matrix, while the second location coordinates of each monitoring station (i.e., longitude and latitude) can be read from the standardized monitoring station feature matrix. For each pair of pollution sources and monitoring stations, the geographic azimuth angle is calculated based on the difference in their longitude and latitude. The geographic azimuth angle is defined as the clockwise angle between the direction line from the pollution source location to the monitoring station location and true north, with a range of 0 to 360 degrees. For example, the specific calculation method for the geographic azimuth angle is as follows:

[0046]

[0047] in, Indicates pollution source Pointing to monitoring station The geographical azimuth, in degrees; , This represents the difference in longitude between the monitoring station and the pollution source, in degrees. Indicates the latitude of the monitoring station, in degrees; This represents the latitudinal difference between the monitoring station and the pollution source, expressed in degrees. This is a four-quadrant arctangent function, and its return value needs to be converted to an angle value within the range of 0 degrees to 360 degrees. This geographic azimuth represents the azimuthal relationship between the pollution source and the monitoring station in static geographic space. That is, if meteorological conditions are ignored, for a pollution source to affect a certain monitoring station, the pollution source must be located in the direction of the monitoring station's arrival.

[0048] Specifically, the meteorological field feature matrix contains spatially gridded meteorological data of the study area at various times. The gridded data records information such as wind speed, wind direction, temperature, humidity, and atmospheric stability category at each grid point. For each pair of pollution sources and monitoring stations, the path connecting the pollution source location to the monitoring station location can be determined first. Then, the grid points along the path or within a preset range near the path are located from the meteorological field feature matrix. The wind direction data of these grid points at various times is read, and the spatial average of the read wind direction data is performed to obtain the average wind direction along the transmission path. This average wind direction characterizes the average wind direction effect experienced by pollutants along their actual transport path. It is also expressed as a clockwise angle relative to true north, with a value ranging from 0 to 360 degrees. It should be noted that wind direction in meteorology is defined as the direction from which the wind blows. Therefore, when the wind direction coincides with the geographical azimuth, it indicates that the wind is blowing precisely from the pollution source towards the monitoring station, resulting in the highest pollutant transport efficiency.

[0049] Furthermore, for each pair of pollution sources and monitoring stations, the angle between the geographical azimuth obtained in S21 and the average wind direction obtained in S22 can be calculated, and this angle can be used as a transmission consistency indicator. The calculation method is as follows:

[0050]

[0051] in, Indicates time pollution source With monitoring stations The average wind direction along the transmission path, in degrees; Indicates pollution source Pointing to monitoring station The geographical azimuth, in degrees; The transmission consistency index is the minimum angle between the geographical azimuth and the average wind direction, ranging from 0 to 180 degrees. The smaller the angle, the more consistent the wind direction is with the geographical direction from the pollution source to the monitoring station, and the greater the likelihood that pollutants will be transmitted along that direction; conversely, the larger the angle, the more severe the deviation between the wind direction and the transmission direction, and the less likely that pollutants will be transmitted along that direction.

[0052] Schematic, the transmission consistency index calculated based on S23 can be used to further determine whether there is a valid directed edge between each pair of pollution sources and monitoring stations at the corresponding time. For example, when the transmission consistency index is less than 90 degrees and the spatial distance between the pollution source and the monitoring station is less than the preset maximum transmission distance, it is determined that there is a directed edge between the pollution source and the monitoring station; otherwise, it is determined that there is no directed edge. When the transmission consistency index is less than 90 degrees, it means that the deviation between the wind direction and the geographical direction from the pollution source to the monitoring station is less than 90 degrees, that is, the wind direction generally comes from the direction from the pollution source to the monitoring station, and the wind field has the basic conditions to transport pollutants from the pollution source to the monitoring station; when the angle is greater than or equal to 90 degrees, it means that the wind direction is orthogonal or even opposite to the transmission direction, and the wind field cannot transport pollutants from the pollution source to the monitoring station. At the same time, it can also be further determined whether the spatial distance between the pollution source and the monitoring station is less than the preset maximum transmission distance. The preset maximum transmission distance is set according to the life cycle and diffusion characteristics of different types of pollutants in the atmosphere. Even if the wind direction condition is met, the actual contribution of pollution sources exceeding this distance range to the monitoring station has been diluted to a negligible level. A directed edge is considered to exist only if both of the above conditions are met simultaneously; otherwise, it is considered not to exist. Through this dynamic determination mechanism, the graph topology constructed at each moment is different and can evolve in real time with changes in weather conditions, effectively eliminating false connections that have no practical transmission meaning.

[0053] Specifically, in S25, for each directed edge identified as existing in S24, a bipartite graph can be constructed, with each pollution source as a first-type node and each monitoring station as a second-type node. In this bipartite graph, the first-type and second-type nodes are two heterogeneous types of nodes, connected by directed edges. The direction of the directed edges points from the first-type nodes to the second-type nodes, i.e., from the pollution source to the monitoring station, representing the directionality of pollutant transport from the emission source to the monitoring station. There are no direct connecting edges between nodes of the same type, which conforms to the unidirectional transport physical logic of "source to receptor" in the atmospheric pollution source tracing problem. That is, there is no direct pollutant transport relationship between pollution sources, nor between monitoring stations. The emissions from each pollution source independently or collaboratively affect the concentration observation values ​​of each monitoring station through atmospheric transport processes. The constructed bipartite graph serves as the basic data structure for subsequent graph neural network calculations. The initial features of each pollution source node are assigned by the corresponding feature vector in the standardized pollution source feature matrix, and the initial features of each monitoring station node are assigned by the corresponding feature vector in the standardized monitoring station feature matrix. Each directed edge is associated with the corresponding meteorological field feature information.

[0054] Specifically, in S26, for each directed edge determined to exist in S24, the average wind speed along the transmission path can be used as a reference. Transmission consistency indicators and the distance between the pollution source and the monitoring station Calculate the initial physical weights of each directed edge. The initial physical weights are calculated as follows:

[0055]

[0056] in, Indicates time Along the pollution source With monitoring stations The average wind speed along the transmission path, in meters per second; This represents a transmission consistency metric, measured in degrees. The cosine value represents the transmission consistency index. It takes a value of 1 when the included angle is 0 degrees, indicating that the wind direction and the transmission direction are completely consistent and the transmission efficiency is the highest. When the included angle approaches 90 degrees, the cosine value approaches 0, indicating that the wind direction and the transmission direction are orthogonal and the transmission efficiency approaches zero. The introduction of the cosine function makes the weight decrease smoothly with the angle deviation, which is consistent with the continuous physical characteristics of atmospheric diffusion. Indicates pollution source With monitoring stations The spatial distance between them, expressed in kilometers; It is a preset small positive number to prevent calculation overflow caused by a denominator of zero; To modify the activation function of the linear unit, i.e. This is used to ensure that the calculated initial physical weights are positive, and to avoid physically unreasonable negative weights.

[0057] The physical initial weights obtained through the above calculation method integrate three core physical laws of atmospheric diffusion: the greater the wind speed, the farther the pollutants are transported per unit time, which is more conducive to the pollutants reaching the monitoring station; the higher the consistency between the wind direction and the transport direction, the more effective the wind field is in driving pollutants toward the monitoring station; and the shorter the distance, the lower the dilution of pollutants during transport, and the higher the concentration contribution to the monitoring station. Under the combined effect of these three factors, the physical initial weights can reasonably quantify the potential contribution of each pollution source to each monitoring station. These physical initial weights will be added as a prior constraint to the bias term of the attention coefficient in the subsequent graph attention calculation, so that the model's attention mechanism has physical rationality in the initialization stage.

[0058] In one embodiment, the first embedding network is a pollution source feature encoder, the second embedding network is a monitoring station feature encoder, and the third embedding network is a meteorological feature encoder. Each embedding network is used to map the original features of its respective input to a vector space of uniform dimension, enabling heterogeneous features to be collaboratively computed in subsequent attention calculations and message passing. The pollution source feature encoder includes a first input batch normalization layer, a first extended convolutional layer, a first gated linear unit, and a first output layer connected in sequence; the monitoring station feature encoder includes a second input batch normalization layer, a second extended convolutional layer, a second gated linear unit, and a second output layer connected in sequence; and the meteorological feature encoder includes a third input batch normalization layer, a third extended convolutional layer, a third gated linear unit, and a third output layer connected in sequence. All three encoders adopt a structure combining batch normalization layers and extended convolutional layers with gated linear units, but the expansion rate parameters and convolutional kernel parameters of the three are set independently to adapt to the temporal differences of different types of features. The extended convolution expands the receptive field by inserting zero values ​​between convolutional kernel elements, capturing dependencies over a longer time span without increasing the number of parameters. Specifically, the atmospheric pollution source tracing method S3 based on graph neural networks provided in this application may include:

[0059] S31. Based on the meteorological field feature matrix, extract the meteorological parameter sequence corresponding to each directed edge at each time, and construct the meteorological feature vector of each directed edge based on each meteorological parameter sequence; wherein, the meteorological parameter sequence includes the average wind speed along the transmission path, the average wind direction along the transmission path, the average temperature along the transmission path, the atmospheric stability category, and the distance between the pollution source and the monitoring station.

[0060] Specifically, for each directed edge, the path connecting the pollution source and the monitoring station connected by the directed edge is located from the meteorological field feature matrix. The grid points traversed by the path or within a preset range near the path are determined. Wind speed, wind direction, temperature, and atmospheric stability category data for these grid points at each time point are read. The above data are spatially averaged at the same time point to obtain the average wind speed, average wind direction, average temperature, and atmospheric stability category along the transmission path at that time point. Combined with the spatial distance between the pollution source and the monitoring station connected by the directed edge, a meteorological parameter sequence for that directed edge at that time point is formed. The meteorological parameter sequences at each time point are arranged according to time index to form the meteorological feature vector of the directed edge. This meteorological feature vector covers the core meteorological elements affecting pollutant transmission efficiency, providing physically rich input for subsequent edge embedding.

[0061] S32. Input the features of each first type of node into the first input batch normalization layer of the first embedding network for feature-by-feature normalization. Input the normalized first features into the first extended convolutional layer for temporal extended convolution. Input the first convolution result into the first gated linear unit for nonlinear gated transformation to obtain the first transformation result. Input the first transformation result into the first output layer to output the embedding vector of each pollution source node.

[0062] Specifically, the features of each first-class node are first input into the first batch normalization layer for feature-by-feature normalization. The batch normalization layer independently calculates the mean and variance of the current training batch for each feature dimension, and normalizes each sample in that dimension by subtracting the mean of that feature dimension from each feature value and then dividing by the standard deviation of that feature dimension. This feature-by-feature normalization eliminates the dimensional differences between different features, avoiding the problem of large numerical features dominating model training while small numerical features are overwhelmed. The normalized first feature is then input into the first extended convolutional layer for temporal extended convolution. Since the emission intensity of pollution sources changes over time and its impact on monitoring stations has a time lag effect, extended convolution can expand the receptive field without increasing the number of parameters, enabling the network to capture the impact of emission pattern changes over a longer time range on the current moment. Therefore, the first extended convolutional layer can use extended convolution to extract temporal features from the input features. The expansion rate of the first extended convolutional layer is set to a first preset expansion rate value, such as 2 or 4, to capture the long-term temporal dependence features of pollution source emissions. The kernel size can be set to 3×3 or 5×5. Subsequently, the first convolution result is input into the first gated linear unit for nonlinear gating transformation, obtaining the first transformation result. The output of the gated linear unit is the combination of the element-wise product of the input features after linear transformation and the gating signal processed by the activation function. The first transformation result is input into the first output layer, which processes the data and outputs the embedding vectors of each pollution source node. These embedding vectors can serve as the initial representation of the first type of nodes in subsequent graph attention calculations, participating in the calculation of attention weights and message passing.

[0063] S33. Input the features of each second type of node into the second input batch normalization layer of the second embedding network for feature-by-feature normalization. Input the normalized second features into the second extended convolutional layer for temporal extended convolution. Input the second convolution result into the second gated linear unit for nonlinear gated transformation to obtain the second transformation result. Input the second transformation result into the second output layer to output the embedding vector of each monitoring station node.

[0064] Specifically, the features of each second-type node are first input into the second batch normalization layer for feature-by-feature normalization to eliminate dimensional differences between various observation features at the monitoring stations. The specific implementation of batch normalization is the same as in S32, that is, the mean and variance are calculated independently for each feature dimension before normalization. The normalized second features are then input into the second extended convolutional layer for temporal extended convolution. Unlike the first extended convolutional layer, the expansion rate of the second extended convolutional layer is set to a second preset expansion rate value. This value can be different from the expansion rate of the first extended convolutional layer because the temporal variation characteristics of the pollutant concentration observation sequence at the monitoring station are different from those of the pollution source emission sequence. The concentration data at the monitoring station is affected by meteorological diffusion conditions, resulting in more frequent temporal fluctuations. Therefore, a relatively small expansion rate can be set to capture the short-term temporal features of local concentration fluctuations. The second convolution result is input into the second gated linear unit for nonlinear gated transformation. After obtaining the second transformation result, the second transformation result is input into the second output layer. After processing by the second output layer, the embedding vectors of each monitoring station node are output. The node embedding vector of this monitoring station can be used as the initial representation of the second type of node in the subsequent graph attention calculation.

[0065] S34. Input the meteorological feature vectors of each directed edge into the third input batch normalization layer of the third embedding network for feature-by-feature normalization to obtain normalized meteorological feature vectors. Input the normalized meteorological feature vectors into the third extended convolutional layer for temporal extended convolution. Input the third convolution result into the third gated linear unit for nonlinear gated transformation to obtain the third transformation result. Input the third transformation result into the third output layer to output the meteorological field constraint edge embedding vectors of each directed edge.

[0066] Specifically, because the components of the meteorological feature vector have different dimensions—for example, distance is measured in kilometers, wind speed in meters per second, and temperature in degrees Celsius or Kelvin—directly concatenating these physical quantities with different dimensions without normalization can lead to an imbalance in gradient updates during model training. Therefore, the meteorological feature vectors of each directed edge can be input into a third batch normalization layer for feature-by-feature normalization, unifying the components of the meteorological feature vector to the same data scale. The normalized meteorological feature vectors are then input into a third extended convolutional layer for temporal extended convolution. The expansion rate of the third extended convolutional layer is set to a third preset expansion rate value, which can be set according to the typical time scale of meteorological field changes. The result of the third convolution is then input into a third gated linear unit for nonlinear gating transformation, yielding the third transformation result. The third transformation result is input into the third output layer. After processing by the third output layer, the meteorological field constraint edge embedding vector of each directed edge can be output. The meteorological field constraint edge embedding vector carries the complete meteorological transmission information along the transmission path and can be used as the source of physical constraint bias in subsequent steps to participate in the calculation of graph attention weights.

[0067] The three embedding networks mentioned above all adopt a combination structure of batch normalization, extended convolution and gated linear units, but they have different learnable parameters. They are independently optimized for the statistical distribution and temporal characteristics of their respective input features, thereby enabling effective mapping of multi-source heterogeneous features to a unified vector space.

[0068] In one embodiment, the atmospheric pollution source tracing method S4 based on graph neural networks provided in this application calculates the initial attention weights of the meteorological field constraints based on the pollution source node embedding vector, the monitoring station node embedding vector, the meteorological field constraint edge embedding vector, and the physical initial weights, to obtain the initial attention weight matrix, which may include:

[0069] S41. The meteorological field constraint edge embedding vector of each directed edge is processed by the preset physical constraint function to obtain the physical constraint scalar corresponding to each directed edge. The physical constraint scalar is used to represent the pollutant transmission efficiency on the transmission path indicated by the corresponding directed edge.

[0070] S42. Calculate the data-driven attention coefficient based on the embedding vectors of the pollution source nodes and the monitoring station nodes connected by each directed edge;

[0071] S43. Take the physical constraint scalar corresponding to each directed edge as the first bias term, and take the logarithm of the physical initial weight corresponding to each directed edge as the second bias term. Add the first bias term and the second bias term of each directed edge to the corresponding data-driven attention coefficient to obtain the meteorological field constraint attention coefficient of each directed edge.

[0072] S44. Normalize the meteorological field constraint attention coefficients of each directed edge to obtain the initial attention weights of each directed edge, and construct the initial attention weight matrix based on the initial attention weights of each directed edge.

[0073] Specifically, the meteorological field constraint edge embedding vector is generated in the previous embodiment S34, and its dimension is d, containing meteorological parameter information along the transmission path. The preset physical constraint function can be implemented using a multilayer perceptron, which includes an input layer, a hidden layer, and an output layer. The hidden layer can be set to a single layer or two layers, and a nonlinear activation function is used for transformation. The output layer uses a sigmoid activation function to compress the output value to an open interval of 0 to 1, so that the value range of the physical constraint scalar is 0 to 1, which can be directly interpreted as the transmission efficiency of pollutants along the transmission path indicated by the directed edge. For example, the meteorological field constraint edge embedding vector is denoted as... Then the physical constraint scalar The calculation method is as follows Through this preset physical constraint function, the wind speed, wind direction, temperature, stability, and distance information implicit in the meteorological field constraint edge embedding vector can be nonlinearly mapped to a scalar value between 0 and 1. The larger the value, the more favorable the meteorological conditions of the transmission path are for the transmission of pollutants from the pollution source to the monitoring station. Since the input meteorological field constraint edge embedding vector of this physical constraint function is independently encoded and generated by the third embedding network in the previous embodiment S34, this network can provide a physically reasonable transmission efficiency estimate before joint training with the entire model, providing effective physical prior information for subsequent attention weight calculation.

[0074] In S42, for each directed edge, the embedding vector of the pollution source node of the first type of node it connects to can be denoted as... The embedding vector of the monitoring station node of the second type of node it connects to is Both have a dimension of d. The data-driven attention coefficient is calculated as follows: First, ... and Through learnable linear transformation matrices Perform a linear transformation, concatenate the two transformed vectors, and then combine the concatenated result with the learnable attention vector. By performing a dot product operation and then processing it with a non-linear activation function, the data-driven attention coefficients can be obtained. Specifically, the data-driven attention coefficients... The calculation formula can be:

[0075]

[0076] in, Let the learnable linear transformation matrix have dimension 1. ; Indicates pollution source nodes The pollution source node embedding vector is dimensionless; Indicates monitoring site nodes The embedded vector of the monitoring station node is dimensionless; This represents a learnable attention vector with dimension . ;symbol This represents a vector concatenation operation, which connects two vectors end-to-end to form a longer vector; The modified linear unit activation function with leakage is set to a slope of 0.2 in the negative interval to increase its nonlinear expressive power. This data-driven attention coefficient is calculated entirely based on the feature similarity between the pollution source node and the monitoring station node, reflecting the correlation strength between the two nodes from a purely data perspective.

[0077] Furthermore, the physical constraint scalars corresponding to each directed edge are added as the first bias term to the corresponding data-driven attention coefficients, and the logarithm of the physical initial weights corresponding to each directed edge is added as the second bias term to the corresponding data-driven attention coefficients, thus obtaining the meteorological field constraint attention coefficients for each directed edge. The calculation method can be as follows:

[0078]

[0079] in, Represents a directed edge The data-driven attention coefficient is dimensionless. This represents the physical constraint scalar of the directed edge, which is dimensionless and takes a value between 0 and 1. This is the physical constraint balance coefficient, used to control the adjustment strength of the physical constraint scalar on the attention coefficient. Its value can be preset between 0.1 and 1.0 according to the specific implementation scenario. This represents the initial physical weight of the directed edge, the calculation method of which has been explained in detail in S26, and the dimension is the ratio of meters per second to kilometers. This is the initial weight balancing coefficient, used to control the intensity of the adjustment of the attention coefficient by the physical initial weight prior; It is a preset small positive number to prevent negative infinity when taking the logarithm, and its dimensions are the same as... Similarly, in one embodiment Can be set to By taking the logarithm, the multiplicative effect of the initial physical weights is transformed into an additive bias, making it easier to superimpose with the data-driven attention coefficients on the same numerical scale. Through the above calculation method, the meteorological field-constrained attention coefficients integrate three aspects of information: statistical association patterns learned from node feature similarity, transmission efficiency deduced from the physical laws of meteorological transmission, and prior initial weights calculated from the principles of diffusion physics.

[0080] Specifically, the softmax function can be used to normalize the meteorological field constraint attention coefficients of each directed edge to obtain the initial attention weights of each directed edge. That is, for all directed edges connected to the same monitoring station, their meteorological field constraint attention coefficients are exponentially processed and summed. The exponentialized result of each directed edge is divided by this sum to obtain the initial attention weight of each directed edge. For example, for pollution source nodes... With monitoring station nodes The initial attention weights of the directed edges between them The calculation method is as follows:

[0081]

[0082] in, Represents a directed edge The meteorological field-constrained attention coefficient is dimensionless. Indicates pointing to the monitoring station The set of all pollution source nodes; Represents the natural exponential function; Represents a directed edge The initial attention weights are dimensionless, ranging from 0 to 1, and are applied to a fixed monitoring site. The sum of the initial attention weights of all directed edges pointing to it is 1. After calculating the initial attention weights of each directed edge, the initial attention weights of all directed edges are organized into a matrix according to the indices of the pollution source node and the monitoring station node to obtain the initial attention weight matrix. The rows of this matrix correspond to the pollution source nodes, and the columns correspond to the monitoring station nodes. Line 1 The elements of the column are the directed edges. The initial attention weights are then determined. This initial attention weight matrix can serve as the starting weights for subsequent rounds of bidirectional message passing, participating in the iterative update process of the node representation.

[0083] In one embodiment, the atmospheric pollution source tracing method S4 based on graph neural networks provided in this application performs multiple rounds of bidirectional message passing operations on a bipartite graph based on an initial attention weight matrix. After each round of message passing, the attention weights are recalculated based on the updated node representations to obtain the iteratively optimized final attention weight matrix and the temporal final representation vector of each node in the bipartite graph, including:

[0084] S51. The initial attention weight matrix is ​​used as the attention weight matrix of the zeroth round, the pollution source node embedding vector is used as the first node representation of the zeroth round of each first type of node, and the monitoring station node embedding vector is used as the second node representation of the zeroth round of each second type of node.

[0085] S52. Perform multi-round bidirectional message passing on the bipartite graph. For the l-th round of message passing, extract the attention weights of each directed edge corresponding to the (l-1)-th round from the attention weight matrix of the (l-1)-th round. Based on the attention weights of each directed edge corresponding to the (l-1)-th round and the first node representation of the (l-1)-th round, perform a weighted aggregation operation on each second type of node to obtain the second node representation of each second type of node in the l-th round. Here, l takes values ​​from 1 to L, and L is the preset maximum number of iteration rounds.

[0086] S53. Based on the attention weights of each directed edge in the (l-1)th round and the second node representations of each second type of node in the lth round, perform a weighted aggregation operation on each first type of node to obtain the first node representations of each first type of node in the lth round.

[0087] S54. Based on the first node representation of each first type node in the l-th round and the second node representation of each second type node in the l-th round, combined with the meteorological field constraint edge embedding vector, recalculate the attention coefficient of each directed edge in the l-th round, normalize the attention coefficient of each directed edge in the l-th round to obtain the attention weight of each directed edge in the l-th round, and construct the attention weight matrix of the l-th round from the attention weight of each directed edge in the l-th round.

[0088] S55. After completing L rounds of iterations, the attention weight matrix of the Lth round is obtained. The attention weight matrix of the Lth round is used as the final attention weight matrix. The first node representation of each first type of node in the Lth round is arranged in chronological order and then input into the first bidirectional gated loop unit to obtain the final temporal representation vector of each first type of node. The second node representation of each second type of node in the Lth round is arranged in chronological order and then input into the second bidirectional gated loop unit to obtain the final temporal representation vector of each second type of node.

[0089] Specifically, the iterative process is first initialized, with the initial attention weight matrix denoted as the attention weight matrix for round zero. Each element in this matrix corresponds to the initial attention weight of a directed edge. Simultaneously, the embedding vectors of each pollution source node obtained in S32 are used as the first node representation of each type-1 node in round zero, and the embedding vectors of each monitoring station node obtained in S33 are used as the second node representation of each type-2 node in round zero. After initialization, a multi-round iterative update process begins. For the message passing in round l, l starts from 1 and goes up to L, where L is the preset maximum number of iteration rounds. At the beginning of round l, the attention weights corresponding to each directed edge are extracted from the attention weight matrix of round l-1. The element in the i-th row and j-th column of the attention weight matrix represents the pollution source node. With monitoring station nodes Directed edges between The attention weights are then determined. Subsequently, based on the extracted attention weights of each directed edge and the representations of each first-type node in round (l-1), a weighted aggregation operation is performed on each second-type node. Specifically, for any second-type node, i.e., a monitoring site node... The (l-1)th round representation of the first-type node (i.e., the pollution source node) connected to all incoming edges is multiplied by the (l-1)th round attention weight of the corresponding directed edge. All products are summed to obtain the aggregated information of the second-type node. This aggregated information is then transformed nonlinearly and used as the second-type node representation in the l-th round. The calculation method corresponding to the above weighted aggregation operation is as follows:

[0090]

[0091] in, Represents the second type of node The node representation in the l-th round is dimensionless; This represents all nodes pointing to the second type. The set of first-class nodes; Represents a directed edge The attention weight in the (l-1)th round is dimensionless. Represents the first type of node The node representation in the (l-1)th round is dimensionless; The nonlinear activation function can be represented by the ELU activation function. This aggregation operation realizes the forward propagation of pollution source information to monitoring stations, so that the representation of each monitoring station incorporates the emission information of the surrounding pollution sources, and the weights are controlled by the attention coefficient of the current round.

[0092] Furthermore, a weighted aggregation operation can be performed on each first-type node based on the attention weights of each directed edge in the (l-1)th round and the second-node representations of each second-type node in the lth round. Reversing the direction of S52, this step realizes the propagation of information from the monitoring station to the pollution source. Specifically, for any first-type node, i.e., the pollution source node... The l-th round representation of the second-type node (i.e., the monitoring station node) connected to all its outgoing edges is multiplied by the (l-1)-th round attention weight of the corresponding directed edge. All products are summed, and then subjected to a nonlinear transformation to obtain the l-th round representation of the first-type node. The calculation method corresponding to the above weighted aggregation operation is as follows:

[0093]

[0094] in, Represents the first type of node The node in the l-th round is dimensionless; Represents the first type of node The set of all second-class nodes it points to; Represents a directed edge The attention weight in the (l-1)th round is dimensionless. Represents the second type of node The second node in the l-th round indicates that it is dimensionless; This represents a nonlinear activation function. It should be noted that the second-class node representation from the l-th round is used in the reverse aggregation, i.e., the monitoring station representation that has already been updated through forward propagation. This allows for a complete bidirectional flow of information between the two types of nodes. This aggregation operation realizes the reverse propagation of concentration observation information from monitoring stations to pollution sources, enabling the representation of each pollution source to incorporate the concentration observation information from all the monitoring stations it affects, effectively utilizing recipient-side information to correct source-side representations.

[0095] After completing the l-th round of bidirectional message passing, the attention weights of each directed edge can be recalculated based on the first node representation of each type of node in the l-th round and the second node representation of each type of node in the l-th round, combined with the meteorological field constraint edge embedding vector. Specifically, for each directed edge... The first node of the first type connected to it is represented as the first node in the l-th round. The second type of node represents the second node in round l. The attention coefficient for round l is calculated using an attention mechanism. The calculation method is similar to S42 and S43, but the node representation used is the representation updated in the latest round, i.e.:

[0096]

[0097] in, Let be the learnable attention vector for the l-th round, with dimension . ; Let be the learnable linear transformation matrix for the l-th round, with dimension . ; For the first type of node The node in the l-th round is dimensionless; For the second type of node The node in the l-th round is dimensionless; The physical constraint balance coefficient for the l-th round; For directed edges The corresponding physical constraint scalar is dimensionless. Unlike the initial attention calculation, this step no longer repeatedly adds the logarithm of the initial physical weights as a bias term, because the initial physical weights have already provided prior guidance for the attention weights during the initialization phase; the iterative phase is primarily data-driven. After calculating the attention coefficients for the l-th round, the l-th round attention coefficients of each directed edge are subjected to softmax normalization to obtain the l-th round attention weights for each directed edge. The attention weights for the l-th round of each directed edge are organized into a matrix according to the edge index, thus forming the attention weight matrix for the l-th round. Through this step, the attention weights are recalculated and refined as the node representations are updated, achieving collaborative optimization of node representations and attention weights.

[0098] After completing the preset L rounds of iterations, the attention weight matrix for the Lth round can be obtained, and this matrix will be used as the final attention weight matrix. Simultaneously, after completing the L rounds of iterations, the representations of the first node of each first-class node in the Lth round can be arranged in chronological order, i.e., for each first-class node... The node representations at each time step after L iterations are arranged according to time indices t = 1, 2, ..., T, forming a temporal representation sequence for that node. This temporal representation sequence is then input into the first bidirectional gated recurrent unit for processing. The bidirectional gated recurrent unit comprises two processing branches: a forward gated recurrent unit and a backward gated recurrent unit. The forward gated recurrent unit processes the sequence sequentially from the start to the end time, combining the input at each time step with the hidden state of the previous time step to update the hidden state at the current time step. The backward gated recurrent unit processes the sequence sequentially from the end time step to the start time step, combining the input at each time step with the hidden state of the next time step to update the hidden state at the current time step. By controlling the flow of information through update and reset gates, the gated recurrent unit can capture long-term dependencies in the time series while avoiding the gradient vanishing problem. The final hidden states from both directions are concatenated to obtain the final temporal representation vector for each type of node. Similarly, the second node representations of each second-type node in round L can be arranged in chronological order and input into the second bidirectional gated recurrent unit to obtain the final temporal representation vector of each second-type node. The introduction of the bidirectional gated recurrent unit enables the final representation of each node to not only include the aggregation information of multi-hop neighborhoods in the spatial dimension, but also incorporate the contextual information of previous and subsequent time steps in the temporal dimension, providing a more complete and richer node representation for subsequent contribution rate calculation.

[0099] In one embodiment, the atmospheric pollution source tracing method S5 based on graph neural networks provided in this application may include:

[0100] The time-series final representation vector corresponding to each first-type node is input into the emission intensity estimation network to obtain the emission intensity estimate of each pollution source at each time. The emission intensity estimation network includes a fourth input layer, a first long short-term memory network layer, a first discard layer, a fourth fully connected layer, and a fourth output layer connected in sequence. The fourth output layer is used to perform activation processing using a first nonlinear activation function to make the emission intensity estimate positive.

[0101] The time-series final representation vector corresponding to each second type of node is input into the concentration prediction network to obtain the pollutant concentration prediction value of each monitoring station at each time. The concentration prediction network includes a fifth input layer, a second long short-term memory network layer, a second discard layer, a fifth fully connected layer and a fifth output layer connected in sequence. The fifth output layer is used to perform activation processing using a second nonlinear activation function to make the pollutant concentration prediction value positive.

[0102] Based on the final attention weight matrix and emission intensity estimate at each time point, the contribution rate of each pollution source to each monitoring station is calculated. All contribution rate calculations corresponding to each monitoring station are normalized to obtain the contribution rate matrix.

[0103] Specifically, the final temporal representation vector is output by the first bidirectional gated recurrent unit in S55, and its dimension is the sum of the dimensions of the hidden states in both directions of the bidirectional gated recurrent unit. The structure of the emission intensity estimation network can be designed as follows: the fourth input layer receives the final temporal representation vector corresponding to each first type of node; the first long short-term memory network layer is used to extract temporal features from the input sequence. This layer contains multiple long short-term memory units, each of which controls the flow of information through an input gate, a forget gate, and an output gate, effectively capturing the temporal dependencies in the final temporal representation vector. The hidden state of the last time step in the first long short-term memory network layer is used as the output and input to the first dropout layer. During training, the first dropout layer randomly sets the output of some neurons to zero with a preset dropout probability to suppress overfitting and improve the generalization ability of the model. In one embodiment, the dropout probability can be set between 0.2 and 0.5. The output of the first dropout layer is input to the fourth fully connected layer, which maps the high-dimensional temporal features extracted by the first long short-term memory network layer to a one-dimensional scalar space. The output of the fourth fully connected layer is input to the fourth output layer, which is activated using the first nonlinear activation function to ensure a positive emission intensity estimate. The first nonlinear activation function can be the softplus activation function, and its mathematical expression is: This function is positive over the entire real number domain and maintains its smooth differentiability. (The last part, "contamination source node," appears to be unrelated and likely refers to another function or feature.) At any moment The estimated emission intensity is denoted as Its dimensions are consistent with the emission intensity values ​​in the pollution source emission inventory data, such as grams per second or tons per year. Through the emission intensity estimation network, the model can reconstruct the emission intensity information of the pollution source nodes from their time-series representations. If the error between the emission intensity estimate and the actual emission intensity value is small, it indicates that the time-series representation of the pollution source nodes retains sufficient emission characteristic information.

[0104] Specifically, during the process of inputting the final temporal representation vectors corresponding to each second-type node into the concentration prediction network, the final temporal representation vectors have already been output by the second bidirectional gated recurrent unit in S55. The structure of the concentration prediction network can be designed as follows: the fifth input layer receives the final temporal representation vectors corresponding to each second-type node; the second long short-term memory network layer extracts temporal features from the input sequence, and the structure of this layer is the same as that of the first long short-term memory network layer; the configuration of the second dropout layer is the same as that of the first dropout layer; the fifth fully connected layer maps the temporal features extracted by the second long short-term memory network layer to a one-dimensional scalar space; the fifth output layer uses a second nonlinear activation function for activation processing to make the pollutant concentration prediction value positive, and the second nonlinear activation function can also be the softplus activation function. The monitoring station nodes... At any moment The predicted pollutant concentration is denoted as Its dimensions are consistent with the pollutant concentration observations in the monitoring station data, such as micrograms per cubic meter. Through the concentration prediction network, the model can reconstruct the concentration observations from the time-series representations of the monitoring station nodes. If the error between the predicted concentration and the actual concentration observation is small, it indicates that the time-series representations of the monitoring station nodes retain sufficient concentration observation information.

[0105] Furthermore, the final attention weight matrix is ​​the Lth-round attention weight matrix obtained after L rounds of iteration optimization in S55. Each element in this matrix represents the transmission weight of the corresponding directed edge after sufficient iterations. For time... , will monitor the sites Treat them as target receptors and direct them all pollution source nodes Emission intensity estimates and the corresponding final attention weights Multiplying these values ​​yields the calculated contribution rate of each pollution source to the monitoring station. Then, normalizing all the calculated contribution rates for that monitoring station allows us to obtain the total contribution rate of each pollution source to that monitoring station. Normalization ensures that for any monitoring station, the sum of the contribution rates of all pollution sources to that station is 1, satisfying the physical normalization constraint of the contribution rate. For example, the calculation method is as follows:

[0106]

[0107] in, Indicates at time pollution source For monitoring stations The contribution rate is dimensionless and ranges from 0 to 1; This indicates that after L rounds of iterative optimization, at time [time value missing] Directed edge The attention weights are dimensionless. Indicates pollution source At any moment The estimated emission intensity value, the dimension of which is determined according to the type of emission intensity data; Indicates pollution source At any moment Estimated emission intensity; This represents the total number of pollution sources. Based on the above calculations, for monitoring stations... The contribution rates of all corresponding pollution sources satisfy The normalization constraint is applied. The contribution rates of all pollution sources to all monitoring stations at all times are organized according to the pollution source node index, monitoring station node index, and time index to form a contribution rate matrix. This contribution rate matrix can be directly used to identify the dominant pollution source that contributes the most to a specific monitoring station, and can also be used to analyze the evolution of the pollution source contribution rate over time, providing data support for accurate source tracing and prevention and control decisions for air pollution.

[0108] In one embodiment, after calculating the contribution rate matrix of each pollution source to each monitoring station based on the final attention weight matrix and the emission intensity estimates of each pollution source, the atmospheric pollution source tracing method based on graph neural networks provided in this application may further include:

[0109] The mean square error between the predicted pollutant concentration and the observed pollutant concentration is used as the first loss term; the mean square error between the estimated emission intensity and the emission intensity value is used as the second loss term; the sum of the squares of the deviations of the sum of each column in the contribution rate matrix from the value 1 is used as the third loss term; and the L1 norm of the contribution rate matrix is ​​used as the fourth loss term.

[0110] A composite loss function is constructed based on the first loss term, the second loss term, the third loss term, and the fourth loss term;

[0111] Training and validation sets are constructed from pollution source emission inventory data, monitoring station observation data, and meteorological field grid data. A pre-set optimizer is used to iteratively optimize the composite loss function based on the training set. In each iteration, the first embedding network, the second embedding network, the third embedding network, the emission intensity estimation network, the concentration prediction network, and the calculation parameters used to calculate the attention weight in S4 are updated. When the value of the composite loss function on the validation set no longer decreases for a preset number of consecutive rounds, the iteration stops, and the updated calculation parameters are obtained. Based on the updated calculation parameters, S3 to S5 are re-executed to obtain the final contribution rate matrix.

[0112] Specifically, monitoring stations can be... At any moment The predicted pollutant concentration is denoted as The corresponding pollutant concentration observation value is recorded as Both have the same dimension, being concentration units such as micrograms per cubic meter. The first loss term is calculated by summing the squares of the concentration prediction errors at all monitoring stations and at all times, and then averaging them. Its expression is: ,in This indicates the total number of monitoring stations. This represents the total number of time points. This loss term forces the model to learn an accurate mapping from the monitoring station node representations to the concentration observations, and is the core monitoring signal that ensures the model can reproduce the true distribution of air pollution concentrations.

[0113] Specifically, the second loss term is the mean square error between the estimated emission intensity and the actual emission intensity. For example, considering the pollution source... At any moment The estimated emission intensity is denoted as The corresponding actual emission intensity value is recorded as Both have the same unit of measurement, for example, grams per second. The second loss term is calculated as follows: ,in This represents the total number of pollution sources. This loss term forces the model to learn an accurate mapping from the pollution source node representation to the true emission intensity value, ensuring that the pollution source node representation still retains sufficient emission characteristic information after message passing, and avoiding information loss during message passing.

[0114] Specifically, the third loss term is the sum of squares of the deviations from the sum of the columns in the contribution rate matrix to the value of 1. According to the physical definition of air pollution source tracing, for any monitoring station, the sum of the contribution rates of all potential pollution sources to that station should equal 1. The third loss term is the mathematical expression of this physical constraint, and its calculation method is as follows: ,in Indicates pollution source For monitoring stations At any moment The contribution rate is dimensionless. This loss term forces the contribution rate matrix output by the model to satisfy the column normalization constraint, that is, the sum of all elements in each column is 1, so that the contribution rate has a clear physical meaning.

[0115] Specifically, the fourth loss term is the L1 norm of the contribution rate matrix. The L1 norm is defined as the sum of the absolute values ​​of all elements in the matrix, i.e. The purpose of this loss term is to promote the sparsity of the contribution rate matrix, ensuring that the contribution rate of each monitoring station is mainly composed of a few dominant pollution sources. This aligns with the physical reality that in the actual atmospheric environment, only a few pollution sources typically make a significant contribution to a given monitoring point. By introducing L1 regularization, the model is encouraged to concentrate the contribution rate on a few truly relevant pollution sources, rather than distributing it evenly among all pollution sources, thereby improving the accuracy and interpretability of the source tracing results.

[0116] By weighted summing the four loss terms, we can obtain the composite loss function. ,Right now:

[0117]

[0118] in, , , and These are the weighting coefficients for each item, used to adjust the relative importance of each loss item in the total loss. The specific values ​​of each weighting coefficient can be set according to the actual application scenario and the magnitude of each loss. In one embodiment, all four weighting coefficients can be set to 1.

[0119] Based on composite loss function In the iterative optimization process, the training set and validation set are first divided from the pollution source emission inventory data, monitoring station observation data, and meteorological field grid data. The training set is used to update the model parameters, and the validation set is used to monitor the model's generalization performance. The two sets do not overlap and are usually divided according to a preset ratio. For example, all data is divided chronologically into the first 80% as the training set and the last 20% as the validation set. A preset optimizer is used to iteratively optimize the composite loss function based on the training set. The optimizer can be an adaptive moment estimation optimizer, which adaptively adjusts the learning rate of each parameter by calculating the first and second moment estimates of the gradient, which can effectively accelerate model convergence. In each iteration, the current batch of training data is passed through the forward propagation process from S1 to S5 to calculate the value of the composite loss function. Then, the gradient of the composite loss function with respect to each learnable parameter is calculated through backpropagation, and the learnable parameters are updated by the optimizer based on the gradient. The learnable parameters include the network parameters of the first, second, and third embedding networks, the network parameters of the emission intensity estimation network and the concentration prediction network, as well as the computational parameters such as the attention vector and linear transformation matrix used to calculate the attention weights. When the value of the composite loss function on the validation set no longer decreases for a preset number of rounds, it indicates that the model has fully converged, and the iteration stops. At this point, the updated computational parameters are saved. Finally, based on the updated computational parameters, the forward propagation process described in S3 to S5 is re-executed on all data. That is, node embeddings and edge embeddings are regenerated using the updated embedding networks, multi-round bidirectional message passing is re-executed using the updated attention computational parameters, and emission intensity estimates and concentration predictions are recalculated using the updated emission intensity estimation network and concentration prediction network. Finally, a final contribution rate matrix that satisfies physical consistency is obtained. This final contribution rate matrix simultaneously satisfies the concentration prediction accuracy constraint, emission intensity estimation accuracy constraint, contribution rate column normalization constraint, and sparsity constraint, and can serve as a reliable basis for atmospheric pollution source tracing analysis.

[0120] Based on the same inventive concept, this application also provides a graph neural network-based air pollution source tracing system for implementing the aforementioned graph neural network-based air pollution source tracing method. The solution provided by this system is similar to the implementation scheme described in the above method. Therefore, the specific limitations of one or more embodiments of a graph neural network-based air pollution source tracing system provided below can be found in the limitations of the graph neural network-based air pollution source tracing method described above, and will not be repeated here.

[0121] In one exemplary embodiment, such as Figure 2 As shown, an atmospheric pollution source tracing system 600 based on graph neural networks is provided, including:

[0122] The data standardization preprocessing module 601 is used to preprocess the pollution source emission inventory data, monitoring station observation data and meteorological field grid data to obtain the standardized pollution source feature matrix, the standardized monitoring station feature matrix and the meteorological field feature matrix; the pollution source emission inventory data includes the emission intensity value and first location coordinates of each pollution source, and the monitoring station observation data includes the pollutant concentration observation value and second location coordinates of each monitoring station.

[0123] The dynamic bipartite graph construction module 602 is used to determine whether there are directed edges between each pollution source and each monitoring station based on the standardized pollution source feature matrix and the standardized monitoring station feature matrix, taking each pollution source as the first type of node and each monitoring station as the second type of node, and based on the wind direction information at each time in the meteorological field feature matrix. Based on the determination result, a bipartite graph containing the first type of node, the second type of node and the directed edges is constructed, and the physical initial weight of each directed edge is calculated.

[0124] The feature embedding unified coding module 603 is used to input the features of each first type node and each second type node in the bipartite graph into the first embedding network and the second embedding network respectively to obtain the pollution source node embedding vector and the monitoring station node embedding vector. It generates the meteorological feature vector of each directed edge according to the meteorological field feature matrix, and inputs the meteorological feature vector of each directed edge in the bipartite graph into the third embedding network to obtain the meteorological field constraint edge embedding vector.

[0125] The attention iterative optimization module 604 is used to calculate the initial attention weights of the meteorological field constraints based on the pollution source node embedding vector, the monitoring station node embedding vector, the meteorological field constraint edge embedding vector, and the physical initial weights, to obtain the initial attention weight matrix; based on the initial attention weight matrix, multiple rounds of bidirectional message passing operations are performed on the bipartite graph, and the attention weights are recalculated based on the updated node representations after each round of message passing, to obtain the iteratively optimized final attention weight matrix and the temporal final representation vector of each node in the bipartite graph;

[0126] The contribution rate accurate inversion module 605 is used to calculate the emission intensity estimate of each pollution source and the pollutant concentration prediction of each monitoring station based on the time series final representation vector of each node, and to calculate the contribution rate matrix of each pollution source to each monitoring station based on the final attention weight matrix and the emission intensity estimate of each pollution source.

[0127] In one exemplary embodiment, the present invention also provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the atmospheric pollution source tracing method based on graph neural networks of this application. A multi-core processor is preferred to improve the system's parallel processing capability. The memory provides sufficient temporary storage space to support program execution and data processing. The memory capacity should be large enough to accommodate large amounts of data and computational tasks.

[0128] In one exemplary embodiment, the present invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the atmospheric pollution source tracing method based on graph neural networks of this application. The computer-readable storage medium may include: a read-only memory, a random access memory, a solid-state drive, or an optical disk, etc.

[0129] The above-described embodiments are merely illustrative of several implementation methods of the embodiments of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the embodiments of this application, and these modifications and improvements all fall within the protection scope of the embodiments of this application.

Claims

1. A method for tracing air pollution sources based on graph neural networks, characterized in that, The method includes: S1. Preprocess the pollution source emission inventory data, monitoring station observation data, and meteorological field grid data to obtain a standardized pollution source feature matrix, a standardized monitoring station feature matrix, and a meteorological field feature matrix; the pollution source emission inventory data includes the emission intensity value and first location coordinates of each pollution source, and the monitoring station observation data includes the pollutant concentration observation value and second location coordinates of each monitoring station. S2. Based on the standardized pollution source feature matrix and the standardized monitoring station feature matrix, each pollution source is taken as a first type of node and each monitoring station is taken as a second type of node. Based on the wind direction information at each moment in the meteorological field feature matrix, it is determined whether there is a directed edge between each pollution source and each monitoring station. Based on the determination result, a bipartite graph containing the first type of node, the second type of node and the directed edge is constructed, and the physical initial weight of each directed edge is calculated. S3. Input the features of each first type of node and each second type of node in the bipartite graph into the first embedding network and the second embedding network respectively to obtain the pollution source node embedding vector and the monitoring station node embedding vector. Generate the meteorological feature vector of each of the directed edges according to the meteorological field feature matrix. Input the meteorological feature vector of each of the directed edges in the bipartite graph into the third embedding network to obtain the meteorological field constraint edge embedding vector. S4. Based on the pollution source node embedding vector, the monitoring station node embedding vector, the meteorological field constraint edge embedding vector, and the physical initial weight, calculate the initial attention weight of the meteorological field constraint to obtain the initial attention weight matrix; based on the initial attention weight matrix, perform multiple rounds of bidirectional message passing on the bipartite graph, and recalculate the attention weight based on the updated node representation after each round of message passing to obtain the iteratively optimized final attention weight matrix and the temporal final representation vector of each node in the bipartite graph; S5. Calculate the emission intensity estimate of each pollution source and the pollutant concentration prediction of each monitoring station based on the time-series final representation vector of each node. Calculate the contribution rate matrix of each pollution source to each monitoring station based on the final attention weight matrix and the emission intensity estimate of each pollution source.

2. The method according to claim 1, characterized in that, S2 includes: S21. Based on the standardized pollution source feature matrix and the standardized monitoring station feature matrix, calculate the geographical azimuth angle of each pollution source pointing to each monitoring station according to the first location coordinates of each pollution source and the second location coordinates of each monitoring station. S22. Based on the meteorological field feature matrix, extract the average wind direction along the transmission path between each pollution source and each monitoring station at each time point; S23. Calculate the angle between the geographical azimuth and the average wind direction as a transmission consistency index; S24. When the transmission consistency index is less than 90 degrees and the distance between the pollution source and the monitoring station is less than the preset maximum transmission distance, it is determined that the directed edge exists; otherwise, it is determined that the directed edge does not exist. S25. For each of the directed edges that are determined to exist, construct the bipartite graph by taking each pollution source as the first type of node and each monitoring station as the second type of node; S26. For each of the directed edges that are determined to exist, calculate the initial physical weight of each directed edge based on the average wind speed on the transmission path, the transmission consistency index, and the distance between the pollution source and the monitoring station.

3. The method according to claim 2, characterized in that, The first embedded network is a pollution source feature encoder, which includes a first input batch normalization layer, a first extended convolutional layer, a first gated linear unit, and a first output layer connected in sequence. The second embedded network is a monitoring site feature encoder, which includes a second input batch normalization layer, a second extended convolutional layer, a second gated linear unit, and a second output layer connected in sequence. The third embedded network is a meteorological feature encoder, which includes a third input batch normalization layer, a third extended convolutional layer, a third gated linear unit, and a third output layer connected in sequence. The first extended convolutional layer, the second extended convolutional layer, and the third extended convolutional layer have different expansion rate parameters and different convolutional kernel parameters. S3 includes: S31. Based on the meteorological field feature matrix, extract the meteorological parameter sequence corresponding to each directed edge at each time, and construct the meteorological feature vector of each directed edge based on each meteorological parameter sequence; wherein, the meteorological parameter sequence includes the average wind speed along the transmission path, the average wind direction along the transmission path, the average temperature along the transmission path, the atmospheric stability category, and the distance between the pollution source and the monitoring station. S32. Input the features of each of the first type of nodes into the first input batch normalization layer of the first embedding network for feature-by-feature normalization, input the normalized first features into the first extended convolutional layer for temporal extended convolution, input the first convolution result into the first gated linear unit for nonlinear gated transformation, obtain the first transformation result, input the first transformation result into the first output layer, and output the embedding vector of each pollution source node. S33. Input the features of each second type of node into the second input batch normalization layer of the second embedding network for feature-by-feature normalization, input the normalized second features into the second extended convolutional layer for temporal extended convolution, input the second convolution result into the second gated linear unit for nonlinear gated transformation, obtain the second transformation result, input the second transformation result into the second output layer, and output the embedding vector of each monitoring station node. S34. Input the meteorological feature vectors of each directed edge into the third input batch normalization layer of the third embedding network for feature-by-feature normalization to obtain normalized meteorological feature vectors. Input the normalized meteorological feature vectors into the third extended convolutional layer for temporal extended convolution. Input the third convolution result into the third gated linear unit for nonlinear gated transformation to obtain the third transformation result. Input the third transformation result into the third output layer to output the meteorological field constraint edge embedding vectors of each directed edge.

4. The method according to claim 1, characterized in that, In step S4, based on the pollution source node embedding vector, the monitoring station node embedding vector, the meteorological field constraint edge embedding vector, and the physical initial weights, the initial attention weights of the meteorological field constraints are calculated to obtain the initial attention weight matrix, including: S41. The meteorological field constraint edge embedding vector of each directed edge is processed by a preset physical constraint function to obtain the physical constraint scalar corresponding to each directed edge. The physical constraint scalar is used to represent the pollutant transmission efficiency on the transmission path indicated by the corresponding directed edge. S42. Calculate the data-driven attention coefficient based on the embedding vectors of the pollution source nodes and the monitoring station nodes connected by each of the directed edges; S43. Take the physical constraint scalar corresponding to each directed edge as the first bias term, and take the logarithm of the physical initial weight corresponding to each directed edge as the second bias term. Add the first bias term and the second bias term of each directed edge to the corresponding data-driven attention coefficient to obtain the meteorological field constraint attention coefficient of each directed edge. S44. Normalize the meteorological field constraint attention coefficients of each directed edge to obtain the initial attention weights of each directed edge, and construct the initial attention weight matrix based on the initial attention weights of each directed edge.

5. The method according to claim 1, characterized in that, In step S4, based on the initial attention weight matrix, multiple rounds of bidirectional message passing are performed on the bipartite graph. After each round of message passing, the attention weights are recalculated based on the updated node representations to obtain the iteratively optimized final attention weight matrix and the temporal final representation vector of each node in the bipartite graph, including: S51. The initial attention weight matrix is ​​used as the attention weight matrix of the zeroth round, the pollution source node embedding vector is used as the first node representation of the zeroth round of each first type of node, and the monitoring station node embedding vector is used as the second node representation of the zeroth round of each second type of node. S52. Perform multi-round bidirectional message passing on the bipartite graph. For the l-th round of message passing, extract the attention weights of each directed edge corresponding to the l-1th round from the attention weight matrix of the (l-1)th round. Based on the attention weights of each directed edge corresponding to the l-1th round and the first node representation of the l-1th round, perform a weighted aggregation operation on each second type of node to obtain the second node representation of each second type of node in the l-th round. Here, l takes the value from 1 to L, and L is the preset maximum number of iteration rounds. S53. Based on the attention weights of each directed edge in the (l-1)th round and the second node representations of each second type of node in the lth round, a weighted aggregation operation is performed on each first type of node to obtain the first node representations of each first type of node in the lth round. S54. Based on the first node representation of each first type of node in the l-th round and the second node representation of each second type of node in the l-th round, and combined with the meteorological field constraint edge embedding vector, recalculate the attention coefficient of each directed edge in the l-th round, normalize the attention coefficient of each directed edge in the l-th round to obtain the attention weight of each directed edge in the l-th round, and construct the attention weight matrix of the l-th round from the attention weight of each directed edge in the l-th round. S55. After completing L rounds of iterations, the attention weight matrix of the Lth round is obtained. The attention weight matrix of the Lth round is used as the final attention weight matrix. The first node representations of each first type of node in the Lth round are arranged in chronological order and input into the first bidirectional gated loop unit to obtain the final temporal representation vector of each first type of node. The second node representations of each second type of node in the Lth round are arranged in chronological order and input into the second bidirectional gated loop unit to obtain the final temporal representation vector of each second type of node.

6. The method according to claim 1, characterized in that, S5 includes: The time-series final representation vector corresponding to each of the first type of nodes is input into the emission intensity estimation network to obtain the emission intensity estimate of each pollution source at each time. The emission intensity estimation network includes a fourth input layer, a first long short-term memory network layer, a first discard layer, a fourth fully connected layer, and a fourth output layer connected in sequence. The fourth output layer is used to perform activation processing using a first nonlinear activation function to make the emission intensity estimate positive. The time-series final representation vector corresponding to each of the second type of nodes is input into the concentration prediction network to obtain the predicted pollutant concentration value of each monitoring station at each time. The concentration prediction network includes a fifth input layer, a second long short-term memory network layer, a second discard layer, a fifth fully connected layer and a fifth output layer connected in sequence. The fifth output layer is used to perform activation processing using a second nonlinear activation function to make the predicted pollutant concentration value positive. Based on the final attention weight matrix and the emission intensity estimate at each time point, the contribution rate of each pollution source to each monitoring station is calculated, and all contribution rate calculations corresponding to each monitoring station are normalized to obtain the contribution rate matrix.

7. The method according to claim 1, characterized in that, After calculating the contribution rate matrix of each pollution source to each monitoring station based on the final attention weight matrix and the emission intensity estimate of each pollution source, the method further includes: The mean square error between the predicted pollutant concentration and the observed pollutant concentration is used as the first loss term; the mean square error between the estimated emission intensity and the emission intensity value is used as the second loss term; the sum of squares of the deviations of the sum of each column in the contribution rate matrix from the value 1 is used as the third loss term; and the L1 norm of the contribution rate matrix is ​​used as the fourth loss term. The composite loss function is constructed based on the first loss term, the second loss term, the third loss term, and the fourth loss term; Training and validation sets are constructed from the pollution source emission inventory data, the monitoring station observation data, and the meteorological field grid data. A preset optimizer is used to iteratively optimize the composite loss function based on the training set. In each iteration, the first embedding network, the second embedding network, the third embedding network, the emission intensity estimation network, the concentration prediction network, and the calculation parameters used to calculate the attention weight in S4 are updated. When the value of the composite loss function on the validation set no longer decreases for a preset number of consecutive rounds, the iteration stops, and the updated calculation parameters are obtained. Based on the updated calculation parameters, S3 to S5 are re-executed to obtain the final contribution rate matrix.

8. A source tracing system for air pollution based on graph neural networks, characterized in that, The system includes: The data standardization preprocessing module is used to preprocess the pollution source emission inventory data, monitoring station observation data, and meteorological field grid data to obtain a standardized pollution source feature matrix, a standardized monitoring station feature matrix, and a meteorological field feature matrix. The pollution source emission inventory data includes the emission intensity value and first location coordinates of each pollution source, and the monitoring station observation data includes the pollutant concentration observation value and second location coordinates of each monitoring station. The dynamic bipartite graph construction module is used to determine whether there are directed edges between each pollution source and each monitoring station based on the standardized pollution source feature matrix and the standardized monitoring station feature matrix, taking each pollution source as a first type of node and each monitoring station as a second type of node, and based on the wind direction information at each time in the meteorological field feature matrix. Based on the determination result, a bipartite graph containing the first type of node, the second type of node and the directed edges is constructed, and the physical initial weight of each directed edge is calculated. The feature embedding unified coding module is used to input the features of each first type node and each second type node in the bipartite graph into the first embedding network and the second embedding network respectively to obtain the pollution source node embedding vector and the monitoring station node embedding vector. Based on the meteorological field feature matrix, the module generates the meteorological feature vector of each directed edge. The module inputs the meteorological feature vector of each directed edge in the bipartite graph into the third embedding network to obtain the meteorological field constraint edge embedding vector. The attention iterative optimization module is used to calculate the initial attention weights of the meteorological field constraints based on the pollution source node embedding vector, the monitoring station node embedding vector, the meteorological field constraint edge embedding vector, and the physical initial weights, to obtain an initial attention weight matrix; based on the initial attention weight matrix, multiple rounds of bidirectional message passing operations are performed on the bipartite graph, and the attention weights are recalculated based on the updated node representations after each round of message passing, to obtain the iteratively optimized final attention weight matrix and the temporal final representation vector of each node in the bipartite graph; The contribution rate accurate inversion module is used to calculate the emission intensity estimate of each pollution source and the pollutant concentration prediction of each monitoring station based on the time-series final representation vector of each node, and to calculate the contribution rate matrix of each pollution source to each monitoring station based on the final attention weight matrix and the emission intensity estimate of each pollution source.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.