The existing algorithm for detecting the helmet wear by coal miners has the problem of difficulty in achieving a good balance between detection accuracy and speed. In order to solve the above problem. based on the YOLOv4 model. a lightweight model (M-YOLO) that integrates coordinate attention and multi-scale is proposed and applied in safety helmet wearing detection. https://www.diegojavierfares.com/flash-find-Bushranger-Awning-2-5m-W-x-2-0m-L-2-Year-No-Fuss-Warranty-AW2000-best-save/