Zhang X X, Wang Y, Wu S Y, et al. An improved lightweight fire detection algorithm based on cascade sparse query[J]. Opto-Electron Eng, 2023, 50(10): 230216. doi: 10.12086/oee.2023.230216
Citation: Zhang X X, Wang Y, Wu S Y, et al. An improved lightweight fire detection algorithm based on cascade sparse query[J]. Opto-Electron Eng, 2023, 50(10): 230216. doi: 10.12086/oee.2023.230216

An improved lightweight fire detection algorithm based on cascade sparse query

    Fund Project: Project supported by National Natural Science Foundation of China (62076199), Key Research and Development Program of Shaanxi (2022ZDLGY01-03), Open Fund of the State Key Laboratory of Transient Optics and Photonic Technology (SKLST202214), Key Scientific Research Program of Shaanxi Provincial Department of Education (23JY063), and Scientific Research Program of Xi’an (22GXFW0088)
More Information
  • To address the challenges of complex models, slow detection speed, and high false detection rate during fire detection, a lightweight fire detection algorithm is proposed based on cascading sparse query mechanism, called LFNet. In the study, firstly, a lightweight feature extraction module ECDNet is established to extract more fine-grained features in different levels of feature layers by embedding the lightweight attention module ECA (efficient channel attention) in YOLOv5s backbone network, which is used to solve the multi-scale of flame and smoke in fire detection. Secondly, deep feature extraction module FPN+PAN is adopted to improve multi-scale fusion of feature maps at different levels. Finally, the Cascade Sparse Query embedded lightweight cascade sparse query module is applied to improve the detection accuracy of small flames and thin smoke in early fires. Experimental results show that the comprehensive performance of the proposed method in objective indicators such as mAP and Precision is the best on SF-dataset, D-fire and FIRESENSE. Furthermore, the proposed model achieves lower parameters and higher detection accuracy, which can meet the fire detection requirements of challenge scenes.
  • 加载中
  • [1] 肖潇, 孔凡芝, 刘金华. 基于动静态特征的监控视频火灾检测算法[J]. 计算机科学, 2019, 46(S1): 284−286,299.

    Google Scholar

    Xiao X, Kong F Z, Liu J H. Monitoring video fire detection algorithm based on dynamic characteristics and static characteristics[J]. Comput Sci, 2019, 46(S1): 284−286,299.

    Google Scholar

    [2] Çelik T, Demirel H. Fire detection in video sequences using a generic color model[J]. Fire Saf J, 2009, 44(2): 147−158. doi: 10.1016/j.firesaf.2008.05.005

    CrossRef Google Scholar

    [3] Qiu T, Yan Y, Lu G. An autoadaptive edge-detection algorithm for flame and fire image processing[J]. IEEE Trans Instrum Meas, 2012, 61(5): 1486−1493. doi: 10.1109/TIM.2011.2175833

    CrossRef Google Scholar

    [4] 邵婧, 王冠香, 郭蔚. 基于视频动态纹理的火灾检测[J]. 中国图象图形学报, 2013, 18(6): 647−653. doi: 10.11834/jig.20130605

    CrossRef Google Scholar

    Shao J, Wang G X, Guo W. Fire detection based on video dynamic texture[J]. J Image Graph, 2013, 18(6): 647−653. doi: 10.11834/jig.20130605

    CrossRef Google Scholar

    [5] Surit S, Chatwiriya W. Forest fire smoke detection in video based on digital image processing approach with static and dynamic characteristic analysis[C]//Proceedings of the 2011 First ACIS/JNU International Conference on Computers, Networks, Systems and Industrial Engineering, 2011: 35–39. https://doi.org/10.1109/CNSI.2011.47.

    Google Scholar

    [6] Zhang Q J, Xu J L, Xu L, et al. Deep convolutional neural networks for forest fire detection[C]//Proceedings of 2016 International Forum on Management, Education and Information Technology Application, 2016: 568–575. https://doi.org/10.2991/ifmeita-16.2016.105.

    Google Scholar

    [7] Dunnings A J, Breckon T P. Experimentally defined convolutional neural network architecture variants for non-temporal real-time fire detection[C]//Proceedings of 2018 25th IEEE International Conference on Image Processing, 2018: 1558–1562. https://doi.org/10.1109/ICIP.2018.8451657.

    Google Scholar

    [8] Sharma J, Granmo O C, Goodwin M, et al. Deep convolutional neural networks for fire detection in images[C]//Proceedings of the 18th International Conference on Engineering Applications of Neural Networks, 2017: 183–193. https://doi.org/10.1007/978-3-319-65172-9_16.

    Google Scholar

    [9] Akhloufi M A, Tokime R B, Elassady H. Wildland fires detection and segmentation using deep learning[J]. Proc SPIE, 2018, 10649: 106490B. doi: 10.1117/12.2304936

    CrossRef Google Scholar

    [10] 任嘉锋, 熊卫华, 吴之昊, 等. 基于改进YOLOv3的火灾检测与识别[J]. 计算机系统应用, 2019, 28(12): 171−176. doi: 10.15888/j.cnki.csa.007184

    CrossRef Google Scholar

    Ren J F, Xiong W H, Wu Z H, et al. Fire detection and identification based on improved YOLOv3[J]. Comput Syst Appl, 2019, 28(12): 171−176. doi: 10.15888/j.cnki.csa.007184

    CrossRef Google Scholar

    [11] 缪伟志, 陆兆纳, 王俊龙, 等. 基于视觉的火灾检测研究[J]. 森林工程, 2022, 38(1): 86−92,100. doi: 10.16270/j.cnki.slgc.2022.01.007

    CrossRef Google Scholar

    Miao W Z, Lu Z N, Wang J L, et al. Fire detection research based on vision[J]. For Eng, 2022, 38(1): 86−92,100. doi: 10.16270/j.cnki.slgc.2022.01.007

    CrossRef Google Scholar

    [12] 刘凯, 魏艳秀, 许京港, 等. 基于计算机视觉的森林火灾识别算法设计[J]. 森林工程, 2018, 34(4): 89−95. doi: 10.3969/j.issn.1006-8023.2018.04.015

    CrossRef Google Scholar

    Liu K, Wei Y X, Xu J G, et al. Design of forest fire identification algorithm based on computer vision[J]. For Eng, 2018, 34(4): 89−95. doi: 10.3969/j.issn.1006-8023.2018.04.015

    CrossRef Google Scholar

    [13] 皮骏, 刘宇恒, 李久昊. 基于YOLOv5s的轻量化森林火灾检测算法研究[J]. 图学学报, 2023, 44(1): 26−32. doi: 10.11996/JG.j.2095-302X.2023010026

    CrossRef Google Scholar

    Pi J, Liu Y H, Li J H. Research on lightweight forest fire detection algorithm based on YOLOv5s[J]. J Graph, 2023, 44(1): 26−32. doi: 10.11996/JG.j.2095-302X.2023010026

    CrossRef Google Scholar

    [14] Wang Q L, Wu B G, Zhu P F, et al. ECA-Net: efficient channel attention for deep convolutional neural networks[C]//Proceedings of 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020: 11534–11542. https://doi.org/10.1109/CVPR42600.2020.01155.

    Google Scholar

    [15] Lin T Y, Dollár P, Girshick R, et al. Feature pyramid networks for object detection[C]//Proceedings of 2017 IEEE Conference on Computer Vision and Pattern Recognition, 2017: 2117–2125. https://doi.org/10.1109/CVPR.2017.106.

    Google Scholar

    [16] Wang W H, Xie E Z, Song X G, et al. Efficient and accurate arbitrary-shaped text detection with pixel aggregation network[C]//Proceedings of 2019 IEEE/CVF International Conference on Computer Vision, 2019: 8440–8449. https://doi.org/10.1109/ICCV.2019.00853.

    Google Scholar

    [17] Yang C H Y, Huang Z H, Wang N Y. QueryDet: cascaded sparse query for accelerating high-resolution small object detection[C]//Proceedings of 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022: 13668–13677. https://doi.org/10.1109/CVPR52688.2022.01330.

    Google Scholar

    [18] Liu Z, Li J G, Shen Z Q, et al. Learning efficient convolutional networks through network slimming[C]//Proceedings of 2017 IEEE International Conference on Computer Vision, 2017: 2736–2744. https://doi.org/10.1109/ICCV.2017.298.

    Google Scholar

    [19] Celik T, Ozkaramanli H, Demirel H. Fire pixel classification using fuzzy logic and statistical color model[C]//Proceedings of 2007 IEEE International Conference on Acoustics, Speech and Signal Processing, 2007: I-1205–I-1208. https://doi.org/10.1109/ICASSP.2007.366130.

    Google Scholar

    [20] Zhang D Y, Han S Z, Zhao J H, et al. Image based forest fire detection using dynamic characteristics with artificial neural networks[C]//Proceedings of 2009 International Joint Conference on Artificial Intelligence, 2009: 290–293. https://doi.org/10.1109/JCAI.2009.79.

    Google Scholar

    [21] Zhao L, Zhi L Q, Zhao C, et al. Fire-YOLO: a small target object detection method for fire inspection[J]. Sustainability, 2022, 14(9): 4930. doi: 10.3390/su14094930

    CrossRef Google Scholar

    [22] Li S B, Yang Q D, Liu P. An efficient fire detection method based on multiscale feature extraction, implicit deep supervision and channel attention mechanism[J]. IEEE Trans Image Proc, 2020, 29: 8467−8475. doi: 10.1109/TIP.2020.3016431

    CrossRef Google Scholar

    [23] Wang S Y, Zhao J, Ta N, et al. A real-time deep learning forest fire monitoring algorithm based on an improved pruned + KD model[J]. J Real-Time Image Proc, 2021, 18(6): 2319−2329. doi: 10.1007/s11554-021-01124-9

    CrossRef Google Scholar

    [24] Ge Z, Liu S T, Wang F, et al. YOLOX: exceeding YOLO series in 2021[Z]. arXiv: 2107.08430, 2021. https://arxiv.org/abs/2107.08430.

    Google Scholar

    [25] Yu G H, Chang Q Y, Lv W Y, et al. PP-PicoDet: a better real-time object detector on mobile devices[Z]. arXiv: 2111.00902, 2021. https://arxiv.org/abs/2111.00902.

    Google Scholar

    [26] Wang C Y, Bochkovskiy A, Liao H Y M. YOLOv7: trainable bag-of-freebies sets new state-of-the-art for real-time object detectors[C]//Proceedings of 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023: 7464–7475. https://doi.org/10.1109/CVPR52729.2023.00721.

    Google Scholar

    [27] Wang S Y, Chen T, Lv X Y, et al. Forest fire detection based on lightweight Yolo[C]//Proceedings of 2021 33rd Chinese Control and Decision Conference, 2021: 1560–1565. https://doi.org/10.1109/CCDC52312.2021.9601362.

    Google Scholar

    [28] Long X, Deng K P, Wang G Z, et al. PP-YOLO: an effective and efficient implementation of object detector[Z]. arXiv: 2007.12099, 2020. https://arxiv.org/abs/2007.12099.

    Google Scholar

    [29] Xu S L, Wang X X, Lv W Y, et al. PP-YOLOE: an evolved version of YOLO[Z]. arXiv: 2203.16250, 2022. https://arxiv.org/abs/2203.16250.

    Google Scholar

  • The Visual Fire Detection task is designed to detect flames and smoke using visual algorithms from images and videos to achieve fire alarms. In recent years, fire detection algorithms based on convolutional neural networks have greatly improved the detection accuracy of flames and smoke. However, the following questions still exist in the current methods: 1) The generalization ability of the model still needs to be improved; 2) Low fire detection accuracy for small objects; 3) The tradeoff between the detection accuracy and speed fails to achieve. In order to overcome the above problems, a lightweight fire detection algorithm is proposed based on cascading sparse query mechanism, called LFNet. In this study, firstly, a lightweight feature extraction module ECDNet is established to extract more fine-grained features in different levels of feature layers by embedding the lightweight attention module ECA (Efficient Channel Attention) in YOLOv5s backbone network, which is used to solve the multi-scale of flame and smoke in fire detection. Secondly, deep feature extraction module FPN+PAN is adopted to improve multi-scale fusion of feature maps at different levels. Finally, the Cascade Sparse Query embedded lightweight cascade sparse query module is applied to enhance the detection accuracy of small flames and thin smoke in early fires. Furthermore, to further decrease the parameters and calculation of the model, the Slimming pruning algorithm is adopted to change the size of the model. The experimental results on the three fire datasets of SF-dataset, D-fire and FIRESENSE show that the comprehensive performance of the proposed method on objective indicators such as mAP and Recall is best. On the SF-dataset dataset, the LFNet achieves the best mAP and Recall, which are 71.76% and 52.98%, respectively. On the D-fire dataset, the mAP of our method reachs 71.76%, which is far superior to other fire detection methods. On the FIRESENSE dataset, our method achieves 70.61% mAP. Our method effectively alleviates the main problems of current fire detection algorithms, such as low detection accuracy, high missed detection rate for small objects, and difficulty in balancing speed and accuracy. The network trains and builds a fire detection model on self-built datasets and other fire datasets. The experimental results show that on the condition that the model size is suitable and the speed is relatively fast, our method achieves an optimal detection effect on both the self-built fire dataset and the public fire datasets, and will potentially promote the application of deep learning-based fire detection methods in industries.

  • 加载中
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Figures(12)

Tables(4)

Article Metrics

Article views() PDF downloads() Cited by()

Access History

Other Articles By Authors

Article Contents

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint