高级检索

留言板

尊敬的读者、作者、审稿人, 关于本刊的投稿、审稿、编辑和出版的任何问题, 您可以本页添加留言。我们将尽快给您答复。谢谢您的支持!

姓名
邮箱
手机号码
标题
留言内容
验证码

基于少样本学习的森林火灾烟雾检测方法

贾一鸣 张长春 胡春鹤 张军国

贾一鸣, 张长春, 胡春鹤, 张军国. 基于少样本学习的森林火灾烟雾检测方法[J]. 北京林业大学学报. doi: 10.12171/j.1000-1522.20230044
引用本文: 贾一鸣, 张长春, 胡春鹤, 张军国. 基于少样本学习的森林火灾烟雾检测方法[J]. 北京林业大学学报. doi: 10.12171/j.1000-1522.20230044
Jia Yiming, Zhang Changchun, Hu Chunhe, Zhang Junguo. Forest fire smoke detection method based on few-shot learning[J]. Journal of Beijing Forestry University. doi: 10.12171/j.1000-1522.20230044
Citation: Jia Yiming, Zhang Changchun, Hu Chunhe, Zhang Junguo. Forest fire smoke detection method based on few-shot learning[J]. Journal of Beijing Forestry University. doi: 10.12171/j.1000-1522.20230044

基于少样本学习的森林火灾烟雾检测方法

doi: 10.12171/j.1000-1522.20230044
基金项目: 森林防火智能巡检装备项目(TC210H00L/40),中央高校基本科研业务费专项资金资助(BLX202129)。
详细信息
    作者简介:

    贾一鸣。主要研究方向:森林防火。 Email:jiayiming1997@163.com 地址:100083 北京市海淀区清华东路35号北京林业大学工学院

    责任作者:

    胡春鹤,博士,副教授。主要研究方向:机器学习、无人机和智能控制。 Email:huchunhe@bjfu.edu.cn 地址:同上

    张军国,博士,教授。主要研究方向:物联网与无线传感器网络、图像处理以及深度学习。Email:zhangjunguo@bjfu.edu.cn 地址:同上。

  • 中图分类号: TP181;S762.3;TP212

