Air particle analysis and early warning method and device based on artificial intelligence

Through the air particle analysis and early warning method based on artificial intelligence, using the gated recurrent unit neural network and the fully connected neural network of the attention mechanism, real-time monitoring of air environmental pollution and automatic identification of pollution causes are achieved, solving the detection timeliness in the existing technology. It solves the problem of insufficient flexibility and intelligence and improves the efficiency of pollution disposal.

CN114023399BActive Publication Date: 2024-10-15STARFIELD (JIANGSU) DATA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111344877.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-15
Publication Date
2024-10-15
Estimated Expiration
2041-11-15

AI Technical Summary

Technical Problem

The existing technology cannot effectively improve the timeliness and intelligence level of environmental pollution detection, cannot analyze the causes of environmental pollution, and is difficult to achieve efficient management of environmental pollution and scientific decision-making.

Method used

An artificial intelligence-based air particle analysis and early warning method is adopted to obtain air particle data, perform preprocessing and establish a data set, and use the gated recurrent unit neural network of the attention mechanism to establish an anomaly detection model to determine whether the air particles are abnormal, and through all Connect the neural network to analyze the causes of pollution to achieve real-time warning and automatic identification of pollution events.

Benefits of technology

It achieves full coverage of real-time monitoring and management of air environmental pollution, improves pollution disposal efficiency, can automatically identify the causes of pollution, and provides a management method that reduces staff and increases efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114023399B_ABST
    Figure CN114023399B_ABST
Patent Text Reader

Abstract

The present invention discloses an air particle analysis and early warning method and device based on artificial intelligence. The method includes: obtaining air particle data of a target site; preprocessing the air particle data and establishing an air particle data set; establishing an anomaly detection model based on a gated recurrent unit neural network of an attention mechanism, and training the anomaly detection model according to the air particle data set to obtain a trained anomaly detection model; determining the predicted value of each air particle through the trained anomaly detection model, and calculating the difference between the predicted value and the actual value of each air particle; judging whether each air particle is abnormal according to the difference, and if abnormal, issuing an early warning prompt. The technical solution of this embodiment can effectively utilize monitoring data, automatically identify the cause of an air pollution incident, and issue an alarm so as to respond in the first time, improve the disposal efficiency, and provide a governance method that reduces manpower and increases efficiency for the optimization of the atmospheric environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of air particle analysis and early warning, and in particular to an air particle analysis and early warning method and device based on artificial intelligence. Background Art

[0002] With the continuous advancement of my country's urbanization process and the steady improvement of economic development level, urban environmental problems such as air, water and soil pollution have become increasingly prominent. The people are paying more and more attention to environmental issues and have higher and higher requirements for environmental quality. Relying on simple human monitoring, control and governance of environmental problems can no longer meet the current development needs. With the development and rise of artificial intelligence technology, based on the application of information technologies such as the Internet of Things and big data, the exploration and research and innovative application of artificial intelligence technology in the field of environmental governance has become a new development trend in the field of environmental protection, which is of great significance for the monitoring and evaluation of regional pollution, large-scale joint prevention and control, and the handling of environmental pollution incidents.

[0003] At present, environmental pollution is mainly detected and managed through digital environmental protection and smart environmental protection. However, the timeliness and intelligence level of the above two methods need to be improved, and it is impossible to analyze the causes of environmental pollution. This patent comes from this. Summary of the invention

[0004] The present invention provides an air particulate matter analysis and early warning method and device based on artificial intelligence. The solution formed by combining the Internet, artificial intelligence technology and environmental informatization can achieve full coverage of pollution from monitoring to management on the basis of effectively monitoring the atmospheric environmental pollution status, and promote the efficient management and scientific decision-making of environmental quality supervision, pollution prevention and control, ecological environment protection and other work.

[0005] In a first aspect, an embodiment of the present invention provides an air particulate matter analysis and early warning method based on artificial intelligence, comprising:

[0006] Obtain air particulate matter data at the target site;

[0007] Preprocessing the air particle data and establishing an air particle data set;

[0008] Establishing an anomaly detection model based on a gated recurrent unit neural network with an attention mechanism, and training the anomaly detection model according to the air particle data set to obtain a trained anomaly detection model;

