A method and system for detecting organic phosphorus pollutants in water
Through remote sensing image processing and feature extraction technology, the oil film area of organophosphorus pollutants in the water body is automatically determined, which solves the problems of cumbersome detection steps and low efficiency in the existing technology, and achieves efficient detection of organophosphorus pollutants.
Patent Information
- Application Number
- CN202410947133.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The existing methods for detecting organophosphorus pollutants in water bodies require the collection and processing of water samples and then laboratory testing, which results in cumbersome detection steps and low detection efficiency.
By acquiring remote sensing images of the water body to be measured and normal water bodies under the same environmental conditions, preprocessing and segmentation are performed, and image processing technology is used to automatically determine the oil film area. Combined with the fish-eye robot and feature extraction network, global and local features are extracted, and the classifier determines Organophosphorus contaminant levels, generating test results.
It improves detection efficiency, realizes automated detection of organophosphorus pollutants, simplifies detection steps, and improves detection accuracy and efficiency.
Smart Images

Figure CN118501144B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and in particular to a method and system for detecting organic phosphorus pollutants in water. Background Art
[0002] At present, the monitoring of organophosphorus pollutants in water bodies mainly includes the following methods: First, under specific conditions, potassium persulfate is used to digest water samples to convert organophosphorus into an inorganic state, and then molybdate and a color developer (such as ascorbic acid or stannous chloride) are added to form a blue molybdenum blue complex, whose absorbance is proportional to the phosphorus content and can be measured by a spectrophotometer. For example, the patent application with publication number CN112630180A also discloses an ultraviolet / visible light absorption spectrum model for detecting the concentration of organophosphorus pesticides in water bodies, which is used to determine the concentration of organophosphorus pesticides in the sample to be tested. Second, after the sample is extracted and purified, it is separated by gas chromatography or liquid chromatography, and then identified and quantified by a mass spectrometer. Third, the specific recognition of specific organophosphorus compounds by antibodies can be used to quickly screen and semi-quantitatively determine organophosphorus pollutants in water samples.
[0003] In actual operation, water sample pretreatment is also required, including filtration, extraction, concentration and other steps to ensure the accuracy and reliability of the test. It can be seen that the existing methods for detecting organic phosphorus pollutants in water bodies require the collection and processing of water samples, and then the laboratory testing method is used to implement it, resulting in cumbersome testing steps and low detection efficiency. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for detecting organophosphorus pollutants in water bodies to alleviate the technical problems that the existing methods for detecting organophosphorus pollutants in water bodies require the collection and processing of water samples and then implement them through laboratory testing methods, resulting in cumbersome detection steps and low detection efficiency, simplify the cumbersome detection and improve the detection efficiency.
[0005] In a first aspect, an embodiment of the present invention provides a method for detecting organic phosphorus pollutants in water bodies, comprising: obtaining a first remote sensing image of a water body to be tested and a second remote sensing image of a normal water body under the same environmental conditions; preprocessing the first remote sensing image and the second remote sensing image to obtain a first preprocessed image and a second preprocessed image; based on preset parameters, dividing the first preprocessed image and the second preprocessed image into a plurality of sub-images to obtain a first sub-image and a second sub-image; enhancing the brightness component, saturation component and hue component of the first sub-image and the second sub-image respectively to obtain a first image to be tested and a second image to be tested; determining oil film area data of the first image to be tested according to the grayscale value of the first image to be tested and the grayscale value of the second image to be tested; and determining a first organic phosphorus pollutant detection result of the water body to be tested according to the oil film area data.
[0006] In a preferred embodiment of the present invention, after the step of obtaining a first remote sensing image of the water body to be tested and a second remote sensing image of a normal water body, the method further includes: obtaining a water body image of the water body to be tested by a fisheye robot; extracting global features in the water body image based on a preset initial feature extraction network; and extracting local features corresponding to the global features; performing convolution calculation on the local features again by the local convolution layer of the initial feature extraction network to obtain an activation map corresponding to the local features; performing threshold segmentation on the activation map to obtain a sub-activation map that meets a preset threshold; screening the local features according to the sub-activation map to determine the target local features; classifying the target local features based on a preset classifier to obtain animal distribution data; and determining the second organic phosphorus pollutant detection result of the water body to be tested according to the animal distribution data.
[0007] In a preferred embodiment of the present invention, the local convolution layer includes at least one convolution kernel; the value of at least one parameter among the height, width and number of channels of the convolution kernel is 1.
[0008] In a preferred embodiment of the present invention, after the step of determining the first organic phosphorus pollutant detection result of the water body to be tested based on the above-mentioned oil film area data, the above-mentioned method includes: inputting the above-mentioned first remote sensing image into a preset organic phosphorus pollutant level judgment model, and outputting the third organic phosphorus pollutant detection result of the water body to be tested; the above-mentioned organic phosphorus pollutant level judgment model is trained based on a pre-acquired water body color image and the organic phosphorus pollutant level corresponding to the above-mentioned water body color image.
[0009] In a preferred embodiment of the present invention, the steps of constructing the above-mentioned organic phosphorus pollutant level judgment model include: obtaining the above-mentioned water body color image and the organic phosphorus pollutant level corresponding to the above-mentioned water body color image to obtain a sample set; based on a preset ratio, dividing the above-mentioned sample set into a training set and a verification set; training the preset initial U-Net model through the above-mentioned training set until the preset training standard is reached to obtain an intermediate U-Net model; verifying the above-mentioned intermediate U-Net model through the above-mentioned verification set until the preset verification standard is reached to obtain the above-mentioned organic phosphorus pollutant level judgment model.
[0010] In a preferred embodiment of the present invention, after the step of inputting the above-mentioned first remote sensing image into a preset organic phosphorus pollutant level judgment model and outputting the third organic phosphorus pollutant detection result of the above-mentioned water body to be tested, the above-mentioned method also includes: judging whether the organic phosphorus pollutants in the above-mentioned water body to be tested exceed the standard based on the relationship between the above-mentioned first organic phosphorus pollutant detection result, the above-mentioned second organic phosphorus pollutant detection result and the above-mentioned third organic phosphorus pollutant detection result and the preset threshold range.
[0011] In a preferred embodiment of the present invention, the step of determining whether the organophosphorus pollutants in the water body to be tested exceed the standard includes: when any element in the first organophosphorus pollutant detection result, the second organophosphorus pollutant detection result and the third organophosphorus pollutant detection result exceeds the preset threshold range, it is determined that the organophosphorus pollutants in the water body to be tested exceed the standard.
[0012] In a preferred embodiment of the present invention, when it is determined that the organic phosphorus pollutants in the above-mentioned water body to be tested exceed the standard, an enhancement information is generated and the above-mentioned enhancement information is sent to a designated terminal.
[0013] In a second aspect, an embodiment of the present invention further provides a system for detecting organic phosphorus pollutants in water bodies, comprising: a data acquisition module, used to acquire a first remote sensing image of a water body to be tested and a second remote sensing image of a normal water body under the same environmental conditions; an image preprocessing module, used to preprocess the first remote sensing image and the second remote sensing image to obtain a first preprocessed image and a second preprocessed image; an image division module, used to divide the first preprocessed image and the second preprocessed image into a plurality of sub-images based on preset parameters to obtain a first sub-image and a second sub-image; an enhancement module, used to enhance the brightness component, saturation component and hue component of the first sub-image and the second sub-image, respectively, to obtain a first image to be tested and a second image to be tested; an oil film area determination module, used to determine the oil film area data of the first image to be tested according to the grayscale value of the first image to be tested and the grayscale value of the second image to be tested; and a detection result determination module, used to determine the first organic phosphorus pollutant detection result of the water body to be tested according to the oil film area data.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method for detecting organic phosphorus pollutants in water.
[0015] The embodiments of the present invention have the following beneficial technical effects:
[0016] The embodiment of the present invention provides a method and system for detecting organic phosphorus pollutants in water bodies, including: obtaining a first remote sensing image of a water body to be tested and a second remote sensing image of a normal water body under the same environmental conditions; preprocessing the first remote sensing image and the second remote sensing image to obtain a first preprocessed image and a second preprocessed image; based on preset parameters, dividing the first preprocessed image and the second preprocessed image into multiple sub-images to obtain a first sub-image and a second sub-image; respectively enhancing the brightness component, saturation component and hue component of the first sub-image and the second sub-image to obtain a first image to be tested and a second image to be tested; determining the oil film area data of the first image to be tested according to the gray value of the first image to be tested and the gray value of the second image to be tested; and determining the first organic phosphorus pollutant detection result of the water body to be tested according to the oil film area data. The method collects an image of the water body to be tested, and then automatically determines the oil film area of the water body to be tested by image processing to determine the organic phosphorus pollutant detection result, thereby improving the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic flow chart of a method for detecting organic phosphorus pollutants in water provided by an embodiment of the present invention;
[0019] Figure 2 A schematic flow chart of another method for detecting organic phosphorus pollutants in water provided by an embodiment of the present invention;
[0020] Figure 3 A schematic diagram of the structure of a device for detecting organic phosphorus pollutants in water provided by an embodiment of the present invention;
[0021] Figure 4A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0022] Reference numerals:
[0023] 31-data acquisition module; 32-image preprocessing module; 33-image segmentation module; 34-enhancement module; 35-oil film area determination module; 36-detection result determination module; 41-memory; 42-processor; 43-bus; 44-communication interface. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0025] Currently, existing methods for detecting organophosphorus pollutants in water bodies require the collection and processing of water samples, and then implementation through laboratory testing methods, resulting in cumbersome testing steps and low detection efficiency.
[0026] Based on this, an embodiment of the present invention provides a method and system for detecting organic phosphorus pollutants in water. The method collects an image of the water body to be tested, and then automatically determines the oil film area of the water body to be tested by image processing to determine the detection result of the organic phosphorus pollutants, thereby improving the detection efficiency. For ease of understanding, a method for detecting organic phosphorus pollutants in water is first described in detail.
[0027] Example 1
[0028] In this embodiment, Figure 1 A schematic flow chart of a method for detecting organic phosphorus pollutants in water provided in an embodiment of the present invention.
[0029] Depend on Figure 1 As can be seen, the method includes:
[0030] Step S101: Under the same environmental conditions, a first remote sensing image of a water body to be tested and a second remote sensing image of a normal water body are acquired.
[0031] In this embodiment, in order to ensure the detection accuracy, the above-mentioned same environmental conditions include: the same climate, visibility and the same time.
[0032] Step S102: preprocessing the first remote sensing image and the second remote sensing image to obtain a first preprocessed image and a second preprocessed image.
[0033] In this embodiment, the step S102 includes: filtering and denoising the first remote sensing image and the second remote sensing image to obtain a first pre-processed image and a second pre-processed image.
[0034] Step S103: based on preset parameters, dividing the first pre-processed image and the second pre-processed image into a plurality of sub-images to obtain a first sub-image and a second sub-image.
[0035] In actual operation, the preset parameters are the length and width of the preset size, so as to divide the first preprocessed image and the second preprocessed image into a plurality of sub-images based on the length and the width to obtain the first sub-image and the second sub-image.
[0036] Step S104: respectively enhancing the brightness component, saturation component and hue component of the first sub-image and the second sub-image to obtain a first image to be tested and a second image to be tested.
[0037] Step S105: determining the oil film area data of the first image to be tested according to the grayscale value of the first image to be tested and the grayscale value of the second image to be tested.
[0038] In this embodiment, the step S105 determines the oil film area data of the first image to be tested by calculating the difference between the grayscale value of the first image to be tested and the grayscale value of the second image to be tested.
[0039] Here, since the oil film generally presents a lighter color, the area with a large grayscale change is filtered out by calculating the difference between the grayscale value of the first image to be tested and the grayscale value of the second image to be tested, thereby determining the oil film area data of the first image to be tested.
[0040] Furthermore, assuming that the grayscale value corresponding to the oil film area data is 230 to 255, and the grayscale value of the area without oil film in the test data is 0 to 50, the area with a large grayscale change can be determined by calculating the difference between the grayscale value of the first image to be tested and the grayscale value of the second image to be tested, so as to obtain the oil film area data of the first image to be tested.
[0041] Step S106: Determine the first organic phosphorus pollutant detection result of the water body to be tested according to the oil film area data.
[0042] In the above Figure 1 On the basis of Figure 2 A schematic flow chart of another method for detecting organophosphorus pollutants in water provided in an embodiment of the present invention.
[0043] Depend on Figure 2 It can be seen that after the above step S101, the method further includes:
[0044] Step S201: obtaining a water body image of the water body to be tested by a fisheye robot.
[0045] In this embodiment, the water body image is used to indicate the image below the horizontal surface of the water body to be measured.
[0046] Step S202: extracting global features from the water body image based on a preset initial feature extraction network; and extracting local features corresponding to the global features.
[0047] Step S203: performing convolution calculation on the local features again through the local convolution layer of the initial feature extraction network to obtain an activation map corresponding to the local features.
[0048] In this embodiment, the local convolution layer includes at least one convolution kernel; the value of at least one parameter among the height, width and number of channels of the convolution kernel is 1.
[0049] Step S204: performing threshold segmentation on the activation map to obtain a sub-activation map that meets a preset threshold.
[0050] In this embodiment, the above-mentioned preset threshold is a preset weight parameter.
[0051] Step S205: Filter the local features according to the sub-activation map to determine the target local features.
[0052] In this embodiment, through the above step S205, target local features that are relatively consistent with animal features can be screened out from the above local features.
[0053] Step S206: Classify the above-mentioned target local features based on a preset classifier to obtain animal distribution data.
[0054] Furthermore, the above-mentioned local features of the target are classified to distinguish the distribution data of animals such as fish, shrimp, coral, etc.
[0055] Step S207: Determine the second organic phosphorus pollutant detection result of the water body to be tested according to the animal distribution data.
[0056] In one embodiment, after the step of determining the first organic phosphorus pollutant detection result of the water body to be tested according to the oil film area data, the method includes: inputting the first remote sensing image into a preset organic phosphorus pollutant level judgment model, and outputting the third organic phosphorus pollutant detection result of the water body to be tested; the organic phosphorus pollutant level judgment model is trained based on a pre-acquired water body color image and the organic phosphorus pollutant level corresponding to the water body color image.
[0057] Furthermore, the steps of constructing the above-mentioned organic phosphorus pollutant level judgment model include: obtaining the above-mentioned water body color image and the organic phosphorus pollutant level corresponding to the above-mentioned water body color image to obtain a sample set; based on a preset ratio, dividing the above-mentioned sample set into a training set and a verification set; training the preset initial U-Net model through the above-mentioned training set until the preset training standard is reached to obtain an intermediate U-Net model; verifying the above-mentioned intermediate U-Net model through the above-mentioned verification set until the preset verification standard is reached to obtain the above-mentioned organic phosphorus pollutant level judgment model.
[0058] Furthermore, after the step of inputting the first remote sensing image into a preset organic phosphorus pollutant level judgment model and outputting the third organic phosphorus pollutant detection result of the water body to be tested, the method also includes: judging whether the organic phosphorus pollutants in the water body to be tested exceed the standard based on the relationship between the first organic phosphorus pollutant detection result, the second organic phosphorus pollutant detection result and the third organic phosphorus pollutant detection result and the preset threshold range.
[0059] Furthermore, the step of judging whether the organophosphorus pollutants in the water body to be tested exceed the standard includes: when any element in the first organophosphorus pollutant detection result, the second organophosphorus pollutant detection result and the third organophosphorus pollutant detection result exceeds the preset threshold range, it is determined that the organophosphorus pollutants in the water body to be tested exceed the standard.
[0060] Furthermore, when it is determined that the organic phosphorus pollutants in the water body to be tested exceed the standard, an enhancement information is generated and the enhancement information is sent to a designated terminal.
[0061] Furthermore, the present invention detects organic phosphorus pollutants in the water body to be tested from three dimensions: oil film area data of the water body to be tested, plant and animal distribution data, and organic phosphorus pollutant levels corresponding to the water body color image, thereby achieving higher detection accuracy.
[0062] The embodiment of the present invention provides a method for detecting organic phosphorus pollutants in water bodies, including: obtaining a first remote sensing image of a water body to be tested and a second remote sensing image of a normal water body under the same environmental conditions; preprocessing the first remote sensing image and the second remote sensing image to obtain a first preprocessed image and a second preprocessed image; based on preset parameters, dividing the first preprocessed image and the second preprocessed image into multiple sub-images to obtain a first sub-image and a second sub-image; respectively enhancing the brightness component, saturation component and hue component of the first sub-image and the second sub-image to obtain a first image to be tested and a second image to be tested; determining the oil film area data of the first image to be tested according to the gray value of the first image to be tested and the gray value of the second image to be tested; and determining the first organic phosphorus pollutant detection result of the water body to be tested according to the oil film area data. The method collects an image of the water body to be tested, and then automatically determines the oil film area of the water body to be tested by image processing to determine the organic phosphorus pollutant detection result, thereby improving the detection efficiency.
[0063] Example 2
[0064] Based on the above embodiments, Figure 3 A schematic diagram of the structure of a system for detecting organic phosphorus pollutants in water provided by an embodiment of the present invention.
[0065] Depend on Figure 3 As can be seen, the device includes:
[0066] The data acquisition module 31 is used to acquire a first remote sensing image of the water body to be tested and a second remote sensing image of the normal water body under the same environmental conditions.
[0067] The image preprocessing module 32 is used to preprocess the first remote sensing image and the second remote sensing image to obtain a first preprocessed image and a second preprocessed image.
[0068] The image division module 33 is used to divide the first pre-processed image and the second pre-processed image into a plurality of sub-images based on preset parameters to obtain a first sub-image and a second sub-image.
[0069] The enhancement module 34 is used to enhance the brightness component, saturation component and hue component of the first sub-image and the second sub-image respectively to obtain the first image to be tested and the second image to be tested.
[0070] The oil film area determination module 35 is used to determine the oil film area data of the first image to be tested according to the grayscale value of the first image to be tested and the grayscale value of the second image to be tested.
[0071] The detection result determination module 36 is used to determine the first organic phosphorus pollutant detection result of the water body to be tested according to the oil film area data.
[0072] Among them, the data acquisition module 31, the image preprocessing module 32, the image division module 33, the enhancement module 34, the oil film area determination module 35 and the detection result determination module 36 are connected in sequence.
[0073] The device for detecting organic phosphorus pollutants in water provided in an embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment for detecting organic phosphorus pollutants in water. For the sake of brief description, for parts not mentioned in the embodiment of the device for detecting organic phosphorus pollutants in water, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0074] The embodiment of the present invention further provides an electronic device, such as Figure 4 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 42 and a memory 41, the memory 41 stores machine executable instructions that can be executed by the processor 42, and the processor 42 executes the machine executable instructions to implement the above-mentioned method for detecting organic phosphorus pollutants in water.
[0075] exist Figure 4 In the illustrated embodiment, the electronic device further includes a bus 43 and a communication interface 44 , wherein the processor 42 , the communication interface 44 and the memory 41 are connected via the bus.
[0076] The memory 41 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 44 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus may be an ISA bus, a PCI bus or an EISA bus, etc. The above-mentioned bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0077] The processor 42 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 42. The above processor 42 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 42 reads the information in the memory 41 and combines its hardware to complete the steps of the method for detecting organic phosphorus pollutants in water in the above-mentioned embodiment.
[0078] An embodiment of the present invention also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned method for detecting organic phosphorus pollutants in water bodies. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0079] The computer program product of the method for detecting organic phosphorus pollutants in water, the device for detecting organic phosphorus pollutants in water, and the electronic device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the above program code can be used to execute the above method for detecting organic phosphorus pollutants in water in the previous method embodiment. The specific implementation can be referred to the method embodiment, which will not be repeated here.
[0080] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
[0081] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the above methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
Claims
1. A method for detecting organic phosphorus pollutants in water, characterized in that: include: Under the same environmental conditions, a first remote sensing image of a water body to be tested and a second remote sensing image of a normal water body are acquired; Acquire a water body image of the water body to be tested by a fisheye robot; Based on a preset initial feature extraction network, extract global features in the water body image; and extract local features corresponding to the global features; Performing convolution calculation on the local feature again through the local convolution layer of the initial feature extraction network to obtain an activation map corresponding to the local feature; Performing threshold segmentation on the activation map to obtain a sub-activation map that meets a preset threshold; Filter the local features according to the sub-activation map to determine the target local features; Classifying the target local features based on a preset classifier to obtain animal distribution data; Determining the detection result of the second organophosphorus pollutant in the water body to be tested according to the animal distribution data; Preprocessing the first remote sensing image and the second remote sensing image to obtain a first preprocessed image and a second preprocessed image; Based on preset parameters, the first preprocessed image and the second preprocessed image are divided into a plurality of sub-images to obtain a first sub-image and a second sub-image; Respectively enhancing the brightness component, saturation component, and hue component of the first sub-image and the second sub-image to obtain a first image to be tested and a second image to be tested; Determining the oil film area data of the first image to be tested according to the grayscale value of the first image to be tested and the grayscale value of the second image to be tested; The first organic phosphorus pollutant detection result of the water body to be tested is determined according to the oil film area data.
2. The method for detecting organic phosphorus pollutants in water according to claim 1, characterized in that: The local convolution layer includes at least one convolution kernel; the value of at least one parameter among the height, width and number of channels of the convolution kernel is 1.
3. The method for detecting organic phosphorus pollutants in water according to claim 2, characterized in that: After the step of determining the first organic phosphorus pollutant detection result of the water body to be tested according to the oil film area data, the method comprises: The first remote sensing image is input into a preset organic phosphorus pollutant level judgment model to output the third organic phosphorus pollutant detection result of the water body to be tested; the organic phosphorus pollutant level judgment model is trained based on a pre-acquired water body color image and the organic phosphorus pollutant level corresponding to the water body color image.
4. The method for detecting organic phosphorus pollutants in water according to claim 3, characterized in that: The steps of constructing the organic phosphorus pollutant grade judgment model include: Acquire the water body color image and the organic phosphorus pollutant level corresponding to the water body color image to obtain a sample set; Based on a preset ratio, the sample set is divided into a training set and a validation set; The preset initial U-Net model is trained by the training set until a preset training standard is reached to obtain an intermediate U-Net model; The intermediate U-Net model is verified by the verification set until a preset verification standard is reached to obtain the organic phosphorus pollutant level judgment model.
5. The method for detecting organic phosphorus pollutants in water according to claim 3, characterized in that: After the step of inputting the first remote sensing image into a preset organic phosphorus pollutant level judgment model to output the detection result of the third organic phosphorus pollutant in the water body to be tested, the method further includes: According to the relationship between the first organic phosphorus pollutant detection result, the second organic phosphorus pollutant detection result and the third organic phosphorus pollutant detection result and a preset threshold range, it is determined whether the organic phosphorus pollutants in the water body to be tested exceed the standard.
6. The method for detecting organic phosphorus pollutants in water according to claim 5, characterized in that: The step of determining whether the organic phosphorus pollutants in the water body to be tested exceed the standard comprises: When any element in the first organic phosphorus pollutant detection result, the second organic phosphorus pollutant detection result and the third organic phosphorus pollutant detection result exceeds the preset threshold range, it is determined that the organic phosphorus pollutants in the water body to be tested exceed the standard.
7. The method for detecting organic phosphorus pollutants in water according to claim 6, characterized in that: When it is determined that the organic phosphorus pollutants in the water body to be tested exceed the standard, an improvement information is generated and sent to a designated terminal.
8. A system for detecting organic phosphorus pollutants in water, characterized in that: include: A data acquisition module, used for acquiring a first remote sensing image of a water body to be tested and a second remote sensing image of a normal water body under the same environmental conditions; The water body image of the water body to be tested is obtained by a fisheye robot; based on a preset initial feature extraction network, the global features in the water body image are extracted; and the local features corresponding to the global features are extracted; the local features are convolved again by the local convolution layer of the initial feature extraction network to obtain the activation map corresponding to the local features; the activation map is threshold segmented to obtain a sub-activation map that meets a preset threshold; the local features are screened according to the sub-activation map to determine the target local features; Classifying the target local features based on a preset classifier to obtain animal distribution data; determining the second organic phosphorus pollutant detection result of the water body to be tested according to the animal distribution data; An image preprocessing module, used for preprocessing the first remote sensing image and the second remote sensing image to obtain a first preprocessed image and a second preprocessed image; An image division module, used for dividing the first preprocessed image and the second preprocessed image into a plurality of sub-images based on preset parameters to obtain a first sub-image and a second sub-image; An enhancement module, used to enhance the brightness component, saturation component and hue component of the first sub-image and the second sub-image respectively to obtain a first image to be tested and a second image to be tested; An oil film area determination module, used to determine the oil film area data of the first image to be tested according to the gray value of the first image to be tested and the gray value of the second image to be tested; The detection result determination module is used to determine the first organic phosphorus pollutant detection result of the water body to be detected according to the oil film area data.
Citation Information
Patent Citations
Ultraviolet / visible light absorption spectrum model for detecting concentration of organophosphorus pesticide in water body
CN112630180A
Method and device for field rapid detection on content of nitrogen and phosphorus substances in eutrophic water
CN103674835A
Remote sensing extraction method, remote sensing extraction device and remote sensing extraction system for polluted water body at drainage outlet
CN106950197A
Water body color recognition method and device
CN110866900A
Remote sensing inversion method and system for offshore nutritive salt and chemical oxygen demand
CN117030957A
