Skip to main content

ORIGINAL RESEARCH article

Front. Mar. Sci., 11 December 2024
Sec. Ocean Observation

A few-shot oil spill segmentation network guided by multi-scale feature similarity modeling

Lingfei Shi,Lingfei Shi1,2Xianhu Wei,Xianhu Wei3,4Kun Yang,*Kun Yang1,2*Gong Chen,Gong Chen1,2
  • 1Faculty of Geography, Yunnan Normal University, Kunming, China
  • 2The Engineering Research Center of GIS Technology in Western China of Ministry of Education of China, Yunnan Normal University, Kunming, China
  • 3Aerospace Information Research Institute, Chinese Academy of Sciences, Beijing, China
  • 4Sino-Africa Joint Research Center, Chinese Academy of Sciences, Wuhan, Hubei, China

Segmentation of oil spills with few-shot samples using UAV optical and SAR images is crucial for enhancing the efficiency of oil spill monitoring. Current oil spill semantic segmentation predominantly relies on SAR images, rendering it relatively data-dependent. We propose a flexible and scalable few-shot oil spill segmentation network that transitions from UAV optical images to SAR images based on the image similarity of oil spill regions in both types of images. Specifically, we introduce an Adaptive Feature Enhancement Module (AFEM) between the support set branch and the query set branch. This module leverages the precise oil spill information from the UAV optical image support set to derive initial oil spill templates and subsequently refines and updates the query oil spill templates through training to guide the segmentation of SAR oil spills with limited samples. Additionally, to fully exploit information from both low and high-level features, we design a Feature Fusion Module (FFM) to merge these features. Finally, the experimental results demonstrate the effectiveness of our network in enhancing the performance of UAV optical-to-SAR oil spill segmentation with few samples. Notably, the SAR oil spill detection accuracy reaches 75.88% in 5-shot experiments, representing an average improvement of 5.3% over the optimal baseline model accuracy.

1 Introduction

With the intensification of marine resource exploitation and the expansion of marine transportation, the marine environment faces increasingly severe threats (Sun et al., 2023). Among them, marine oil spills have long-term impacts on the marine environment, are challenging to treat, and are difficult to detect (Habibi and Pourjavadi, 2022; Wang et al., 2023). Consequently, some scholars have focused on developing efficient and generalized oil spill detection models.

While traditional oil spill monitoring can accurately detect oil spills, it is limited in scope and time-consuming. Remote sensing technology is essential for detecting and monitoring oil spills ranging from microscopic to large-scale. A variety of satellite images, including those used for optical, microwave, and infrared remote sensing, are employed for this purpose (Ma et al., 2023; Mohammadiun et al., 2021; Al-Ruzouq et al., 2020). Optical remote sensing data can be acquired at a low cost; for example, drones can be used to acquire high-resolution regional oil spill imagery in near-shore waters of harbors. However, their data coverage is limited, making it challenging to utilize them in the complex meteorological environments of offshore oceans (Chen et al., 2024). Microwave and infrared remote sensing offer the advantage of wide-range and all-weather data acquisition. However, the resolution of the data is low, and the cost of acquisition is high, which makes data processing challenging (Chaturvedi et al., 2020; Song et al., 2020). Additionally, SAR data can be interfered with by various types of land features in harbor areas and on land, reducing the accuracy of oil spill detection (Fan and Liu, 2023). Hence, in the age of data-driven artificial intelligence, there is a need to investigate a deep learning based semantic segmentation network that performs well in oil spill detection using both UAV optical and SAR data with few shot samples. This study aims to enhance the accuracy and efficiency of oil spill extraction from multi-source, multi-modal remote sensing images while minimizing the model’s data dependency, an area currently underexplored in oil spill detection research.

Data-driven detection methods, particularly semantic segmentation, aim to predict category labels for new objects from a pixel-level perspective (Wang et al., 2021). This task has numerous applications, including scene understanding, medical diagnosis, and remote sensing information extraction, among others (Yuan et al., 2021; Asgari Taghanaki et al., 2021). Unlike object detection methods for oil spill detection, semantic segmentation divides pixels of the oil spill area. This approach facilitates the measurement of the oil spill area’s size and its impact on neighboring areas.

