China Safety Science Journal ›› 2025, Vol. 35 ›› Issue (1): 75-83.doi: 10.16265/j.cnki.issn1003-3033.2025.01.0127

• Safety engineering technology • Previous Articles     Next Articles

A lightweight forest fire detection algorithm based on YOLOv5s

LIU Huilin1(), FANG Qiong1, JIANG Yu1, WEI Huazhang2,**(), WANG Tao3, ZHANG Shuchuan4   

  1. 1 School of Computer Science and Engineering, Anhui University of Science and Technology, Huainan Anhui 232001, China
    2 School of Intelligence and Electrical Engineering, Huainan Vocational Technical College, Huainan Anhui 232001, China
    3 Key Laboratory of Unmanned Emergency Equipment and Digital Reconstruction of Disaster Processes in Anhui Province, Chuzhou College, Chuzhou Anhui 239099, China
    4 School of Safety Science and Engineering, Anhui University of Science and Technology, Huainan Anhui 232001, China
  • Received:2024-08-20 Revised:2024-10-25 Online:2025-01-28 Published:2025-07-28
  • Contact: WEI Huazhang

Abstract:

In order to solve the problems of complex structure, large scale and difficulty in balancing detection accuracy and efficiency of the current forest fire detection algorithm based on deep learning, a lightweight forest fire detection algorithm based on YOLOv5s was proposed. Firstly, an optimized background difference technique was used to eliminate the interference of fire-like objects in the background image, thus reducing the time required for image analysis. Secondly, a group blending strategy was designed to optimize the conventional convolution, and an efficient channel attention (ECA) mechanism and depthwise separable convolution were incorporated into the C3 module of feature extraction, which enhanced the ability of image feature extraction and fusion and at the same time effectively reduces the number of model parameters. Then, a dynamic non-monotonic focusing mechanism was used to optimize the WIOU loss function, reducing the harmful gradients generated by low-quality samples. Finally, sufficient experimental comparisons between the proposed algorithm and other algorithms on the constructed forest fire dataset. The results show that the proposed algorithm shows good generalization in various scenarios, and the detection accuracy of the flame target can reach 86.1%, which is 2.7% higher than that of the standard YOLOv5s, and the detection speed is increased by 11.4%, which effectively reduces the fire false alarm rate and enhances the detection performance of the model.

Key words: YOLOv5s, lightweighting, forest fire detection, depthwise separable convolution, attention, wise intersection over union(WIOU)

CLC Number: