Air pollution prediction model, method and system based on double-branch fusion and dynamic perception

By constructing a dual-branch prediction network and a dynamic state-aware weighted training engine, the contributions of local emissions and meteorological transport are explicitly decoupled. This solves the problem of physical mechanism mismatch and insufficient prediction of extreme events in existing air pollution prediction technologies, achieving high accuracy, interpretability, and real-time inflection point prediction, and meeting the needs of city-level emergency management.

CN123180428APending Publication Date: 2026-11-27南京口袋宝网络科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing air pollution prediction technologies have significant shortcomings in terms of physical interpretability, peak prediction capability for extreme events, static rigidity of training strategies, and sensitivity in capturing pollution inflection points, making it difficult to meet the real-time decision-making needs of city-level emergency management.

Method used

A dual-branch prediction network that explicitly decouples local emission contributions from meteorological transport contributions is constructed. A dynamic state-aware weighted training engine is used to achieve dynamic perception and weighting of sample states. Feature fusion and prediction are then performed by combining graph neural networks and gating mechanisms.

Benefits of technology

It significantly improves the physical interpretability of the model and the peak prediction accuracy of extreme pollution events, and can accurately predict the inflection point of pollution 2-4 hours in advance, meeting the real-time decision-making needs of city-level emergency management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180428A_ABST
    Figure CN123180428A_ABST
Patent Text Reader

Abstract

The application discloses an air pollution prediction model, method and system based on double-branch fusion and dynamic perception, and belongs to the technical field of atmospheric environment monitoring and artificial intelligence. The application constructs a double-branch prediction network, including a local branch for extracting local space-time features and a global branch for extracting global meteorological driving features, and a residual gate fusion module is used to weight and fuse the two to obtain a pollutant concentration prediction value; a dynamic state perception weighted training engine is established, a multi-dimensional state vector of a sample is calculated by a state perceiver, and a dynamic weight is generated by a weight generator according to the state vector; and the double-branch prediction network and the dynamic state perception weighted training engine are jointly trained. The application realizes explicit decoupling of local emission and meteorological transportation contribution, overcomes the peak underestimation problem caused by class imbalance, and improves the prediction accuracy and inflection point capture sensitivity of extreme pollution events.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of atmospheric environment monitoring and artificial intelligence technology, specifically relating to an air pollution prediction model, prediction method, and prediction system based on deep learning-based dual-branch fusion and dynamic perception, which is particularly suitable for PM2.5 prediction at the urban scale. 2.5 PM 10 It can accurately predict the hourly concentrations of various pollutants such as O3 and has robust prediction capabilities under extreme pollution events. Background Technology

[0002] Air pollution, especially fine particulate matter (PM2.5) 2.5 Ozone (O3), nitrogen oxides (NO) x Pollutants such as ...

[0003] Accurate air pollution concentration forecasts are the core decision-making basis for environmental regulatory authorities to formulate emergency emission reduction measures and issue pollution warnings.

[0004] Because the evolution of pollutant concentration is subject to complex nonlinear coupling effects from multiple factors such as emission intensity and distribution of emission sources, meteorological conditions, topography and atmospheric photochemical reactions, its high-precision prediction models and methods are extremely challenging at both the theoretical and engineering levels.

[0005] In existing technologies, air pollution prediction models mainly include: the first type, numerical models based on physicochemical mechanisms, represented by WRF-Chem, CMAQ, CAMx, etc.

[0006] These models, by solving atmospheric hydrodynamic equations, mass conservation equations, and chemical reaction kinetic equations, numerically simulate the entire process of pollutant emission, advection transport, turbulent diffusion, dry and wet deposition, and gas-liquid phase chemical transformation based on first principles. Their physical meaning is clear, and they have irreplaceable advantages in large-scale regional simulations.

[0007] However, high-resolution numerical forecasting using this type of model requires massively parallel computing resources, with a single forecast taking several hours to tens of hours, making it difficult to meet the timeliness requirements of real-time operational forecasting. The model performance is heavily dependent on the accuracy of the emission inventory, the accuracy of the initial field and boundary conditions, and the completeness of the chemical mechanisms, but these data often have significant uncertainties in practical applications. More importantly, while numerical models typically perform well at regional scales, in refined forecasts at the city station level, they cannot closely match the actual observation data from ground monitoring stations, resulting in large prediction biases at local scales, making it difficult to directly provide accurate decision-making basis for city-level emergency management.

[0008] The second category consists of models based on traditional statistics and machine learning, including Autoregressive Moving Average (ARIMA), Support Vector Regression (SVR), Random Forest, and Extreme Gradient Boosting (XGBoost).

[0009] It learns statistical patterns from historical monitoring data, has high computational efficiency and low implementation threshold, and can achieve certain results on small-scale structured datasets.

[0010] However, its feature representation ability is severely insufficient, relying on manual feature engineering, making it difficult to effectively mine complex relationships with high dimensions, nonlinearity, and strong spatiotemporal coupling; its ability to model large-scale driving factors such as the spatial evolution of meteorological fields and cross-regional transport of pollutants is particularly weak; when encountering new pollution patterns or extreme meteorological conditions that have not appeared in the training data, its prediction performance drops sharply or even fails completely.

[0011] The third category consists of end-to-end prediction models based on deep learning, such as graph neural networks (GNN / GCN), long short-term memory networks (LSTM), Transformer and its variants. Among them, graph neural networks model monitoring sites as graph nodes and aggregate spatial neighborhood information using graph convolution; LSTM and its variants model temporal dependencies through gating mechanisms; and Transformer directly models long sequence dependencies using multi-head self-attention mechanisms.

[0012] Some methods combine graph neural networks with Transformers, which significantly improves prediction accuracy compared to traditional methods.

[0013] However, existing deep learning methods still have systemic defects that limit the effectiveness and reliability of the models in practical business applications: Defect 1: Physical mechanism mismatch leads to feature confusion and lack of interpretability.

[0014] The physical nature of air pollution is a nonlinear superposition of "local emission contribution" and "regional meteorological transport contribution".

[0015] Local emission sources are mainly characterized by concentration similarities and propagation delays among neighboring sites, with a relatively slow evolution timescale. Large-scale meteorological conditions, on the other hand, determine the cross-regional transport paths, transport rates, and deposition efficiency of pollutants. Their changes are often closely related to the movement and evolution of weather systems and may cause drastic disturbances to site concentrations.

[0016] These two driving factors have completely different physical origins and vastly different spatiotemporal scales.

[0017] Existing deep learning methods almost all adopt early feature fusion strategies, which directly concatenate station pollutant concentration data and meteorological grid data into a multi-channel input tensor at the input layer or shallow layer of the network, and then feed it into a single network for end-to-end learning.

[0018] This approach of forcibly integrating features from different physical sources and at different spatiotemporal scales results in highly coupled representations within the network. The model cannot clearly decouple whether "the change in concentration at a certain site is due to changes in local source strength" or "it is caused by the cross-regional transport of pollutants from the upwind direction," thus becoming a "black box" with unclear physical meaning.

[0019] As is well known to those skilled in the art, models lacking physical interpretability often suffer a sharp drop in predictive reliability when encountering rare or extreme weather conditions outside the distribution of training data. Environmental managers are also unable to trace the causes of pollution based on the model's output, which greatly limits the operational application value of the model.

[0020] Defect 2: Category imbalance leads to the failure of extreme event prediction, also known as the "peak shaving and valley filling" phenomenon. Air quality data exhibits a severe long-tail distribution: most of the year is characterized by good or excellent air quality, with a very low percentage of heavily polluted days.

[0021] When loss functions such as mean squared error (MSE) or mean absolute error (MAE) are used to treat all sample errors equally, significant gains are made in the overall error; conversely, even if the fitting effect of a few high-concentration extreme samples is greatly improved, the contribution to the overall error is very limited.

[0022] Defect 3: The training strategy is static and rigid, and cannot perceive the state of the data.

[0023] Current deep learning models are trained using a static loss function, where all training samples are treated equally during the training process.

[0024] The "predictive value" and "learning difficulty" of different training samples vary greatly: clean day samples with stable meteorological conditions and moderate pollutant concentrations have simple concentration evolution patterns and are very easy to predict; while "pollution process initiation" samples that are located before the passage of a strong cold front and where pollutants accumulate rapidly upwind and then enter the region by advection are extremely difficult to predict and have the highest early warning value.

[0025] Current static training strategies cannot enable models to proactively and adaptively focus on critical scenarios that are difficult to predict but have high early warning value during the training process.

[0026] Defect 4: Weak ability to capture the "inflection point" of the pollution process.

[0027] The initial moment (sudden increase in concentration) and the moment (sudden decrease in concentration) of a pollution incident are the golden window for emergency response. Accurately predicting the inflection point several hours in advance can buy valuable preparation time for emergency measures such as traffic control and industrial production restrictions.

[0028] Existing methods mainly rely on memory gating mechanisms in recurrent neural networks or attention weights in Transformers to passively infer temporal trend changes, completely lacking any mechanism for explicit reinforcement learning of inflection point samples at the training objective level.

[0029] The consequence is that inflection point predictions often have a time lag of several hours, or fail to capture concentration mutations at all, causing emergency measures to miss the window of opportunity.

[0030] Defect 5: The fusion of multi-source heterogeneous features lacks physical constraints.

[0031] Existing methods still lack effective physical constraint mechanisms at the level of integrating local monitoring features with global meteorological features.

[0032] Most fusion strategies are still simple feature splicing or weighted summation, with fusion weights either fixed or learned automatically by the network without physical semantics.

[0033] Those skilled in the art will understand that, in actual atmospheric environments, the actual modulating effect of meteorological conditions on local pollution concentrations is not constant—when meteorological conditions are favorable for pollutant dispersion (e.g., strong winds, precipitation), the contribution of the meteorological transport term should be suppressed; when meteorological conditions are favorable for regional transport and accumulation of pollutants (e.g., persistent light winds, temperature inversion stratification), the contribution of the meteorological transport term should be enhanced.

[0034] This dynamic modulation relationship has not been effectively represented in existing models, resulting in a lack of physical rationality in the fusion process.

[0035] In summary, existing air pollution prediction technologies have significant shortcomings in key dimensions such as physical interpretability, peak prediction capability for extreme events, training adaptability and state awareness capability, and sensitivity in capturing pollution inflection points.

[0036] There is an urgent need for a novel prediction method and system that can explicitly decouple the two physical processes of local emissions and meteorological transport at the architecture level, achieve an adaptive weighting mechanism for dynamic perception of sample states at the training level, and maintain lightweight and high efficiency at the inference level. Summary of the Invention

[0037] The purpose of this invention is to overcome the shortcomings of existing air pollution prediction technologies, such as physical mechanism mismatch, underestimation of extreme event peaks, static rigidity of training strategies, and lag in capturing pollution inflection points, and to provide an air pollution prediction method and system with dual-branch fusion and dynamic perception.

[0038] This invention constructs a dual-branch prediction network that explicitly decouples local emission contributions from meteorological transport contributions, and establishes a dynamic state-aware weighted training engine that can dynamically generate training weights based on the multidimensional state of samples. This enables intelligent air pollution prediction with higher prediction accuracy, robust and reliable performance in extremely complex scenarios, and transparent decision-making logic.

[0039] To achieve the above objectives, one aspect of the present invention provides an air pollution prediction model based on dual-branch fusion and dynamic sensing, which is trained through the following steps: Step S1: Obtain local monitoring time-series data and global meteorological grid data and construct training samples; Step S2, construct a dual-branch prediction network: process the local monitoring time series data to obtain local spatiotemporal features; process the global meteorological grid data to obtain a global meteorological driving feature vector; and weight and fuse the local spatiotemporal features and the global meteorological driving features to obtain the predicted pollutant concentration value. Step S3, establish a dynamic state-aware weighted training engine: process the training samples to obtain a multi-dimensional state vector representing the sample state; establish a weight generator, which is used to generate dynamic weights of the training samples during the training process based on the multi-dimensional state vector. Step S4: Jointly train the dual-branch prediction network and the dynamic state-aware weighted training engine: calculate the predicted value of the training sample and the corresponding basic loss; calculate the dynamic weight of the training sample, and weight the basic loss according to the dynamic weight to obtain the weighted total loss; based on the weighted total loss, update the parameters of the dual-branch prediction network and the weight generator simultaneously through backpropagation.

[0040] Furthermore, in step S2, the local monitoring time-series data is processed to obtain local spatiotemporal features, including the following sub-steps: Step S211: Input pollutant concentration data from N monitoring stations over the past T hours: in, Represents a tensor of local monitoring time series data; Indicates the length of the input time window; This indicates the total number of monitoring stations within the target area; Indicates the number of pollutant types; The superscript indicates the real number field; the superscript indicates the size of each dimension of the tensor. Step S212: A spatial graph is constructed using a graph neural network, treating the monitoring stations as nodes, and the weights of the edges connecting the nodes are calculated based on the distance between the stations. in, Indicates the first The site and the first The weight of the edges connecting individual sites; Indicates the first The site and the first Spatial distance between stations; This represents the bandwidth hyperparameter; A graph convolutional network is used to simultaneously aggregate information from spatial neighbors and the temporal dimension. The propagation rule of the graph convolutional network is as follows: in, Indicates the first Layer node feature matrix; Indicates the first Layer node feature matrix; Represents a non-linear activation function; Indicates the propagation order index; Indicates the maximum propagation order; Indicates the first The learnable weight matrix corresponding to the first-order propagation; Represents an adjacency matrix with self-connections; Degree matrix; Indicates the first The learnable weight matrix of the layer; Step S213, output the local spatiotemporal features: in, Represents the local spatiotemporal feature tensor; Indicates the number of time steps after compression; This represents the dimension of the local feature vector.

[0041] Furthermore, the adjacency matrix with self-connection Construct according to the following formula: in, This is the original adjacency matrix, and its elements are... ; for An identity matrix of order 1; Indicates the first The site and the first The weight of the edges connecting individual sites; The degree matrix For a diagonal matrix, its diagonal elements are calculated according to the following formula: in, Represents a node The degree; This represents the adjacency matrix with self-connection. The Middle Line 1 Column elements; This indicates the total number of monitoring stations within the target area.

[0042] Furthermore, in step S2, the global meteorological grid data is processed to obtain a global meteorological driving feature vector, including the following sub-steps: Step S221, Input large-scale meteorological gridded field data: in, Represents the global meteorological grid data tensor; Indicates the length of the input time window; This indicates the number of grid cells in the latitudinal direction of the meteorological grid field; This indicates the number of grid cells in the longitude direction of the meteorological grid field; Indicates the number of meteorological variable channels; Step S222: Extract spatial patterns through convolutional layers, flatten the spatial dimensions, and transform them into sequence input gated recurrent units. in, Indicates the first The meteorological feature vector after convolution and flattening at any given moment; Indicates the first Complete meteorological grid field data at any given time: in, Indicates the first The hidden state vector of the time-gated loop unit; Indicates the first The hidden state vector of the time-gated loop unit; Step S223, output at all time steps of the gated loop unit Applying multi-head self-attention mechanism: in, Represents the self-attention function; Represents the query matrix; Represents the key matrix; Represents a value matrix; This represents the hidden state output sequence of all time steps of the gated loop unit; , , Let represent the learnable linear projective weight matrices, respectively. Indicates the dimension of the key vector; superscript Indicates matrix transpose; Step S224: Perform global average pooling on the attention output, and then map it through a fully connected layer to obtain the global meteorological driving feature vector: in, This represents the global meteorological driving feature vector tensor; Indicates the number of time steps after compression; This indicates the total number of monitoring stations within the target area; This represents the global feature dimension.

[0043] Furthermore, in step S2, the local spatiotemporal features are weighted and fused with the global meteorological driving features to obtain the predicted pollutant concentration value, including the following steps: A linear transformation layer maps global features to a space with the same dimensionality as local features: in, Represents a linear transformation function along the channel dimension; Represents the learnable linear transformation weight matrix; Represents a learnable bias vector; Represents the global features after dimension alignment; The dimension of the local feature vector; Represents the global feature dimension; Calculate the meteorological impact threshold coefficient: in, The tensor representing the gating coefficient of meteorological influence; This represents the Sigmoid activation function; This represents the weight matrix of the gated network; This means concatenating the local features with the aligned global features along the feature channel dimension; Represents the bias vector of the gated network; ; Calculate the fusion features using the following formula: in, This represents the depth features after fusion; This indicates that the Hadamard product is an element-wise multiplication. Represents local spatiotemporal characteristics; The tensor representing the gating coefficient of meteorological influence; Represents the global features after dimension alignment; The fused features are input into the regression head network, which outputs predicted pollutant concentrations. in, This represents the tensor of the predicted pollutant concentration. This represents a regression head network function consisting of at least one fully connected layer; Indicates the predicted duration, in hours; This indicates the total number of monitoring stations within the target area; This indicates the number of pollutant types.

[0044] Furthermore, in step S3, the training samples are processed to obtain a multidimensional state vector representing the sample state. This includes sub-steps: Calculating pollution severity index : in, Indicators representing the severity of pollution ; This represents the average pollutant concentration at all stations within the target area at the current moment; This represents the global mean concentration of the pollutant in the historical data of the training set; This represents the global standard deviation of the pollutant concentration in the historical data of the training set; Calculate meteorological complexity index : in, Indicators representing meteorological complexity; Indicates the length of the input time window; Indicates the first Wind speed vector at any given moment; Indicates the first Wind speed vector at any given moment; Denotes the Euclidean norm; Calculate spatial heterogeneity index : in, Indicators representing spatial heterogeneity; Indicates all at the most recent moment A vector composed of pollutant concentration values ​​from each station; This represents the standard deviation of the vector; This represents the maximum value of the vector; This represents the minimum value of the vector; Represents extremely small positive numbers; The pollution severity index Meteorological complexity index and spatial heterogeneity index Concatenate into a multidimensional state vector: in, Indicates the first A multidimensional state vector for each sample; superscript Indicates vector transpose; It represents a three-dimensional real vector space.

[0045] Furthermore, the multidimensional state vector It also includes the temporal abrupt change index. The time-series abrupt change index Calculate using the following formula: in, Indicators representing temporal abrupt changes; Indicates the first Time and the The concentration difference over time; Indicates the first The average concentration of all stations within the target area at any given time; Indicates continuity A sequence of absolute values ​​of concentration differences; This represents the maximum value of the absolute value sequence; This indicates the set mutation detection threshold; The multidimensional state vector is: in, Indicates the first A multidimensional state vector for each sample; Indicators representing the severity of pollution; Indicators representing meteorological complexity; Indicators representing spatial heterogeneity; Indicates the degree of temporal abrupt change; superscript Indicates vector transpose; This represents a four-dimensional real vector space.

[0046] Furthermore, in step S4, the calculation of the first... The basic loss for each sample is as follows: in, Indicates the first The basic loss for each sample; Indicates the predicted duration; This indicates the total number of monitoring stations within the target area; Indicates the number of pollutant types; , , These represent the time step index, site index, and pollutant type index, respectively. Represents the Huber loss function; Indicates the first Each sample at time... , site Types of pollutants The truth value of; Indicates the first Each sample at time... , site Types of pollutants The predicted value; The base loss is weighted according to the dynamic weights to obtain the weighted total loss: in, Indicates the weighted total loss; Indicates batch size; Indicates the first Dynamic weighting coefficients for each sample; Indicates the first The base loss for each sample.

[0047] Another aspect of the present invention provides an air pollution prediction method based on dual-branch fusion and dynamic sensing, which uses the above-mentioned model for prediction and includes the following steps: Step P1: Obtain pollutant concentration data for the target area in the current and historical periods, as well as corresponding weather forecast data for future periods; Step P2 involves preprocessing the pollutant concentration data of the target area and the weather forecast data for the future period. Step P3: Input the preprocessed data into the model. After forward propagation, the model outputs the predicted pollutant concentration values ​​for future periods. Step P4: Compare the predicted pollutant concentration with a preset pollution level threshold. If the predicted pollutant concentration exceeds the preset pollution level threshold, generate and issue a pollution warning.

[0048] Another aspect of the present invention provides an air pollution prediction system based on dual-branch fusion and dynamic sensing, which is used to implement the above-mentioned air pollution prediction method. The prediction system includes: The data acquisition module is used to acquire pollutant concentration data of the target area for the current and historical periods, as well as corresponding weather forecast data for the future periods; The preprocessing module is used to preprocess the pollutant concentration data of the target area and the weather forecast data for the future period; The online prediction module is used to input preprocessed data into the model, and the model outputs predicted pollutant concentration values ​​for future periods after forward propagation. The early warning release module is used to compare the predicted value of pollutant concentration with a preset pollution level threshold. If the predicted value of pollutant concentration exceeds the preset pollution level threshold, a pollution early warning information is generated and released.

[0049] Compared with the prior art, the present invention has the following significant advantages: First, by using a dual-branch residual fusion network architecture, the contributions of local emissions and meteorological transport are explicitly decoupled, which significantly improves the physical interpretability of the model and the predictive stability under complex meteorological conditions.

[0050] The fusion expression of the present invention It has clear physical semantics: the first term The second item represents local basic contributions. This represents the contribution of meteorological transport modulated by the gating coefficient.

[0051] Gating coefficient A value close to 0 indicates that local accumulation is dominant, while a value close to 1 indicates that meteorological transport is dominant, allowing the model's decision-making logic to be traced back to specific physical processes.

[0052] To address the first defect in the background technology, "feature confusion and lack of interpretability due to physical mechanism mismatch," this solution achieves physically interpretable prediction through independent extraction of two branches and explicit gating modulation.

[0053] Second, by using a dynamic state-aware weighted training engine, the "peak shaving and valley filling" phenomenon caused by class imbalance is fundamentally overcome, significantly improving the peak prediction accuracy of extreme pollution events.

[0054] The state perceptron computes a multidimensional state vector. To give high-concentration extreme samples higher dynamic weights The weight generator automatically discovers key samples through meta-learning, enabling the model optimization focus to actively shift to high-concentration extreme samples.

[0055] To address the second defect in the background technology, "class imbalance leads to the failure of extreme event prediction," this solution uses a dynamic weighting mechanism to enable the model to actively focus on high-concentration extreme samples.

[0056] Third, by binding the training objective to the state of the input data in real time, the "information barrier" between the training process and the data state is broken down, and adaptive training with "state awareness" is achieved.

[0057] Meteorological complexity index and spatial heterogeneity index This allows samples with drastic changes in weather conditions and extremely uneven spatial distribution to be automatically identified and given higher weights. The model learns meta-knowledge on "how to adjust the learning focus according to the data status".

[0058] To address the third defect in the background technology, "the training strategy is static and rigid, and cannot perceive the data state," this solution achieves dynamic state perception of the training target.

[0059] Fourth, through the temporal abrupt change index The explicit design and differentiated empowerment directly strengthen the learning of the pollution "inflection point".

[0060] Inflection point samples receive 3 times higher weight contribution than non-inflection point samples. vs This directly optimizes the model's sensitivity to concentration changes, allowing for prediction of the pollution onset time 2-4 hours earlier.

[0061] To address the fourth deficiency in the background technology, "weak ability to capture inflection points in pollution processes," this solution explicitly strengthens the learning of inflection point samples at the training objective level.

[0062] Fifth, by organically combining residual structure and gating mechanism, dynamic sensing and adaptive adjustment of meteorological modulation intensity can be achieved.

[0063] Gating coefficient As meteorological conditions change dynamically, the fusion process strictly follows the physical superposition principle of "local emissions + meteorological transport = observed concentration".

[0064] To address the fifth defect in the background technology, "lack of physical constraints in the fusion of multi-source heterogeneous features," this solution utilizes a meteorological influence gating coefficient. Dynamic fusion with physical constraints was achieved. Attached Figure Description

[0065] Figure 1 is a flowchart of the training method for the dual-branch fusion and dynamic sensing air pollution prediction model according to an embodiment of the present invention; Figure 2 is a schematic diagram of the internal structure of a dual-branch prediction network according to an embodiment of the present invention; Figure 3 is a schematic diagram of the structure of the dynamic state-aware weighted training engine of the present invention; Figure 4 is a schematic diagram of the online prediction process of the air pollution prediction method based on dual-branch fusion and dynamic sensing of the present invention. Detailed Implementation

[0066] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0067] Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.

[0068] Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0069] For ease of consistent understanding, the following notation conventions will be used throughout the text: This represents local monitoring time series data. Represents global meteorological grid data. Represents local spatiotemporal characteristics. This represents the global meteorological driving feature vector. This represents the depth features after fusion. The tensor representing the gating coefficient of meteorological influence. Let represent the multidimensional state vector of the i-th sample. This represents the dynamic weight coefficient of the i-th sample. This represents the predicted value of pollutant concentration. Indicates the weighted total loss. This represents the complete set of trainable parameters for a two-branch prediction network. This represents the complete set of trainable parameters for the weight generator.

[0070] According to one embodiment of the present invention, an air pollution prediction model based on dual-branch fusion and dynamic sensing is provided, such as... Figure 1 As shown, a complete model training method is presented, from data preparation, forward propagation of the two-branch prediction network, dynamic state-aware weighted training engine to joint optimization and updating, as well as the data flow relationship between the modules involved.

[0071] Specifically, the training of this model includes the following steps: Step S1: Obtain training data and construct training samples; the training data includes local monitoring time series data and corresponding global meteorological grid data; the local monitoring time series data includes pollutant concentration data of monitoring stations, and the global meteorological grid data includes large-scale meteorological grid field data. Step S2, construct a dual-branch prediction network, including: Local spatiotemporal features are obtained by processing local monitoring time-series data. These features are used to characterize the spatiotemporal autocorrelation and cross-correlation features of emissions originating from stationary emission sources and urban microscale diffusion in the monitoring station network. Global meteorological grid data is processed to obtain a global meteorological driving feature vector; the global meteorological driving feature vector is used to characterize the features that are driven by large-scale weather systems and determine the cross-regional transport path, rate and deposition of pollutants. By weighted and fused local spatiotemporal features with global meteorological driving features, the predicted pollutant concentration values ​​are obtained; Step S3, establish a dynamic state-aware weighted training engine, including: The training samples are processed to obtain a multidimensional state vector representing the sample state; Establish a weight generator, which is used to generate dynamic weights for training samples during the training process based on the multidimensional state vector; Step S4 involves jointly training the dual-branch prediction network and the dynamic state-aware weighted training engine, including: In step S2, the predicted values ​​of the training samples and the corresponding basic loss are calculated; the basic loss is the difference between the predicted value and the true value. In step S3, the dynamic weights of the training samples are calculated. The weighted total loss is obtained by weighting the base loss with dynamic weights. Based on the weighted total loss, the parameters of the dual-branch prediction network and the weight generator are updated simultaneously through backpropagation.

[0072] Preferably, in step S2, the local monitoring time-series data is processed to obtain local spatiotemporal features. Figure 2 The detailed structure of the local spatiotemporal feature extraction branch (including spatial graph construction and spatiotemporal graph convolution operation), the global meteorological driven feature extraction branch (including convolutional coding, gated recurrent unit temporal modeling, multi-head self-attention mechanism and pooling mapping), and the residual gated fusion module (including channel alignment, meteorological influence gate coefficient calculation and element-wise weighted fusion) is shown.

[0073] like Figure 2 As shown, step S2 further includes the following sub-steps: Step S211: Input pollutant concentration data from N monitoring stations over the past T hours: in, Represents a tensor of local monitoring time series data; This indicates the length of the input time window, in hours. This indicates the total number of monitoring stations within the target area; This indicates the number of pollutant types, which must include at least fine particulate matter (PM2.5). 2.5 Inhalable particulate matter (PM) 10 One or more of ozone (O3); The superscript indicates the real number field; the superscript indicates the size of each dimension of the tensor.

[0074] Step S212: A spatial graph is constructed using a graph neural network, treating monitoring stations as nodes, and the weights of the edges connecting nodes are calculated based on the distance between stations. in, Indicates the first The site and the first The weight of the edges connecting individual sites; Indicates the first The site and the first Spatial distance between stations; This represents the bandwidth hyperparameter; Represented by natural constant An exponential function with base 0.

[0075] Graph convolutional networks (GCNNs) are used to simultaneously aggregate information from spatial neighbors and the temporal dimension. The propagation rules of GCNNs are as follows: in, Indicates the first Layer node feature matrix; Indicates the first Layer node feature matrix; Represents a non-linear activation function; Indicates the propagation order index; Indicates the maximum propagation order; Indicates the first The learnable weight matrix corresponding to the first-order propagation; Represents an adjacency matrix with self-connections; Degree matrix; Indicates the first The learnable weight matrix of a layer; symbol This represents a linear combination of element-wise multiplication and channel dimension.

[0076] Step S213, output local spatiotemporal features: in, Represents the local spatiotemporal feature tensor; Indicates the number of time steps after compression; This represents the dimension of the local feature vector.

[0077] Preferred adjacency matrix with self-connection Construct according to the following formula: in, This is the original adjacency matrix, and its elements are... ; for An identity matrix of order 1; Indicates the first The site and the first The weight of the edges connecting the sites.

[0078] The above degree matrix For a diagonal matrix, its diagonal elements are calculated according to the following formula: in, Represents a node The degree; Represents an adjacency matrix with self-connections The Middle Line number Column elements; This indicates the total number of monitoring stations within the target area.

[0079] Preferably, in step S2, the global meteorological grid data is processed to obtain a global meteorological driving feature vector, including sub-steps such as... Figure 2 As shown: Step S221, Input large-scale meteorological gridded field data: in, Represents the global meteorological grid data tensor; Indicates the length of the input time window; This indicates the number of grid cells in the latitudinal direction of the meteorological grid field; This indicates the number of grid cells in the longitude direction of the meteorological grid field; This represents the number of meteorological variable channels, and the meteorological variables must include at least wind speed. Quantity, wind speed Quantity, temperature, air pressure, and specific humidity.

[0080] Step S222: Extract spatial patterns through convolutional layers, flatten the spatial dimensions, and transform them into sequence input gated recurrent units. in, Indicates the first The meteorological feature vector after convolution and flattening at any given moment; This represents the operation function that flattens a two-dimensional feature map into a one-dimensional vector. This represents a two-dimensional convolution operation function; Indicates the first Complete meteorological grid field data at any given time: in, Indicates the first The hidden state vector of the time-gated loop unit; Indicates the first The hidden state vector of the time-gated loop unit; This represents the recursive computation function of the gated loop unit.

[0081] Step S223, output at all time steps of the gated loop unit Applying multi-head self-attention mechanism: in, Represents the self-attention function; Represents the query matrix; Represents the key matrix; Represents a value matrix; This represents the hidden state output sequence of all time steps of the gated loop unit; , , Let represent the learnable linear projective weight matrices, respectively. Indicates the dimension of the key vector; This indicates the function that performs softmax normalization by row; superscript This indicates the matrix transpose.

[0082] Step S224: Perform global average pooling on the attention output, and then map it through a fully connected layer to obtain the global meteorological driving feature vector: in, This represents the global meteorological driving feature vector tensor; Indicates the number of time steps after compression; This indicates the total number of monitoring stations within the target area; This represents the global feature dimension.

[0083] like Figure 1-2 As shown, in step S2, local spatiotemporal features and global meteorological driving features are weighted and fused to obtain predicted pollutant concentration values, including: A linear transformation layer maps global features to a space with the same dimensionality as local features: in, Represents a linear transformation function along the channel dimension; Represents the learnable linear transformation weight matrix; Represents a learnable bias vector; Represents the global features after dimension alignment; The dimension of the local feature vector; This represents the global feature dimension.

[0084] Calculate the meteorological impact threshold coefficient: in, The tensor representing the gating coefficient of meteorological influence; This represents the Sigmoid activation function; This represents the weight matrix of the gated network; This means concatenating the local features with the aligned global features along the feature channel dimension; Represents the bias vector of the gated network; .

[0085] The fusion features are calculated using the following formula: in, This represents the depth features after fusion; This indicates that the Hadamard product is an element-wise multiplication. Represents local spatiotemporal characteristics; The tensor representing the gating coefficient of meteorological influence; This represents the global features after dimension alignment.

[0086] The fused features are input into the regression head network, which outputs predicted pollutant concentrations. in, This represents the tensor of the predicted pollutant concentration. This represents a regression head network function consisting of at least one fully connected layer; Indicates the predicted duration, in hours; This indicates the total number of monitoring stations within the target area; This indicates the number of pollutant types.

[0087] Preferably, in step S3, the training samples are processed to obtain a multidimensional state vector representing the sample state. ,like Figure 3 The figure shows a state sensor (including pollution severity indicators). Meteorological complexity index Spatial heterogeneity index Time series mutation index The complete data flow includes the computation process, weight generator (including multilayer perceptron mapping and Softplus activation), and weighted loss calculation.

[0088] The specific calculation process includes the following: The pollution severity index is calculated using the following formula. : in, Indicators representing the severity of pollution ; This represents the Sigmoid activation function; This represents the average pollutant concentration at all stations within the target area at the current moment; This represents the global mean concentration of the pollutant in the historical data of the training set; This represents the global standard deviation of the pollutant concentration in the historical data of the training set.

[0089] The meteorological complexity index is calculated using the following formula. : in, Indicators representing meteorological complexity; Indicates the length of the input time window; Indicates the first Wind speed vector at any given moment; Indicates the first Wind speed vector at any given moment; This represents the Euclidean norm.

[0090] Calculate the spatial heterogeneity index using the following formula : in, Indicators representing spatial heterogeneity; Indicates all at the most recent moment A vector composed of pollutant concentration values ​​from each station; This represents the standard deviation of the vector; This represents the maximum value of the vector; This represents the minimum value of the vector; It represents a very small positive number.

[0091] Pollution severity index Meteorological complexity index and spatial heterogeneity index Concatenate into a multidimensional state vector: in, Indicates the first A multidimensional state vector for each sample; superscript Indicates vector transpose; It represents a three-dimensional real vector space.

[0092] Preferred, multidimensional state vector It also includes the temporal abrupt change index. Temporal abrupt change index Calculate according to the formula: in, Indicators representing temporal abrupt changes; Indicates the first Time and the The concentration difference over time; Indicates the first The average concentration of all stations within the target area at any given time; Indicates continuity A sequence of absolute values ​​of concentration differences; This represents the maximum value of the absolute value sequence; This indicates the set mutation detection threshold.

[0093] The multidimensional state vector is: in, Indicates the first A multidimensional state vector for each sample; Indicators representing the severity of pollution; Indicators representing meteorological complexity; Indicators representing spatial heterogeneity; Indicates the degree of temporal abrupt change; superscript Indicates vector transpose; This represents a four-dimensional real vector space.

[0094] Preferably, in step S3, the weight generator is a multilayer perceptron, and the output is dynamic sample weights. Calculated in the following way Inputting the multidimensional state vector into the multilayer perceptron network yields the original scalar values: in, This represents a multilayer perceptron network function used to generate sample weights, containing at least one hidden layer; Indicates the first A multidimensional state vector for each sample; This represents the raw scalar value output by the multilayer perceptron network.