Following a literature review, current research on semantic segmentation of oil spills still primarily relies on SAR data. The main approach involves enhancing the model’s feature extraction capability to improve segmentation accuracy (Soh et al., 2024; Hasimoto-Beltran et al., 2023; Fan et al., 2023; Bianchi et al., 2020). Chen (Chen et al., 2023) developed an effective segmentation network named DGNet for oil spill segmentation. This network incorporates the intrinsic distribution of backscatter values in SAR images. DGNet consists of two deep neural modules that operate interactively. The inference module infers potential feature variables from SAR images, while the generation module generates an oil spill segmentation map by using these potential feature variables as input. The effectiveness of DGNet is demonstrated through comparison with other state-of-the-art methods using a large amount of Sentinel-1 oil spill data. On the other hand, Lau (Lau and Huang, 2024) combines geographic information with remote sensing imagery for oil spill segmentation. The study explores a deep learning approach for oil spill detection and segmentation in nearshore fields, achieving overall accuracies of 77.01% and 89.02%, respectively. They subsequently developed a Geographic Information System (GIS) based validation system to enhance the deep learning model’s performance, leading to an overall accuracy of 90.78% for the Mask R-CNN model. However, the model’s performance can be limited in some cases due to the unavailability of accurate geographic information under subjective and objective conditions. Some other researches have considered the remote sensing physical characteristics of marine oil spill in designing the model (Fan et al., 2024; Amri et al., 2022). For example, Chen (Chen et al., 2023) proposed a new segmentation method for marine oil spill SAR image, which considers the physical characteristics of SAR image and oil spill segmentation at the same time in order to realize the accurate oil spill segmentation. Secondly, a deep neural segmentation network is constructed by combining the features of oil spill backscattering values in SAR images, which is capable of segmenting oil spill SAR images including similar points. The experimental results show that the method can identify the oil spill area better with less samples. Li (Li et al., 2021) proposed a multi-scale conditional adversarial network (MCAN), designed for oil spill detection using limited data. This network employs a coarse-to-fine training approach to capture both global and local features, and it demonstrates accurate detection performance even when trained on only four oil spill observation images. Li (Li et al., 2022) also proposed an adversarial ConvLSTM network (ACLN) for correcting predicted wind fields to match reanalysis data. By using a correction-discriminator framework, the network improved the accuracy of real-time wind field estimation and demonstrated its effectiveness in oil spill drift prediction, significantly reducing errors compared to traditional methods. Overall, generative adversarial networks require sophisticated training techniques. However, current oil spill detection methods based on the physical mechanism of remote sensing have limited transferability across different domains, and these models are still reliant on data.

The acquisition cost of optical image is low and the visibility is strong. However, satellite based optical imaging is less used in oil spill studies than microwave imaging because it relies on favorable weather conditions. However, UAVs capture images at low altitudes with minimal cloud interference and high resolution, making them a crucial data source for oil spill detection. Zahra (Ghorbani and Behzadan, 2020) annotated UAV-acquired offshore oil spill images, created an optical semantic segmentation dataset, and utilized an improved Mask-RCNN to identify the oil spill area, achieving a 60% accuracy. Ngoc (Bui et al., 2024) collected patrol videos taken by UAV to create an oil spill optical dataset. This dataset was used to train the DaNet deep learning model for oil spill segmentation and classification. The results demonstrated that the DaNet model achieved an average accuracy of 83.48% and mIoU of 72.54%.

From another perspective, supervised learning-based oil spill detection is currently mainstream. However, its strong data dependence and high cost of data annotation pose challenges. Furthermore, the weak migration performance of models hinders timely access to oil spill information. As a result, some scholars are now focusing on weakly supervised oil spill detection methods. For example, Kang (Kang et al., 2023) proposed a self-supervised spectral-spatial transformer network (SSTNet) for hyperspectral oil spill detection. Initially, a transformer-based comparative learning network extracts deep discriminative features, which are then transferred to the downstream classification network for fine-tuning. Experimental results on a self-constructed hyperspectral oil spill database (HOSD) demonstrate the method’s superior performance over existing techniques in distinguishing various oil spill types, including thick oil, thin oil, sheen, and seawater. However, the network’s fine-tuning process is complex.

Recently, few-shot semantic segmentation has emerged as a hot topic in current research due to its powerful cross-domain few-shot adaptive segmentation capability (Zhou et al., 2022). Existing research on few-shot learning primarily focuses on visual information extraction (Zheng et al., 2022; Kang et al., 2023). The main research methods include fine-tuning (Sun et al., 2023), metric learning (Jiang et al., 2021), and meta-learning (Khadka et al., 2022). Among them, meta-learning is currently the mainstream approach for few-shot semantic segmentation, typically employing a two-branch architecture consisting of a support branch and a query branch. The support branch extracts feature from the support image and its semantic mask in the source domain, while the query branch uses these features to match with the target domain image, thereby learning new knowledge and completing the cross-domain semantic segmentation with few samples (Lang et al., 2023).

Motivated by the latest research direction and considering the shortcomings of oil spill detection research, we proposed a study on multi-scale and few-shot oil spill semantic segmentation by combining UAV optical and SAR images. Utilize the distinctive image features of oil spill areas in UAV optical and SAR images. Leverage the deep learning modeling capabilities to guide the model in establishing feature correlations of oil spill areas in both image types. Enhance the model’s cross-domain oil spill detection capabilities.

Since UAV optical images can provide more spatial and semantic information, UAV optical images are used as support sets for few-shot sample training, and SAR images are used as query sets for testing. Firstly, a cross-domain adaptive module is designed to create and update feature templates, updating respective category features through similarity matching with the support and query sets. Secondly, to fully leverage multi-scale features, we employ the Adaptive Feature Enhancement Module for high-level and low-level features. Finally, the Weighted Multiscale Feature Fusion Module is designed to fuse the multi-scale features.

The main contributions of this paper are as follows:

1. We propose a multi-scale cross-domain few-shot oil spill detection network to quickly self-learn the common features of oil spills in UAV optical and SAR images. This is achieved by designing corresponding adapter modules in the few-shot semantic segmentation task. We experimentally demonstrate that the architecture can be integrated into different feature extraction networks, improving the network’s cross-domain adaptive capability. In addition, our network is flexible. First, different types of feature extraction modules could be selected according to the actual situation of oil spill detection, making the entire network easier to deploy on edge devices. Secondly, the available data can flexibly select the training mode of the model, which can either choose the full supervision of a single branch or the two-branch training of knowledge transfer with few samples. In this way, the oil spill detection requirements of different types of images such as UAV optical and SAR can be effectively met, and the detection efficiency is greatly improved.

