A pollution source tracing system and method based on water quality parameter inversion map

Through automated processing based on water quality parameter inversion maps, the problem of low water environmental pollution detection efficiency in the existing technology is solved, efficient pollution source traceability and sensitivity monitoring are achieved, and the need for manual investigation is reduced.

CN114693810BActive Publication Date: 2024-09-06CHANGZHOU XINYI SPACE INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210307259.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2024-09-06
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

Water environmental pollution detection in the existing technology requires a lot of manpower and material resources, and is inefficient. It is difficult to detect and investigate pollution sources in a timely manner, affecting water pollution control.

Method used

The pollution source tracing method based on the water quality parameter inversion map is adopted, and the water quality parameter inversion map is processed by extracting and coloring, filtering, concentration histogram statistics, optimal division and RGB color map conversion, combined with vector data analysis, automatic extraction and positioning For suspected pollution points, a special report on pollution sources is generated.

Benefits of technology

It improves the efficiency of traceability of water pollution sources, enhances sensitivity to changes in water quality, reduces the need for manual investigations, and improves the accuracy and scientificity of locating contaminated areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114693810B
    Figure CN114693810B
Patent Text Reader

Abstract

The present invention discloses a pollution source tracing system and method based on a water quality parameter inversion map, comprising step S100: coloring the water quality parameter inversion map to obtain a first inversion map; step S200: filtering the first inversion map to obtain a second inversion map; step S300: counting the water quality parameter concentration value of each pixel in the second inversion map to form a concentration histogram; obtaining the water quality parameter concentration value range of the second inversion map; step S400: obtaining the optimal division concentration interval and the total number of optimal division intervals based on the water quality parameter concentration value range of the second inversion map; step S500: converting the second inversion map into an RGB color map; converting the RGB of each pixel in the RGB color map into the HSV range of color, and obtaining the HSV value range corresponding to yellow and red; step S600: extracting and locating suspected pollution points; step S700: performing spatial analysis based on vector data of each suspected pollution point and surrounding building facilities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pollutant source tracing, and in particular to a pollution source tracing system and method based on a water quality parameter inversion map. Background Art

[0002] With the rapid development of science and technology, the efficiency of urban construction has gradually increased, and the pollution of water environment has gradually become more and more serious; however, it is difficult for people to take into account the pollution problems caused to the water environment while promoting relevant urban construction projects, or to promptly perceive the adverse effects on the surrounding water environment;

[0003] Therefore, if the adverse changes in the surrounding water environment can be effectively detected and the relevant pollution sources that cause adverse changes in the water environment can be discovered in a timely manner, it will play a vital role in effectively controlling the occurrence of water pollution.

[0004] The existing technology often requires manual on-site water quality data surveys, and then the degree of water pollution is judged based on the water quality data obtained from the survey, and finally the surrounding construction facilities are checked one by one; this method often consumes a lot of manpower and material resources, and is not efficient. Summary of the invention

[0005] The purpose of the present invention is to provide a pollution source tracing system and method based on water quality parameter inversion map to solve the problems raised in the above background technology.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a pollution source tracing method based on a water quality parameter inversion map, the pollution source tracing method comprising:

[0007] Step S100: extracting a water quality parameter inversion map of the target detection area, the water quality parameter inversion map is a raster image, coloring the water quality parameter inversion map to obtain a first inversion map; reading and analyzing the pixel value in each pixel in the first inversion map; the pixel value is the water quality parameter concentration value;

[0008] Step S200: setting a minimum unit pixel area, and filtering the water quality parameter concentration value of each pixel in the first inversion map based on the minimum unit pixel area to obtain a second inversion map;

[0009] Step S300: Counting the water quality parameter concentration value of each pixel in the second inversion map to form a concentration histogram; in the water quality parameter concentration value histogram, the horizontal axis represents the water quality parameter concentration value, and the vertical axis represents the number of water quality parameter concentration intervals; removing the highest concentration and the lowest concentration in the concentration histogram to obtain the water quality parameter concentration value range of the second inversion map;

[0010] Step S400: deriving the optimal concentration interval and the total number of optimal intervals based on the concentration value range of the water quality parameter of the second inversion map;

[0011] Step S500: Based on step S400, the second inversion map is colorized, and the second inversion map is converted into an RGB color map; in the RGB color map, the RGB of each pixel is converted into an HSV range of color, and the HSV value range corresponding to yellow and red is obtained;

[0012] Step S600: extracting and locating suspected pollution points;

[0013] Step S700: Perform spatial analysis based on the vector data of each suspected pollution point and surrounding buildings and facilities, and generate a pollution source report corresponding to each suspected pollution point.

[0014] Furthermore, the process of filtering the water quality parameter concentration value of each pixel in the first inversion map based on the minimum unit pixel area in step S200 includes:

[0015] Step S201: Select each pixel position in the first inversion map one by one. When filtering the pixel with the position coordinate (x, y) in the first inversion map, it is necessary to filter the pixels at the positions adjacent to the pixel with the position coordinate (x, y) at the same time. The number of adjacent pixels must meet the number of pixels included in the minimum unit pixel area. The number of pixels included in the minimum unit pixel area is n.

[0016] Step S202: The water quality parameter concentration value of each pixel in the minimum unit pixel area is calculated according to the formula: G = median [f (x, y) + f1 (x, y) + f2 (x, y) + ... + f n (x, y)]; where f(x, y) represents the concentration value of the water quality parameter of the pixel with the position coordinate (x, y); f1(x, y), f2(x, y), ..., f n (x, y) represents the water quality parameter concentration value of the pixel adjacent to the pixel with position coordinates (x, y); f1(x, y) represents the water quality parameter concentration value of the first pixel adjacent to the pixel with position coordinates (x, y); f2(x, y) represents the water quality parameter concentration value of the second pixel adjacent to the pixel with position coordinates (x, y); f n (x, y) represents the water quality parameter concentration value of the last pixel adjacent to the pixel with the position coordinates (x, y);

[0017] Step S203: traverse each pixel in the first inversion image to complete smoothing filtering;

[0018] Since there may be certain errors in the inversion concentration in the inversion map, especially the concentration values ​​between adjacent pixels at individual points have certain high and low changes, and this part of the high and low changes are similar to noise, the above method can be used to process the abnormal places with high and low changes in concentration values ​​in the image and achieve the effect of reducing image noise.

[0019] Furthermore, the process of obtaining the optimal concentration interval and the total number of optimal intervals in step S400 includes:

[0020] Step S401: based on the concentration value range of the water quality parameter of the second inversion map, randomly set the concentration intervals, each setting of the concentration intervals corresponds to a total number of the divided intervals; each setting of the concentration intervals corresponds to a division method;

[0021] Step S402: extract each partition interval in each partition method respectively; record the number of water quality parameter concentration values ​​contained in a partition interval in the jth partition method as N j ; Assume that the concentration value of the i-th water quality parameter in a certain partition interval in the j-th partition method is Z ij ; The average value of all water quality parameter concentration values ​​in the i-th partition interval in the j-th partition method is Z ij ′; k j Table 1. The total number of partition intervals corresponding to the jth partition method;

[0022] Step S403: Calculate the square sum of deviations of each flower interval in each division method Calculate the sum of squared deviations of all partition intervals within each partition method

[0023] Step S404: Calculate the variance goodness of fit GVF = (SDAM-SDCM) / SDAM of each partitioning method; select the partitioning method with the GVF closest to 1 as the best partitioning method, the partitioning concentration interval set in the best partitioning method is the best partitioning concentration interval finally obtained, and the total number of partitioning intervals corresponding to the best partitioning concentration interval in the best partitioning method is the total number of best partitioning intervals finally obtained;

[0024] The above method uses clustering thinking, so that the similarity within each concentration interval in the final division method is maximized, while the difference between different concentration intervals is maximized; the above method also determines the best division method by iteratively comparing the variance fitting degree obtained for each division method.

[0025] Furthermore, the process of coloring the second inversion image in step S500 includes:

[0026] Step S501: Divide the concentration value range of the water quality parameter of the second inversion map according to the optimal divided concentration interval to obtain the corresponding total number L of optimal divided intervals; divide the green-yellow-red gradient color band evenly into L colors; each color has a corresponding RGB value;

[0027] Step S502: assigning colors from low to high corresponding to green, yellow, and red to each concentration interval obtained after concentration division;

