OilSAM2: Memory-Augmented SAM2 for Scalable SAR Oil Spill Detection
Organizations: Multimodal Intelligence Lab, Department of Computer Science, University of Exeter, United Kingdom · College of Oceanography and Space Informatics, China University of Petroleum (East China), China. · Department of Computer Science, University of Exeter, United Kingdom
Abstract
Segmenting oil spills from Synthetic Aperture Radar (SAR) imagery remains challenging due to severe appearance variability, scale heterogeneity, and the absence of temporal continuity in real world monitoring scenarios. While foundation models such as Segment Anything (SAM) enable prompt driven segmentation, existing SAM based approaches operate on single images and cannot effectively reuse information across scenes. Memory augmented variants (e.g., SAM2) further assume temporal coherence, making them prone to semantic drift when applied to unordered SAR image collections. We propose OilSAM2, a memory augmented segmentation framework tailored for unordered SAR oil spill monitoring. OilSAM2 introduces a hierarchical feature aware multi scale memory bank that explicitly models texture, structure, and semantic level representations, enabling robust cross image information reuse. To mitigate memory drift, we further propose a structure semantic consistent memory update strategy that selectively refreshes memory based on semantic discrepancy and structural variation.Experiments on two public SAR oil spill datasets demonstrate that OilSAM2 achieves state of the art segmentation performance, delivering stable and accurate results under noisy SAR monitoring scenarios. The source code is available at https://github.com/Chenshuaiyu1120/OILSAM2.
Figures & tables
| Model | SeaSurface(%, ) | Oil Spill(%, ) | Look-alike(%, ) | Ship(%, ) | Land(%, ) | mIoU(%, ) |
|---|---|---|---|---|---|---|
| Unet [ 23 ] | 93.90 | 53.79 | 39.55 | 44.93 | 92.68 | 64.97 |
| LinkNet [ 4 ] | 94.99 | 51.53 | 43.24 | 40.23 | 93.97 | 64.79 |
| PSPNet [ 29 ] | 92.78 | 40.10 | 33.79 | 24.42 | 86.90 | 55.60 |
| Deeplabv2 [ 5 ] | 94.09 | 25.57 | 40.30 | 11.41 | 74.99 | 49.27 |
| Deeplabv2(msc) [ 5 ] | 95.39 | 49.28 | 31.26 | 88.65 | 93.97 | 62.83 |
| Deeplabv3+ [ 6 ] | 96.43 | 53.38 | 55.40 | 27.63 | 92.44 | 65.06 |
| Model | mIoU (%, ) | F1-score (%, ) | Recall (%, ) | Precision (%, ) | ||||
|---|---|---|---|---|---|---|---|---|
| PALSAR | Sentinel-1 | PALSAR | Sentinel-1 | PALSAR | Sentinel-1 | PALSAR | Sentinel-1 | |
| U-Net [ 23 ] | 81.63 | 81.46 | 82.20 | 86.10 | 77.84 | 81.22 | 83.08 | 85.61 |
| D-LinkNet [ 4 ] | 81.58 | 82.32 | 84.57 | 87.08 | 85.48 | 85.22 | 83.69 | 85.22 |
| Deeplabv3 [ 6 ] | 81.79 | 82.94 | 84.26 | 87.70 | 84.31 | 84.76 | 83.02 | 88.08 |
| CBD-Net [ 15 ] | 83.31 | 83.42 | 84.84 | 87.87 | 86.75 | 87.32 | 84.20 | 91.20 |
| Medical SAM2 [ 30 ] | 82.14 | 80.64 | 83.04 | 82.13 | 83.77 | 85.92 | 81.07 | 85.64 |
| Configuration | mIoU | Prec. |
|---|---|---|
| Baseline [ 30 ] | 82.14 | 81.07 |
| Baseline + Multi-Scale Fusion | 82.27 | 81.13 |
| Baseline + Structure–Semantic Update | 83.64 | 81.68 |
| Baseline + Multi-scale Memory Bank | 83.53 | 82.04 |
| Baseline + Fusion + Update | 83.92 | 82.16 |
| Baseline + Fusion + Memory Bank | 83.85 | 82.24 |
Synthetic Aperture Radar
Synthetic Aperture Radar uses motion-enabled microwave measurements to image Earth and objects, even through clouds and at night.
See all 70 papers