Research on Ship Personnel Detection Method in Complex Scenarios Based on Fusion of Attention Mechanism and Multi-Scale Perception
Abstract
1. Introduction
1.1. Research Background
1.2. Literature Review Analysis
2. Methods
2.1. YOLOv8 Algorithm
2.2. Ship Personnel Detection Method
- (1)
- Optimization of Small-Target Detection Head Based on Feature Fusion
- (2)
- Improvement Based on Convolution–Attention Mechanism Fusion
- (3)
- Improvement of Depthwise Separable Convolution
3. Multidimensional Simulation and Result Analysis
3.1. Introduction to Simulation Environment and Dataset
3.2. Analysis of Simulation Results
3.2.1. Convergence Analysis
3.2.2. Comparative Experiments
4. Discussions and Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- European Maritime Safety Agency (EMSA). Annual Overview of Marine Casualties and Incidents 2024; EMSA: Lisbon, Portugal, 2024. [Google Scholar]
- Prasad, D.K.; Rajan, D.; Rachmawati, L.; Rajabally, E.; Quek, C. Video processing from electro-optical sensors for object detection and tracking in a maritime environment: A survey. IEEE Trans. Intell. Transp. Syst. 2017, 18, 1993–2016. [Google Scholar] [CrossRef]
- Zhang, M.; Yao, J.; Zhang, K.; Zhang, Y.; Zhang, H. S-YOLO: A ship detection model based on YOLOv5 in complex scenes. Remote Sens. 2022, 14, 5788. [Google Scholar] [CrossRef]
- Kisantal, M.; Wojna, Z.; Murawski, J.; Naruniec, J.; Cho, K. Augmentation for small object detection. arXiv 2019, arXiv:1902.07296. [Google Scholar]
- Li, C. Research on the Application of Attention Convolutional Neural Network in Pedestrian Attribute Recognition. Master’s Thesis, Xi’an University of Technology, Xi’an, China, 2020. [Google Scholar]
- Dalal, N.; Triggs, B. Histograms of oriented gradients for human detection. In Proceedings of the 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), San Diego, CA, USA, 20–26 June 2005; IEEE: Piscataway, NJ, USA, 2005; Volume 1, pp. 886–893. [Google Scholar]
- Felzenszwalb, P.F.; Girshick, R.B.; McAllester, D.; Ramanan, D. Object detection with discriminatively trained part-based models. IEEE Trans. Pattern Anal. Mach. Intell. 2009, 32, 1627–1645. [Google Scholar] [CrossRef]
- Deng, J.; Dong, W.; Socher, R.; Li, L.-J.; Li, K.; Fei-Fei, L. ImageNet: A large-scale hierarchical image database. In Proceedings of the 2009 IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA, 20–25 June 2009; IEEE: Piscataway, NJ, USA, 2009; pp. 248–255. [Google Scholar]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Adv. Neural Inf. Process. Syst. 2012, 25, 1097–1105. [Google Scholar]
- 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]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 779–788. [Google Scholar]
- Qiang, H. Research on Improved YOLOv8 Algorithm for Small Target Detection. Master’s Thesis, Jilin University, Changchun, China, 2023. [Google Scholar]
- Li, Y.; Xu, H.; Bian, M.; Xiao, J. Attention based CNN-ConvLSTM for pedestrian attribute recognition. Sensors 2020, 20, 811. [Google Scholar] [CrossRef] [PubMed]
- Redmon, J.; Farhadi, A. YOLO9000: Better, faster, stronger. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 7263–7271. [Google Scholar]
- Yang, Z.; Liu, S.; Hu, H.; Wang, L.; Lin, S. RepPoints: Point set representation for object detection. In Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 9657–9666. [Google Scholar]
- Law, H.; Deng, J. CornerNet: Detecting objects as paired keypoints. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; Springer: Cham, Switzerland, 2018; pp. 734–750. [Google Scholar]
- Fang, Y.; Yuan, G.; Sun, Z.; Li, Y. Small object detection based on multi-scale feature fusion and attention mechanism. J. Yunnan Univ. (Nat. Sci. Ed.) 2026, 48, 36–44. [Google Scholar]
- Wang, J.; Yin, X.; Li, G. A real-time lightweight detection algorithm for deck crew and the use of fishing nets based on improved YOLOv5s network. Fishes 2023, 8, 376. [Google Scholar] [CrossRef]
- Li, Z.; Zhang, H.; Gao, D.; Chen, L.; Wang, J. ACD-Net: An Abnormal Crew Detection Network for Complex Ship Scenarios. Sensors 2024, 24, 7288. [Google Scholar] [CrossRef] [PubMed]
- Tan, M.; Pang, R.; Le, Q.V. EfficientDet: Scalable and efficient object detection. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 14–19 June 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 10781–10790. [Google Scholar]
- Murad, M.M.N.; Turgut, B.S.; Ahmed, A.; Turan, O. Camera-Based Intruder Detection and Monitoring of Ship Crew Work Hours. In Proceedings of the Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA, 3–8 January 2025; IEEE: Piscataway, NJ, USA, 2025; pp. 1526–1534. [Google Scholar]
- Zhao, H.; Zhang, H.; Zhao, Y. YOLOv7-Sea: Object detection of maritime UAV images based on improved YOLOv7. In Proceedings of the 2023 IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA, 3–8 January 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 233–238. [Google Scholar]
- Han, Y.; Wang, H.; Renjin, N.; Liu, Y. Multi-ship detection and classification with feature enhancement and lightweight fusion. Sci. Rep. 2025, 15, 38075. [Google Scholar] [CrossRef] [PubMed]
- Wu, W.; Li, X.; Hu, Z.; Wang, J. Ship Detection and Recognition Based on Improved YOLOv7. Comput. Mater. Contin. 2023, 76, 1167–1185. [Google Scholar] [CrossRef]
- Hu, J.; Shen, L.; Sun, G. Squeeze-and-excitation networks. In Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 7132–7141. [Google Scholar]
- 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]
- Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L.-C. MobileNetV2: Inverted residuals and linear bottlenecks. In Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 4510–4520. [Google Scholar]
- Zhang, X.; Zhou, X.; Lin, M.; Sun, J. ShuffleNet: An extremely efficient convolutional neural network for mobile devices. In Proceedings of the 2018 IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 6848–6856. [Google Scholar]
- Zhang, T.; Zhang, X.; Shi, J.; Wei, S. Depthwise separable convolution neural network for high-speed SAR ship detection. Remote Sens. 2019, 11, 2483. [Google Scholar] [CrossRef]
- Poomhiran, L.; Meesad, P.; Nuanmeesri, S. Improving the Recognition Performance of Lip Reading Using the Concatenated Three Sequence Keyframe Image Technique. Eng. Technol. Appl. Sci. Res. 2021, 11, 6921–6926. [Google Scholar] [CrossRef]









| Statistic | Class 1 | Class 2 | Class 3 | Class 4 |
|---|---|---|---|---|
| Weather/ illumination | Normal daylight: 5280 (48.0%) | Shadow/ reflection: 4290 (39.0%) | Low-light/nighttime: 880 (8.0%) | Rain/fog/low-visibility: 550 (5.0%) |
| Occlusion level | No occlusion: 8400 (50.0%) | Partial occlusion: 6552 (39.0%) | Severe occlusion/overlap: 1848 (11.0%) | — |
| Target size | Small: 7392 (44.0%) | Medium: 6216 (37.0%) | Large: 3192 (19.0%) | — |
| Item | Setting |
|---|---|
| Preprocessing | Images were annotated using LabelImg v1.8.6 and converted into YOLO-compatible TXT labels. The dataset was split into training, validation, and test sets at a ratio of 8:1:1. All images were resized to 640 × 640 pixels, and random scaling, horizontal flipping, color perturbation, and Mosaic augmentation were applied during training. |
| Training settings | YOLOv8n was used as the baseline model. The improved model was trained with the same dataset split, input size, hardware/software environment, optimizer, batch size, epochs, and evaluation metrics as the comparison and ablation models. |
| Hyperparameters | The SGD optimizer was used with a batch size of 32, 120 training epochs, an initial learning rate of 0.01, a momentum of 0.937, and a weight decay of 0.0005. During inference, the confidence threshold and NMS IoU threshold were set to 0.25 and 0.45, respectively. |
| Evaluation protocols | All models were evaluated on the same test set. Precision, recall, F1-score, and mAP@0.5 were used as accuracy metrics, while FPS, parameters, FLOPs, GPU memory usage, and single-image inference time were used to evaluate computational efficiency. False detections and missed detections were counted at the annotated personnel-instance level. |
| Environment Component | Configuration Parameter |
|---|---|
| Operating System | Microsoft Windows 11 Professional Edition |
| CPU | AMD Ryzen 7 5800H with Radeon Graphics |
| GPU | GeForce RTX 3070 |
| Video Memory | 8192 MiB |
| Programming Language | Python 3.9 |
| Framework | PyTorch 1.13.1 |
| Model | Average Precision | Average Recall | mAP@0.5 | FPS | F1-Score |
|---|---|---|---|---|---|
| Faster-RCNN | 0.45 | 0.74 | 0.68 | 10.3 | 0.56 |
| YOLOv5 | 0.85 | 0.69 | 0.80 | 25.6 | 0.76 |
| YOLOv8n | 0.90 | 0.74 | 0.85 | 38.4 | 0.81 |
| RT-DETR | 0.91 | 0.75 | 0.88 | 28.7 | 0.82 |
| YOLOv9 | 0.91 | 0.75 | 0.87 | 35.2 | 0.82 |
| YOLOv10 | 0.92 | 0.75 | 0.88 | 41.5 | 0.83 |
| YOLOv11 | 0.92 | 0.76 | 0.89 | 43.2 | 0.83 |
| DINO | 0.92 | 0.76 | 0.89 | 12.8 | 0.83 |
| Gold-YOLO | 0.91 | 0.75 | 0.88 | 31.4 | 0.82 |
| YOLOv8n-impreved | 0.93 | 0.76 | 0.90 | 46.9 | 0.84 |
| Model | Small-Object Head | CAF | DSConv | Precision | Recall | mAP@0.5 | FPS | F1-Score |
|---|---|---|---|---|---|---|---|---|
| YOLOv8n | × | × | × | 0.90 | 0.74 | 0.85 | 38.4 | 0.81 |
| YOLOv8n + Head | √ | × | × | 0.91 | 0.75 | 0.87 | 35.6 | 0.82 |
| YOLOv8n + CAF | × | √ | × | 0.92 | 0.75 | 0.88 | 34.9 | 0.83 |
| YOLOv8n + DSConv | × | × | √ | 0.89 | 0.74 | 0.85 | 50.7 | 0.81 |
| YOLOv8n + Head + CAF | √ | √ | × | 0.93 | 0.76 | 0.89 | 32.8 | 0.84 |
| YOLOv8n + Head + DSConv | √ | × | √ | 0.91 | 0.75 | 0.87 | 48.2 | 0.82 |
| YOLOv8n + CAF + DSConv | × | √ | √ | 0.92 | 0.75 | 0.88 | 47.4 | 0.83 |
| YOLOv8n-improved | √ | √ | √ | 0.93 | 0.76 | 0.90 | 46.9 | 0.84 |
| Scene Condition | Number of Test Images | Precision | Recall | mAP@0.5 | False Detections | Missed Detections |
|---|---|---|---|---|---|---|
| Normal deck scenes | 325 | 0.96 | 0.94 | 0.97 | 9 | 14 |
| Complex background clutter | 286 | 0.94 | 0.91 | 0.95 | 15 | 21 |
| Partial occlusion | 218 | 0.92 | 0.87 | 0.92 | 13 | 28 |
| Distant small-scale targets | 176 | 0.89 | 0.83 | 0.89 | 12 | 31 |
| Shadow/reflection interference | 134 | 0.91 | 0.85 | 0.90 | 11 | 24 |
| Challenging Condition | Test Images | Precision | Recall | mAP@0.5 | False Detections | Missed Detections |
|---|---|---|---|---|---|---|
| Rain | 29 | 0.88 | 0.82 | 0.86 | 5 | 9 |
| Fog/low visibility | 26 | 0.86 | 0.78 | 0.83 | 6 | 11 |
| Nighttime illumination | 88 | 0.87 | 0.80 | 0.84 | 15 | 26 |
| Dense crowds | 74 | 0.85 | 0.77 | 0.82 | 18 | 31 |
| Strong object overlaps | 62 | 0.84 | 0.75 | 0.81 | 19 | 34 |
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
Chen, N.; Qu, M.; Liu, Z.; Bai, C. Research on Ship Personnel Detection Method in Complex Scenarios Based on Fusion of Attention Mechanism and Multi-Scale Perception. J. Mar. Sci. Eng. 2026, 14, 1223. https://doi.org/10.3390/jmse14131223
Chen N, Qu M, Liu Z, Bai C. Research on Ship Personnel Detection Method in Complex Scenarios Based on Fusion of Attention Mechanism and Multi-Scale Perception. Journal of Marine Science and Engineering. 2026; 14(13):1223. https://doi.org/10.3390/jmse14131223
Chicago/Turabian StyleChen, Ning, Mingtao Qu, Zhichen Liu, and Chenzhao Bai. 2026. "Research on Ship Personnel Detection Method in Complex Scenarios Based on Fusion of Attention Mechanism and Multi-Scale Perception" Journal of Marine Science and Engineering 14, no. 13: 1223. https://doi.org/10.3390/jmse14131223
APA StyleChen, N., Qu, M., Liu, Z., & Bai, C. (2026). Research on Ship Personnel Detection Method in Complex Scenarios Based on Fusion of Attention Mechanism and Multi-Scale Perception. Journal of Marine Science and Engineering, 14(13), 1223. https://doi.org/10.3390/jmse14131223

