Real-time detection of coal mine safety helmet based on improved YOLOv8
摘要
The existing coal mine safety helmet detection method has problems such as low detection accuracy, susceptibility to environmental impact, poor real-time performance, and a large number of parameters. So, this paper proposes a Miner Helmet detection algorithm based on YOLO, abbreviated as MH-YOLO. First, the convolutional block attention mechanism (CBAM) is applied to improve the CSPDarkNet53 to 2-Stage FPN (C2f) module of the backbone network and enhance feature-extraction capability. Second, the MaxPooling (MP) module is used to replace the partial subsampling convolution of YOLOv8 to reduce the impact of unbalanced sample categories and improve the recall rate. In addition, a small target detection layer is added to further improve the small target characteristics by fusing shallow network features with deep network features. Finally, the ZoomCat and Scalseq Module (ZAS) feature-extraction module is used to improve the detection accuracy of small and overlapping targets. Training and testing were conducted on the public dataset CUMT-Helmet from China University of Mining and Technology and DsLMF + helmet from Xi’an University of Science and Technology. The proposed MH-YOLO achieves mAP50 values of 92.4% and 97.8%, respectively, surpassing the comparative networks. The detection time is 10.1 ms, enabling accurate and real-time detection of whether coal miners are wearing safety helmets. Source code is released in https://github.com/xgli411/MH-YOLO