[0028] Step S503: converting the second inversion image from a grayscale image to an RGB color image;

[0029] The above method can make the subsequent extraction of the outline of the suspected contaminated area more accurate, and at the same time save a lot of data processing burden, making the tracing method and tracing results more accurate and scientific.

[0030] Furthermore, the process of extracting and locating suspected pollution points in step S600 includes:

[0031] Step S601: successively taking yellow and red as target colors; respectively changing the colors other than the target colors to black background in the RGB color map, retaining only the target colors, and retaining only the image data of the red pixels in the RGB color map;

[0032] Step S602: Binarization is performed on the RGB color image, and the points on the image are converted into two values, 0 and 255, to obtain a binary image; in the binary image, the red part or the yellow part is converted into white, and the background is black;

[0033] Step S603: Connect the breakpoints of each white area in the binary image that are smaller than the distance threshold by using the expansion algorithm; extract the outline rectangle of the white area by using the boundingRect function, and return the x and y coordinates of the upper left corner of the outline rectangle parameters and the width and height w and h of the outline rectangle;

[0034] Step S604: Calculate the center point of each outline rectangle, use the obtained center point coordinates as the suspected pollution point positioning coordinates, and generate shp vector format data from the suspected pollution point positioning coordinates;

[0035] Because some white areas in the binary image may have concentration value mutations in the middle or at the edges, resulting in color differences and missing or disconnected white areas; the dilation operation is to perform convolution between the target image and the set kernel to find the local maximum value, which can make the white area grow and connect the breakpoints.

[0036] Furthermore, the process of generating the pollution source special report in step S700 includes:

[0037] Step S701: Taking the coordinates of the suspected pollution point as the center, inputting the range radius, screening the construction facilities within the range, and extracting the ID and name information of the construction facilities recorded according to the rules before sorting based on the close distance as the suspected pollution source;

[0038] Step S702: obtaining the coordinates, time and other information of the track points that have been synchronously recorded when the video was shot; when the similarity between the coordinates of the video track points and the coordinates of the suspected pollution points is greater than the similarity threshold, calculating the difference between the UTC time corresponding to the track point and the UTC time of the starting track point, that is, the shooting time of the video;

[0039] Step S703: capture pictures of the time when the video was shot, the time interval before the video was shot, and the time interval after the video was shot as on-site screenshots; collect each suspected pollution point, and record the coordinates of each suspected pollution point, each suspected pollution source, and several on-site screenshots; summarize and generate a special report on pollution source tracing.

[0040] In order to better implement the above method, a pollution source tracing system based on water quality parameter inversion map is also proposed. The pollution source tracing system includes: filtering processing module, concentration division module, coloring processing module, suspected pollution point extraction processing module, and pollution source special report generation module;

[0041] A filtering processing module, used for filtering the water quality parameter concentration value of each pixel in the first inversion map;

[0042] A concentration division module is used to receive data from the filtering processing module and to obtain the optimal division concentration interval and the total number of optimal division intervals for the concentration value range of the water quality parameter of the second inversion map;

[0043] A coloring processing module is used to receive data from the concentration division module, perform coloring processing on the second inversion map, and convert the second inversion map into an RGB color map;

[0044] The suspected pollution point extraction and processing module is used to receive the data in the coloring processing module and complete the extraction and positioning of the suspected pollution points;

[0045] The pollution source special report generation module is used to receive the data in the suspected pollution point extraction and processing module, perform spatial analysis based on the vector data of each suspected pollution point and surrounding building facilities, and generate a pollution source special report corresponding to each suspected pollution point.

[0046] Furthermore, the concentration division module includes: a division unit, a calculation unit, and an analysis and selection unit;

[0047] A division unit is used to set different division methods, each of which corresponds to a division concentration interval;

[0048] A calculation unit, used for receiving data in the division unit and calculating the variance fitting goodness of each division method;

[0049] The analysis and selection unit is used to receive the data in the calculation unit and select the best partition concentration interval and the best total number of partition intervals based on the variance fitting goodness of fit corresponding to each partition method.

[0050] Furthermore, the suspected pollution point extraction processing module includes a target color processing unit, a binarization processing unit, a contour extraction processing unit, and a suspected pollution point confirmation unit;

