YOLOv8m-CGSE: An Improved Lightweight YOLOv8m for Marine Oil Spill Detection
Abstract
1. Introduction
- (1)
- A lightweight convolution strategy based on GSConv is introduced to replace standard convolution, significantly reducing model parameters and computational complexity while maintaining detection accuracy.
- (2)
- A lightweight Cross-scale Context Fusion Module (CCFM) is designed to improve multi-scale feature fusion and enhance detection performance for small oil spill targets.
- (3)
- The C2f module is improved by integrating the SENetV2 attention mechanism to enhance global feature representation and improve robustness under complex marine background conditions.
2. Literature Review
2.1. Object Detection Algorithms
2.2. Lightweight Object Detection Models
2.3. Marine Oil Spill Detection Based on Deep Learning
3. Methods
3.1. Basic Architecture of YOLOv8m-CGSE
3.2. Overall Structure of CCFM
- The proposed recursive residual fusion architecture achieves deep coupling between semantic information and fine-grained features through multi-round feature iteration optimization, outperforming Path Aggregation Network–Feature Pyramid Network (PAN-FPN) in feature fusion efficiency;
- Adaptive channel attention gating dynamically adjusts feature contribution weights across different scales, enhancing feature response in oil spill edge regions;
- A lightweight aggregation operator is designed by integrating group convolution and feature reorganization operations, which effectively reduces the number of parameters and computational complexity of the module while maintaining feature fusion capability.
3.3. GSConv Convolutional Layer
- The main branch adopts 3 × 3 standard convolution (Conv3×3) to generate feature maps with c2/2 channels, focusing on capturing cross-channel semantic associations in oil spill regions. Because relying solely on spectral differences is often insufficient to discriminate oil spills from complex visual false positives (lookalikes) in optical imagery, this branch emphasizes the extraction of broader spatial context and morphological features of the oil slicks to ensure the retention of more robust semantic information for oil spill detection;
- The auxiliary branch uses depth-wise convolution (DWConv) to generate feature maps with c2/2 channels, which is specifically designed to extract spatial details of oil spills, such as the edges of thin oil films and the subtle texture differences between oil and seawater, while significantly reducing the number of parameters to achieve a lightweight design;
- After the feature splicing of the two branches, the channel shuffle operation (Shuffle) is performed to break the “semantic-detail” feature island formed after concatenation, promoting cross-channel interaction between oil spill texture features and background suppression information, and enhancing the correlation between different types of oil spill features to obtain the intermediate feature map Fmid.
3.4. SENetV2 Module
- (1)
- Squeeze phase
- (2)
- Aggregate stage
- (3)
- Excitation phase
4. Experiments and Results
4.1. Dataset Description
4.2. Mosaic Image Enhancement for YOLOv8m
- (1)
- Core enhancement strategies: The Mosaic enhancement probability is set to 0.7 (to match the distribution characteristics of oil spills on the sea surface and prevent target feature distortion caused by over-enhancement). During the final 10 training rounds, Mosaic is disabled to stabilize model convergence. The MixUp enhancement probability is set to 0.2 (to achieve sample mixing with Mosaic and avoid excessive overlap of oil spill targets). The Copy-paste enhancement probability is set to 0.1 (to expand the number of small oil spill samples and address the scarcity of small-target samples).
- (2)
- Augmentation Strategies: Geometric transformations include rotation angle ±8.0°, translation scale ±10%, and shear angle 0.05° (moderate adjustments to simulate oil spill patterns under different viewing angles while preserving sea condition characteristics). Color space modifications apply hue shift 0.01, saturation adjustment 0.5, and brightness adjustment 0.3 (low-intensity hue changes retain oil color features, while moderate saturation/brightness adjustments adapt to visual variations under varying lighting and sea conditions). The model incorporates 0.2 probability for vertical flipping and 0.5 probability for horizontal flipping (simulating multi-angle sea surface views to enhance model generalization).
4.3. Model Improvement of YOLOv8m
4.4. Limitation Analysis of False Positives and Lookalikes
5. Discussion
5.1. Sensor and Methodological Comparison with Existing Literature
5.2. Robustness Against Marine Lookalikes
5.3. Limitations and Future Work
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Michel, J.; Fingas, M. Oil spills: Causes, consequences, prevention, and countermeasures. In Fossil Fuels: Current Status and Future Directions; World Scientific Publishing Company: Singapore, 2016; pp. 159–201. [Google Scholar]
- Zhang, Z.; Sun, H.; Guo, Y. The Impact of Marine Oil Spills on the Ecosystem. Int. J. Eng. Sci. Technol. 2024, 2, 1–10. [Google Scholar] [CrossRef]
- Fingas, M.F.; Brown, C.E. Review of Oil Spill Remote Sensing. Spill Sci. Technol. Bull. 1997, 4, 199–208. [Google Scholar] [CrossRef]
- Burgués, J.; Marco, S. Environmental chemical sensing using small drones: A review. Sci. Total Environ. 2020, 748, 141172. [Google Scholar] [CrossRef]
- Xu, L.; Li, J.; Brenning, A. A comparative study of different classification techniques for marine oil spill identification using RADARSAT-1 imagery. Remote Sens. Environ. 2013, 141, 14–23. [Google Scholar] [CrossRef]
- Mera, D.; Bolon-Canedo, V.; Cotos, J.; Alonso-Betanzos, A. On the use of feature selection to improve the detection of sea oil spills in SAR images. Comput. Geosci. 2017, 100, 166–178. [Google Scholar] [CrossRef]
- Konik, M.; Bradtke, K. Object-oriented approach to oil spill detection using ENVISAT ASAR images. ISPRS J. Photogramm. Remote Sens. 2016, 118, 37–52. [Google Scholar] [CrossRef]
- Topouzelis, K.; Psyllos, A. Oil spill feature selection and classification using decision tree forest on SAR image data. ISPRS J. Photogramm. Remote Sens. 2012, 68, 135–143. [Google Scholar] [CrossRef]
- Tong, S.; Liu, X.; Chen, Q.; Zhang, Z.; Xie, G. Multi-feature based ocean oil spill detection for polarimetric SAR data using random forest and the self-similarity parameter. Remote Sens. 2019, 11, 451. [Google Scholar] [CrossRef]
- Park, S.; Jung, H.; Lee, M. Oil spill mapping from Kompsat-2 high-resolution image using directional median filtering and artificial neural network. Remote Sens. 2020, 12, 253. [Google Scholar] [CrossRef]
- Topouzelis, K.; Karathanassi, V.; Pavlakis, P.; Rokos, D. Detection and discrimination between oil spills and look-alike phenomena through neural networks. ISPRS J. Photogramm. Remote Sens. 2007, 62, 264–270. [Google Scholar] [CrossRef]
- Singha, S.; Bellerby, T.J.; Trieschmann, O. Satellite oil spill detection using artificial neural networks. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2013, 6, 2355–2363. [Google Scholar] [CrossRef]
- Bianchi, F.M.; Espeseth, M.M.; Borch, N. Large-scale detection and categorization of oil spills from SAR images with deep learning. Remote Sens. 2020, 12, 2260. [Google Scholar] [CrossRef]
- Zhao, S.; Zhou, H.; Yang, H. Smart monitoring method for land-based sources of marine outfalls based on an improved YOLOv8 model. Water 2024, 16, 3285. [Google Scholar] [CrossRef]
- Chai, Y.; Han, X.; Wang, Y.; Luo, D.; Yang, J.; Chen, P.; Zheng, G. TransOilSeg: A novel SAR oil spill detection method addressing data limitations and look-alike confusions. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5206216. [Google Scholar] [CrossRef]
- Li, J.; Ma, Y.; Ji, Y.; Jiang, Z.; Du, K.; Liu, R.; Yang, J. SR-SqueezeNet: A lightweight hyperspectral identification model for oil spills based on smoothed activation functions. Mar. Pollut. Bull. 2025, 211, 117365. [Google Scholar] [CrossRef] [PubMed]
- Wang, J.; Zhao, H. Improved YOLOv8 algorithm for water surface object detection. Sensors 2024, 24, 5059. [Google Scholar] [CrossRef]
- Liu, L.; Ouyang, W.; Wang, X.; Fieguth, P.; Chen, J.; Liu, X.; Pietikäinen, M. Deep learning for generic object detection: A survey. Int. J. Comput. Vis. 2020, 128, 261–318. [Google Scholar] [CrossRef]
- Trigka, M.; Dritsas, E. A Comprehensive Survey of Machine Learning Techniques and Models for Object Detection. Sensors 2025, 25, 214. [Google Scholar] [CrossRef]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. Adv. Neural Inf. Process. Syst. 2015, 28, 91–99. [Google Scholar] [CrossRef] [PubMed]
- Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.Y.; Berg, A.C. SSD: Single shot multibox detector. In European Conference on Computer Vision; Springer: Cham, Switzerland, 2016; pp. 21–37. [Google Scholar]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 779–788. [Google Scholar]
- Nawarathne, U.; Kumari, H.; Kumari, H. Underwater waste detection using deep learning: A performance comparison of YOLOv7 to v10 and Faster R-CNN. arXiv 2025, arXiv:2507.18967. [Google Scholar]
- Gao, Y.; Wu, C.; Ren, M.; Feng, Y. Refined anchor-free model with feature enhancement mechanism for ship detection in infrared images. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2025, 12946–12960, early access. [Google Scholar] [CrossRef]
- Howard, A.G.; Zhu, M.; Chen, B.; Kalenichenko, D.; Wang, W.; Weyand, T.; Andreetto, M.; Adam, H. MobileNets: Efficient convolutional neural networks for mobile vision applications. arXiv 2017, arXiv:1704.04861. [Google Scholar] [CrossRef]
- Zhang, X.; Zhou, X.; Lin, M.; Sun, J. ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 6848–6856. [Google Scholar] [CrossRef]
- Tan, M.; Pang, R.; Le, Q.V. EfficientDet: Scalable and Efficient Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 10778–10787. [Google Scholar] [CrossRef]
- Li, M.; Wang, J.; Chen, S.; Liu, L.; Li, K.; Zhao, Z.; Yun, H. A structurally optimized and efficient lightweight object detection model for autonomous driving. Sensors 2025, 26, 54. [Google Scholar] [CrossRef] [PubMed]
- Zhang, W.; Yi, D.; Fang, Z.; Zhao, Y.; You, Z. Research on complex defect detection method on steel surface based on EBA-YOLO. IAENG Int. J. Comput. Sci. 2025, 52, 2141–2151. [Google Scholar]
- Chen, Z.; Lu, S. CAF-YOLO: A robust framework for multi-scale lesion detection in biomedical imagery. In Proceedings of the ICASSP 2025—2025 IEEE International Conference on Acoustics, Speech and Signal Processing, Hyderabad, India, 6–11 April 2025; pp. 1–5. [Google Scholar]
- Yu, H.; Luo, Q.; Peng, W.; Zheng, L.; Ju, J.; Zhuo, H. PKD-YOLOv8: A collaborative pruning and knowledge distillation framework for lightweight rapeseed pest detection. Sensors 2025, 25, 5004. [Google Scholar] [CrossRef]
- Zhu, J.; Hu, T.; Zheng, L.; Zhou, N.; Ge, H.; Hong, Z. YOLOv8-C2f-Faster-EMA: An improved underwater trash detection model based on YOLOv8. Sensors 2024, 24, 2483. [Google Scholar] [CrossRef]
- Rao, W.; Hu, Q.; Chen, G. Research on a lightweight algorithm for seabed organism detection based on deep learning. J. Mar. Sci. Eng. 2026, 14, 454. [Google Scholar] [CrossRef]
- Sun, H.; Zhao, H.; Liu, Z.; Jiang, G.; Zhao, J. WA-YOLO: Water-aware improvements for maritime small-object detection under glare and low-light. J. Mar. Sci. Eng. 2025, 14, 37. [Google Scholar] [CrossRef]
- Brekke, C.; Solberg, A.H.S. Oil Spill Detection by Satellite Remote Sensing. Remote Sens. Environ. 2005, 95, 1–13. [Google Scholar] [CrossRef]
- Leifer, I.; Lehr, W.J.; Simecek-Beatty, D.; Bradley, E.; Clark, R.; Dennison, P.; Hu, Y.; Matheson, S.; Jones, C.E.; Holt, B.; et al. State of the Art Satellite and Airborne Marine Oil Spill Remote Sensing: Application to the BP Deepwater Horizon Oil Spill. Remote Sens. Environ. 2012, 124, 185–209. [Google Scholar] [CrossRef]
- Topouzelis, K.N. Oil Spill Detection by SAR Images: Dark Formation Detection, Feature Extraction and Classification Algorithms. Sensors 2008, 8, 6642–6659. [Google Scholar] [CrossRef]
- 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]
- Cai, Y.; Chen, L.; Zhuang, X.; Zhang, B. Automated marine oil spill detection algorithm based on single-image generative adversarial network and YOLOv8 under small samples. Mar. Pollut. Bull. 2024, 203, 116475. [Google Scholar] [CrossRef]
- Wang, Y.; Yang, H.; Gao, L.; Wang, M.; Wang, L. Research on target detection algorithm for sea surface oil spill recognition in SAR image on YOLOS—Taking improved YOLOv8 as an example. IAENG Int. J. Comput. Sci. 2025, 52, 4952–4962. [Google Scholar]
- Aggarwal, P.; Gangwar, P.; Verma, T.; Jindal, S.; Mohapatra, A.K.; Gupta, A. Experimental evaluation and validation of deep learning-based approach for oil spill detection in sea. Int. J. Remote Sens. 2025, 46, 7639–7655. [Google Scholar] [CrossRef]
- Sudani, A.A.I.; Suhail, A.A.G. ResNet-OSD: An optimized hybrid deep learning framework for oil spill detection in coastal drone imagery. Vis. Comput. 2026, 42, 165. [Google Scholar] [CrossRef]
- Dong, X.; Li, J.; Li, B.; Jin, Y.; Miao, S. Marine oil spill detection from low-quality SAR remote sensing images. J. Mar. Sci. Eng. 2023, 11, 1552. [Google Scholar] [CrossRef]
- Girshick, R.; Donahue, J.; Darrell, T.; Malik, J. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA, 23–28 June 2014; pp. 580–587. [Google Scholar] [CrossRef]
- Yekeen, S.T.; Balogun, A.L. Automated marine oil spill detection using deep learning instance segmentation model. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2020, 43, 1271–1276. [Google Scholar] [CrossRef]
- Xu, J.; Huang, Y.; Yan, J.; Guo, Z.; Li, B.; Dong, H.; Liu, P. Marine Radar Oil Spill Monitoring Method Based on YOLOv11 and Improved NGO Algorithm. Remote Sens. 2025, 17, 3922. [Google Scholar] [CrossRef]
- He, L.; Zhou, Y.; Yang, H.; Su, L.; Ma, J. A Deep Learning-Based Method for Marine Oil Spill Detection and Its Application in UAV Imagery. Mar. Pollut. Bull. 2026, 222, 118889. [Google Scholar] [CrossRef] [PubMed]
- Shi, J.; Jiao, T.; Ames, D.P.; Chen, Y.; Xie, Z. Improved Lightweight Marine Oil Spill Detection Using the YOLOv8 Algorithm. Appl. Sci. 2026, 16, 780. [Google Scholar] [CrossRef]
- Cai, Y.; Su, J.; Song, J.; Xu, D.; Zhang, L.; Shen, G. LRA-UNet: A Lightweight Residual Attention Network for SAR Marine Oil Spill Detection. J. Mar. Sci. Eng. 2025, 13, 1161. [Google Scholar] [CrossRef]














| Environment Configuration | Version |
|---|---|
| CPU | 16 vCPU Intel(R) Xeon(R) Gold 6430 (Intel Corporation, Santa Clara, CA, USA) |
| GPU memory | 24 GB |
| GPU | NVIDIA GeForce RTX 4090 (NVIDIA Corporation, Santa Clara, CA, USA) |
| Python | 3.9.0 |
| PyCharm | 2024.1 |
| PyTorch | 2.0.0 |
| Operating system | Windows 11 |
| Name | Box (P) | R | mAP50 | mAP50-95 |
|---|---|---|---|---|
| YOLOv8m model without Mosaic image augmentation | 0.921 | 0.785 | 0.854 | 0.620 |
| YOLOv8m model with Mosaic image augmentation | 0.953 | 0.847 | 0.892 | 0.656 |
| Name | CCFM | GSConv | SENetV2 | Box (P) | R | mAP50 | mAP50-95 | Parameter (M) | FLOPs (G) |
|---|---|---|---|---|---|---|---|---|---|
| YOLOv8m | 0.953 | 0.847 | 0.892 | 0.656 | 25.84 | 78.7 | |||
| √ | 0.971 | 0.847 | 0.895 | 0.656 | 17.14 | 64.4 | |||
| √ | 0.977 | 0.842 | 0.903 | 0.703 | 23.62 | 74.1 | |||
| √ | 0.962 | 0.847 | 0.908 | 0.692 | 25.97 | 78.8 | |||
| √ | √ | 0.979 | 0.828 | 0.903 | 0.705 | 15.29 | 59.2 | ||
| √ | √ | 0.977 | 0.847 | 0.903 | 0.689 | 15.29 | 59.2 | ||
| √ | √ | 0.960 | 0.847 | 0.909 | 0.722 | 23.74 | 73.9 | ||
| √ | √ | √ | 0.981 | 0.847 | 0.912 | 0.733 | 21.69 | 68.8 |
| Name | Box (P) | R | mAP50 | mAP50-95 | Parameter (M) | FLOPs (G) |
|---|---|---|---|---|---|---|
| YOLOv5m | 0.957 | 0.799 | 0.870 | 0.609 | 20.87 | 48.2 |
| YOLOv8m | 0.953 | 0.847 | 0.892 | 0.656 | 25.84 | 78.7 |
| SSD | 0.846 | 0.844 | 0.724 | 0.406 | 23.74 | 273.6 |
| FasterRCNN | 0.644 | 0.798 | 0.785 | 0.501 | 28.29 | 896.29 |
| YOLOv9m | 0.889 | 0.823 | 0.867 | 0.607 | 11.71 | 46.8 |
| YOLOv11m | 0.918 | 0.842 | 0.896 | 0.643 | 20.03 | 67.6 |
| YOLOv12m | 0.975 | 0.818 | 0.889 | 0.630 | 19.58 | 59.5 |
| YOLOv26m | 0.896 | 0.783 | 0.844 | 0.588 | 20.35 | 67.8 |
| Ours | 0.981 | 0.847 | 0.912 | 0.733 | 21.69 | 68.8 |
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
Wang, Q.; Lu, J.; Yang, B.; Jiao, C.; Yue, T.; Song, B.; Jiang, J.; Zhou, G.; Li, J. YOLOv8m-CGSE: An Improved Lightweight YOLOv8m for Marine Oil Spill Detection. J. Mar. Sci. Eng. 2026, 14, 1010. https://doi.org/10.3390/jmse14111010
Wang Q, Lu J, Yang B, Jiao C, Yue T, Song B, Jiang J, Zhou G, Li J. YOLOv8m-CGSE: An Improved Lightweight YOLOv8m for Marine Oil Spill Detection. Journal of Marine Science and Engineering. 2026; 14(11):1010. https://doi.org/10.3390/jmse14111010
Chicago/Turabian StyleWang, Qingyang, Junjie Lu, Bin Yang, Chen Jiao, Tao Yue, Bo Song, Jianwu Jiang, Guoqing Zhou, and Jingwen Li. 2026. "YOLOv8m-CGSE: An Improved Lightweight YOLOv8m for Marine Oil Spill Detection" Journal of Marine Science and Engineering 14, no. 11: 1010. https://doi.org/10.3390/jmse14111010
APA StyleWang, Q., Lu, J., Yang, B., Jiao, C., Yue, T., Song, B., Jiang, J., Zhou, G., & Li, J. (2026). YOLOv8m-CGSE: An Improved Lightweight YOLOv8m for Marine Oil Spill Detection. Journal of Marine Science and Engineering, 14(11), 1010. https://doi.org/10.3390/jmse14111010

