A method for analyzing fake data in online monitoring data of pollution sources

Through deep learning models and multi-level information exploration algorithms, we build a fraud data analysis model for pollution source online monitoring data, identify and analyze fraud behaviors, solve the problem of fraud in pollution source online monitoring data, and improve the accuracy and effectiveness of environmental supervision. .

CN118468200BActive Publication Date: 2024-10-08CHENGDU ZHONGHUAN KECHUANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410926501.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-08
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

There is fraud in the online monitoring data of pollution sources, which affects the accuracy and effectiveness of environmental supervision.

Method used

A deep learning model is used to build a fake data analysis model. Historical pollution source monitoring data is collected from designated data sources for preprocessing and feature extraction. The fake data analysis model is trained with a multi-level information exploration algorithm to identify fake behaviors in the data to be analyzed.

Benefits of technology

Effectively identify and analyze outliers and fraud in online monitoring data of pollution sources to improve the accuracy and effectiveness of environmental supervision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118468200B_ABST
    Figure CN118468200B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for analyzing fraudulent data in online monitoring data of pollution sources, belonging to the technical field of data analysis. The method collects historical pollution source monitoring data from a designated data source, and learns the data relationship between the historical pollution source monitoring data and fraudulent behavior through a deep learning algorithm, thereby forming a rule for analyzing fraudulent data. Finally, the online monitoring data of pollution sources to be analyzed is identified through the rule for analyzing fraudulent data, and the fraudulent data analysis result can be obtained. The method can effectively identify and analyze abnormal values ​​and fraudulent behavior in the online monitoring data of pollution sources, thereby improving the accuracy and effectiveness of environmental supervision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data analysis, and in particular relates to a method for analyzing false data in online monitoring data of pollution sources. Background Art

[0002] Pollution sources refer to places, facilities, activities or phenomena that produce pollutants. They can release pollutants into the environment through different pathways, thus causing negative impacts on air, water, soil and ecosystems. In the process of industrial production, many factories and enterprises will emit a large amount of waste gas, wastewater and solid waste. These emissions may contain a variety of harmful substances, such as heavy metals, organic solvents, acids and alkalis, which cause serious pollution to the environment. With the increasing severity of environmental pollution problems, governments of various countries are increasingly stringent in regulating pollution sources. As an effective means of supervision, the online monitoring system of pollution sources can monitor the emissions of pollution sources in real time and provide a scientific basis for government decision-making. However, due to various reasons, there may be outliers and falsification in the online monitoring data of pollution sources, which seriously affects the accuracy and effectiveness of environmental supervision. Therefore, it is of great significance to study a method that can effectively identify and analyze outliers and falsification in the online monitoring data of pollution sources. Summary of the invention

[0003] The present invention provides a method for analyzing falsified data in online monitoring data of pollution sources, so as to solve the problem of falsification in online monitoring data of pollution sources in the prior art.

[0004] A method for analyzing fake data in online monitoring data of pollution sources, comprising:

[0005] Collecting historical pollution source monitoring data from a designated data source, and preprocessing the historical pollution source monitoring data to obtain sample data for training an algorithm model;

[0006] A deep learning model is used to construct a fraudulent data analysis model, and based on the sample data, a multi-level information exploration algorithm is used to train the fraudulent data analysis model to obtain a trained fraudulent data analysis model;

[0007] After collecting the online monitoring data of the pollution source to be analyzed and extracting the features of the online monitoring data of the pollution source, the extracted features are input into the trained fraud data analysis model for identification to obtain the fraud data analysis results.

[0008] In a possible implementation, historical pollution source monitoring data is collected from a designated data source, and after preprocessing the historical pollution source monitoring data, sample data for training an algorithm model is obtained, including:

[0009] Collect historical pollution source monitoring data from designated data sources;

[0010] Performing data integrity check, time series analysis and data smoothing processing on the historical pollution source monitoring data in turn to obtain complete historical pollution source monitoring data;

[0011] For the complete historical pollution source monitoring data, obtain the enterprise data portrait input by the staff through human-computer interaction based on historical fraud events; wherein the enterprise data portrait includes normal data types and multiple types of abnormal data types;

[0012] The complete historical pollution source monitoring data is used as training data, and the enterprise data portraits corresponding to the complete historical pollution source monitoring data are used as training labels to obtain sample data for training the algorithm model.

[0013] In a possible implementation, the historical pollution source monitoring data includes at least time characteristics, meteorological condition characteristics, pollutant concentration characteristics, and emission source characteristic characteristics;

[0014] Wherein, the time characteristics include hours, days, months and years;

[0015] The meteorological condition characteristics include temperature, humidity, wind speed, wind direction and atmospheric pressure;

[0016] The pollutant concentration characteristics include SO2 concentration, NO x concentration, PM2.5 concentration and PM10 concentration; x represents a numeric subscript, and x =1, 2, and 3;

[0017] The emission source characteristics include emission source type, emission source scale, production capacity and operating hours of the emission source.

[0018] In a possible implementation, the historical pollution source monitoring data is sequentially subjected to data integrity check, time series analysis, and data smoothing processing to obtain complete historical pollution source monitoring data, including:

[0019] Check whether there are missing values ​​in the historical pollution source monitoring data. If so, use the mean of the data before and after the missing value to complete them one by one to obtain the historical pollution source monitoring data after the integrity check. Otherwise, directly use the original historical pollution source monitoring data as the historical pollution source monitoring data after the integrity check;

[0020] For the historical pollution source monitoring data after the integrity check, determine whether there is any missing historical pollution source monitoring data in the time series. If so, use the mean of the historical pollution source monitoring data before and after the missing historical pollution source monitoring data to complete them one by one, and obtain the historical pollution source monitoring data after the time series analysis. Otherwise, directly place the original historical pollution source monitoring data in the historical pollution source monitoring data after the time series analysis.

[0021] The time series refers to the data obtained by treating the historical pollution source monitoring data collected at a certain time point as one frame of data and connecting multiple frames of data at multiple consecutive time points;

[0022] For the historical pollution source monitoring data after the integrity check, data smoothing is performed on the historical pollution source monitoring data to obtain complete historical pollution source monitoring data.

[0023] In a possible implementation, a deep learning model is used to construct a fraudulent data analysis model, including: using a convolutional neural network to construct a fraudulent data analysis model.

[0024] In a possible implementation, based on the sample data, a multi-level information exploration algorithm is used to train a fraudulent data analysis model to obtain a trained fraudulent data analysis model, including:

[0025] The chaotic sequence initialization strategy is used to initialize the hyperparameters of the fake data analysis model to obtain multiple hyperparameter individuals that are evenly distributed in the hyperparameter solution space.

[0026] For each hyperparameter individual, after applying the hyperparameter individual to the fraudulent data analysis model, the error function value output by the fraudulent data analysis model is obtained according to the sample data, and the error function value is converted into a fitness value to obtain the fitness value corresponding to the hyperparameter individual;

[0027] Determine the optimal hyperparameter individual according to the fitness value corresponding to the hyperparameter individual;

[0028] Based on the fitness value corresponding to each hyperparameter individual, the neighborhood information exploration strategy is performed on the hyperparameter individual to obtain the hyperparameter individual after the first-level information exploration;

[0029] For the hyperparameter individuals after the first-level information exploration, a global optimal position information exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the second-level information exploration;

[0030] For the hyperparameter individuals after the secondary information exploration, a population information interaction exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the tertiary information exploration;

[0031] For the hyperparameter individuals after the third-level information exploration, the information jump exploration strategy is performed on the hyperparameter individuals to obtain the hyperparameter individuals after the fourth-level information exploration;

[0032] Determine whether the iteration end condition is met. If so, re-obtain the optimal hyperparameter individual based on the hyperparameter individual after the four-level information exploration, and use the re-obtained optimal hyperparameter individual as the final hyperparameter of the fraudulent data analysis model to obtain the fraudulent data analysis model after training. Otherwise, return to the step of determining the fitness value corresponding to the hyperparameter individual.

[0033] In a possible implementation, for each hyperparameter individual, after applying the hyperparameter individual to the fraudulent data analysis model, an error function value output by the fraudulent data analysis model is obtained according to the sample data, and the error function value is converted into a fitness value to obtain the fitness value corresponding to the hyperparameter individual, including:

[0034] For each hyperparameter individual, after applying the hyperparameter individual to the fraudulent data analysis model, a root mean square error function is used to obtain an error function value output by the fraudulent data analysis model according to the sample data;

[0035] The error function value output by the fake data analysis model is compared with the preset constant term After adding, take the reciprocal to get the fitness value corresponding to the hyperparameter individual;

[0036] Among them, the preset constant term Set to 0.0001.

[0037] In a possible implementation, based on the fitness value corresponding to each hyperparameter individual, a neighborhood information exploration strategy is performed on the hyperparameter individual to obtain the hyperparameter individual after the first-level information exploration, including:

[0038] Based on the fitness value corresponding to each hyperparameter individual, the exploration step length of the hyperparameter individual is determined as:

[0039]

[0040]

[0041] in, Indicates t During the training i The exploration step length corresponding to each hyperparameter individual is Indicates t +1 training session i The exploration step size corresponding to each hyperparameter individual; i =1,2,…,N , N Represents the total number of hyperparameter individuals; represents the attenuation coefficient, and >1; represents the intermediate parameter, Indicates i The fitness value corresponding to each hyperparameter individual, Indicates the maximum fitness value in the current training process, Indicates the minimum fitness value in the current training process, Represents a preset constant term;

[0042] According to the exploration step of the hyperparameter individual, the neighborhood information exploration is performed on the hyperparameter individual as follows:

[0043]

[0044] in, Indicates t During the training i The first hyperparameter individual d dimensional hyperparameters, d =1,2,…, D , D represents the total number of dimensions in the hyperparameter individual, Represents the hyperparameter individual after the first level of information exploration No. d dimensional hyperparameters, Represents a random number between (-1,1), Indicates d The length of the dimensional hyperparameter, i.e. d The upper bound minus the lower bound on the dimensional hyperparameter.

[0045] In a possible implementation, for the hyperparameter individuals after the primary information exploration, a global optimal position information exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the secondary information exploration, including:

[0046] For the hyperparameter individuals after the first-level information exploration, the weighted number is determined according to the optimal hyperparameter individual:

[0047]

[0048] in, Represents the weight coefficient between (0,1), Indicates t During the training i The first hyperparameter individual after the first level of information exploration d dimensional hyperparameters, represents the optimal hyperparameter individual d dimensional hyperparameters, represents the weighted number;

[0049] For the hyperparameter individuals after the first-level information exploration, the mean number is determined according to the optimal hyperparameter individuals:

[0050]

[0051] in, represents the mean number;

[0052] According to the weighted number and the mean number, the global optimal position information exploration for the hyperparameter individual is determined as follows:

[0053]

[0054] in, It means the mean And the variance is Gaussian distribution, Represents the hyperparameter individual after secondary information exploration No. d Dimensional hyperparameters; j =1,2,…, N , N Represents the total number of hyperparameter individuals.

[0055] In a possible implementation, for the hyperparameter individuals after the secondary information exploration, a population information interaction exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the tertiary information exploration, including:

[0056] For the m After secondary information exploration, the hyperparameter individual Randomly determine two other hyperparameter individuals and get the first random individual and a second random individual ;

[0057] According to the optimal hyperparameter individual, the first random individual and the second random individual, the update amount is determined as:

[0058]

[0059] in, represents the first random individual d dimensional hyperparameters, Represents the first random individual No. d dimensional hyperparameters, Represents the second random individual No. ddimensional hyperparameters, represents the optimal hyperparameter individual d dimensional hyperparameters, Indicates t +1 training session m The exploration step length corresponding to each hyperparameter individual is Represents the hyperparameter individual No. d The update amount corresponding to the dimension hyperparameter;

[0060] According to the update amount, the population information interaction exploration is performed on the hyperparameter individuals as follows:

[0061]

[0062] in, Represents the hyperparameter individual No. d dimensional hyperparameters, It represents a random number generated by a standard Gaussian distribution with a mean of 0 and a variance of 1. Represents the hyperparameter individual after three-level information exploration No. d dimensional hyperparameters, represents the exploration coefficient, Indicates d dimensional hyperparameter length, m =1,2,…, N , N Represents the total number of hyperparameter individuals.

[0063] In a possible implementation, for the hyperparameter individuals after the third-level information exploration, an information jump exploration strategy is performed on the hyperparameter individuals to obtain the hyperparameter individuals after the fourth-level information exploration, including:

[0064]

[0065]

[0066]

[0067] in, Indicates t During the training m The first hyperparameter individual after the third level information exploration d Dimension parameters, Represents the hyperparameter individual after four-level information exploration No. d Dimension parameters, represents the second intermediate parameter, represents a constant term, and =0.012, represents the optimal hyperparameter individual d Dimension parameters, represents the third intermediate parameter, Represents a random number between (0,1), represents the first control factor, and Satisfies normal distribution , represents the fourth intermediate parameter, , represents the gamma function, represents pi, v represents the second control factor, and v Satisfies normal distribution .

[0068] The present invention provides a method for analyzing fraudulent data in online monitoring data of pollution sources. The method collects historical pollution source monitoring data from a designated data source, and uses a deep learning algorithm to learn the data relationship between the historical pollution source monitoring data and fraudulent behavior, thereby forming rules for analyzing fraudulent data. Finally, the online monitoring data of pollution sources to be analyzed is identified through the rules for analyzing fraudulent data, and the fraudulent data analysis results can be obtained. The method can effectively identify and analyze abnormal values ​​and fraudulent behavior in the online monitoring data of pollution sources, thereby improving the accuracy and effectiveness of environmental supervision. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0070] Figure 1 A flowchart of a method for analyzing false data in online monitoring data of pollution sources provided by an embodiment of the present invention.

[0071] Figure 2 A flow chart of obtaining sample data provided by an embodiment of the present invention.

[0072] Figure 3 A flowchart of using a multi-level information exploration algorithm to train a fraud data analysis model is provided in an embodiment of the present invention.

[0073] The above drawings have shown clear embodiments of the present invention, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0074] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0075] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0076] like Figure 1 As shown, an embodiment of the present invention provides a method for analyzing fake data in online monitoring data of pollution sources, comprising:

[0077] S101, collecting historical pollution source monitoring data from a designated data source, and preprocessing the historical pollution source monitoring data to obtain sample data for training an algorithm model;

[0078] If there is falsification of online monitoring data of pollution sources at historical moments and it is discovered, it can be used as historical pollution source monitoring data, and the abnormal data type corresponding to the falsified data can be used as the enterprise data portrait, so that data relationship learning can be carried out in the subsequent process. At the same time, in order to ensure the distinction between normal data and abnormal data, it is also necessary to obtain normal historical pollution source monitoring data.

[0079] Optionally, the subsequent preprocessing of the historical pollution source monitoring data may include: normalizing the historical pollution source monitoring data to reduce the complexity of data processing.

[0080] S102, using a deep learning model to build a fraud data analysis model, and based on the sample data, using a multi-level information exploration algorithm to train the fraud data analysis model to obtain a trained fraud data analysis model;

[0081] The historical pollution source monitoring data collected at a single time point is difficult to reflect the correlation between data. Therefore, the embodiment of the present invention mainly uses time series as supporting data. In order to realize the recognition of supporting data composed of multiple data, the embodiment of the present invention can use a convolutional neural network to construct a fraud data analysis model. After the fraud data analysis model is constructed, it cannot be used directly, so it is necessary to train the fraud data analysis model. In the prior art, the gradient descent method is often used to train the deep learning model, which usually leads to slow convergence speed and poor convergence effect. Eventually, the search for multi-dimensional data falls into the local optimum. If the prior art is used to train the fraud data analysis model, the final cost data analysis will be inaccurate, resulting in misidentification or missed identification. Therefore, the embodiment of the present invention uses a multi-level information exploration algorithm to train the fraud data analysis model to improve the fraud data analysis model's learning ability for data relationships, and ultimately improve the accuracy of the cost data analysis results.

