欢迎访问《图学学报》 分享到:

图学学报 ›› 2023, Vol. 44 ›› Issue (1): 26-32.DOI: 10.11996/JG.j.2095-302X.2023010026

• 图像处理与计算机视觉 • 上一篇    下一篇

基于YOLOv5s的轻量化森林火灾检测算法研究

皮骏(), 刘宇恒, 李久昊   

  1. 中国民航大学交通科学与工程学院,天津 300300
  • 收稿日期:2022-06-18 修回日期:2022-09-02 出版日期:2023-10-31 发布日期:2023-02-16
  • 作者简介:皮骏(1973-),男,副教授,博士。主要研究方向为模式识别、目标检测及人工智能。E-mail:jpi@cauc.edu.cn

Research on lightweight forest fire detection algorithm based on YOLOv5s

PI Jun(), LIU Yu-heng, LI Jiu-hao   

  1. Institute of Traffic Engineering, Civil Aviation University of China, Tianjin 300300 China
  • Received:2022-06-18 Revised:2022-09-02 Online:2023-10-31 Published:2023-02-16
  • About author:PI Jun (1973-), associate professor, Ph.D. His main research interests cover image recognition and artificial intelligence. E-mail:jpi@cauc.edu.cn

摘要:

针对过去无人机搭载嵌入式设备巡检森林火灾精确率低、适应性差和软硬件限制高等问题,提出一种基于YOLOv5s的轻量化森林火灾目标检测算法。通过将YOLOv5s的骨干网络替换为轻量化网络Shufflenetv2,并以通道重组的思想,让骨干网络对图片信息的提取效率变得更快,在保持网络精度的同时保证检测速度;接着在Backbone与Neck的连接处加入为轻量化网络设计的CA位置注意力模块,可将图片不同的位置信息聚合到通道中,使被检对象关注度得以提高;最后在预测部分使用CIOU损失函数,能够更好的优化矩形框的长宽比和更快加速模型收敛。算法部署在嵌入式系统Jetson Xavier NX上的结果显示,改进后的网络模型大小与对比实验方法相比,最多减少了98%,准确率(Precision)达到92.6%,精确率(AP)达到95.3%,帧率(FPS)提升到132帧每秒,能满足在白天、黑夜或视野良好等情况下对森林火灾的实时性预防与检测,并具有良好的准确率和鲁棒性。

关键词: 目标检测, YOLOv5s, 轻量化, 位置注意力模块, 森林火灾检测

Abstract:

A new algorithm for light-weight forest fire object detection was proposed based on YOLOv5s to address the low accuracy, poor flexibility, and high software and hardware limitations of the previous UAV-embedded equipment for forest fire inspection. The proposed algorithm replaced the backbone of YOLOv5s with the light-weight network Shufflenetv2, employed the idea of channel recombination to improve the speed of the backbone network in picture information extraction, and maintained both high accuracy and fast detection speed. Then, a coordinate attention (CA) positional attention module specially designed for light-weight network was added to the connection between Backbone and Neck, which could aggregate different position information of pictures into the channel, thus improving the attention of the detected object. Finally, the CIOU loss function was utilized in the prediction part to better optimize the ratio of length to width of the rectangular frame and accelerate the model convergence. The results of the algorithm deployed on Jetson Xavier NX show that compared with the Faster-RCNN, SSD, YOLOv4, and YOLOv5s experimental methods, the improved network model size was reduced by up to 98%, increasing the precision to 92.6%, accuracy rate to 95.3%, and FPS to 132 frames/s. It can effectively achieve the real-time prevention and detection of forest fire in daylight, darkness, or good visibility, exhibiting good accuracy and robustness.

Key words: object detection, YOLOv5s, light-weight, positional attention module, forest fire detection

中图分类号: