中国安全科学学报 ›› 2023, Vol. 33 ›› Issue (10): 214-223.doi: 10.16265/j.cnki.issn1003-3033.2023.10.2424

• 公共安全 • 上一篇    下一篇

基于改进YOLOv5s算法的隧道初期火灾检测模型

马庆禄(), 孙枭1, 唐小垚1, 鲁佳萍1, 段学锋2   

  1. 1 重庆交通大学 交通运输学院,重庆 400074
    2 宁夏交投高速公路管理有限公司,宁夏 银川 750000
  • 收稿日期:2023-04-14 修回日期:2023-07-18 出版日期:2023-10-28
  • 作者简介:

    马庆禄 (1980—),男,陕西渭南人,博士,教授,主要从事智能交通与安全、大数据与智慧城市、智慧公路感知与安全等方面的研究。E-mail:

    段学锋 高级工程师

  • 基金资助:
    国家社会科学基金国家应急管理体系建设研究专项项目(20VYJ023); 宁夏回族自治区交通运输厅科技项目(NJGF20200301)

Optimization method for tunnel initial fire detection based on YOLOv5s algorithm

MA Qinglu(), SUN Xiao1, TANG Xiaoyao1, LU Jiaping1, DUAN Xuefeng2   

  1. 1 School of Traffic and Transportation, Chongqing Jiaotong University, Chongqing 400074, China
    2 Ningxia Jiaotou Expressway Management Co., Ltd., Yinchuan Ningxia 750000, China
  • Received:2023-04-14 Revised:2023-07-18 Published:2023-10-28

摘要:

为提升公路隧道初期火灾的检出率与检测精度,考虑初期烟火特征量小且不易侦测的特点,提出一种基于改进YOLOv5s算法的公路隧道初期火灾检测模型。首先,在YOLOv5s特征检测层并入变压器预测头,在原有3个特征检测头的基础上新增第4个160×160尺度的特征检测头,以增强多尺度识别能力;同时,引入加权双向特征金字塔网络(BiFPN)结构,用于融合高低层火焰和烟雾的语义信息;然后,采用完全交并比(CIoU)替换距离交并比(DIoU),并在置信度损失中采用Focal Loss改进YOLOv5s的损失函数,从而提升新模型整体的训练效果和检测精确度;最后,在真实隧道内开展初期火灾模拟试验,获取50 000幅训练集样本,并结合2022年3月1日江苏镇江观音山隧道真实火灾视频数据,对比分析YOLOv5s-Opt和YOLOv5s算法模型。结果表明:YOLOv5s-Opt对初期火灾的平均检测精度达到90.38%,比YOLOv5s提高2.06%;对于同一段火灾实测视频,YOLOv5s-Opt的检出率比YOLOv5s高出3.63%。YOLOv5s-Opt算法模型更擅长初期火灾小目标的检测和识别,在检测精度和检出率方面更具有优势,检测效果明显,满足实际火灾检测需要。

关键词: YOLOv5s算法, 公路隧道, 初期火灾, 目标检测, 深度学习

Abstract:

To improve the detection rate and accuracy of initial fire in highway tunnel, considering the characteristics of the small amount of initial fireworks and difficult detection, an improved fire detection method based on YOLOv5s was proposed. The "transformer prediction heads" was incorporated into the YOLOv5s feature detection layer, and a fourth 160×160 scale feature detection head was added on the basis of the original three feature detection heads to enhance the multi-scale recognition capability. Meanwhile, the bidirectional feature pyramid bidirectional feature pyramid network(BiFPN)structure was introduced to blend the semantic information of high and low layers of flame and smoke. Complete intersection over union(CIoU) was used to replace distance intersection over union (DIoU), and focal loss was used in confidence loss to improve YOLOv5s loss function, so as to improve the overall training effect and detection accuracy of the new model. The experiment was carried out to simulate the initial fire in a real tunnel, and 50 000 training set samples were obtained. Combined with the video data of the real fire in Guyinshan tunnel in Zhenjiang, Jiangsu province on March 1, 2022, the YOLOv5s-Opt and YOLOv5s algorithm models were compared and analyzed. The results show that the average detection accuracy of YOLOv5s-Opt is 90.38%, which is 2.06% higher than that of YOLOv5s. For the same fire measurement video, the detection rate of YOLOv5s-Opt is 3.63% higher than that of YOLOv5s. The YOLOv5s-Opt algorithm model performs better at the detection and identification of small fire targets in the initial stage, and has advantages in detection accuracy and detection rate, and the detection effect is obvious, which can meet the needs of actual fire detection.

Key words: YOLOv5s algorithm, highway tunnel, initial fire, object detection, deep learning