[0095] Dynamic sample weights are generated by overlaying baseline weights using the Softplus activation function. in, Indicates the first The dynamic weighting coefficients of each sample. The range of values ​​is ; This refers to the Softplus activation function, which is defined as follows: ; Represented by natural constant A logarithmic function with base 0; Represents the natural constant; This represents the raw scalar value output by the multilayer perceptron network; This represents a baseline weight value that is greater than zero.

[0096] Preferably, in step S4, the basic loss is the Huber loss, calculated according to the following formula: The base loss for each sample: in, Indicates the first The basic loss for each sample; Indicates the predicted duration; This indicates the total number of monitoring stations within the target area; Indicates the number of pollutant types; , , These represent the time step index, site index, and pollutant type index, respectively. Represents the Huber loss function; Indicates the first Each sample at time... , site Types of pollutants The truth value of; Indicates the first Each sample at time... , site Types of pollutants The predicted value.

[0097] Huber loss function Defined as: in, This represents the value of the Huber loss function; Indicates the truth value; Indicates the predicted value; The hyperparameter representing Huber loss controls the threshold for switching from squared loss to linear loss; It represents the absolute value.

[0098] The weighted total loss is obtained by weighting the base loss using dynamic weights: in, Indicates the weighted total loss; Indicates batch size; Indicates the first Dynamic weighting coefficients for each sample; Indicates the first The base loss for each sample.

[0099] In step S4, backpropagation updates the parameters of both the dual-branch prediction network and the weight generator simultaneously, following the update rules: in, This represents the complete set of trainable parameters for a bi-branch prediction network. This indicates an assignment operation; Indicates the learning rate; Indicates the weighted total loss Compared to The gradient; Gradient operator: in, This represents the complete set of trainable parameters for the weight generator. This indicates an assignment operation; Indicates the learning rate; Indicates the weighted total loss Compared to The gradient; This represents the gradient operator.

[0100] Another embodiment of the present invention also provides an air pollution prediction method, which uses the above-described air pollution prediction model based on dual-branch fusion and dynamic sensing for prediction, such as... Figure 4 As shown, this is the complete prediction process from real-time data acquisition and preprocessing, loading the trained dual-branch prediction network for forward propagation inference, de-standardization post-processing, to pollution early warning determination and issuance.

[0101] Specifically, it includes the following steps: Step P1: Obtain pollutant concentration data for the target area in the current and historical periods, as well as corresponding weather forecast data for future periods.

[0102] Step P2 involves preprocessing the pollutant concentration data for the target area and the weather forecast data for the future period. The preprocessing includes at least data cleaning and Z-score standardization. Z-score standardization uses the mean and standard deviation parameters saved during the training phase.

[0103] Step P3: Input the preprocessed data into the trained bi-branch prediction network model. After forward propagation, the bi-branch prediction network outputs the predicted pollutant concentration values ​​for future periods.

[0104] Step P4: Compare the predicted pollutant concentration with the preset pollution level threshold. If the predicted pollutant concentration exceeds the preset pollution level threshold, generate and issue a pollution warning.

[0105] Another embodiment of the present invention provides an air pollution prediction system for implementing an air pollution prediction model and prediction method based on dual-branch fusion and dynamic sensing. The system includes: The data acquisition module is used to acquire pollutant concentration data of the target area for the current and historical periods, as well as corresponding weather forecast data for the future periods.

[0106] The preprocessing module is used to preprocess pollutant concentration data of the target area and meteorological forecast data for future periods. The preprocessing includes at least data cleaning and Z-score normalization.

[0107] The online prediction module is used to input preprocessed data into a trained two-branch prediction network model. After forward propagation, the two-branch prediction network outputs predicted pollutant concentration values ​​for future periods.

[0108] The early warning release module is used to compare the predicted pollutant concentration with the preset pollution level threshold. If the predicted pollutant concentration exceeds the preset pollution level threshold, a pollution early warning information is generated and released.

[0109] Another embodiment of the present invention provides an offline training process for an air pollution prediction model based on dual-branch fusion and dynamic sensing, such as... Figure 1 As shown: Step 1: Data preparation and preprocessing stage.

[0110] Taking a provincial capital city as the target area for prediction, there are N=12 national-level environmental monitoring stations in this area.

[0111] Hourly pollutant concentration data for each station over the past three years (a total of 26,280 hours) were extracted from the environmental monitoring center database. Pollutant type C=1 was selected (based on PM2.5 concentration). 2.5 (For the prediction target).

[0112] Hourly meteorological grid data covering the region and its surrounding buffer zone were extracted simultaneously from the ERA5 reanalysis dataset of the European Centre for Medium-Range Weather Forecasts (ECMWF). The spatial resolution was 0.25°×0.25°, the grid size was H=W=32, and the number of meteorological variables (wind speed u component, wind speed v component, temperature, air pressure, specific humidity, and boundary layer height) was 6.

[0113] Perform data cleaning operations: for local monitoring data The system detects missing values ​​and fills in missing values ​​for periods with no more than 3 hours of consecutive missing values ​​using linear interpolation. For periods with more than 3 hours of consecutive missing values, all samples in the corresponding time window are removed.

[0114] For global meteorological data Perform the same missing value detection and interpolation filling.

[0115] Data that exceeds the physically reasonable range is marked as abnormal and removed.

[0116] Set the input window length T = 24 hours, the prediction window length τ = 12 hours, and the sliding step Δ = 1 hour.

[0117] The continuous time series is divided into training samples using the sliding window method.

[0118] For the starting time t0, the sample is constructed as follows: Input data covers the time period. That is, the past 24 hours; the target true value coverage period. That is, the next 12 hours.

[0119] Specifically: Local monitoring input Global meteorological input Predicting targets .

[0120] A total of approximately 26,256 samples were generated, which were divided into training set (70%), validation set (20%) and test set (10%) in chronological order.

[0121] The mean is calculated independently for each feature channel across all training samples. and standard deviation Perform Z-score standardization: Calculated and Persistent storage for use in the online prediction phase.

[0122] Step 2, forward propagation of the two-branch prediction network. The structure of the "two-branch prediction network" involved in this step is as follows: Figure 2 As shown.

[0123] Specifically, it includes: (1) Local spatiotemporal feature extraction branch The 12 monitoring stations are considered as graph nodes, and any two stations... i and j The geographical distance between them is Bandwidth hyperparameters km, the adjacency matrix elements are calculated according to the following formula: Obtain the original adjacency matrix .

[0124] according to Construct an adjacency matrix and a degree matrix with self-connections. It is a diagonal matrix, and its diagonal elements .

[0125] Employing a 2-layer spatiotemporal graph convolutional network, with a maximum propagation order. Hidden layer dimensions , The activation function used is ReLU.

[0126] First layer graph convolution: in Output .

[0127] The second layer of the graph is convolved and output. .

[0128] Output after time-based average pooling compression (24 hours compressed to 12 hours): (2) Global meteorological driving feature extraction branch Two-dimensional meteorological field at each time t After passing through a 2D convolutional layer Conv2D (3×3 kernel, 32 output channels), the spatial dimensions are flattened: will sequence Input-gated loop unit, hiding state dimension Recursive execution: get .