[0051] A target color processing unit is used to select a target color and perform color removal processing on the RGB color image after the target color is selected;

[0052] A binarization processing unit is used to receive data from the target color processing unit and perform binarization processing on the image that has completed the color removal processing;

[0053] Contour extraction processing unit; used to receive data from the binarization processing unit and extract the contour of the target area;

[0054] The suspected contaminated point confirmation unit is used to receive the data in the contour extraction processing unit and extract the corresponding suspected contaminated point information based on the coordinate vector information of the target area contour.

[0055] Compared with the prior art, the beneficial effects achieved by the present invention are: the present invention does not require manual on-site water quality data investigation, and the suspected pollution points are found based on the analysis and processing of the water quality parameter inversion map; and the natural breakpoint method is adopted in the process of determining the suspected pollution points, and the concentration values ​​of each water quality parameter in the water quality parameter inversion map are divided by the natural breakpoint method to obtain the suspected areas where water pollution problems occur; and then the divided concentration areas are corresponded to the color bands that have also been divided, so that the size of the polluted area and the specific coordinates of the polluted area can be clearly displayed on the final image; the efficiency of tracing the source of water pollution is improved, and at the same time, the sensitivity to whether the surrounding water quality is polluted is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0057] Figure 1 It is a schematic flow chart of a pollution source tracing method based on a water quality parameter inversion diagram of the present invention;

[0058] Figure 2 It is a structural schematic diagram of a pollution source tracing system based on a water quality parameter inversion diagram of the present invention;

[0059] Figure 3 This is Example 1 of a pollution source tracing method based on a water quality parameter inversion map of the present invention. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] See also Figure 1-Figure 3 The present invention provides a technical solution: a pollution source tracing method based on a water quality parameter inversion map, the pollution source tracing method comprising:

[0062] Step S100: extracting a water quality parameter inversion map of the target detection area, the water quality parameter inversion map is a raster image, coloring the water quality parameter inversion map to obtain a first inversion map; reading and analyzing the pixel value in each pixel in the first inversion map; the pixel value is the water quality parameter concentration value;

[0063] Step S200: setting a minimum unit pixel area, and filtering the water quality parameter concentration value of each pixel in the first inversion map based on the minimum unit pixel area to obtain a second inversion map;

[0064] The process of filtering the water quality parameter concentration value of each pixel in the first inversion map based on the minimum unit pixel area in step S200 includes:

[0065] Step S201: Select each pixel position in the first inversion map one by one. When filtering the pixel with the position coordinate (x, y) in the first inversion map, it is necessary to filter the pixels at the positions adjacent to the pixel with the position coordinate (x, y) at the same time. The number of adjacent pixels must meet the number of pixels included in the minimum unit pixel area. The number of pixels included in the minimum unit pixel area is n.

[0066] Step S202: The water quality parameter concentration value of each pixel in the minimum unit pixel area is calculated according to the formula: G = median [f (x, y) + f1 (x, y) + f2 (x, y) + ... + f n (x, y)]; where f(x, y) represents the concentration value of the water quality parameter of the pixel with the position coordinate (x, y); f1(x, y), f2(x, y), ..., f n(x, y) represents the water quality parameter concentration value of the pixel adjacent to the pixel with position coordinates (x, y); f1(x, y) represents the water quality parameter concentration value of the first pixel adjacent to the pixel with position coordinates (x, y); f2(x, y) represents the water quality parameter concentration value of the second pixel adjacent to the pixel with position coordinates (x, y); f n (x, y) represents the water quality parameter concentration value of the last pixel adjacent to the pixel with the position coordinates (x, y);

[0067] Step S203: traverse each pixel in the first inversion image to complete smoothing filtering;

[0068] For example, the minimum unit pixel area is a 3*3 pixel area, n=9; Figure 3 As shown in the bold frame, it means filtering the water quality parameter concentration value of "48"; at this time, f1(x, y), f2(x, y), ..., f n (x, y) are 44, 49, 45, 26, 17, 39, 8, 14 respectively;

