Marine oil spill target detection and tracing method and system based on deep learning
Oil spill detection is performed on marine SAR images through the improved YOLOv8m network model based on deep learning, combined with reliability scoring and manual inspection, which solves the problem of low oil spill detection accuracy in the existing technology and achieves more efficient oil spill identification and Traceability.
Patent Information
- Application Number
- CN202410977924.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing oil spill detection technology is easily affected by interference factors and difficult-to-identify oil spill targets in images, resulting in low detection accuracy and reducing the efficiency of oil spill traceability.
A method based on deep learning is used to detect marine SAR images through two improved YOLOv8m network models, combined with preprocessing and multiple reliability score calculations to improve the accuracy of oil spill identification and perform manual work when judging oil spill categories. Walkthrough to ensure accuracy.
It significantly improves the accuracy of oil spill detection, reduces false detections, improves the efficiency of oil spill traceability, and can assist in making quick decisions in emergencies.
Smart Images

Figure CN118521902B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil spill detection, and in particular to a method and system for detecting and tracing marine oil spill targets based on deep learning. Background Art
[0002] The ocean is a precious natural resource for mankind, providing humans with rich marine resources, including marine biological resources, marine power resources and marine mineral resources. With the development of industry, offshore oil extraction platforms, operations, storage and transportation volumes are growing, leading to an increase in the incidence of oil spills. Oil spills are mainly caused by human activities, such as oil extraction operations, illegal discharges from ships, and accidents on ship oil platforms. Oil spills are divided into macro and micro: macro oil spills caused by collisions, shipwrecks and oil well blowouts, and micro oil spills caused by illegal discharges from ships. The pollution of the ocean by these oil spills has long been a major and unavoidable problem. Oil spills in the marine environment are more destructive and dangerous than oil spills on flat land, and can quickly spread hundreds of kilometers, forming a thin layer of oil crust, covering a large area of sea or coastline. In the past few decades, the detection of marine oil spills has attracted widespread attention because they pose a threat to human health and cause serious environmental and economic impacts on social interests such as the marine environment, fisheries, wildlife, benthic communities, beaches, coastlines, and mangroves. As the source of the leak could not be identified quickly, the accident could not be controlled and handled in a timely manner, which aggravated the severity of the oil spill.
[0003] Existing technologies detect oil spill targets through remote sensing images, machine learning, and deep learning. However, since images usually contain many suspected oil spills with similar visual attributes, such as interference factors such as sea ice and biological oil slicks, as well as oil spills that are difficult to identify, such as targets with small oil spill areas, existing methods are prone to produce erroneous detection results for oil spill detection and have low accuracy, thereby reducing the effectiveness and efficiency of tracing the source of the oil spill.
[0004] Therefore, there is an urgent need for marine oil spill target detection, tracing methods and systems based on deep learning, which can improve the accuracy of oil spill detection and the efficiency of oil spill tracing, thereby assisting in making quick decisions in oil spill emergencies. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a method and system for marine oil spill target detection and tracing based on deep learning, which can improve the accuracy of oil spill detection and the efficiency of oil spill tracing, thereby assisting in making quick decisions in emergency situations of oil spills.
[0006] The present invention provides a method for detecting and tracing marine oil spill targets based on deep learning, comprising the following steps:
[0007] S1. Acquire an original SAR image of the ocean; wherein the original SAR image includes target oil pollution and environment, and the categories of target oil pollution include oil slick and oil spill;
[0008] S2, preprocessing the original SAR image;
[0009] S3, inputting the preprocessed original SAR image into the first deep learning model to obtain a first classification result and a first confidence score of the target oil pollution;
[0010] S4, inputting the preprocessed original SAR image into the second deep learning model to obtain a second classification result and a second confidence score of the target oil pollution;
[0011] S5. Determine a corresponding average precision mean value according to the first classification result of the target oil pollution, and obtain a first weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean value and the first confidence score;
[0012] S6. Determine a corresponding average precision mean value according to the second classification result of the target oil pollution, and obtain a second weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean value and the second confidence score;
[0013] S7, determining the category of the target oil pollution according to the first classification result, the second classification result, the first weighted confidence score and the second weighted confidence score of the target oil pollution;
[0014] S8. Determine whether source tracing is required according to the category of the target oil pollution; when the category of the target oil pollution is oil spill, perform source tracing; otherwise, stop performing source tracing.
[0015] Furthermore, in S3, the preprocessed original SAR image is input into the first deep learning model to obtain the first classification result and the first confidence score of the target oil pollution, wherein the first deep learning model is based on the YOLOv8m network model, the YOLOv8m network model includes an input end, a backbone network, a Neck module and a detection head, and the first deep learning model deletes the downsampling operation connected to the 9th spatial pyramid pooling layer in the Neck module, adds an upsampling operation connected to the 2nd feature fusion layer, and embeds the LSK module before the detection head.
[0016] Further, S4, the preprocessed original SAR image is input into the second deep learning model to obtain a second classification result and a second confidence score of the target oil pollution, wherein the second deep learning model is based on the YOLOv8m network model, the YOLOv8m network model includes an input end, a backbone network, a Neck module and a detection head, and the second deep learning model is embedded with an LSK module before the detection head.
[0017] Furthermore, the MPDIoU loss function is selected as the loss function of the bounding box regression task of the first deep learning model and the second deep learning model.
[0018] Furthermore, the calculation method of the mean average precision includes:
[0019] Determine the IoU threshold: use 0.5 as the initial IoU threshold, increase it by 0.05 each time until it reaches 0.95, and get all the IoU thresholds;
[0020] Determine positive samples: determine positive samples and negative samples at different IoU thresholds respectively;
[0021] Model performance calculation: For different IoU thresholds, the area under the recall and precision curve of the target oil pollution of a certain classification is calculated based on positive samples and negative samples;
[0022] Average precision mean calculation: The average precision mean is calculated based on the average value of the area under the recall and precision curve of the target oil pollution in a certain category.
[0023] Further, S7, determining the category of the target oil pollution according to the first classification result, the second classification result, the first weighted confidence score and the second weighted confidence score includes:
[0024] When one of the first classification result and the second classification result of the target oil pollution is not detected, the detected classification result shall prevail;
[0025] When the first classification result and the second classification result of the target oil pollution are both oil spills, and the first weighted confidence score and the second weighted confidence score are both less than the preset threshold, the target oil pollution is marked as an unclear target; otherwise, the category of the target oil pollution is directly determined to be oil spills;
[0026] When the first classification result and the second classification result of the target oil pollution are both oil spill, and the first weighted confidence score and the second weighted confidence score are both less than the preset threshold, manual investigation is performed to determine the category to which the target oil pollution belongs; otherwise, the category to which the target oil pollution belongs is directly determined to be oil spill;
[0027] When the first classification result and the second classification result of the target oil pollution are different classifications, and the difference between the first weighted confidence score and the second weighted confidence score is greater than the preset difference, the classification with the higher confidence score between the two is used as the category to which the target oil pollution belongs;
[0028] When the first classification result and the second classification result of the target oil pollution are different categories, and the difference between the first weighted confidence score and the second weighted confidence score is less than or equal to the preset difference, manual investigation is performed to determine the category to which the target oil pollution belongs.
[0029] Furthermore, in S8, when the category of the target oil pollution is oil spill, performing the tracing operation includes:
[0030] The AIS information of the original SAR image is obtained through the ship automatic identification system; wherein the AIS information includes all the historical tracks of the ship;
[0031] Determine the ship's historical track based on all ship's historical tracks, the location and shape of the target oil spill;
[0032] The ship information of the suspected ship is determined based on the ship historical track of the suspected ship.
[0033] The present invention also provides a deep learning-based marine oil spill target detection and source tracing system, which is used to execute any of the deep learning-based marine oil spill target detection and source tracing methods described above. The system includes the following modules:
[0034] A satellite image acquisition module is used to acquire original SAR images of the ocean; wherein the original SAR images include target oil pollution and environment, and the categories of target oil pollution include oil slick and oil spill;
[0035] A preprocessing module, connected to the satellite image acquisition module, is used to preprocess the original SAR image;
[0036] A first recognition module is connected to the preprocessing module and is used to input the preprocessed original SAR image into the first deep learning model to obtain a first classification result and a first confidence score of the target oil pollution; and determine a corresponding average precision mean according to the first classification result of the target oil pollution, and obtain a first weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean and the first confidence score;
[0037] A second recognition module is connected to the preprocessing module and is used to input the preprocessed original SAR image into the second deep learning model to obtain a second classification result and a second confidence score of the target oil pollution; and determine a corresponding average precision mean according to the second classification result of the target oil pollution, and obtain a second weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean and the second confidence score;
[0038] A category determination module, connected to the first identification module and the second identification module, for determining the category of the target oil pollution according to the first classification result, the second classification result, the first weighted confidence score and the second weighted confidence score of the target oil pollution;
[0039] The tracing module is connected to the category judgment module and is used to judge whether tracing is required according to the category of the target oil pollution; when the category of the target oil pollution is oil spill, the tracing operation is performed; otherwise, the tracing operation is stopped.
[0040] The embodiments of the present invention have the following technical effects:
[0041] The present invention proposes two improved deep learning models based on the YOLOv8m network model. The two deep learning models focus on different detection directions. The SRA images are respectively input into the first deep learning model and the second deep learning model. The category of the target oil spill is jointly judged according to the recognition results output by the two deep learning models. Different categories of target oil spills can be identified more effectively, the detection accuracy of the deep learning model for oil spills is improved, the occurrence of false detection is reduced, and the efficiency of tracing the source of the oil spill is improved, thereby assisting in making quick decisions in emergency situations of oil spills. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] 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.
[0043] Figure 1 It is a flow chart of a method for detecting and tracing marine oil spill targets based on deep learning provided by an embodiment of the present invention;
[0044] Figure 2 It is a schematic diagram of the structure of a YOLOv8m network model provided by an embodiment of the present invention;
[0045] Figure 3 is a schematic diagram of a first deep learning model structure provided by an embodiment of the present invention;
[0046] Figure 4 is a schematic diagram of a second deep learning model structure provided by an embodiment of the present invention;
[0047] Figure 5 is a schematic diagram of a detection result of a target oil pollution in a port provided by an embodiment of the present invention;
[0048] Figure 6 It is a schematic diagram of determining a suspected ship based on AIS information and target oil pollution provided by an embodiment of the present invention;
[0049] Figure 7 is a schematic diagram of a matching result between AIS information and a suspected ship provided by an embodiment of the present invention;
[0050] Figure 8 It is a structural schematic diagram of a marine oil spill target detection and tracing system based on deep learning provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0052] This paper proposes a method for detecting and tracing marine oil spill targets based on deep learning. Figure 1 is a flow chart of a method for detecting and tracing marine oil spill targets based on deep learning provided by an embodiment of the present invention, see Figure 1 , specifically including:
[0053] S1. Obtain the original SAR image of the ocean.
[0054] Specifically, the original SAR (Synthetic Aperture Radar) image includes the target oil pollution and the environment. The categories of the target oil pollution include oil slicks and oil spills. Among them, the categories of oil pollution also include suspected oil spills, such as sea ice, biological oil slicks, etc. The suspected oil spills are regarded as the environmental background and are not identified to avoid false detection.
[0055] S2. Preprocess the original SAR image.
[0056] Among them, preprocessing includes geometric correction, land mask, filtering processing, etc.
[0057] For example, in the remote sensing imaging process, the curvature of the earth's surface causes the objects at different distances to show different stretching or compression in the image, which will cause deformation in the area far away from the satellite imaging center. The relative motion caused by the rotation of the earth will also cause geometric distortion in different areas of the image. The orbit shape and altitude of the satellite, changes in atmospheric conditions, and the attitude and motion state of the satellite will also affect the geometric characteristics of the image. Under the combined effect of these factors, the geometric position, shape, size, dimension, orientation and other characteristics of the objects on the original image are inconsistent with the characteristics of the corresponding ground objects, which is called geometric distortion. Processing methods such as geometric correction can correct these distortions as much as possible to ensure that satellite images can accurately reflect the true state of surface features in geographic information systems and remote sensing applications. By linearly interpolating the grayscale values and position information of known points, it is relatively easy to derive geometric transformations on the entire image, thereby achieving geometric correction. This method is not only relatively fast in calculation, but also can produce relatively smooth transitions on the image, avoiding discontinuities such as jaggedness, while maintaining image details and high computational efficiency.
[0058] The presence of land in SAR images reduces the contrast between oil spills and clear waters. At the same time, some scenes in the land are similar to oil spill features, and the presence of land will produce a large number of false detections. Therefore, a global high-resolution digital elevation model (DEM) is used to mask land areas and enhance image contrast. Doing so can also eliminate the impact of dark land objects on oil spill detection, especially for SAR images acquired in coastal areas.
[0059] In the process of SAR image acquisition, noise is inevitably generated due to factors such as hardware, electronic components or system design in the synthetic aperture radar system, as well as atmospheric absorption and refraction effects. These noises will cause the image details to be blurred, thereby reducing the quality and usability of the image. The terrain and vegetation affect the scattering characteristics of the SAR beam, which may cause the reflected signal in the image to be blocked or deformed, thereby affecting the recognition of the ground object. In addition, the radiation correction process may introduce errors, which need to be corrected through filtering. Filtering is also necessary to highlight specific ground features or enhance image details. The purpose of SAR image filtering is to remove noise and interference, improve image quality, reduce the impact of ground effects, correct radiation correction errors, and highlight specific ground features to make them more suitable for target detection.
[0060] S3. Input the preprocessed original SAR image into the first deep learning model to obtain a first classification result and a first confidence score of the target oil pollution.
[0061] Specifically, Figure 2 is a schematic diagram of a YOLOv8m network model structure provided by an embodiment of the present invention, Figure 3is a schematic diagram of a first deep learning model structure provided by an embodiment of the present invention, see Figure 2 and Figure 3 The first deep learning model is based on the YOLOv8m network model. The YOLOv8m network model includes an input end, a backbone network, a Neck module and a detection head. The first deep learning model deletes the downsampling operation connected to the 9th spatial pyramid pooling layer in the Neck module, adds an upsampling operation connected to the 2nd feature fusion layer, and embeds an LSK module before the detection head.
[0062] Furthermore, the detection head of the first deep learning model uses the outputs of the 19th, 23rd and 27th layers as the input of this layer, wherein the 19th, 23rd and 27th layers of the first deep learning model are LSK modules. The first deep learning model has good detection effects for small and medium-sized targets.
[0063] The length and width of the feature map of the 19th layer become 1 / 4 of the input image (that is, the size of the feature map is 256×256 pixels), and each cell on the feature map corresponds to a 4×4 pixel area on the input image. The feature map of this layer is mainly used to detect small targets. Through further upsampling operations, the resolution of the feature map is improved. Since each cell on the feature map corresponds to a 4×4 pixel area of the original image, it can retain rich spatial details and texture information, so it can capture more fine details and is suitable for detecting small objects in the image.
[0064] The length and width of the feature map of the 23rd layer become 1 / 8 of the input image (that is, the size of the feature map is 128×128 pixels), and each cell on the feature map corresponds to an 8×8 pixel area on the input image. This layer is used to detect small targets. Each cell on the feature map corresponds to an 8×8 pixel area of the original image, which can retain certain spatial details and texture information. Therefore, it can capture more detailed information.
[0065] The length and width of the feature map of the 27th layer become 1 / 16 of the input image (that is, the size of the feature map is 64×64 pixels). Each cell on the feature map corresponds to a 16×16 pixel area on the original input image. In the middle layer of the network, deep features and shallow features begin to merge, with both certain semantic information and sufficient spatial information, which is suitable for the detection of medium-sized objects.
[0066] S4. Input the preprocessed original SAR image into the second deep learning model to obtain a second classification result and a second confidence score of the target oil pollution.
[0067] Specifically, Figure 4 is a schematic diagram of a second deep learning model structure provided by an embodiment of the present invention, see Figure 2 and Figure 4 ,The second deep learning model is based on the YOLOv8m network model, which includes an input end, a backbone network, a Neck module and a detection head. ,The second deep learning model embeds an LSK module before the detection head.
[0068] Furthermore, the detection head of the second deep learning model uses the output of the 16th, 20th and 24th layers as the input of this layer, wherein the 16th, 20th and 24th layers of the second deep learning model are LSK modules. The second deep learning model has good detection effects for medium-sized and large-sized targets.
[0069] The length and width of the feature map of the 16th layer becomes 1 / 8 of the input image (that is, the size of the feature map is 128×128 pixels), and each cell on the feature map corresponds to an 8×8 pixel area on the input image. This layer detects small objects. Each cell on the feature map corresponds to an 8x8 pixel area of the original image, which can retain certain spatial details and texture information. Therefore, it can capture more detailed information.
[0070] The length and width of the feature map of the 20th layer become 1 / 16 of the input image (that is, the size of the feature map is 64×64 pixels). Each cell on the feature map corresponds to a 16×16 pixel area on the original input image. In the middle layer of the network, deep features and shallow features begin to merge, with both certain semantic information and sufficient spatial information, which is suitable for the detection of medium-sized objects.
[0071] The length and width of the feature map of the 24th layer becomes 1 / 32 of the input image (that is, the size of the feature map is 32×32 pixels). Each cell on the feature map corresponds to a 32×32 pixel area on the original input image. This layer has a lower resolution, but the original image area corresponding to each cell on the feature map is larger and has a larger receptive field. This enables it to capture the overall information of larger objects. In the deep layers of the network, the extracted features are more abstract and semantic, which helps to accurately identify the categories of large objects. Although the spatial information is reduced, the requirements for accurate positioning are relatively low for large objects.
[0072] Furthermore, the training method of the first deep learning model includes:
[0073] Acquire SAR image samples and preprocess the SAR image samples;
[0074] The target oil pollution in the preprocessed SAR image samples is labeled according to the category of the target oil pollution to form a data set;
[0075] The data set is divided into training set, validation set and test set in a ratio of 8:1:1;
[0076] The SAR image samples containing oil spill categories in the training set, validation set, and test set were further expanded by performing operations such as horizontal flipping and vertical flipping;
[0077] Add the background image containing suspected oil spill to the training set, validation set and test set to obtain the final training set, final validation set and final test set;
[0078] The first deep learning model is trained based on the final training set, the first deep learning model is verified based on the final validation set, and the first deep learning model is tested based on the final test set to obtain a trained first deep learning model.
[0079] The training method of the second deep learning model is consistent with the training method of the first deep learning model and will not be repeated here.
[0080] Furthermore, the MPDIoU loss function is selected as the loss function of the bounding box regression task of the first deep learning model and the second deep learning model.
[0081] MPDIoU introduces the concept of minimum point distance, which improves the effect of bounding box regression by minimizing the minimum point distance between the predicted bounding box and the true bounding box to obtain faster convergence and more accurate regression results. MPDIoU simplifies the similarity comparison between two bounding boxes and is applicable to overlapping or non-overlapping bounding box regression. Since the factors considered in the existing loss function can be determined by the coordinates of the upper left corner and the lower right corner, such as non-overlapping area, center point distance, width and height deviation, this means that MPDIoU is not only comprehensive, but also simplifies the calculation process.
[0082] The loss function of MPDIoU is calculated as follows: MPDIoU loss can be defined by MPDIoU:
[0083] ;
[0084] ;
[0085] Among them, IoU represents the intersection over union ratio between the predicted bounding box and the true bounding box, MPDIoU represents the bounding box similarity comparison metric based on the minimum point distance, MPDIoU loss is the loss function of MPDIoU, d1 represents the straight-line distance between the upper left corner point of the predicted bounding box and the true bounding box, d2 represents the straight-line distance between the lower right corner point of the predicted bounding box and the true bounding box, w represents the width of the input image, and h represents the height of the input image.
[0086] S5. Determine a corresponding average precision mean value according to the first classification result of the target oil pollution, and obtain a first weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean value and the first confidence score.
[0087] Specifically, the calculation method of the average precision means includes:
[0088] Determine the IoU threshold: use 0.5 as the initial IoU threshold, increase it by 0.05 each time until it reaches 0.95, and obtain all IoU thresholds.
[0089] Determine positive samples: Determine positive samples and negative samples at different IoU thresholds respectively.
[0090] Among them, positive samples are positive samples predicted by the model as positive examples (represented by TP), negative samples include negative samples predicted by the model as positive examples (represented by FP), and positive samples predicted by the model as negative examples (represented by FN).
[0091] Model performance calculation: For different IoU thresholds, the area under the recall and precision curve of the target oil pollution of a certain classification is calculated based on positive samples and negative samples. The calculation formula is as follows:
[0092] ;
[0093] Among them, AP represents the area of the target oil pollution of a certain classification under the recall and precision curve (i.e., PR curve). The P-R curve is composed of Precision and Recall. R represents the horizontal axis as Recall. The recall rate reflects the completeness of the model's prediction of the positive class, that is, how many actual positive class samples the model can find. P represents the vertical axis as Precision. The precision rate reflects the accuracy of the model's prediction of the positive class, that is, how many samples predicted by the model as positive are truly positive. P(R) represents the precision rate when the recall rate is R. R means how many of all true values are predicted as positive examples, which can be understood as how many correct targets are found. P means how many positive examples are predicted among all predicted values as positive examples. The calculation formula is as follows:
[0094] ;
[0095] .
[0096] Mean average precision calculation: The mean average precision mAP (Mean Average Precision) is calculated based on the average value of the area under the recall and precision curve of the target oil pollution in a certain classification. The calculation formula is as follows:
[0097] ;
[0098] Among them, AP i It represents the area under the recall and precision curve of the target oil pollution of the ith classification, i represents the ith classification, and N represents the total number of classifications of the target oil pollution.
[0099] S6. Determine a corresponding average precision mean value according to the second classification result of the target oil pollution, and obtain a second weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean value and the second confidence score.
[0100] For example, see Table 1, the test set mAP@0.5-0.95 scores of the deep learning model:
[0101] Table 1 Test set mAP@0.5-0.95 scores of deep learning models
[0102]
[0103] For the target oil pollution detected as oil spill, assuming that the first confidence score output by the first deep learning model is 0.79, the first weighted confidence score is 0.79×0.724=0.57.
[0104] For the target oil stain detected as oil spill, assuming that the second confidence score output by the second deep learning model is 0.83, the second weighted confidence score is 0.83×0.698=0.58.
[0105] For the target oil pollution detected as oil spill, assuming that the first confidence score output by the first deep learning model is 0.67, the first weighted confidence score is 0.67×0.692=0.46.
[0106] For the target oil pollution detected as oil spill, assuming that the second confidence score output by the second deep learning model is 0.89, the second weighted confidence score is 0.89×0.734=0.65.
[0107] S7. Determine the category of the target oil pollution according to the first classification result, the second classification result, the first weighted confidence score and the second weighted confidence score of the target oil pollution.
[0108] Specifically, when one of the first classification result and the second classification result of the target oil pollution is not detected, the detected classification result shall prevail.
[0109] When the first classification result and the second classification result of the target oil pollution are both oil spills, and the first weighted confidence score and the second weighted confidence score are both less than the preset threshold, the target oil pollution is marked as an unclear target; otherwise, the category of the target oil pollution is directly determined to be oil spills.
[0110] Exemplarily, the preset threshold can be set to 0.4. When the first classification result and the second classification result of the target oil pollution are both oil spills, and the first weighted confidence score and the second weighted confidence score are both less than 0.4, it is proved that the recognition result output by the deep learning model has too low confidence because the target oil pollution is not obvious, and the recognition result of the deep learning model is unreliable. Therefore, the target oil pollution is marked as the target is not obvious, and no traceability processing is performed.
[0111] When the first classification result and the second classification result of the target oil pollution are both oil spill, and the first weighted confidence score and the second weighted confidence score are both less than the preset threshold, manual investigation is performed to determine the category to which the target oil pollution belongs; otherwise, the category to which the target oil pollution belongs is directly determined to be oil spill.
[0112] Specifically, due to the serious impact of oil spills on the ocean, when the first classification result and the second classification result are both oil spills, even if the confidence scores of the two results are less than the preset threshold, manual investigation is still required to determine whether the target oil is an oil spill and whether it needs to be traced and treated.
[0113] When the first classification result and the second classification result of the target oil pollution are different classifications, and the difference between the first weighted confidence score and the second weighted confidence score is greater than a preset difference, the classification with a higher confidence score between the two is used as the category to which the target oil pollution belongs.
[0114] When the first classification result and the second classification result of the target oil pollution are different categories, and the difference between the first weighted confidence score and the second weighted confidence score is less than or equal to the preset difference, manual investigation is performed to determine the category to which the target oil pollution belongs.
[0115] S8. Determine whether source tracing is necessary based on the category of the target oil pollution.
[0116] Specifically, when the category of the target oil pollution is oil spill, the tracing operation is performed; otherwise, the tracing operation is stopped.
[0117] The specific steps to perform the traceability operation include:
[0118] The AIS information of the original SAR image is obtained through the Automatic Identification System (AIS), where the AIS information includes all historical tracks of the ship.
[0119] Based on all the historical tracks of the ship, the location and shape of the target oil pollution, the historical track of the suspect ship is determined.
[0120] The ship information of the suspected ship is determined based on the ship historical track of the suspected ship.
[0121] Among them, the suspected ship information mainly includes the name of the suspected ship. Based on the suspected ship's historical track, AIS information and the location and shape of the target oil pollution, the time and location of the front end of the oil spill, the time and location of the end of the oil spill, and the estimated duration of the oil spill can also be determined.
[0122] For example, Figure 5 is a schematic diagram of a detection result of a target oil pollution in a certain port provided by an embodiment of the present invention, see Figure 5 In the figure, the blue box represents the detected oil spill target, and the red box represents the detected oil spill. The oil spill is long, thin, and ribbon-shaped, wide at the top and narrow at the bottom, with thickness changes, and there are intermittent surface oil spills at the end. The length of the complete oil spill belt including the intermittent oil spill is about 20.66 kilometers. The tip of the oil spill belt is connected to the white spot, and there are no white spots around it. It is initially judged that the ship is illegally discharging oil. Through geographic information projection, SAR satellite images containing target coordinate information are obtained.
[0123] Figure 6 is a schematic diagram of determining a suspected ship based on AIS information and target oil pollution provided by an embodiment of the present invention, see Figure 6 The continuous green dots in the figure represent the historical trajectory of the ship, and each green dot contains the AIS information of the ship. By screening the continuous green dots that are more similar to the trajectory of the oil spill and the green dots that are more consistent with the white dots of the oil spill source, the AIS information corresponding to the suspected ship is determined.
[0124] Figure 7 is a schematic diagram of a matching result of AIS information and a suspected ship provided by an embodiment of the present invention, see Figure 7 After screening AIS, we finally obtained a SAR satellite image containing the target detection frame of the oil spill, the historical track of the ship and the AIS information of the suspected ship. Through the AIS information, we know that the suspected ship is named BOCHEM LONDON, the end time of the oil spill is 2023-05-14T22:04:41UST, located at 28°36'48.456"N, 89°13'58.188"W. The front time of the oil spill is 2023-05-15T00:02:21UST, located at 28.35808E, -89.2259N, sailing from the north to the south, and the oil spill duration is estimated to be 2 hours.
[0125] The present invention proposes two improved deep learning models based on the YOLOv8m network model. The two deep learning models focus on different detection directions. The SRA images are respectively input into the first deep learning model and the second deep learning model. The category of the target oil spill is jointly judged according to the recognition results output by the two deep learning models. Different categories of target oil spills can be identified more effectively, the detection accuracy of the deep learning model for oil spills is improved, the occurrence of false detection is reduced, and the efficiency of tracing the source of the oil spill is improved, thereby assisting in making quick decisions in emergency situations of oil spills.
[0126] Figure 8 is a schematic diagram of the structure of a marine oil spill target detection and source tracing system based on deep learning provided by an embodiment of the present invention. The system is used to execute the marine oil spill target detection and source tracing method based on deep learning described in the above embodiment, such as Figure 8 As shown, the system includes the following modules:
[0127] A satellite image acquisition module is used to acquire original SAR images of the ocean; wherein the original SAR images include target oil pollution and environment, and the categories of target oil pollution include oil slick and oil spill;
[0128] A preprocessing module, connected to the satellite image acquisition module, is used to preprocess the original SAR image;
[0129] A first recognition module is connected to the preprocessing module and is used to input the preprocessed original SAR image into the first deep learning model to obtain a first classification result and a first confidence score of the target oil pollution; and determine a corresponding average precision mean according to the first classification result of the target oil pollution, and obtain a first weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean and the first confidence score;
[0130] A second recognition module is connected to the preprocessing module and is used to input the preprocessed original SAR image into the second deep learning model to obtain a second classification result and a second confidence score of the target oil pollution; and determine a corresponding average precision mean according to the second classification result of the target oil pollution, and obtain a second weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean and the second confidence score;
[0131] A category determination module, connected to the first identification module and the second identification module, for determining the category of the target oil pollution according to the first classification result, the second classification result, the first weighted confidence score and the second weighted confidence score of the target oil pollution;
[0132] The tracing module is connected to the category judgment module and is used to judge whether tracing is required according to the category of the target oil pollution; when the category of the target oil pollution is oil spill, the tracing operation is performed; otherwise, the tracing operation is stopped.
[0133] It should be noted that the terms used in the present invention are only for describing specific embodiments, rather than limiting the scope of the present application. As shown in the present specification, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of more restrictions, the elements defined by the sentence "include one..." do not exclude the presence of other identical elements in the process, method or device including the elements.
[0134] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.
Claims
1. A method for detecting and tracing marine oil spill targets based on deep learning, characterized in that: The steps include: S1. Acquire an original SAR image of the ocean; wherein the original SAR image includes target oil pollution and environment, and the types of target oil pollution include oil slick and oil spill; S2, preprocessing the original SAR image; S3, inputting the preprocessed original SAR image into a first deep learning model to obtain a first classification result and a first confidence score of the target oil pollution; S4, inputting the preprocessed original SAR image into a second deep learning model to obtain a second classification result and a second confidence score of the target oil pollution; S5. Determine a corresponding average precision mean value according to the first classification result of the target oil pollution, and obtain a first weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean value and the first confidence score; S6. Determine a corresponding average precision mean value according to the second classification result of the target oil pollution, and obtain a second weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean value and the second confidence score; S7, determining the category of the target oil pollution according to the first classification result, the second classification result, the first weighted confidence score and the second weighted confidence score of the target oil pollution; S8. Determine whether source tracing is required according to the category of the target oil pollution; when the category of the target oil pollution is oil spill, perform source tracing; otherwise, stop performing source tracing.
2. The method for detecting and tracing marine oil spill targets based on deep learning according to claim 1 is characterized in that: In S3, the preprocessed original SAR image is input into a first deep learning model to obtain a first classification result and a first confidence score of the target oil pollution, wherein the first deep learning model is based on a YOLOv8m network model, the YOLOv8m network model includes an input end, a backbone network, a Neck module and a detection head, and the first deep learning model deletes the downsampling operation connected to the 9th spatial pyramid pooling layer in the Neck module, adds an upsampling operation connected to the 2nd feature fusion layer, and embeds an LSK module before the detection head.
3. The method for detecting and tracing marine oil spill targets based on deep learning according to claim 2 is characterized in that: The S4 inputs the preprocessed original SAR image into a second deep learning model to obtain a second classification result and a second confidence score of the target oil pollution, wherein the second deep learning model is based on a YOLOv8m network model, the YOLOv8m network model includes an input end, a backbone network, a Neck module and a detection head, and the second deep learning model is embedded with an LSK module before the detection head.
4. The method for detecting and tracing marine oil spill targets based on deep learning according to claim 3 is characterized in that: The MPDIoU loss function is selected as the loss function of the bounding box regression task of the first deep learning model and the second deep learning model.
5. The method for detecting and tracing marine oil spill targets based on deep learning according to claim 4 is characterized in that: The method for calculating the average precision mean includes: Determine the IoU threshold: use 0.5 as the initial IoU threshold, increase it by 0.05 each time until it reaches 0.95, and get all the IoU thresholds; Determine positive samples: determine positive samples and negative samples at different IoU thresholds respectively; Model performance calculation: For different IoU thresholds, the area under the recall and precision curve of the target oil pollution of a certain classification is calculated based on positive samples and negative samples; Average precision mean calculation: The average precision mean is calculated based on the average value of the area under the recall and precision curve of the target oil pollution in a certain category.
6. The method for detecting and tracing marine oil spill targets based on deep learning according to claim 5 is characterized in that: The step S7, determining the category of the target oil pollution according to the first classification result, the second classification result, the first weighted confidence score and the second weighted confidence score, includes: When one of the first classification result and the second classification result of the target oil pollution is not detected, the detected classification result shall prevail; When the first classification result and the second classification result of the target oil pollution are both oil spills, and the first weighted confidence score and the second weighted confidence score are both less than a preset threshold, the target oil pollution is marked as an unclear target; otherwise, the category of the target oil pollution is directly determined to be oil spills; When the first classification result and the second classification result of the target oil pollution are both oil spill, and the first weighted confidence score and the second weighted confidence score are both less than the preset threshold, a manual investigation is performed to determine the category to which the target oil pollution belongs; otherwise, the category to which the target oil pollution belongs is directly determined to be oil spill; When the first classification result and the second classification result of the target oil pollution are different classifications, and the difference between the first weighted confidence score and the second weighted confidence score is greater than a preset difference, the classification with a higher confidence score between the two is used as the category to which the target oil pollution belongs; When the first classification result and the second classification result of the target oil pollution are different categories, and the difference between the first weighted confidence score and the second weighted confidence score is less than or equal to a preset difference, manual investigation is performed to determine the category to which the target oil pollution belongs.
7. The method for detecting and tracing marine oil spill targets based on deep learning according to claim 6 is characterized in that: In S8, when the category of the target oil pollution is oil spill, performing the tracing operation includes: Acquire AIS information of the original SAR image through an automatic ship identification system; wherein the AIS information includes all historical tracks of the ship; Based on all historical ship trajectories, the location and shape of the target oil pollution, determine the historical ship trajectory of the suspect ship; The ship information of the suspected ship is determined based on the ship historical track of the suspected ship.
8. A deep learning-based marine oil spill target detection and source tracing system, used to execute the deep learning-based marine oil spill target detection and source tracing method described in any one of claims 1 to 7, characterized in that: The system includes the following modules: A satellite image acquisition module is used to acquire an original SAR image of the ocean; wherein the original SAR image includes target oil pollution and the environment, and the types of target oil pollution include oil slick and oil spill; A preprocessing module, connected to the satellite image acquisition module, for preprocessing the original SAR image; A first recognition module, connected to the preprocessing module, is used to input the preprocessed original SAR image into a first deep learning model to obtain a first classification result and a first confidence score of the target oil pollution; and determine a corresponding average precision mean according to the first classification result of the target oil pollution, and obtain a first weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean and the first confidence score; A second recognition module, connected to the preprocessing module, is used to input the preprocessed original SAR image into a second deep learning model to obtain a second classification result and a second confidence score of the target oil pollution; and determine a corresponding average precision mean according to the second classification result of the target oil pollution, and obtain a second weighted confidence score of the target oil pollution according to the product of the corresponding average precision mean and the second confidence score; A category determination module, connected to the first identification module and the second identification module, for determining the category of the target oil pollution according to the first classification result, the second classification result, the first weighted confidence score and the second weighted confidence score of the target oil pollution; The tracing module is connected to the category judgment module and is used to judge whether tracing is required according to the category of the target oil pollution; when the category of the target oil pollution is oil spill, the tracing operation is performed; otherwise, the tracing operation is stopped.
Citation Information
Patent Citations
Unmanned ship oil spill monitoring system and method
CN117944837A
SAR oil spill target identification method based on multi-physical interpretable deep learning
CN118366052A
Deep convolutional neural network-based submerged oil sonar detection image recognition method
WO2021243743A1