2. We designed the cross-domain Adaptive Feature Enhancement (AFEM) module and the multi-scale feature fusion module (FFM) to enhance the extraction of multi-scale cross-domain similar features of the model.

3. In this paper, through the innovative method of setting the similarity matching of oil spill template library, the knowledge transfer from UAV optical to SAR oil spill image is realized efficiently by learning the common features of UAV optical and SAR oil spill images, and the oil spill segmentation of few-shot SAR images is completed. Moreover, the segmentation accuracy is higher than that of the current mainstream few-shot semantic segmentation benchmark model.

The rest of the paper is organized as follows: Section 2 will introduce the dataset used for the study and the processing methods. Section 3 will present the specific design details of the few-shot oil spill detection network. Section 4 will present the experimental design details and experimental results. Section 5 will discuss the design ideas and future research directions of the network in light of the experimental results. Finally, Section 6 will summarize the entire research.

2 Datasets

2.1 UAV optical oil spill dataset

Thomas (De Kerf et al., 2024) recently released the UAV-acquired harbor oil spill optical dataset, comprising 1268 images. As shown in Figure 1, the dataset is categorized into oil, water, and other categories, and it ensures that each sample image contains all semantic categories, thereby ensuring the balance of the samples. This dataset fills a gap in publicly available oil spill optical semantic segmentation datasets and serves as a crucial resource for environmental protection in harbor environments. To maintain consistency with the semantic segmentation categories of the SAR oil spill detection dataset, we harmonized the category segmentation of the optical dataset, merging waters, other categories, and unknown categories into a single “other” category.

Figure 1
www.frontiersin.org

Figure 1. Semantic segmentation dataset of UAV optical images.

2.2 SAR oil spill dataset

The first oil spill detection SAR image dataset used in this study was developed by Krestenitis (Krestenitis et al., 2019), as shown in Figure 2. The dataset includes Sentinel-1 SAR image representations of offshore oil spills and corresponding labels. The training set comprises 1002 images, and the test set contains 110 images with corresponding labels. The spatial resolution of the image is 10m. To emphasize the recognition of oil spill areas, this study merged the semantic segmentation task into two categories: oil spill areas and other. Data augmentation was employed to increase the training dataset size, with randomized horizontal and vertical flips applied only to the training set. The images were normalized using the mean and standard deviation of the training set before being used as inputs to the various models in this study.

Figure 2
www.frontiersin.org

Figure 2. Semantic segmentation dataset of the first SAR images.

In Figure 3, to verify the robustness of the model, the SOS oil spill detection dataset released by Zhu (Zhu et al., 2022) was selected for this study. It comprises two parts: (1) 14 PALSAR images of the Gulf of Mexico region with a pixel spacing of 12.5 m and HH polarization; and (2) 7 Sentinel 1A images of the Persian Gulf region, with a spatial resolution of 5 m × 20 m and VV polarization. To enhance dataset diversity, original images underwent operations such as rotation and random cropping, resulting in 6456 oil spill images from the 21 original images. Subsequently, the data were manually labeled and subjected to expert sampling, resulting in a final dataset of 8070 labeled oil spill images.

Figure 3
www.frontiersin.org

Figure 3. Semantic segmentation dataset of the second SAR images.

Finally, to improve the training efficiency of the model, the dimensions of the images and annotations in all three datasets were resized to 256×256.

Figure 4 presents a typical example of UAV optical oil spill imagery. A comparison of Figures 3, 4 shows that the oil spill areas in both SAR and UAV optical images display a patchy distribution and are distinctly different from the ocean background. These characteristics align with the similarity criteria necessary for transfer learning in computer vision across different image sources.

Figure 4
www.frontiersin.org

Figure 4. Example of typical UAV optical oil spill images.

3 Methods

3.1 Overview of few-shot semantic segmentation network

In this section, we first introduce the overall network for semantic segmentation of oil spills in UAV optical and SAR images, and then focus on two main components of the network: the Adaptive Feature Enhancement Module (AFEM) and the Feature Fusion Module (FFM).

The semantic segmentation network for UAV optical and SAR images with few samples designed in this study mainly focuses on the detection of oil spill categories, which belongs to the one-way k-shot detection task, meaning that only k samples are used for training. Therefore, in the model training stage, c support set samples {ISc,MSc}c=1c are selected in the UAV optical oil spill dataset Doptical, c is the number of training sets for visible oil spill images. Moreover, one query set sample {Iq,Mq} is selected in the SAR oil spill dataset DSAR. The model obtains the ability to predict Mq by training on the support ensemble sample and Iq. The UAV optical and SAR image less sample oil spill semantic segmentation network, as shown in Figure 5, feeds the UAV optical oil spill semantic segmentation support sample set {ISc,MSc}c=1c and the SAR oil spill semantic segmentation query sample I_q into the encoder of ResNet50 for feature extraction, respectively. Since the low-level features retain more structural features such as texture and edges of the image while the high-level features retain more abstract semantic relational features, all of the information are important for sample less semantic segmentation. Thus, the model obtains the encoder’s low-level features FSlow, Fqlow and high-level features FShigh, Fqhigh at two levels respectively. Then, FSlow, Fqlow and MS are fed into our proposed adaptive feature enhancement module for feature interaction, thereby obtaining the class-specific features FSlow* and Fqlow* of the oil spill. Subsequently, the original features are merged with the oil spill-specific features by means of residual concatenation to maximize information retention. For the high-level features FShigh and dFqhigh, the same approach of feature interaction and feature merging is used. Finally, the low-level and high-level features after the adaptive feature enhancement module and feature merging are fed into the feature fusion module for the interaction of high-level and low-level features, which makes full use of the advantages of the different levels of features of the oil spill area in the UAV optical and SAR images, and improves the model’s performance of semantic segmentation of the oil spill area with few samples.

