基金项目:重庆市技术预见与制度创新(cstc-2019jsyj-yzysbA0058);国家重点研发计划(2018YFB1600200);重庆市教育委员会教委科学技术研究计划重点项目(KJZD-K202000704)收稿日期:2021-05-06修回日期:2021-05-20第40卷第4期计算机仿真2023年4月文章编号:1006-9348(2023)04-0120-08嵌入DenseNet的YOLOv4多尺度隧道火灾检测算法马庆禄,唐小垚(重庆交通大学交通运输学院,重庆400074)摘要:为解决现有火灾检测算法在公路隧道的应用较少以及算法检测的准确性和实时性不能满足要求,提出一种改进的YOLOv4隧道火灾检测算法。由于公开的隧道火焰数据集较少,通过模拟火灾形成初期的火焰和网上搜集构建了一个包含3000张隧道火焰图片的数据集,在数据集中添加了500张隧道车灯和500张隧道照明灯用于模型训练,提高泛化性。然后在YOLOv4的特征提取层的CSP结构中嵌入DenseNet,融合多尺度的浅层特征信息,增强特征复用,降低梯度消失的问题和抑制过拟合。再在特征网络检测层中增加了104×104特征检测尺寸,增强隧道火灾形成初期小目标火焰的检测精度。实验结果表明:上述算法检测精度为90.4%,在原YOLOv4网络上提高了5.2%,其检测速度可达0.16s,满足隧道实时检测的要求,并且对小尺寸火焰也有很好的检测效果,对实现隧道火灾初期预警具有重要意义。关键词:隧道火焰检测;深度学习;多尺度检测中图分类号:TP391.9文献标识码:BYolov4Multi-ScaleTunnelFireDetectionAlgorithmEmbeddedInDenseNetMAQing-lu,TANGXiao-yao(SchoolofTrafficandTransportation,ChongqingJiaotongUniversity,Chongqing400074,China)ABSTRACT:Inordertosolvetheproblemthattheexistingfiredetectionalgorithmsarelessusedinhighwaytunnelsandtheaccuracyandreal-timeperformanceofthealgorithmdetectioncannotmeettherequirements,animprovedYOLOv4tunnelfiredetectionalgorithmisproposed.Duetothelackofpublictunnelflamedatasets,adatasetcon-taining3000tunnelflamepictureswasconstructedbysimulatingtheflamesattheinitialstageofthefireformationandonlinecollection,and500tunnellightsand500tunnellightswereaddedtothedataset.Formodeltraining,im-provegeneralization.ThentheDenseNetnetworkwasembeddedintheCSPstructureofthefeatureextractionlayerofYOLOv4,andthemulti-scaleshallowfeatureinformationwasintegratedtoenhancefeaturereuse,reducetheprob-lemofgradientdisappearanceandsuppress...