A grid-based monitoring method for air quality prediction

By using GCN and LSTM models in air quality prediction, combined with spatial correlation topology maps and time series data, the problem of loss of prediction accuracy caused by ignoring spatial correlation features in the existing technology is solved, and higher air pollutant concentration predictions are achieved. Accuracy.

CN113988348BActive Publication Date: 2024-09-17SHENYANG INST OF COMPUTING TECH CO LTD THE CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010661832.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-10
Publication Date
2024-09-17
Estimated Expiration
2040-07-10

AI Technical Summary

Technical Problem

Existing air quality prediction algorithms ignore the spatial correlation characteristics in grid monitoring, resulting in loss of prediction accuracy.

Method used

A prediction model based on GCN and LSTM is used to obtain the historical air pollutant concentration data and longitude and latitude information of the monitoring stations, construct a spatial correlation topology map, and combine it with time series data for training to extract the spatial correlation features and space-time between monitoring stations. features to improve prediction accuracy.

Benefits of technology

It effectively improves the prediction accuracy of pollutant concentration in the air during gridded monitoring. It extracts spatial features through GCN, processes time series with LSTM, and adjusts the results with the linear regression layer to improve the fitting effect of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113988348B
    Figure CN113988348B
Patent Text Reader

Abstract

The present invention relates to an air quality prediction method in grid monitoring. The method first cleans the location information and historical air pollutant concentration information of each monitoring station in the grid monitoring input by the user, then inputs the processed data into GCN to extract the spatial correlation information between the monitoring stations, then inputs the data with spatial information into LSTM to extract time features, and finally a linear regression layer is used to synthesize the features extracted by GCN and LSTM and generate a prediction result, which is returned to the user. The effectiveness of the method of the present invention is verified by relevant experiments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning, and specifically to an air quality prediction method based on grid monitoring of GCN and LSTM. Background Art

[0002] With the continuous development of my country's environmental monitoring technology and concepts, the grid monitoring technology of air pollutant concentrations has been increasingly favored by relevant personnel. This grid monitoring technology of air pollutant concentrations can achieve the effect of early detection and early control of pollution sources to a certain extent. However, the monitoring data of each monitoring station generated by grid monitoring has obvious spatial correlation information, and the existing air quality prediction algorithms rarely take into account the spatial correlation characteristics between monitoring stations. This also makes the use of conventional prediction methods in grid monitoring lead to a certain loss of prediction accuracy due to ignoring the spatial correlation characteristics in grid monitoring. Summary of the invention

[0003] In view of the above technical deficiencies, by analyzing the changing trend of the air pollutant concentration data of the monitoring stations in the grid monitoring, it is found that the changing trend of the air pollutant concentration data in the grid monitoring and the spatial correlation of each monitoring point in the grid monitoring have a certain connection. The technical problem to be solved by the present invention is to extract the spatial correlation characteristics between the monitoring stations in the grid monitoring and to improve the prediction accuracy of the air pollutant concentration data (air quality) of the grid monitoring.

[0004] The technical solution adopted by the present invention to solve the technical problem is: a grid-based monitoring air quality prediction method, comprising the following steps:

[0005] 1) Obtain historical air pollutant concentration data collected by each monitoring station in the air quality grid monitoring area within K moments;

[0006] 2) Convert historical air pollutant concentration data into time series and normalize them;

[0007] 3) Using the latitude and longitude information of each monitoring station and the maximum influence distance between the monitoring stations, the spatial correlation topology of the monitoring stations in the air quality grid monitoring area is obtained and normalized;

[0008] 4) The normalized first n time-point data of each group of air pollutant concentration time series and the normalized spatial correlation topology map, i.e., the adjacency matrix, are input into the prediction model. The historical air pollutant concentration data of each monitoring station from the n+1th to the n+kth time in each group of time series are used as the expected output of the prediction model to train the prediction model; k is the length of time to be predicted;

[0009] 5) Obtain the air pollutant concentration data for the n moments before the first moment in the time period that needs to be predicted, convert it into a time series and normalize it, input the normalized time series and the normalized spatial correlation topology map into the trained prediction model, and obtain the pollutant concentration at the time that needs to be predicted through inverse normalization.

[0010] The historical air pollutant concentration data is converted into a time series as follows:

[0011] Aggregate the air pollutant concentration data of N monitoring stations at each moment into an N×1 matrix X i , i represents the i-th moment;