[0009] The trained anomaly detection model is used to determine the difference between the predicted value and the actual value of each air particle, and based on the difference, it is determined whether each air particle is abnormal. If abnormal, an early warning prompt is issued.

[0010] In a second aspect, an embodiment of the present invention further provides an air particulate matter analysis and early warning device based on artificial intelligence, comprising:

[0011] A data acquisition module, used to acquire air particle data of a target site;

[0012] A data set establishment module, used for preprocessing the air particulate matter data and establishing an air particulate matter data set;

[0013] A model training module, used for establishing an anomaly detection model based on a gated recurrent unit neural network with an attention mechanism, and training the anomaly detection model according to the air particle data set to obtain a trained anomaly detection model;

[0014] The abnormality warning module is used to determine the difference between the predicted value and the actual value of each air particle through the trained abnormality detection model, and judge whether each air particle is abnormal based on the difference. If it is abnormal, an early warning prompt is issued.

[0015] The embodiment of the present invention establishes an abnormal detection model for multivariate input by using a gated recurrent unit neural network with an attention mechanism, provides the deviation degree data of the real-time air particle pollutant concentration data relative to the estimated value, and judges whether an alarm is needed in combination with the fluctuation law of the historical time-sharing data. The data that triggers the alarm is used to classify the pollution causes using a fully connected neural network to obtain the estimated values ​​of the pollution causes (such as motor vehicle emissions, road dust, restaurant fumes, incineration smoke and other different pollution types) so as to respond in the first time, improve the disposal efficiency, and provide a governance method of reducing staff and increasing efficiency for the optimization of the atmospheric environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flow chart of air particulate matter analysis and early warning based on artificial intelligence provided in Embodiment 1 of the present invention;

[0017] Figure 2 An overall block diagram of an artificial intelligence air particulate matter analysis and early warning provided by an embodiment of the present invention;

[0018] Figure 3 A fitting diagram for the probability distribution of the difference provided by the embodiment of the present invention;

[0019] Figure 4 A schematic diagram of determining a predicted value of a target site provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0021] Example

[0022] In this embodiment, the particle pollutant data (including PM) obtained at the ground air pollution monitoring point every 15 minutes can be 0.3 、PM 0.5 、PM 1 、PM 2.5 、PM 5 、PM 10 , CO, NO 2 , O 3 、SO 2 The data are preprocessed by random forest filling of missing values ​​and data standardization, etc., and then the Attenion-GRU model is used for training to predict the concentration of a certain particle pollutant in the next 15 minutes.

[0023] Figure 1 The flowchart of the air particulate matter analysis and early warning based on artificial intelligence provided by the embodiment of the present invention specifically includes the following steps:

[0024] S110: Acquire air particulate matter data of the target site.

[0025] The air particulate matter data in this embodiment is obtained from a ground-based air pollution monitoring station and may include PM 0.3 、PM 0.5 、PM 1 、PM 2.5 、PM 5 、PM 10 , CO, NO 2 , O 3 、SO 2 In addition, temperature and humidity data, wind speed data, etc. can also be obtained from ground-based atmospheric pollution monitoring stations.

[0026] See also Figure 2 , Figure 2 The overall block diagram of an artificial intelligence air particulate matter analysis and early warning provided by an embodiment of the present invention includes a ground air pollution monitoring station network, an online monitoring data storage server, and a data processing server. The data processing server analyzes and warns the data obtained through the ground air pollution monitoring station network, and sends the results of the analysis and early warning to a large screen, APP, and other display terminals for display through the online monitoring data access server.

[0027] S120: pre-process the air particle data and establish an air particle data set.

[0028] If there are missing values ​​in the sample data, a lot of information in the original data will be lost, and the distribution of the data will be affected to a certain extent. This may make the results of the sample data unreliable when fitting the model. However, if you only blindly ensure the integrity and accuracy of the information and discard the data with missing values, there may be too little training data, resulting in underfitting.

[0029] Therefore, in this embodiment, the acquired air particulate matter data needs to be preprocessed. Specifically, the random forest filling method is used, the missing values ​​in the data are used as the target variables, and the characteristic values ​​of other known variables are substituted into the random forest fitting model to estimate the missing values, and the estimated values ​​are used for filling.