[0129] Applying multi-head self-attention (number of heads) Key Dimension Value dimension ): After concatenating the four head outputs and performing a linear transformation, we obtain... .

[0130] Global average pooling: Mapped to via fully connected layer And expand upon: (3) Residual Gating Fusion Module In this embodiment No transformation is required.

[0131] Calculate the meteorological impact threshold coefficient: in , , .

[0132] Residual weighted fusion: Return head output: Step 3, Dynamic State-Aware Weighted Training Engine This step corresponds to the "Dynamic State-Aware Weighted Training Engine" stage in Figure 1. Figure 3 shows the internal structure of the engine in detail.

[0133] For the first in the batch i For each sample, calculate the pollution severity index (known). , ): Calculate the meteorological complexity index: Calculate the spatial heterogeneity index: Calculate the temporal abrupt change index ( ): Concatenate into a multidimensional state vector .

[0134] Feed the weights into the weight generator MLP_weight (input dimension 4, hidden layer dimension 8, output dimension 1): Step 4, Joint Training and Parameter Update, corresponds to the "Weighted Loss Calculation", "Backpropagation Joint Update" and "Saving Model Parameters" stages in Figure 1.

[0135] Using Huber loss ( Batch size B=32: Using the Adam optimizer (learning rate) , , (Updated simultaneously:) The maximum number of epochs is set to 300, and the early stopping strategy is to stop if the loss on the validation set does not decrease after 20 consecutive epochs.

[0136] After each epoch, the performance is evaluated on the validation set. If the performance is better than the historical best, it is saved. , and standardized parameters , .

[0137] Another embodiment of the present invention describes the implementation process of the online prediction stage of the dual-branch fusion and dynamic sensing air pollution prediction method, as shown in Figure 4. The steps are as follows: 1. Real-time data access and preprocessing The system triggers prediction tasks on an hourly basis.

[0138] The data acquisition module retrieves the latest 24-hour PM2.5 concentration data from 12 real-time local monitoring stations in the target area via the environmental monitoring data platform API. 2.5 Concentration data .

[0139] Simultaneously obtain weather forecast grid data for the next 12 hours from the meteorological department's numerical weather prediction system. .

[0140] After performing the same data cleaning operations as during the training phase, load the normalization parameters for Z-score normalization: 2. Model Loading and Inference: The online prediction module loads the optimal dual-branch prediction network parameters. .

[0141] The standardized data is fed into the network, passing through local branches, global branches, residual gated fusion, and a regression head, and outputting standardized predicted values. .

[0142] During the online prediction phase, state awareness and weight generation are not performed; only one forward propagation of the two-branch prediction network is executed.

[0143] 3. Post-processing and denormalization: Denormalization restores the true concentration. Compare the predicted value with the preset pollution level threshold: the threshold for severe pollution is... The severe pollution threshold is .

[0144] If the predicted value exceeds the threshold, an early warning message will be generated and pushed to the emergency management platform via API.

[0145] The dual-branch fusion and dynamic sensing air pollution prediction system of the present invention can be deployed on the cloud computing platform of the environmental protection department.

[0146] Each module of the system is in accordance with Figures 1 to 4 The architecture deployment shown is as follows: the data acquisition module accesses external data sources through HTTP API and database connection pool; the preprocessing module runs on CPU nodes; the offline training module runs on GPU clusters and is triggered quarterly; the online prediction module runs on GPU servers and is a permanent service; and the early warning release module communicates with external systems decoupled through message queues.

[0147] The system has a built-in periodic model update mechanism: newly accumulated labeled data is added to the database at the end of each quarter; incremental training is performed using the current online model parameters as the initial values ​​(learning rate). (150 epochs); compare the performance of the new and old models on the latest validation set. If the RMSE decreases by more than 5% or the peak bias decreases by more than 10%, switch to the new model.

[0148] This invention supports multiple configuration variations.

[0149] For multi-pollutant prediction (C>1), only the input channel dimension and the regression head output dimension need to be expanded, while the rest of the structure remains unchanged.

[0150] For different time windows, it supports T=12 / τ=6 (short-term nowcasting), T=24 / τ=12 (standard configuration) and T=48 / τ=24 (long-term trend prediction).

[0151] For scenarios with limited computing resources, the state perceptron can be simplified to using only... and Two dimensions ( ), which can significantly reduce computational overhead.

[0152] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention.

[0153] Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this invention shall be included within the scope of protection of this invention.

Claims

1. An air pollution prediction model based on dual-branch fusion and dynamic sensing, characterized in that, The model is trained through the following steps: Step S1: Obtain local monitoring time-series data and global meteorological grid data and construct training samples; Step S2, construct a dual-branch prediction network: process the local monitoring time series data to obtain local spatiotemporal features; process the global meteorological grid data to obtain a global meteorological driving feature vector; and weight and fuse the local spatiotemporal features and the global meteorological driving features to obtain the predicted pollutant concentration value. Step S3, establish a dynamic state-aware weighted training engine: process the training samples to obtain a multi-dimensional state vector representing the sample state; A weight generator is established, which is used to generate dynamic weights of the training samples during the training process based on the multidimensional state vector; Step S4: Jointly train the dual-branch prediction network and the dynamic state-aware weighted training engine: calculate the predicted value of the training sample and the corresponding basic loss; The dynamic weights of the training samples are calculated, and the base loss is weighted according to the dynamic weights to obtain the weighted total loss. Based on the weighted total loss, the parameters of the dual-branch prediction network and the weight generator are updated simultaneously through backpropagation.

2. The model according to claim 1, characterized in that, In step S2, the local monitoring time-series data is processed to obtain local spatiotemporal features, including the following sub-steps: Step S211: Input pollutant concentration data from N monitoring stations over the past T hours: ; in, Represents a tensor of local monitoring time series data; Indicates the length of the input time window; This indicates the total number of monitoring stations within the target area; Indicates the number of pollutant types; The superscript indicates the real number field; the superscript indicates the size of each dimension of the tensor. Step S212: A spatial graph is constructed using a graph neural network, treating the monitoring stations as nodes, and the weights of the edges connecting the nodes are calculated based on the distance between the stations. ; in, Indicates the first The site and the first The weight of the edges connecting individual sites; Indicates the first The site and the first Spatial distance between stations; This represents the bandwidth hyperparameter; A graph convolutional network is used to simultaneously aggregate information from spatial neighbors and the temporal dimension. The propagation rule of the graph convolutional network is as follows: ; in, Indicates the first Layer node feature matrix; Indicates the first Layer node feature matrix; Represents a non-linear activation function; Indicates the propagation order index; Indicates the maximum propagation order; Indicates the first The learnable weight matrix corresponding to the first-order propagation; Represents an adjacency matrix with self-connections; Degree matrix; Indicates the first The learnable weight matrix of the layer; Step S213, output the local spatiotemporal features: ; in, Represents the local spatiotemporal feature tensor; Indicates the number of time steps after compression; This represents the dimension of the local feature vector.

3. The model according to claim 2, characterized in that, The adjacency matrix with self-connection Construct according to the following formula: ; in, This is the original adjacency matrix, and its elements are... ; for An identity matrix of order 1; Indicates the first The site and the first The weight of the edges connecting individual sites; The degree matrix For a diagonal matrix, its diagonal elements are calculated according to the following formula: ; in, Represents a node The degree; This represents the adjacency matrix with self-connection. The Middle Line 1 Column elements; This indicates the total number of monitoring stations within the target area.

4. The model according to claim 1, characterized in that, In step S2, the global meteorological grid data is processed to obtain a global meteorological driving feature vector, including the following sub-steps: Step S221, Input large-scale meteorological gridded field data: ; in, Represents the global meteorological grid data tensor; Indicates the length of the input time window; This indicates the number of grid cells in the latitudinal direction of the meteorological grid field; This indicates the number of grid cells in the longitude direction of the meteorological grid field; Indicates the number of meteorological variable channels; Step S222: Extract spatial patterns through convolutional layers, flatten the spatial dimensions, and transform them into sequence input gated recurrent units. ; in, Indicates the first The meteorological feature vector after convolution and flattening at any given moment; Indicates the first Complete meteorological grid field data at any given time: ; in, Indicates the first The hidden state vector of the time-gated loop unit; Indicates the first The hidden state vector of the time-gated loop unit; Step S223, output at all time steps of the gated loop unit Applying multi-head self-attention mechanism: ; in, Represents the self-attention function; Represents the query matrix; Represents the key matrix; Represents a value matrix; This represents the hidden state output sequence of all time steps of the gated loop unit; , , Let represent the learnable linear projective weight matrices, respectively. Indicates the dimension of the key vector; superscript Indicates matrix transpose; Step S224: Perform global average pooling on the attention output, and then map it through a fully connected layer to obtain the global meteorological driving feature vector: ; in, This represents the global meteorological driving feature vector tensor; Indicates the number of time steps after compression; This indicates the total number of monitoring stations within the target area; This represents the global feature dimension.

5. The model according to claim 4, characterized in that, Step S2 involves weighted fusion of the local spatiotemporal features and the global meteorological driving features to obtain the predicted pollutant concentration, including the following steps: A linear transformation layer maps global features to a space with the same dimensionality as local features: ; in, Represents a linear transformation function along the channel dimension; Represents the learnable linear transformation weight matrix; Represents a learnable bias vector; Represents the global features after dimension alignment; The dimension of the local feature vector; Represents the global feature dimension; Calculate the meteorological impact threshold coefficient: ; in, The tensor representing the gating coefficient of meteorological influence; This represents the Sigmoid activation function; This represents the weight matrix of the gated network; This means concatenating the local features with the aligned global features along the feature channel dimension; Represents the bias vector of the gated network; ; Calculate the fusion features using the following formula: ; in, This represents the depth features after fusion; This indicates that the Hadamard product is an element-wise multiplication. Represents local spatiotemporal characteristics; The tensor representing the gating coefficient of meteorological influence; Represents the global features after dimension alignment; The fused features are input into the regression head network, which outputs predicted pollutant concentrations. ; in, This represents the tensor of the predicted pollutant concentration. This represents a regression head network function consisting of at least one fully connected layer; Indicates the predicted duration, in hours; This indicates the total number of monitoring stations within the target area; This indicates the number of pollutant types.

6. The model according to claim 1, characterized in that, In step S3, the training samples are processed to obtain a multidimensional state vector representing the sample state. This includes sub-steps: Calculating pollution severity index : ; in, Indicators representing the severity of pollution ; This represents the average pollutant concentration at all stations within the target area at the current moment; This represents the global mean concentration of the pollutant in the historical data of the training set; This represents the global standard deviation of the pollutant concentration in the historical data of the training set; Calculate meteorological complexity index : ; in, Indicators representing meteorological complexity; Indicates the length of the input time window; Indicates the first Wind speed vector at any given moment; Indicates the first Wind speed vector at any given moment; Denotes the Euclidean norm; Calculate spatial heterogeneity index : ; in, Indicators representing spatial heterogeneity; Indicates all at the most recent moment A vector composed of pollutant concentration values ​​from each station; This represents the standard deviation of the vector; This represents the maximum value of the vector; This represents the minimum value of the vector; Represents extremely small positive numbers; The pollution severity index Meteorological complexity index and spatial heterogeneity index Concatenate into a multidimensional state vector: ; in, Indicates the first A multidimensional state vector for each sample; superscript Indicates vector transpose; It represents a three-dimensional real vector space.

7. The model according to claim 6, characterized in that, The multidimensional state vector It also includes the temporal abrupt change index. The time-series abrupt change index Calculate using the following formula: ; in, Indicators representing temporal abrupt changes; Indicates the first Time and the The concentration difference over time; Indicates the first The average concentration of all stations within the target area at any given time; Indicates continuity A sequence of absolute values ​​of concentration differences; This represents the maximum value of the absolute value sequence; This indicates the set mutation detection threshold; The multidimensional state vector is: ; in, Indicates the first A multidimensional state vector for each sample; Indicators representing the severity of pollution; Indicators representing meteorological complexity; Indicators representing spatial heterogeneity; Indicates the degree of temporal abrupt change; superscript Indicates vector transpose; This represents a four-dimensional real vector space.

8. The model according to claim 1, characterized in that, In step S4, the calculation of the first... The basic loss for each sample is as follows: ; in, Indicates the first The basic loss for each sample; Indicates the predicted duration; This indicates the total number of monitoring stations within the target area; Indicates the number of pollutant types; , , These represent the time step index, site index, and pollutant type index, respectively. Represents the Huber loss function; Indicates the first Each sample at time... , site Types of pollutants The truth value of; Indicates the first Each sample at time... , site Types of pollutants The predicted value; The base loss is weighted according to the dynamic weights to obtain the weighted total loss: ; in, Indicates the weighted total loss; Indicates batch size; Indicates the first Dynamic weighting coefficients for each sample; Indicates the first The base loss for each sample.

9. An air pollution prediction method based on dual-branch fusion and dynamic sensing, using the model according to any one of claims 1 to 8 for prediction, characterized in that... Includes the following steps: Step P1: Obtain pollutant concentration data for the target area in the current and historical periods, as well as corresponding weather forecast data for future periods; Step P2 involves preprocessing the pollutant concentration data of the target area and the weather forecast data for the future period. Step P3: Input the preprocessed data into the model. After forward propagation, the model outputs the predicted pollutant concentration values ​​for future periods. Step P4: Compare the predicted pollutant concentration with a preset pollution level threshold. If the predicted pollutant concentration exceeds the preset pollution level threshold, generate and issue a pollution warning.

10. An air pollution prediction system based on dual-branch fusion and dynamic sensing, characterized in that, The system for implementing the air pollution prediction method of claim 9 includes: The data acquisition module is used to acquire pollutant concentration data of the target area for the current and historical periods, as well as corresponding weather forecast data for the future periods; The preprocessing module is used to preprocess the pollutant concentration data of the target area and the weather forecast data for the future period; The online prediction module is used to input preprocessed data into the model, and the model outputs predicted pollutant concentration values ​​for future periods after forward propagation. The early warning release module is used to compare the predicted value of pollutant concentration with a preset pollution level threshold. If the predicted value of pollutant concentration exceeds the preset pollution level threshold, a pollution early warning information is generated and released.