Forest fire smoke detection method based on few-shot learning

  • 摘要:   目的  为解决由于森林火灾烟雾数据集样本量小、样本特征分散、烟雾图像占比小等特点导致的林火烟雾检测模型识别效果差、准确率低等问题,实现快速、准确识别检测森林火灾烟雾。  方法  针对少样本森林火灾烟雾图像数据集的样本特征,本研究提出了一种基于多头注意力机制的森林火灾烟雾图像检测方法。该方法首先在训练阶段采用数据增强方法,扩充训练数据的数量同时降低过拟合风险;然后设计特征提取模块与特征聚合模块,在特征提取模块中引入多头注意力机制并探讨引入的合适位置,使模型更多地关注火灾局部特征,解决烟雾图像少造成的信息缺失问题;在特征聚合模块中使用FPN-PAN模块对图像的深层与浅层语义信息进行特征融合;最后,设置检测头模块输出实验结果。利用测试准确率、召回率、误报率、检测率和F1值等评价指标在少样本公共数据集和自建火灾烟雾少样本数据集上测试本方法的有效性。  结果  在数据增强阶段同时增加mosaic数据增强和多尺度变换,可以得到更好的检测效果。在特征提取模块的第4个卷积模块后面添加1处多头注意力机制的模型性能最好。相较于现有的元学习长短时记忆网络、匹配网络和轻量级目标检测网络等方法,本方法有更好的检测效果,具体表现为准确率达到了98.79%,召回率98.28%,检测率97.33%,误报率仅为6.36%。  结论  与现有的火灾烟雾检测模型相比,本方法具有更好的判别能力和泛化能力。

     

  • 图  1  基于特征学习的森林火灾烟雾检测整体结构

    Figure  1.  Overall structure of forest fire smoke detection based on few-shot learning

    图  2  特征提取网络结构图

    Figure  2.  Feature extraction network structure diagram

    图  3  多头注意力机制

    Figure  3.  Multi-head attention mechanism

    图  4  点积注意力机制(SDPA)示意图

    Figure  4.  Sketch diagram of the dot product attention mechanism

    图  5  特征聚合模块

    Figure  5.  Feature aggregation module

    图  6  自建森林火灾烟雾数据集样本图像

    Figure  6.  Sample images of self-built forest fire smoke dataset

    图  7  烟雾图像Grad-CAM和Guided Grad-CAM可视化结果

    色柱数值代表能量数值,单位为J,颜色越红代表该像素区域对分类结果的重要性越高。The color column value is the energy value, and the unit is J. The redder the color is, the more important the pixel region is to the classification result.

    Figure  7.  Grad-CAM and guided grad-CAM visualizations of smoke images

    图  8  不同注意力机制的准确率

    Figure  8.  Accuracy rates of different attention mechanisms

    表  1  数据增强等不同训练方式实验结果对比

    Table  1.   Comparison of experimental results of different training methods such as data enhancement

    编号
    No.
    图像尺寸
    Image size
    批量大小
    Batch size
    迭代轮数
    Epoch
    随机旋转
    Rotate
    平移
    Shift
    缩放
    Resize
    混合
    Mixup
    马赛克
    Mosaic
    多尺度变换
    Multi-scale
    准确率
    Accuracy rate/%
    召回率
    Recall rate/%
    平均准确率
    Mean average
    precision (mAP)/%
    11280 × 1280325 00096.8196.3196.46
    21280 × 1280325 00096.2697.0796.78
    31280 × 1280325 00096.5197.0096.15
    41280 × 1280325 00096.8297.3197.46
    51280 × 1280325 00097.2397.8698.27
    61280 × 1280325 00098.0097.6697.87
    71280 × 1280325 00098.4398.0298.57
    下载: 导出CSV

    表  2  不同学习网络的性能对比

    Table  2.   Performance comparison of different learning networks

    方法
    Method
    准确率
    Accuracy rate/%
    误报率
    False alarm rate/%
    检测率
    Detection rate/%
    召回率
    Recall rate/%
    F1
    F1-score
    元学习长短时记忆网络
    Meta-learning long and short-term memory networks
    85.3412.9894.5493.1389.23
    匹配网络 Matching Networks80.1615.9689.6287.7583.95
    Faster RCNN92.4611.3393.0593.7693.11
    Yolov596.699.2896.2495.8996.29
    Yolov798.556.4195.6996.7897.81
    多头注意力原型网络
    Multi-head attention-based prototypical network

    98.79

    6.36

    97.33

    98.28

    98.53
    下载: 导出CSV

    表  3  不同添加位置的性能对比

    Table  3.   Performance comparison for different add locations

    添加位置
    Add location
    平均准确率
    Average precision
    rate (mAP)/%
    召回率
    Recall
    rate/%
    准确率
    Accuracy
    rate/%
    Ori_Net93.6991.3595.28
    Multi_head_193.6192.1595.79
    Multi_head_296.2093.9896.06
    Multi_head_396.1095.1297.3
    Multi_head_498.4398.2898.79
    Multi_head_1-295.5693.1897.19
    Multi_head_1-396.8894.4697.52
    Multi_head_1-496.9794.5597.61
    Multi_head_2-396.0694.6497.71
    Multi_head_2-496.2594.8297.90
    Multi_head_3-496.2194.7897.86
    Multi_head_1-2-392.9490.6294.52
    Multi_head_2-3-492.6690.3594.23
    Multi_head_1-2-3-491.3589.0792.90
    下载: 导出CSV

    表  4  不同注意力模块的性能对比

    Table  4.   Performance comparison of different learning networks

    方法
    Method
    准确率
    Accuracy rate/%
    误报率
    False alarm rate/%
    检测率
    Detection rate/%
    召回率
    Recall rate/%
    F1
    F1-score
    CPU推理速度
    CPU speed/ms
    GPU推理速度
    GPU speed/ms
    CBAM95.8415.9395.2387.1591.28989.6
    CTAM96.8213.9495.6391.7394.21969.5
    MHA98.796.3697.3398.2898.53909.3
    下载: 导出CSV
  • [1] 陈小华. 由高被引论文的研究主题看森林防火的科研−以《森林防火》为例[J]. 国家林业和草原局管理干部学院学报, 2022, 21(4): 48−53.

    Chen X H. Scientific research on forest fire prevention from the research themes of highly cited papers: take Forest Fire Prevention as an example[J]. National Academy of Forestry and Grassland Administration Journal, 2022, 21(4): 48−53.
    [2] 刘楠, 钟少波, 朱伟. 国内外森林火灾研究的知识图谱分析[J]. 林业科技通讯, 2023: 1−13.

    Liu N, Zhong S B, Zhu W. Knowledge mapping analysis of domestic and international forest fire research[J]. Forest Science and Technology, 2023: 1−13.
    [3] 祝玉华, 司艺艺, 李智慧. 基于深度学习的烟雾与火灾检测算法综述[J]. 计算机工程与应用, 2022, 58(23): 1−11.

    Zhu Y H, Si Y Y, Li Z H. Overview of smoke and fire detection algorithms based on deep learning[J]. Computer Engineering and Applications, 2022, 58(23): 1−11.
    [4] 肖潇, 孔凡芝, 刘金华. 基于动静态特征的监控视频火灾检测算法[J]. 计算机科学, 2019, 46(6): 284−286.

    Xiao X, Kong F Z, Liu J H. Monitoring video fire detection algorithm based on dynamic characteristics and static characteristics[J]. Computer Science, 2019, 46(6): 284−286.
    [5] Li P, Zhao W D. Image fire detection algorithms based on convolutional neural networks[J]. Case Studies in Thermal Engineering, 2020, 19: 100625. doi: 10.1016/j.csite.2020.100625
    [6] Shahid M, Chien I F, Sarapugdi W, et al. Deep spatial-temporal networks for flame detection[J]. Multimedia Tools and Applications, 2021, 80(28/29): 35297−35318.
    [7] Lee Y, Shim J. False positive decremented research for fire and smoke detection in surveillance camera using spatial and temporal features based on deep learning[J]. Electronics, 2019, 8(10): 1167. doi: 10.3390/electronics8101167
    [8] Liu Z C, Zhang K, Wang C Y, et al. Research on the identification method for the forest fire based on deep learning[J]. Op-tik, 2020, 223: 165491.
    [9] Chen Y Y, Chen K, Bai H, et al. An efficient fire detection algorithm based on multi-scale convolutional neural network[J]. Fire and Materials, 2021(1): 1−12.
    [10] Gu K, Zhang Y, Qiao J. Vision-based monitoring of flare soot[C]//Yan R Q. Transactions on instrumentation and measurement. Tampa: IEEE, 2020: 7136−7145.
    [11] Gu K, Xia Z, Qiao J. Deep dual-channel neural network for image-based smoke detection[C]//Yan R Q. Transactions on multimedia. Tampa: IEEE, 2020: 311−323.
    [12] Gu K, Zhang Y, Qiao J. Ensemble meta-learning for few-shot soot density recognition[C]//Yan R Q. Transactions on industrial informatics. Tampa: IEEE, 2021: 2261−2270.
    [13] Majid S, Alenezi F, Masood S, et al. Attention based CNN model for fire detection and localization in real-world images[J]. Expert Systems with Applications, 2022, 189: 116114. doi: 10.1016/j.eswa.2021.116114
    [14] Li T T, Zhu H W, Hu C H, et al. An attention-based prototypical network for forest fire smoke few-shot detection[J]. Journal of Forestry Research, 2022, 33: 1493−1504. doi: 10.1007/s11676-022-01457-6
    [15] 祝钧桃, 姚光乐, 张葛祥. 深度神经网络的小样本学习综述[J]. 计算机工程与应用, 2021, 57(7): 22−33.

    Zhu J T, Yao G L, Zhang G X. Survey of few shot learning of deep neural network[J]. Computer Engineering and Applications, 2021, 57(7): 22−33.
    [16] 张毓, 高雅月, 常峰源. 小样本条件下基于数据扩充和ResNeSt的雪豹检测[J]. 北京林业大学学报, 2021, 43(10): 89−99.

    Zhang Y, Gao Y Y, Chang F Y. Panthera unica recognition based on data expansion and ResNeSt with few samples[J]. Journal of Beijing Forestry University, 2021, 43(10): 89−99.
    [17] Dimitropoulos K, Barmpoutis P, Grammalidis N. Higher order linear dynamical systems for smoke detection in video surveillance applications[J]. IEEE Transactions on Circuits and Systems for Video Technology, 2017, 27(5): 1143−1154. doi: 10.1109/TCSVT.2016.2527340
    [18] Lee G, Hong S, Cho D. Self-supervised feature enhancement networks for small object detection in noisy images[J]. IEEE Signal Processing Letters, 2021, 28: 1026−1030. doi: 10.1109/LSP.2021.3081041
    [19] 王晓松, 杨刚. 一种融合聚类和分类算法的树木图像多目标优化分割方法[J]. 北京林业大学学报, 2018, 40(12): 124−131.

    Wang X S, Yang G. A multi-objective optimization segmentation method for tree image based on fusion clustering and classification algorithm[J]. Journal of Beijing Forestry University, 2018, 40(12): 124−131.
    [20] Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need[J]. Advances in Neural Information Processing Systems, 2017, 30: 1−15.
    [21] Krstini D, Stipanicev D, Jakovcevi T. Histogram-based smoke segmentation in forest fire detection system[J]. Information Technology & Control, 2009, 38(3): 237−244.
    [22] Russakovsky O, Deng J, Su H, et al. Imagenet large scale visual recognition challenge[J]. International Journal of Computer Vision, 2015, 115(3): 211−252. doi: 10.1007/s11263-015-0816-y
    [23] 崔艳鹏, 王元皓, 胡建伟. 一种改进YOLOv3 的动态小目标检测方法[J]. 西安电子科技大学学报, 2020, 47(3): 1−7.

    Cui Y P, Wang Y H, Hu J W. Detection method for a dynamic small target using the improved YOLOv3[J]. Journal of Xidian University, 2020, 47(3): 1−7.
    [24] 鞠默然, 罗海波, 王仲博, 等. 改进的YOLO V3 算法及其在小目标检测中的应用[J]. 光学学报, 2019, 39(7): 245−252.

    Ju M R, Luo H B, Wang Z B, et al. Improved YOLO V3 algorithm and its application in small target detection[J]. Acta Optica Sinica, 2019, 39(7): 245−252.
    [25] Sun C, Ai Y, Wang S, et al. Mask-guided SSD for small- object detection[J]. Applied Intelligence, 2021, 51(20): 1−12.
    [26] Lian J, Yin Y, Li L, et al. Small object detection in traffic scenes based on attention feature fusion[J]. Sensors, 2021, 21(9): 3031. doi: 10.3390/s21093031
    [27] Selvaraju R R, Cogswell M, Das A. Grad-cam: visual explanations from deep networks via gradient-based localization[J]. International Journal of Computer Vision, 2020, 128: 336−359. doi: 10.1007/s11263-019-01228-7
    [28] Woo S, Park J, Lee J Y, et al. CBAM: convolutional block attention module[C]//Vittorio F, Martial H, Cristian S, et al. Proceedings of the European conference on computer vision. Munich: ECCV, 2018: 3−19.
    [29] Misra D, Nalamada T, Arasanipalai A U, et al. Rotate to attend: convolutional triplet attention module[C]//Vinay P N, Luc V G, Theo G, et al. Winter conference on applications of computer vision. Waikoloa: IEEE, 2021: 3138−3147.
  • 加载中
图(8) / 表(4)
计量
  • 文章访问数:  52
  • HTML全文浏览量:  26
  • PDF下载量:  15
  • 被引次数: 0
出版历程
  • 收稿日期:  2023-03-03
  • 修回日期:  2023-07-24
  • 网络出版日期:  2023-07-31

目录

    /

    返回文章
    返回