[0082] S103, collecting the online monitoring data of the pollution source to be analyzed, and extracting the features of the online monitoring data of the pollution source, and then inputting the extracted features into the trained fraud data analysis model for identification, so as to obtain the fraud data analysis results.

[0083] In order to ensure accurate identification of data, the data type and format of the online monitoring data of the pollution source to be analyzed should be the same as those of the historical pollution source monitoring data. Then, the data to be analyzed is analyzed by a fake data analysis model with recognition capability, so as to realize the identification of cost data.

[0084] A method for analyzing fraudulent data in online monitoring data of pollution sources provided by an embodiment of the present invention can effectively analyze the association between various data in the online monitoring data of pollution sources and the temporal association of the same data, thereby analyzing fraudulent online monitoring data of pollution sources.

[0085] like Figure 2 As shown, historical pollution source monitoring data is collected from a designated data source, and after preprocessing the historical pollution source monitoring data, sample data for training the algorithm model is obtained, including:

[0086] S201. Collect historical pollution source monitoring data from a designated data source; for example, access a designated database through an API interface to obtain historical pollution source monitoring data stored by staff in the historical database.

[0087] S202, performing data integrity check, time series analysis, and data smoothing processing on the historical pollution source monitoring data in sequence to obtain complete historical pollution source monitoring data;

[0088] Generally speaking, the pollution source monitoring data after being stored in the database are complete data. Therefore, the above-mentioned data integrity check, time series analysis and data smoothing processing can be omitted. Only normalization of the data can obtain complete historical pollution source monitoring data.

[0089] S203. For the complete historical pollution source monitoring data, obtain the enterprise data portrait input by the staff through human-computer interaction based on the historical fraud incidents; wherein the enterprise data portrait includes normal data types and multiple types of abnormal data types;

[0090] Enterprise data profiling is essentially a kind of data classification label. It annotates historical pollution source monitoring data through real historical events, and then learns the correlation between data and labels, so as to realize data analysis.

[0091] S204: Use the complete historical pollution source monitoring data as training data, and use the enterprise data portraits corresponding to the complete historical pollution source monitoring data as training labels to obtain sample data for training the algorithm model.

[0092] In a possible implementation, the historical pollution source monitoring data includes at least time characteristics, meteorological condition characteristics, pollutant concentration characteristics, and emission source characteristic characteristics;

[0093] Wherein, the time characteristics include hours, days, months and years;

[0094] The meteorological condition characteristics include temperature, humidity, wind speed, wind direction and atmospheric pressure;

[0095] The pollutant concentration characteristics include SO2 concentration, NO x concentration, PM2.5 concentration and PM10 concentration; x represents a numeric subscript, and x =1, 2, and 3;

[0096] The emission source characteristics include emission source type, emission source scale, production capacity and operating hours of the emission source.

[0097] It is worth noting that the above-mentioned time characteristics, meteorological condition characteristics, pollutant concentration characteristics and emission source characteristic characteristics are merely preferred implementation methods of the embodiments of the present invention. Other characteristics may also be used as historical pollution source monitoring data, or the number of characteristics may be reduced, such as reducing one or more of the time characteristics, meteorological condition characteristics and emission source characteristic characteristics.

[0098] Optionally, some data in the historical pollution source monitoring data may not be numerical values. Therefore, the non-numerical data may be converted into numbers and then normalized to ensure that the fraudulent data analysis model can identify the data.

[0099] In a possible implementation, the historical pollution source monitoring data is sequentially subjected to data integrity check, time series analysis, and data smoothing processing to obtain complete historical pollution source monitoring data, including:

[0100] Check whether there are missing values ​​in the historical pollution source monitoring data. If so, use the mean of the data before and after the missing value to complete them one by one to obtain the historical pollution source monitoring data after the integrity check. Otherwise, directly use the original historical pollution source monitoring data as the historical pollution source monitoring data after the integrity check;

[0101] For the historical pollution source monitoring data after the integrity check, determine whether there is any missing historical pollution source monitoring data in the time series. If so, use the mean of the historical pollution source monitoring data before and after the missing historical pollution source monitoring data to complete them one by one, and obtain the historical pollution source monitoring data after the time series analysis. Otherwise, directly place the original historical pollution source monitoring data in the historical pollution source monitoring data after the time series analysis.

[0102] The time series refers to the data obtained by treating the historical pollution source monitoring data collected at a certain time point as one frame of data and connecting multiple frames of data at multiple consecutive time points;

[0103] For the historical pollution source monitoring data after the integrity check, data smoothing is performed on the historical pollution source monitoring data to obtain complete historical pollution source monitoring data.

[0104] In a possible implementation, a deep learning model is used to construct a fraudulent data analysis model, including: using a convolutional neural network to construct a fraudulent data analysis model. In addition to using a convolutional neural network, other neural network models can also be used to construct a fraudulent data analysis model.