Figure 5
www.frontiersin.org

Figure 5. The network map of few-shot UAV optical-SAR oil spill semantic segmentation.

3.2 Adaptive feature enhancement module

The Adaptive Feature Enhancement Module proposed by us is shown in Figure 6, which consists of generating and updating the oil spill class feature template library and oil spill feature enhancement.

Figure 6
www.frontiersin.org

Figure 6. The structure map of the adaptive feature enhancement module.

Here we take the low-level feature as an example, and the high-level feature performs the same operation. For the oil spill semantic segmentation task of low-sample SAR images with c UAV optical support samples, the first task is to generate the oil spill feature template database. The support set feature FSlowUc×d×h×w and the support set image mask MSUc×h×w (where d represents the dimension of the feature, h and w represent the height and width of the feature) are used to generate a specific class of features for the oil spill area. Initially, an initial SAR image oil spill template library is obtained after the branch training of the query set. P={P1,P2,,Pm}Um×d, where m represents the number of categories of templates, which is mainly related to the morphological categories of oil spill areas in SAR images. The specific type of oil spill template Ptlow is obtained by supporting set features FSlow and MS through pixel-by-pixel multiplication in spatial dimension, and the calculation formula is as follows:

Ptlow=Mean(FSlow.MS)(1)

Since we set the semantic category of the non-oil spill area in mask MS to 0 and the semantic category of the oil spill area to 1, only the features of the oil spill area are retained after the template generation operation. This way, interference from the background on the oil spill feature recognition can be avoided. In the model test stage, similarity matching was used to update the template Pm of different oil spill types, and the specific calculation formula was as follows.

