A fine-grained air quality prediction method and system
Through the spatio-temporal matching of satellite multi-source data and the spatio-temporal graph neural network model, the problem of insufficient feature extraction capabilities of multi-source spatio-temporal data in air quality prediction is solved, and air quality information prediction with high spatio-temporal resolution is achieved.
Patent Information
- Application Number
- CN202210276051.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-21
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-03-21
AI Technical Summary
Existing air quality prediction models lack the ability to extract features in time and space dimensions when processing multi-source spatio-temporal big data, resulting in the lack of high spatial and temporal resolution information in cities and the inability to provide accurate air quality predictions, especially when ground monitoring points are sparse. Down.
Use satellites to acquire multi-source data (aerosol, ground monitoring points, meteorology, point of interest data), perform spatio-temporal matching through numerical conversion and projection, and input spatio-temporal graph neural network models (including gated recurrent neural networks and graph convolutional neural networks) network) to extract the node feature matrix and predict air quality.
Through spatiotemporal matching and graph neural network models, the spatiotemporal resolution of air quality prediction is improved, the problem of insufficient feature extraction capabilities in time and space dimensions of multi-source data is solved, and air quality information with high spatiotemporal resolution is provided.
Smart Images

Figure CN114638417B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air quality prediction, and in particular to a fine-grained air quality prediction method and system. Background Art
[0002] The rapid development of urbanization has modernized life, but it has also brought about serious air pollution problems. Domestic academic circles have mainly started to study PM2.5 since the beginning of the 20th century, and have made significant progress in recent years. Therefore, the study of urban air quality issues has gradually become a hot topic in academic research in recent years.
[0003] Before the development of big data technology, air quality prediction mainly used numerical prediction methods. This method requires familiarity with the principles and laws of changes in air pollutants in the air, and requires a large amount of numerical calculations, which also places high demands on researchers and requires more professional experts in the field to participate in modeling.
[0004] With the popularity of mobile terminals and various location sensors, urban spatiotemporal big data is ubiquitous and generated at an unprecedented rate, affecting all aspects of people's daily lives. It also provides important data support for governments and enterprises to implement smart city construction. Big data means rich urban knowledge. If used properly, it can help cope with urban environmental computing. By studying the spatiotemporal correlation between ground air quality monitoring station data and other data sources (remote observation remote sensing satellite aerosol AOD data, meteorological data and points of interest POI), it brings new breakthroughs in high spatiotemporal prediction of air quality and solves urban environmental computing problems.
[0005] At present, the research on air quality prediction models is mainly based on recurrent neural networks (RNNs) and their variants, long short-term memory (LSTM) and gate control units (GRUs). They are good at processing serialized data and can learn the time dimension correlation of data very well. However, air quality varies in different regions and changes over time in the same region. It has a strong spatial and temporal nonlinear correlation. Ignoring the spatial correlation between data will cause a large error in the model prediction results. In addition, considering the scarcity of ground monitoring points, the government has only deployed a dozen air quality monitoring stations in each city, which have serious sparsity and uneven spatial distribution problems and cannot provide high-temporal and spatial resolution air quality prediction information. Although, with the development of deep learning algorithms, more and more attention has been paid to the complex spatiotemporal relationship between air quality and influencing factors in recent years, and spatiotemporal models have emerged to predict air quality, existing research only predicts air quality concentration based on existing ground monitoring points, and still cannot provide high-temporal and spatial resolution air quality information for residents' travel (when to go out, when to close doors and windows) and government environmental governance decisions (traffic control). Summary of the invention
[0006] The purpose of the present invention is to provide a fine-grained air quality prediction method and system to solve the problems in the current technology of insufficient feature extraction capability in both time and space dimensions for multi-source spatiotemporal big data and lack of high spatiotemporal resolution air quality information for cities.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] A fine-grained air quality prediction method, comprising:
[0009] Using satellites to obtain multi-source data of the atmosphere; the multi-source data includes aerosol data, ground monitoring point data, meteorological data and point of interest data;
[0010] Performing numerical conversion and projection operations on the aerosol data to obtain aerosol data with geographic information;
[0011] Performing spatiotemporal matching on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data to obtain a node feature matrix;
[0012] The node feature matrix is input into a spatiotemporal graph neural network air quality prediction model to obtain an air quality prediction value; the spatiotemporal graph neural network air quality prediction model is a first gated recurrent neural network, a graph convolutional neural network, and a second gated recurrent neural network connected in sequence.
[0013] Optionally, before performing spatiotemporal matching on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data to obtain a node feature matrix, the method further includes:
[0014] The aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data are respectively subjected to outlier elimination, missing value filling and normalization processing.
[0015] Optionally, the construction process of the graph convolutional neural network specifically includes:
[0016] Constructing a graph data structure based on the ground monitoring point data to obtain a spatial relationship topology graph and an adjacency weight matrix between the ground monitoring points;
[0017] Determine the degree matrix of the ground monitoring points according to the spatial relationship topology graph and the adjacency weight matrix;
[0018] A graph convolutional neural network is constructed according to the degree matrix and the node feature matrix.
[0019] Optionally, the adjacency weight matrix is expressed as:
[0020]
[0021] Among them, w ij is the weight in the adjacency weight matrix, d ij is the Euclidean distance between site number i and site number j, σ 2 is the first threshold for controlling the distribution of the initial weight matrix, ε is the second threshold for controlling the sparsity of the initial weight matrix, i is the i-th ground monitoring point, and j is the j-th ground monitoring point.
[0022] Optionally, the loss function expression of the spatiotemporal graph neural network air quality prediction model is:
[0023]
[0024] in, is the loss function, n is the total number of samples, y i is the current site monitoring value, is the predicted value of the current site, and i is the i-th ground monitoring point.
[0025] Optionally, the graph convolutional neural network is expressed as:
[0026]
[0027] Among them, H (l+1) is the l+1th layer data, is an adjacency matrix with self-connection, is the degree matrix, σ is the nonlinear model Relu activation function, θ is the training parameter matrix, H l is the data of layer l.
[0028] A fine-grained air quality prediction system, comprising:
[0029] An acquisition module, used to acquire multi-source data of the atmosphere using satellites; the multi-source data includes aerosol data, ground monitoring point data, meteorological data and point of interest data;
[0030] A numerical conversion and projection operation module, used for performing numerical conversion and projection operation on the aerosol data to obtain aerosol data with geographic information;
[0031] A time-space matching module, used for performing time-space matching on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data to obtain a node feature matrix;
[0032] A prediction module is used to input the node feature matrix into a spatiotemporal graph neural network air quality prediction model to obtain an air quality prediction value; the spatiotemporal graph neural network air quality prediction model is a first gated recurrent neural network, a graph convolutional neural network, and a second gated recurrent neural network connected in sequence.
[0033] Optionally, the fine-grained air quality prediction system further includes:
[0034] The preprocessing module is used to perform outlier elimination, missing value filling and normalization processing on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data respectively.
[0035] Optionally, the construction process of the graph convolutional neural network specifically includes:
[0036] Constructing a graph data structure based on the ground monitoring point data to obtain a spatial relationship topology graph and an adjacency weight matrix between the ground monitoring points;
[0037] Determine the degree matrix of the ground monitoring points according to the spatial relationship topology graph and the adjacency weight matrix;
[0038] A graph convolutional neural network is constructed according to the degree matrix and the node feature matrix.
[0039] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0040] The present invention uses satellites to obtain multi-source data of the atmosphere; the multi-source data includes aerosol data, ground monitoring point data, meteorological data and point of interest data; the aerosol data is numerically converted and projected to obtain aerosol data with geographic information; the aerosol data with geographic information, ground monitoring point data, meteorological data and point of interest data are time-space matched to obtain a node feature matrix; the node feature matrix is input into a time-space graph neural network air quality prediction model to obtain an air quality prediction value. By time-space matching of multi-source data, the problem of insufficient feature extraction capability in time and space dimensions of multi-source time-space big data and lack of high time-space resolution air quality information in cities in the current technology is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0042] Figure 1A flow chart of the fine-grained air quality prediction method provided by the present invention;
[0043] Figure 2 The aerosol data preprocessing flow chart provided by the present invention;
[0044] Figure 3 A flow chart of the spatiotemporal graph neural network air quality prediction model provided by the present invention;
[0045] Figure 4 This is a schematic diagram of the spatiotemporal graph neural network air quality prediction model provided by the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] The purpose of the present invention is to provide a fine-grained air quality prediction method and system to solve the problems in the current technology of insufficient feature extraction capability in both time and space dimensions for multi-source spatiotemporal big data and lack of high spatiotemporal resolution air quality information for cities.
[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0049] like Figure 1 As shown, the present invention provides a fine-grained air quality prediction method, comprising:
[0050] Step 101: Use satellites to obtain multi-source data of the atmosphere; the multi-source data includes aerosol data, ground monitoring point data, meteorological data, and point of interest data. The satellite TV used in the present invention is Himawari-8.
[0051] Step 102: Perform numerical conversion and projection operations on the aerosol data to obtain aerosol data with geographic information. The projection operation is to assign geographic information to the Himawari-8 aerosol data that cannot be directly extracted. By using the GDAL (Geospatial Data Abstraction Library) open source raster spatial data conversion library, the .nc format aerosol data is converted into .tif format image data commonly used in the remote sensing field, and the longitude and latitude corresponding to each pixel of the image data are calculated. The WSG 84 geographic coordinate system is selected to assign geographic projection information to .tif, so that the corresponding point aerosol values can be extracted later according to the longitude and latitude of the ground monitoring station.
[0052] Step 103: performing spatiotemporal matching on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data to obtain a node feature matrix.
[0053] Step 104: Input the node feature matrix into the spatiotemporal graph neural network air quality prediction model to obtain the air quality prediction value; Figure 4 As shown, the spatiotemporal graph neural network air quality prediction model is a first gated recurrent neural network, a graph convolutional neural network and a second gated recurrent neural network connected in sequence. The air quality prediction value in the present invention is specifically a PM2.5 prediction value.
[0054] As an optional implementation manner, before step 103, the method further includes:
[0055] The aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data are respectively subjected to outlier elimination, missing value filling and normalization processing.
[0056] As an optional implementation, the construction process of the graph convolutional neural network specifically includes:
[0057] A graph data structure is constructed based on the ground monitoring point data to obtain a spatial relationship topology map and an adjacency weight matrix between the ground monitoring points; a degree matrix of the ground monitoring points is determined based on the spatial relationship topology map and the adjacency weight matrix; and a graph convolutional neural network is constructed based on the degree matrix and the node feature matrix.
[0058] As an optional implementation, the expression of the adjacency weight matrix is:
[0059]
[0060] Among them, w ij is the weight in the adjacency weight matrix, d ijis the Euclidean distance between site number i and site number j, σ 2 is the first threshold for controlling the distribution of the initial weight matrix, ε is the second threshold for controlling the sparsity of the initial weight matrix, i is the i-th ground monitoring point, and j is the j-th ground monitoring point.
[0061] As an optional implementation, the loss function expression of the spatiotemporal graph neural network air quality prediction model is:
[0062]
[0063] in, is the loss function, n is the total number of samples, y i is the current site monitoring value, is the predicted value of the current site, and i is the i-th ground monitoring point.
[0064] As an optional implementation, the graph convolutional neural network is expressed as:
[0065]
[0066] Among them, H (l+1) is the l+1th layer data, σ is the nonlinear model Relu activation function, is an adjacency matrix with self-connection, is the degree matrix, θ is the training parameter matrix, H l is the data of layer l. W+I n Right now Added the self-connected adjacency matrix, W is the adjacency matrix, I n is the identity matrix, for The degree matrix is composed of each node in the graph according to the adjacency weight matrix w ij Calculate, site i,j,i∈n,j∈n,w ij =0, w ij ≠0, Calculated.
[0067] The present invention also provides a fine-grained air quality prediction system, comprising:
[0068] The acquisition module is used to acquire multi-source data of the atmosphere using satellites; the multi-source data includes aerosol data, ground monitoring point data, meteorological data and point of interest data.
[0069] The numerical conversion and projection operation module is used to perform numerical conversion and projection operations on the aerosol data to obtain aerosol data with geographic information.
[0070] The space-time matching module is used to perform space-time matching on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data to obtain a node feature matrix.
[0071] A prediction module is used to input the node feature matrix into a spatiotemporal graph neural network air quality prediction model to obtain an air quality prediction value; the spatiotemporal graph neural network air quality prediction model is a first gated recurrent neural network, a graph convolutional neural network, and a second gated recurrent neural network connected in sequence.
[0072] As an optional implementation, the fine-grained air quality prediction system further includes:
[0073] The preprocessing module is used to perform outlier elimination, missing value filling and normalization processing on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data respectively.
[0074] As an optional implementation, the construction process of the graph convolutional neural network specifically includes:
[0075] A graph data structure is constructed based on the ground monitoring point data to obtain a spatial relationship topology map and an adjacency weight matrix between the ground monitoring points; a degree matrix of the ground monitoring points is determined based on the spatial relationship topology map and the adjacency weight matrix; and a graph convolutional neural network is constructed based on the degree matrix and the node feature matrix.
[0076] like Figure 3 As shown, the present invention also provides a specific processing flow of a fine-grained air quality prediction method in practical application, the steps are as follows
[0077] Step 1. Figure 2 As shown in the figure, high temporal and spatial resolution Himawari-8 aerosol AOD (Aerosol Optical Depth) data with a temporal and spatial resolution of 5km*5km per hour is obtained, and numerical conversion and projection operations are performed to obtain aerosol data with geographic information.
[0078] Step 2. Preprocess the ground monitoring station data, meteorological data, POI data, and aerosol data with geographic information in step 1, mainly including outlier removal, missing value filling, and normalization. The normalization method is shown in formula (1) to ensure that each type of data is in the same dimension. The multi-source data is spatially matched through the longitude and latitude information of the ground monitoring station, and the multi-source data is uniformly processed into hourly interval data for time matching to achieve spatiotemporal matching of the multi-source data and obtain the node feature matrix X.
[0079]
[0080] In the formula, mean represents the mean value of the variable, std represents the standard deviation of the variable, and x is the node feature in the node feature matrix.
[0081] Step 3. According to the distance relationship between the ground monitoring points, use formula (2) to construct the graph data structure of the ground monitoring sites, and obtain the spatial relationship topology map and adjacency weight matrix W between the monitoring sites. The construction method is shown in formula (2);
[0082]
[0083] Where d ij is the Euclidean distance between site number i and site number j, σ 2 and ε are thresholds that control the distribution and sparsity of the initial weight matrix, with initial values of 10 and 0.5, respectively.
[0084] Step 4. Build a spatiotemporal graph neural network model, and calculate the adjacency matrix with self-connection added through the adjacency matrix W of the topological map of the ground monitoring stations W is the adjacency matrix, I n As the unit matrix, calculate the degree matrix of the monitoring site topology map for The degree matrix is composed of each node in the graph according to the adjacency weight matrix w ij Calculate,w between sites i and j ij =0, w ij ≠0, The calculation results are obtained, and the node feature matrix X is combined to construct a graph convolutional neural network GCN. The construction principle of the graph convolutional neural network is shown in formula (3). The influence of neighbor nodes on the current site is captured by random walk, that is, the graph convolutional neural network GCN is used to learn and extract the spatial correlation of the topological structure diagram of the monitoring site; the gated recurrent neural network GRU is used to construct the time block for extracting the time features of historical data, and the time series with spatial features is input into the GRU to extract the time correlation of the current site data. Thus, by combining the graph convolutional neural network and the gated recurrent neural network, an alternating spatiotemporal data extractor with the spatial extractor GCN in the middle and the time extractor GRN at both ends is constructed to coherently capture the most basic spatiotemporal features between site data. The composition of the network model is shown in Figure (3), and the site data is extracted in terms of time and space.
[0085]
[0086] In the formula To add the self-connected adjacency matrix, for The degree matrix of I n is the identity matrix, H l is the l-layer data. If it is the first layer, it is the input feature matrix X, and θ is the training parameter matrix.
[0087] Step 5.1. Divide the feature matrix X obtained after spatiotemporal matching of multi-source data in step 2 into training set, validation set, and test set and input them into the spatiotemporal graph neural network GCN-GRU model established in step 4 for training to obtain a preliminary PM2.5 concentration prediction value. Combined with the PM2.5 monitoring value of the air quality detection station, the loss is calculated through the loss function. The loss function adopts the least square error (LSE). The calculation formula is shown in (4) to achieve parameter adjustment of the air quality prediction model based on the spatiotemporal graph neural network;
[0088]
[0089] Where: n represents the total number of samples, y i Indicates the current site monitoring value. Indicates the predicted value of the current site.
[0090] Step 5.2. The accuracy of the fine-grained air quality prediction method is evaluated, mainly using the root mean square error (RSME), calculated using the formula (5), the mean absolute error (MAE), calculated using the formula (6), and the mean absolute percentage error (MAPE), calculated using the formula (7). The accuracy of the fine-grained air quality prediction method based on spatiotemporal graph neural network is verified by comparison with other prediction methods.
[0091]
[0092]
[0093]
[0094] Where n represents the total number of samples, y i Indicates the current site monitoring value. Indicates the predicted value of the current site. Model training is completed, prediction is performed, and PM2.5 prediction values with high temporal and spatial resolution are obtained, and the model is completed.
[0095] The method and system provided by the present invention integrate multi-source urban data such as ground air quality monitoring station data, high temporal and spatial resolution long-distance observation remote sensing satellite aerosol AOD data, meteorological data, etc., to solve the problems of insufficient feature extraction capability in time and space dimensions of multi-source spatiotemporal big data in current technology, and lack of high temporal and spatial resolution air quality information of cities.
[0096] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0097] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A fine-grained air quality prediction method, characterized in that: include: Using satellites to obtain multi-source data of the atmosphere; the multi-source data includes aerosol data, ground monitoring point data, meteorological data and point of interest data; Performing numerical conversion and projection operations on the aerosol data to obtain aerosol data with geographic information; Performing spatiotemporal matching on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data to obtain a node feature matrix; The node feature matrix is input into the spatiotemporal graph neural network air quality prediction model to obtain the air quality prediction value; the spatiotemporal graph neural network air quality prediction model is a first gated recurrent neural network, a graph convolutional neural network and a second gated recurrent neural network connected in sequence; wherein the construction process of the graph convolutional neural network specifically includes: constructing a graph data structure according to the ground monitoring point data to obtain a spatial relationship topological map and an adjacency weight matrix between the ground monitoring points; determining the degree matrix of the ground monitoring points according to the spatial relationship topological map and the adjacency weight matrix; constructing a graph convolutional neural network according to the degree matrix and the node feature matrix; the expression of the adjacency weight matrix is: Among them, w ij is the weight in the adjacency weight matrix, d ij is the Euclidean distance between site number i and site number j, σ 2 is the first threshold for controlling the distribution of the initial weight matrix, ε is the second threshold for controlling the sparsity of the initial weight matrix, i is the i-th ground monitoring point, and j is the j-th ground monitoring point; the expression of the graph convolutional neural network is: Among them, H (l+1 ) is the l+1th layer data, σ is the nonlinear model Relu activation function, is an adjacency matrix with self-connection, is the degree matrix, θ is the training parameter matrix, H l is the data of layer l.
2. The fine-grained air quality prediction method according to claim 1, characterized in that: Before performing spatiotemporal matching on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data to obtain a node feature matrix, the method further includes: The aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data are respectively subjected to outlier elimination, missing value filling and normalization processing.
3. The fine-grained air quality prediction method according to claim 1, characterized in that: The loss function expression of the spatiotemporal graph neural network air quality prediction model is: in, is the loss function, n is the total number of samples, y i is the current site monitoring value, is the predicted value of the current site, and i is the i-th ground monitoring point.
4. A fine-grained air quality prediction system, characterized in that: include: An acquisition module, used to acquire multi-source data of the atmosphere using satellites; the multi-source data includes aerosol data, ground monitoring point data, meteorological data and point of interest data; A numerical conversion and projection operation module, used for performing numerical conversion and projection operation on the aerosol data to obtain aerosol data with geographic information; A time-space matching module, used for performing time-space matching on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data to obtain a node feature matrix; A prediction module is used to input the node feature matrix into a spatiotemporal graph neural network air quality prediction model to obtain an air quality prediction value; the spatiotemporal graph neural network air quality prediction model is a first gated recurrent neural network, a graph convolutional neural network, and a second gated recurrent neural network connected in sequence; wherein the construction process of the graph convolutional neural network specifically includes: constructing a graph data structure according to the ground monitoring point data to obtain a spatial relationship topological map and an adjacency weight matrix between the ground monitoring points; determining the degree matrix of the ground monitoring points according to the spatial relationship topological map and the adjacency weight matrix; constructing a graph convolutional neural network according to the degree matrix and the node feature matrix; the expression of the adjacency weight matrix is: Among them, w ij is the weight in the adjacency weight matrix, d ij is the Euclidean distance between site number i and site number j, σ 2 is the first threshold for controlling the distribution of the initial weight matrix, ε is the second threshold for controlling the sparsity of the initial weight matrix, i is the i-th ground monitoring point, and j is the j-th ground monitoring point; The expression of the graph convolutional neural network is: Among them, H (l+1 ) is the l+1th layer data, σ is the nonlinear model Relu activation function, is an adjacency matrix with self-connection, is the degree matrix, θ is the training parameter matrix, H l is the data of layer l.
5. The fine-grained air quality prediction system according to claim 4, characterized in that: Also includes: The preprocessing module is used to perform outlier elimination, missing value filling and normalization processing on the aerosol data with geographic information, the ground monitoring point data, the meteorological data and the point of interest data respectively.
