基于改进YOLOv13的小目标检测研究
Research on Small Object Detection Based on Improved YOLOv13
DOI: 10.12677/hjdm.2026.162003, PDF,   
作者: 范西程, 李征宇:沈阳建筑大学计算机科学与工程学院,辽宁 沈阳
关键词: 目标检测YOLOv13CG-C3K2损失函数注意力机制Object Detection YOLOv13 CG-C3K2 Loss Function Attention Mechanism
摘要: 针对图像中小目标分布密集、易发生重叠且受背景干扰,以及类别不平衡导致检测性能下降等问题,文章提出了一种基于改进YOLOv13的目标检测算法。首先,在骨干网络和颈部网络中,引入上下文引导块CGblock模块并替换所有C3K2模块,形成CG-C3K2模块,使检测更聚焦小目标区域,自适应地增强关键信息的表达能力,克制感受野受限问题,加强对小目标的特征增强;其次,在颈部结构中融合通道–空间协同注意力机制(Channel-Spatial Collaborative Attention Mechanism, CSCAM),使特征融合过程更加聚焦于有效目标区域,提升对小目标和密集目标的检测效果;最后,采用改进的Wise-PIoU复合损失函数替代原YOLOv13模型中的损失设计,使得小目标能够更好地回归到真实标注框,有效提高了训练稳定性与检测精度。基于VOC2007/2012数据集的实验结果表明,所提出的改进算法较原始YOLOv13模型的mAP@0.5提升了6.6%,精确率提升了4.7%,召回率提升了5.8%。研究结果验证了改进的YOLOv13算法在复杂场景下对小目标的检测性能得到了有效提升。
Abstract: To address the challenges of dense small object distribution, severe occlusion, background interference, and category imbalance that degrade detection performance, this paper proposes an improved YOLOv13-based object detection algorithm. First, the Contextual Guided Block (CGblock) is introduced into both the backbone and neck networks, replacing all C3K2 modules to form CG-C3K2 modules, which adaptively enhance the representation of critical small-object regions, mitigate receptive field limitations, and strengthen feature expression for small targets. Second, a Channel-Spatial Collaborative Attention Mechanism (CSCAM) is integrated into the neck structure to focus feature fusion on effective target areas, thereby improving detection accuracy for small and densely packed objects. Finally, an improved Wise-PIoU composite loss function replaces the original loss design in YOLOv13, enabling more accurate regression of small objects to ground truth boxes and enhancing both training stability and detection precision. Experimental results on the VOC2007/VOC2012 datasets demonstrate that the proposed algorithm achieves a 6.6% increase in mAP@0.5, along with 4.7% and 5.8% improvements in precision and recall, respectively, compared to the original YOLOv13 model. The results validate the effectiveness of the improved algorithm in enhancing small-object detection performance in complex scenarios.
文章引用:范西程, 李征宇. 基于改进YOLOv13的小目标检测研究[J]. 数据挖掘, 2026, 16(2): 22-33. https://doi.org/10.12677/hjdm.2026.162003

参考文献

[1] Zhao, Z., Zheng, P., Xu, S. and Wu, X. (2019) Object Detection with Deep Learning: A Review. IEEE Transactions on Neural Networks and Learning Systems, 30, 3212-3232. [Google Scholar] [CrossRef] [PubMed]
[2] 张阳婷, 黄德启, 王东伟, 等. 基于深度学习的目标检测算法研究与应用综述[J]. 计算机工程与应用, 2023, 59(18): 1-13.
[3] Gao, S. and Liu, H. (2022) Retinanet-Based Compact Polarization SAR Ship Detection. IEEE Journal on Miniaturization for Air and Space Systems, 3, 146-152. [Google Scholar] [CrossRef
[4] Girshick, R. (2015) Fast R-CNN. 2015 IEEE International Conference on Computer Vision (ICCV), Santiago, 7-13 December 2015, 1440-1448. [Google Scholar] [CrossRef
[5] Ren, S., He, K., Girshick, R. and Sun, J. (2017) Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39, 1137-1149. [Google Scholar] [CrossRef] [PubMed]
[6] Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C., et al. (2016) SSD: Single Shot Multibox Detector. In: Leibe, B., et al., Eds., Computer VisionECCV 2016, Springer International Publishing, 21-37. [Google Scholar] [CrossRef
[7] Wang, C., Bochkovskiy, A. and Liao, H.M. (2023) YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors. 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, 18-22 June 2023, 7464-7475. [Google Scholar] [CrossRef
[8] Lin, T.Y., Goyal, P., Girshick, R., et al. (2017) Focal Loss for Dense Object Detection. Proceedings of the IEEE International Conference on Computer Vision, Venice, 22-29 October 2017, 2980-2988.
https://arxiv.org/abs/1708.02002v2
[9] Duan, K., Bai, S., Xie, L., Qi, H., Huang, Q. and Tian, Q. (2019) CenterNet: Keypoint Triplets for Object Detection. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, 27-28 October 2019, 6569-6578. [Google Scholar] [CrossRef
[10] Zhang, S., Chi, C., Yao, Y., et al. (2020) Bridging the Gap between Anchor-Based and Anchor-Free Detection via Adaptive Training Sample Selection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, 13-19 June 2020, 9759-9768.
https://arxiv.org/abs/1912.02424
[11] Zhu, X., Su, W., Lu, L., et al. (2020) Deformable DETR: Deformable Transformers for End-to-End Object Detection. 9th International Conference on Learning Representations, ICLR 2021, 3-7 May 2021.
https://arxiv.org/abs/2010.04159
[12] Zhao, Y., Lv, W., Xu, S., Wei, J., Wang, G., Dang, Q., et al. (2024) DETRs Beat YOLOs on Real-Time Object Detection. 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, 16-22 June 2024, 16965-16974. [Google Scholar] [CrossRef
[13] Chen, H., Chen, K., Ding, G., Han, J., Lin, Z., Liu, L., et al. (2024) YOLOv10: Real-Time End-to-End Object Detection. Advances in Neural Information Processing Systems 37, Vancouver, 10-15 December 2024, 107984-108011. [Google Scholar] [CrossRef
[14] Lei, M., Li, S., Wu, Y., et al. (2025) YOLOv13: Real-Time Object Detection with Hypergraph-Enhanced Adaptive Visual Perception.
https://arxiv.org/abs/2506.17733
[15] Tong, Z., Chen, Y., Xu, Z., et al. (2023) Wise-IoU: Bounding Box Regression Loss with Dynamic Focusing Mechanism.
https://arxiv.org/abs/2301.10051
[16] Everingham, M., Van Gool, L., Williams, C.K.I., Winn, J. and Zisserman, A. (2009) The PASCAL Visual Object Classes (VOC) Challenge. International Journal of Computer Vision, 88, 303-338. [Google Scholar] [CrossRef
[17] Khanam, R. and Hussain, M. (2024) What Is YOLOv5: A Deep Look into the Internal Features of the Popular Object Detector.
https://arxiv.org/abs/2407.20892
[18] Li, C., Li, L., Jiang, H., et al. (2022) YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications.
https://arxiv.org/abs/2209.02976
[19] Reis, D., Kupec, J., Hong, J., et al. (2023) Real-Time Flying Object Detection with YOLOv8.
https://arxiv.org/abs/2305.09972