[0012] Then, the air pollutant concentration data X1...X i ...X M The time series of air pollutant concentration is composed of a group of several moments, M represents the number of matrices generated by aggregating all input data into a matrix in the manner of aggregating the N monitoring stations mentioned above, M=L*(n+k); the data of the first n moments are feature data used as input for model training, and the data from moments n+1 to n+k are labels used as expected outputs for model training to adjust the prediction model. The final dimension of the time series is (L, n+k, N), where L represents the number of air pollutant concentration sequences.

[0013] The spatial correlation topology of the monitoring stations in the air quality grid monitoring area is obtained by using the latitude and longitude information of each monitoring station and the maximum influence distance between the monitoring stations, as follows:

[0014] First, an N×N distance matrix V is constructed according to the distance between every two monitoring stations in the air quality grid monitoring area; each distance element d of V is obtained by the following formula:

[0015]

[0016] Where d represents the surface distance between two monitoring stations, R represents the radius of the earth, Respectively represent the radian value of the latitude of the two monitoring stations, γ represents the radian value of the longitude difference between the two monitoring stations, and the auxiliary function haversin(θ)=sin 2 (θ / 2), θ represents the arc value converted from the longitude and latitude of the monitoring station with the center of the earth as the center.

[0017] Then, the distance matrix V is adjusted according to the set maximum influence distance between monitoring stations: the distance element d value exceeding the maximum influence distance in the distance matrix is ​​adjusted to 0, and the adjacency matrix A of the monitoring station is obtained;

[0018] Finally, by adding self-loops to the adjacency matrix, an adjusted adjacency matrix A′ is obtained, wherein A′=A+I, and I is an N×N unit matrix.

[0019] The normalization of the spatial association topology graph, i.e. the adjacency matrix, is as follows:

[0020] Obtain the degree matrix D of A′ according to the adjacency matrix A′;

[0021] The symmetric normalization of the spatial correlation topology graph is completed by the following formula:

[0022]

[0023] in, It is the spatial correlation topological graph after symmetric normalization, that is, the adjacency matrix.

[0024] The training of the prediction model comprises the following steps:

[0025] (1) Establish a prediction model consisting of a sequential combination of GCN, LSTM, and linear regression layers:

[0026] The input of GCN includes the normalized characteristic data of the first n moments of each group in the time series of air pollutants and the normalized spatial correlation topology map. The output matrix of GCN is P, and the size of P is N×J, where N represents the number of monitoring stations in the grid monitoring area, and J represents the number of hidden nodes in the last layer of the GCN network;

[0027] The input of LSTM is matrix P, and the output of LSTM is matrix G of J×O, where J represents the number of hidden nodes in the last layer of the GCN network, and O represents the number of hidden nodes in the last layer of the LSTM network;

[0028] The input of the linear regression layer is the output matrix G of LSTM, and the output of the linear regression layer is the N×1 matrix S;

[0029] (2) Adjust the parameters in the GCN, LSTM, and linear regression layers based on the loss function between the matrix S generated by the prediction model and the input normalized labels of the time series of air pollutants, i.e., the concentrations of air pollutants at each monitoring station in each group from the n+1th moment to the n+kth moment;

[0030] (3) Bring the adjusted parameters into the prediction model to obtain a trained prediction model.

[0031] The inverse normalization is specifically as follows:

[0032]

[0033] Among them, yi is the true predicted value of the pollutant concentration in the air after inverse normalization, is the predicted value of the pollutant concentration in the air in the range of [0, 1] before inverse normalization generated by the prediction model, x max is the maximum air pollutant concentration in the input historical air pollutant concentration data at time n, x min It is the minimum air pollutant concentration in the input historical air pollutant concentration data at time n.

[0034] An air quality prediction device for grid monitoring includes a memory, on which a program is stored. The program is called by a processor to execute the steps of the air quality prediction method for grid monitoring as claimed in claim 1.

[0035] The present invention has the following beneficial effects and advantages:

[0036] 1. The present invention realizes the feature extraction of spatial correlation information between different monitoring points in grid monitoring by adding the GCN network structure, thereby improving the prediction accuracy of air pollutant concentration in grid monitoring.

[0037] 2. The present invention uses an LSTM network, which can better extract the main features of the data through the input of the time series. Compared with the traditional RNN, it can better solve the long-term dependency problem of features and improve the prediction accuracy of the concentration of pollutants in the air in grid monitoring.

