A system and method for online abnormal analysis of water pollution sources
By setting up water quality monitoring points along the water body and using a deep learning neural network model to analyze water quality information and corporate discharge reporting status, the problems of equipment aging, unstable data transmission and lack of standardization in the water quality pollution source online monitoring system are solved and achieved Provides high-accuracy and rapid-response pollution source reporting.
Patent Information
- Application Number
- CN202410822246.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The existing online monitoring system for water quality pollution sources faces problems such as aging equipment, inconsistent data transmission protocols, unstable data transmission, lack of standardization and interoperability, as well as the poor timeliness, limited accuracy and inability of traditional manual inspections to respond to emergencies. Monitor system accuracy and responsiveness.
An online anomaly analysis method based on machine learning is used to set up water quality monitoring points along the water body to obtain water quality information and corporate pollutant discharge reporting status. The deep learning neural network model is used to check the monitoring data and search for pollution sources, and broadcast pollution source information in real time.
It improves the accuracy and response speed of pollution source broadcasting, enhances the real-time and reliability of the system, reduces maintenance costs, and improves the ability to respond quickly to sudden pollution events.
Smart Images

Figure CN118378200B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of water pollution analysis, and in particular to an online abnormal analysis system and method for water pollution sources. Background Art
[0002] Currently, online monitoring of water pollution sources faces a series of specific challenges, which seriously affect the accuracy and reliability of the monitoring system. The specific challenges are as follows:
[0003] 1. Equipment aging
[0004] Problem: Many water quality monitoring sites use equipment that has been in service for many years or even beyond its design life. Aging equipment can lead to decreased sensor sensitivity, inaccurate data readings, or even complete failure.
[0005] Impact: Aging equipment not only affects the accuracy of data, but can also increase maintenance costs and reduce the overall reliability of the system. In extreme cases, aging equipment may fail completely, resulting in monitoring blind spots, making it impossible to detect and respond to pollution sources in a timely manner.
[0006] 2. Inconsistency in data transmission protocols
[0007] Problem: Different water quality monitoring devices and systems may use different data transmission protocols. This incompatibility makes data integration and sharing difficult, often requiring additional conversion and processing steps.
[0008] Impact: The inconsistency of data transmission protocols increases the complexity of data management, reduces the efficiency of data processing, and may introduce errors in the conversion process. This limits the effectiveness and response speed of real-time monitoring systems.
[0009] 3. Unstable data transmission
[0010] Problem: Water quality monitoring data may be lost, delayed, or erroneous during transmission due to imperfect communication infrastructure, electromagnetic interference, weather conditions, or other factors.
[0011] Impact: The instability of data transmission undermines the continuity and timeliness of the real-time monitoring system. It may lead to omission or lag of key information, thus weakening the system's ability to respond to sudden pollution incidents.
[0012] 4. Lack of standardization and interoperability
[0013] Problem: There are many different brands and models of water quality monitoring equipment on the market, and there is a lack of unified standards and good interoperability between them. This leads to many difficulties in building large-scale monitoring networks or upgrading systems.
[0014] Impact: The lack of standardization and interoperability limits the scalability and flexibility of monitoring systems. It increases the cost of system integration and maintenance and reduces overall performance. At the same time, it also limits the introduction and application of new technologies and methods, thereby slowing down the technological progress and innovation in the field of water quality monitoring.
[0015] The traditional method of manual inspection can detect problems to a certain extent, but it is often difficult to grasp the actual situation of pollution sources in a timely and comprehensive manner due to limitations in manpower, time and efficiency. The limitations are as follows:
[0016] 1. Poor timeliness: Traditional methods usually rely on regular manual sampling and laboratory analysis, which is not only time-consuming but also unable to provide real-time water quality data. When a pollution incident occurs, this delay may result in the inability to take timely countermeasures.
[0017] 2. Limited accuracy: Manual sampling and analysis are susceptible to factors such as human error, insufficient sampling frequency, and the accuracy of laboratory equipment, which can lead to inaccurate data.
[0018] 3. Unable to respond to emergencies: Traditional methods lack the ability to respond quickly to sudden pollution incidents and are unable to detect and deal with pollution sources in the first place.
[0019] In order to overcome the above problems, the present invention proposes a method for online data anomaly analysis of pollution sources based on machine learning and real-time data monitoring, which improves the accuracy and timeliness of pollution source monitoring by introducing automated and intelligent technical means. Summary of the invention
[0020] In view of the deficiencies in the prior art, the present invention proposes an online anomaly analysis system and method for water pollution sources. The present invention sets a number of water quality monitoring points at equal distances along a water body, obtains water quality information at the water quality monitoring points, and simultaneously obtains the enterprise pollutant emission reporting status of factories near the water body, analyzes the monitoring data of the water quality monitoring points, obtains suspected water quality detection anomaly points, imports the monitoring data of the water quality monitoring points upstream and downstream of the suspected emission area into a monitoring data verification model for suspected water quality detection anomaly points to perform monitoring data verification, obtains monitoring data verification results, and determines whether to perform pollution source search based on the verification results, substitutes the verified monitoring data of the suspected water quality detection anomaly points and the enterprise pollutant emission reporting status of factories near the water body into the pollution source search strategy to perform pollution source search, transmits the pollution source information obtained from the search to the pollution supervision department, performs real-time reporting of pollution sources, accurately verifies the monitoring data of the water quality monitoring points, and improves the accuracy of pollution source reporting.
[0021] To achieve the above object, the present invention provides the following technical solution: a method for online abnormal analysis of water pollution sources, which comprises the following specific steps:
[0022] Set up several water quality monitoring points at equal distances along the water body to obtain water quality information at the water quality monitoring points, and at the same time obtain the enterprise pollutant emission reports of factories near the water body;
[0023] Analyze the monitoring data of water quality monitoring points to obtain suspected water quality detection abnormal points, and import the monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area into the monitoring data verification model of suspected water quality detection abnormal points for monitoring data verification;
[0024] Obtain monitoring data verification results and determine whether to conduct pollution source search based on the verification results;
[0025] Substitute the verified monitoring data of suspected water quality abnormal points and the pollutant emission reports of factories near the water body into the pollution source search strategy to find the pollution source;
[0026] The pollution source information found will be transmitted to the pollution supervision department for real-time reporting of the pollution source.
[0027] As a preferred solution of the method for online abnormal analysis of water pollution sources of the present invention, the method of setting a plurality of water quality monitoring points at equal distances along the water body, obtaining water quality information of the water quality monitoring points, and obtaining the enterprise pollutant emission reporting status of factories near the water body at the same time includes the following specific steps:
[0028] S11, obtaining a water basin that needs to be monitored, setting a number of water quality monitoring points along the water body at a set distance, and obtaining water quality information of the water quality monitoring points in real time, wherein the water quality information includes water flow, flow velocity and various pollutant content data in the water quality, and storing them in the first storage module;
[0029] S12. Obtain the enterprise pollutant emission reporting information of factories near the water body, wherein the enterprise pollutant emission reporting information includes the type and content percentage data of each pollutant emission reported by the enterprise, and stores it in the second storage module.
[0030] As a preferred solution of the method for online abnormal analysis of water pollution sources of the present invention, the monitoring data of the water quality monitoring points are analyzed to obtain suspected water quality detection abnormal points, and the monitoring data of the water quality monitoring points upstream and downstream of the suspected discharge area are imported into the suspected water quality detection abnormal point monitoring data verification model for monitoring data verification, which includes the following specific contents:
[0031] S21, obtaining water quality monitoring data of all water quality monitoring points, obtaining various pollutant content data in the water quality monitoring data, importing various pollutant content data in each water quality monitoring point into the water quality abnormal increase value calculation formula to calculate the water quality abnormal increase value of each water quality monitoring point, wherein the water quality abnormal increase value calculation formula of the i-th water quality monitoring point is: , where N is the type of pollutant in the water body, and the specific meaning of d() is: if the number in the brackets is less than 0, then The value is 0. If the number in the brackets is greater than or equal to 0, then Value , cij is the content of the jth pollutant at the ith water quality monitoring point, cjmax is the value of the jth pollutant content closest to the ith water quality monitoring point within the set jth pollutant content safety range, and c(i-1)j is the content of the jth pollutant at the first water quality monitoring point located upstream of the ith water quality monitoring point;
[0032] S22, comparing the abnormal water quality increase value of each water quality monitoring point obtained with the abnormal water quality increase threshold of the set water quality monitoring point; if the abnormal water quality increase value of the corresponding water quality monitoring point is greater than or equal to the abnormal water quality increase threshold of the set water quality monitoring point, the corresponding water quality monitoring point is set as a suspected abnormal water quality detection point, and the range area between the first upstream water quality monitoring point closest to the suspected abnormal water quality detection point and the first downstream water quality monitoring point is set as the suspected discharge area, and the monitoring data of the water quality monitoring points upstream and downstream of the suspected discharge area are obtained;
[0033] S23, extracting pollutant monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area, pollutant monitoring data of suspected water quality detection abnormal points, water flow velocity and flow rate of the water body from the historical monitoring data, and constructing a deep learning neural network model whose input is the pollutant monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area in the historical monitoring data, water flow velocity and flow rate of the water body, and whose output is the pollutant monitoring data of the corresponding suspected water quality detection abnormal points;
[0034] S24. The pollutant monitoring data of the water quality monitoring points upstream and downstream of the suspected discharge area, the pollutant monitoring data of the suspected water quality detection abnormal points, the water flow velocity and flow rate of the water body in the extracted historical monitoring data are divided into a 70% parameter training set and a 30% parameter test set; the 70% parameter training set is input into the deep learning neural network model for training to obtain an initial deep learning neural network model; the 30% parameter test set is used to test the initial deep learning neural network model, and the optimal initial deep learning neural network model that meets the highest judgment accuracy of the pollutant monitoring data of the suspected water quality detection abnormal points is output as the deep learning neural network model, wherein the output strategy formula of the specific neurons in the deep learning neural network model is: ,in is the output of the n+1 layer of p-term neurons, The connection weight between the nth layer neuron I and the n+1th layer p-term neuron, represents the output of neuron I in layer n, represents the bias of the linear relationship between the nth layer neuron I and the n+1th layer p-term neuron, Represents the Sigmoid activation function;
[0035] S25, obtaining pollutant monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area at the current time, water flow velocity and flow rate, and importing them into the deep learning neural network model to output the pollutant monitoring data of the corresponding suspected water quality detection abnormal points, and setting them as verification monitoring data;
[0036] S26, importing the pollutant monitoring data of the suspected water quality detection abnormal point and the verification monitoring data into the verification value calculation formula to calculate the verification value, wherein the verification value calculation formula is: , where zj is the content of the j-th pollutant in the verification monitoring data, and zjm is the content of the j-th pollutant in the pollutant monitoring data of the suspected abnormal water quality detection point.
[0037] As a preferred solution of the method for online abnormal analysis of water pollution sources of the present invention, the obtaining of monitoring data verification results and judging whether to search for pollution sources according to the verification results include the following specific contents:
[0038] The calculated verification value is compared with the set verification threshold. If the obtained verification value is greater than or equal to the set verification threshold, it means that the monitoring data is abnormal, and the maintenance personnel are prompted to repair the monitoring equipment without searching for the source of pollution. If the obtained verification value is less than the set verification threshold, it is necessary to search for the source of pollution.
[0039] As a preferred solution of the method for online abnormal analysis of water pollution sources of the present invention, the method of substituting the verified monitoring data of suspected water quality abnormal points and the enterprise pollutant emission reporting status of factories near the water body into the pollution source search strategy to search for pollution sources includes the following specific steps:
[0040] S41, obtaining the verified monitoring data of the suspected water quality detection abnormal point and the monitoring data of the first water quality monitoring point upstream of the suspected water quality detection abnormal point, calculating the change in the content of various pollutants between the monitoring data of the suspected water quality detection abnormal point and the first water quality monitoring point upstream of the suspected water quality detection abnormal point, and setting it as a pollutant change amount set;
[0041] S42, obtaining the enterprise pollutant emission reporting content data of the factories along the line between the monitoring data of the suspected water quality detection abnormal point and the first water quality monitoring point upstream of the suspected water quality detection abnormal point, and setting it as the enterprise pollutant emission reporting content set;
[0042] S43. Import the set of reported pollutant emission contents and the set of pollutant changes of the t-th enterprise into the emission probability calculation formula of the t-th enterprise to calculate the emission probability of the t-th enterprise, where the emission probability calculation formula of the t-th enterprise is: , where sjt is the content of the jth pollutant in the set of reported pollutant emissions of the tth enterprise, and zjs is the content of the jth pollutant in the set of pollutant change amounts;
[0043] S44. The enterprise corresponding to the largest enterprise emission probability is obtained, and is set as an emission pollution source, and information on the emission pollution source is obtained.
[0044] A system for online anomaly analysis of water pollution sources is implemented based on the above-mentioned method for online anomaly analysis of water pollution sources, and specifically includes a data acquisition module, a suspected water quality detection anomaly point acquisition module, a monitoring data verification module, a pollution source search and judgment module, a pollution source search module, a pollution source real-time broadcast module and a control module. The data acquisition module is used to set up a number of water quality monitoring points at equal distances along the water body, obtain water quality information at the water quality monitoring points, and simultaneously obtain the enterprise pollutant emission reporting status of factories near the water body. The suspected water quality detection anomaly point acquisition module is used to analyze the monitoring data of the water quality monitoring points to obtain suspected water quality detection anomaly points.
[0045] As a preferred solution of the online anomaly analysis system for water quality pollution sources of the present invention, the monitoring data verification module is used to import the monitoring data of water quality monitoring points upstream and downstream of the suspected emission area into the monitoring data verification model of suspected water quality detection anomaly points for monitoring data verification; the pollution source search and judgment module is used to obtain the monitoring data verification results, and determine whether to perform pollution source search based on the verification results; the pollution source search module is used to substitute the verified monitoring data of suspected water quality detection anomaly points and the enterprise pollutant emission reporting status of factories near the water body into the pollution source search strategy to search for pollution sources; the pollution source real-time broadcast module is used to transmit the pollution source information obtained from the search to the pollution supervision department for real-time broadcast of pollution sources.
[0046] As a preferred solution of the online anomaly analysis system for water pollution sources of the present invention, the control module is used to control the operation of the data acquisition module, the suspected water quality detection anomaly point acquisition module, the monitoring data verification module, the pollution source search and judgment module, the pollution source search module and the pollution source real-time broadcast module.
[0047] An electronic device comprises: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0048] The processor executes the above-mentioned method for online abnormality analysis of water pollution sources by calling the computer program stored in the memory.
[0049] A computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for online abnormality analysis of water pollution sources.
[0050] Compared with the prior art, the present invention has the following beneficial effects:
[0051] The present invention sets a plurality of water quality monitoring points at equal distances along a water body, obtains water quality information of the water quality monitoring points, and simultaneously obtains the enterprise pollutant emission reporting status of factories near the water body, analyzes the monitoring data of the water quality monitoring points, obtains suspected water quality detection abnormal points, imports the monitoring data of the water quality monitoring points upstream and downstream of the suspected emission area into a monitoring data verification model of the suspected water quality detection abnormal points for monitoring data verification, obtains the monitoring data verification results, and determines whether to search for pollution sources according to the verification results, substitutes the verified monitoring data of the suspected water quality detection abnormal points and the enterprise pollutant emission reporting status of factories near the water body into the pollution source search strategy for searching for pollution sources, transmits the pollution source information obtained by the search to the pollution supervision department, performs real-time broadcasting of pollution sources, accurately verifies the monitoring data of the water quality monitoring points, and improves the accuracy of pollution source reporting. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 This is a schematic diagram of the overall process of an online abnormal analysis method for water pollution sources of the present invention;
[0053] Figure 2 It is a schematic diagram of the overall flow of a pollution source search strategy for an online abnormal analysis method of water pollution sources of the present invention;
[0054] Figure 3 This is a schematic diagram of the overall framework of an online abnormal analysis system for water pollution sources according to the present invention;
[0055] Figure 4 This is a schematic diagram of the arrangement of water quality monitoring points for monitoring water bodies according to the present invention. DETAILED DESCRIPTION
[0056] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0057] Example 1
[0058] The technical problems solved by this embodiment are: 1. Poor timeliness: Traditional methods usually rely on regular manual sampling and laboratory analysis, which is not only time-consuming but also unable to provide real-time water quality data. When a pollution incident occurs, this delay may result in the inability to take timely countermeasures.
[0059] 2. Limited accuracy: Manual sampling and analysis are susceptible to factors such as human error, insufficient sampling frequency, and the accuracy of laboratory equipment, which can lead to inaccurate data.
[0060] 3. Unable to respond to emergencies: Traditional methods lack the ability to respond quickly to sudden pollution incidents and cannot detect and deal with pollution sources in the first place.
[0061] To solve the above problems, please refer to Figure 1 The present invention provides a preferred embodiment: a method for online abnormal analysis of water pollution sources, which comprises the following specific steps:
[0062] Set up several water quality monitoring points at equal distances along the water body to obtain water quality information at the water quality monitoring points, and at the same time obtain the enterprise pollutant emission reports of factories near the water body;
[0063] Analyze the monitoring data of water quality monitoring points to obtain suspected water quality detection abnormal points, and import the monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area into the monitoring data verification model of suspected water quality detection abnormal points for monitoring data verification;
[0064] Obtain monitoring data verification results and determine whether to conduct pollution source search based on the verification results;
[0065] Substitute the verified monitoring data of suspected water quality abnormal points and the pollutant emission reports of factories near the water body into the pollution source search strategy to find the pollution source;
[0066] Transmit the pollution source information found to the pollution supervision department for real-time reporting of pollution sources;
[0067] The technical effect of accurately checking the monitoring data of water quality monitoring points and improving the accuracy of pollution source reporting is achieved;
[0068] In this embodiment, it should be specifically explained that a plurality of water quality monitoring points are set at equal distances along the water body, and the water quality information of the water quality monitoring points is obtained, and at the same time, the enterprise pollutant emission reporting information of the factories near the water body is obtained, including the following specific steps:
[0069] S11. Obtain the water basins that need to be monitored, such as Figure 4As shown, a number of water quality monitoring points are set along the water body at a set distance, where the distance between the water quality monitoring points can be flexibly set preferably to 1-5km, and water quality information of the water quality monitoring points is obtained in real time, wherein the water quality information includes water flow, flow velocity and various pollutant content data in the water quality, which are stored in the first storage module; it should be noted that the various pollutant contents in the water quality are specifically: pH value, ammonia nitrogen, total nitrogen, chemical oxygen demand, heavy metal content, etc., which are all key indicators for evaluating the degree of water pollution;
[0070] pH value, ammonia nitrogen, total nitrogen, chemical oxygen demand (COD) and heavy metal content are all important indicators for evaluating water quality and ecological environment health. The safety range of these indicators will be explained below:
[0071] 1. pH value:
[0072] Safety range: The pH value of water should generally be between 6.5 and 8.5. The pH value within this range meets the survival needs of most aquatic organisms.
[0073] Impact: When the pH value is lower than 6.5, the water becomes acidic, which may cause harm to aquatic life; when the pH value is higher than 8.5, the water becomes alkaline, which may also have an adverse effect on organisms.
[0074] 2. Ammonia nitrogen:
[0075] Safety range: The safe concentration of ammonia nitrogen is usually less than 1 mg / L.
[0076] Impact: High concentrations of ammonia nitrogen are toxic to aquatic life and can cause the death of fish and aquatic plants.
[0077] 3. Total Nitrogen:
[0078] Safety range: The safe concentration of total nitrogen varies depending on the purpose of the water body and regional standards. It is generally recommended not to exceed 5 mg / L.
[0079] Impact: Excessive total nitrogen content will lead to eutrophication of water bodies, promote algae growth, and cause water quality deterioration.
[0080] 4. Chemical oxygen demand (COD):
[0081] Safety range: The safe concentration of COD is usually required to be less than 50 mg / L.
[0082] Impact: A high COD value means that the water body is seriously polluted by organic matter, which may cause hypoxia in the water body and affect the survival of aquatic organisms.
[0083] 5. Heavy metal content:
[0084] Safety range: The safe concentration of heavy metals depends on their type and environmental standards, and is usually required to be at trace levels, such as copper, lead, zinc, etc., which usually does not exceed 0.01 mg / L.
[0085] Impact: Heavy metals are persistent and highly toxic, and even low concentrations can cause serious harm to ecosystems through biomagnification;
[0086] The above safety ranges and impacts are for reference only, and actual standards may vary depending on the region, use, and specific water conditions;
[0087] S12, obtaining the enterprise pollutant emission reporting information of factories near the water body, wherein the enterprise pollutant emission reporting information includes the type and content percentage data of each pollutant emission reported by the enterprise, and storing it in the second storage module;
[0088] In this embodiment, it should be specifically explained that the monitoring data of the water quality monitoring points are analyzed to obtain suspected water quality detection abnormal points, and the monitoring data of the water quality monitoring points upstream and downstream of the suspected discharge area are imported into the suspected water quality detection abnormal point monitoring data verification model for monitoring data verification, which includes the following specific contents:
[0089] S21, obtaining water quality monitoring data of all water quality monitoring points, obtaining various pollutant content data in the water quality monitoring data, importing various pollutant content data in each water quality monitoring point into the water quality abnormal increase value calculation formula to calculate the water quality abnormal increase value of each water quality monitoring point, wherein the water quality abnormal increase value calculation formula of the i-th water quality monitoring point is: , where N is the type of pollutant in the water body, and the specific meaning of d() is: if the number in the brackets is less than 0, then The value is 0. If the number in the brackets is greater than or equal to 0, then Value , cij is the content of the jth pollutant at the ith water quality monitoring point, cjmax is the value of the jth pollutant content closest to the ith water quality monitoring point within the set jth pollutant content safety range, c(i-1)j is the content of the jth pollutant at the first water quality monitoring point upstream of the ith water quality monitoring point; hereby an example is given to illustrate the calculation process of the water quality abnormal increase value calculation formula at the ith water quality monitoring point, with Figure 4 For example, the water quality information of water quality monitoring point 2 and water quality monitoring point 1 is obtained. Since the arrow in the water body indicates the flow direction of the water body, water quality monitoring point 1 is located upstream of the water quality monitoring point. The monitoring data of water quality monitoring point 2 are: pH is 7.2, ammonia nitrogen is 0.4 mg / L, total nitrogen is 0.8 mg / L, cdd is 43 mg / L, and copper content is 0.12 mg / L;
[0090] The monitoring data of water quality monitoring point 1 are: pH 7.2, ammonia nitrogen 0.3 mg / L, total nitrogen 4 mg / L, cdd 43 mg / L, copper content 0.01 mg / L; substitute into the water quality abnormal increase value calculation formula to calculate the water quality abnormal increase value of water quality monitoring point 2 is 119;
[0091] S22. Compare the abnormal water quality increase value of each water quality monitoring point obtained with the abnormal water quality increase threshold of the set water quality monitoring point. If the abnormal water quality increase value of the corresponding water quality monitoring point is greater than or equal to the abnormal water quality increase threshold of the set water quality monitoring point, the corresponding water quality monitoring point is set as a suspected abnormal water quality detection point, and the range area between the first upstream water quality monitoring point and the first downstream water quality monitoring point closest to the suspected abnormal water quality detection point is set as the suspected discharge area, and the monitoring data of the water quality monitoring points upstream and downstream of the suspected discharge area are obtained; the abnormal water quality increase threshold value is obtained as follows: 5000 groups of water quality monitoring point data are obtained and substituted into the abnormal water quality increase value calculation formula to calculate the abnormal water quality increase value, and whether there is any illegal discharge behavior is judged, and the judgment result and the abnormal water quality increase value are imported into the fitting software to output the value of the abnormal water quality increase threshold that meets the highest accuracy rate of judgment of illegal discharge behavior;
[0092] It should be noted that, for example, the range between the first upstream water quality monitoring point closest to the suspected water quality detection abnormal point and the first downstream water quality monitoring point is set as the suspected discharge area, such as Figure 4 As shown, for example, the suspected abnormal water quality detection point is water quality monitoring point 2, the first water quality monitoring point upstream closest to the suspected abnormal water quality detection point is water quality monitoring point 1, and the first water quality monitoring point downstream closest to the suspected abnormal water quality detection point is water quality monitoring point 3, and the suspected discharge area is the area between water quality monitoring point 1 and water quality monitoring point 3;
[0093] S23, extracting pollutant monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area, pollutant monitoring data of suspected water quality detection abnormal points, water flow velocity and flow rate of the water body from the historical monitoring data, and constructing a deep learning neural network model whose input is the pollutant monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area in the historical monitoring data, water flow velocity and flow rate of the water body, and whose output is the pollutant monitoring data of the corresponding suspected water quality detection abnormal points;
[0094] The following is a code example of a deep learning neural network model:
[0095] #include<stdio.h>
[0096] #include<stdlib.h>
[0097] #include<tinydnn.h>
[0098] / / Assume there is already a function to load and preprocess data
[0099] void load_and_preprocess_data(double** input, double** output, int*num_samples);
[0100] int main() {
[0101] / / 1. Load and preprocess data
[0102] int num_samples;
[0103] double* input_data = NULL;
[0104] double* output_data = NULL;
[0105] load_and_preprocess_data(&input_data, &output_data, &num_samples);
[0106] / / 2. Create a network structure
[0107] / / Example: A simple fully connected neural network
[0108] tiny_dnn::network<tiny_dnn::sequential> net;
[0109] net.add<tiny_dnn::fully_connected_layer> (num_samples, 10); / / Input layer to hidden layer
[0110] net.add<tiny_dnn::fully_connected_layer> (10, num_samples); / / Hidden layer to output layer
[0111] / / 3. Compile the network
[0112] tiny_dnn::adam optimizer;
[0113] net.compile(tiny_dnn::loss_func::mse, optimizer);
[0114] / / 4. Training the network
[0115] for (int i = 0; i < 1000; ++i) {
[0116] net.train(input_data, output_data, num_samples);
[0117] }
[0118] / / 5. Verify and test the network
[0119] / / 6. Release resources
[0120] free(input_data);
[0121] free(output_data);
[0122] return 0;
[0123] }
[0124] / / Pseudocode for data loading and preprocessing
[0125] void load_and_preprocess_data(double** input, double** output, int*num_samples) {
[0126] / / Read data from historical monitoring data
[0127] / / Data should include pollutant monitoring data, water velocity and flow rate at water quality monitoring points upstream and downstream of the suspected discharge area
[0128] / / Preprocess data, such as normalization, cutting, etc.
[0129] / / Allocate memory
[0130] *input = (double*)malloc( / * enough space* / );
[0131] *output = (double*)malloc( / * enough space* / );
[0132] *num_samples = / * Number of samples in the dataset * / ;
[0133] / / Fill memory and load data
[0134] / / ...
[0135] }
[0136] S24. The pollutant monitoring data of the water quality monitoring points upstream and downstream of the suspected discharge area, the pollutant monitoring data of the suspected water quality detection abnormal points, the water flow velocity and flow rate of the water body in the extracted historical monitoring data are divided into a 70% parameter training set and a 30% parameter test set; the 70% parameter training set is input into the deep learning neural network model for training to obtain an initial deep learning neural network model; the 30% parameter test set is used to test the initial deep learning neural network model, and the optimal initial deep learning neural network model that meets the highest judgment accuracy of the pollutant monitoring data of the suspected water quality detection abnormal points is output as the deep learning neural network model, wherein the output strategy formula of the specific neurons in the deep learning neural network model is: ,in is the output of the n+1 layer of p-term neurons, The connection weight between the nth layer neuron I and the n+1th layer p-term neuron, represents the output of neuron I in layer n, represents the bias of the linear relationship between the nth layer neuron I and the n+1th layer p-term neuron, Represents the Sigmoid activation function;
[0137] S25, obtaining pollutant monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area at the current time, water flow velocity and flow rate, and importing them into the deep learning neural network model to output the pollutant monitoring data of the corresponding suspected water quality detection abnormal points, and setting them as verification monitoring data;
[0138] S26, importing the pollutant monitoring data of the suspected water quality detection abnormal point and the verification monitoring data into the verification value calculation formula to calculate the verification value, wherein the verification value calculation formula is: , where zj is the content of the j-th pollutant in the verification monitoring data, and zjm is the content of the j-th pollutant in the pollutant monitoring data of the suspected abnormal water quality detection point.
[0139] In this embodiment, it should be specifically explained that obtaining the monitoring data verification result and determining whether to search for the pollution source according to the verification result includes the following specific contents:
[0140] The calculated check value is compared with the set check threshold. If the check value is greater than or equal to the set check threshold, it means that the monitoring data is abnormal, and the maintenance personnel are prompted to repair the monitoring equipment without searching for the pollution source. If the check value is less than the set check threshold, it is necessary to search for the pollution source.
[0141] In this embodiment, it should be specifically explained that Figure 2 As shown in the figure, the verified monitoring data of suspected water quality abnormal points and the enterprise pollutant emission reporting of factories near the water body are substituted into the pollution source search strategy to search for pollution sources, including the following specific steps:
[0142] S41, obtaining the verified monitoring data of the suspected water quality detection abnormal point and the monitoring data of the first water quality monitoring point upstream of the suspected water quality detection abnormal point, calculating the change in the content of various pollutants between the monitoring data of the suspected water quality detection abnormal point and the first water quality monitoring point upstream of the suspected water quality detection abnormal point, and setting it as a pollutant change amount set;
[0143] S42, obtaining the enterprise pollutant emission reporting content data of the factories along the line between the monitoring data of the suspected water quality detection abnormal point and the first water quality monitoring point upstream of the suspected water quality detection abnormal point, and setting it as the enterprise pollutant emission reporting content set;
[0144] S43. Import the set of reported pollutant emission contents and the set of pollutant changes of the t-th enterprise into the emission probability calculation formula of the t-th enterprise to calculate the emission probability of the t-th enterprise, where the emission probability calculation formula of the t-th enterprise is: , where sjt is the content of the jth pollutant in the set of reported pollutant emissions of the tth enterprise, and zjs is the content of the jth pollutant in the set of pollutant change amounts;
[0145] S44, obtaining the enterprise corresponding to the largest enterprise emission probability and setting it as an emission pollution source, and obtaining information on the emission pollution source;
[0146] It should be noted in this embodiment that the advantages of this embodiment over the prior art are as follows: a number of water quality monitoring points are set at equal distances along the water body, water quality information of the water quality monitoring points is obtained, and at the same time, the enterprise pollutant emission reporting status of factories near the water body is obtained, the monitoring data of the water quality monitoring points are analyzed, and suspected water quality detection abnormal points are obtained, and the monitoring data of the water quality monitoring points upstream and downstream of the suspected emission area are imported into the suspected water quality detection abnormal point monitoring data verification model for monitoring data verification, and the monitoring data verification results are obtained. According to the verification results, it is determined whether to search for pollution sources, and the verified monitoring data of the suspected water quality detection abnormal points and the enterprise pollutant emission reporting status of factories near the water body are substituted into the pollution source search strategy to search for pollution sources, and the pollution source information obtained from the search is transmitted to the pollution supervision department, and the pollution source is reported in real time, and the monitoring data of the water quality monitoring points are accurately verified, thereby improving the accuracy of the pollution source reporting.
[0147] Example 2
[0148] like Figure 3As shown, a system for online abnormal analysis of water pollution sources is implemented based on the above-mentioned method for online abnormal analysis of water pollution sources, and specifically includes a data acquisition module, a suspected water quality detection abnormal point acquisition module, a monitoring data verification module, a pollution source search and judgment module, a pollution source search module, a pollution source real-time broadcast module and a control module. The data acquisition module is used to set up a number of water quality monitoring points at equal distances along the water body, obtain water quality information at the water quality monitoring points, and simultaneously obtain the enterprise pollutant emission reporting status of factories near the water body. The suspected water quality detection abnormal point acquisition module is used to analyze the monitoring data of the water quality monitoring points to obtain suspected water quality detection abnormal points; the monitoring data verification module is used to convert the monitoring data of the water quality monitoring points upstream and downstream of the suspected emission area into real-time broadcasting of the pollution source. The measured data is imported into the suspected water quality detection abnormal point monitoring data verification model for monitoring data verification. The pollution source search and judgment module is used to obtain the monitoring data verification results, and determine whether to conduct pollution source search based on the verification results. The pollution source search module is used to substitute the verified suspected water quality detection abnormal point monitoring data and the enterprise pollutant emission reporting status of factories near the water body into the pollution source search strategy to search for pollution sources. The pollution source real-time broadcast module is used to transmit the pollution source information obtained from the search to the pollution supervision department for real-time broadcast of the pollution source; the control module is used to control the operation of the data acquisition module, the suspected water quality detection abnormal point acquisition module, the monitoring data verification module, the pollution source search and judgment module, the pollution source search module and the pollution source real-time broadcast module.
[0149] Example 3
[0150] This embodiment provides an electronic device, including: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0151] The processor executes the above-mentioned method for online abnormality analysis of water pollution sources by calling the computer program stored in the memory.
[0152] The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) and one or more memories, wherein the memory stores at least one computer program, and the computer program is loaded and executed by the processor to implement a method for online abnormal analysis of water pollution sources provided by the above method embodiment. The electronic device may also include other components for realizing the functions of the device, for example, the electronic device may also have components such as a wired or wireless network interface and an input and output interface to input and output data. This embodiment will not be described in detail here.
[0153] Example 4
[0154] This embodiment provides a computer-readable storage medium having a rewritable computer program stored thereon;
[0155] When the computer program runs on a computer device, the computer device executes the above-mentioned method for online abnormality analysis of water pollution sources.
[0156] For example, the computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0157] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only one way of division, and there may be other ways of division in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0158] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for online abnormal analysis of water pollution sources, It is characterized in that It includes the following specific steps: Set up several water quality monitoring points at equal distances along the water body to obtain water quality information at the water quality monitoring points, and at the same time obtain the enterprise pollutant emission reports of factories near the water body; Analyze the monitoring data of water quality monitoring points to obtain suspected water quality detection abnormal points, and import the monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area into the monitoring data verification model of suspected water quality detection abnormal points for monitoring data verification; Obtain monitoring data verification results and determine whether to conduct pollution source search based on the verification results; Substitute the verified monitoring data of suspected water quality abnormal points and the pollutant emission reports of factories near the water body into the pollution source search strategy to find the pollution source; Transmit the pollution source information found to the pollution supervision department for real-time reporting of pollution sources; The monitoring data of the water quality monitoring points are analyzed to obtain suspected water quality abnormal points, and the monitoring data of the water quality monitoring points upstream and downstream of the suspected discharge area are imported into the suspected water quality abnormal point monitoring data verification model for monitoring data verification, which includes the following specific contents: S21, obtaining water quality monitoring data of all water quality monitoring points, obtaining various pollutant content data in the water quality monitoring data, importing various pollutant content data in each water quality monitoring point into the water quality abnormal increase value calculation formula to calculate the water quality abnormal increase value of each water quality monitoring point, wherein the water quality abnormal increase value calculation formula of the i-th water quality monitoring point is: , where N is the type of pollutant in the water body, and the specific meaning of d() is: if the number in the brackets is less than 0, then The value is 0. If the number in the brackets is greater than or equal to 0, then Value , cij is the content of the jth pollutant at the ith water quality monitoring point, cjmax is the value of the jth pollutant content closest to the ith water quality monitoring point within the set jth pollutant content safety range, and c(i-1)j is the content of the jth pollutant at the first water quality monitoring point located upstream of the ith water quality monitoring point; S22, comparing the abnormal water quality increase value of each water quality monitoring point obtained with the abnormal water quality increase threshold value of the set water quality monitoring point, if the abnormal water quality increase value of the corresponding water quality monitoring point is greater than or equal to the abnormal water quality increase threshold value of the set water quality monitoring point, then the corresponding water quality monitoring point is set as a suspected abnormal water quality detection point, and the range area between the first upstream water quality monitoring point closest to the suspected abnormal water quality detection point and the first downstream water quality monitoring point is set as the suspected discharge area, and the monitoring data of the water quality monitoring points upstream and downstream of the suspected discharge area are obtained; S23, extracting pollutant monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area, pollutant monitoring data of suspected water quality detection abnormal points, water flow velocity and flow rate of the water body from the historical monitoring data, and constructing a deep learning neural network model whose input is the pollutant monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area in the historical monitoring data, water flow velocity and flow rate of the water body, and whose output is the pollutant monitoring data of the corresponding suspected water quality detection abnormal points; S24. The pollutant monitoring data of the water quality monitoring points upstream and downstream of the suspected discharge area, the pollutant monitoring data of the suspected water quality detection abnormal points, the water flow velocity and flow rate of the water body in the extracted historical monitoring data are divided into a 70% parameter training set and a 30% parameter test set; the 70% parameter training set is input into the deep learning neural network model for training to obtain an initial deep learning neural network model; the 30% parameter test set is used to test the initial deep learning neural network model, and the optimal initial deep learning neural network model that meets the highest accuracy of the pollutant monitoring data judgment of the suspected water quality detection abnormal points is output as the deep learning neural network model, wherein the output strategy formula of the neurons in the deep learning neural network model is: ,in is the output of the n+1 layer of p-term neurons, The connection weight between the nth layer neuron I and the n+1th layer p-term neuron, represents the output of neuron I in layer n, represents the bias of the linear relationship between the nth layer neuron I and the n+1th layer p-term neuron, Represents the Sigmoid activation function; S25, obtaining pollutant monitoring data of water quality monitoring points upstream and downstream of the suspected discharge area at the current time, water flow velocity and flow rate, and importing them into the deep learning neural network model to output the pollutant monitoring data of the corresponding suspected water quality detection abnormal points, and setting them as verification monitoring data; S26, importing the pollutant monitoring data of the suspected water quality detection abnormal point and the verification monitoring data into the verification value calculation formula to calculate the verification value, wherein the verification value calculation formula is: , where zj is the content of the j-th pollutant in the verification monitoring data, and zjm is the content of the j-th pollutant in the pollutant monitoring data of the suspected abnormal water quality detection point.
2. A method for online abnormal analysis of water pollution sources as claimed in claim 1, It is characterized in that The method of setting up a number of water quality monitoring points at equal distances along the water body, obtaining water quality information at the water quality monitoring points, and obtaining the enterprise pollutant emission reporting information of factories near the water body includes the following specific steps: S11, obtaining a water basin that needs to be monitored, setting a number of water quality monitoring points along the water body at a set distance, and obtaining water quality information of the water quality monitoring points in real time, wherein the water quality information includes water flow, flow velocity and various pollutant content data in the water quality, and storing them in the first storage module; S12. Obtain the enterprise pollutant emission reporting information of factories near the water body, wherein the enterprise pollutant emission reporting information includes the type and content percentage data of each pollutant emission reported by the enterprise, and stores it in the second storage module.
3. A method for online abnormal analysis of water pollution sources as claimed in claim 2, It is characterized in that The obtaining of monitoring data verification results and determining whether to conduct pollution source search based on the verification results include the following specific contents: The calculated verification value is compared with the set verification threshold. If the obtained verification value is greater than or equal to the set verification threshold, it means that the monitoring data is abnormal, and the maintenance personnel are prompted to repair the monitoring equipment without searching for the source of pollution. If the obtained verification value is less than the set verification threshold, it is necessary to search for the source of pollution.
4. A method for online abnormal analysis of water pollution sources as claimed in claim 3, It is characterized in that Substituting the verified monitoring data of suspected water quality abnormal points and the enterprise pollutant emission reporting of factories near the water body into the pollution source search strategy to search for pollution sources includes the following specific steps: S41, obtaining the verified monitoring data of the suspected water quality detection abnormal point and the monitoring data of the first water quality monitoring point upstream of the suspected water quality detection abnormal point, calculating the change in the content of various pollutants between the monitoring data of the suspected water quality detection abnormal point and the first water quality monitoring point upstream of the suspected water quality detection abnormal point, and setting it as a pollutant change amount set; S42, obtaining the enterprise pollutant emission reporting content data of the factories along the line between the monitoring data of the suspected water quality detection abnormal point and the first water quality monitoring point upstream of the suspected water quality detection abnormal point, and setting it as the enterprise pollutant emission reporting content set; S43. Import the set of reported pollutant emission contents and the set of pollutant changes of the t-th enterprise into the emission probability calculation formula of the t-th enterprise to calculate the emission probability of the t-th enterprise, where the emission probability calculation formula of the t-th enterprise is: , where sjt is the content of the jth pollutant in the set of reported pollutant emissions of the tth enterprise, and zjs is the content of the jth pollutant in the set of pollutant change amounts; S44. The enterprise corresponding to the largest enterprise emission probability is obtained, and is set as an emission pollution source, and information on the emission pollution source is obtained.
5. A system for online abnormal analysis of water pollution sources, which is implemented based on the method for online abnormal analysis of water pollution sources as claimed in any one of claims 1 to 4. It is characterized in that It specifically includes a data acquisition module, a suspected water quality detection abnormal point acquisition module, a monitoring data verification module, a pollution source search and judgment module, a pollution source search module, a pollution source real-time broadcast module and a control module. The data acquisition module is used to set up a number of water quality monitoring points at equal distances along the water body, obtain water quality information at the water quality monitoring points, and simultaneously obtain the enterprise pollutant emission reporting status of factories near the water body. The suspected water quality detection abnormal point acquisition module is used to analyze the monitoring data of the water quality monitoring points to obtain suspected water quality detection abnormal points.
6. The system for online abnormal analysis of water pollution sources as claimed in claim 5, It is characterized in that The monitoring data verification module is used to import the monitoring data of water quality monitoring points upstream and downstream of the suspected emission area into the suspected water quality detection abnormal point monitoring data verification model for monitoring data verification; the pollution source search and judgment module is used to obtain the monitoring data verification results, and determine whether to conduct pollution source search based on the verification results; the pollution source search module is used to substitute the verified suspected water quality detection abnormal point monitoring data and the enterprise pollutant emission reporting status of factories near the water body into the pollution source search strategy to search for pollution sources; the pollution source real-time broadcast module is used to transmit the pollution source information obtained from the search to the pollution supervision department for real-time broadcast of the pollution source; the control module is used to control the operation of the data acquisition module, the suspected water quality detection abnormal point acquisition module, the monitoring data verification module, the pollution source search and judgment module, the pollution source search module and the pollution source real-time broadcast module.
7. An electronic device, include: A processor and a memory, wherein the memory stores a computer program that can be called by the processor; It is characterized in that the processor executes the method for online anomaly analysis of water pollution sources as described in any one of claims 1 to 4 by calling the computer program stored in the memory.
8. A computer-readable storage medium, It is characterized in that Instructions are stored, and when the instructions are executed on a computer, the computer executes an online abnormality analysis method for water pollution sources as described in any one of claims 1 to 4.
