Pollution cause analysis method, device, computer equipment and readable storage medium

Through the combination of blockchain technology and artificial intelligence, cluster analysis is used to quickly and efficiently determine the causes of pollution, which solves the efficiency and accuracy problems of pollution cause analysis in existing technologies and is suitable for pollution monitoring and analysis in smart cities.

CN111932146BActive Publication Date: 2024-09-17PINGAN INT SMART CITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing pollution cause analysis methods cannot quickly and efficiently analyze the causes of pollution, and are limited by data requirements, technical requirements, and manual judgment by professionals.

Method used

Blockchain technology is used to store the data and results of pollution cause analysis, and artificial intelligence cluster analysis is used to determine the pollution causes of target pollution events. A sample library is constructed through monitoring data of historical pollution events, and cluster analysis is performed to determine target pollution events. categories to quickly and efficiently analyze the causes of pollution.

Benefits of technology

It achieves rapid and efficient analysis of the causes of pollution, reduces data processing complexity and time, is suitable for areas with limited resources, and improves the accuracy and efficiency of analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111932146B
    Figure CN111932146B
Patent Text Reader

Abstract

The present invention relates to the technical fields of blockchain, artificial intelligence and smart city, and provides a method, device, computer equipment and readable storage medium for analyzing the causes of pollution. The method comprises: obtaining monitoring data corresponding to historical pollution events; selecting at least one-dimensional monitoring vector in a multidimensional monitoring vector as a characteristic index; constructing sample data according to the characteristic index of historical pollution events; clustering analysis of the sample data in the sample library to obtain a clustering function and multiple classes; obtaining the characteristic index of the target pollution event; constructing data to be identified according to the characteristic index of the target pollution event; inputting the data to be identified into the clustering function to determine the class to which the data to be identified belongs, and determining the pollution cause of the target pollution event according to the pollution cause of the historical pollution event in the class. The information such as monitoring data, sample data and / or data to be identified in the present invention can be stored in a blockchain node. Through the present invention, the analysis of the causes of pollution can be realized quickly and efficiently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of blockchain, artificial intelligence and smart city technology, and in particular to a method, device, computer equipment and readable storage medium for analyzing the causes of pollution. Background Art

[0002] Air pollution not only hinders the growth of social economy, but also has adverse effects on people's social life and health. At present, how to better improve the atmospheric environment has become the focus of attention of various environmental protection departments. In order to better improve the atmospheric environment, we must first find out the causes of environmental pollution. The causes and sources of air pollution mainly include three aspects: pollution emissions, meteorological impacts and regional transmission.

[0003] Based on this, there are roughly the following methods for analyzing the causes of pollution: one is source analysis based on emission inventories, the second is source analysis based on super stations, and the third is source analysis based on manual monitoring data. Among them, for source analysis based on emission inventories, a complete dynamic emission inventory data is required as a prerequisite, and the establishment of a dynamic inventory is a process that requires a large amount of data and is time-consuming and labor-intensive; for source analysis based on super stations, due to the price factors of super stations, many regions do not have the conditions to use super stations for source analysis; source analysis based on manual monitoring usually requires manual sampling first, and then through long-term experiments, the source of the pollution source is analyzed, which is also time-consuming and labor-intensive.

[0004] In summary, the existing methods of pollution cause analysis are limited by data requirements, technical requirements and manual judgment of professionals, and cannot quickly and efficiently realize the analysis of pollution causes. Therefore, how to quickly and efficiently realize the analysis of pollution causes has become a technical problem that needs to be solved in this field. Summary of the invention

[0005] The purpose of the present invention is to provide a method, device, computer equipment and readable storage medium for analyzing the causes of pollution, which are used to solve the above-mentioned technical problems in the prior art. The present invention relates to blockchain technology. The data required for the analysis of the causes of pollution, the data generated during the analysis process, and the analysis results can all be stored in blockchain nodes to ensure the validity of the data; the present invention also relates to artificial intelligence. In the process of analyzing the causes of pollution, cluster analysis is used to determine the category of historical pollution events corresponding to the target pollution event, and then the pollution causes of the target pollution event can be analyzed based on the pollution causes of the historical pollution events; the present invention also relates to the field of smart city technology, and the analysis method of the causes of pollution provided by the present invention is applied to the field of smart cities, thereby promoting the construction of smart cities.

[0006] On the one hand, to achieve the above objectives, the present invention provides a method for analyzing the causes of pollution.

[0007] The method for analyzing the causes of pollution includes: obtaining monitoring data corresponding to historical pollution events, wherein the monitoring data includes multi-dimensional monitoring vectors, and the monitoring vectors are air quality index monitoring parameters, ground meteorological monitoring parameters and / or sounding meteorological monitoring parameters.