[0038] 3. The present invention uses a linear regression layer to integrate the spatiotemporal features extracted by GCN and LSTM, adjusts the input dimension of the result, improves the fitting effect of the model, and further improves the prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a flow chart of the air quality prediction algorithm for grid-based monitoring of the present invention. DETAILED DESCRIPTION

[0040] The present invention is further described in detail below in conjunction with the embodiments.

[0041] The technical solution adopted by the present invention to achieve the above-mentioned purpose is: an air quality prediction algorithm for grid monitoring, comprising the following steps:

[0042] Step 1: The user inputs the historical air pollutant concentration data of each monitoring station in the grid monitoring, the longitude and latitude information of each monitoring station in the grid monitoring, and the maximum impact distance between the monitoring stations in the grid monitoring. Among them, grid monitoring is: according to a certain division method, a large number of small and micro monitoring stations are used in a conventional monitoring area to form a densely distributed air quality monitoring network with spatial correlation between the monitoring stations.

[0043] Step 2: Convert the historical air pollutant concentration data input by the user into a time series.

[0044] Step 3: Use the input latitude and longitude information of the monitoring stations and the maximum influence distance between the monitoring stations to obtain the spatial correlation topology map (adjacency matrix) of the monitoring stations in grid monitoring.

[0045] Step 4: Normalize the time series of air pollutant concentrations.

[0046] Step 5: Symmetrically normalize the spatial correlation topology of monitoring stations in grid monitoring.

[0047] Step 6: Input the time series of air pollutant concentrations and the adjacency matrix between monitoring stations in grid monitoring into the GCN network to extract spatial features.

[0048] Step 7: Input the time series with spatial features generated by the GCN network into the LSTM network to extract temporal features.

[0049] Step 8: Input the data with spatiotemporal characteristics generated by the LSTM network into the linear regression layer to obtain the predicted data of air pollutant concentration (air quality) at each monitoring station.

[0050] Step 9: Perform inverse normalization on the predicted air pollutant concentration to obtain the actual prediction result.

[0051] Step 10: Return the predicted result of the pollutant concentration in the air (air quality) to the user.

[0052] The following description uses the historical air quality data of the previous 6 hours at each monitoring station in grid monitoring to predict the air quality in the next hour as an example.

[0053] The time series conversion method for air pollutant concentration data is as follows:

[0054] First, the air pollutant concentration data of N monitoring stations are divided according to the collection time, and the air pollutant concentration data of each hour are aggregated into an N×1 matrix X i Then, the air pollutant concentration data X1...X i ...X M The time series of air pollutant concentration is composed of a group of 7 hours, of which the first 6 hours are feature data and the 7th hour is a label. The final time series dimension is (L, 7, N), where L means there are L groups of air pollutant concentration series.

[0055] The method for constructing the spatial correlation topology map of monitoring stations in grid monitoring is as follows:

[0056] First, use the following formula to calculate the distance between each monitoring station in grid monitoring and construct an N×N distance matrix V.

[0057]

[0058] Where d represents the distance between the two monitoring stations, R represents the radius of the earth, 6371 km, represents the radian value of the latitude of the two monitoring stations, γ represents the radian value of the difference in longitude between the two monitoring stations, haversin() is an auxiliary function, and the calculation formula of haversin() is as follows:

[0059] haversin(θ)=sin 2 (θ / 2)

[0060] The θ here represents radians.

[0061] Then, the distance matrix V is adjusted according to the maximum influence distance between the monitoring stations input by the user, that is, the value of the position in the distance matrix that exceeds the maximum influence distance is adjusted to 0, and the adjacency matrix A of the monitoring station is obtained. Finally, the self-loop is added to the adjacency matrix to obtain the adjusted adjacency matrix A'. Where A' = A + I, I is the N × N unit matrix.

[0062] The normalization algorithm for the time series of air pollutant concentration is as follows:

[0063] First, traverse the time series of air pollutant concentration to find the maximum value x max and the minimum value x min Then use the following formula: Normalize the time series of air pollutant concentrations, where x i is the concentration of pollutants in the air before normalization, is the normalized value.

[0064] The symmetric normalization algorithm of the spatial correlation topology of monitoring stations in grid monitoring is as follows:

[0065] First, we obtain the degree matrix D of A′ based on the adjacency matrix A′ of the monitoring station in the grid monitoring obtained previously, and then use the following formula to complete the symmetric normalization of the spatial correlation topology graph:

[0066]

[0067] in It is the spatial correlation topology map after symmetric normalization, that is, the adjacency matrix between monitoring stations in symmetric normalized grid monitoring.

[0068] The GCN network is used to extract the spatial correlation features between each monitoring station in grid monitoring:

[0069] GCN is a graph convolutional neural network model, which is a convolutional neural network that extracts spatial features on a graph through the adjacency matrix of the graph and the feature matrix of the nodes. The advantage of using the GCN network is that compared with CNN and RNN, GCN can effectively extract spatial features between graph data with non-Euclidean structures, and the spatial correlation topology between monitoring stations in grid monitoring is a typical non-Euclidean graph data.

[0070] In the prediction model of the present invention, the input of the GCN layer is the first 6 decimal data of each group in the normalized time series of air pollutants, that is, the characteristic data in the time series and the symmetric normalized adjacency matrix. For an output matrix P processed by GCN, the size of P is N×J, where N represents the number of monitoring stations in grid monitoring and J represents the number of hidden nodes in the last layer of the GCN network. Use LSTM network to extract the time features of historical air pollutant concentration data:

[0071] LSTM is a long short-term memory neural network. Its principle is to control the information transmission in the network through three gating units: input gate, output gate and forget gate. The advantage of using LSTM is that the LSTM network can solve the long-term dependency problem of information in traditional RNN through three gate structures, thereby achieving a better feature extraction result.

[0072] In the prediction model of the present invention, the input of LSTM is the output matrix P generated by the adjusted previous GCN N×J , the output of LSTM is a J×O matrix G, where J represents the number of hidden nodes in the last layer of the GCN network, and O represents the number of hidden nodes in the last layer of the LSTM network.

[0073] Use a linear regression layer to generate a prediction of the concentration of pollutants in the air (air quality) for the next hour:

[0074] The principle of the linear regression layer is to continuously adjust a and b through training in the neural network so that As small as possible. The linear regression layer can be used to integrate the spatial features and temporal features extracted in the previous steps and then obtain the concentration of pollutants in the air of each monitoring station in the next 1 hour of grid monitoring. Where a and b represent the model parameters of the linear regression layer, i represents the i-th group of time series, and m represents the number of time series groups input during model training.

[0075] In the prediction model of the present invention, the input of the linear regression layer is the output matrix G of LSTMJ×O , the output of the linear regression layer is an N×1 matrix S, where N represents the number of monitoring stations in the grid monitoring. Finally, the parameters in the GCN, LSTM and linear regression layers are adjusted according to the loss function between the prediction matrix S generated by the model and the input normalized time series label of the air pollutants, that is, the concentration of air pollutants at each monitoring station in the 7th hour of each group.

[0076] Inverse normalization method for predicted values ​​of air pollutant concentrations:

[0077] This step occurs during the model usage phase. When the user uses the trained prediction model, the user needs to input the known air pollutant concentration values ​​of each monitoring station in the grid monitoring 6 hours before the prediction time, the longitude and latitude information of each monitoring station and the maximum impact distance between the monitoring stations in the grid monitoring defined by the user. Then, the above method is used to perform time series conversion and normalization on the air pollutant concentration values ​​of the previous 6 hours, and the longitude and latitude information and the maximum impact distance between the monitoring stations are converted into the adjacency matrix between the monitoring stations. Then, the adjacency matrix is ​​normalized. Finally, the normalized pollutant time series and adjacency matrix are input into the trained prediction model to obtain the pollutant concentration prediction for the next hour between [0, 1]. Then, the following formula is used to perform the inverse normalization transformation of the predicted value of the air pollutant concentration:

[0078]

[0079] Among them, y i is the true predicted value of the pollutant concentration in the air after inverse normalization, is the predicted value of the air pollutant concentration in the range of [0, 1] before inverse normalization generated by the model, x max is the maximum air pollutant concentration in the input historical 6-hour air pollutant concentration raw data, x min It is the minimum air pollutant concentration in the input historical 6-hour air pollutant concentration data.

[0080] The original data format of the historical air pollutant concentration input in step 2 is as follows (taking PM2.5 concentration data as an example):

[0081] Monitoring Station 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00 … Station A Station B

[0082] The way to convert the original data into time series is to aggregate them into N B matrices by column, where N is the time length of the input data, the B matrix is ​​an M×1 matrix, and M is the number of monitoring sites. Then, the B matrix is ​​aggregated into N-7 X matrices at a time interval of 7 (6+1) hours, and the X matrix is ​​a 7×M matrix.N-7 is the transformed time series.

[0083] Step 3: The original data format entered by the user is as follows:

[0084] Site longitude latitude Station A Station B

[0085] First, the distance matrix between each site is calculated using the original data, and then the adjacency matrix is ​​obtained based on the maximum influence distance entered by the user.

[0086] Examples:

[0087] The input is:

[0088] Site longitude latitude Station A 123.556854 41.762261 Station B 123.525083 41.751233 Station C 123.439275 41.715011

[0089] First, calculate the distance matrix between each site, and get the distance matrix as follows: (distance unit km)

[0090]

[0091] Then, the distance matrix is ​​adjusted according to the maximum influence distance k between the monitoring stations input by the user. Assuming that the maximum influence distance k input by the user is 9 (unit: km), the adjusted matrix is:

[0092]

[0093] Then add self-loops to the adjusted distance matrix to obtain the adjusted adjacency matrix:

[0094]

[0095] Step 4: This step is to map the time series matrix of air pollutant concentrations obtained in step 2 to [0, 1], that is, normalization.

[0096] Examples:

[0097] Assume that the maximum air pollutant concentration x in the time series of air pollutant concentration converted in step 2 is max =300, minimum air pollutant concentration x min =24, select any air pollutant concentration in the time series and use the following formula to convert:

[0098]

[0099] Assume x i When the value of is 100, the normalized is 0.275.

[0100] Step 5: Perform symmetric normalization on the adjacency matrix between each monitoring station in the grid monitoring obtained in step 3.

[0101] Examples:

[0102] First, the adjacency matrix obtained from step 3 is:

[0103]

[0104] Then the degree matrix of the adjacency matrix is ​​obtained from the adjacency matrix:

[0105]

[0106] Finally, according to the formula The symmetric normalized adjacency matrix is ​​obtained:

[0107]

[0108] Step 6: Input the above processed data into the GCN network to extract spatial features.

[0109] Step 7: Input the data with spatial features generated in step 6 into the LSTM network to extract temporal features.

[0110] Step 8: Input the data with spatiotemporal features generated in step 7 into the linear regression layer to obtain the predicted data, and then adjust the prediction model based on the loss function value between the predicted data generated by the model and the expected output of the input time series.

[0111] Step 9: Use the trained prediction model to generate prediction data and inverse normalize the prediction data to obtain the true prediction value, where the input of the model is the normalized value of the air pollutant concentration of each monitoring station in the grid detection at the 6 moments before the prediction time, and the adjacency matrix of the monitoring station in the grid monitoring obtained based on the longitude and latitude information of each monitoring station in the grid monitoring and the maximum impact distance in the grid monitoring (the adjacency matrix needs to be symmetrically normalized), and then the model is used to obtain the prediction data between [0, 1], and finally the generated prediction data is inversely normalized.

[0112] Examples:

[0113] When the prediction data of a monitoring station generated by the trained prediction model based on the input is 0.563, the prediction data after inverse normalization is: 179.388.

[0114] Step 10: Return the final prediction results of each monitoring station to the user.

[0115] The present invention can not only effectively use the air pollutant concentration data generated by each monitoring station in grid monitoring and the spatial correlation information between each monitoring station in grid detection, but also improve the prediction accuracy of future air pollutant concentration (air quality) of each monitoring station in grid monitoring.

[0116] Therefore, the present invention provides an air quality prediction algorithm for grid monitoring, which can use the spatial correlation information between monitoring stations in grid monitoring and historical air pollutant concentration data to provide more accurate prediction data on the air pollutant concentration (air quality) of each monitoring station in future grid monitoring.

Claims

1. A grid-based air quality prediction method, Features The following steps are involved: 1) Obtain historical air pollutant concentration data collected by each monitoring station in the air quality grid monitoring area within K moments; 2) Convert historical air pollutant concentration data into time series and normalize them; 3) Using the latitude and longitude information of each monitoring station and the maximum influence distance between the monitoring stations, the spatial correlation topology of the monitoring stations in the air quality grid monitoring area is obtained and normalized; 4) The normalized first n time-point data of each group of air pollutant concentration time series and the normalized spatial correlation topology map, i.e., the adjacency matrix, are input into the prediction model. The historical air pollutant concentration data of each monitoring station from the n+1th to the n+kth time in each group of time series are used as the expected output of the prediction model to train the prediction model; k is the length of time to be predicted; 5) Obtain the air pollutant concentration data of the n moments before the first moment in the time period to be predicted, convert it into a time series and normalize it, input the normalized time series and the normalized spatial correlation topology map into the trained prediction model, and obtain the pollutant concentration at the time to be predicted through inverse normalization processing; The training of the prediction model comprises the following steps: (1) Establish a prediction model consisting of a sequential combination of GCN, LSTM, and linear regression layers: The input of GCN includes the normalized characteristic data of the first n moments of each group in the time series of air pollutants and the normalized spatial correlation topology map. The output matrix of GCN is P, and the size of P is N×J, where N represents the number of monitoring stations in the grid monitoring area, and J represents the number of hidden nodes in the last layer of the GCN network; The input of LSTM is matrix P, and the output of LSTM is matrix G of J×O, where J represents the number of hidden nodes in the last layer of the GCN network, and O represents the number of hidden nodes in the last layer of the LSTM network; The input of the linear regression layer is the output matrix G of LSTM, and the output of the linear regression layer is the N×1 matrix S; (2) Adjust the parameters in the GCN, LSTM, and linear regression layers based on the loss function between the matrix S generated by the prediction model and the input normalized labels of the time series of air pollutants, i.e., the concentrations of air pollutants at each monitoring station in each group from the n+1th moment to the n+kth moment; (3) Bring the adjusted parameters into the prediction model to obtain a trained prediction model.

2. The air quality prediction method for grid monitoring according to claim 1, Features: The historical air pollutant concentration data is converted into a time series as follows: Aggregate the air pollutant concentration data of N monitoring stations at each moment into an N×1 matrix X i , i represents the i-th moment; Then, the air pollutant concentration data X at all times 1 …X i …X M The time series of air pollutant concentration is composed of a group of several moments. M represents the number of matrices generated by aggregating all input data into a matrix in the way of aggregating the above N monitoring stations, M=L*(n+k); the data of the first n moments are feature data as input for model training, and the data from moments n+1 to n+k are labels as expected outputs for model training to adjust the prediction model. The final dimension of the time series is (L, n+k, N), where L represents the number of air pollutant concentration sequences.

3. The air quality prediction method for grid monitoring according to claim 1, Features: The spatial correlation topology of the monitoring stations in the air quality grid monitoring area is obtained by using the latitude and longitude information of each monitoring station and the maximum influence distance between the monitoring stations, as follows: First, an N×N distance matrix V is constructed according to the distance between every two monitoring stations in the air quality grid monitoring area; each distance element d of V is obtained by the following formula: Where d represents the surface distance between two monitoring stations, R represents the radius of the earth, Respectively represent the radian value of the latitude of the two monitoring stations, γ represents the radian value of the longitude difference between the two monitoring stations, and the auxiliary function haversin(θ)=sin 2 (θ / 2), θ represents the arc value converted from the longitude and latitude of the monitoring station with the center of the earth as the center; Then, the distance matrix V is adjusted according to the set maximum influence distance between monitoring stations: the distance element d value exceeding the maximum influence distance in the distance matrix is ​​adjusted to 0, and the adjacency matrix A of the monitoring station is obtained; Finally, by adding self-loops to the adjacency matrix, we get the adjusted adjacency matrix A ′ ; Among them A ′ =A+I, I is the N×N unit matrix.

4. The air quality prediction method for grid monitoring according to claim 1, Features: The normalization of the spatial association topology graph, i.e. the adjacency matrix, is as follows: According to the adjacency matrix A ′ Get A ′ The degree matrix D of The symmetric normalization of the spatial correlation topology graph is completed by the following formula: in, It is the spatial correlation topological graph after symmetric normalization, that is, the adjacency matrix.

5. The air quality prediction method for grid monitoring according to claim 1, Features: The inverse normalization is specifically as follows: Among them, y i is the true predicted value of the pollutant concentration in the air after inverse normalization, is the predicted value of the air pollutant concentration in the range of [0,1] before inverse normalization generated by the prediction model, x max is the maximum air pollutant concentration in the input historical air pollutant concentration data at time n, x min It is the minimum air pollutant concentration in the input historical air pollutant concentration data at time n.

6. A grid-based air quality prediction device, It is characterized in that It includes a memory, on which a program is stored, and the program is called by a processor to execute the steps of the air quality prediction method for grid monitoring as claimed in claim 1.