journal article·2026-02-11Open access

Research on Ship Target Detection in Complex Sea Surface Scenarios Based on Improved YOLOv7

Zhuang Cai, Weina Zhou

Applied Sciences· Volume 16· Issue 4

Abstract

Ships target detection plays a crucial role in safeguarding maritime transportation. However, affected by factors such as ocean waves, extreme weather, and target diversity (e.g., large size differences, arbitrary rotation, and occlusion), existing deep learning-based detection methods struggle to achieve a satisfactory balance among accuracy, speed, and model size in complex marine environments. To address this challenge, this paper proposes a real-time ship detection algorithm (C-YOLO) integrating global perception and multi-scale feature enhancement. First, a Transformer encoder is added before the detection head, which suppresses interference from sea clutter and cloud mist occlusion through long-range dependency modeling, improving the detection of small and occluded ships. Second, a Dual-Effect Focused Residual Fusion Module is designed to replace the backbone’s multi-scale pooling structure, combining the advantages of CBAM (background noise suppression) and SK-Net (dynamic scale adaptation) to simultaneously capture features of ships of different sizes. Finally, a CZIoU loss function is proposed, which integrates constraints on angle, center point, vertex, and area to address rotation, deformation, and multi-scale issues in ship detection. Experimental results on the SeaShips 7000 dataset show that the proposed C-YOLO achieves a Recall of 0.842, mAP@50 of 0.797, and mAP@50:95 of 0.552, outperforming mainstream algorithms such as YOLOv7 (Recall = 0.785, mAP@50 = 0.781), YOLOv9s (Recall = 0.819, mAP@50 = 0.755), and SSD (Recall = 0.802, mAP@50 = 0.833). With 76.75 M parameters and an inference speed of 119 FPS, the model maintains efficient real-time performance while ensuring detection accuracy. This method effectively reduces false detection and missed detection rates in complex scenarios such as port monitoring and maritime traffic control, providing a reliable technical solution for intelligent maritime surveillance and safe navigation—with significant practical value for improving maritime transportation efficiency and reducing safety risks.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Neural Network Applications · Maritime Navigation and Safety · Infrared Target Detection Methodologies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Information Engineering, Shanghai Maritime University, Shanghai 201306, China

Funding

National Natural Science Foundation of China

References (36)

Show source-provided references
1. Ship detection based on multi-scale weighted fusion10.1016/j.displa.2023.102448 ↗
2. Arbitrary-oRiented ship detection framework in optical remote-sensing images10.1109/LGRS.2018.2813094 ↗
3. Varghese, R., and Sambath, M. (2024, January 18–19). Yolov8: A novel object detection algorithm with enhanced performance and robustness. Proceedings of the 2024 International Conference on Advances in Data Engineering and Intelligent Computing Systems (ADICS), Chennai, India.10.1109/ADICS58448.2024.10533619 ↗
4. Ren, S., He, K., Girshick, R., and Sun, J. (2024, January 18–19). Faster R-CNN: Towards real-time object detection with region proposal networks. Proceedings of the 2024 International Conference on Advances in Data Engineering and Intelligent Computing Systems (ADICS), Chennai, India.
5. Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., and Zagoruyko, S. (2020). End-to-End object detection with transformers. Lecture Notes in Computer Science, Springer International Publishing.10.1007/978-3-030-58452-8_13 ↗
6. Yang, X., Yan, J., Feng, Z., and He, T. (2021, January 2–9). R3det: Refined single-stage detector with feature refinement for rotating object. Proceedings of the Thirty-Fifth AAAI Conference on Artificial Intelligence (AAAI-21), Virtually.10.1609/aaai.v35i4.16426 ↗
7. Lin, T.Y., Dollár, P., Girshick, R., He, K., Hariharan, B., and Belongie, S. (2017). Feature pyramid networks for object detection. arXiv.10.1109/CVPR.2017.106 ↗
8. Ouyang, D., He, S., Zhang, G., Luo, M., Guo, H., Zhan, J., and Huang, Z. (2023, January 4–10). Efficient multi-scale attention module with cross-spatial learning. Proceedings of the 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Rhodes Island, Greece.10.1109/ICASSP49357.2023.10096516 ↗
9. Ledig, C., Theis, L., Huszár, F., Caballero, J., Cunningham, A., Acosta, A., and Shi, W. (2017, January 21–26). Photo-realistic single image super-resolution using a generative adversarial network. Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.19 ↗
10. Howard, A.G. (2017). Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv.
11. DBW-YOLO: A high-precision sar ship detection method for complex environments10.1109/JSTARS.2024.3376558 ↗
12. Ribeiro, M., Damas, B., and Bernardino, A. (2022). Real-Time Ship Segmentation in Maritime Surveillance Videos Using Automatically Annotated Synthetic Datasets. Sensors, 22.10.3390/s22218090 ↗
13. An anchor-free detection method for ship targets in high-resolution SAR images10.1109/JSTARS.2021.3099483 ↗
14. KFIA-Net: A knowledge fusion and imbalance-aware network for multi-category SAR ship detection
15. Wang, C.Y., Bochkovskiy, A., and Liao, H.Y.M. (2023, January 17–24). YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada.10.1109/CVPR52729.2023.00721 ↗
16. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., and Polosukhin, I. (2017, January 4–9). Attention is all you need. Proceedings of the Advances in Neural Information Processing Systems 30 (NIPS 2017), Long Beach, CA, USA.
17. Woo, S., Park, J., Lee, J.Y., and Kweon, I.S. (2018). Cbam: Convolutional block attention module. Lecture Notes in Computer Science, Springer International Publishing.10.1007/978-3-030-01234-2_1 ↗
18. Hu, J., Shen, L., and Sun, G. (2018, January 18–23). Squeeze-and-excitation networks. Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00745 ↗
19. Li, X., Wang, W., Hu, X., and Yang, J. (2019, January 15–20). Selective Kernel Networks. Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00060 ↗
20. Seaships: A large-scale precisely annotated dataset for ship detection10.1109/TMM.2018.2865686 ↗
21. Siliang, M., and Yong, X. (2023). Mpdiou: A Loss for Efficient and Accurate Bounding Box Regression, Elsevier.
22. Zhang, H., and Zhang, S. (2023). Shape-iou: More accurate metric considering bounding box shape and scale. arXiv.
23. Yu, J., Wu, T., Zhang, X., and Zhang, W. (2022). An efficient lightweight SAR ship target detection network with improved regression loss function and enhanced feature information expression. Sensors, 22.10.3390/s22093447 ↗
24. Zhang, H., Xu, C., and Zhang, S. (2023). Inner-IoU: More effective intersection over union loss with auxiliary bounding box. arXiv.
25. Gevorgyan, Z. (2022). SIoU loss: More powerful learning for bounding box regression. arXiv.
26. Wang, Z., Yuan, G., Zhou, H., Ma, Y., and Ma, Y. (2023). Foreign-object detection in high-voltage transmission line based on improved YOLOv8m. Appl. Sci., 13.10.3390/app132312775 ↗
27. Chen, Z., Chen, K., Lin, W., See, J., Yu, H., Ke, Y., and Yang, C. (2020, January 23–28). Piou loss: Towards accurate oriented object detection in complex environments. Proceedings of the Computer Vision—ECCV 2020: 16th European Conference, Glasgow, UK.10.1007/978-3-030-58558-7_12 ↗
28. Focal and efficient IOU loss for accurate bounding box regression10.1016/j.neucom.2022.07.042 ↗
29. He, J., Erfani, S., Ma, X., Bailey, J., Chi, Y., and Hua, X.S. (2021). α-IoU: A Family of Power Intersection over Union Losses for Bounding Box Regression, Curran Associates.
30. Rezatofighi, H., Tsoi, N., Gwak, J., Sadeghian, A., Reid, I., and Savarese, S. (2019, January 15–20). Generalized intersection over union: A metric and a loss for bounding box regression. Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00075 ↗
31. Luo, X., Cai, Z., Shao, B., and Wang, Y. (2024). Unified-IoU: For High-Quality Object Detection. arXiv.
32. Khanam, R., and Hussain, M.Y. (2024). Yolov11: An overview of the key architectural enhancements. arXiv.
33. Tian, Y., Ye, Q., and Doermann, D. (2025). Yolov12: Attention-centric real-time object detectors. arXiv.
34. Tian, Z., Shen, C., Chen, H., and He, T. (November, January 27). Fcos: Fully convolutional one-stage object detection. Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea.10.1109/ICCV.2019.00972 ↗
35. Feng, C., Zhong, Y., Gao, Y., Scott, M.R., and Huang, W. (2021, January 10–17). Tood: Task-aligned one-stage object detection. Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada.10.1109/ICCV48922.2021.00349 ↗
36. Wang, C.Y., Yeh, I.H., and Liao, H.Y.M. (2024). Yolov9: Learning what you want to learn using programmable gradient information. Lecture Notes in Computer Science, Springer Nature.10.1007/978-3-031-72751-1_1 ↗