A method and system for monitoring underground pollutants

Through data correction processing and k-distance calculation, abnormal values ​​in underground pollutant monitoring are identified and screened out, which solves the problem of data noise impact in the existing technology, improves the reliability and accuracy of monitoring results, and ensures the scope of pollution. Effective control.

CN118191253BActive Publication Date: 2024-09-24ZIBO ECOLOGICAL ENVIRONMENT MONITORING CENT OF SHANDONG PROVINCE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410311656.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-19
Publication Date
2024-09-24
Estimated Expiration
2044-03-19

AI Technical Summary

Technical Problem

Data noise and invalid data problems exist in existing underground pollutant monitoring methods, resulting in inaccurate monitoring results and affecting monitoring quality and pollution scope control.

Method used

A method including data correction processing, k distance and local monitoring data reachable density calculation is adopted. Through the first correction processing and the second correction processing, abnormal values ​​are screened out, the reliability of the monitoring data is improved, and k distance and k are used. Distance neighborhoods identify anomalies.

Benefits of technology

It improves the reliability and accuracy of underground pollutant monitoring results, reduces the impact of data noise, can more accurately understand and control the scope and spread of pollution, and protects public health and social production safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118191253B
    Figure CN118191253B
Patent Text Reader

Abstract

The present invention relates to the field of environmental monitoring technology, and in particular to an underground pollutant monitoring method and system. The underground pollutant monitoring method comprises the following steps: acquiring monitoring data of underground pollutants; performing a first correction process and a second correction process on the monitoring data to obtain corrected monitoring data; obtaining the k distance and k distance neighborhood of the corrected monitoring data through the corrected monitoring data, and obtaining the reachable density of local monitoring data using the k distance and the k distance neighborhood; judging the abnormality of underground pollutant monitoring data according to the reachable density of local monitoring data. The present invention solves the problem of the final monitoring quality being affected by data noise during the monitoring process by screening out the abnormal values ​​of underground pollutant monitoring data, improves the reliability of underground pollutant monitoring results, helps to understand and control the scope and spread of pollution, and protects the health of the people and social production safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of environmental monitoring, and in particular to an underground pollutant monitoring method and system. Background Art

[0002] Monitoring underground pollutants helps us to have a deeper understanding of the status of groundwater pollution. Since pollutants in groundwater may have different behaviors and reactions with surface water and soil, accurate monitoring and sampling of pollutants in groundwater can reveal the source, type, concentration and migration and transformation patterns of pollutants, thereby providing a scientific basis for pollution prevention and control. At the same time, underground pollutant monitoring is also crucial to ensuring public water demand and health. Groundwater is one of the important water sources for human life and production, and its quality is directly related to people's health. By monitoring pollutants in groundwater, potential sources of pollution can be discovered and controlled in a timely manner to ensure the safety and reliability of groundwater resources. Underground pollutant monitoring also helps to promote environmental protection and sustainable development. When a pollution incident occurs, underground pollutant monitoring can respond quickly, understand and control the scope and spread of pollution in a timely manner, avoid greater environmental risks and economic losses caused by the spread of pollution, and protect the health of the people and social production safety. Through real-time monitoring and evaluation of groundwater pollution, we can formulate more effective environmental protection policies, strengthen environmental supervision, and promote green development and ecological civilization construction.

[0003] At present, there are two conventional methods for monitoring underground pollutants. The first is on-site sampling, which mainly relies on traditional manual methods and lacks advanced monitoring instruments and equipment, which limits the monitoring efficiency and accuracy. At the same time, manual sampling is more susceptible to human factors, resulting in inaccurate data. The second is to deploy real-time monitoring sensors and transmit monitoring data through the Internet of Things. However, due to factors such as hardware failure caused by the harsh working environment of the sensors, the monitoring process will produce data error noise or invalid data, resulting in inaccurate monitoring results. Therefore, how to conduct high-reliability real-time monitoring and identification of data error noise or invalid data, reduce the impact of data noise during the monitoring process, and improve the final monitoring quality is a problem that needs to be solved urgently. Summary of the invention

[0004] In view of the shortcomings of existing methods and the needs of practical applications, in order to improve the reliability of underground pollutant monitoring results, further understand and control the scope and diffusion of pollution, protect the health of the people and social production safety, and solve the problem of data noise affecting the final monitoring quality during the monitoring process, on the one hand, the present invention provides an underground pollutant monitoring method, the underground pollutant monitoring method comprising the following steps: obtaining underground pollutant monitoring data; performing a first correction process and a second correction process on the monitoring data to obtain corrected monitoring data; obtaining the k distance and k distance neighborhood of the corrected monitoring data through the corrected monitoring data, and using the k distance and the k distance neighborhood to obtain the local monitoring data reachable density; judging the abnormal situation of underground pollutant monitoring data according to the local monitoring data reachable density. The present invention solves the problem of the final monitoring quality being affected by factors such as data noise and invalid data in the underground pollutant monitoring process by screening out the abnormal values ​​of underground pollutant monitoring data, improves the reliability of underground pollutant monitoring results, helps to understand and control the scope and diffusion of pollution, and protect the health of the people and social production safety.

[0005] Optionally, the first correction process satisfies the following formula: Wherein, y represents the first correction processing result, N represents the preset data queue length, and x i Indicates the i-th data. The monitoring data after the first correction processing of the present invention is smoother, the error caused by the interference factor is preliminarily eliminated, and the reliability of the present invention is improved.

[0006] Optionally, the second correction processing includes the following steps: arranging the first correction processing results from large to small; replacing the maximum value, minimum value and middle value in the arrangement result with the mean value to obtain a secondary arrangement result; weighting the secondary arrangement result according to a weight distribution algorithm, replacing the data object to be processed with the weighted data, and obtaining a second correction processing result. The present invention solves the problem of low sensitivity of the first correction processing by processing the monitoring data after the first correction processing through the second correction processing, and further improves the reliability of the present invention.

[0007] Optionally, obtaining the k-distance and k-distance neighborhood of the corrected monitoring data through the corrected monitoring data includes the following steps: obtaining the theoretical distance of the corrected monitoring data through the corrected monitoring data; obtaining the k-distance of the corrected monitoring data according to the theoretical distance; and obtaining the k-distance neighborhood of the corrected monitoring data based on the k-distance of the corrected monitoring data. The present invention provides a calculation range for identifying abnormal monitoring data by obtaining the k-distance and k-distance neighborhood of the corrected monitoring data, thereby further improving the calculation efficiency of the present invention.

[0008] Optionally, the theoretical distance satisfies the following formula: where L represents the theoretical distance, d represents the number of data attribute dimensions, p i represents the value of the i-th dimensional attribute of data p, q i represents the value of the i-th dimensional attribute of data q, ||·|| represents the Euclidean distance, ω i represents the weight of the i-th dimensional attribute. The theoretical distance provided by the present invention further ensures the reliability of the present invention in the identification of monitoring data.

[0009] Optionally, the weight of the i-th dimensional attribute satisfies the following formula: where ω i represents the weight of the i-th dimensional attribute, k represents the k-distance for correcting the monitoring data, Δ represents the difference in the potential value of the i-th dimension between data p i and q i in the i-th dimension, represents the average potential difference of the i-th dimensional data.

[0010] Optionally, the potential value satisfies the following formula: where ε i represents the potential value of the i-th dimension of the monitoring data ε, n represents the number of monitoring data in the i-th dimension, x0 represents the data object, x j represents the j-th monitoring data, ||·|| represents the Euclidean distance; the average potential difference satisfies the following formula: where represents the average potential difference of the i-th dimensional data, D i represents the set of monitoring data in the i-th dimension, ε p and ε q represent the potential values of the i-th dimension of the monitoring data p and the monitoring data q respectively, n represents the number of monitoring data in the i-th dimension, 丨·丨 represents the absolute value.

[0011] Optionally, obtaining the local reachability density of the monitoring data by using the k-distance and the k-distance neighborhood satisfies the following formula: where ρ represents the local reachability density of the monitoring data, q represents the monitoring data, N k represents the k-distance neighborhood, max(·) represents the maximum value, k1 represents the k-distance, k2 represents the theoretical distance of the k monitoring data closest to q, and card(·) represents the element number function. The local reachability density of the monitoring data provided by the present invention provides a reliable basis for finally accurately identifying invalid monitoring data and abnormal detection data, and improves the robustness of the present invention.

[0012] Optionally, judging the abnormal situation of the underground pollutant monitoring data according to the local reachability density of the monitoring data satisfies the following formula: Among them, H represents the judgment result, H = 0 means that the underground pollutant monitoring data is normal, and H = 1 means that the underground pollutant monitoring data is abnormal. represents the judgment factor, q represents monitoring data, N k represents the k-distance neighborhood, ρ q represents the local monitoring data reachable density of q, ρ i represents the monitoring data object, card(·) represents the element quantity function, and λ represents the monitoring data abnormality threshold. The present invention eliminates the interference of human factors through automatic discrimination, and further improves the accuracy of the present invention.

[0013] In the second aspect, in order to efficiently execute the underground pollutant monitoring method provided by the present invention, the present invention also provides an underground pollutant monitoring system, including a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the underground pollutant monitoring method as described in the first aspect of the present invention. The underground pollutant monitoring system of the present invention has a compact structure and stable performance, and can stably execute the underground pollutant monitoring method provided by the present invention, further improving the overall applicability and practical application ability of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A flow chart of an underground pollutant monitoring method of the present invention;

[0015] Figure 2 A framework diagram of an underground pollutant monitoring system of the present invention;

[0016] Figure 3 A schematic diagram of the structure of an underground pollutant monitoring device provided in an embodiment. DETAILED DESCRIPTION

[0017] The specific embodiments of the present invention will be described in detail below. It should be noted that the embodiments described herein are only for illustration and are not intended to limit the present invention. In the following description, a large number of specific details are set forth in order to provide a thorough understanding of the present invention. However, it is obvious to those of ordinary skill in the art that these specific details do not need to be adopted to implement the present invention. In other examples, in order to avoid confusing the present invention, known circuits, software or methods are not specifically described.

[0018] Throughout the specification, references to "one embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment of the present invention. Therefore, the phrases "in one embodiment," "in an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily all refer to the same embodiment or example. In addition, particular features, structures, or characteristics may be combined in one or more embodiments or examples in any suitable combination and / or subcombination. In addition, it should be understood by those of ordinary skill in the art that the figures provided herein are for illustrative purposes and that the figures are not necessarily drawn to scale.

[0019] See also Figure 1 , Figure 1 This is a flow chart of an underground pollutant monitoring method of the present invention. In order to improve the reliability of underground pollutant monitoring results, further understand and control the scope and spread of pollution, protect the health of the people and social production safety, and solve the problem that data noise affects the final monitoring quality during the monitoring process, the present invention provides an underground pollutant monitoring method, such as Figure 1 As shown, the method comprises the following steps:

[0020] S1. Obtain monitoring data of underground pollutants.

[0021] In one embodiment, since there are many kinds of pollutants in groundwater, the impacts they cause are all different. Based on the Internet of Things, detection sensors are used to monitor underground pollutants in real time, and its essence is to detect various parameters in groundwater. For example, the urban water environment quality index is calculated using 21 indicators in Table 1 of the "Surface Water Environment Quality Standard" (GB 3838-2002) except for water temperature, fecal coliform group and total nitrogen. However, the process of obtaining these 21 water quality parameters is very time-consuming and costly. In view of the working environment of the detection sensor and the number and cost of monitoring equipment, the monitoring data of underground pollutants in this embodiment selects water quality parameter data with lower monitoring cost, and the water quality parameters include pH value, dissolved oxygen, permanganate index, chemical oxygen demand, biochemical oxygen demand, ammonia nitrogen, and total phosphorus.

[0022] In another embodiment, the pH sensor is a sensor for detecting the concentration of hydrogen ions in an object to be measured and converting it into a corresponding usable output signal. It is generally composed of a chemical part and a signal transmission part, and can quickly and accurately obtain the pH value.

[0023] A dissolved oxygen sensor is a device used to measure the concentration of oxygen dissolved in a liquid (usually water). The working principle of this sensor usually involves reacting oxygen molecules with a specific part of the sensor, and then converting this reaction into an electrical signal that can be measured and recorded. There are many types of dissolved oxygen sensors, including diffused silicon dissolved oxygen meters, photoelectric dissolved oxygen meters, pyroelectric solubility product sensors, etc. These sensors have their own characteristics. For example, diffused silicon dissolved oxygen meters use diffused silicon diaphragms and zirconium oxide semiconductor sensitive elements to measure the concentration of oxygen, while photoelectric dissolved oxygen meters use the principle of photoelectric effect to determine the oxygen content in the air.

[0024] The permanganate index sensor is a sensor specifically used to detect the permanganate index in a solution. It usually uses an optical sensor to sense the color change of the solution and then determines the value of the permanganate index. The working principle of the permanganate index sensor is based on the chemical reaction between permanganate and the substance to be tested. This reaction will cause the color of the solution to change. The sensor captures this color change through a built-in optical system and converts it into a readable electrical signal or digital signal, thereby achieving accurate measurement of the permanganate index.

[0025] The chemical oxygen demand sensor is an electronic device used to measure the chemical oxygen demand in water bodies. Its working principle is to react the organic matter in the water sample with a specific oxidant, measure the amount of oxygen consumed during the reaction, and thus obtain the chemical oxygen demand value of the organic matter in the water sample.

[0026] A biochemical oxygen demand sensor is a sensor used to measure the biochemical oxygen demand in water. Its working principle usually involves the decomposition of organic matter in water by microorganisms and measuring the resulting dissolved oxygen consumption. The sensor may contain a microbial membrane or culture medium to simulate microbial activity in the natural environment. When the water sample passes through the sensor, the organic matter in it is decomposed by microorganisms, resulting in a decrease in dissolved oxygen. The sensor determines the biochemical oxygen demand value by measuring this decrease.

[0027] Ammonia nitrogen sensor is an online device specially used to detect ammonia nitrogen content in water. It is suitable for various water bodies, including lakes, streams, groundwater and wastewater. The working principle of ammonia nitrogen sensor is mainly based on ion selection method or electrode method to measure ammonium ions. Specifically, the working electrode, reference electrode, ion selective membrane and electrolyte inside the sensor together constitute a measurement system. Only the ammonium ions to be measured can migrate through the ion selective membrane and undergo charge changes, generating a potential on the working electrode. This potential value is proportional to the concentration of the ions, while the potential of the reference electrode remains constant. In this way, the sensor can accurately measure the ammonia nitrogen content in the water.

[0028] The total phosphorus sensor is an instrument specifically used to measure the total phosphorus content in water. It uses specific sensing principles and technologies to convert the total phosphorus concentration in the water into a readable digital signal, thereby achieving accurate measurement of the phosphorus content in the water.

[0029] In an embodiment, monitoring sensors are deployed according to underground pollutant monitoring requirements and actual environmental conditions, and an Internet of Things is constructed based on the deployed monitoring sensors to obtain underground pollutant monitoring data in real time.

[0030] S2. Perform a first correction process and a second correction process on the monitoring data to obtain corrected monitoring data.

[0031] In an optional embodiment, the first correction process in step S2 satisfies the following formula: Wherein, y represents the first correction processing result, N represents the preset data queue length, and x i Represents the i-th data.

[0032] Specifically, firstly, a data queue length is preset to be N, where N>3, and the values ​​in the data queue are compared with the data obtained from each monitoring. The maximum and minimum values ​​in the data are discarded, and the effective value is set as the arithmetic mean of the remaining data. The monitoring data is collected for cyclic calculation to obtain smoother data.

[0033] In another optional embodiment, the second correction processing in step S2 includes the following steps: arranging the first correction processing results from large to small; replacing the maximum value, minimum value and middle value in the arrangement result with the mean to obtain a secondary arrangement result; performing weighted processing on the secondary arrangement result according to a weight allocation algorithm, replacing the data object to be processed with the weighted data, and obtaining a second correction processing result.

[0034] Specifically, the four original data before and after the data object to be processed are obtained and arranged in ascending order to obtain a one-dimensional array represented by α = [α1, α2, α3, α4, α5, α6, α7, α8, α9]. The sorted monitoring data satisfies: α1 < α2 < α3 < α4 < α5 < α6 < α7 < α8 < α9. Replace α1, α5 and α9 in the one-dimensional array to obtain a new one-dimensional array and express it as By using a weight distribution algorithm, weighted data is obtained according to the nearest position of the data distance α0 in the new one-dimensional array, and the weighted data is used to replace the data object to be processed to obtain a second correction processing result.

[0035] Furthermore, the weight distribution algorithm satisfies the following formula: Wherein, F(x) is the weight, x represents the nearest rank of the data in the new one-dimensional array to α0, and σ represents the standard deviation of the normal distribution. In this embodiment, σ=1.

[0036] S3. Obtain the k distance and k distance neighborhood of the corrected monitoring data through the corrected monitoring data, and obtain the reachable density of the local monitoring data using the k distance and the k distance neighborhood.

[0037] In an optional embodiment, step S3 of obtaining the k-distance and k-distance neighborhood of the corrected monitoring data through the corrected monitoring data includes the following steps: obtaining the theoretical distance of the corrected monitoring data through the corrected monitoring data; obtaining the k-distance of the corrected monitoring data based on the theoretical distance; and obtaining the k-distance neighborhood of the corrected monitoring data based on the k-distance of the corrected monitoring data.

[0038] Furthermore, the theoretical distance satisfies the following formula: Among them, L represents the theoretical distance, d represents the number of data attribute dimensions, and p i Represents the value of the i-th dimension attribute of data p, q i represents the value of the i-th dimension attribute of data q, ||·|| represents the Euclidean distance, ω i Represents the weight of the i-th dimension attribute.

[0039] Specifically, the pH value, dissolved oxygen, permanganate index, chemical oxygen demand, biochemical oxygen demand, ammonia nitrogen, and total phosphorus contained in the monitoring data are dimensional attributes of the monitoring data. After calculating the theoretical distance of each data, the data are arranged in ascending order. The theoretical distance from the data object to the kth data is defined as the k distance. The data set whose theoretical distance to the data object is less than the k distance is defined as the k distance neighborhood. The value of k is determined according to the number of monitoring devices. In this embodiment, the value of k is 30% of the number of monitoring devices.

[0040] Furthermore, the weight of the i-th dimension attribute satisfies the following formula: Among them, ω i represents the weight of the i-th dimension attribute, k represents the k-distance of the corrected monitoring data, and Δ represents the data p i and q i The difference in potential value in the i-th dimension, Indicates the average potential difference of the i-th dimension data. In the embodiment, the weight of the i-th dimension attribute is adjusted according to experiments or experience.

[0041] In one embodiment, the potential value satisfies the following formula: Among them, ε i represents the potential value of the i-th dimension of the monitoring data ε, n represents the number of monitoring data in the i-th dimension, x0 represents the data object, xj Denote the j-th monitoring data, and ||·|| denote the Euclidean distance; the average potential difference satisfies the following formula: Where, Denote the average potential difference of the i-th dimensional data, D i Denote the set of the i-th dimensional monitoring data, ε p and ε q Denote the i-th dimensional potential values of the monitoring data p and the monitoring data q respectively, n denotes the number of the i-th dimensional monitoring data, and 丨·丨 denotes the absolute value.

[0042] In another optional embodiment, the obtaining of the local monitoring data reachability density by using the k-distance and the k-distance neighborhood in step S3 satisfies the following formula: Where, ρ denotes the local monitoring data reachability density, q denotes the monitoring data, N k Denotes the k-distance neighborhood, max(·) denotes the maximum value, k1 denotes the k-distance, k2 denotes the theoretical distance of the k monitoring data closest to q, and card(·) denotes the element number function.