[0008] ; Select at least one dimensional monitoring vector from the multidimensional monitoring vector as a characteristic indicator; construct sample data based on the characteristic indicators of the historical pollution events, wherein the sample data of multiple historical pollution events form a sample library; perform cluster analysis on the sample data in the sample library to obtain a clustering function and multiple classes; obtain the characteristic indicators of the target pollution event; construct the data to be identified based on the characteristic indicators of the target pollution event; input the data to be identified into the clustering function to determine the class to which the data to be identified belongs; determine the pollution cause of the target pollution event based on the pollution cause of the historical pollution events in the class to which the data to be identified belongs.

[0009] Furthermore, the step of obtaining monitoring data corresponding to historical pollution events includes: obtaining historical monitoring data of a target area; identifying historical pollution events according to air quality standards and the historical monitoring data of the target area, and determining the start time and end time of the historical pollution events; determining a pollution development time period within the pollution time period defined by the start time and the end time; obtaining monitoring data of the target area within the pollution development time period, and obtaining monitoring data corresponding to the historical pollution events.

[0010] Furthermore, the step of obtaining monitoring data corresponding to historical pollution events also includes: obtaining historical monitoring data of surrounding areas within a predetermined geographical range of the target area; judging whether there is a pollution event in the surrounding area during the pollution time period based on the air quality standard and the historical monitoring data of the surrounding area; if there is a pollution event in the surrounding area during the pollution time period, the monitoring data corresponding to the historical pollution event includes a first preset vector; if there is no pollution event in the surrounding area during the pollution time period, the monitoring data corresponding to the historical pollution event includes a second preset vector.

[0011] Furthermore, the step of selecting at least one dimensional monitoring vector in the multidimensional monitoring vector as a characteristic indicator includes: constructing an m*n monitoring vector matrix based on the n-dimensional monitoring vector, wherein m is the number of elements in the monitoring vector, and the elements of the monitoring vector correspond to different monitoring times; performing standardization on the monitoring vector matrix to obtain a standard monitoring vector matrix; performing principal component analysis on the standard monitoring vector matrix to obtain an n*l principal component matrix, wherein l is less than n; and determining the characteristic indicator based on the principal component matrix.

[0012] Furthermore, the step of performing principal component analysis on the standard monitoring vector matrix to obtain an n*l principal component matrix includes: calculating the covariance matrix of the standard monitoring vector matrix, wherein the covariance matrix is ​​an n*n matrix; performing eigenvalue decomposition on the covariance matrix to obtain n eigenvalues ​​and n eigenvectors corresponding to the eigenvalues ​​one by one, wherein each of the eigenvectors includes n elements, and each element of the eigenvector corresponds to one of the monitoring vectors; among the n eigenvectors, extracting l eigenvectors with larger corresponding eigenvalues, respectively serving as column vectors of the principal component matrix.

[0013] Furthermore, the step of determining the characteristic index according to the principal component matrix includes: for each column vector in the principal component matrix, according to the size of the elements in the column vector, extracting p monitoring vectors from the n monitoring vectors to construct an indicator tuple; calculating the intersection of the indicator tuples corresponding to the column vectors in the principal component matrix to obtain the characteristic index.

[0014] Furthermore, the step of normalizing the monitoring vector matrix to obtain a standard monitoring vector matrix includes: for each element x of the monitoring vector matrix i , calculate the arithmetic mean x' and standard deviation s; use the following formula for standardization: i =(x i -x') / s, where z i The elements in the matrix are the standard monitoring vectors.

[0015] On the other hand, to achieve the above-mentioned purpose, the present invention provides a device for analyzing the cause of pollution.

[0016] The pollution cause analysis device includes: a first acquisition module, used to acquire monitoring data corresponding to historical pollution events, wherein the monitoring data includes a multidimensional monitoring vector, and the monitoring vector includes air quality index monitoring parameters, ground meteorological monitoring parameters and / or sounding meteorological monitoring parameters; a first processing module, used to select at least one-dimensional monitoring vector in the multidimensional monitoring vector as a characteristic indicator; a second processing module, used to construct sample data according to the characteristic indicators of the historical pollution events, wherein the sample data of multiple historical pollution events form a sample library; a clustering module, used to perform clustering analysis on the sample data in the sample library to obtain a clustering function and multiple classes; a second acquisition module, used to acquire the characteristic indicators of the target pollution event; a third processing module, used to construct data to be identified according to the characteristic indicators of the target pollution event; a fourth processing module, used to input the data to be identified into the clustering function to determine the class to which the data to be identified belongs; a determination module, used to determine the pollution cause of the target pollution event according to the pollution cause of the historical pollution event in the class to which the data to be identified belongs.

[0017] On the other hand, to achieve the above purpose, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.

[0018] On the other hand, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, including a data storage area and a program storage area, the data storage area stores data created according to the use of the blockchain node, and the program storage area stores a computer program, wherein the computer program implements the steps of the above-mentioned method when executed by the processor.