[0105] In order for those skilled in the art to understand the technical solution described in the embodiment of the present invention, the input data of the fraudulent data analysis model constructed using historical pollution source monitoring data is explained, which may include: taking a single historical pollution source monitoring data as the basis, first constructing a vector, and then based on the time series length M determined by the staff, determining M historical pollution source monitoring data from the first M-1 to the last M-1 data of the fraudulent data determined in the historical event, thereby obtaining the vectors corresponding to the M historical pollution source monitoring data, and forming the M vectors into a data matrix with M rows to obtain the input data of the fraudulent data analysis model. It is worth noting that when the online monitoring data of the pollution source to be analyzed is subsequently collected, it is also necessary to form a data matrix to achieve data identification.

[0106] Optionally, since the data may have different lengths, zero padding can be added to the front of the same data to make the length of each data the same, without affecting the data value, and finally obtaining a regular data matrix. For example: the wind speed values ​​are 3 and 10 (the unit is the default unit, all wind speeds are the same unit, so only the data value can be recorded), then zero padding can be 03 to ensure the same data length.

[0107] like Figure 3 As shown, based on the sample data, a multi-level information exploration algorithm is used to train the fraud data analysis model to obtain a trained fraud data analysis model, including:

[0108] S301, using a chaotic sequence initialization strategy to initialize the hyperparameters (such as weights) of the fraudulent data analysis model to obtain multiple hyperparameter individuals that are uniformly distributed in the hyperparameter solution space;

[0109] Optionally, although the chaotic sequence initialization strategy can generate multiple initial solutions with more uniform distribution, other initialization methods can also be used, for example, a random initialization method can be used to initialize the hyperparameters.

[0110] S302: for each hyperparameter individual, after applying the hyperparameter individual to the fraudulent data analysis model, obtain the error function value output by the fraudulent data analysis model according to the sample data, and convert the error function value into a fitness value to obtain the fitness value corresponding to the hyperparameter individual;

[0111] S303, determining the optimal hyperparameter individual according to the fitness value corresponding to the hyperparameter individual;

[0112] S304, based on the fitness value corresponding to each hyperparameter individual, executing a neighborhood information exploration strategy on the hyperparameter individual to obtain the hyperparameter individual after the first-level information exploration;

[0113] S305, for the hyperparameter individuals after the primary information exploration, executing the global optimal position information exploration strategy on the hyperparameter individuals according to the optimal hyperparameter individuals, to obtain the hyperparameter individuals after the secondary information exploration;

[0114] S306, for the hyperparameter individuals after the secondary information exploration, executing the population information interaction exploration strategy on the hyperparameter individuals according to the optimal hyperparameter individuals, to obtain the hyperparameter individuals after the tertiary information exploration;

[0115] S307, for the hyperparameter individuals after the third-level information exploration, perform the information jump exploration strategy on the hyperparameter individuals to obtain the hyperparameter individuals after the fourth-level information exploration;

[0116] S308. Determine whether the iteration end condition is met. If so, re-obtain the optimal hyperparameter individual based on the hyperparameter individual after the four-level information exploration, and use the re-obtained optimal hyperparameter individual as the final hyperparameter of the fraudulent data analysis model to obtain the fraudulent data analysis model after training. Otherwise, return to the step of determining the fitness value corresponding to the hyperparameter individual.

[0117] In a possible implementation, for each hyperparameter individual, after applying the hyperparameter individual to the fraudulent data analysis model, an error function value output by the fraudulent data analysis model is obtained according to the sample data, and the error function value is converted into a fitness value to obtain the fitness value corresponding to the hyperparameter individual, including:

[0118] For each hyperparameter individual, after applying the hyperparameter individual to the fraudulent data analysis model, the root mean square error function is used to obtain the error function value output by the fraudulent data analysis model according to the sample data; wherein, the smaller the error function value, the better.

[0119] The error function value output by the fake data analysis model is compared with the preset constant term After adding, take the reciprocal to get the fitness value corresponding to the hyperparameter individual;

[0120] Among them, the preset constant term Set to 0.0001.

[0121] It is worth noting that, in addition to the root mean square error function described in the embodiment of the present invention, other error functions may also be used to obtain the error function value.

[0122] In a possible implementation, based on the fitness value corresponding to each hyperparameter individual, a neighborhood information exploration strategy is performed on the hyperparameter individual to obtain the hyperparameter individual after the first-level information exploration, including:

[0123] Based on the fitness value corresponding to each hyperparameter individual, the exploration step length of the hyperparameter individual is determined as:

[0124]

[0125]

[0126] in, Indicates t During the training i The exploration step length corresponding to each hyperparameter individual is Indicates t +1 training session i The exploration step size corresponding to each hyperparameter individual; i =1,2,…, N , N Represents the total number of hyperparameter individuals; represents the attenuation coefficient, and >1; represents the intermediate parameter, Indicates i The fitness value corresponding to each hyperparameter individual, Indicates the maximum fitness value in the current training process, Indicates the minimum fitness value in the current training process, Represents a preset constant term;

[0127] The exploration step size of the hyperparameter individuals provided in the embodiment of the present invention makes the exploration range corresponding to the hyperparameter individuals with high fitness values ​​smaller, so that they can perform more local exploration, while the exploration range of the hyperparameter individuals with low fitness values ​​is reduced, so that they can perform more global exploration, thereby improving the algorithm performance.

