Yaermaimaiti Yilihamu, Yajie Liu, Lingfei Xi, Ruohao Wang
{"title":"基于改进YOLOv7的头盔检测算法","authors":"Yaermaimaiti Yilihamu, Yajie Liu, Lingfei Xi, Ruohao Wang","doi":"10.3103/S0146411624701116","DOIUrl":null,"url":null,"abstract":"<p>To address the issues of small target leakage, misdetection, and poor detection effect in helmet-wearing target detection, a small target helmet-wearing detection based on YOLOv7 is designed. Firstly, the space-to-depth (SPD) block is introduced to replace the convolution of the first down-sampling, and all subsequent Max Pooling (MP) structures are replaced with SPD structures, which can better capture the information of different depths in the graphs, and improve the performance of detecting small target helmets. Secondly, the use of ContentAware ReAssembly of Features (CARAFE) for the up-sampling section increases the receptive field, adapts to different types of feature maps, and improves the feature fusion capability; Then, SPPFCSPC is obtained by changing the connection method of SPPCSPC, and the spatial pyramid pooling module GhostSPPFCSPC is built by fusing a Ghost module and an SPPFCSPC module, in which the SPPCSPC module consists of two submodules, the spatial pyramid pooling (SPP) module and the connected spatial pyramid convolution (CSPC) module, which decreases the number of parameters and boosts the network performance in the meantime; Thirdly, the design uses SIoU to optimize the bounding box return loss function, which achieves faster convergence in the training phase, better performance in inference, and improved model accuracy and robustness. To demonstrate that the improved algorithm has better results than the original model with mAP boosted by 5.8%, accuracy boosted by 0.8%, parameter count decreased by 7.08%, and FPS up to 65 f/s.</p>","PeriodicalId":46238,"journal":{"name":"AUTOMATIC CONTROL AND COMPUTER SCIENCES","volume":"58 6","pages":"642 - 655"},"PeriodicalIF":0.6000,"publicationDate":"2025-01-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Helmet Detection Algorithm Based on Improved YOLOv7\",\"authors\":\"Yaermaimaiti Yilihamu, Yajie Liu, Lingfei Xi, Ruohao Wang\",\"doi\":\"10.3103/S0146411624701116\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>To address the issues of small target leakage, misdetection, and poor detection effect in helmet-wearing target detection, a small target helmet-wearing detection based on YOLOv7 is designed. Firstly, the space-to-depth (SPD) block is introduced to replace the convolution of the first down-sampling, and all subsequent Max Pooling (MP) structures are replaced with SPD structures, which can better capture the information of different depths in the graphs, and improve the performance of detecting small target helmets. Secondly, the use of ContentAware ReAssembly of Features (CARAFE) for the up-sampling section increases the receptive field, adapts to different types of feature maps, and improves the feature fusion capability; Then, SPPFCSPC is obtained by changing the connection method of SPPCSPC, and the spatial pyramid pooling module GhostSPPFCSPC is built by fusing a Ghost module and an SPPFCSPC module, in which the SPPCSPC module consists of two submodules, the spatial pyramid pooling (SPP) module and the connected spatial pyramid convolution (CSPC) module, which decreases the number of parameters and boosts the network performance in the meantime; Thirdly, the design uses SIoU to optimize the bounding box return loss function, which achieves faster convergence in the training phase, better performance in inference, and improved model accuracy and robustness. To demonstrate that the improved algorithm has better results than the original model with mAP boosted by 5.8%, accuracy boosted by 0.8%, parameter count decreased by 7.08%, and FPS up to 65 f/s.</p>\",\"PeriodicalId\":46238,\"journal\":{\"name\":\"AUTOMATIC CONTROL AND COMPUTER SCIENCES\",\"volume\":\"58 6\",\"pages\":\"642 - 655\"},\"PeriodicalIF\":0.6000,\"publicationDate\":\"2025-01-17\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"AUTOMATIC CONTROL AND COMPUTER SCIENCES\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://link.springer.com/article/10.3103/S0146411624701116\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q4\",\"JCRName\":\"AUTOMATION & CONTROL SYSTEMS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"AUTOMATIC CONTROL AND COMPUTER SCIENCES","FirstCategoryId":"1085","ListUrlMain":"https://link.springer.com/article/10.3103/S0146411624701116","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"AUTOMATION & CONTROL SYSTEMS","Score":null,"Total":0}
引用次数: 0
摘要
针对头盔目标检测中存在的小目标漏检、误检、检测效果差等问题,设计了基于YOLOv7的头盔小目标检测系统。首先,引入空间到深度(SPD)块取代第一次降采样的卷积,并将后续所有的Max Pooling (MP)结构替换为SPD结构,可以更好地捕获图中不同深度的信息,提高小目标头盔的检测性能。其次,在上采样部分采用CARAFE (ContentAware ReAssembly of Features),增加了接收域,适应了不同类型的特征映射,提高了特征融合能力;然后,通过改变sppfspc的连接方法得到SPPFCSPC,并将Ghost模块与SPPFCSPC模块融合构建空间金字塔池化模块GhostSPPFCSPC,其中SPPCSPC模块由空间金字塔池化(SPP)模块和连通空间金字塔卷积(CSPC)模块两个子模块组成,在减少参数数量的同时提高了网络性能;第三,设计利用SIoU对边界盒返回损失函数进行优化,使训练阶段收敛速度更快,推理性能更好,提高了模型精度和鲁棒性。结果表明,改进后的算法比原模型的mAP提高了5.8%,精度提高了0.8%,参数个数减少了7.08%,FPS达到65 f/s。
Helmet Detection Algorithm Based on Improved YOLOv7
To address the issues of small target leakage, misdetection, and poor detection effect in helmet-wearing target detection, a small target helmet-wearing detection based on YOLOv7 is designed. Firstly, the space-to-depth (SPD) block is introduced to replace the convolution of the first down-sampling, and all subsequent Max Pooling (MP) structures are replaced with SPD structures, which can better capture the information of different depths in the graphs, and improve the performance of detecting small target helmets. Secondly, the use of ContentAware ReAssembly of Features (CARAFE) for the up-sampling section increases the receptive field, adapts to different types of feature maps, and improves the feature fusion capability; Then, SPPFCSPC is obtained by changing the connection method of SPPCSPC, and the spatial pyramid pooling module GhostSPPFCSPC is built by fusing a Ghost module and an SPPFCSPC module, in which the SPPCSPC module consists of two submodules, the spatial pyramid pooling (SPP) module and the connected spatial pyramid convolution (CSPC) module, which decreases the number of parameters and boosts the network performance in the meantime; Thirdly, the design uses SIoU to optimize the bounding box return loss function, which achieves faster convergence in the training phase, better performance in inference, and improved model accuracy and robustness. To demonstrate that the improved algorithm has better results than the original model with mAP boosted by 5.8%, accuracy boosted by 0.8%, parameter count decreased by 7.08%, and FPS up to 65 f/s.
期刊介绍:
Automatic Control and Computer Sciences is a peer reviewed journal that publishes articles on• Control systems, cyber-physical system, real-time systems, robotics, smart sensors, embedded intelligence • Network information technologies, information security, statistical methods of data processing, distributed artificial intelligence, complex systems modeling, knowledge representation, processing and management • Signal and image processing, machine learning, machine perception, computer vision