[0030] In addition, this embodiment uses the minimum-maximum normalization method to perform data normalization on the air particulate matter data. The normalization principle of this method is to use a conversion function to perform a linear mapping operation on the sample data so that the result after linear mapping falls within the interval [0,1], which is convenient for subsequent processing. When the standardized sample data is used for modeling and prediction using a neural network, the convergence speed of the model can be greatly improved, while improving the prediction accuracy and learning efficiency of the model.

[0031] Further, an air particulate matter dataset is established based on the preprocessed data. In this embodiment, 80% of the entire dataset is selected as a training set for training model parameters, and the remaining 20% ​​is a test set for evaluating the generalization ability of the model. Considering the limited amount of available data, the K-Fold cross-validation method is used in this embodiment to evaluate the prediction performance of the model, and the validation set is no longer divided separately.

[0032] S130, establishing an anomaly detection model based on a gated recurrent unit neural network with an attention mechanism, and training the anomaly detection model according to the air particulate matter dataset to obtain a trained anomaly detection model.

[0033] The anomaly detection model in this implementation stacks two layers of GRU and one layer of Attention to learn features of sequence data. The two layers of GRU networks are connected by a Dropout layer to reduce the number of parameters during training and prevent overfitting. The Dropout layer parameter is 0.5.

[0034] Referring to the experimental results of different numbers of neurons, according to the experimental settings of the optimal prediction results, in this embodiment, the first layer of GRU is set to 256 neurons and the second layer of GRU is set to 64 neurons. The second layer of GRU will output 64 learned features and enter the next Attention layer for further learning. After the Attention layer is a fully connected layer, which is set according to the type of air particles currently to be predicted. If only PM is currently predicted in this embodiment, 10 The value of the model output is a one-dimensional vector, so this layer is set as a neuron. Adding a GRU layer to the neural network model can choose to keep historically important information and forget unimportant information. The purpose of adding an Attention layer is to highlight the impact of key information in the input sequence on the output result.

[0035] The loss function of the above model uses the mean square error loss function, uses GPU hardware for training, reasonably adjusts the initial learning rate, and reduces the learning rate every 5 epochs. The Adam algorithm is used for training on the training set, and the test set is not used during training. The training is terminated when the training accuracy reaches a certain level.

[0036] In practical applications, pollutant concentrations often have certain regional characteristics, and the pollutant concentration values ​​of adjacent sites have similar trends over time, that is, the pollutant concentration data has spatial correlation. Therefore, in this embodiment, the data of nearby sites are used to assist the prediction of the target site to improve the model performance and generalization ability.

[0037] Specifically, if there are other sites within a certain distance from the target site, anomaly detection models are established for the target site and other sites respectively based on the gated recurrent unit neural network of the attention mechanism, and the target site and other sites are trained respectively according to the air particulate matter datasets corresponding to the target site and other sites to obtain the trained anomaly detection model corresponding to the target site and the anomaly detection model corresponding to other sites.

[0038] Then, the predicted values ​​of each air particle determined by the anomaly detection model corresponding to the target site and the predicted values ​​of each air particle determined by the anomaly detection models corresponding to other sites are input into a convolutional neural network to obtain the final predicted values ​​of each air particle at the target site.

[0039] For example, see Figure 4 , for a target site to be predicted, select sites within a 1km range around it. If there are no other sites within a 1km range around a site, do not perform this step; Figure 4There are 4 nearby stations around the target station. The above Attention-GRU model is used for prediction, and then the values ​​of the target station and the nearby stations are sent to a convolutional neural network. Among them, the convolutional neural network (CNN) has a unique advantage in extracting the spatial correlation of data. Due to the small number of input nodes, the pooling layer is not set in the CNN to simplify the feature map, and only the convolution layer is used to extract the spatial information of the input feature map.

[0040] Since the input data is a one-dimensional array, a 1-dimensional convolutional neural network (Conv1D) is used in this embodiment. Three convolution layers are used, the size of the convolution kernel is 3*3, and the nonlinear activation function uses tanh; the first convolution layer is set with 4 convolution kernels, the second convolution layer is set with 8 convolution kernels, and the third convolution layer is designed with 8 convolution kernels. Then it passes through a Flatten layer and a fully connected layer containing 10 neurons, and the last fully connected layer outputs a 1*1 value, which is the final predicted value of the target site. The training method of the Conv1D model in this embodiment is basically the same as the previous Attension-GRU model.

[0041] S140. Determine the difference between the predicted value and the actual value of each air particle through the trained anomaly detection model, and judge whether each air particle is abnormal based on the difference. If abnormal, issue an early warning prompt.

[0042] Continue to predict PM 10 Taking whether there is an anomaly as an example, after obtaining the trained anomaly detection model, in PM 10 The trained Attention-GRU model is used on the dataset to derive PMs after 15 minutes. 10 The concentration prediction value pm10_pred is used to calculate the difference pm10_residual between it and the actual value pm10_test.

[0043] For all the difference values ​​pm10_residual, calculate the probability distribution histogram data and fit the probability distribution of pm10_residual with the hyperbolic distribution function, see Figure 3 , in a hyperbolic distribution, the probability density of a value x is

[0044]

[0045] Proportional to each other. The values ​​of α, β, δ, μ are fitted to obtain f PM10 (x; α, β, δ, μ), for a new pm10_residual value, this probability distribution function can be used to calculate a probability density value p PM10 , when the probability density value p PM10Less than a certain threshold p PM10 When , the probability of the pm10_residual residual value corresponding to this predicted value is small. At this time, it is considered that the gap between the actual value and the regular predicted value is large, and it is judged to be abnormal PM 10 data.

[0046] Furthermore, after determining that the air particles are abnormal, the method further includes:

[0047] Extract corresponding feature quantities from each air particle concentration data and meteorological data;

[0048] According to the characteristic quantity, the event type of abnormal air particulate matter is output through a fully connected neural network.

[0049] Use PM through the above steps 0.3 、PM 0.5 、PM 1 、PM 2.5 、PM 5 The corresponding Attention-GRU model is trained based on various particle pollutant data, and PM 10 Attention-GRU has a total of 6 models and f PM0.3 、f PM0.5 、f PM1 、f PM2.5 、f PM5 、f PM10 The probability distribution function of the six differences. 10 When it is judged as abnormal, according to f PM0.3 、f PM0.5 、f PM1 、f PM2.5 、f PM5 Calculate the probability density value p PM0.3 、p PM0.5 、p PM1 、p PM2.5 、p PM5 According to PM 0.3 、PM 0.5 、PM 1 、PM 2.5 、PM 5 and PM 10 The difference and probability density of CO, NO 2 , O 3 、SO 2 Pollutant concentration data and three meteorological data, temperature TEMP, relative humidity RH, and wind speed, a total of 19 data, are used as a 1×19 feature value of particulate pollutants. Then, through machine learning methods, the computer can use the extracted feature values ​​to analyze the cause of pollution.

[0050] In this embodiment, a fully connected neural network is used. The 1×19 feature quantity obtained above is used as the input layer of the neural network. Then two hidden layers are set, each containing 128 neurons. The output layer gives the type of event causing particulate matter pollution corresponding to the number of classification results, such as motor vehicle emissions, road dust, stockpile dust, restaurant fumes, incineration smoke, etc.

[0051] The air particle analysis and early warning method based on artificial intelligence can effectively use the monitoring data on the basis of the existing atmospheric monitoring stations, automatically identify the causes of atmospheric pollution events, and issue an alarm so that government departments can respond in the first time, improve the disposal efficiency, and provide a governance method that reduces manpower and increases efficiency for the optimization of the atmospheric environment. The embodiment of the present invention also provides an air particle analysis and early warning device based on artificial intelligence, including:

[0052] A data acquisition module, used to acquire air particle data of a target site;

[0053] A data set establishment module, used for preprocessing the air particulate matter data and establishing an air particulate matter data set;

[0054] A model training module, used for establishing an anomaly detection model based on a gated recurrent unit neural network with an attention mechanism, and training the anomaly detection model according to the air particle data set to obtain a trained anomaly detection model;

[0055] The anomaly detection model includes two layers of GRU and one layer of Attention, and the two layers of GRU networks are connected by a Dropout layer; wherein the first layer of GRU is set to 256 neurons, and the second layer of GRU is set to 64 neurons.

[0056] The abnormal warning module is used to determine the difference between the predicted value and the actual value of each air particle through the trained abnormal detection model, and judge whether each air particle is abnormal according to the difference. If it is abnormal, an early warning prompt is issued. The above device also includes an analysis module for extracting corresponding feature quantities from each air particle and meteorological data;

[0057] According to the characteristic quantity, the event type of abnormal air particulate matter is output through a fully connected neural network.

[0058] Specifically, the data set establishment module is specifically used to: fill the air particulate matter data based on the random forest filling method;

[0059] The minimum-maximum normalization method performs data standardization processing on the air particulate matter data.

[0060] The abnormal warning module is also used to: calculate the probability distribution histogram of the difference;

[0061] Fitting the probability distribution histogram of the difference using a hyperbolic distribution function to obtain a probability distribution function of the difference;

[0062] The difference between the current predicted value and the actual value of the air particles is determined. If the probability density value corresponding to the difference is less than the set threshold in the probability distribution function, the air particles are abnormal.

[0063] An artificial intelligence-based air particle analysis and early warning device provided in an embodiment of the present invention can execute an artificial intelligence-based air particle analysis and early warning method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0064] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. An air particulate matter analysis and early warning method based on artificial intelligence, characterized in that: include: Obtain air particulate matter data at the target site; Preprocessing the air particle data and establishing an air particle data set; Establishing an anomaly detection model based on a gated recurrent unit neural network with an attention mechanism, and training the anomaly detection model according to the air particle data set to obtain a trained anomaly detection model; The difference between the predicted value and the actual value of each air particle is determined by the trained anomaly detection model, and whether each air particle is abnormal is judged according to the difference. If abnormal, an early warning prompt is issued; Judging whether each air particle is abnormal according to the difference includes: Calculating a probability distribution histogram of the difference; The probability distribution histogram of the difference is fitted using a hyperbolic distribution function to obtain a probability distribution value detection model of the difference: Among them, the probability density of the input quantity x is is proportional to; Determine the difference between the current predicted value and the actual value of the air particles, and use the detection model to calculate the probability density value of the difference. If the probability density value corresponding to the difference is less than the set threshold value in the probability distribution function, then the air particles are abnormal; Among them, the specific form of f(x; α, β, δ, μ) is obtained by fitting the values ​​of the parameters α, β, δ, and μ; An anomaly detection model is established based on a gated recurrent unit neural network with an attention mechanism, and the anomaly detection model is trained according to the air particle data set to obtain a trained anomaly detection model, including: if there are other sites within a certain distance from the target site, an anomaly detection model is established for the target site and the other sites respectively based on the gated recurrent unit neural network with an attention mechanism, and the target site and the other sites are trained respectively according to the air particle data sets corresponding to the target site and the other sites to obtain the trained anomaly detection model corresponding to the target site and the anomaly detection model corresponding to the other sites; The trained anomaly detection model is used to determine the predicted value of each air particle, including: The predicted values ​​of each air particle determined by the anomaly detection model corresponding to the target site and the predicted values ​​of each air particle determined by the anomaly detection models corresponding to other sites are input into a convolutional neural network to obtain the final predicted value of each air particle at the target site.

2. The method according to claim 1, characterized in that: After determining that the air particles are abnormal, it also includes: Extract corresponding feature quantities from each air particle and meteorological data; According to the characteristic quantity, the event type of abnormal air particulate matter is output through a fully connected neural network.

3. The method according to claim 1, characterized in that Preprocessing the air particulate matter data includes: Filling the air particulate matter data based on a random forest filling method; The minimum-maximum normalization method performs data standardization processing on the air particulate matter data.

4. The method according to claim 1, characterized in that: The anomaly detection model includes two layers of GRU and one layer of Attention, and the two layers of GRU networks are connected by a Dropout layer; Among them, the first layer of GRU is set to 256 neurons, and the second layer of GRU is set to 64 neurons.

5. A device for analyzing and warning the air particles based on the artificial intelligence according to any one of claims 1 to 4, characterized in that: include: A data acquisition module, used to acquire air particle data of a target site; A data set establishment module, used for preprocessing the air particulate matter data and establishing an air particulate matter data set; A model training module, used for establishing an anomaly detection model based on a gated recurrent unit neural network with an attention mechanism, and training the anomaly detection model according to the air particle data set to obtain a trained anomaly detection model; The abnormality warning module is used to determine the difference between the predicted value and the actual value of each air particle through the trained abnormality detection model, and judge whether each air particle is abnormal based on the difference. If it is abnormal, an early warning prompt is issued.