[0128] According to the exploration step of the hyperparameter individual, the neighborhood information exploration is performed on the hyperparameter individual as follows:

[0129]

[0130] in, Indicates t During the training i The first hyperparameter individual d dimensional hyperparameters, d =1,2,…, D , D represents the total number of dimensions in the hyperparameter individual, Represents the hyperparameter individual after the first level of information exploration No. d dimensional hyperparameters, Represents a random number between (-1,1), Indicatesd The length of the dimensional hyperparameter, i.e. d The upper bound minus the lower bound on the dimensional hyperparameter.

[0131] By performing neighborhood information exploration on hyperparameter individuals, hyperparameter individuals can explore within their neighborhoods according to their fitness values, effectively exploring better locations within the neighborhood, and spatially balancing global and local exploration.

[0132] In a possible implementation, for the hyperparameter individuals after the primary information exploration, a global optimal position information exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the secondary information exploration, including:

[0133] For the hyperparameter individuals after the first-level information exploration, the weighted number is determined according to the optimal hyperparameter individual:

[0134]

[0135] in, Represents the weight coefficient between (0,1), Indicates t During the training i The first hyperparameter individual after the first level of information exploration d dimensional hyperparameters, represents the optimal hyperparameter individual d dimensional hyperparameters, represents the weighted number;

[0136] For the hyperparameter individuals after the first-level information exploration, the mean number is determined according to the optimal hyperparameter individuals:

[0137]

[0138] in, represents the mean number;

[0139] According to the weighted number and the mean number, the global optimal position information exploration for the hyperparameter individual is determined as follows:

[0140]

[0141] in, It means the mean And the variance is Gaussian distribution, Represents the hyperparameter individual after secondary information exploration No. d Dimensional hyperparameters; j =1,2,…, N , NRepresents the total number of hyperparameter individuals.

[0142] According to the characteristics of Gaussian distribution, the probability that the optimal position is near the mean of Gaussian distribution is relatively high, that is, In the early stage of the algorithm, the mean of the Gaussian distribution is closer to the hyperparameter individual ; In the later stage of the algorithm, the mean is closer to the optimal hyperparameter individual This update strategy makes the neighborhood exploration range in the early stage of the algorithm relatively larger, and can do more global exploration; the neighborhood exploration range in the later stage of the algorithm is relatively smaller, and can do more local exploration, balancing the global exploration and local exploration in terms of time.

[0143] Therefore, the embodiment of the present invention controls the neighborhood exploration in space and time, and comprehensively balances the local exploration and the global exploration, thereby improving the convergence speed and convergence accuracy of the algorithm.

[0144] In a possible implementation, for the hyperparameter individuals after the secondary information exploration, a population information interaction exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the tertiary information exploration, including:

[0145] For the m After secondary information exploration, the hyperparameter individual Randomly determine two other hyperparameter individuals and get the first random individual and a second random individual ;

[0146] According to the optimal hyperparameter individual, the first random individual and the second random individual, the update amount is determined as:

[0147]

[0148] in, represents the first random individual d dimensional hyperparameters, Represents the first random individual No. d dimensional hyperparameters, Represents the second random individual No. d dimensional hyperparameters, represents the optimal hyperparameter individual d dimensional hyperparameters, Indicates t +1 training session m The exploration step length corresponding to each hyperparameter individual is Represents the hyperparameter individual No. d The update amount corresponding to the dimension hyperparameter;

[0149] According to the update amount, the population information interaction exploration is performed on the hyperparameter individuals as follows:

[0150]

[0151] in, Represents the hyperparameter individual No. d dimensional hyperparameters, It represents a random number generated by a standard Gaussian distribution with a mean of 0 and a variance of 1. Represents the hyperparameter individual after three-level information exploration No. d dimensional hyperparameters, represents the exploration coefficient, Indicates d dimensional hyperparameter length, m =1,2,…, N , N Represents the total number of hyperparameter individuals.

[0152] By learning the information of different hyperparameter individuals and the optimal hyperparameter individuals, we can not only make the hyperparameter individuals start from a better position, but also explore more unknown areas and improve the performance of the algorithm in exploring better solutions.

[0153] In a possible implementation, for the hyperparameter individuals after the third-level information exploration, an information jump exploration strategy is performed on the hyperparameter individuals to obtain the hyperparameter individuals after the fourth-level information exploration, including:

[0154]

[0155]

[0156]

[0157] in, Indicates t During the training m The first hyperparameter individual after the third level information exploration d Dimension parameters, Represents the hyperparameter individual after four-level information exploration No. d Dimension parameters, represents the second intermediate parameter, represents a constant term, and =0.012, represents the optimal hyperparameter individual d Dimension parameters, represents the third intermediate parameter, Represents a random number between (0,1), represents the first control factor, and Satisfies normal distribution , represents the fourth intermediate parameter, , represents the gamma function, represents pi, v represents the second control factor, and v Satisfies normal distribution .

[0158] By performing information jump exploration on individual hyperparameters, the algorithm can have a certain degree of jumpiness and will not fall into the local optimum as the algorithm iterates.

[0159] Optionally, in order to ensure the overall convergence speed of the algorithm, the information jump exploration strategy can be performed only on the K hyperparameter individuals with the worst fitness values ​​and / or the hyperparameter individual with the second largest fitness value. A greedy strategy can also be used to control the exploration process to ensure the convergence speed.

[0160] The present invention provides a method for analyzing fraudulent data in online monitoring data of pollution sources. The method collects historical pollution source monitoring data from a designated data source, and uses a deep learning algorithm to learn the data relationship between the historical pollution source monitoring data and fraudulent behavior, thereby forming rules for analyzing fraudulent data. Finally, the online monitoring data of pollution sources to be analyzed is identified through the rules for analyzing fraudulent data, and the fraudulent data analysis results can be obtained. The method can effectively identify and analyze abnormal values ​​and fraudulent behavior in the online monitoring data of pollution sources, thereby improving the accuracy and effectiveness of environmental supervision.

[0161] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The solutions in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and interpreted scripting language JavaScript, etc.

[0162] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0163] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0164] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0165] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0166] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for analyzing fake data in online monitoring data of pollution sources, characterized in that: include: Collecting historical pollution source monitoring data from a designated data source, and preprocessing the historical pollution source monitoring data to obtain sample data for training an algorithm model; A deep learning model is used to construct a fraudulent data analysis model, and based on the sample data, a multi-level information exploration algorithm is used to train the fraudulent data analysis model to obtain a trained fraudulent data analysis model; Collecting the online monitoring data of the pollution source to be analyzed and extracting the features of the online monitoring data of the pollution source, the extracted features are input into the trained fraud data analysis model for identification, and the fraud data analysis results are obtained; Collect historical pollution source monitoring data from a designated data source, and after preprocessing the historical pollution source monitoring data, obtain sample data for training the algorithm model, including: Collect historical pollution source monitoring data from designated data sources; Performing data integrity check, time series analysis and data smoothing processing on the historical pollution source monitoring data in turn to obtain complete historical pollution source monitoring data; For the complete historical pollution source monitoring data, obtain the enterprise data portrait input by the staff through human-computer interaction based on historical fraud events; wherein the enterprise data portrait includes normal data types and multiple types of abnormal data types; The complete historical pollution source monitoring data is used as training data, and the enterprise data portraits corresponding to the complete historical pollution source monitoring data are used as training labels to obtain sample data for training the algorithm model; The historical pollution source monitoring data at least includes time characteristics, meteorological condition characteristics, pollutant concentration characteristics and emission source characteristics; Wherein, the time characteristics include hours, days, months and years; The meteorological condition characteristics include temperature, humidity, wind speed, wind direction and atmospheric pressure; The pollutant concentration characteristics include SO2 concentration, NO x concentration, PM2.5 concentration and PM10 concentration; x represents a numeric subscript, and x =1, 2, and 3; The emission source characteristics include the type of emission source, the size of the emission source, the production capacity and the operating time of the emission source; The historical pollution source monitoring data is subjected to data integrity check, time series analysis and data smoothing in turn to obtain complete historical pollution source monitoring data, including: Check whether there are missing values ​​in the historical pollution source monitoring data. If so, use the mean of the data before and after the missing value to complete them one by one to obtain the historical pollution source monitoring data after the integrity check. Otherwise, directly use the original historical pollution source monitoring data as the historical pollution source monitoring data after the integrity check; For the historical pollution source monitoring data after the integrity check, determine whether there is any missing historical pollution source monitoring data in the time series. If so, use the mean of the historical pollution source monitoring data before and after the missing historical pollution source monitoring data to complete them one by one, and obtain the historical pollution source monitoring data after the time series analysis. Otherwise, directly place the original historical pollution source monitoring data in the historical pollution source monitoring data after the time series analysis. The time series refers to the data obtained by treating the historical pollution source monitoring data collected at a certain time point as one frame of data and connecting multiple frames of data at multiple consecutive time points; For the historical pollution source monitoring data after the integrity check, the historical pollution source monitoring data is smoothed to obtain complete historical pollution source monitoring data; Based on the sample data, a multi-level information exploration algorithm is used to train the fraud data analysis model to obtain a trained fraud data analysis model, including: The chaotic sequence initialization strategy is used to initialize the hyperparameters of the fake data analysis model to obtain multiple hyperparameter individuals that are evenly distributed in the hyperparameter solution space. For each hyperparameter individual, after applying the hyperparameter individual to the fraudulent data analysis model, the error function value output by the fraudulent data analysis model is obtained according to the sample data, and the error function value is converted into a fitness value to obtain the fitness value corresponding to the hyperparameter individual; Determine the optimal hyperparameter individual according to the fitness value corresponding to the hyperparameter individual; Based on the fitness value corresponding to each hyperparameter individual, the neighborhood information exploration strategy is performed on the hyperparameter individual to obtain the hyperparameter individual after the first-level information exploration; For the hyperparameter individuals after the first-level information exploration, a global optimal position information exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the second-level information exploration; For the hyperparameter individuals after the secondary information exploration, a population information interaction exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the tertiary information exploration; For the hyperparameter individuals after the third-level information exploration, the information jump exploration strategy is performed on the hyperparameter individuals to obtain the hyperparameter individuals after the fourth-level information exploration; Determine whether the iteration end condition is met. If so, re-obtain the optimal hyperparameter individual according to the hyperparameter individual after the four-level information exploration, and use the re-obtained optimal hyperparameter individual as the final hyperparameter of the fraudulent data analysis model to obtain the fraudulent data analysis model after training. Otherwise, return to the step of determining the fitness value corresponding to the hyperparameter individual; Based on the fitness value corresponding to each hyperparameter individual, the neighborhood information exploration strategy is performed on the hyperparameter individual to obtain the hyperparameter individuals after the first-level information exploration, including: Based on the fitness value corresponding to each hyperparameter individual, the exploration step length of the hyperparameter individual is determined as: in, Indicates t During the training process i The exploration step length corresponding to each hyperparameter individual is Indicates t +1 training session i The exploration step size corresponding to each hyperparameter individual; i =1,2,…, N , N Represents the total number of hyperparameter individuals; represents the attenuation coefficient, and >1; represents the intermediate parameter, Indicates i The fitness value corresponding to each hyperparameter individual, Indicates the maximum fitness value in the current training process, Indicates the minimum fitness value in the current training process, Represents a preset constant term; According to the exploration step of the hyperparameter individual, the neighborhood information exploration is performed on the hyperparameter individual as follows: in, Indicates t During the training i The first hyperparameter individual d dimensional hyperparameters, d =1,2,…, D , D represents the total number of dimensions in the hyperparameter individual, Represents the hyperparameter individual after the first level of information exploration No. d dimensional hyperparameters, Represents a random number between (-1,1), Indicates d The length of the dimensional hyperparameter, i.e. d The upper limit minus the lower limit of the dimension hyperparameter; For the hyperparameter individuals after the first-level information exploration, the global optimal position information exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the second-level information exploration, including: For the hyperparameter individuals after the first-level information exploration, the weighted number is determined according to the optimal hyperparameter individual: in, Represents the weight coefficient between (0,1), Indicates t During the training i The first hyperparameter individual after the first level of information exploration d dimensional hyperparameters, represents the optimal hyperparameter individual d dimensional hyperparameters, represents the weighted number; For the hyperparameter individuals after the first-level information exploration, the mean number is determined according to the optimal hyperparameter individuals: in, represents the mean number; According to the weighted number and the mean number, the global optimal position information exploration for the hyperparameter individual is determined as follows: in, Indicates the mean And the variance is Gaussian distribution, Represents the hyperparameter individual after secondary information exploration No. d Dimensional hyperparameters; j =1,2,…, N , N Represents the total number of hyperparameter individuals; For the hyperparameter individuals after the secondary information exploration, the population information interaction exploration strategy is performed on the hyperparameter individuals according to the optimal hyperparameter individuals to obtain the hyperparameter individuals after the third-level information exploration, including: For the m After secondary information exploration, the hyperparameter individual Randomly determine two other hyperparameter individuals and get the first random individual and a second random individual ; According to the optimal hyperparameter individual, the first random individual and the second random individual, the update amount is determined as: in, represents the first random individual d dimensional hyperparameters, Represents the first random individual No. d dimensional hyperparameters, Represents the second random individual No. d dimensional hyperparameters, represents the optimal hyperparameter individual d dimensional hyperparameters, Indicates t +1 training session m The exploration step length corresponding to each hyperparameter individual is Represents the hyperparameter individual No. d The update amount corresponding to the dimension hyperparameter; According to the update amount, the population information interaction exploration is performed on the hyperparameter individuals as follows: in, Represents the hyperparameter individual No. d dimensional hyperparameters, It represents a random number generated by a standard Gaussian distribution with a mean of 0 and a variance of 1. Represents the hyperparameter individual after three-level information exploration No. d dimensional hyperparameters, represents the exploration coefficient, Indicates d dimensional hyperparameter length, m =1,2,…, N , N Represents the total number of hyperparameter individuals; For the hyperparameter individuals after the third-level information exploration, the information jump exploration strategy is performed on the hyperparameter individuals to obtain the hyperparameter individuals after the fourth-level information exploration, including: in, Indicates t During the training process m The first hyperparameter individual after the third level information exploration d Dimension parameters, Represents the hyperparameter individual after four-level information exploration No. d Dimension parameters, represents the second intermediate parameter, represents a constant term, and =0.012, represents the optimal hyperparameter individual d Dimension parameters, represents the third intermediate parameter, Represents a random number between (0,1), represents the first control factor, and Satisfies normal distribution , represents the fourth intermediate parameter, , represents the gamma function, represents pi, v represents the second control factor, and v Satisfies normal distribution .

2. The method for analyzing fake data in online monitoring data of pollution sources according to claim 1, characterized in that: A deep learning model is used to construct a fraud data analysis model, including: using a convolutional neural network to construct a fraud data analysis model.

3. The method for analyzing fake data in online monitoring data of pollution sources according to claim 1, characterized in that: For each hyperparameter individual, after applying the hyperparameter individual to the fraudulent data analysis model, the error function value output by the fraudulent data analysis model is obtained according to the sample data, and the error function value is converted into a fitness value to obtain the fitness value corresponding to the hyperparameter individual, including: For each hyperparameter individual, after applying the hyperparameter individual to the fraudulent data analysis model, a root mean square error function is used to obtain an error function value output by the fraudulent data analysis model according to the sample data; The error function value output by the fake data analysis model is compared with the preset constant term After adding, take the reciprocal to get the fitness value corresponding to the hyperparameter individual; Among them, the preset constant term Set to 0.0001.