Pmtrain=(1α)×l2(Ptlow)+α×l2(Pm)(2)
Pmtest=Argmax(l2(Pmtrain)·l2(Ptlow)(3)

Finally, according to experimental experience, using the top five templates with the highest similarity can obtain the most comprehensive features more efficiently, and can prevent feature overfitting. Therefore, only the top five templates with the highest similarity are selected as the final UAV optical-SAR oil spill template library. This way, each oil spill template Pm will be able to express the features of different oil spill types well in the current feature representation space.

In addition, the model can learn the invariant oil spill template feature when transforming from UAV optical to SAR oil spill feature space. We can calculate the similarity between the UAV optical support set feature FSlow and the oil spill class template Pm obtained earlier, and the calculation formula is as follows.

Emlow=Min(6,Max(0,l2(FSlow)·l2(Pi)×d))(4)
FSlow*=Emlow·FSlow+FSlow(5)

After the above steps, the support set feature FSlow is constrained by the previously obtained oil spill template, and here only the support set feature FSlow is described as an example, the same procedure will be applied to the query set feature Fqlow based on the SAR oil spill image, and to the encoder’s high-level feature outputs FShigh and Fqhigh.

3.3 Feature fusion module

Although UAV optical images and SAR images have similar features in the oil spill area, the two different data characteristics pose great challenges to transfer learning of few-shot oil spill segmentation. Furthermore, the distribution of the enhanced features FS*(Fq*) in the high-level and low-level features and the original features FS(Fq) has changed significantly after the previous feature enhancement. Based on this, instead of fusing only single features of the support set and query set images as in previous sparse sample semantic segmentation studies, this study fully considers the contour information in the low-level features and the abstract semantic information in the high-level features (Hyperspectral image instance segmentation using spectral-spatial feature pyramid network). An adaptive weighted high and low-level feature fusion module is proposed, and the specific structural diagram is shown in Figure 7.

Figure 7
www.frontiersin.org

Figure 7. The structure map of the feature fusion module.

First, a new feature C is generated from the merged high-level feature B after upsampling and the low-level feature A. The number of channels in C consists of A and B’. Then, C is reduced by 1×1 convolution to obtain D. Next, two projective fully connected layers with weight parameters Wdown and Wup are used to compress and expand the channel dimension of the feature, with a ReLU activation function used between the two fully connected layers to improve the nonlinear characteristics of the feature. Finally, the output features are obtained by taking the dot product with D to obtain E. Feature E is then connected with feature A using residuals to obtain the final fusion feature F. The overall calculation formula is as follows:

F=ReLU(Conv1×1(UP(B)·A)·Wdown)·WupConv1×1(UP(B)·A)+A(6)

4 Experiment

4.1 Experimental setup

Our network is built on PyTorch 2.0 and trained on an RTX 3090 GPU with 24GB of memory. 70% of the UAV optical dataset (887) are selected as the training set and 10% (126) are selected as the validation set. The initial model weights and oil spill template library are obtained by training in the support set branches of the model. The training batch size for the experiment is set to 8. As shown in Equation 7, we choose the weighted binary cross entropy as the loss function. The importance of the loss in the oil spill area is increased by 20%, making the model pay more attention to identifying the oil spill area. The model uses AdamW as the optimizer, with an optimization momentum of 0.95, a learning rate of 0.001, and a weight decay coefficient of 0.001. After training the model support branches using UAV optical images, we begin the second phase of transfer learning training. At this stage, the model weights trained on the UAV optical oil spill dataset were transferred to the feature extraction branch of the SAR oil spill model. Only 1, 3, and 5 samples are randomly selected from the SAR oil spill data for the few-shot query branch fine-tuning training and last test, respectively, and fine-tuned together with the previous support branches. Simultaneously, the oil spill template library is updated, and fine-tuning is limited to no more than 1500 iterations each time. Each trial is evaluated based on the results of five random sample trials, and the results of 1-shot and 5-shot SAR oil spill detection with small samples are obtained.

Lwbce=1.2×ytruelog(ypred)(1ytrue)log(1ypred)(7)

4.2 Experimental result

In order to comprehensively evaluate the effectiveness of the network proposed in this study, we selected four mainstream few-shot semantic segmentation networks: MSANet (Iqbal et al., 2022), PFENet (Tian et al., 2022), HSNet (Min et al., 2021), and BAM (Lang et al., 2022). VGG, ResNet, and DenseNet are then used as encoders for the network, respectively. The performance of the model is evaluated from both quantitative and qualitative perspectives.

In terms of quantitative evaluation, as shown in the Table 1, our network outperforms other small-sample semantic segmentation models in UAV optical-SAR oil spill detection tasks in both 1-shot and 5-shot settings. Compared with the SOTA model MSANet, the proposed network in this study achieves an average IoU improvement of 3.7%, 6.5%, and 8.2% in the 1-shot configuration of VGG16, ResNet50, and DenseNet121 backbone oil spill detection tasks, respectively. IoU increases averaged 3.5%, 6.2%, and 6.1% in the 5-shot configuration, respectively.

Table 1
www.frontiersin.org

Table 1. IoU results of the few-shot oil spill semantic segmentation tasks.

In terms of qualitative evaluation, as shown in Figure 8, we first generate an attention heat map for the task of SAR oil spill detection with few samples. It can be observed that after training with the support of the ensemble of UAV optical oil spill data, along with the adaptive feature enhancement module and the multi-scale feature fusion module, the output features can effectively focus on the oil spill areas distributed in different locations in the SAR image. This indicates that the two modules we designed facilitate feature migration, enabling the model to achieve a relatively strong ability to detect oil spills based on learning only a small amount of SAR oil spill data. This demonstrates the efficacy of the two modules in facilitating the migration of oil spill features, thereby enhancing the model’s oil spill detection capability with few shot SAR oil spill data.

Figure 8
www.frontiersin.org

Figure 8. The attention heat map of SAR oil spill images.

On the other hand, according to the previous experiments result, we found that the results of the 5-shot experiment were the most representative, so we chose the test results of the 5-shot experiment as the benchmark for model comparison. The Figure 9 illustrates the comparison results between several benchmark models and our proposed network in the 5-shot SAR oil spill semantic segmentation task. It is evident from the figure that our model closely approximates the real label and effectively segments different types of oil spill areas. Overall, our model effectively focuses on the boundaries of oil spill regions with varying shapes, enabling more accurate extraction of the spill areas. Figure 9 shows that our model accurately extracts oil spill regions, with no internal holes appearing in the detected spill areas. This improves the overall integrity of the detection, and the spill boundaries are more precise without being overly smoothed.

Figure 9
www.frontiersin.org

Figure 9. Visual comparison results of the first disaster semantic segmentation task.

We conducted ablation experiments to investigate the effects of the key components of the model, the Adaptive Feature Enhancement Module (AFEM) and the Feature Fusion Module (FFM), on the model’s performance, as shown in the Table 2, Figure 9. The feature enhancement using the AFEM module resulted in the most significant model accuracy improvement of 1.12% compared to the strategy of directly merging features from both branches. This indicates that the interaction of oil spill features from UAV optical and SAR can fully learn the respective features of the two data types to enrich the model’s information and improve its migration learning ability. Additionally, Utilizing the Oil Spill Template Library (OTL) fully explores the correlation between deep model feature modeling. It guides the establishment of feature similarity matching criteria between UAV optical and SAR images, thereby enhancing the few-shot SAR image oil spill detection capability. As shown in Table 2, the detection accuracy was increased by 1.55% after OTL was used. Additionally, the loss variation curve of the ablation model training function in Figure 10 shows that the model utilizing feature enhancement modules and multi-scale feature oil spill templates most effectively improves the cross-domain few-shot oil spill detection capability. This model also achieves the fastest training and convergence speed.

Table 2
www.frontiersin.org

Table 2. Ablation study with 5-shot semantic segmentation on SAR images.

Figure 10
www.frontiersin.org

Figure 10. Training loss curve of the ablation models.

5 Discussion

Based on the previous experimental results and analysis, this section discusses the effectiveness of the few-shot oil spill semantic segmentation network proposed in this thesis for UAV optical-SAR images from several aspects.

During the research of the paper, we identified similarities between UAV optical and SAR oil spill images, such as the patchy distribution of oil spill regions and the distinct texture and color differences between the oil spills and the background. Our model design is based on these principles, resulting in a framework for knowledge transfer and template matching from UAV optical to SAR images. Additionally, we observed that differences in image resolution between the two types of data also affect the knowledge transfer performance of the model. For instance, the optical images we used have a sub-meter resolution, suitable for detecting small sized oil spills, while SAR images have a 10-meter resolution, suitable for large-scale oil spill detection in adverse weather conditions. We took this into account in our model design by incorporating modules for extracting and fusing low-level and high-level features, which provides the model with receptive fields at various scales and enhances its ability to perceive oil spills of different sizes.

To further validate the transfer learning capability of our proposed model, we conducted an experiment in contrast to the previous one. We collected UAV oil spill images from the previous dataset and input them into the model trained on SAR oil spill data for fine-tuning and testing. The results, shown in the Figure 11, demonstrate that the model effectively extracts oil spill regions from UAV optical images. This indicates that our proposed model exhibits some transfer learning capabilities.

Figure 11
www.frontiersin.org

Figure 11. Transfer learning results from SAR to UAV optical images.

During the model design phase, this study first adopts the current mainstream two-branch architecture for few-shot semantic segmentation and sets up replaceable feature extraction encoders. It then considers the similarity of oil spill features in optical and SAR images, designing an optical-SAR adaptive feature enhancement module with an updatable oil spill template library. This module enables the formation of an optimal oil spill template library through few-shot SAR images, guiding cross-data-modality few-shot oil spill segmentation. Secondly, inspired by the concept of encoder feature extraction, this study fully exploits the information of low-level and high-level features. It designs a multi-scale feature fusion module that allows the model to adaptively learn the importance of features in different dimensions through weighting. This approach helps retain the most important features while removing redundant ones. The effectiveness of the network is demonstrated through few-shot semantic segmentation experiments.

Of course, our model has limitations. Firstly, although it establishes a connection between UAV optical and SAR oil spill images through similarity matching templates, improving the few-shot SAR oil spill detection capability, its segmentation accuracy is still lower than that of fully supervised oil spill semantic segmentation models. Additionally, due to the lack of incorporation of physical mechanism knowledge, the model’s interpretability is relatively weak, and its cross-regional transferability has not been validated. Additionally, we found that the model’s transfer learning capability between optical oil spill images from Sentinel and Landsat platforms and SAR images is relatively limited. This is because optical remote sensing images are more easily affected by complex ocean environments and weather conditions like clouds. In our experiments, the transfer model often misclassified waves and clouds as oil spills. This issue requires further investigation in future research.

In the future, we plan to design a few-shot semantic segmentation network based on the physical mechanisms of SAR oil spill imaging to improve cross-modal oil spill detection performance. Additionally, we will continuously collect oil spill semantic segmentation data from various regions for training and leverage the latest large models (SAM) to design prompt learning methods that incorporate expert knowledge, thereby enhancing model robustness. This network can serve as a reference for future research on few-shot semantic segmentation methods.

6 Conclusions

In this paper, we propose a new flexible semantic segmentation network for few-shot oil spills. Based on the current mainstream two-branch structure, we design the Adaptive Feature Enhancement Module, which can update the oil spill template library, to accurately guide and enhance features highly correlated with few-shot objects according to the oil spill image features of UAV optical and SAR. Additionally, we design the Feature Fusion Module for weighted feature fusion, fully considering the advantages of encoder low-level and high-level features, which improves the efficiency of feature information utilization. Finally, through comparison experiments with mainstream few-shot semantic segmentation models under different backbones, the results show that our network improves oil spill detection accuracy by an average of 5.3% over the state-of-the-art benchmark model. The model reduces the misclassification of oil spills with slender bar shapes.

Data availability statement

The original contributions presented in the study are included in the article/supplementary material. Further inquiries can be directed to the corresponding author.

Author contributions

LS: Writing – review & editing, Writing – original draft, Visualization, Validation, Supervision, Software, Resources, Project administration, Methodology, Investigation, Funding acquisition, Formal analysis, Data curation, Conceptualization. XW: Writing – review & editing, Supervision. KY: Writing – review & editing, Supervision, Funding acquisition. GC: Writing – review & editing, Formal analysis.

Funding

The author(s) declare financial support was received for the research, authorship, and/or publication of this article. The authors acknowledge funding from the National Natural Science Foundation of China [42071381].

Acknowledgments

The authors are grateful for the comments of the reviewers and editors that greatly improved the quality of the manuscript.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

The reviewer TM declared a shared affiliation with the author XW to the handling editor at the time of review.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

Al-Ruzouq R., Gibril M. B. A., Shanableh A., Kais A., Hamed O., Al-Mansoori S., et al. (2020). Sensors, features, and machine learning for oil spill detection and monitoring: A review. Remote Sens. 12, 1–42. doi: 10.3390/rs12203338

Crossref Full Text | Google Scholar

Amri E., Dardouillet P., Benoit A., Courteille H., Bolon P., Dubucq D., et al. (2022). Offshore oil slick detection: from photo-interpreter to explainable multi-modal deep learning models using SAR images and contextual data. Remote Sens. 14. doi: 10.3390/rs14153565. MDPI.

Crossref Full Text | Google Scholar

Asgari Taghanaki S., Abhishek K., Cohen J. P., Cohen-Adad J., Hamarneh G. (2021). Deep semantic segmentation of natural and medical images: A review. Artif. Intell. Rev. 54, 137–178. doi: 10.1007/s10462-020-09854-1. Springer Science and Business Media B.V.

Crossref Full Text | Google Scholar

Bianchi F. M., Espeseth M. M., Borch N. (2020). Large-scale detection and categorization of oil spills from SAR images with deep learning. Remote Sens. 12. doi: 10.3390/rs12142260

Crossref Full Text | Google Scholar

Bui N. A., Oh Y., Lee I. (2024). Oil spill detection and classification through deep learning and tailored data augmentation. Int. J. Appl. Earth Obs. Geoinform. 129, 103845.

Google Scholar

Chaturvedi S. K., Banerjee S., Lele S. (2020). An assessment of oil spill detection using sentinel 1 SAR-C images. J. Ocean Eng. Sci. 5, 116–135. doi: 10.1016/j.joes.2019.09.004

Crossref Full Text | Google Scholar

Chen F., Balzter H., Zhou F., Ren P., Zhou H. (2023). “DGNet: distribution guided efficient learning for oil spill image segmentation,” in IEEE Transactions on Geoscience and Remote Sensing, Vol. 61. doi: 10.1109/TGRS.2023.3240579

Crossref Full Text | Google Scholar

Chen Y., Yu W., Zhou Q., Hu H. (2024). “A novel feature enhancement and semantic segmentation scheme for identifying low-contrast ocean oil spills,” in Marine Pollution Bulletin, vol. 198. (Elsevier Ltd). doi: 10.1016/j.marpolbul.2023.115874

PubMed Abstract | Crossref Full Text | Google Scholar

De Kerf T., Sels S., Samsonova S., Vanlanduit S. (2024). Oil spill drone: A dataset of drone-captured, segmented RGB images for oil spill detection in port environments. arXiv preprint arXiv:2402.18202. doi: 10.48550/arXiv.2402.18202

PubMed Abstract | Crossref Full Text | Google Scholar

Fan J., Liu C. (2023). “Multitask GANs for oil spill classification and semantic segmentation based on SAR images,” in IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, Vol. 16. 2532–2546. doi: 10.1109/JSTARS.2023.3249680

Crossref Full Text | Google Scholar

Fan J., Sui Z., Wang X. (2024). Multiphysical interpretable deep learning network for oil spill identification based on SAR images. IEEE Trans. Geosci. Remote Sens. 62, 1–15. doi: 10.1109/TGRS.2024.3357800

Crossref Full Text | Google Scholar

Fan J., Zhang S., Wang X., Xing J. (2023). Multifeature semantic complementation network for marine oil spill localization and segmentation based on SAR images. IEEE J. Selected Topics Appl. Earth Observations Remote Sens. 16, 3771–3783. doi: 10.1109/JSTARS.2023.3264007

Crossref Full Text | Google Scholar

Ghorbani Z., Behzadan A. H. (2020). “Identification and instance segmentation of oil spills using deep neural networks,” in 5th World Congress on Civil, Structural, and Environmental Engine (Avestia Publishing), 140-1-140–148. doi: 10.11159/iceptp20.140

Crossref Full Text | Google Scholar

Habibi N., Pourjavadi A. (2022). Magnetic, thermally stable, and superhydrophobic polyurethane sponge: A highly efficient adsorbent for separation of marine oil spill pollution. Chemosphere 188, 114651. doi: 10.1016/j.chemosphere.2021.132254

PubMed Abstract | Crossref Full Text | Google Scholar

Hasimoto-Beltran R., Canul-Ku M., Díaz Méndez G. M., Ocampo-Torres F. J., Esquivel-Trava B. (2023). “Ocean oil spill detection from SAR images based on multi-channel deep learning semantic segmentation,” in Marine Pollution Bulletin, vol. 188. (Elsevier Ltd). doi: 10.1016/j.marpolbul.2023.114651

PubMed Abstract | Crossref Full Text | Google Scholar

Iqbal E., Safarov S., Bang S. (2022). MSANet: multi-similarity and attention guidance for boosting few-shot segmentation. arXiv:2206.09667. arXiv preprint, June. doi: 10.48550/arXiv.2206.09667

Crossref Full Text | Google Scholar

Jiang W., Huang K., Geng J., Deng X. (2021). Multi-scale metric learning for few-shot learning. IEEE Trans. Circuits Syst. Video Technol. 31, 1091–1102. doi: 10.1109/TCSVT.2020.2995754

Crossref Full Text | Google Scholar

Kang X., Deng B., Duan P., Wei X., Li S. (2023). Self-supervised spectral-spatial transformer network for hyperspectral oil spill mapping. IEEE Trans. Geosci. Remote Sens. 61. doi: 10.1109/TGRS.2023.3260987

Crossref Full Text | Google Scholar

Kang D., Koniusz P., Cho M., Murray N. (2023). Distilling self-supervised vision transformers for weakly-supervised few-shot classification & segmentation. Proc. IEEE/CVF Conf. Comput. Vision Pattern Recognition, 19627–19638. doi: 10.1109/CVPR52729.2023.01880

Crossref Full Text | Google Scholar

Khadka R., Jha D., Hicks S., Thambawita V., Riegler M. A., Ali S., et al. (2022). Meta-learning with implicit gradients in a few-shot setting for medical image segmentation. Comp. Biol. Med 143, 105227. doi: 10.1016/j.compbiomed.2022.105227

PubMed Abstract | Crossref Full Text | Google Scholar

Krestenitis M., Orfanidis G., Ioannidis K., Avgerinakis K., Vrochidis S., Kompatsiaris I. (2019). Oil spill identification from satellite images using deep neural networks. Remote Sens. 11. doi: 10.3390/rs11151762. MDPI AG.

Crossref Full Text | Google Scholar

Lang C., Cheng G., Tu B., Han J. (2022). “Learning what not to segment: A new perspective on few-shot segmentation,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 8057–8067.

Google Scholar

Lang C., Cheng G., Tu B., Li C., Han J. (2023). Base and meta: A new perspective on few-shot segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 45, 10669–10686. doi: 10.1109/TPAMI.2023.3265865

PubMed Abstract | Crossref Full Text | Google Scholar

Lau T. K., Huang K. H. (2024). A timely and accurate approach to nearshore oil spill monitoring using deep learning and GIS. Sci. Total Environ. doi: 10.1016/j.scitotenv.2023.169500

PubMed Abstract | Crossref Full Text | Google Scholar

Li Y., Lyu X., Frery A. C., Ren P. (2021). Oil spill detection with multiscale conditional adversarial networks with small-data training. Remote Sens. 13, 2378. doi: 10.3390/rs13122378

Crossref Full Text | Google Scholar

Li Y., Huang W., Lyu X., Liu S., Zhao Z., Ren P. (2022). An adversarial learning approach to forecasted wind field correction with an application to oil spill drift prediction. Int. J. Appl. Earth Observation Geoinformation 112, 102924. doi: 10.1016/j.jag.2022.102924

Crossref Full Text | Google Scholar

Ma X., Xu J., Pan J., Yang J., Wu P., Meng X. (2023). Detection of marine oil spills from radar satellite images for the coastal ecological risk assessment. Journal of Environmental Management 325, 116637. doi: 10.1016/j.jenvman.2022.116637

PubMed Abstract | Crossref Full Text | Google Scholar

Min J., Kang D., Cho M. (2021). “Hypercorrelation squeeze for few-shot segmentation,” in Proceedings of the IEEE/CVF international conference on computer vision., 6941–6952.

Google Scholar

Mohammadiun S., Hu G., Gharahbagh A. A., Li J., Hewage K., Sadiq R. (2021). Intelligent computational techniques in marine oil spill management: A critical review. J. Hazardous Materials. doi: 10.1016/j.jhazmat.2021.126425. Elsevier B.V.

PubMed Abstract | Crossref Full Text | Google Scholar

Soh K., Zhao L., Peng M., Lu J., Sun W., Tongngern S. (2024). SAR marine oil spill detection based on an encoder-decoder network. Int. J. Remote Sens. 45, 587–608. doi: 10.1080/01431161.2023.2299274

Crossref Full Text | Google Scholar

Song D., Zhen Z., Wang B., Li X., Gao L., Wang N., et al. (2020). A novel marine oil spillage identification scheme based on convolution neural network feature extraction from fully polarimetric SAR imagery. IEEE Access 8, 59801–59820. doi: 10.1109/ACCESS.2020.2979219

Crossref Full Text | Google Scholar

Sun X., Fu H., Bao M., Zhang F., Liu W., Li Y., et al. (2023). Preparation of slow-release microencapsulated fertilizer-biostimulation remediation of marine oil spill pollution. J. Environ. Chem. Engineering. 11 (2), 109283. doi: 10.1016/j.jece.2023.109283

Crossref Full Text | Google Scholar

Tian Z., Zhao H., Shu M., Yang Z., Li R., Jia J. (2022). Prior guided feature enrichment network for few-shot segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 44, 1050–1065. doi: 10.1109/TPAMI.2020.3013717

PubMed Abstract | Crossref Full Text | Google Scholar

Wang C., Liu X., Yang T., Sridhar D., Algadi H., Xu B. B., et al. (2023). An overview of metal-organic networks and their magnetic composites for the removal of pollutants. Separation Purification Technol. 320, 124144.

Google Scholar

Wang W., Zhou T., Yu F., Dai J., Konukoglu E., Van Gool L. (2021). “Exploring cross-image pixel contrast for semantic segmentation,” in Proceedings of the IEEE/CVF international conference on computer vision., 7303–7313.

Google Scholar

Yuan X., Shi J., Gu L. (2021). A review of deep learning methods for semantic segmentation of remote sensing imagery. Expert Syst. Appl. 169, 114417. doi: 10.1016/j.eswa.2020.114417

Crossref Full Text | Google Scholar

Zheng W., Tian X., Yang B., Liu S., Ding Y., Tian J., et al. (2022). A few shot classification methods based on multiscale relational networks. Appl. Sci. 12. doi: 10.3390/app12084059. MDPI.

Crossref Full Text | Google Scholar

Zhou T., Wang W., Konukoglu E., Van Gool L. (2022). “Rethinking semantic segmentation: A prototype view,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2582–2593.

Google Scholar

Zhu Q., Zhang Y., Li Z., Yan X., Guan Q., Zhong Y., et al. (2022). “Oil spill contextual and boundary-supervised detection network based on marine SAR images,” in IEEE Transactions on Geoscience and Remote Sensing, Vol. 60. doi: 10.1109/TGRS.2021.3115492

Crossref Full Text | Google Scholar

Keywords: oil spill, UAV, deep learning, few-shot, segmentation

Citation: Shi L, Wei X, Yang K and Chen G (2024) A few-shot oil spill segmentation network guided by multi-scale feature similarity modeling. Front. Mar. Sci. 11:1481028. doi: 10.3389/fmars.2024.1481028

Received: 16 August 2024; Accepted: 13 November 2024;
Published: 11 December 2024.

Edited by:

Weimin Huang, Memorial University of Newfoundland, Canada

Reviewed by:

Tingyu Meng, Chinese Academy of Sciences (CAS), China
Tran-Vu La, Luxembourg Institute of Science and Technology (LIST), Luxembourg
Yongqing Li, Qingdao University of Science and Technology, China

Copyright © 2024 Shi, Wei, Yang and Chen. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Kun Yang, eWFuZ2t1bkB5bm51LmVkdS5jbg==

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.