Research on Sea Surface Ship Detection Algorithm Based on Improved YOLOv8n
DOI: https://doi.org/10.62381/I265403
Author(s)
Yuxin Sun
Affiliation(s)
Harbin Engineering University, Heilongjiang, China
Abstract
Aiming at the problems of complex weather interference, small targets easily obscured by noise, target occlusion, and category imbalance in marine object detection for unmanned surface vehicles (USVs), this paper proposes an improved YOLOv8n-based detection algorithm for marine ships. Taking the lightweight YOLOv8n model as the baseline, the algorithm enhances detection performance in complex marine scenarios through three major strategies: reconstructing an adaptive-weight Focal Loss, embedding the CBAM hybrid-domain attention mechanism, and designing the C2f-DA feature extraction module.Experimental results on a self-built marine object dataset and the Singapore Marine Dataset (SMD) show that, compared with the original YOLOv8n, the improved algorithm increases mAP@0.5 by 2.57% and 1.5% respectively. It exhibits significantly superior detection accuracy and generalization ability for small targets, occluded targets, and complex weather conditions over the baseline model and other mainstream lightweight detection algorithms, while maintaining lightweight characteristics suitable for embedded deployment on unmanned surface vehicles.
Keywords
Object Detection; YOLOv8n; Attention Mechanism; Feature Enhancement; Class Imbalance
References
[1] Fan Y B. Underwater Biological Target Detection Based on Deep Learning and Edge Computing [D]. Harbin: Harbin Engineering University, 2024.
[2] Zhu M, Hu G, Zhou H, et al. A ship detection method via redesigned FCOS in large scale SAR images[J]. Remote Sensing, 2022, 14(5): 1153.
[3] He K, Zhang X, Ren S, et al. Spatial pyramid pooling in deep convolutional networks for visual recognition[J]. IEEE transactions on pattern analysis and machine intelligence, 2015, 37(9): 1904-1916.
[4] Gong Y, Zhang Z, Wen J, et al. Small ship detection of SAR images based on optimized feature pyramid and sample augmentation[J]. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2023.
[5] Zhang H, Wang Y, Dayoub F, et al. Varifocalnet: An iou-aware dense object detector[C]. Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2021: 8514-8523.
[6] Shao Z, Lyu H, Yin Y, et al. Multi-scale object detection model for autonomous ship navigation in maritime environment[J]. Journal of Marine Science and Engineering, 2022, 10(11): 1783.
[7] Xu Q, Li Y, Shi Z. LMO-YOLO: A ship detection model for low-resolution optical satellite imagery[J]. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2022, 15: 4117-4131.
[8] Shin H C, Lee K I, Lee C E. Data augmentation method of object detection for deep learning in maritime image[C]. 2020 IEEE International Conference on Big Data and Smart Computing (BigComp). IEEE, 2020: 463-466.
[9] X. Sun, W. Cui, H. Liu, et al. CCCS-YOLO: A Method for Steel Surface Defect Detection[J]. IAENG International Journal of Computer Science, 2026.
[10] J. Chen, S. Zeng, Q. Gao, et al. Underwater Organism Detection Model Integrating Dual-Path Attention Mechanism Based on YOLO-v8n[C]. 2025 IEEE 8th International Conference on Electronic Information and Communication Technology (ICEICT). Weihai, China, 2025: 226-231.
[11] Zhang X Y, Wang M. Research on Improved YOLOv8n Lightweight Scenic Pedestrian Detection Method [J]. Computer Engineering and Applications, 2025, 61(2): 84-96.
[12] J. Niu, et al. LD-YOLO: A Lightweight Dynamic Convolution-Based YOLOv8n Framework for Robust Ship Detection in SAR Imagery[J]. IEEE Geoscience and Remote Sensing Letters, 2026, 23: 1-5.
[13] S. Woo, J. Park, J. Y. Lee, et al. CBAM: Convolutional Block Attention Module[C]. Proceedings of the European Conference on Computer Vision (ECCV). Munich, 2018: 3-19.
[14] Zhong K, Gong Z X, Mei X L, et al. An Improved YOLOv8-Based Face Target Detection Method [P]. Nanjing University of Information Science & Technology, 2025-11-11. CN202510294889.7.
[15] Y. Li, R. Cheng, C. Zhang, et al. Dynamic mosaic algorithm for data augmentation[J]. Mathematical Biosciences and Engineering, 2023, 20(4): 7193-7216.
[16] J. Zhang, H. Su, T. Zhang, et al. Multi-Scale Fusion Underwater Image Enhancement Based on HSV Color Space Equalization[J]. Sensors (Basel), 2025, 25(9): 2850.
[17] H. Alwasiti, M. Z. Yusoff. Motor Imagery Classification for Brain Computer Interface Using Deep Convolutional Neural Networks and Mixup Augmentation[J]. IEEE Open Journal of Engineering in Medicine and Biology, 2022, 3: 171-177.
[18] L. Li, Z. Hou, M. Ma, et al. Spotlight on Small-Scale Ship Detection: Empowering YOLO with Advanced Techniques and a Novel Dataset[C]. M. Cho, I. Laptev, D. Tran, A. Yao, H. Zha (Eds.). Computer Vision – ACCV 2024. Lecture Notes in Computer Science, vol. 15477. Singapore, 2025: 1-18.
[19]Ma Z, Luo Y H, Sun H, et al. SAR Image Small Ship Detection Algorithm Based on Improved YOLOv10s [J]. Modern Electronic Technology, 2026, 49(3): 59-66.
[20] Liu X Z. Research on Small Target Detection Method Based on YOLOv11n [D]. Huainan: Anhui University of Science and Technology, 2025.
[21] Y. Wu, C. Chen, B. Wang. Pedestrian Detection Based on Improved SSD Object Detection Algorithm[C]. International Conference on Networking and Network Applications (NaNA). Urumqi, China, 2022: 550-555.