A method and system for predicting air pollutant concentration based on cloud model
The cloud model processes air quality data, generates cloud droplet data, and combines it with the LSTM model to solve the problem of combining time-varying characteristics and spatial distribution in air pollutant concentration prediction, achieving highly accurate and interpretable air pollutant concentration prediction. , improving the accuracy and transparency of air quality monitoring.
Patent Information
- Application Number
- CN202210742476.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-06-28
AI Technical Summary
Existing air pollutant concentration prediction technologies cannot effectively combine the time-varying characteristics and spatial distribution of air pollutants, and the black-box nature of machine learning models results in a lack of interpretability and accuracy in prediction results.
The cloud model is used to process air quality data. The reverse cloud generator is used to extract the connotation of the data and the forward cloud generator is used to generate cloud droplet data. It is combined with the LSTM model for prediction, providing a two-way cognitive channel from data to knowledge, and improving the reliability of the model. Interpretability and predictive accuracy.
It achieves high-accuracy prediction and spatio-temporal grid monitoring of air pollutant concentrations, provides interpretability of prediction results, can monitor abnormal air quality, and improves the overall summary description ability of air quality data.
Smart Images

Figure CN115130747B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of air pollution monitoring technology and explainable machine learning, and specifically relates to a method and system for predicting air pollutant concentration based on a cloud model. Background Art
[0002] Grid monitoring requires the acquisition of complete spatial data of the monitoring area. Since each air quality monitoring station has a limited coverage area and is sparsely distributed, it is impossible to fully cover a city. Therefore, various spatial interpolation algorithms are used to generalize the sparse station monitoring data to the entire city plane. This process is called spatial resolution improvement. These algorithms are mainly divided into two categories. One is statistical algorithms, including Kriging interpolation and Inverse Distance Weighted; the other is machine learning algorithms, including Random Forest, Multilayer Perceptron and Neural Network. The correlation between distance and air pollutant concentration is a basic assumption of statistical algorithms. This simple assumption cannot well reflect the mechanism of spatial distribution of air pollutants, and often cannot consider the time-varying characteristics of air pollutant concentrations. Machine learning algorithms can combine the historical concentrations of air pollutants and fuse multiple air pollutant concentrations to improve the spatial resolution of air pollutant concentrations. However, since machine learning algorithms focus on fitting data and their non-intuitive internal mechanisms, the computational complexity of machine learning models is relatively high. In addition, machine learning algorithms often simply use historical data on air pollutants as input to the model, and the time-varying patterns of air pollutants cannot be directly described. In addition, machine learning models have a black box nature and are not transparent to the outside world. This makes improving the spatial resolution of air pollutant concentrations and analyzing the time-varying characteristics of air pollutant concentrations two independent issues. Summary of the invention
[0003] In order to solve the above problems, the present invention provides a method and system for predicting air pollutant concentration based on a cloud model, the method comprising: acquiring air quality data of a meteorological monitoring station in real time; processing the air quality data using a cloud model to generate air quality cloud droplet data; inputting the air quality cloud droplet data and the air quality data into a constructed LSTM monitoring model to obtain a prediction result; marking the meteorological monitoring station according to the prediction result to facilitate the subsequent operation of spatial distribution data;
[0004] Among them, the process of using the cloud model to process air quality data is as follows:
[0005] S1. Standardize the air quality data, where the standardized data representation includes the spatial distribution data of the meteorological monitoring station to which the air quality data belongs, the time series data of the pollutant concentration, and the pollutant concentration data;
[0006] S2. Based on the standardized air quality data, the inverse cloud generator is used to generate the conceptual connotation of air quality data, which includes expectation Ex, entropy En and excess entropy He;
[0007] S3. Based on the concept connotation, the forward cloud generator is used to iteratively generate air quality cloud droplet data.
[0008] Furthermore, the process of generating the conceptual connotation of air quality data in step S2 includes:
[0009] S11. Calculate the mean of each dimension of air quality data What to expect when getting air quality data It is expressed as:
[0010]
[0011] S12. Randomly divide all the data in the air quality data into p groups, each group has r data, and calculate the group variance of each group of data, expressed as:
[0012]
[0013]
[0014] S13. Estimate the entropy En and super entropy He of air quality data based on group variance, expressed as:
[0015]
[0016]
[0017]
[0018]
[0019] in, X represents air quality data, represents the mth dimension value of the kth data in the air quality data, and n represents the total number of air quality data. represents the mean value of the mth dimension of air quality data, represents the group variance of the i-th group, x ij represents the jth data of the i-th group, represents the mean of each group of data, represents the mean of air quality data, Represents the variance of the air quality data.
[0020] Furthermore, the process of generating air quality cloud droplet data using the forward cloud generator includes:
[0021] S21. Generate a network with En as expected value and He 2 A normal random number with variance z i =R N (En, He);
[0022] S22. Generate a graph with Ex as the expected value, A normal random number with variance x i =R N (Ex,z i );
[0023] S23. Calculate x based on the data of S21 and S22 i Degree of certainty
[0024] S24. x with certainty i Become a cloud drop in the data domain;
[0025] S25. Determine whether N cloud droplets are generated. If not, return to step S21.
[0026] Furthermore, the optimization problem of constructing the LSTM monitoring model is expressed as:
[0027]
[0028]
[0029] o t =σ(W σ ·[h t-1 ,x t ]+b o );
[0030]
[0031]
[0032] i t =σ(W i ·[h t-1 ,x t ]+b i );
[0033] f t =σ(W f ·[h t-1 ,x t ]+b f );
[0034] in, represents the prediction result, h represents the true value, o t represents the output of the output gate, C t represents the cell state equation at time t, i t represents the output of the input gate, f t represents the output of the forget gate, W σ , W C , W i and W f They represent the parameter matrices of the output gate, cell state, input gate, and forget gate respectively, tanh() represents the activation function, and σ() represents the sigmoid function.
[0035] An air pollutant concentration prediction system based on a cloud model, comprising:
[0036] A data acquisition module, used to acquire air quality data from meteorological monitoring stations and input the acquired air quality data into the reverse cloud generator connotation extraction module;
[0037] The reverse cloud generator connotation extraction module is used to extract the connotation representation of air quality data and input the connotation representation into the forward cloud generator cloud droplet generation module;
[0038] The forward cloud generator cloud droplet generation module is used to iteratively generate cloud droplet data based on the connotation representation and input the cloud droplet data into the LSTM integrated data prediction output module;
[0039] The LSTM integrated data prediction output module is used to integrate the air quality data obtained by the data acquisition module with the cloud droplet data, process the integrated data to obtain the prediction results, and visualize the prediction results.
[0040] Beneficial effects of the present invention:
[0041] The cloud model realizes the mutual mapping between qualitative concepts and their quantitative representations through forward cloud transformation and reverse cloud transformation, and provides a two-way cognitive channel from data to knowledge and from knowledge to data; it mainly solves the problems of unexplainable and inaccurate prediction in the prediction of air pollutant concentration. The present invention provides a method for predicting air pollutant concentration based on a cloud model, extracts the data connotation of air quality data through the reverse cloud generator in the cloud model, understands the distribution of data, and then uses the forward cloud generator to generate cloud droplet data with the same distribution as the air quality data, which supplements the model training from the data level. The cloud model is used to extract the data connotation of air quality data, which is a summary description of the data as a whole, and has a certain interpretability for the results generated by the subsequent model. By extracting the connotation representation of historical air quality data and the connotation representation of newly generated air quality data, it can be compared to see whether the newly generated data has a concept deviation, so as to achieve the purpose of monitoring abnormal air quality. Finally, the air quality data and cloud droplet data are integrated and input into the model training to obtain a highly accurate prediction result. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a general flow chart of the air pollutant concentration prediction system based on the cloud model of the present invention;
[0043] Figure 2 It is a conceptual connotation conversion diagram of the reverse cloud generator of the present invention;
[0044] Figure 3 It is a conceptual extension conversion diagram of the forward cloud generator of the present invention;
[0045] Figure 4 The air quality cloud droplet data generation process diagram of the present invention;
[0046] Figure 5 It is a visualization diagram of the inner and outer envelope curves of the air quality cloud droplet data of the present invention;
[0047] Figure 6 A two-dimensional visualization of the air quality cloud droplet data of the present invention;
[0048] Figure 7 A three-dimensional visualization of the air quality cloud droplet data of the present invention;
[0049] Figure 8 It is a diagram of the data flow and overall technical architecture of the present invention. DETAILED DESCRIPTION
[0050] 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.
[0051] The present invention aims to provide a certain degree of explainability to the machine learning black box model by using the concept extension generated by the forward cloud generator of the cloud model and the concept connotation generated by the reverse generator. The concept connotation of air quality itself is also an important indicator. By comparing whether the concept connotation of air quality data drifts, a means of abnormal monitoring is provided, which realizes the spatiotemporal grid monitoring of air pollutants in the city and provides high-precision prediction results of air quality pollutants.
[0052] A method for predicting air pollutant concentration based on a cloud model, the method comprising: acquiring air quality data of a meteorological monitoring site in real time; processing the air quality data using a cloud model to generate air quality cloud droplet data; inputting the air quality cloud droplet data and the air quality data into a constructed LSTM monitoring model to obtain monitoring results; marking the meteorological monitoring site according to the monitoring results; the invention predicts by fusing multi-source data and spatiotemporal air pollutant concentration data, and the result has a certain degree of interpretability.
[0053] Among them, Figure 1 As shown in the figure, the cloud model is used to process the air quality data, and the process of prediction based on the processed data is as follows:
[0054] S1. Standardizing the air quality data to obtain a standardized data representation, wherein the standardized data representation includes spatial distribution data of the meteorological monitoring station to which the air quality data belongs, time series data of pollutant concentrations, and pollutant concentration data;
[0055] S2. Based on the standardized air quality data, the inverse cloud generator is used to generate the conceptual connotation of air quality data, which includes expectation Ex, entropy En and excess entropy He;
[0056] S3. Based on the concept connotation, the air quality cloud droplet data is iteratively generated using the forward cloud generator;
[0057] S4. Integrate the air quality cloud droplet data with the standardized air quality data, and input the integrated data into the constructed LSTM monitoring model;
[0058] S5. Obtain the prediction results through the LSTM monitoring model and output the prediction results visually.
[0059] In one embodiment, if Figure 2 As shown in Figure 2, the conceptual process of using the inverse cloud generator to generate air quality data includes:
[0060] S11. Calculate the mean of each dimension of air quality data The expected value of air quality data is obtained based on the average value of all dimensions of air quality data It is expressed as:
[0061]
[0062] S12. All the data in the air quality data are randomly divided into p groups, each group has r data (n = pr and n, p, r are all positive integers), and the group variance of each group of data is calculated, which is expressed as:
[0063]
[0064]
[0065] According to the forward cloud generator, we can assume that y1,y2,...,y p It comes from the expectation of En, He 2 is the normal distribution with variance N(En,He 2 ) a set of samples;
[0066] S13. Estimate the entropy En and super entropy He of air quality data based on group variance, expressed as:
[0067]
[0068]
[0069]
[0070]
[0071] in, X represents air quality data, X∈R N×M , where N and M represent the number of air quality data and the dimension of each data, respectively. represents the mth dimension value of the kth data in the air quality data, and n represents the total number of air quality data. represents the mean value of the mth dimension of air quality data, represents the group variance of the i-th group, x ij represents the jth data of the i-th group, represents the mean of each group of data, represents the mean of air quality data, Represents the variance of the air quality data.
[0072] Specifically, Figure 3 , 4 As shown in Figure 1, the process of generating air quality cloud droplet data using the forward cloud generator includes:
[0073] S21. Generate a network with En as expected value and He 2 A normal random number with variance z i =R N (En, He);
[0074] S22. Generate a graph with Ex as the expected value, A normal random number with variance x i =R N (Ex,z i );
[0075] S23. Calculate x based on the data of S21 and S22 i Degree of certainty
[0076] S24. x with certainty i Become a cloud drop in the data domain;
[0077] S25. Determine whether N cloud droplets are generated. If not, return to step S21.
[0078] The air quality cloud droplet data are combined with the air quality data in a standardized representation, expressed as:
[0079]
[0080] in, represents the air quality cloud droplet data, X represents the air quality data, and X′ represents the merged result of the air quality data and the air quality cloud droplet data, which is used as the input of the LSTM monitoring model.
[0081] In one embodiment, the air quality data merged with the cloud droplet data is input into the LSTM monitoring model for prediction, and an optimization problem for the LSTM monitoring model prediction is constructed, which is expressed as:
[0082]
[0083] in:
[0084]
[0085] o t =σ(W σ ·[h t-1 ,x t ]+b o );
[0086]
[0087]
[0088] i t =σ(W i ·[h t-1 ,x t ]+b i );
[0089] f t =σ(W f ·[h t-1 ,x t ]+b f );
[0090] Among them, t represents the output of the output gate, C t represents the cell state equation at time t, i t represents the output of the input gate, f t represents the output of the forget gate, W σ , W C , W i and W f They represent the parameter matrices of the output gate, cell state, input gate, and forget gate respectively, tanh() represents the activation function, and σ() represents the sigmoid function.
[0091] In one embodiment, a specific implementation of a method for accurately monitoring air pollutant concentration based on tensor representation is provided, including:
[0092] Step 1. Standardize the air quality data. Air quality data is obtained through multiple meteorological monitoring stations, which are distributed in various areas of the city. They can obtain real-time concentrations of various pollutants in the air, including PM2.5, PM10, ozone and other data. Since the data from different meteorological monitoring stations are different, they are standardized to achieve a uniform size.
[0093] Step 2. Construct the data connotation representation of each pollutant in the standardized air quality data, that is, use the inverse cloud generator to process the standardized air quality data to characterize the distribution connotation representation of each pollutant, including mean, entropy and super entropy.
[0094] Step 3. Generate N cloud droplets according to the data connotation of each pollutant in step 2, that is, set the number of cloud droplets N according to the total number of data recorded in the acquired air quality data, use the cloud forward generator to iteratively generate cloud droplets, and test the generated cloud droplets to see whether they meet the actual needs, that is, whether they are within the upper and lower envelope curves of the cloud model, such as Figure 5 As shown, if yes, keep it, otherwise discard the cloud droplet until the number of generated cloud droplets is the same as the total number of data items.
[0095] Step 4. Combine the cloud droplet data generated in step 3 with the standardized air quality data processed in step 1 and input them into the LSTM monitoring model for prediction.
[0096] Step 5. Take out the hidden variables of each LSTM layer in the LSTM monitoring model, and input them into the reverse cloud generator to generate the conceptual connotation of the hidden variables. Generate the same number of hidden variable cloud droplets as the hidden variables according to the conceptual connotation, merge the hidden variables with the hidden variable cloud droplets, and use them as the input of the next layer of LSTM. Perform this operation on each layer until the output layer of LSTM to obtain the prediction result.
[0097] Specifically, during the training process, the conceptual connotations of latent variables and latent variable droplets are visualized, the relationship between latent variables and latent variable droplets of each layer is analyzed, and the relationship between the conceptual connotation of each pollutant and the conceptual connotation of PM2.5 is analyzed, so that the model has a certain degree of interpretability and can determine whether the model converges.
[0098] After the training is completed, the prediction results can be compared with the test data, and the prediction effect can be tested through evaluation indicators such as root mean square error (RMSE), mean absolute error (MAE) and mean absolute percentage error (MAPE). The root mean square error formula is:
[0099]
[0100] The mean absolute error formula is:
[0101]
[0102] The mean absolute percentage error formula is:
[0103]
[0104] in, Represents the predicted value, y i represents the true value, and n represents the number of missing data.
[0105] Figure 6 , 7 It is a visualization of two-dimensional and three-dimensional cloud images of cloud droplets generated by air quality data. Through visualization, the distribution of cloud droplets and the relationship between cloud droplets of different pollutants can be analyzed.
[0106] Figure 8It is the architecture of the entire system, which generates cloud droplet data from the original air quality data through the cloud model, further merges the cloud droplet data with the original data, and performs cloud model transformation layer by layer to finally generate the prediction result.
[0107] An air pollutant concentration prediction system based on a cloud model, comprising:
[0108] A data acquisition module, used to acquire air quality data from meteorological monitoring stations and input the acquired air quality data into the reverse cloud generator connotation extraction module;
[0109] The reverse cloud generator connotation extraction module is used to extract the connotation representation of air quality data and input the connotation representation into the forward cloud generator cloud droplet generation module;
[0110] The forward cloud generator cloud droplet generation module is used to iteratively generate cloud droplet data based on the connotation representation and input the cloud droplet data into the LSTM integrated data prediction output module;
[0111] The LSTM integrated data prediction output module is used to integrate the air quality data obtained by the data acquisition module with the cloud droplet data, process the integrated data to obtain the prediction results, and visualize the prediction results.
[0112] In the present invention, unless otherwise clearly stipulated and limited, the terms such as "installation", "setting", "connection", "fixation" and "rotation" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, ordinary technicians in this field can understand the specific meanings of the above terms in the present invention according to the specific circumstances.
[0113] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for predicting air pollutant concentration based on a cloud model, characterized in that: The method comprises: obtaining air quality data of a meteorological monitoring station in real time; processing the air quality data using a cloud model to generate air quality cloud droplet data; inputting the air quality cloud droplet data and the air quality data into a constructed LSTM monitoring model to obtain a prediction result; Among them, the process of using the cloud model to process air quality data is as follows: S1. Standardize the air quality data, where the standardized data representation includes the spatial distribution data of the meteorological monitoring station to which the air quality data belongs, the time series data of the pollutant concentration, and the pollutant concentration data; S2. Based on the standardized air quality data, the inverse cloud generator is used to generate the conceptual connotation of air quality data, which includes expectation Ex, entropy En and excess entropy He; The process of generating the conceptual connotation of air quality data in step S2 includes: S11. Calculate the mean of each dimension of air quality data What to expect when getting air quality data It is expressed as: S12. Randomly divide all the data in the air quality data into p groups, each group has r data, and calculate the group variance of each group of data, expressed as: S13. Estimate the entropy En and super entropy He of air quality data based on group variance, expressed as: in, X represents air quality data, represents the m-th dimension value of the k-th data in the air quality data, and n represents the total number of air quality data. represents the mean value of the mth dimension of air quality data, represents the group variance of the i-th group, x ij represents the jth data of the i-th group, represents the mean of each group of data, represents the mean of air quality data, represents the variance of air quality data; The process of generating air quality cloud droplet data using the forward cloud generator includes: S21. Generate a network with En as expected value and He 2 A normal random number with variance z i =R N (En, He); S22. Generate a graph with Ex as the expected value, A normal random number with variance x i =R N (Ex,z i ); S23. Calculate x based on the data of S21 and S22 i Degree of certainty S24. x with certainty i Become a cloud drop in the data domain; S25. Determine whether N cloud droplets are generated. If not, return to step S21; S3. Based on the concept connotation, the forward cloud generator is used to iteratively generate air quality cloud droplet data.
2. The method for predicting air pollutant concentration based on a cloud model according to claim 1, characterized in that: The optimization problem of building an LSTM monitoring model is expressed as: in, represents the predicted result, and h represents the true value.
3. The method for predicting air pollutant concentration based on a cloud model according to claim 2, characterized in that: The calculation formula of the LSTM monitoring model includes: the t =σ(W σ ·[h t-1 ,x t ]+b o ); i t =σ(W i ·[h t-1 ,x t ]+b i ); f t =σ(W f ·[h t-1 ,x t ]+b f ); Among them, t represents the output of the output gate, C t represents the cell state equation at time t, i t represents the output of the input gate, f t represents the output of the forget gate, W σ , W C , W i and W f They represent the parameter matrices of the output gate, cell state, input gate, and forget gate respectively, tanh() represents the activation function, and σ() represents the sigmoid function.
4. A cloud model-based air pollutant concentration prediction system for implementing any of the methods described in claims 1-3, characterized in that: include: A data acquisition module, used to acquire air quality data from meteorological monitoring stations and input the acquired air quality data into the reverse cloud generator connotation extraction module; The reverse cloud generator connotation extraction module is used to extract the connotation representation of air quality data and input the connotation representation into the forward cloud generator cloud droplet generation module; The forward cloud generator cloud droplet generation module is used to iteratively generate cloud droplet data based on the connotation representation and input the cloud droplet data into the LSTM integrated data prediction output module; The LSTM integrated data prediction output module is used to integrate the air quality data obtained by the data acquisition module with the cloud droplet data, process the integrated data to obtain the prediction results, and visualize the prediction results.