[0069] Step S300: Counting the water quality parameter concentration value of each pixel in the second inversion map to form a concentration histogram; in the water quality parameter concentration value histogram, the horizontal axis represents the water quality parameter concentration value, and the vertical axis represents the number of water quality parameter concentration intervals; removing the highest concentration and the lowest concentration in the concentration histogram to obtain the water quality parameter concentration value range of the second inversion map;

[0070] Step S400: deriving the optimal concentration interval and the total number of optimal intervals based on the concentration value range of the water quality parameter of the second inversion map;

[0071] The process of obtaining the optimal concentration interval and the total number of optimal intervals in step S400 includes:

[0072] Step S401: based on the concentration value range of the water quality parameter of the second inversion map, randomly set the concentration intervals, each setting of the concentration intervals corresponds to a total number of the divided intervals; each setting of the concentration intervals corresponds to a division method;

[0073] Step S402: extract each partition interval in each partition method respectively; record the number of water quality parameter concentration values ​​contained in a partition interval in the jth partition method as N j ; Assume that the concentration value of the i-th water quality parameter in a certain partition interval in the j-th partition method is Z ij ; The average value of all water quality parameter concentration values ​​in the i-th partition interval in the j-th partition method is Z ij ′; k j Table 1. The total number of partition intervals corresponding to the jth partition method;

[0074] Step S403: Calculate the square sum of deviations of each flower interval in each division method Calculate the sum of squared deviations of all partition intervals within each partition method

[0075] Step S404: Calculate the variance goodness of fit GVF = (sDAM-SDCM) / SDAM of each partitioning method; select the partitioning method with the GVF closest to 1 as the optimal partitioning method, the partitioning concentration interval set in the optimal partitioning method is the optimal partitioning concentration interval finally obtained, and the total number of partitioning intervals corresponding to the optimal partitioning concentration interval in the optimal partitioning method is the total number of optimal partitioning intervals finally obtained;

[0076] For example, after setting multiple division methods, the GVF corresponding to the 32 concentration intervals is closest to 1; so the green-yellow-red gradient color band needs to be evenly divided into 32 colors;

[0077] Step S500: Based on step S400, the second inversion map is colorized and converted into an RGB color map; in the RGB color map, the RGB of each pixel is converted into the HSV range of the color, and the HSV value range corresponding to yellow and red is obtained; hue (H), saturation (S), and brightness (V)

[0078] The conversion method is:

[0079]

[0080]

[0081] V = Cmax;

[0082] in:

[0083]

[0084]

[0085]

[0086] Cmax=max(R′,G′,B′)

[0087] Cmin=min(R′,G′,B′)

[0088] Δ=Cmax-Cmin

[0089] R, G, and B represent the values ​​of the red, green, and blue channels respectively;

[0090] The process of coloring the second inversion image in step S500 includes:

[0091] Step S501: Divide the concentration value range of the water quality parameter of the second inversion map according to the optimal divided concentration interval to obtain the corresponding total number L of optimal divided intervals; divide the green-yellow-red gradient color band evenly into L colors; each color has a corresponding RGB value;

[0092] Step S502: assigning colors from low to high corresponding to green, yellow, and red to each concentration interval obtained after concentration division;

[0093] Step S503: converting the second inversion image from a grayscale image to an RGB color image;

[0094] Step S600: extracting and locating suspected pollution points;

[0095] The process of extracting and locating suspected pollution points in step S600 includes:

[0096] Step S601: successively taking yellow and red as target colors; respectively changing the colors other than the target colors to black background in the RGB color map, retaining only the target colors, and retaining only the image data of the red pixels in the RGB color map;

[0097] Step S602: Binarization is performed on the RGB color image, and the points on the image are converted into two values, 0 and 255, to obtain a binary image; in the binary image, the red part or the yellow part is converted into white, and the background is black;

[0098] Step S603: Connect the breakpoints of each white area in the binary image that are smaller than the distance threshold by using the expansion algorithm; extract the outline rectangle of the white area by using the boundingRect function, and return the x and y coordinates of the upper left corner of the outline rectangle parameters and the width and height w and h of the outline rectangle;

[0099] Step S604: Calculate the center point of each contour rectangle, use the obtained center point coordinates as the suspected pollution point positioning coordinates, and generate shp vector format data from the suspected pollution point positioning coordinates

