中国安全科学学报 ›› 2026, Vol. 36 ›› Issue (9): 78-84.doi: 10.16265/j.cnki.issn1003-3033.2026.09.0630

• 安全技术与工程 • 上一篇    下一篇

基于多尺度特征融合与动态注意力的火灾探测算法

李冬1(), 霍一诺2, 杨先志1, 汪锐1, 刘玉智1, 王静舞2,**()   

  1. 1 安徽建工集团股份有限公司, 安徽 合肥 230031
    2 清华大学 合肥公共安全研究院, 安徽 合肥 230601
  • 收稿日期:2026-04-07 修回日期:2026-06-13 出版日期:2026-10-20
  • 通信作者:
    ** 王静舞(1989—),女,河北邢台人,博士,研究员,主要从事消防安全监测预警方面的研究。E-mail: 。
  • 作者简介:

    李 冬 (1983—),男,安徽合肥人,本科,高级工程师,主要从事建筑结构与安全稳定性分析工作。E-mail: 。

    霍一诺 助理研究员;

    杨先志 正高级工程师;

    汪 锐 工程师;

    刘玉智 工程师

Fire detection algorithm based on multi-scale feature fusion and dynamic attention

Li Dong1(), Huo Yinuo2, Yang Xianzhi1, Wang Rui1, Liu Yuzhi1, Wang Jingwu2,**()   

  1. 1 Anhui Construction Engineering Group Co., Ltd., Hefei Anhui 230031, China
    2 Hefei Institute of Public Safety, Tsinghua University, Hefei Anhui 230601, China
  • Received:2026-04-07 Revised:2026-06-13 Published:2026-10-20

摘要:

为降低复杂场景下火灾探测漏报率并提高烟火目标抗干扰识别能力,提出基于深度学习目标检测框架的火灾探测算法。首先,以YOLOv8n为基准网络,在特征金字塔下采样阶段引入小波变换卷积(WTConv)模块,保留火焰边缘和烟雾纹理的高频细节;其次,在特征融合阶段构建多核轻量化Inception模块(PKLBlock),通过多分支卷积与上下文锚点注意力进行多尺度特征融合;然后,在检测特征层纳入非局部注意力(NLAttention)模块,通过动态注意力机制建立烟火目标与周围区域间的长距离依赖关系;最后,采用自建烟火图像数据集开展消融试验,对比分析并评价算法性能。结果表明:该算法的精确率、召回率、F1及交并比阈值为0.5时的平均精度均值(mAP)@0.5分别为93.46%、88.48%、90.90%及92.04%,较YOLOv8n基准算法分别提高5.24%、2.12%、3.62%及3.86%,推理速度为31.2帧/s。该算法能实时检测火焰与烟雾目标,为视频监控场景下火灾早期预警提供算法支持。

关键词: 多尺度特征融合, 动态注意力, 火灾探测, 深度学习, 烟火检测

Abstract:

To reduce the missed detection rate of fire detection in complex scenes and improve the anti-interference ability for flame and smoke targets, a fire detection algorithm based on a deep learning object detection framework was proposed. First, YOLOv8n was used as the baseline network, and a wavelet transform convolution (WTConv) module was introduced in the downsampling stage of the feature pyramid to retain high-frequency details of flame edges and smoke textures. Second, a poly-kernel lightweight Inception block (PKLBlock) was constructed in the feature fusion stage, and multi-scale feature fusion was performed through multi-branch convolution and contextual anchor attention. Third, a non-local attention (NLAttention) module was incorporated into the detection feature layer, and a dynamic attention mechanism was used to establish long-range dependencies between fire and smoke targets and surrounding regions. Finally, ablation and comparative performance evaluation were conducted using a self-built fire and smoke image dataset to evaluate the algorithm's performance. The results show that the algorithm achieves a precision of 93.46%, a recall of 88.48%, an F1 score of 90.90%, and a mean average precision (mAP) of 92.04% at an intersection over union threshold of 0.5 (mAP@0.5). Compared with YOLOv8n, they are increased by 5.24, 2.13, 3.62 and 3.87 percentage points, respectively. The inference speed is 31.2 frames/s. The algorithm can detect flame and smoke targets in real time and provides algorithmic support for early fire warning in video monitoring scenarios.

Key words: multi-scale feature fusion, dynamic attention, fire detection, deep learning, flame and smoke detection

中图分类号: