陕西科技大学学报2025,Vol.43Issue(1) :152-160.

基于双目视觉和改进YOLOv8n的火灾检测及测距方法

Fire detection and ranging method based on binocular vision and improved YOLOv8n

刘振 董绍江 罗家元 孙世政 潘学娇
陕西科技大学学报2025,Vol.43Issue(1) :152-160.

基于双目视觉和改进YOLOv8n的火灾检测及测距方法

Fire detection and ranging method based on binocular vision and improved YOLOv8n

刘振 1董绍江 1罗家元 1孙世政 1潘学娇1
扫码查看

作者信息

  • 1. 重庆交通大学机电与车辆工程学院,重庆 400074
  • 折叠

摘要

针对火灾检测出现的漏检误检、模型参数量大及定位困难的问题,基于双目视觉和改进YOLOv8n提出了一种轻量化火灾检测及测距方法.通过双目相机拍摄图片,使用改进的检测算法YOLOv8n-AEM和现有的测距算法SGBM进行检测和测距.首先,在主干网络中引入可变核卷积AKConv和EMA注意力机制,通过构建不规则卷积核有效提取火灾的特征;然后,在颈部网络中构建C2f-SCConv模块,通过特征重组降低模型参数,提高检测速度;其次,基于最小点距离改进损失函数,解决火源与光源重叠导致的漏检与误检问题;最后,增加小目标检测头,提高对小火苗的检测能力.实验结果表明,改进后的检测算法P、R、mAP分别为83.6%、76.4%、83.6%,分别提高了 2.5%、3.6%、4.8%;参数量和模型大小分别为2.54 M和5.1 MB,分别降低了 15.3%和15%;测距精度误差不超过2.5%,证明改进的方法能准确完成火灾的检测及测距.

Abstract

Aiming at the problems of missing detection and misdetection,large number of model parameters and difficult location in fire detection,a lightweight fire detection and ran-ging method based on binocular vision and improved YOLOv8n was proposed.Pictures were taken by binocular camera,and the improved detection algorithm YOLOv8n-AEM and the existing ranging algorithm SGBM were used for detection and ranging.Firstly,variable ker-nel convolution AKConv and EMA attention mechanisms are introduced into the backbone network to effectively extract fire features by constructing irregular convolutional nuclei.Then,the C2f-SCConv module is constructed in the neck network to reduce the model param-eters and improve the detection speed through feature recombination.Secondly,the loss func-tion is improved based on the minimum point distance to solve the problem of missing detec-tion and false detection caused by overlapping fire source and light source.Finally,the detec-tion head of small target is added to improve the detection ability of small flame.The experi-mental results show that the improved detection algorithms P,R and mAP are 83.6%,76.4%and 83.6%respectively,which are improved by 2.5%,3.6%and 4.8%respectively.The parameter number and model size were 2.54 M and 5.1 MB,which decreased by 15.3%and 15%,respectively.The accuracy error of ranging is less than 2.5%,which proves that the improved method can accurately complete the fire detection and ranging.

关键词

火灾检测/双目视觉/测距/YOLOv8n/轻量化

Key words

fire detection/binocular vision/distance measurement/YOLOv8n/light weight

引用本文复制引用

出版年

2025
陕西科技大学学报
陕西科技大学

陕西科技大学学报

北大核心
影响因子:0.418
ISSN:2096-398X
段落导航相关论文