[0100] Step S700: Perform spatial analysis based on the vector data of each suspected pollution point and surrounding buildings and facilities, and generate a pollution source special report corresponding to each suspected pollution point;

[0101] The process of generating the pollution source special report in step S700 includes:

[0102] Step S701: Taking the coordinates of the suspected pollution point as the center, inputting the range radius, screening the construction facilities within the range, and extracting the ID and name information of the construction facilities recorded according to the rules before sorting based on the close distance as the suspected pollution source;

[0103] Step S702: obtaining the coordinates, time and other information of the track points that have been synchronously recorded when the video was shot; when the similarity between the coordinates of the video track points and the coordinates of the suspected pollution points is greater than the similarity threshold, calculating the difference between the UTC time corresponding to the track point and the UTC time of the starting track point, that is, the shooting time of the video;

[0104] Step S703: Capture pictures of the video shooting time, the time interval before the video shooting time, and the time interval after the video shooting time as on-site screenshots; collect each suspected pollution point, and record the coordinates of each suspected pollution point, each suspected pollution source, and several on-site screenshots; summarize and generate a pollution source tracing special report;

[0105] In order to better implement the above method, a pollution source tracing system based on water quality parameter inversion map is also proposed. The pollution source tracing system includes: filtering processing module, concentration division module, coloring processing module, suspected pollution point extraction processing module, and pollution source special report generation module;

[0106] A filtering processing module, used for filtering the water quality parameter concentration value of each pixel in the first inversion map;

[0107] A concentration division module is used to receive data from the filtering processing module and to obtain the optimal division concentration interval and the total number of optimal division intervals for the concentration value range of the water quality parameter of the second inversion map;

[0108] Among them, the concentration division module includes: a division unit, a calculation unit, and an analysis and selection unit;

[0109] A division unit is used to set different division methods, each of which corresponds to a division concentration interval;

[0110] A calculation unit, used for receiving data in the division unit and calculating the variance fitting goodness of each division method;

[0111] An analysis and selection unit is used to receive the data in the calculation unit, and select the best partition concentration interval and the best total number of partition intervals based on the variance fitting goodness of fit corresponding to each partition method;

[0112] A coloring processing module is used to receive data from the concentration division module, perform coloring processing on the second inversion map, and convert the second inversion map into an RGB color map;

[0113] The suspected pollution point extraction and processing module is used to receive the data in the coloring processing module and complete the extraction and positioning of the suspected pollution points;

[0114] Among them, the suspected pollution point extraction processing module includes a target color processing unit, a binarization processing unit, a contour extraction processing unit; a suspected pollution point confirmation unit;

[0115] A target color processing unit is used to select a target color and perform color removal processing on the RGB color image after the target color is selected;

[0116] A binarization processing unit is used to receive data from the target color processing unit and perform binarization processing on the image that has completed the color removal processing;

[0117] Contour extraction processing unit; used to receive data from the binarization processing unit and extract the contour of the target area;

[0118] A suspected contaminated point confirmation unit is used to receive data from the contour extraction processing unit and extract corresponding suspected contaminated point information based on the coordinate vector information of the target area contour;

[0119] The pollution source special report generation module is used to receive the data in the suspected pollution point extraction and processing module, perform spatial analysis based on the vector data of each suspected pollution point and surrounding building facilities, and generate a pollution source special report corresponding to each suspected pollution point.

[0120] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0121] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A pollution source tracing method based on water quality parameter inversion map, characterized in that: The pollution source tracing method includes: Step S100: extracting a water quality parameter inversion map of the target detection area, wherein the water quality parameter inversion map is a raster image, and coloring the water quality parameter inversion map to obtain a first inversion map; reading and analyzing the pixel value in each pixel in the first inversion map; the pixel value is a water quality parameter concentration value; Step S200: setting a minimum unit pixel area, and filtering the water quality parameter concentration value of each pixel in the first inversion map based on the minimum unit pixel area to obtain a second inversion map; Step S300: Counting the water quality parameter concentration value of each pixel in the second inversion map to form a concentration histogram; in the water quality parameter concentration value histogram, the horizontal axis represents the water quality parameter concentration value, and the vertical axis represents the number of water quality parameter concentration intervals; removing the highest concentration and the lowest concentration in the concentration histogram to obtain the water quality parameter concentration value range of the second inversion map; Step S400: deriving the optimal concentration interval and the total number of optimal intervals based on the water quality parameter concentration value range of the second inversion map; Step S500: completing the coloring process of the second inversion map based on the step S400, converting the second inversion map into an RGB color map; converting the RGB of each pixel in the RGB color map into an HSV range of color, and obtaining the HSV value range corresponding to yellow and red; Step S600: extracting and locating suspected pollution points; Step S700: Perform spatial analysis based on the vector data of each suspected pollution point and surrounding buildings and facilities, and generate a pollution source special report corresponding to each suspected pollution point; The process of obtaining the optimal concentration interval and the total number of optimal intervals in step S400 includes: Step S401: based on the concentration value range of the water quality parameter of the second inversion map, randomly set the divided concentration intervals, each setting of the divided concentration intervals corresponds to a total number of divided intervals; each setting of the divided concentration intervals corresponds to a division method; Step S402: extract each partition interval in each partition method respectively; record the number of water quality parameter concentration values ​​contained in a partition interval in the jth partition method as ; Assume that the concentration value of the i-th water quality parameter in a certain partition interval in the j-th partition method is ; The average value of all water quality parameter concentration values ​​in the i-th partition interval in the j-th partition method is ; Table 1. The total number of partition intervals corresponding to the jth partition method; Step S403: Calculate the square sum of deviations of each flower interval in each division method: ; Calculate the sum of squared deviations of all partition intervals within each partition method: ; Step S404: Calculate the variance goodness of fit of each partitioning method ; Select the division method with GVF closest to 1 as the optimal division method, the division concentration interval set in the optimal division method is the optimal division concentration interval finally obtained, and the total number of division intervals corresponding to the optimal division concentration interval in the optimal division method is the total number of optimal division intervals finally obtained.

2. A pollution source tracing method based on water quality parameter inversion map according to claim 1, characterized in that: The process of filtering the water quality parameter concentration value of each pixel in the first inversion map based on the minimum unit pixel area in step S200 includes: Step S201: Select each pixel position in the first inversion map one by one, and assume that when the position coordinates in the first inversion map are When filtering the pixels with the position coordinates The pixel at the adjacent position of the pixel is filtered; the number of adjacent pixels is selected to meet the number of pixels contained in the minimum unit pixel area; let the number of pixels included in the minimum unit pixel area be n; Step S202: The water quality parameter concentration value of each pixel in the minimum unit pixel area is calculated according to the formula: ;in, The position coordinates are Pixel water quality parameter concentration value; , , ..., Both represent the same position coordinates as The concentration value of water quality parameters of pixels at adjacent positions of the pixels; Indicates that the first position coordinate is The water quality parameter concentration value of the pixel adjacent to the pixel; Indicates that the second position coordinate is The water quality parameter concentration value of the pixel adjacent to the pixel; Indicates that the last one with position coordinates is The water quality parameter concentration value of the pixel adjacent to the pixel; Step S203: traverse each pixel in the first inversion image to complete smoothing filtering processing.

3. The pollution source tracing method based on water quality parameter inversion map according to claim 1 is characterized in that: The process of coloring the second inversion image in step S500 includes: Step S501: Divide the concentration value range of the water quality parameter of the second inversion map according to the optimal divided concentration interval to obtain a corresponding total number L of optimal divided intervals; divide the green-yellow-red gradient color band evenly into L colors; each color has a corresponding RGB value; Step S502: assigning colors from low to high corresponding to green, yellow, and red to each concentration interval obtained after concentration division; Step S503: converting the second inversion image from a grayscale image to an RGB color image.

4. The pollution source tracing method based on water quality parameter inversion map according to claim 1 is characterized in that: The process of extracting and locating suspected pollution points in step S600 includes: Step S601: successively taking yellow and red as target colors; respectively changing the colors other than the target colors to black background in the RGB color map, retaining only the target colors, and retaining only the image data of the red pixels in the RGB color map; Step S602: Binarization is performed on the RGB color image, and points on the image are converted into two values, 0 and 255, to obtain a binary image; in the binary image, the red part or the yellow part is converted into white, and the background is black; Step S603: Connect the breakpoints of the white area parts in the binary image that are smaller than the distance threshold by using the expansion algorithm; extract the outline rectangle of the white area by using the boundingRect function, and return the x, y coordinates of the upper left corner of the outline rectangle parameters and the width w, h of the outline rectangle; Step S604: Calculate the center point of each contour rectangle, use the obtained center point coordinates as the suspected pollution point positioning coordinates, and generate shp vector format data from the suspected pollution point positioning coordinates.

5. The pollution source tracing method based on water quality parameter inversion map according to claim 1 is characterized in that: The process of generating the pollution source special report in step S700 includes: Step S701: Taking the coordinates of the suspected pollution point as the center, inputting the range radius, screening the construction facilities within the range, and extracting the ID and name information of the construction facilities recorded according to the rules before sorting based on the close distance as the suspected pollution source; Step S702: Acquire the coordinates and time information of the shooting trajectory points recorded synchronously when shooting the target area; when the similarity between the coordinates of the video trajectory point and the coordinates of the suspected pollution point is greater than the similarity threshold, calculate the difference between the UTC time corresponding to the trajectory point and the UTC time of the starting trajectory point, that is, the shooting time of the video; Step S703: capture pictures of the time when the video was shot, the time interval before the video was shot, and the time interval after the video was shot as on-site screenshots; collect each suspected pollution point, and record the coordinates of each suspected pollution point, each suspected pollution source, and several on-site screenshots; summarize and generate a special report on pollution source tracing.

6. A pollution source tracing system based on a water quality parameter inversion map applied to a pollution source tracing method based on a water quality parameter inversion map according to any one of claims 1 to 5, characterized in that: The pollution source tracing system includes: a filtering processing module, a concentration division module, a coloring processing module, a suspected pollution point extraction processing module, and a pollution source special report generation module; The filtering processing module is used to filter the water quality parameter concentration value of each pixel in the first inversion map; The concentration division module is used to receive the data in the filtering processing module, and to obtain the optimal division concentration interval and the total number of optimal division intervals for the water quality parameter concentration value range of the second inversion map; The coloring processing module is used to receive the data in the concentration division module, perform coloring processing on the second inversion map, and convert the second inversion map into an RGB color map; The suspected pollution point extraction and processing module is used to receive the data in the coloring processing module to complete the extraction and positioning of the suspected pollution points; The pollution source special report generation module is used to receive the data in the suspected pollution point extraction and processing module, perform spatial analysis based on the vector data of each suspected pollution point and surrounding building facilities, and generate a pollution source special report corresponding to each suspected pollution point.

7. A pollution source tracing system based on water quality parameter inversion map according to claim 6, characterized in that: The concentration division module includes: a division unit, a calculation unit, and an analysis and selection unit; The division unit is used to set different division methods, each division method corresponds to a division concentration interval; The calculation unit is used to receive the data in the division unit and calculate the variance fitting goodness of each division method; The analysis and selection unit is used to receive the data in the calculation unit, and select the best partition concentration interval and the best total number of partition intervals based on the variance fitting goodness of fit corresponding to each partition method.

8. The pollution source tracing system based on water quality parameter inversion map according to claim 6 is characterized in that: The suspected pollution point extraction processing module includes a target color processing unit, a binarization processing unit, a contour extraction processing unit, and a suspected pollution point confirmation unit; The target color processing unit is used to select a target color and perform color removal processing on the RGB color image after the target color is selected; The binarization processing unit is used to receive the data in the target color processing unit and perform binarization processing on the image after the color removal processing; The contour extraction processing unit is used to receive the data in the binarization processing unit and extract the contour of the target area; The suspected contaminated point confirmation unit is used to receive the data in the contour extraction processing unit and extract the corresponding suspected contaminated point information based on the coordinate vector information of the target area contour.

Citation Information

Patent Citations

  • Method and system for predicting diffusion of pollutants

    CN109117549A

  • Water quality parameter inversion method based on unmanned aerial vehicle multispectral data

    CN111597756A

  • Water quality pollution traceability system and method based on remote sensing image inversion

    CN113624778A

  • Seawater-polluted area identification method based on high-resolution remote-sensing image, and device

    WO2021077847A1

  • Inversion estimation method for air pollutant emission inventory

    WO2021208393A1