[0043] S4. Determine the abnormality of the underground pollutant monitoring data according to the local monitoring data reachability density.

[0044] In one embodiment, the determining of the abnormality of the underground pollutant monitoring data according to the local monitoring data reachability density in step S4 satisfies the following formula: Where, H denotes the judgment result, H = 0 indicates that there is no abnormality in the underground pollutant monitoring data, H = 1 indicates that the underground pollutant monitoring data is abnormal, Denotes the judgment factor, q denotes the monitoring data, N k Denotes the k-distance neighborhood, ρ q Denotes the local monitoring data reachability density of q, ρ i Denotes the monitoring data object, card(·) denotes the element number function, and λ denotes the monitoring data abnormality threshold.

[0045] In yet another embodiment, accurately identify the monitoring abnormal data according to the abnormality of the underground pollutant monitoring data, and perform underground pollutant analysis based on the monitoring data after removing the monitoring abnormal data, and construct a prediction model by using the random forest or extreme gradient boosting algorithm to obtain environmental indicators such as the urban water environment quality index.

[0046] Please refer to Figure 2 , Figure 2This is a framework diagram of an underground pollutant monitoring system of the present invention. In an embodiment, in order to efficiently execute an underground pollutant monitoring method provided by the present invention, the present invention also provides an underground pollutant monitoring system, including: an input device, an output device, a processor, and a memory. The input device, the output device, the processor, and the memory are interconnected. The memory contains program instructions, and the program instructions are used for the steps of the underground pollutant monitoring method. The underground pollutant monitoring system of the present invention has a compact structure and stable performance, and can stably execute an underground pollutant monitoring method of the present invention, further improving the overall applicability and practical application capabilities of the present invention.

[0047] In an optional embodiment, the processor may be a central processing unit (CPU), which may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. An input device may be used to obtain data information. An output device may be used to output the results obtained by storing program instructions contained in a computer program in a memory provided by the present invention. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the type of device.

[0048] In yet another alternative embodiment, see Figure 3 , Figure 3 The structure diagram of an underground pollutant monitoring device provided in the embodiment is as follows. In order to efficiently execute an underground pollutant monitoring method provided in the present invention, the embodiment further provides an underground pollutant monitoring device, such as Figure 3 As shown, including:

[0049] The memory 10 is used to store computer programs; the processor 20 is used to execute the computer programs to implement the above-mentioned underground pollutant monitoring method.

[0050] Memory 10 , processor 20 , communication interface 31 and communication bus 32 . Memory 10 , processor 20 , communication interface 31 all communicate with each other via communication bus 32 .

[0051] In an embodiment, the memory 10 is used to store one or more programs, and the program may include a program code, and the program code includes computer operating instructions. In an embodiment of the present application, the memory 10 may store a program for implementing the following functions: obtaining monitoring data of underground pollutants; performing a first correction process and a second correction process on the monitoring data to obtain corrected monitoring data; obtaining the k distance and k distance neighborhood of the corrected monitoring data through the corrected monitoring data, and obtaining the reachable density of local monitoring data using the k distance and the k distance neighborhood; judging abnormal conditions of underground pollutant monitoring data based on the reachable density of local monitoring data.

[0052] In a possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0053] In addition, the memory 10 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include an NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and processing hardware-based tasks.

[0054] The processor 20 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, a microprocessor or any conventional processor, etc. The processor 20 may call a program stored in the memory 10 .

[0055] The communication interface 31 may be an interface of a communication module, and is used to connect to other devices or systems.

[0056] Of course, it should be noted that Figure 3 The structure shown does not constitute a limitation on the underground pollutant monitoring device in this embodiment. In actual applications, the underground pollutant monitoring device may include Figure 3 More or fewer components than shown, or combinations of certain components.

[0057] The embodiment also provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the underground pollutant monitoring method described above are implemented.

[0058] The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0059] In summary, the present invention processes and screens the monitoring data of underground pollutants to remove abnormal values, thereby solving the problem of data noise affecting the final monitoring quality during the monitoring process, improving the reliability of underground pollutant monitoring results, and helping to understand and control the scope and spread of pollution, and protecting the health of the people and social production safety. Therefore, the present invention effectively overcomes the various shortcomings of the prior art and has a high industrial utilization value.

[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A method for monitoring underground pollutants, characterized in that: The underground pollutant monitoring method comprises the following steps: Obtain monitoring data on underground contaminants; Performing a first correction process and a second correction process on the monitoring data to obtain corrected monitoring data; Obtaining a k distance and a k distance neighborhood of the corrected monitoring data through the corrected monitoring data, and obtaining a reachable density of local monitoring data using the k distance and the k distance neighborhood; According to the reachable density of the local monitoring data, determine the abnormality of underground pollutant monitoring data; The first correction process satisfies the following formula: Wherein, y represents the first correction processing result, N represents the preset data queue length, and x i Represents the i-th data; The second correction process comprises the following steps: Arrange the first correction processing results from largest to smallest; Use the mean to replace the maximum value, minimum value and middle value in the arrangement result to obtain the secondary arrangement result; Performing weighted processing on the secondary arrangement result according to a weight distribution algorithm, replacing the data object to be processed with the weighted data, and obtaining a second correction processing result; The step of obtaining the k distance and the k distance neighborhood of the corrected monitoring data through the corrected monitoring data comprises the following steps: Obtaining a theoretical distance of the corrected monitoring data through the corrected monitoring data; According to the theoretical distance, obtaining the k distance of the corrected monitoring data; Based on the k-distance of the corrected monitoring data, obtaining a k-distance neighborhood of the corrected monitoring data; The theoretical distance satisfies the following formula: Among them, L represents the theoretical distance, d represents the number of data attribute dimensions, and p i Represents the value of the i-th dimension attribute of data p, q i represents the value of the i-th dimension attribute of data q, ||·|| represents the Euclidean distance, and ω represents the weight of the i-th dimension attribute; The weight of the i-th dimension attribute satisfies the following formula: Among them, ω i represents the weight of the i-th dimension attribute, k represents the k-distance of the corrected monitoring data, and Δ represents the data p i and q i The difference in potential value in the i-th dimension, represents the average potential difference of the i-th dimension data; The potential value satisfies the following formula: Among them, ε i represents the potential value of the i-th dimension of the monitoring data ε, n represents the number of monitoring data in the i-th dimension, x0 represents the data object, x j represents the jth monitoring data, ||·|| represents the Euclidean distance; The average potential difference satisfies the following formula: Among them, represents the average potential difference of the i-th dimensional data, D i represents the i-th dimensional monitoring data set, ε p , ε q respectively represent the i-th dimensional potential values of the monitoring data p and the monitoring data q, n represents the number of the i-th dimensional monitoring data, and 丨·丨 represents the absolute value; The local monitoring data reachable density is obtained by using the k distance and the k distance neighborhood, satisfying the following formula: Among them, ρ represents the local monitoring data reachable density, q represents the monitoring data, N k represents the k-distance neighborhood, max(·) represents the maximum value, k1 represents the k-distance, k2 represents the theoretical distance of the k closest monitoring data to q, and card(·) represents the element number function; The abnormality of underground pollutant monitoring data is judged according to the reachable density of the local monitoring data, and satisfies the following formula: Among them, H represents the judgment result, H = 0 means that the underground pollutant monitoring data is normal, and H = 1 means that the underground pollutant monitoring data is abnormal. represents the judgment factor, q represents monitoring data, N k represents the k-distance neighborhood, ρ q represents the local monitoring data reachable density of q, ρ i represents the monitoring data object, card(·) represents the element number function, and λ represents the abnormal threshold of the monitoring data.

2. An underground pollutant monitoring system, characterized in that: The underground pollutant monitoring system includes: an input device, an output device, a processor, and a memory. The input device, output device, processor, and memory are interconnected. The memory includes program instructions, and the program instructions are used to execute the steps of the underground pollutant monitoring method described in claim 1.