[0019] The pollution cause analysis method, device, computer equipment and readable storage medium provided by the present invention can determine which type of historical pollution events the target pollution event belongs to when analyzing the pollution cause of a target pollution event based on the characteristic indicators of the target pollution event and the clustering function formed by the monitoring vectors of historical pollution events, and then determine the pollution cause of the target pollution event based on the pollution cause of this type of historical pollution events. That is, the pollution cause of the target pollution event is determined with the help of the pollution cause of the historical pollution events, which can quickly and efficiently realize the analysis of the pollution cause. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0021] Figure 1 A flow chart of a method for analyzing the cause of pollution provided in Example 1 of the present invention;

[0022] Figure 2 A block diagram of a pollution cause analysis device provided in Embodiment 2 of the present invention;

[0023] Figure 3 This is a hardware structure diagram of a computer device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0025] In order to solve the technical problems in the prior art, the present invention proposes a method, device, computer equipment and readable storage medium for analyzing the causes of pollution. In the method for analyzing the causes of pollution, the monitoring data corresponding to the historical pollution events are first obtained to obtain a multidimensional monitoring vector, and then at least one-dimensional monitoring vector is selected in the multidimensional monitoring vector as a characteristic index, and the sample data is constructed using the characteristic index, that is, each historical pollution event corresponds to a set of sample data. By using the same method, multiple sets of sample data can be obtained through the monitoring data corresponding to multiple historical pollution events, and a sample library can be formed using multiple sets of sample data. After the sample library is formed, cluster analysis is performed on the sample data in the sample library to obtain a clustering function and multiple classes, wherein the clustering function indicates the clustering analysis fitting process. Through the above cluster analysis, the sample data in the sample library is divided into multiple classes. For each class, the monitoring data of the historical pollution events in the class and other related data can be used for analysis to determine the pollution causes of the historical pollution events in the class. Afterwards, when a new pollution event occurs, the characteristic indicators of the target pollution event are obtained, and the data to be identified are constructed based on the characteristic indicators of the target pollution event. The specific construction process is the same as the method of constructing sample data based on the characteristic indicators of historical pollution events. The data to be identified is then input into the aforementioned clustering function. The aforementioned clustering function can determine the class to which the data to be identified belongs. Finally, the pollution cause of the target pollution event is determined based on the pollution causes of historical pollution events in the class to which the data to be identified belongs. It can be seen from this that when analyzing the pollution cause of a new pollution event, the present invention only needs to determine the category to which the new pollution event belongs based on the monitoring data corresponding to the pollution event, and then the pollution cause of the new pollution event can be analyzed based on the pollution causes of historical pollution events in the category, and the analysis of the pollution cause can be realized quickly and efficiently.

[0026] Specific embodiments of the pollution cause analysis method, device, computer equipment and readable storage medium provided by the present invention will be described in detail below.

[0027] Embodiment 1

[0028] Embodiment 1 of the present invention provides a method for analyzing the causes of pollution. By using this method, the causes of pollution of new pollution events can be determined quickly and efficiently. Specifically, Figure 1 This is a flow chart of the method for analyzing the cause of pollution provided in Example 1 of the present invention, such as Figure 1 As shown, the method for analyzing the cause of pollution includes the following steps S101 to S108:

[0029] Step S101: Acquire monitoring data corresponding to historical pollution events.

[0030] The monitoring data includes a multi-dimensional monitoring vector, which is optionally derived from air quality index monitoring parameters, ground meteorological monitoring parameters and / or sounding meteorological monitoring parameters, wherein the air quality index monitoring parameters include vectors for monitoring air quality indexes such as PM2.5, PM10, O3, NO2, SO2 and CO; the ground meteorological monitoring parameters include vectors for monitoring ground temperature, humidity, pressure, wind speed, wind direction, rainfall and cloudiness; the sounding meteorological monitoring parameters include vectors for sounding meteorology such as air pressure, temperature, dew point temperature, wind direction, wind speed and temperature dew point difference on each specified isobaric surface, wherein each vector such as PM2.5, ground temperature or air pressure on a specified isobaric surface can constitute a one-dimensional monitoring vector of the monitoring data, and the monitoring data includes a multi-dimensional monitoring vector. The monitoring data corresponding to a pollution event includes the multi-dimensional monitoring vector involved in the pollution event.

[0031] Step S102: selecting at least one-dimensional monitoring vector from the multi-dimensional monitoring vector as a characteristic indicator.

[0032] The pollution causes have different impacts on different monitoring vectors. In other words, in the multidimensional monitoring vectors, different monitoring vectors have different abilities to reflect the differences in pollution causes. In this step, the monitoring vectors that can better reflect the pollution causes are selected from the multidimensional monitoring vectors as feature indicators for subsequent processing, which can not only reduce the amount of data processing and the complexity of data processing, but also obtain accurate clustering results in the subsequent cluster analysis.

[0033] Step S103: constructing sample data according to characteristic indicators of historical pollution events.

[0034] Among them, for each historical pollution event, its characteristic indicators can be determined and extracted. Each historical pollution event is taken as a sample, and sample data is constructed using its characteristic indicators. Specifically, the characteristic indicators can be directly used as sample data, or the mathematical statistical values ​​of the characteristic indicators can be calculated as sample data.

[0035] Step S104: performing cluster analysis on the sample data in the sample library to obtain a clustering function and multiple clusters.

[0036] By taking multiple historical pollution events as samples, the sample data of multiple historical pollution events can form a sample library.

[0037] In step S104, for the sample library, any clustering method in the prior art can be used for cluster analysis, which will not be described here. The cluster analysis method is used to perform cluster analysis according to the maximum homogeneity of elements between classes and the maximum heterogeneity of elements between classes, and different classes are obtained, so as to realize the classification of historical pollution events in the sample library. Each class obtained by cluster analysis is a type of pollution event. Among them, the model structure and parameters of the cluster analysis fitting process are saved to obtain a clustering function.

[0038] Step S105: Acquire characteristic indicators of the target pollution event.

[0039] When a new pollution event, i.e., a target pollution event, occurs and the cause of the pollution needs to be analyzed, characteristic indicators of the target pollution event are obtained, where the characteristic indicators are the characteristic indicators determined in the above step S102. Specifically, a monitoring vector serving as a characteristic indicator is extracted from the multidimensional monitoring vector corresponding to the target pollution event.

[0040] Step S106: constructing the data to be identified according to the characteristic indicators of the target pollution event.

[0041] In step S106, the same calculation method as in step S103 is used to construct sample data based on characteristic indicators of historical pollution events, and the characteristic indicators of the target pollution event are used to construct the data to be identified.

[0042] Step S107: input the data to be identified into a clustering function to determine the class to which the data to be identified belongs.

[0043] In step S107, the data to be identified is input into the clustering function, and the clustering function can output which class the data to be identified belongs to in the above step S104, that is, determine which historical pollution events are of the same type as the target pollution event.

[0044] Step S108: Determine the pollution cause of the target pollution event according to the pollution causes of historical pollution events in the class to which the data to be identified belongs.

[0045] For historical pollution events of the same type as the target pollution event, the pollution causes of the historical pollution events have been obtained by combining historical monitoring data with other data such as climate, economy, and daily life and production activities during the same period of the historical pollution events, and the obtained pollution causes are associated with the types of historical pollution events and stored. In this step S108, the pollution causes of the target pollution event can be determined based on the pollution causes of historical pollution events of the same type as the target pollution event.

[0046] When the pollution cause analysis method provided in this embodiment is used to analyze the pollution causes of a target pollution event, it is possible to determine which type of historical pollution events the target pollution event belongs to based on the characteristic indicators of the target pollution event and the clustering function formed by the monitoring vectors of historical pollution events, and then determine the pollution cause of the target pollution event based on the pollution causes of this type of historical pollution events. That is, the pollution cause of the target pollution event is determined with the help of the pollution causes of historical pollution events, which can quickly and efficiently realize the analysis of the pollution causes.

[0047] Optionally, in an embodiment, when obtaining monitoring data corresponding to historical pollution events, the following steps S1011 to S1014 may be included:

[0048] Step S1011: Acquire historical monitoring data of the target area.

[0049] Specifically, historical records of air quality index monitoring parameters, ground meteorological monitoring parameters and / or sounding meteorological monitoring parameters of the target area are obtained to obtain historical monitoring data of the target area.

[0050] Step S1012: Identify historical pollution events according to the air quality standard and the historical monitoring data of the target area, and determine the start time and end time of the historical pollution events.

[0051] Specifically, in step S1012, pollution cases and their pollution processes are identified from historical monitoring data based on air quality standards, a monitoring vector change sequence of each historical pollution event is obtained, and the moment when the IAQI starts to rise before IAQI>100 is identified as the start time of the pollution event, and the end time of the pollution event is the moment when the IAQI decreases after IAQI<100 for 24 consecutive hours. Among them, IAQI is an air quality index, and IAQI can be calculated according to the air quality indicator monitoring parameters.

[0052] Step S1013: Determine the pollution development time period within the pollution time period defined by the start time and the end time.

[0053] Specifically, for a pollution event, the pollution time period includes a pollution development time period and a pollution decrease time period, wherein, during the pollution development time period, the IAQI climbs from the beginning to the maximum, and during the pollution decrease time period, the IAQI falls from the maximum to the value corresponding to the normal air quality state. In this step S1013, within the pollution time period defined by the start time and the end time, the pollution development time period can be further determined according to the changing trend of the IAQI.

[0054] Step S1014: Acquire historical monitoring data of the target area during the pollution development period, and construct monitoring data corresponding to historical pollution events.

[0055] For a pollution event, the cause of pollution during the pollution development period has a greater impact on the monitoring data. In other words, the monitoring data during the pollution development period can better reflect the cause of pollution. Therefore, when analyzing the causes of pollution, the historical monitoring data of the target area during the pollution development period is used as the monitoring data corresponding to the historical pollution events, so that the acquired monitoring data can better reflect the differences in pollution causes, which is conducive to improving the accuracy of pollution cause analysis.

[0056] Optionally, in an embodiment, when acquiring monitoring data corresponding to historical pollution events, the following steps S1015 to S1017 may also be included:

[0057] Step S1015: Acquire historical monitoring data of the surrounding areas within the predetermined geographical range of the target area.

[0058] For example, obtain historical monitoring data of surrounding cities bordering the target city.

[0059] Step S1016: Based on the air quality standard and the historical monitoring data of the surrounding area, determine whether there is a pollution event in the surrounding area during the pollution time period.

[0060] Optionally, based on the air quality index of the surrounding area during the pollution time period, it is determined whether there is a pollution event in the surrounding area during the pollution time period.

[0061] Step S1017: If there is a pollution event in the surrounding area during the pollution time period, the monitoring data corresponding to the historical pollution event includes a first preset vector; if there is no pollution event in the surrounding area during the pollution time period, the monitoring data corresponding to the historical pollution event includes a second preset vector.

[0062] Specifically, when there is a pollution event in the surrounding area during the pollution time period, it indicates that the historical pollution event in the target area is actually a large-scale pollution. Otherwise, it indicates that the historical pollution event is a small-scale pollution, and the size of the pollution range is closely related to the cause of the pollution. In step S1017, two different preset vectors are set to correspond to whether there is a pollution event in the surrounding area during the pollution time period, as one-dimensional monitoring vectors of the monitoring data, so that the size of the pollution range of the pollution event is reflected in the monitoring data, so that the monitoring data can better reflect the differences in the causes of pollution, thereby improving the accuracy of the pollution cause analysis.

[0063] Optionally, in an embodiment, when at least one dimensional monitoring vector is selected from the multi-dimensional monitoring vector as the characteristic indicator, the following steps S1021 to S1024 are specifically included:

[0064] Step S1021: construct an m*n monitoring vector matrix according to the n-dimensional monitoring vector.

[0065] Wherein, m is the number of elements in the monitoring vector, and the elements of the monitoring vector correspond to the monitoring time. For example, the monitoring data corresponding to the historical pollution events include 30-dimensional monitoring vectors, then n = 30; the monitoring data is recorded every hour, and each dimensional monitoring vector includes the data recorded every 1 hour in two days, then each dimensional monitoring vector includes 24*2 elements, corresponding to 48 monitoring times, that is, m = 48.

[0066] Step S1022: Standardize the monitoring vector matrix to obtain a standard monitoring vector matrix.

[0067] Optionally, when performing standardization, for each monitoring vector, the arithmetic mean (ie, mathematical expectation) x' and standard deviation s of each element are calculated, and then the standardization calculation is performed:

[0068] z i =(x i -x') / s,

[0069] Among them, z i is the element value of the standardized monitoring vector, x i is the original value of the element of the monitoring vector, where the standardized variable value fluctuates around 0. A value greater than 0 indicates that it is higher than the average level, and a value less than 0 indicates that it is lower than the average level.

[0070] Step S1023: Perform principal component analysis on the standard monitoring vector matrix to obtain an n*l principal component matrix.

[0071] Among them, the standard monitoring vector matrix is ​​still an m*n matrix. The principal component matrix obtained by performing principal component analysis on the standard monitoring vector matrix is ​​an n*l matrix, where l is less than n.

[0072] Step S1024: Determine characteristic indices according to the principal component matrix.

[0073] Specifically, the principal component matrix includes l column vectors, each column vector corresponds to an n-dimensional monitoring vector, that is, each element in the column vector uniquely corresponds to a one-dimensional monitoring vector, and in a column vector, the larger the element, the greater the impact of the pollution cause on the corresponding monitoring vector. Therefore, according to the size of the elements in the principal component matrix, some monitoring vectors can be selected from the n-dimensional monitoring vector as characteristic indicators.

[0074] Further optionally, in one embodiment, in step S1023, the step of performing principal component analysis on the standard monitoring vector matrix to obtain an n*l principal component matrix further includes:

[0075] Calculate the covariance matrix of the standard monitoring vector matrix, where the covariance matrix is ​​an n*n matrix; perform eigenvalue decomposition on the covariance matrix to obtain n eigenvalues ​​and n eigenvectors corresponding to the n eigenvalues, where each eigenvector includes n elements, and each element of the eigenvector corresponds to a monitoring vector; among the n eigenvectors, extract l eigenvectors with larger corresponding eigenvalues ​​and use them as column vectors of the principal component matrix to obtain the principal component matrix.

[0076] Specifically, when extracting l eigenvectors with larger corresponding eigenvalues, the n eigenvalues ​​are summed to obtain the sum of eigenvalues, and the ratio of each eigenvalue to the sum of eigenvalues ​​is calculated. When the ratio is greater than a predetermined threshold, the eigenvector corresponding to the eigenvalue is used as a column vector in the principal component matrix. For example, the predetermined threshold can be set to 0.8, and the eigenvector corresponding to the eigenvalue with a ratio greater than 0.8 is used as a column vector in the principal component matrix. Among them, there are l eigenvalues ​​with a ratio greater than the predetermined threshold, and the corresponding l eigenvectors construct the principal component matrix. Each eigenvector is used as a column vector of the principal component matrix, and an n*l principal component matrix can be obtained.

[0077] Optionally, in one embodiment, in step S1024, the step of determining the characteristic index according to the principal component matrix includes:

[0078] For each column vector in the principal component matrix, p monitoring vectors are extracted from the n monitoring vectors according to the size of the elements in the column vector to construct an indicator set; the intersection of the indicator sets corresponding to all column vectors in the principal component matrix is ​​calculated to obtain the characteristic index.

[0079] Specifically, for each column vector in the principal component matrix, the larger the element in the column vector, the greater the impact of the pollution cause on the monitoring vector corresponding to the element. Therefore, the monitoring vectors corresponding to the larger p elements are taken as the indicator set. Then, an indicator set can be obtained through each column vector, and then the intersection of the n indicator sets is calculated. Each monitoring vector in the intersection is a characteristic indicator.

[0080] Embodiment 2

[0081] Corresponding to the above-mentioned embodiment 1, embodiment 2 of the present invention provides an analysis device for the cause of pollution. The corresponding technical features and corresponding technical effects can be referred to the above-mentioned embodiment 1, which will not be repeated here. Figure 2 A block diagram of a pollution cause analysis device provided in Embodiment 2 of the present invention, such as Figure 2 As shown, the device includes: a first acquisition module 201, a first processing module 202, a second processing module 203, a clustering module 204, a second acquisition module 205, a third processing module 206, a fourth processing module 207 and a determination module 208.

[0082] Among them, the first acquisition module 201 is used to obtain monitoring data corresponding to historical pollution events, wherein the monitoring data includes a multidimensional monitoring vector; the first processing module 202 is used to select at least one dimensional monitoring vector in the multidimensional monitoring vector as a characteristic indicator; the second processing module 203 is used to construct sample data based on the characteristic indicators of historical pollution events, wherein the sample data of multiple historical pollution events form a sample library; the clustering module 204 is used to perform clustering analysis on the sample data in the sample library to obtain a clustering function and multiple classes; the second acquisition module 205 is used to obtain the characteristic indicators of the target pollution event; the third processing module 206 is used to construct the data to be identified based on the characteristic indicators of the target pollution event; the fourth processing module 207 is used to input the data to be identified into the clustering function to determine the class to which the data to be identified belongs; the determination module 208 is used to determine the pollution cause of the target pollution event based on the pollution cause of the historical pollution event in the class to which the data to be identified belongs.

[0083] Optionally, in one embodiment, the monitoring data includes air quality index monitoring parameters, ground meteorological monitoring parameters and / or sounding meteorological monitoring parameters.

[0084] Optionally, in one embodiment, the first acquisition module 201 includes: a first acquisition unit, an identification unit, a first determination unit, and a second acquisition unit. The first acquisition unit is used to acquire historical monitoring data of the target area; the identification unit is used to identify historical pollution events according to air quality standards and historical monitoring data of the target area, and determine the start time and end time of the historical pollution events; the first determination unit is used to determine the pollution development time period within the pollution time period defined by the start time and the end time; the second acquisition unit is used to acquire the monitoring data of the target area within the pollution development time period, and obtain the monitoring data corresponding to the historical pollution events.

[0085] Optionally, in one embodiment, the first acquisition module 201 further includes: a third acquisition unit, a judgment unit, and a first processing unit. The third acquisition unit is used to acquire historical monitoring data of the surrounding area within a predetermined geographical range of the target area; the judgment unit is used to judge whether there is a pollution event in the surrounding area during the pollution time period according to the air quality standard and the historical monitoring data of the surrounding area; the first processing unit is used to determine whether there is a pollution event in the surrounding area during the pollution time period, and the monitoring data corresponding to the historical pollution event includes a first preset vector; if there is no pollution event in the surrounding area during the pollution time period, the monitoring data corresponding to the historical pollution event includes a second preset vector.

[0086] Optionally, in one embodiment, the first processing module 202 includes: a construction unit, a second processing unit, a third processing unit, and a second determination unit. The construction unit is used to construct an m*n monitoring vector matrix according to an n-dimensional monitoring vector, wherein m is the number of elements in the monitoring vector, and the monitoring times corresponding to the elements of the monitoring vector are different; the second processing unit is used to perform standardization processing on the monitoring vector matrix to obtain a standard monitoring vector matrix; the third processing unit is used to perform principal component analysis on the standard monitoring vector matrix to obtain an n*l principal component matrix, wherein l is less than n; and the second determination unit is used to determine characteristic indicators according to the principal component matrix.

[0087] Optionally, in one embodiment, when the third processing unit performs principal component analysis on the standard monitoring vector matrix to obtain an n*l principal component matrix, it specifically performs the following steps: calculate the covariance matrix of the standard monitoring vector matrix, wherein the covariance matrix is ​​an n*n matrix; perform eigenvalue decomposition on the covariance matrix to obtain n eigenvalues ​​and n eigenvectors corresponding to the eigenvalues ​​one by one, wherein each eigenvector includes n elements, and each element of the eigenvector corresponds to a monitoring vector; among the n eigenvectors, extract l eigenvectors with larger corresponding eigenvalues, and use them as column vectors of the principal component matrix respectively.

[0088] Optionally, in one embodiment, when the second determination unit determines the characteristic index based on the principal component matrix, it specifically performs the following steps: for each column vector in the principal component matrix, p monitoring vectors are extracted from n monitoring vectors according to the size of the elements in the column vector, and an indicator tuple is constructed; the intersection of the indicator tuples corresponding to the column vectors in the principal component matrix is ​​calculated to obtain the characteristic index.

[0089] Optionally, in one embodiment, when the second processing unit performs standardization processing on the monitoring vector matrix to obtain a standard monitoring vector matrix, the specific steps performed include: for each element x of the monitoring vector matrix i , calculate the arithmetic mean x' and standard deviation s; use the following formula for standardization: i =(x i -x') / s, where z i The elements in the matrix are the standard monitoring vectors.

