A sea surface pollutant early warning method and device based on thickness analysis

Through multiple image collections by drones and heavy object ejection to generate wave images, combined with the neural network model, it solves the problem that traditional methods cannot analyze the thickness of sea surface pollutants, and achieves accurate early warning of the thickness of sea surface pollutants.

CN116994141BActive Publication Date: 2024-08-30GUANGDONG POLYTECHNIC NORMAL UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311025137.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-14
Publication Date
2024-08-30
Estimated Expiration
2043-08-14

AI Technical Summary

Technical Problem

Traditional marine pollutant analysis methods cannot accurately analyze the thickness of sea surface pollutants, resulting in inaccurate early warning results.

Method used

A sea surface pollutant early warning method based on thickness analysis is used to collect multiple images and launch heavy objects through drones to generate wave images, and use a neural network model to predict the thickness of pollutants and generate early warning signals.

Benefits of technology

It achieves accurate analysis and early warning of the thickness of pollutants on the sea surface, and improves the reliability and accuracy of pollutant early warning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116994141B
    Figure CN116994141B
Patent Text Reader

Abstract

The present application discloses a sea surface pollutant early warning method based on thickness analysis, which includes performing multiple image acquisition and processing on the sea surface to be analyzed to obtain multiple first sea surface images; if the sea surface to be analyzed is in a calm state, calculating a first similarity value; if the first similarity value is greater than a preset similarity threshold, controlling a drone to perform n-1 equal-altitude flights to correspondingly obtain a second sea surface image, a third sea surface image, ..., an nth sea surface image; calculating a second similarity value, a third similarity value, ..., an nth similarity value; obtaining n-1 image center positions; causing the sea surface to splash with waves to obtain n-1 wave images; inputting the images into a pollution degree prediction model obtained by pre-training to obtain n-1 pollutant thickness values; generating an early warning signal, and attaching n-1 pollutant thickness values ​​to the early warning signal, completing the thickness analysis of sea surface pollutants in a non-contact manner, and thereby achieving the purpose of accurately warning of sea surface pollutants.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of sea surface pollutant early warning, and in particular to a sea surface pollutant early warning method and device based on thickness analysis. Background Art

[0002] Marine pollutants have a great impact on marine ecology (especially in the case of enrichment), so it is necessary to analyze and warn marine pollutants. At present, it is possible to use drones to collect images of polluted sea areas and analyze the image data to conduct non-contact analysis and early warning of marine pollutants. This method has the advantages of being fast and efficient, but because its analysis process uses image data at the same sea level, it is impossible to analyze three-dimensional results, which means that it is impossible to accurately analyze the thickness of enriched pollutants. Therefore, the traditional analysis and early warning scheme of marine pollutants needs to be improved. Summary of the invention

[0003] This application proposes a sea surface pollutant early warning method based on thickness analysis, which is applied to drone terminals, including:

[0004] S1, using an image collector preset on the UAV to perform multiple image acquisition and processing on the sea surface to be analyzed within a preset time to obtain multiple first sea surface images;

[0005] S2. judging whether the sea surface to be analyzed is in a calm state by using the plurality of first sea surface images according to a preset calm state judgment method;

[0006] S3. If the sea surface to be analyzed is in a calm state, a first similarity value between the first sea surface image and a pre-collected reference sea surface image is calculated according to a preset similarity calculation method, and it is determined whether the first similarity value is greater than a preset similarity threshold; wherein the reference sea surface image is an image obtained by collecting an image of a sea surface that has been determined to be polluted;

[0007] S4. If the first similarity value is greater than a preset similarity threshold, the UAV is controlled to perform n-1 equal-altitude flights, and after each equal-altitude flight, image acquisition and processing are performed on the sea surface to be analyzed, so as to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image accordingly; wherein the centers of two sea surface images obtained by two adjacent equal-altitude flights and image acquisition differ by a preset distance, and the preset distance is less than the boundary length of the first sea surface image; the boundary length refers to the length of a line connecting the center of the image to the edge point of the image; and n is an integer greater than 2;

[0008] S5, respectively calculating a second similarity value, a third similarity value, ..., an nth similarity value between the second sea surface image, the third sea surface image, ..., the nth sea surface image and the reference sea surface image, and determining in turn whether the second similarity value, the third similarity value, ..., the nth similarity value is greater than a preset similarity threshold;

[0009] S6. If the second similarity value, the third similarity value, ..., and the n-1th similarity value are all greater than the preset similarity threshold, and the nth similarity value is less than the preset similarity threshold, then obtaining n-1 image center positions corresponding to the first first sea surface image, the second sea surface image, the third sea surface image, ..., and the n-1th sea surface image respectively;

[0010] S7, controlling the drone to fly to n-1 image center positions in sequence, and then performing n-1 weight throwing processing on the weight pre-placed on the drone, so as to cause waves to splash on the sea surface, and using a high-speed camera pre-placed on the drone to perform image acquisition processing on the sea surface, so as to obtain n-1 wave images; wherein the n-1 wave images correspond to the n-1 image center positions respectively;

[0011] S8, sequentially inputting n-1 wave spray images into a pre-trained pollution degree prediction model for processing, so as to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model; wherein the pollution degree prediction model is based on a neural network model and is trained using sample data; the sample data is image data obtained by throwing a heavy object on a sea surface with a preset thickness of pollutants to splash waves, and then performing image acquisition, and the sample data is manually annotated to attach pollutant thickness labels;

[0012] S9. Generate a warning signal, and attach the n-1 pollutant thickness values ​​to the warning signal.

[0013] Furthermore, the step S2 of using the plurality of first sea surface images to determine whether the sea surface to be analyzed is in a calm state according to a preset calm state determination method comprises:

[0014] S201, according to a preset image similarity calculation method, sequentially calculating the similarities between a first first sea surface image and other first sea surface images to obtain a plurality of image similarity values;

[0015] S202, arranging the similarity values ​​of the multiple images in descending order according to their numerical values ​​to obtain a similarity descending order table;

[0016] S203, performing top truncation processing on the similarity descending table, and discarding the portion below the truncation to obtain a truncated descending table; wherein the top truncation processing is based on that a first numerical difference between a first image similarity value above the truncation and a first image similarity value below the truncation is greater than p times a second numerical difference between a second image similarity value above the truncation and a first image similarity value above the truncation, where p is a preset parameter greater than 1;

[0017] S204, clustering the similarity numbers in the truncated descending table according to a preset clustering algorithm;

[0018] S205, obtaining multiple cluster center numbers corresponding to multiple clusters respectively;

[0019] S206, performing difference processing on the numbers of two adjacent cluster centers in sequence to obtain a plurality of number difference values, and determining whether the difference between the plurality of number difference values ​​is less than a preset difference threshold;

[0020] S207: If the difference between the multiple serial number differences is less than a preset difference threshold, it is determined that the sea surface to be analyzed is in a calm state.

[0021] Furthermore, if the first similarity value is greater than a preset similarity threshold, the UAV is controlled to perform n-1 equal-altitude flights, and after each equal-altitude flight, image acquisition and processing are performed on the sea surface to be analyzed to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image, step S4 includes:

[0022] S401, if the first similarity value is greater than a preset similarity threshold, calling a preset Archimedean spiral;

[0023] S402, aligning the center of the first sea surface image with the center of the Archimedean spiral, and controlling the UAV to perform n-1 equal-altitude flights along the trajectory of the Archimedean spiral, and performing image acquisition and processing on the sea surface to be analyzed after each equal-altitude flight to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image accordingly.

[0024] Further, the step S7 of controlling the drone to fly to n-1 image center positions in sequence, and then performing n-1 weight throwing processes on the weights pre-set on the drone to splash waves on the sea surface, and using a high-speed camera pre-set on the drone to perform image acquisition and processing on the sea surface to obtain n-1 wave images includes:

[0025] S701, controlling the drone to fly to the center positions of n-1 images in sequence, and then vertically throwing the heavy objects pre-placed on the drone respectively, so that the heavy objects have an acceleration vertically downward and greater than the acceleration of gravity when leaving the drone; wherein the heavy objects are connected to the drone by a rope;

[0026] S702, when waves splash on the sea surface, a high-speed camera preset in the drone is used to collect and process images of the sea surface to obtain n-1 corresponding wave images;

[0027] S703, performing n-1 heavy object recovery processes in sequence through the rope.

[0028] Furthermore, before step S8 of sequentially inputting n-1 spray images into the pre-trained pollution degree prediction model for processing to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model, the method includes:

[0029] S71, calling a preset deep convolutional neural network model, and calling pre-collected sample data marked with pollutant thickness labels;

[0030] S72, dividing the sample data according to a preset division ratio to obtain training data and verification data;

[0031] S73, inputting the training data into the deep convolutional neural network model for training processing to obtain a preliminary pollution degree prediction model; wherein the training process uses a back propagation algorithm to update the parameters of each layer of the neural network;

[0032] S74, using the verification data to verify the preliminary pollution degree prediction model, and judging whether the verification result is verified or not;

[0033] S75. If the result of the verification process is that the verification is passed, the preliminary pollution degree prediction model is recorded as the final pollution degree prediction model.

[0034] Furthermore, the step S9 of generating a warning signal and attaching the n-1 contaminant thickness values ​​to the warning signal comprises:

[0035] S901, generating a pollutant thickness distribution map according to the n-1 pollutant thickness values ​​and the n-1 image center positions;

[0036] S902, determining whether the pollutant thickness distribution map shows a gradient distribution trend;

[0037] S903, if the pollutant thickness distribution map shows a gradient distribution trend, selecting the pollutant minimum thickness point and the pollutant maximum thickness point from the pollutant thickness distribution map;

[0038] S904, generating a tracing ray from the point of minimum pollutant thickness to the point of maximum pollutant thickness, and generating a flight instruction to instruct the UAV to fly along the tracing ray until the edge point of the pollutant is detected;

[0039] S905, calculating the distance between the minimum thickness point of the pollutant and the edge point of the pollutant, and recording it as the diameter of the polluted sea surface;

[0040] S906: Generate a warning signal, and attach the n-1 pollutant thickness values ​​and the polluted sea surface diameter to the warning signal.

[0041] The present application provides a sea surface pollutant early warning device based on thickness analysis, which is applied to a UAV terminal, including:

[0042] A first sea surface image acquisition unit is used to use an image acquisition device preset on the UAV to perform multiple image acquisition and processing on the sea surface to be analyzed within a preset time to obtain multiple first sea surface images;

[0043] a calm state judgment unit, configured to judge whether the sea surface to be analyzed is in a calm state by using the plurality of first sea surface images according to a preset calm state judgment method;

[0044] a first similarity value calculation unit, configured to calculate a first similarity value between a first first sea surface image and a pre-collected reference sea surface image according to a preset similarity calculation method if the sea surface to be analyzed is in a calm state, and to determine whether the first similarity value is greater than a preset similarity threshold; wherein the reference sea surface image is an image obtained by collecting an image of a sea surface that has been determined to be polluted;

[0045] The second sea surface image acquisition unit is used for controlling the UAV to perform n-1 equal-altitude flights if the first similarity value is greater than a preset similarity threshold value, and performing image acquisition and processing on the sea surface to be analyzed after each equal-altitude flight, so as to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image accordingly; wherein the centers of two sea surface images obtained by two adjacent equal-altitude flights and image acquisition differ by a preset distance, and the preset distance is less than the boundary length of the first sea surface image; the boundary length refers to the length of a line connecting the center of the image to the edge point of the image; and n is an integer greater than 2;

[0046] a second similarity value calculation unit, used to respectively calculate a second similarity value, a third similarity value, ..., an nth similarity value between the second sea surface image, the third sea surface image, ..., the nth sea surface image and the reference sea surface image, and to sequentially determine whether the second similarity value, the third similarity value, ..., the nth similarity value are greater than a preset similarity threshold;

[0047] an image center position acquisition unit, configured to acquire n-1 image center positions corresponding to the first first sea surface image, the second sea surface image, the third sea surface image, ..., the n-1th sea surface image, respectively, if the second similarity value, the third similarity value, ..., the n-1th similarity value are all greater than a preset similarity threshold, and the nth similarity value is less than the preset similarity threshold;

[0048] The wave image acquisition unit is used to control the UAV to fly to n-1 image center positions in sequence, and then perform n-1 weight throwing processes on the weight pre-placed on the UAV to splash the sea surface, and use the high-speed camera pre-placed on the UAV to perform image acquisition and processing on the sea surface to obtain n-1 wave images; wherein the n-1 wave images correspond to the n-1 image center positions respectively;

[0049] The pollutant thickness value output unit is used to sequentially input n-1 wave spray images into a pre-trained pollution degree prediction model for processing, so as to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model; wherein the pollution degree prediction model is based on a neural network model and is trained using sample data; the sample data is image data obtained by throwing heavy objects on a sea surface with pollutants of a preset thickness to splash waves, and then performing image acquisition, and the sample data is manually annotated to attach pollutant thickness labels;

[0050] The warning signal generating unit is used to generate a warning signal and attach the n-1 pollutant thickness values ​​to the warning signal.

[0051] The present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0052] The present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0053] The sea surface pollutant early warning method, device, computer equipment and storage medium based on thickness analysis of the present application perform multiple image acquisition and processing on the sea surface to be analyzed to obtain multiple first sea surface images; if the sea surface to be analyzed is in a calm state, calculate the first similarity value between the first first sea surface image and the pre-collected reference sea surface image; if the first similarity value is greater than a preset similarity threshold, control the drone to perform n-1 equal-altitude flights to obtain the second sea surface image, the third sea surface image, ..., the nth sea surface image; calculate the second similarity value, the third similarity value, ..., the nth similarity value. value; if they are all greater than the preset similarity threshold, and the nth similarity value is less than the preset similarity threshold, then obtain n-1 image center positions; perform n-1 heavy object ejection processing to cause waves to splash on the sea surface, and perform image acquisition processing to obtain n-1 wave images; input them into the pre-trained pollution degree prediction model for processing to obtain n-1 pollutant thickness values; generate an early warning signal, and attach the n-1 pollutant thickness values ​​to the early warning signal, and complete the thickness analysis of sea surface pollutants in a non-contact manner, thereby achieving the purpose of accurately warning of sea surface pollutants.

[0054] The principles of this application are:

[0055] For a calm sea surface covered with pollutants of different thicknesses, when a preset weight is thrown, the splashes are directly related to the thickness of the pollutants (for example, for oil pollutants with high viscosity, under the same conditions, the thicker the pollutants, the smaller the splashes and the darker the color; and the density and distribution of pollutants in the waves are also directly related to the thickness of the pollutants, and the density and distribution of pollutants in the waves will also be reflected in the wave image). Therefore, the present application adopts a special design, that is, by collecting and analyzing the wave image, the three-dimensional thickness data is reflected on the wave image, thereby overcoming the defect that the traditional solution cannot obtain thickness data by collecting and analyzing a single drone image. Moreover, because the wave image is directly related to the thickness of the pollutant, and the neural network model is particularly suitable for this kind of prediction task with an exact correlation, the present application uses a neural network model to analyze the wave image to predict the thickness of the pollutant.

[0056] This application is applicable to the thickness analysis and early warning of the sea surface enriched with pollutants, especially to the thickness analysis and early warning of the sea surface enriched with pollutants in a calm state. The enriched pollutants can be any feasible pollutants, such as oil pollutants, algae pollutants (which are prone to cause red tides, which are actually the dominant manifestation of organic pollution), etc.

[0057] In addition, in order to avoid possible errors in the analysis of the pollution degree prediction model, the sea surface pollutant warning based on thickness analysis of the present application also adopts a method of predicting n-1 pollutant thickness values, thereby ensuring the reliability of the final warning result. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 This is a schematic diagram of the process of a sea surface pollutant early warning method based on thickness analysis according to an embodiment of the present application;

[0059] Figure 2 This is a schematic block diagram of the structure of a sea surface pollutant early warning device based on thickness analysis according to an embodiment of the present application;

[0060] Figure 3 A schematic block diagram of the structure of a computer device according to an embodiment of the present application.

[0061] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0063] Reference Figure 1 The embodiment of the present application provides a sea surface pollutant early warning method based on thickness analysis, which is applied to a drone terminal, including:

[0064] S1, using an image collector preset on the UAV to perform multiple image acquisition and processing on the sea surface to be analyzed within a preset time to obtain multiple first sea surface images;

[0065] S2. judging whether the sea surface to be analyzed is in a calm state by using the plurality of first sea surface images according to a preset calm state judgment method;

[0066] S3. If the sea surface to be analyzed is in a calm state, a first similarity value between the first sea surface image and a pre-collected reference sea surface image is calculated according to a preset similarity calculation method, and it is determined whether the first similarity value is greater than a preset similarity threshold; wherein the reference sea surface image is an image obtained by collecting an image of a sea surface that has been determined to be polluted;

[0067] S4. If the first similarity value is greater than a preset similarity threshold, the UAV is controlled to perform n-1 equal-altitude flights, and after each equal-altitude flight, image acquisition and processing are performed on the sea surface to be analyzed, so as to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image accordingly; wherein the centers of two sea surface images obtained by two adjacent equal-altitude flights and image acquisition differ by a preset distance, and the preset distance is less than the boundary length of the first sea surface image; the boundary length refers to the length of a line connecting the center of the image to the edge point of the image; and n is an integer greater than 2;

[0068] S5, respectively calculating a second similarity value, a third similarity value, ..., an nth similarity value between the second sea surface image, the third sea surface image, ..., the nth sea surface image and the reference sea surface image, and determining in turn whether the second similarity value, the third similarity value, ..., the nth similarity value is greater than a preset similarity threshold;

[0069] S6. If the second similarity value, the third similarity value, ..., and the n-1th similarity value are all greater than the preset similarity threshold, and the nth similarity value is less than the preset similarity threshold, then obtaining n-1 image center positions corresponding to the first first sea surface image, the second sea surface image, the third sea surface image, ..., and the n-1th sea surface image respectively;

[0070] S7, controlling the drone to fly to n-1 image center positions in sequence, and then performing n-1 weight throwing processing on the weight pre-placed on the drone, so as to cause waves to splash on the sea surface, and using a high-speed camera pre-placed on the drone to perform image acquisition processing on the sea surface, so as to obtain n-1 wave images; wherein the n-1 wave images correspond to the n-1 image center positions respectively;

[0071] S8, sequentially inputting n-1 wave spray images into a pre-trained pollution degree prediction model for processing, so as to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model; wherein the pollution degree prediction model is based on a neural network model and is trained using sample data; the sample data is image data obtained by throwing a heavy object on a sea surface with a preset thickness of pollutants to splash waves, and then performing image acquisition, and the sample data is manually annotated to attach pollutant thickness labels;

[0072] S9. Generate a warning signal, and attach the n-1 pollutant thickness values ​​to the warning signal.

[0073] The executor of this application is a drone terminal, which is used to control the drone preset in this application.

[0074] As described in the above steps S1-S3, an image acquisition device preset on the drone is used to perform multiple image acquisition and processing on the sea surface to be analyzed within a preset time to obtain multiple first sea surface images; according to a preset calm state judgment method, the multiple first sea surface images are used to judge whether the sea surface to be analyzed is in a calm state; if the sea surface to be analyzed is in a calm state, a first similarity value between the first first sea surface image and a pre-collected reference sea surface image is calculated according to a preset similarity calculation method, and it is judged whether the first similarity value is greater than a preset similarity threshold; wherein, the reference sea surface image is an image obtained by image acquisition of a sea surface that has been determined to be polluted.

[0075] The image collector can be any feasible device. Since the requirements for the first sea surface image are not high, there is no restriction on the image collector. This is different from the high-speed camera mentioned in the subsequent steps, because the high-speed camera mentioned in the subsequent steps is used to obtain the wave image, which has higher requirements on the camera. The purpose of collecting multiple first sea surface images is to determine whether the sea surface to be analyzed is in a calm state. The reason why it is necessary to determine whether the sea surface to be analyzed is in a calm state is related to the application scenario of this application, because this application can only analyze the sea surface in a calm state. If the subsequent wave image is obtained by collecting the sea surface in a non-calm state, the influencing factors of the waves no longer depend only on the projectile weight, so it cannot be used as a basis for thickness analysis. This is also the reason why this application executes steps S1-S3.

[0076] The basis of the calm state judgment method is that if the sea surface is in a calm state, the differences between the multiple first sea surface images collected are small; if the sea surface is in a non-calm state, the differences between the multiple first sea surface images collected are large. Therefore, by analyzing the multiple first sea surface images, it is easy to judge the state of the sea surface to be analyzed.

[0077] The specific calm state judgment method may adopt any feasible algorithm. For example, the step S2 of judging whether the sea surface to be analyzed is in a calm state by using the plurality of first sea surface images according to the preset calm state judgment method includes:

[0078] S201, according to a preset image similarity calculation method, sequentially calculating the similarities between a first first sea surface image and other first sea surface images to obtain a plurality of image similarity values;

[0079] S202, arranging the similarity values ​​of the multiple images in descending order according to their numerical values ​​to obtain a similarity descending order table;

[0080] S203, performing top truncation processing on the similarity descending table, and discarding the portion below the truncation to obtain a truncated descending table; wherein the top truncation processing is based on that a first numerical difference between a first image similarity value above the truncation and a first image similarity value below the truncation is greater than p times a second numerical difference between a second image similarity value above the truncation and a first image similarity value above the truncation, where p is a preset parameter greater than 1;

[0081] S204, clustering the similarity numbers in the truncated descending table according to a preset clustering algorithm;

[0082] S205, obtaining multiple cluster center numbers corresponding to multiple clusters respectively;

[0083] S206, performing difference processing on the numbers of two adjacent cluster centers in sequence to obtain a plurality of number difference values, and determining whether the difference between the plurality of number difference values ​​is less than a preset difference threshold;

[0084] S207: If the difference between the multiple serial number differences is less than a preset difference threshold, it is determined that the sea surface to be analyzed is in a calm state.

[0085] This application adopts this special calm state judgment method, which not only takes into account that when the sea surface is in a calm state, the differences between the multiple first sea surface images are small, but also takes into account the environment of the ocean at this time. In fact, the ocean cannot be in a completely static state. Therefore, there should be a periodic correspondence between the multiple first sea surface images. For example, if the period is T, the similarity between the first first sea surface image and the first sea surface image collected after T time should be closer. Therefore, this application improves the accuracy of calm state judgment by introducing new factors. The image similarity calculation method can be any feasible algorithm. Since the similarity algorithm between images has been widely used in the existing machine vision and image processing fields, it will not be repeated here.

[0086] The basis for the top truncation process is that the first numerical difference between the first image similarity value above the truncation and the first image similarity value below the truncation is greater than p times the second numerical difference between the second image similarity value above the truncation and the first image similarity value above the truncation. The purpose is to determine the images separated by one cycle, for example, the first first sea surface image and the T+1 first sea surface image are separated by one cycle, then they should be more similar, which is reflected in the similarity descending table, then the image similarity value corresponding to the T+1 first sea surface image will be ranked first; on the contrary, the image similarity value corresponding to another first sea surface image (for example, T / 2+1) will be ranked later. And the similarity descending table shows the degree of similarity with the first first sea surface image, so there is a ladder, and the ladder above can be regarded as one or more cycles different from the first first sea surface image (or approximately one or more cycles different). Furthermore, clustering processing is performed to obtain cluster center numbers. The number of cluster center numbers at this time should correspond to the number of periods included in the acquisition time. For example, if it includes five periods, there should be five cluster center numbers. These cluster center numbers should be multiples of the period difference, so the difference between two adjacent cluster center numbers should be equal or approximately equal.

[0087] Thereafter, if the sea surface to be analyzed is in a calm state, the first similarity value between the first sea surface image and the pre-collected reference sea surface image is calculated according to the preset similarity calculation method, and it is determined whether the first similarity value is greater than the preset similarity threshold; wherein, the reference sea surface image is an image obtained by image collection of a sea surface that has been determined to be polluted. The similarity calculation method is also used to calculate the similarity value between images, and any feasible method can also be used. The purpose of the similarity calculation and judgment at this time is to determine whether the pollutant is a preset pollutant. Since the qualitative analysis of the type of pollutants can be achieved through traditional image analysis algorithms, this application does not expand on this. For example, for oil pollutants, the first sea surface image should be similar to the pre-collected image of the oil-polluted sea surface.

[0088] Furthermore, if the first similarity value is not greater than a preset similarity threshold, it indicates that the pollutants on the current sea surface are not the preset pollutants. In this case, the reference sea surface image can be replaced to perform recalculation and judgment.

[0089] As described in the above steps S4-S6, if the first similarity value is greater than the preset similarity threshold, the drone is controlled to perform n-1 equal-altitude flights, and after each equal-altitude flight, image acquisition and processing are performed on the sea surface to be analyzed, so as to obtain the second sea surface image, the third sea surface image, ..., the nth sea surface image accordingly; wherein the centers of the two sea surface images obtained by two adjacent equal-altitude flights and image acquisition differ by a preset distance, and the preset distance is less than the boundary length of the first sea surface image; the boundary length refers to the length of the line connecting the center of the image to the edge point of the image; the second sea surface image, the third sea surface image, ..., the nth sea surface image are calculated respectively. The second similarity value, the third similarity value, ..., the nth similarity value between the third sea surface image, ..., the nth sea surface image and the reference sea surface image are determined, and the second similarity value, the third similarity value, ..., the nth similarity value are determined in turn whether they are greater than a preset similarity threshold; if the second similarity value, the third similarity value, ..., the n-1th similarity value are all greater than the preset similarity threshold, and the nth similarity value is less than the preset similarity threshold, then the n-1 image center positions corresponding to the first first sea surface image, the second sea surface image, the third sea surface image, ..., the n-1th sea surface image are obtained.

[0090] The purpose of the above steps is to determine the appropriate wave image acquisition position. This design is conducive to determining the distribution of pollutant thickness to generate a more accurate early warning signal with more effective information. In order to avoid errors, this application requires the drone to fly at a constant altitude. Among them, the constant altitude flight can be carried out in any feasible way, for example, flying outward at the same altitude along the trajectory of the involute.

[0091] Furthermore, if the first similarity value is greater than a preset similarity threshold, the UAV is controlled to perform n-1 equal-altitude flights, and after each equal-altitude flight, image acquisition and processing are performed on the sea surface to be analyzed to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image, step S4 includes:

[0092] S401, if the first similarity value is greater than a preset similarity threshold, calling a preset Archimedean spiral;

[0093] S402, aligning the center of the first sea surface image with the center of the Archimedean spiral, and controlling the UAV to perform n-1 equal-altitude flights along the trajectory of the Archimedean spiral, and performing image acquisition and processing on the sea surface to be analyzed after each equal-altitude flight, so as to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image accordingly. Thus, the sea surface image with a larger number is farther away from the first sea surface image, and each sea surface image is nested with each other.

[0094] When calculating the second similarity value, the third similarity value, ..., and the nth similarity value, the similarity calculation method used is also not limited in this application, and can be any feasible algorithm. Then determine whether the second similarity value, the third similarity value, ..., and the nth similarity value are greater than the preset similarity threshold value, the purpose of which is to determine the relative distance relationship between the image acquisition position and the center of the polluted sea surface. Specifically, the thickness of pollutants in the center of the sea surface enriched with pollutants is generally the thickest, and the thickness decreases toward the edge, and the degree of pollution becomes lighter toward the edge, and the degree of pollution becomes lighter to a certain extent, which will be reflected in the similarity value with the reference sea surface image, so the similarity value becomes smaller toward the edge of the pollution. Through this characteristic, this application is used to determine the edge of the pollutant.

[0095] If the second similarity value, the third similarity value, ..., and the n-1th similarity value are all greater than the preset similarity threshold, and the nth similarity value is less than the preset similarity threshold, it indicates that the edge of the pollutant has been found, so the nth sea surface image outside the edge of the pollutant is discarded, and the n-1 image center positions corresponding to the first n-1 sea surface images are taken. And these n-1 image center positions are the positions where the wave image will be collected.

[0096] It should be noted that the present application can only be implemented on a calm sea surface, which also provides a basis for the execution of the above steps. Because if the sea surface is not calm, the time spent on determining the center positions of n-1 images may cause pollution to the sea surface flow, making the subsequent analysis results inaccurate.

[0097] As described in the above steps S7-S9, the drone is controlled to fly to n-1 image center positions in sequence, and then the heavy objects pre-placed on the drone are subjected to n-1 corresponding heavy object throwing processing to cause waves to splash on the sea surface, and the high-speed camera pre-set on the drone is used to collect images of the sea surface to obtain n-1 wave images; wherein, the n-1 wave images correspond to the n-1 image center positions respectively; the n-1 wave images are sequentially input into the pre-trained pollution degree prediction model for processing to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model; wherein, the pollution degree prediction model is based on a neural network model and is trained using sample data; the sample data is image data obtained by throwing heavy objects on the sea surface with pollutants of preset thickness to splash waves and then performing image acquisition, and the sample data is manually labeled to attach pollutant thickness labels; an early warning signal is generated, and the n-1 pollutant thickness values ​​are attached to the early warning signal.

[0098] One feature of the present application is that, under the premise that other conditions remain unchanged, the same weight is used to perform the weight projection process with the same parameters. As can be seen from the aforementioned introduction to the principle of the present application, the sea surface with pollutants of different thicknesses has different corresponding wave images (of course, this does not mean that these wave images are similar, which is why the present application does not use a similarity algorithm to calculate the wave images). Furthermore, there is no special restriction on the weight of the present application, but it is sufficient to ensure that the weight is the same each time it is projected (of course, the posture of entering the water must also be the same), and in order to splash larger-scale waves, a heavier weight can be preferred.

[0099] In addition, the camera used at this time is a high-speed camera, because it is necessary to collect clear wave images. Among them, a high-speed camera is a device that can capture moving images with an exposure of less than 1 / 1000 second or a frame rate of more than 250 frames per second.

[0100] Further, the step S7 of controlling the drone to fly to n-1 image center positions in sequence, and then performing n-1 weight throwing processes on the weights pre-set on the drone to splash waves on the sea surface, and using a high-speed camera pre-set on the drone to perform image acquisition and processing on the sea surface to obtain n-1 wave images includes:

[0101] S701, controlling the drone to fly to the center positions of n-1 images in sequence, and then vertically throwing the heavy objects pre-placed on the drone respectively, so that the heavy objects have an acceleration vertically downward and greater than the acceleration of gravity when leaving the drone; wherein the heavy objects are connected to the drone by a rope;

[0102] S702, when waves splash on the sea surface, a high-speed camera preset in the drone is used to collect and process images of the sea surface to obtain n-1 corresponding wave images;

[0103] S703, performing n-1 heavy object recovery processes in sequence through the rope.

[0104] This ensures that n-1 heavy object ejection processes are carried out smoothly, and the conditions for each heavy object ejection process are the same, so that unnecessary external interference can be reduced when analyzing n-1 wave spray images. And when the heavy object leaves the drone, it has a vertical downward acceleration greater than the acceleration of gravity, which can increase the scale of the wave splashing.

[0105] Then, n-1 spray images are sequentially input into the pollution degree prediction model obtained by pre-training for processing, so as to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model. The present application uses a pollution degree prediction model based on a neural network model to process spray images. It can use any feasible model, such as a residual network model, a deep convolutional neural network model, etc. Since the deep convolutional neural network model is particularly suitable for processing images, the deep convolutional neural network model is more preferred. In addition, compared with ordinary image processing tasks, such as using a deep convolutional neural network model to realize face recognition and species prediction, the present application uses spray images to predict the thickness value of pollutants. Therefore, although the same model is used, the present application has higher requirements for image clarity, which is why a high-speed camera is needed. Similarly, the present application also needs to be based on a neural network model and trained with sample data to obtain a pollution degree prediction model, and it also needs to be trained in a supervised learning manner, so the sample data needs to be manually labeled to attach pollutant thickness labels.

[0106] Furthermore, before step S8 of sequentially inputting n-1 spray images into the pre-trained pollution degree prediction model for processing to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model, the method includes:

[0107] S71, calling a preset deep convolutional neural network model, and calling pre-collected sample data marked with pollutant thickness labels;

[0108] S72, dividing the sample data according to a preset division ratio to obtain training data and verification data;

[0109] S73, inputting the training data into the deep convolutional neural network model for training processing to obtain a preliminary pollution degree prediction model; wherein the training process uses a back propagation algorithm to update the parameters of each layer of the neural network;

[0110] S74, using the verification data to verify the preliminary pollution degree prediction model, and judging whether the verification result is verified or not;

[0111] S75. If the result of the verification process is that the verification is passed, the preliminary pollution degree prediction model is recorded as the final pollution degree prediction model.

[0112] Thereby, the pollution degree prediction model can be competent for the prediction task. Since the training data and the verification data are divided from the same sample data, the reliability of the pollution degree prediction model finally trained can be guaranteed. In addition, the present application can be trained in a semi-supervised learning method or a fully supervised learning method. When the semi-supervised learning method is adopted, the sample data only includes the wave images corresponding to the polluted sea surface with a preset thickness; when the fully supervised learning method is adopted, the sample data also includes the wave images corresponding to the unpolluted sea surface. In addition, the sample data is preferably collected under the same conditions of heavy object ejection at the same height.

[0113] It is also necessary to mention that the present application adopts a prediction method of n-1 pollutant thickness values, which is not only for forming a pollutant thickness distribution map, but also has the function of reducing analysis errors. Because in the prediction process of n-1 pollutant thickness values, it only needs the accuracy of most of the prediction results to be high enough, then the purpose of accurate early warning in this application can still be achieved.

[0114] The warning signal is then generated, and the n-1 pollutant thickness values ​​are attached to the warning signal. Compared with ordinary pollutant warnings, the present application can realize the warning of pollutant thickness, which is conducive to determining the scale of pollutants and facilitating more accurate response.

[0115] Furthermore, the step S9 of generating a warning signal and attaching the n-1 contaminant thickness values ​​to the warning signal comprises:

[0116] S901, generating a pollutant thickness distribution map according to the n-1 pollutant thickness values ​​and the n-1 image center positions;

[0117] S902, determining whether the pollutant thickness distribution map shows a gradient distribution trend;

[0118] S903, if the pollutant thickness distribution map shows a gradient distribution trend, selecting the pollutant minimum thickness point and the pollutant maximum thickness point from the pollutant thickness distribution map;

[0119] S904, generating a tracing ray from the point of minimum pollutant thickness to the point of maximum pollutant thickness, and generating a flight instruction to instruct the UAV to fly along the tracing ray until the edge point of the pollutant is detected;

[0120] S905, calculating the distance between the minimum thickness point of the pollutant and the edge point of the pollutant, and recording it as the diameter of the polluted sea surface;

[0121] S906: Generate a warning signal, and attach the n-1 pollutant thickness values ​​and the polluted sea surface diameter to the warning signal.

[0122] Therefore, the warning signal is not only accompanied by the thickness distribution (corresponding to n-1 pollutant thickness values), but also by the preset pollutant range. Generally speaking, the pollutant maximum thickness point should be one of the first few sea surface image center points (such as the first sea surface image center point), and the pollutant minimum thickness point should be the last sea surface image center point. The connecting line should pass through or be close to the center of the polluted sea surface. Therefore, in this way, the flight trajectory of the drone can be quickly determined, so as to determine the pollutant range in a timely manner.

[0123] The sea surface pollutant early warning method based on thickness analysis of the present application performs multiple image acquisition and processing on the sea surface to be analyzed to obtain multiple first sea surface images; if the sea surface to be analyzed is in a calm state, a first similarity value between the first first sea surface image and a pre-collected reference sea surface image is calculated; if the first similarity value is greater than a preset similarity threshold, the drone is controlled to perform n-1 equal-altitude flights to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image; the second similarity value, the third similarity value, ..., and the nth similarity value are calculated; if all of them are greater than the ... If a similarity threshold is set and the nth similarity value is less than the preset similarity threshold, n-1 image center positions are obtained; n-1 heavy object ejection processes are performed to cause waves to splash on the sea surface, and image acquisition processes are performed to obtain n-1 wave images; the pre-trained pollution degree prediction model is input for processing to obtain n-1 pollutant thickness values; an early warning signal is generated, and the n-1 pollutant thickness values ​​are attached to the early warning signal, and the thickness analysis of sea surface pollutants is completed in a non-contact manner, thereby achieving the purpose of accurately warning of sea surface pollutants.

[0124] Reference Figure 2 The embodiment of the present application provides a sea surface pollutant early warning device based on thickness analysis, which is applied to a drone terminal, including:

[0125] The first sea surface image acquisition unit 10 is used to use an image acquisition device preset on the UAV to perform multiple image acquisition and processing on the sea surface to be analyzed within a preset time to obtain multiple first sea surface images;

[0126] A calm state judgment unit 20, configured to judge whether the sea surface to be analyzed is in a calm state by using the plurality of first sea surface images according to a preset calm state judgment method;

[0127] The first similarity value calculation unit 30 is used to calculate the first similarity value between the first first sea surface image and the pre-collected reference sea surface image according to a preset similarity calculation method if the sea surface to be analyzed is in a calm state, and to determine whether the first similarity value is greater than a preset similarity threshold; wherein the reference sea surface image is an image obtained by collecting an image of a sea surface that has been determined to be polluted;

[0128] The second sea surface image acquisition unit 40 is used to control the UAV to perform n-1 equal-altitude flights if the first similarity value is greater than a preset similarity threshold, and to perform image acquisition processing on the sea surface to be analyzed after each equal-altitude flight, so as to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image accordingly; wherein the centers of two sea surface images obtained by two adjacent equal-altitude flights and image acquisition differ by a preset distance, and the preset distance is less than the boundary length of the first sea surface image; the boundary length refers to the length of a line connecting the center of the image to the edge point of the image; and n is an integer greater than 2;

[0129] a second similarity value calculation unit 50, configured to respectively calculate a second similarity value, a third similarity value, ..., an nth similarity value between the second sea surface image, the third sea surface image, ..., the nth sea surface image and the reference sea surface image, and to sequentially determine whether the second similarity value, the third similarity value, ..., the nth similarity value are greater than a preset similarity threshold;

[0130] The image center position acquisition unit 60 is used to acquire n-1 image center positions corresponding to the first first sea surface image, the second sea surface image, the third sea surface image, ..., the n-1th sea surface image respectively if the second similarity value, the third similarity value, ..., the n-1th similarity value are all greater than a preset similarity threshold, and the nth similarity value is less than the preset similarity threshold;

[0131] The wave image acquisition unit 70 is used to control the drone to fly to n-1 image center positions in sequence, and then perform n-1 weight throwing processes on the weight pre-placed on the drone to make the sea surface splash with waves, and use the high-speed camera pre-placed on the drone to perform image acquisition and processing on the sea surface to obtain n-1 wave images; wherein the n-1 wave images correspond to the n-1 image center positions respectively;

[0132] The pollutant thickness value output unit 80 is used to sequentially input n-1 wave spray images into a pre-trained pollution degree prediction model for processing, so as to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model; wherein the pollution degree prediction model is based on a neural network model and is trained using sample data; the sample data is image data obtained by throwing a heavy object on a sea surface with a preset thickness of pollutants to splash waves, and then performing image acquisition, and the sample data is manually annotated to attach pollutant thickness labels;

[0133] The warning signal generating unit 90 is used to generate a warning signal and attach the n-1 pollutant thickness values ​​to the warning signal.

[0134] The operations performed by the above units correspond one-to-one to the steps of the sea surface pollutant early warning method based on thickness analysis in the aforementioned embodiment, and will not be repeated here.

[0135] The sea surface pollutant early warning device based on thickness analysis of the present application performs multiple image acquisition and processing on the sea surface to be analyzed to obtain multiple first sea surface images; if the sea surface to be analyzed is in a calm state, a first similarity value between the first first sea surface image and a pre-collected reference sea surface image is calculated; if the first similarity value is greater than a preset similarity threshold, the drone is controlled to perform n-1 equal-altitude flights to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image; the second similarity value, the third similarity value, ..., and the nth similarity value are calculated; if all of them are greater than the ... If a similarity threshold is set and the nth similarity value is less than the preset similarity threshold, n-1 image center positions are obtained; n-1 heavy object ejection processes are performed to cause waves to splash on the sea surface, and image acquisition processes are performed to obtain n-1 wave images; the pre-trained pollution degree prediction model is input for processing to obtain n-1 pollutant thickness values; an early warning signal is generated, and the n-1 pollutant thickness values ​​are attached to the early warning signal, and the thickness analysis of sea surface pollutants is completed in a non-contact manner, thereby achieving the purpose of accurately warning of sea surface pollutants.

[0136] Reference Figure 3 In an embodiment of the present invention, a computer device is also provided, which may be a server, and its internal structure may be as shown in the figure. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data used in a sea surface pollutant early warning method based on thickness analysis. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a sea surface pollutant early warning method based on thickness analysis is implemented. The computer device also includes a display screen and an input device, which are respectively used to display a manual interaction interface and to receive input data.

[0137] The above-mentioned processor executes the above-mentioned sea surface pollutant early warning method based on thickness analysis, wherein the steps included in the method correspond one-to-one to the steps of executing the sea surface pollutant early warning method based on thickness analysis of the aforementioned embodiment, and are not repeated here.

[0138] Those skilled in the art will appreciate that the structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.

[0139] The computer device of the present application performs multiple image acquisition and processing on the sea surface to be analyzed to obtain multiple first sea surface images; if the sea surface to be analyzed is in a calm state, a first similarity value between the first first sea surface image and a pre-collected reference sea surface image is calculated; if the first similarity value is greater than a preset similarity threshold, the drone is controlled to perform n-1 equal-altitude flights to correspondingly obtain a second sea surface image, a third sea surface image, ..., an nth sea surface image; the second similarity value, the third similarity value, ..., an nth similarity value are calculated; if all of them are greater than the ... threshold, and the nth similarity value is less than the preset similarity threshold, then n-1 image center positions are obtained; n-1 heavy object ejection processes are performed to cause waves to splash on the sea surface, and image acquisition processing is performed to obtain n-1 wave images; the pre-trained pollution degree prediction model is input for processing to obtain n-1 pollutant thickness values; an early warning signal is generated, and the n-1 pollutant thickness values ​​are attached to the early warning signal, and the thickness analysis of sea surface pollutants is completed in a non-contact manner, thereby achieving the purpose of accurately warning of sea surface pollutants.

[0140] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a sea surface pollutant early warning method based on thickness analysis is implemented. The steps included in the method correspond one-to-one to the steps of executing the sea surface pollutant early warning method based on thickness analysis of the aforementioned embodiment, and are not repeated here.

[0141] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by hardware related to computer programs or instructions, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0142] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.

[0143] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A sea surface pollutant early warning method based on thickness analysis, characterized in that: Applied to drone terminals, including: S1, using an image collector preset on the UAV to perform multiple image acquisition and processing on the sea surface to be analyzed within a preset time to obtain multiple first sea surface images; S2. judging whether the sea surface to be analyzed is in a calm state by using the plurality of first sea surface images according to a preset calm state judgment method; S3. If the sea surface to be analyzed is in a calm state, a first similarity value between the first sea surface image and a pre-collected reference sea surface image is calculated according to a preset similarity calculation method, and it is determined whether the first similarity value is greater than a preset similarity threshold; wherein the reference sea surface image is an image obtained by collecting an image of a sea surface that has been determined to be polluted; S4. If the first similarity value is greater than a preset similarity threshold, the UAV is controlled to perform n-1 equal-altitude flights, and after each equal-altitude flight, image acquisition and processing are performed on the sea surface to be analyzed, so as to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image accordingly; wherein the centers of two sea surface images obtained by two adjacent equal-altitude flights and image acquisition differ by a preset distance, and the preset distance is less than the boundary length of the first sea surface image; the boundary length refers to the length of a line connecting the center of the image to the edge point of the image; and n is an integer greater than 2; S5, respectively calculating a second similarity value, a third similarity value, ..., an nth similarity value between the second sea surface image, the third sea surface image, ..., the nth sea surface image and the reference sea surface image, and determining in turn whether the second similarity value, the third similarity value, ..., the nth similarity value is greater than a preset similarity threshold; S6. If the second similarity value, the third similarity value, ..., and the n-1th similarity value are all greater than the preset similarity threshold, and the nth similarity value is less than the preset similarity threshold, then obtaining n-1 image center positions corresponding to the first first sea surface image, the second sea surface image, the third sea surface image, ..., and the n-1th sea surface image respectively; S7, controlling the drone to fly to n-1 image center positions in sequence, and then performing n-1 weight throwing processing on the weight pre-placed on the drone, so as to cause waves to splash on the sea surface, and using a high-speed camera pre-placed on the drone to perform image acquisition processing on the sea surface, so as to obtain n-1 wave images; wherein the n-1 wave images correspond to the n-1 image center positions respectively; S8, sequentially inputting n-1 wave spray images into a pre-trained pollution degree prediction model for processing, so as to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model; wherein the pollution degree prediction model is based on a neural network model and is trained using sample data; the sample data is image data obtained by throwing a heavy object on a sea surface with a preset thickness of pollutants to splash waves, and then performing image acquisition, and the sample data is manually annotated to attach pollutant thickness labels; S9, generating a warning signal, and attaching the n-1 pollutant thickness values ​​to the warning signal; The step S2 of using the plurality of first sea surface images to determine whether the sea surface to be analyzed is in a calm state according to a preset calm state determination method comprises: S201, according to a preset image similarity calculation method, sequentially calculating the similarities between a first first sea surface image and other first sea surface images to obtain a plurality of image similarity values; S202, arranging the similarity values ​​of the multiple images in descending order according to their numerical values ​​to obtain a similarity descending order table; S203, performing top truncation processing on the similarity descending table, and discarding the portion below the truncation to obtain a truncated descending table; wherein the top truncation processing is based on that a first numerical difference between a first image similarity value above the truncation and a first image similarity value below the truncation is greater than p times a second numerical difference between a second image similarity value above the truncation and a first image similarity value above the truncation, where p is a preset parameter greater than 1; S204, clustering the similarity numbers in the truncated descending table according to a preset clustering algorithm to obtain multiple clusters; S205, obtaining multiple cluster center numbers corresponding to multiple clusters respectively; S206, performing difference processing on the numbers of two adjacent cluster centers in sequence to obtain a plurality of number difference values, and determining whether the difference between the plurality of number difference values ​​is less than a preset difference threshold; S207: If the difference between the multiple serial number differences is less than a preset difference threshold, it is determined that the sea surface to be analyzed is in a calm state.

2. The sea surface pollutant early warning method based on thickness analysis according to claim 1 is characterized in that: If the first similarity value is greater than a preset similarity threshold, the UAV is controlled to perform n-1 equal-altitude flights, and after each equal-altitude flight, image acquisition and processing are performed on the sea surface to be analyzed to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image, step S4 includes: S401, if the first similarity value is greater than a preset similarity threshold, calling a preset Archimedean spiral; S402, aligning the center of the first sea surface image with the center of the Archimedean spiral, and controlling the UAV to perform n-1 equal-altitude flights along the trajectory of the Archimedean spiral, and performing image acquisition and processing on the sea surface to be analyzed after each equal-altitude flight to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image accordingly.

3. The sea surface pollutant early warning method based on thickness analysis according to claim 1 is characterized in that: The step S7 of controlling the drone to fly to n-1 image center positions in sequence, and then performing n-1 weight throwing processes on the weights pre-placed on the drone to cause waves to splash on the sea surface, and using a high-speed camera pre-placed on the drone to perform image acquisition and processing on the sea surface to obtain n-1 wave images includes: S701, controlling the drone to fly to the center positions of n-1 images in sequence, and then vertically throwing the heavy objects pre-placed on the drone respectively, so that the heavy objects have an acceleration vertically downward and greater than the acceleration of gravity when leaving the drone; wherein the heavy objects are connected to the drone by a rope; S702, when waves splash on the sea surface, a high-speed camera preset in the drone is used to collect and process images of the sea surface to obtain n-1 corresponding wave images; S703, performing n-1 heavy object recovery processes in sequence through the rope.

4. The sea surface pollutant early warning method based on thickness analysis according to claim 1 is characterized in that: Before the step S8 of sequentially inputting n-1 spray images into the pollution degree prediction model obtained by pre-training for processing to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model, the method includes: S71, calling a preset deep convolutional neural network model, and calling pre-collected sample data marked with pollutant thickness labels; S72, dividing the sample data according to a preset division ratio to obtain training data and verification data; S73, inputting the training data into the deep convolutional neural network model for training processing to obtain a preliminary pollution degree prediction model; wherein the training process uses a back propagation algorithm to update the parameters of each layer of the neural network; S74, using the verification data to verify the preliminary pollution degree prediction model, and judging whether the verification result is verified or not; S75. If the result of the verification process is that the verification is passed, the preliminary pollution degree prediction model is recorded as the final pollution degree prediction model.

5. The sea surface pollutant early warning method based on thickness analysis according to claim 1 is characterized in that: The step S9 of generating a warning signal and attaching the n-1 contaminant thickness values ​​to the warning signal comprises: S901, generating a pollutant thickness distribution map according to the n-1 pollutant thickness values ​​and the n-1 image center positions; S902, determining whether the pollutant thickness distribution map shows a gradient distribution trend; S903, if the pollutant thickness distribution map shows a gradient distribution trend, selecting the pollutant minimum thickness point and the pollutant maximum thickness point from the pollutant thickness distribution map; S904, generating a tracing ray from the point of minimum pollutant thickness to the point of maximum pollutant thickness, and generating a flight instruction to instruct the UAV to fly along the tracing ray until the edge point of the pollutant is detected; S905, calculating the distance between the minimum thickness point of the pollutant and the edge point of the pollutant, and recording it as the diameter of the polluted sea surface; S906: Generate a warning signal, and attach the n-1 pollutant thickness values ​​and the polluted sea surface diameter to the warning signal.

6. A sea surface pollutant early warning device based on thickness analysis, characterized in that: Applied to drone terminals, including: A first sea surface image acquisition unit is used to use an image acquisition device preset on the UAV to perform multiple image acquisition and processing on the sea surface to be analyzed within a preset time to obtain multiple first sea surface images; a calm state judgment unit, configured to judge whether the sea surface to be analyzed is in a calm state by using the plurality of first sea surface images according to a preset calm state judgment method; a first similarity value calculation unit, configured to calculate a first similarity value between a first first sea surface image and a pre-collected reference sea surface image according to a preset similarity calculation method if the sea surface to be analyzed is in a calm state, and to determine whether the first similarity value is greater than a preset similarity threshold; wherein the reference sea surface image is an image obtained by collecting an image of a sea surface that has been determined to be polluted; The second sea surface image acquisition unit is used for controlling the UAV to perform n-1 equal-altitude flights if the first similarity value is greater than a preset similarity threshold value, and performing image acquisition and processing on the sea surface to be analyzed after each equal-altitude flight, so as to obtain a second sea surface image, a third sea surface image, ..., and an nth sea surface image accordingly; wherein the centers of two sea surface images obtained by two adjacent equal-altitude flights and image acquisition differ by a preset distance, and the preset distance is less than the boundary length of the first sea surface image; the boundary length refers to the length of a line connecting the center of the image to the edge point of the image; and n is an integer greater than 2; a second similarity value calculation unit, used to respectively calculate a second similarity value, a third similarity value, ..., an nth similarity value between the second sea surface image, the third sea surface image, ..., the nth sea surface image and the reference sea surface image, and to sequentially determine whether the second similarity value, the third similarity value, ..., the nth similarity value are greater than a preset similarity threshold; an image center position acquisition unit, configured to acquire n-1 image center positions corresponding to the first first sea surface image, the second sea surface image, the third sea surface image, ..., the n-1th sea surface image, respectively, if the second similarity value, the third similarity value, ..., the n-1th similarity value are all greater than a preset similarity threshold, and the nth similarity value is less than the preset similarity threshold; The wave image acquisition unit is used to control the UAV to fly to n-1 image center positions in sequence, and then perform n-1 weight throwing processes on the weight pre-placed on the UAV to splash the sea surface, and use the high-speed camera pre-placed on the UAV to perform image acquisition and processing on the sea surface to obtain n-1 wave images; wherein the n-1 wave images correspond to the n-1 image center positions respectively; The pollutant thickness value output unit is used to sequentially input n-1 wave spray images into a pre-trained pollution degree prediction model for processing, so as to obtain n-1 pollutant thickness values ​​output by the pollution degree prediction model; wherein the pollution degree prediction model is based on a neural network model and is trained using sample data; the sample data is image data obtained by throwing heavy objects on a sea surface with pollutants of a preset thickness to splash waves, and then performing image acquisition, and the sample data is manually annotated to attach pollutant thickness labels; An early warning signal generating unit, used for generating an early warning signal and attaching the n-1 pollutant thickness values ​​to the early warning signal; The method of judging whether the sea surface to be analyzed is in a calm state by using the plurality of first sea surface images according to a preset calm state judgment method includes: According to a preset image similarity calculation method, the similarities between the first first sea surface image and other first sea surface images are calculated in sequence to obtain a plurality of image similarity values; Arrange the similarity values ​​of multiple images in descending order according to their numerical values ​​to obtain a similarity descending table; The similarity descending table is subjected to top truncation processing, and the portion below the truncation is discarded to obtain a truncated descending table; wherein the top truncation processing is based on that a first numerical difference between a first image similarity value above the truncation and a first image similarity value below the truncation is greater than p times a second numerical difference between a second image similarity value above the truncation and a first image similarity value above the truncation, where p is a preset parameter greater than 1; According to a preset clustering algorithm, clustering is performed on the similarity numbers in the truncated descending table to obtain multiple clusters; Get multiple cluster center numbers corresponding to multiple clusters; Performing difference processing on the numbers of two adjacent cluster centers in sequence to obtain multiple number difference values, and determining whether the difference between the multiple number difference values ​​is less than a preset difference threshold; If the difference between the multiple numbered difference values ​​is less than a preset difference threshold, it is determined that the sea surface to be analyzed is in a calm state.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Ocean spilt oil film thickness hyperspectral remote sensing estimation method based on parameter lookup table

    CN102997856A

  • Unmanned aerial vehicle bomb dropping algae killing method and system in initial stage of blue-green algae outbreak

    CN114821369A

  • Hyperspectral real-time monitoring method and system for oil film of crude oil on sea surface

    CN115979972A

  • Thickness detection method, detection device, training method and training device

    CN116486271A

  • Method for sending warning information, storage medium and terminal

    US20200201688A1