A method, device and equipment for tracing water pollution sources based on remote sensing images
Using remote sensing image data and deep learning models, we build a water quality prediction model, which solves the difficult problem of tracing the source of water pollution and achieves fast and accurate detection of pollution sources.
Patent Information
- Application Number
- CN202211033939.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-08-26
AI Technical Summary
Tracing the source of water pollution is quite difficult in areas where supervision is difficult, and it is difficult to quickly and accurately detect pollution sources with existing technology.
By obtaining water quality data and band data from remote sensing images of the target area, a deep learning method is used to construct a random forest neural network model for water quality prediction and pollution source detection.
It achieves rapid and accurate acquisition of water quality prediction data and pollution source area detection results, reducing the difficulty and cost of pollution source tracing.
Smart Images

Figure CN115439757B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of geographic information technology, and in particular to a method, device, equipment and storage medium for tracing water pollution sources based on remote sensing images. Background Art
[0002] In recent years, with the growth of population, the acceleration of industrialization, and the increase in the pace of urbanization, industry, aquaculture, poultry farming, animal husbandry, etc. have developed rapidly. The above industries all generate wastewater to varying degrees, but due to the high purification technology and management costs of sewage discharge, sewage treatment has not yet been fully popularized. Therefore, in some areas, especially those with greater difficulty in supervision, sewage is often discharged directly into rivers, lakes, and seas. However, given the large area, it is quite difficult to trace the source of the pollution, which has caused great difficulties in water pollution supervision. Summary of the invention
[0003] Based on this, the purpose of the present invention is to provide a method, device, equipment and storage medium for tracing water pollution sources based on remote sensing images. By acquiring water quality data and band data in the remote sensing images of the target area, a deep learning method is used to construct a water quality prediction model, accurately and quickly obtain the water quality prediction data of the target area, and obtain the pollution source area detection results of the target area based on the water quality prediction data.
[0004] In a first aspect, an embodiment of the present application provides a method for tracing the source of water pollution based on remote sensing images, comprising the following steps:
[0005] Acquire a plurality of remote sensing images of a target area, and stitch the plurality of remote sensing images to obtain an orthophoto of the target area, wherein the orthophoto includes a water area and a non-water area;
[0006] Eliminate the non-water body area in the orthophoto, obtain the water body image of the target area, and obtain the water quality data corresponding to each sampling point in the water body image of the target area according to the preset number of sampling points;
[0007] Acquire the band data corresponding to each sampling point in the water body image of the target area, combine the water quality data and the band data corresponding to the same sampling point, and acquire a training data group corresponding to several sampling points;
[0008] The band data is used as an independent variable and the water quality data is used as a dependent variable to construct a random forest neural network model, and the training data groups corresponding to the sampling points are input into the random forest neural network model for training to obtain a water quality prediction model;
[0009] The orthophoto of the target area is input into the water quality prediction model to obtain water quality prediction data of the water body area of the target area, and the pollution source area detection result of the target area is obtained based on the water quality prediction data of the water body area of the target area.
[0010] In a second aspect, the embodiment of the present application provides a water pollution source tracing device based on remote sensing images, comprising:
[0011] An orthophoto acquisition module is used to acquire a plurality of remote sensing images of a target area, and to splice the plurality of remote sensing images to obtain an orthophoto of the target area, wherein the orthophoto includes a water body area and a non-water body area;
[0012] A water quality data acquisition module, used to remove non-water body areas in the orthophoto, acquire the water body image of the target area, and acquire water quality data corresponding to each sampling point in the water body image of the target area according to a preset number of sampling points;
[0013] A training data acquisition module is used to acquire the band data corresponding to each sampling point in the water body image of the target area, and to combine the water quality data and the band data corresponding to the same sampling point to acquire a training data group corresponding to several sampling points;
[0014] A model training module is used to construct a random forest neural network model using the band data as an independent variable and the water quality data as a dependent variable, and input the training data groups corresponding to the plurality of sampling points into the random forest neural network model for training to obtain a water quality prediction model;
[0015] The pollution source detection module is used to input the orthophoto of the target area into the water quality prediction model, obtain the water quality prediction data of the water body area of the target area, and obtain the pollution source area detection result of the target area based on the water quality prediction data of the water body area of the target area.
[0016] In a third aspect, an embodiment of the present application provides a computer device comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor; when the computer program is executed by the processor, the steps of the method for tracing the source of water pollution based on remote sensing images as described in the first aspect are implemented.
[0017] In a fourth aspect, an embodiment of the present application provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for tracing the source of water pollution based on remote sensing images as described in the first aspect.
[0018] In an embodiment of the present application, a method, device, equipment and storage medium for tracing the source of water pollution based on remote sensing images are provided. By acquiring water quality data and band data in the remote sensing images of the target area, a deep learning method is used to construct a water quality prediction model, accurately and quickly acquire the water quality prediction data of the target area, and based on the water quality prediction data, the pollution source area detection result of the target area is acquired.
[0019] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram of a flow chart of a method for tracing water pollution sources based on remote sensing images provided in one embodiment of the present application;
[0021] Figure 2 A schematic diagram of a flow chart of a method for tracing water pollution sources based on remote sensing images provided in another embodiment of the present application;
[0022] Figure 3 A schematic diagram of the process of S2 in a method for tracing water pollution sources based on remote sensing images provided in one embodiment of the present application;
[0023] Figure 4 A schematic diagram of the process of S5 in a method for tracing water pollution sources based on remote sensing images provided in one embodiment of the present application;
[0024] Figure 5 A schematic diagram of the process of S52 in a method for tracing water pollution sources based on remote sensing images provided in one embodiment of the present application;
[0025] Figure 6 A schematic diagram of the structure of a water pollution source tracing device based on remote sensing images provided in one embodiment of the present application;
[0026] Figure 7 A schematic diagram of the structure of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0028] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0029] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
[0030] See also Figure 1 , Figure 1 A schematic flow chart of a method for tracing water pollution sources based on remote sensing images provided in one embodiment of the present application, the method comprising the following steps:
[0031] S1: Acquire a plurality of remote sensing images of a target area, and stitch the plurality of remote sensing images to obtain an orthophoto of the target area.
[0032] The executor of the water pollution source tracing method based on remote sensing images is the tracing device of the water pollution source tracing method based on remote sensing images (hereinafter referred to as the tracing device). In an optional embodiment, the tracing device can be a computer device, a server, or a server cluster composed of multiple computer devices.
[0033] The remote sensing image is a multispectral remote sensing image. In this embodiment, the tracing device can obtain several remote sensing images of the target area input by the user, or it can obtain several remote sensing images of the target area through a drone, and splice the several remote sensing images to obtain an orthophoto of the target area, wherein the orthophoto includes water areas and non-water areas.
[0034] S2: Eliminate non-water body areas in the orthophoto, obtain a water body image of the target area, and obtain water quality data corresponding to each sampling point in the water body image of the target area according to a preset number of sampling points.
[0035] In order to reduce the complexity of calculation and improve the efficiency of band data acquisition, in this embodiment, the tracing device removes the non-water body area in the multispectral image and obtains the water body image of the sample area.
[0036] And according to the preset number of sampling points, each sampling point in the water body image of the target area is obtained. Specifically, the traceability equipment arranges 10 sampling points in the target area based on the principles of convenience and uniformity, and obtains the water quality data corresponding to each sampling area in the water body image of the sample area, wherein the water quality data includes chemical oxygen demand data, total nitrogen data, total phosphorus data and chlorophyll data.
[0037] See also Figure 2 , Figure 2 A schematic flow chart of a method for tracing water pollution sources based on remote sensing images provided in another embodiment of the present application includes step S6, which is before step S2 and is specifically as follows:
[0038] S6: Preprocessing the orthophoto to obtain a preprocessed orthophoto, wherein the preprocessing includes radiation calibration and atmospheric correction.
[0039] In this embodiment, the source tracing device performs radiation calibration and atmospheric correction on the orthophoto to obtain a preprocessed orthophoto, thereby improving the accuracy of the band data measurement of the orthophoto.
[0040] See also Figure 3 , Figure 3 The schematic diagram of the process of S2 in the method for tracing the source of water pollution based on remote sensing images provided in one embodiment of the present application includes steps S21 to S22, which are specifically as follows:
[0041] S21: Obtain the water body image corresponding to the sample area and the green light band value and the near-infrared band value of each pixel in the water body image, and calculate the normalized moisture index value of each pixel in the water body image corresponding to the sample area according to a preset normalized moisture index calculation algorithm to obtain the minimum normalized moisture index value as the water body pixel distinction threshold.
[0042] The normalized moisture index calculation algorithm is:
[0043]
[0044] In the formula, B green is the green light band value, B NIR is the near infrared band value, NDWI is the normalized moisture index;
[0045] In this embodiment, the tracing device obtains the water body image corresponding to the sample area and the green light band value and the near-infrared band value of each pixel in the water body image, and calculates the normalized moisture index value of each pixel in the water body image corresponding to the sample area according to a preset normalized moisture index calculation algorithm to obtain the minimum normalized moisture index value as the water body pixel distinction threshold.
[0046] S22: Obtain the green light band value and the near infrared band value of each pixel of the orthophoto image, obtain the normalized moisture index value of each pixel in the orthophoto image according to the normalized moisture index calculation algorithm, obtain several water body pixels in the orthophoto image according to the normalized moisture index value of each pixel in the orthophoto image and the water body pixel distinction threshold, combine the several water body pixels, and obtain the water body image of the target area.
[0047] The water body image is an orthophoto image including a water body area. In this embodiment, the tracing device compares the normalized moisture index corresponding to each pixel in the orthophoto image with the water body segmentation threshold. When the normalized moisture index corresponding to the pixel is greater than the water body segmentation threshold, the pixel is set as a water body pixel. When the normalized moisture index corresponding to the pixel is less than or equal to the water body segmentation threshold, the pixel is set as a land pixel, and the land pixels in the orthophoto image are eliminated to obtain the water body image corresponding to the water body area of the orthophoto image as the water body image of the target area.
[0048] S3: Obtain the band data corresponding to each sampling point in the water body image of the target area, combine the water quality data and the band data corresponding to the same sampling point, and obtain a training data group corresponding to several sampling points.
[0049] The band data includes blue band reflectivity, green band reflectivity, red band reflectivity and near infrared band reflectivity. In this embodiment, the tracing device obtains the band data corresponding to each sampling point in the water body image of the target area, combines the water quality data and band data corresponding to the same sampling point, and obtains a training data group corresponding to several of the sampling points. Specifically, the tracing device can obtain the coordinate data of each sampling point in the water body image of the target area, use the coordinate data of each sampling point as the center of the circle, and obtain the sampling area corresponding to each sampling point according to a preset radius, obtain the band data corresponding to each pixel in the sampling area corresponding to each sampling point, perform averaging processing, and obtain the average band data corresponding to the sampling area corresponding to each sampling point as the band data corresponding to each sampling point in the water body image of the target area.
[0050] S4: Using the band data as an independent variable and the water quality data as a dependent variable, a random forest neural network model is constructed, and the training data groups corresponding to the plurality of sampling points are input into the random forest neural network model for training to obtain a water quality prediction model.
[0051] The random forest neural network model is a classifier containing multiple decision trees, and the category of its output is determined by the mode of the category output by the individual trees.
[0052] In this embodiment, the tracing device uses the band data as an independent variable and the water quality data as a dependent variable to construct a random forest neural network model, and inputs the training data groups corresponding to several sampling points into the random forest neural network model for training to obtain a water quality prediction model.
[0053] Specifically, since the water quality data includes total nitrogen data, total phosphorus data, chemical oxygen demand data and chlorophyll data, the traceability device sets a characteristic variable data set corresponding to the water quality data corresponding to the sampling point, wherein the characteristic variable data set includes characteristic variables, and the characteristic variables include total nitrogen characteristic variables, total phosphorus characteristic variables, chemical oxygen demand characteristic variables and chlorophyll characteristic variables;
[0054] The traceability device randomly extracts a number of n samples with replacement from the training data groups corresponding to the several sampling points and from the characteristic variable data sets corresponding to the water quality data corresponding to the sampling points, randomly selects m characteristic variables for each of the n samples, generates a decision tree model corresponding to the sample, randomly selects one characteristic variable from the m characteristic variables of each decision tree model as a node for splitting, stops splitting when the Gini coefficient is minimum, constructs a random forest neural network model, inputs the training data groups corresponding to the several sampling points into the random forest neural network model for training, and obtains a water quality prediction model.
[0055] S5: Input the orthophoto of the target area into the water quality prediction model to obtain water quality prediction data of the water body area of the target area, and obtain the pollution source area detection result of the target area according to the water quality prediction data of the water body area of the target area.
[0056] In this embodiment, the tracing device inputs the orthophoto of the target area into the water quality prediction model, obtains the water quality prediction data of the water body area of the target area, and obtains the pollution source area detection result of the target area based on the water quality prediction data of the water body area of the target area, wherein the water quality prediction data includes total nitrogen prediction data, total phosphorus prediction data, chemical oxygen demand prediction data and chlorophyll prediction data.
[0057] See also Figure 4 , Figure 4 The schematic flow diagram of S5 in the method for tracing the source of water pollution based on remote sensing images provided in one embodiment of the present application includes steps S51 to S52, which are specifically as follows:
[0058] S51: Divide the water area of the target area into a plurality of water pollution areas according to the water quality prediction data of the water area of the target area and a preset water quality threshold, and obtain the pollution levels corresponding to the water pollution areas.
[0059] The water quality thresholds include a first water quality threshold group, a second water quality threshold group, a third water quality threshold group, a fourth water quality threshold group and a fifth water quality threshold group, each water quality threshold group includes corresponding sub-water quality thresholds, and the sub-water quality thresholds include a total nitrogen threshold, a total phosphorus threshold, a chemical oxygen demand threshold and a chlorophyll threshold.
[0060] In this embodiment, the tracing device divides the water area of the target area into several water pollution areas according to the water quality prediction data of the water area of the target area and the preset water quality threshold, and obtains the pollution level corresponding to the water pollution area, wherein the pollution level includes the first, second, third, fourth and fifth pollution levels from low to high;
[0061] Specifically, the traceability device compares the total nitrogen prediction data, total phosphorus prediction data, chemical oxygen demand prediction data and chlorophyll prediction data in the water quality prediction data of the water body area of the target area with the corresponding sub-water quality thresholds in the first water quality threshold group, the second water quality threshold, the third water quality threshold, the fourth water quality threshold and the fifth water quality threshold, respectively. According to the comparison results, the water body area of the target area is divided into several water quality pollution areas, and the pollution levels corresponding to the water quality pollution areas are obtained, as described below:
[0062] When the water quality prediction data of the water body area of the target area is ≥ the first water quality threshold group and < the second water quality threshold group, a first pollution level corresponding to the water pollution area is obtained;
[0063] When the water quality prediction data of the water body area of the target area is ≥ the second water quality threshold group and < the third water quality threshold group, the second pollution level corresponding to the water pollution area is obtained;
[0064] When the water quality prediction data of the water body area of the target area is ≥ the third water quality threshold group and < the fourth water quality threshold group, the third pollution level corresponding to the water pollution area is obtained;
[0065] When the water quality prediction data of the water area of the target area is ≥ the fourth water quality threshold group and < the fifth water quality threshold group, the fourth pollution level corresponding to the water pollution area is obtained;
[0066] When the water quality prediction data of the water body area of the target area is ≥ the fifth water quality threshold group, the fifth pollution level corresponding to the water pollution area is obtained;
[0067] S52: Obtaining a pollution source area detection result of the target area according to the plurality of water pollution areas and the corresponding pollution levels.
[0068] In this embodiment, the tracing device obtains the pollution source area detection result of the target area according to the several water pollution areas and the corresponding pollution levels, wherein the pollution source area detection result includes the pollution source existence result and the pollution source non-existence result.
[0069] See also Figure 5 , Figure 5 The schematic flow diagram of S52 in the method for tracing the source of water pollution based on remote sensing images provided in one embodiment of the present application includes steps S521 to S522, which are specifically as follows:
[0070] S521: traverse the pollution levels corresponding to the plurality of water pollution areas, and if there is no water pollution area corresponding to the fourth pollution level or the fifth pollution level, obtain a result indicating that a pollution source does not exist.
[0071] In this embodiment, the source tracing device traverses the pollution levels corresponding to the several water pollution areas, and if there is no water pollution area corresponding to the fourth pollution level or the fifth pollution level, a result that the pollution source does not exist is obtained.
[0072] S522: If there are water pollution areas corresponding to the fourth pollution level or the fifth pollution level, the relative position relationship between the several water pollution areas is obtained according to the preset water flow direction, and according to the relative position relationship between the several water pollution areas and the pollution levels corresponding to the several water pollution areas, the target water quality area is extracted from the several water pollution areas as the result of the existence of the pollution source.
[0073] The mutual position relationship is used to indicate the upstream and downstream relationship between the various water pollution areas;
[0074] If there are water pollution areas corresponding to the fourth pollution level or the fifth pollution level, the tracing device obtains the relative position relationship between the several water pollution areas according to the preset water flow direction, so as to distinguish the upstream and downstream relationship between the water pollution areas; according to the relative position relationship between the several water pollution areas and the pollution levels corresponding to the several water pollution areas, the target water quality area is extracted from the several water pollution areas as the result of the existence of the pollution source.
[0075] In an optional embodiment, the tracing device obtains the water pollution area corresponding to the highest pollution level among the several water pollution areas as the upstream water pollution area, wherein the upstream water pollution area may be one or more water pollution areas.
[0076] And based on the relative positional relationship between the several water pollution areas, the downstream water pollution area corresponding to the upstream water pollution area is obtained, and the pollution level of the upstream water pollution area is compared with the pollution level of the corresponding downstream water pollution area. If the pollution level of the upstream water pollution area is two levels higher than the pollution level of the corresponding downstream water pollution area, the upstream water pollution area is extracted as the target water quality area as the result of the existence of the pollution source.
[0077] Please refer to Figure 6 , Figure 6 A schematic diagram of the structure of a water pollution source tracing device based on remote sensing images provided in one embodiment of the present application. The device can implement all or part of the water pollution source tracing device based on remote sensing images through software, hardware, or a combination of both. The device 6 includes:
[0078] An orthophoto acquisition module 61 is used to acquire a plurality of remote sensing images of a target area, and to stitch the plurality of remote sensing images to obtain an orthophoto of the target area, wherein the orthophoto includes a water body area and a non-water body area;
[0079] The water quality data acquisition module 62 is used to remove the non-water body area in the orthophoto image, obtain the water body image of the target area, and obtain the water quality data corresponding to each sampling point in the water body image of the target area according to a preset number of sampling points;
[0080] The training data acquisition module 63 is used to acquire the band data corresponding to each sampling point in the water body image of the target area, and combine the water quality data and the band data corresponding to the same sampling point to acquire a training data group corresponding to several sampling points;
[0081] A model training module 64 is used to construct a random forest neural network model using the band data as an independent variable and the water quality data as a dependent variable, and input the training data groups corresponding to the plurality of sampling points into the random forest neural network model for training to obtain a water quality prediction model;
[0082] The pollution source detection module 65 is used to input the orthophoto of the target area into the water quality prediction model, obtain the water quality prediction data of the water body area of the target area, and obtain the pollution source area detection result of the target area based on the water quality prediction data of the water body area of the target area.
[0083] In an embodiment of the present application, an orthophoto acquisition module is used to acquire several remote sensing images of a target area, and the several remote sensing images are spliced to obtain an orthophoto of the target area, wherein the orthophoto includes a water body area and a non-water body area; a water quality data acquisition module is used to remove the non-water body area in the orthophoto to acquire a water body image of the target area, and according to a preset number of sampling points, water quality data corresponding to each sampling point in the water body image of the target area is acquired; a training data acquisition module is used to acquire band data corresponding to each sampling point in the water body image of the target area, and the water quality data corresponding to the same sampling point is acquired. The data and band data are combined to obtain the training data groups corresponding to several of the sampling points; through the model training module, the band data is used as the independent variable and the water quality data is used as the dependent variable to construct a random forest neural network model, and the training data groups corresponding to several of the sampling points are input into the random forest neural network model for training to obtain a water quality prediction model; through the pollution source detection module, the orthophoto of the target area is input into the water quality prediction model to obtain the water quality prediction data of the water body area of the target area, and the pollution source area detection result of the target area is obtained based on the water quality prediction data of the water body area of the target area. By obtaining the water quality data and band data in the remote sensing image of the target area, a deep learning method is used to construct a water quality prediction model, accurately and quickly obtain the water quality prediction data of the target area, and obtain the pollution source area detection result of the target area based on the water quality prediction data.
[0084] Please refer to Figure 7 , Figure 7 The computer device 7 is a schematic diagram of a structure of a computer device provided in an embodiment of the present application. The computer device 7 includes: a processor 71, a memory 72, and a computer program 73 stored in the memory 72 and executable on the processor 71; the computer device may store multiple instructions, which are suitable for being loaded and executed by the processor 71 Figures 1 to 5 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figures 1 to 5 The specific description of the illustrated embodiment will not be repeated here.
[0085] Among them, the processor 71 may include one or more processing cores. The processor 71 uses various interfaces and lines to connect various parts in the server, and executes various functions and processes data of the water pollution source tracing device 6 based on remote sensing images by running or executing instructions, programs, code sets or instruction sets stored in the memory 72, and calling the data in the memory 72. Optionally, the processor 71 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 71 can integrate one or more combinations of a central processing unit 71 (CPU), an image processor 71 (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 71, but may be implemented by a single chip.
[0086] Among them, the memory 72 may include a random access memory 72 (Random Access Memory, RAM), and may also include a read-only memory 72 (Read-Only Memory). Optionally, the memory 72 includes a non-transitory computer-readable storage medium. The memory 72 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 72 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 72 may also be optionally at least one storage device located away from the aforementioned processor 71.
[0087] The present application also provides a storage medium that can store multiple instructions, which are suitable for the processor to load and execute the above-mentioned Figures 1 to 5 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figures 1 to 5 The specific description of the illustrated embodiment will not be repeated here.
[0088] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0089] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0090] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraint algorithm of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0091] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as 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.
[0092] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0093] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0094] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0095] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A method for tracing water pollution sources based on remote sensing images, characterized in that: The following steps are involved: Acquire a plurality of remote sensing images of a target area, and stitch the plurality of remote sensing images to obtain an orthophoto of the target area, wherein the orthophoto includes a water area and a non-water area; Eliminate the non-water body area in the orthophoto, obtain the water body image of the target area, and obtain the water quality data corresponding to each sampling point in the water body image of the target area according to the preset number of sampling points, wherein the water quality data includes total nitrogen data, total phosphorus data, chemical oxygen demand data and chlorophyll data; Acquire the band data corresponding to each sampling point in the water body image of the target area, combine the water quality data and the band data corresponding to the same sampling point, and acquire the training data groups corresponding to several sampling points; The band data is used as an independent variable and the water quality data is used as a dependent variable to construct a random forest neural network model, and the training data groups corresponding to the sampling points are input into the random forest neural network model for training to obtain a water quality prediction model; Inputting the orthophoto of the target area into the water quality prediction model to obtain water quality prediction data of the water area of the target area, wherein the water quality prediction data includes total nitrogen prediction data, total phosphorus prediction data, chemical oxygen demand prediction data and chlorophyll prediction data; According to the water quality prediction data of the water body area of the target area and the preset water quality threshold, the water body area of the target area is divided into a plurality of water quality pollution areas, and the pollution levels corresponding to the water quality pollution areas are obtained, wherein the pollution levels include the first, second, third, fourth and fifth pollution levels from low to high; Traversing the pollution levels corresponding to the plurality of water pollution areas, if there is no water pollution area corresponding to the fourth pollution level or the fifth pollution level, obtaining a result that the pollution source does not exist; If there are water pollution areas corresponding to the fourth pollution level or the fifth pollution level, obtaining the mutual position relationship between the water pollution areas according to the preset water flow direction, wherein the mutual position relationship is used to indicate the upstream and downstream relationship between the water pollution areas; A water pollution area corresponding to the highest pollution level among the several water pollution areas is obtained as the upstream water pollution area. According to the relative positional relationship between the several water pollution areas, a downstream water pollution area corresponding to the upstream water pollution area is obtained. The pollution level of the upstream water pollution area is compared with the pollution level of the corresponding downstream water pollution area. If the pollution level of the upstream water pollution area is two levels higher than that of the corresponding downstream water pollution area, the upstream water pollution area is extracted as the target water quality area. As the pollution source existence result, a pollution source area detection result of the target area is obtained, wherein the pollution source area detection result includes a pollution source existence result and a pollution source non-existence result.
2. The method for tracing water pollution sources based on remote sensing images according to claim 1 is characterized in that: Before removing the non-water body area in the orthophoto and obtaining the water body image of the target area, the method includes the following steps: The orthophoto is preprocessed to obtain a preprocessed orthophoto, wherein the preprocessing includes radiation calibration and atmospheric correction.
3. The method for tracing water pollution sources based on remote sensing images according to claim 1 is characterized in that: The step of eliminating the non-water body area in the orthophoto to obtain the water body image of the target area comprises the following steps: The water body image corresponding to the sample area and the green light band value and the near infrared band value of each pixel in the water body image are obtained. According to the preset normalized water index calculation algorithm, the normalized water index value of each pixel in the water body image corresponding to the sample area is calculated to obtain the minimum normalized water index value as the water body pixel distinction threshold, wherein the normalized water index calculation algorithm is: In the formula, B green is the green light band value, B NIR is the near infrared band value, NDWI is the normalized moisture index; The green light band value and the near infrared band value of each pixel of the orthophoto are obtained, and the normalized moisture index value of each pixel in the orthophoto is obtained according to the normalized moisture index calculation algorithm. According to the normalized moisture index value of each pixel in the orthophoto and the water pixel distinction threshold, a plurality of water pixels in the orthophoto are obtained, and the plurality of water pixels are combined to obtain a water image of the target area.
4. A water pollution source tracing device based on remote sensing images, characterized in that: include: An orthophoto acquisition module is used to acquire a plurality of remote sensing images of a target area, and to stitch the plurality of remote sensing images to obtain an orthophoto of the target area, wherein the orthophoto includes a water body area and a non-water body area; A water quality data acquisition module, used to remove non-water body areas in the orthophoto, acquire the water body image of the target area, and acquire the water quality data corresponding to each sampling point in the water body image of the target area according to a preset number of sampling points, wherein the water quality data includes total nitrogen data, total phosphorus data, chemical oxygen demand data and chlorophyll data; A training data acquisition module is used to acquire the band data corresponding to each sampling point in the water body image of the target area, combine the water quality data and band data corresponding to the same sampling point, and acquire a training data group corresponding to several sampling points; A model training module is used to construct a random forest neural network model by taking the band data as an independent variable and the water quality data as a dependent variable, and input the training data groups corresponding to the plurality of sampling points into the random forest neural network model for training to obtain a water quality prediction model; A pollution source detection module, used for inputting the orthophoto of the target area into the water quality prediction model to obtain water quality prediction data of the water area of the target area, wherein the water quality prediction data includes total nitrogen prediction data, total phosphorus prediction data, chemical oxygen demand prediction data and chlorophyll prediction data; According to the water quality prediction data of the water body area of the target area and the preset water quality threshold, the water body area of the target area is divided into a plurality of water quality pollution areas, and the pollution levels corresponding to the water quality pollution areas are obtained, wherein the pollution levels include the first, second, third, fourth and fifth pollution levels from low to high; Traversing the pollution levels corresponding to the plurality of water pollution areas, if there is no water pollution area corresponding to the fourth pollution level or the fifth pollution level, obtaining a result that the pollution source does not exist; If there are water pollution areas corresponding to the fourth pollution level or the fifth pollution level, obtaining the mutual position relationship between the water pollution areas according to the preset water flow direction, wherein the mutual position relationship is used to indicate the upstream and downstream relationship between the water pollution areas; A water pollution area corresponding to the highest pollution level among the several water pollution areas is obtained as the upstream water pollution area. According to the relative positional relationship between the several water pollution areas, a downstream water pollution area corresponding to the upstream water pollution area is obtained. The pollution level of the upstream water pollution area is compared with the pollution level of the corresponding downstream water pollution area. If the pollution level of the upstream water pollution area is two levels higher than that of the corresponding downstream water pollution area, the upstream water pollution area is extracted as the target water quality area. As the pollution source existence result, a pollution source area detection result of the target area is obtained, wherein the pollution source area detection result includes a pollution source existence result and a pollution source non-existence result.
5. A computer device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor; when the computer program is executed by the processor, the steps of the method for tracing the source of water pollution based on remote sensing images as described in any one of claims 1 to 3 are implemented.
6. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for tracing the source of water pollution based on remote sensing images as described in any one of claims 1 to 3 are implemented.