[0090] Embodiment 3

[0091] This third embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. Figure 3 As shown, the computer device 01 of this embodiment includes at least but is not limited to: a memory 011 and a processor 012 which can be interconnected via a system bus. Figure 3 It should be pointed out that Figure 3 Only a computer device 01 having components memory 011 and processor 012 is shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0092] In this embodiment, the memory 011 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 011 can be an internal storage unit of the computer device 01, such as a hard disk or memory of the computer device 01. In other embodiments, the memory 011 can also be an external storage device of the computer device 01, such as a plug-in hard disk equipped on the computer device 01, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 011 can also include both the internal storage unit of the computer device 01 and its external storage device. In this embodiment, the memory 011 is generally used to store the operating system and various application software installed on the computer device 01, such as the program code of the analysis device of the cause of pollution in Example 2. In addition, the memory 011 can also be used to temporarily store various types of data that have been output or are to be output.

[0093] In some embodiments, the processor 012 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 012 is generally used to control the overall operation of the computer device 01. In this embodiment, the processor 012 is used to run the program code stored in the memory 011 or process data, such as the analysis method of the cause of pollution.

[0094] Embodiment 4

[0095] The fourth embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and the program realizes the corresponding function when executed by the processor. The computer-readable storage medium of this embodiment is used to store an analysis device for the cause of pollution, and the computer-readable storage medium realizes the analysis method for the cause of pollution of the first embodiment when executed by the processor.

[0096] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0097] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0098] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0099] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0100] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0102] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for analyzing the causes of pollution, characterized in that: include: Acquire monitoring data corresponding to historical pollution events, wherein the monitoring data includes a multi-dimensional monitoring vector, and the monitoring vector includes air quality index monitoring parameters, ground meteorological monitoring parameters and / or sounding meteorological monitoring parameters; Selecting at least one dimensional monitoring vector from the multi-dimensional monitoring vector as a characteristic indicator; Constructing sample data according to the characteristic indicators of the historical pollution events, wherein for each of the historical pollution events, its characteristic indicators can be determined and extracted, each of the historical pollution events is used as a sample, and the sample data is constructed using its characteristic indicators, and multiple historical pollution events are used as samples, and the sample data of multiple historical pollution events form a sample library; Performing cluster analysis on the sample data in the sample library to obtain a clustering function and a plurality of classes; Obtaining the characteristic indicators of the target pollution event; Constructing the data to be identified according to the characteristic indicators of the target pollution event; Inputting the data to be identified into the clustering function to determine the class to which the data to be identified belongs, wherein the pollution causes of the historical pollution events of the same type as the target pollution event are associated with the type of the historical pollution events and stored; Determine the pollution cause of the target pollution event according to the pollution cause of the historical pollution event in the class to which the data to be identified belongs, The steps to obtain monitoring data corresponding to historical pollution events include: Obtain historical monitoring data for the target area; Identify historical pollution events based on air quality standards and historical monitoring data of the target area, and determine the start and end times of the historical pollution events; Determine the pollution development time period within the pollution time period defined by the start time and the end time; Acquire monitoring data of the target area during the pollution development period, and obtain monitoring data corresponding to the historical pollution event; Acquire historical monitoring data of surrounding areas within a predetermined geographical range of the target area; Determining whether there is a pollution event in the surrounding area during the pollution time period according to the air quality standard and the historical monitoring data of the surrounding area; and If there is a pollution event in the surrounding area during the pollution time period, the monitoring data corresponding to the historical pollution event includes a first preset vector; if there is no pollution event in the surrounding area during the pollution time period, the monitoring data corresponding to the historical pollution event includes a second preset vector.

2. The method for analyzing the cause of pollution according to claim 1, characterized in that: The step of selecting at least one dimensional monitoring vector from the multi-dimensional monitoring vector as a characteristic indicator comprises: Constructing an m*n monitoring vector matrix according to the n-dimensional monitoring vector, wherein m is the number of elements in the monitoring vector, and the elements of the monitoring vector correspond to different monitoring times; Standardizing the monitoring vector matrix to obtain a standard monitoring vector matrix; Performing principal component analysis on the standard monitoring vector matrix to obtain an n*l principal component matrix, where l is less than n; Determine the characteristic index according to the principal component matrix, Among them, the step of performing principal component analysis on the standard monitoring vector matrix to obtain an n*l principal component matrix includes: calculating the covariance matrix of the standard monitoring vector matrix, wherein the covariance matrix is ​​an n*n matrix; performing eigenvalue decomposition on the covariance matrix to obtain n eigenvalues ​​and n eigenvectors corresponding to the eigenvalues ​​one by one, wherein each of the eigenvectors includes n elements, and each element of the eigenvector corresponds to one of the monitoring vectors; among the n eigenvectors, extracting l eigenvectors with larger corresponding eigenvalues, respectively as column vectors of the principal component matrix, The step of determining the characteristic index according to the principal component matrix includes: for each column vector in the principal component matrix, according to the size of the elements in the column vector, extracting p monitoring vectors from n monitoring vectors to construct an indicator tuple; calculating the intersection of the indicator tuples corresponding to the column vectors in the principal component matrix to obtain the characteristic index.

3. The method for analyzing the cause of pollution according to claim 2, characterized in that: The step of normalizing the monitoring vector matrix to obtain a standard monitoring vector matrix includes: For each element x of the monitoring vector matrix i , calculate the arithmetic mean x' and standard deviation s; The following formula is used for standardization calculation: z i =(x i -x’) / s, Among them, z i The elements in the matrix are the standard monitoring vectors.

4. A pollution cause analysis device, characterized in that: include: A first acquisition module is used to acquire monitoring data corresponding to historical pollution events, wherein the monitoring data includes a multi-dimensional monitoring vector, and the monitoring vector includes air quality index monitoring parameters, ground meteorological monitoring parameters and / or sounding meteorological monitoring parameters; A first processing module, configured to select at least one-dimensional monitoring vector from the multi-dimensional monitoring vector as a characteristic indicator; A second processing module is used to construct sample data according to the characteristic indicators of the historical pollution events, wherein for each of the historical pollution events, its characteristic indicators can be determined and extracted, each of the historical pollution events is used as a sample, and the sample data is constructed using its characteristic indicators, and multiple historical pollution events are used as samples, and the sample data of multiple historical pollution events form a sample library; A clustering module, used for performing clustering analysis on the sample data in the sample library to obtain a clustering function and multiple classes; A second acquisition module, used to acquire the characteristic index of the target pollution event; A third processing module is used to construct the data to be identified according to the characteristic indicators of the target pollution event; A fourth processing module, for inputting the data to be identified into the clustering function to determine the class to which the data to be identified belongs, wherein the pollution causes of the historical pollution events of the same type as the target pollution event are associated with the type of the historical pollution events and stored; a determination module, configured to determine the pollution cause of the target pollution event according to the pollution causes of the historical pollution events in the class to which the data to be identified belongs, The first acquisition module includes: a first acquisition unit, an identification unit, a first determination unit, a second acquisition unit, a third acquisition unit, a judgment unit and a first processing unit. The first acquisition unit is used to acquire historical monitoring data of the target area; The identification unit is used to identify historical pollution events according to air quality standards and historical monitoring data of the target area, and determine the start time and end time of the historical pollution events; The first determination unit is used to determine the pollution development time period within the pollution time period defined by the start time and the end time; The second acquisition unit is used to acquire the monitoring data of the target area during the pollution development period to obtain the monitoring data corresponding to the historical pollution event; The third acquisition unit is used to acquire historical monitoring data of the surrounding areas within a predetermined geographical range of the target area; The judging unit is used to judge whether there is a pollution event in the surrounding area during the pollution time period according to the air quality standard and the historical monitoring data of the surrounding area; and The first processing unit is used to, if there is a pollution event in the surrounding area during the pollution time period, the monitoring data corresponding to the historical pollution event includes a first preset vector; if there is no pollution event in the surrounding area during the pollution time period, the monitoring data corresponding to the historical pollution event includes a second preset vector.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium, comprising a data storage area and a program storage area, wherein the data storage area stores data created according to the use of a blockchain node, and the program storage area stores a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.