A Lightweight Semantic Segmentation for Terrestrial Oil Spill Detection
Abstract
1. Introduction
- We establish UTOSD, a UAV-based terrestrial oil spill dataset comprising 665 high-resolution RGB images with pixel-level annotations. The dataset covers diverse terrestrial backgrounds, including vegetation, bare soil, snow-covered areas, and oilfield facilities, providing a dedicated benchmark for terrestrial oil spill segmentation.
- We propose Fluid-SegFormer, a task-specific lightweight semantic segmentation framework for UAV-based terrestrial oil spill monitoring. By integrating shallow noise suppression, deep directional feature modeling, and soft-boundary refinement into the SegFormer architecture, the framework improves the representation of irregular oil spill regions and ambiguous boundaries while maintaining low computational complexity.
- We conduct comprehensive, unified evaluations showing that Fluid-SegFormer achieves superior performance and robustness compared to mainstream semantic segmentation baselines.
2. Materials and Methods
2.1. Dataset Collection and Processing
2.2. Model Structure
2.2.1. Overall Method Framework
2.2.2. Local Noise Gating Module
2.2.3. Horizontal–Vertical Perception Attention Module
2.2.4. Fluid Soft-Boundary Refinement Decoder
2.2.5. Loss Function and Optimizer
3. Results and Discussion
3.1. Experimental Setup
3.2. Evaluation Metrics
3.3. Semantic Segmentation Experiment of UTOSD
3.4. Five-Fold Cross-Validation
3.5. Visual Analysis
3.6. Ablation Experiment
3.7. Decision Threshold Sensitivity and Deployment
3.8. Evaluation of Cross-Scene Transferability and Robustness
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- de Oliveira, O.M.C.; Queiroz, A.F.d.S.; Cerqueira, J.R.; Soares, S.A.R.; Garcia, K.S.; Filho, A.P.; Rosa, M.d.L.d.S.; Suzart, C.M.; Pinheiro, L.d.L.; Moreira Í, T.A. Environmental disaster in the northeast coast of Brazil: Forensic geochemistry in the identification of the source of the oily material. Mar. Pollut. Bull. 2020, 160, 111597. [Google Scholar] [CrossRef] [Scilit]
- Li, P.; Cai, Q.; Lin, W.; Chen, B.; Zhang, B. Offshore oil spill response practices and emerging challenges. Mar. Pollut. Bull. 2016, 110, 6–27. [Google Scholar] [CrossRef] [Scilit]
- Hong, S.; Khim, J.S.; Ryu, J.; Kang, S.-G.; Shim, W.J.; Yim, U.H. Environmental and ecological effects and recoveries after five years of the Hebei Spirit oil spill, Taean, Korea. Ocean Coast. Manag. 2014, 102, 522–532. [Google Scholar] [CrossRef] [Scilit]
- Yim, U.H.; Kim, M.; Ha, S.Y.; Kim, S.; Shim, W.J. Oil spill environmental forensics: The Hebei Spirit oil spill case. Environ. Sci. Technol. 2012, 46, 6431–6437. [Google Scholar] [CrossRef] [Scilit]
- Beyer, J.; Trannum, H.C.; Bakke, T.; Hodson, P.V.; Collier, T.K. Environmental effects of the Deepwater Horizon oil spill: A review. Mar. Pollut. Bull. 2016, 110, 28–51. [Google Scholar] [CrossRef] [Scilit]
- Michel, J.; Owens, E.H.; Zengel, S.; Graham, A.; Nixon, Z.; Allard, T.; Holton, W.; Reimer, P.D.; Lamarche, A.; White, M.; et al. Extent and degree of shoreline oiling: Deepwater Horizon oil spill, Gulf of Mexico, USA. PLoS ONE 2013, 8, e65087. [Google Scholar] [CrossRef] [Scilit]
- Al-Ruzouq, R.; Gibril, M.B.A.; Shanableh, A.; Kais, A.; Hamed, O.; Al-Mansoori, S.; Khalil, M.A. Sensors, Features, and Machine Learning for Oil Spill Detection and Monitoring: A Review. Remote Sens. 2020, 12, 3338. [Google Scholar] [CrossRef] [Scilit]
- Lassalle, G.; Scafutto, R.D.M.; Lourenço, R.A.; Mazzafera, P.; de Souza Filho, C.R. Remote sensing reveals unprecedented sublethal impacts of a 40-year-old oil spill on mangroves. Environ. Pollut. 2023, 331, 121859. [Google Scholar] [CrossRef] [Scilit]
- Dong, S.; Feng, J.; Gu, Z.; Yin, K.; Long, Y. A Review of Artificial Intelligence and Remote Sensing for Marine Oil Spill Detection, Classification, and Thickness Estimation. Remote Sens. 2025, 17, 3681. [Google Scholar] [CrossRef] [Scilit]
- Baghdady, S.M.; Abdelsalam, A.A. Ten years of oil pollution detection in the Eastern Mediterranean shipping lanes opposite the Egyptian coast using remote sensing techniques. Sci. Rep. 2024, 14, 18057. [Google Scholar] [CrossRef] [Scilit]
- Sun, Z.; Yang, Q.; Yan, N.; Chen, S.; Zhu, J.; Zhao, J.; Sun, S. Utilizing deep learning algorithms for automated oil spill detection in medium resolution optical imagery. Mar. Pollut. Bull. 2024, 206, 116777. [Google Scholar] [CrossRef] [Scilit]
- Temitope Yekeen, S.; Balogun, A.-L. Advances in Remote Sensing Technology, Machine Learning and Deep Learning for Marine Oil Spill Detection, Prediction and Vulnerability Assessment. Remote Sens. 2020, 12, 3416. [Google Scholar] [CrossRef] [Scilit]
- Yang, J.; Wan, J.; Ma, Y.; Zhang, J.; Hu, Y. Characterization analysis and identification of common marine oil spill types using hyperspectral remote sensing. Int. J. Remote Sens. 2020, 41, 7163–7185. [Google Scholar] [CrossRef] [Scilit]
- Bui, N.A.; Oh, Y.; Lee, I. Oil spill detection and classification through deep learning and tailored data augmentation. Int. J. Appl. Earth Obs. Geoinf. 2024, 129, 103845. [Google Scholar] [CrossRef] [Scilit]
- Aromoye, I.A.; Lo, H.H.; Sebastian, P.; Ayinla, S.L.; Abro, G.E.M. Significant Advancements in UAV Technology for Reliable Oil and Gas Pipeline Monitoring. Comput. Model. Eng. Sci. 2025, 142, 1155–1197. [Google Scholar] [CrossRef] [Scilit]
- Asadzadeh, S.; Oliveira, W.J.d.; Souza Filho, C.R.d. UAV-based remote sensing for the petroleum industry and environmental monitoring: State-of-the-art and perspectives. J. Pet. Sci. Eng. 2022, 208, 109633. [Google Scholar] [CrossRef] [Scilit]
- Ghorbani, Z.; Behzadan, A.H. Monitoring offshore oil pollution using multi-class convolutional neural networks. Environ. Pollut. 2021, 289, 117884. [Google Scholar] [CrossRef] [Scilit]
- De Kerf, T.; Sels, S.; Samsonova, S.; Vanlanduit, S. A dataset of drone-captured, segmented images for oil spill detection in port environments. Sci. Data 2024, 11, 1180. [Google Scholar] [CrossRef] [Scilit]
- Basit, A.; Siddique, M.A.; Bashir, S.; Naseer, E.; Sarfraz, M.S. Deep Learning-Based Detection of Oil Spills in Pakistan’s Exclusive Economic Zone from January 2017 to December 2023. Remote Sens. 2024, 16, 2432. [Google Scholar] [CrossRef] [Scilit]
- Song, D.; Zhen, Z.; Wang, B.; Li, X.; Gao, L.; Wang, N.; Xie, T.; Zhang, T. A Novel Marine Oil Spillage Identification Scheme Based on Convolution Neural Network Feature Extraction From Fully Polarimetric SAR Imagery. IEEE Access 2020, 8, 59801–59820. [Google Scholar] [CrossRef] [Scilit]
- Hasimoto-Beltran, R.; Canul-Ku, M.; Díaz Méndez, G.M.; Ocampo-Torres, F.J.; Esquivel-Trava, B. Ocean oil spill detection from SAR images based on multi-channel deep learning semantic segmentation. Mar. Pollut. Bull. 2023, 188, 114651. [Google Scholar] [CrossRef] [Scilit]
- Garcia-Pineda, O.; Staples, G.; Jones, C.E.; Hu, C.; Holt, B.; Kourafalou, V.; Graettinger, G.; DiPinto, L.; Ramirez, E.; Streett, D.; et al. Classification of oil spill by thicknesses using multiple remote sensors. Remote Sens. Environ. 2020, 236, 111421. [Google Scholar] [CrossRef] [Scilit]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems (NeurIPS 2017), Long Beach, CA, USA, 4–9 December 2017; pp. 5998–6008. [Google Scholar] [CrossRef] [Scilit]
- Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. In Proceedings of the 35th Conference on Neural Information Processing Systems (NeurIPS 2021), Virtual Event, 6–14 December 2021; pp. 12077–12090. [Google Scholar] [CrossRef] [Scilit]
- Poudel, R.P.K.P.; Liwicki, S.; Cipolla, R. Fast-SCNN: Fast Semantic Segmentation Network. arXiv 2019, arXiv:1902.04502. [Google Scholar] [CrossRef] [Scilit]
- Yu, C.; Gao, C.; Wang, J.; Yu, G.; Shen, C.; Sang, N. BiSeNet V2: Bilateral Network with Guided Aggregation for Real-Time Semantic Segmentation. Int. J. Comput. Vis. 2021, 129, 3051–3068. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.; Peng, H.; Zheng, N.; Yang, Y.; Hu, H.; Yuan, Y. EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attention. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 17–24 June 2023; pp. 14420–14430. [Google Scholar] [CrossRef] [Scilit]
- Chen, L.C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 801–818. [Google Scholar] [CrossRef] [Scilit]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Proceedings of the 18th International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI 2015), Munich, Germany, 5–9 October 2015; pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
- Zhao, H.; Shi, J.; Qi, X.; Wang, X.; Jia, J. Pyramid Scene Parsing Network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 6230–6239. [Google Scholar] [CrossRef] [Scilit]
- Sun, K.; Xiao, B.; Liu, D.; Wang, J. Deep High-Resolution Representation Learning for Human Pose Estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 5693–5703. [Google Scholar] [CrossRef] [Scilit]
- Woo, S.; Park, J.; Lee, J.Y.; Kweon, I.S. CBAM: Convolutional Block Attention Module. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 3–19. [Google Scholar] [CrossRef] [Scilit]
- Hou, Q.; Zhang, L.; Cheng, M.M.; Feng, J. Strip Pooling: Rethinking Spatial Pooling for Scene Parsing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 4003–4012. [Google Scholar] [CrossRef] [Scilit]






| Parameter | Configuration |
|---|---|
| PyTorch | 2.1.2 |
| Python | 3.10 |
| CUDA | 12.1 |
| GPU | NVIDIA GeForce RTX 4070 Ti |
| CPU | Intel Core i7-8700K |
| MMSegmentation | 1.2.2 |
| Operating System | Windows 10 |
| Method | Backbone | mIoU (%) | IoU (%) | Precision (%) | Recall (%) | F1 (%) | Params (M) | Flops (G) | FPS (img/s) |
|---|---|---|---|---|---|---|---|---|---|
| U-Net | U-Net | 84.03 | 70.68 | 84.14 | 81.54 | 82.82 | 28.99 | 203 | 3.06 |
| PSPNet | ResNet-50 | 86.42 | 75.08 | 84.87 | 86.68 | 85.77 | 46.60 | 179 | 8.01 |
| DeepLabV3+ | MobileNetV2 | 82.10 | 67.21 | 81.1 | 79.68 | 80.39 | 5.34 | 23.82 | 20.32 |
| HRNet | HRNet-18 | 83.61 | 69.80 | 88.02 | 77.13 | 82.22 | 9.64 | 18.57 | 17.79 |
| FastSCNN | FastSCNN | 76.35 | 57.09 | 69.91 | 75.69 | 72.69 | 1.398 | 0.926 | 100.95 |
| BiSeNetV2 | BiSeNetV2 | 77.17 | 58.36 | 74.33 | 73.09 | 73.71 | 3.34 | 12.28 | 54.17 |
| Segformer | MiT-B0 | 82.93 | 75.98 | 86.38 | 86.32 | 86.35 | 3.72 | 7.88 | 16.24 |
| Ours | MiT-B0 | 87.84 | 77.56 | 91.42 | 83.65 | 87.36 | 4.19 | 7.96 | 13.76 |
| Loss | mIoU (%) | IoU (%) | Precision (%) | Recall (%) | F1 (%) |
|---|---|---|---|---|---|
| BCE | 87.84 | 77.56 | 91.42 | 83.65 | 87.36 |
| Focal Loss | 80.35 | 63.70 | 90.32 | 68.36 | 77.82 |
| Baseline | LNG | HVPA | FSBRD | mIoU (%) | IoU (%) | Precision (%) | Recall (%) | F1 (%) | Params (M) | Flops (G) | FPS (img/s) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| √ | - | - | - | 82.93 | 75.98 | 86.38 | 86.32 | 86.35 | 3.72 | 7.88 | 16.24 |
| √ | √ | - | - | 86.90 | 75.87 | 88.85 | 83.85 | 86.28 | 3.74 | 7.89 | 14.46 |
| √ | - | √ | - | 87.29 | 76.58 | 89.44 | 84.19 | 86.73 | 4.18 | 7.90 | 16.28 |
| √ | - | - | √ | 87.72 | 77.40 | 88.31 | 86.24 | 87.26 | 3.72 | 7.93 | 15.42 |
| √ | √ | √ | - | 87.59 | 77.11 | 90.81 | 83.63 | 87.07 | 4.19 | 7.91 | 14.43 |
| √ | √ | √ | √ | 87.84 | 77.56 | 91.42 | 83.65 | 87.36 | 4.19 | 7.96 | 13.76 |
| Threshold | mIoU (%) | IoU (%) | Precision (%) | Recall (%) | F1 (%) |
|---|---|---|---|---|---|
| 0.25 | 87.61 | 77.27 | 85.04 | 89.42 | 87.18 |
| 0.30 | 87.98 | 77.91 | 87.11 | 88.06 | 87.58 |
| 0.35 | 88.11 | 78.11 | 88.83 | 86.62 | 87.71 |
| 0.40 | 88.03 | 77.94 | 90.19 | 85.16 | 87.6 |
| 0.45 | 87.84 | 77.56 | 91.42 | 83.65 | 87.36 |
| Method | mIoU (%) | IoU (%) | Precision (%) | Recall (%) | F1 (%) |
|---|---|---|---|---|---|
| U-Net | 79.02 | 75.85 | 78.01 | 96.47 | 86.26 |
| PSPNet | 75.62 | 72.0 | 75.53 | 93.01 | 83.72 |
| DeepLabV3+ | 72.88 | 70.1 | 81.1 | 98.04 | 82.42 |
| HRNet | 73.23 | 69.54 | 73.31 | 93.1 | 82.03 |
| Segformer | 85.1 | 81.84 | 87.38 | 92.81 | 90.01 |
| Ours | 85.24 | 82.11 | 86.74 | 93.9 | 90.18 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Shao, K.; Cao, H. A Lightweight Semantic Segmentation for Terrestrial Oil Spill Detection. Appl. Sci. 2026, 16, 8458. https://doi.org/10.3390/app16178458
Shao K, Cao H. A Lightweight Semantic Segmentation for Terrestrial Oil Spill Detection. Applied Sciences. 2026; 16(17):8458. https://doi.org/10.3390/app16178458
Chicago/Turabian StyleShao, Keyong, and Honglian Cao. 2026. "A Lightweight Semantic Segmentation for Terrestrial Oil Spill Detection" Applied Sciences 16, no. 17: 8458. https://doi.org/10.3390/app16178458
APA StyleShao, K., & Cao, H. (2026). A Lightweight Semantic Segmentation for Terrestrial Oil Spill Detection. Applied Sciences, 16(17), 8458. https://doi.org/10.3390/app16178458

