Skip to main content
QUICK REVIEW

[Paper Review] Light-YOLOv5: A Lightweight Algorithm for Improved YOLOv5 in Complex Fire Scenarios

Hao Xu, Bo Li|arXiv (Cornell University)|Aug 29, 2022
Fire Detection and Safety SystemsEngineering8 citations
TL;DR

Light-YOLOv5 proposes a lightweight, high-accuracy YOLOv5-based fire detection model optimized for complex fire scenarios. By replacing C3 modules with a separable vision transformer (SepViT), integrating a light BiFPN, applying global attention mechanism (GAM), and using Mish activation with SIoU loss, it achieves 3.3% higher mAP, 27.1% fewer parameters, and 19.1% lower FLOPs, reaching 91.1 FPS in real-time inference.

ABSTRACT

Fire-detection technology is of great importance for successful fire-prevention measures. Image-based fire detection is one effective method. At present, object-detection algorithms are deficient in performing detection speed and accuracy tasks when they are applied in complex fire scenarios. In this study, a lightweight fire-detection algorithm, Light-YOLOv5 (You Only Look Once version five), is presented. First, a separable vision transformer (SepViT) block is used to replace several C3 modules in the final layer of a backbone network to enhance both the contact of the backbone network to global in-formation and the extraction of flame and smoke features; second, a light bidirectional feature pyramid network (Light-BiFPN) is designed to lighten the model while improving the feature extraction and balancing speed and accuracy features during a fire-detection procedure; third, a global attention mechanism (GAM) is fused into the network to cause the model to focus more on the global dimensional features and further improve the detection accuracy of the model; and finally, the Mish activation function and SIoU loss are utilized to simultaneously increase the convergence speed and enhance the accuracy. The experimental results show that compared to the original algorithm, the mean average accuracy (mAP) of Light-YOLOv5 increases by 3.3%, the number of parameters decreases by 27.1%, and the floating point operations (FLOPs) decrease by 19.1%. The detection speed reaches 91.1 FPS, which can detect targets in complex fire scenarios in real time.

Motivation & Objective

  • To address the limitations of YOLOv5 in complex fire scenarios, where flame and smoke detection is hindered by low accuracy and high computational cost.
  • To improve feature extraction of flame and smoke by enhancing global context awareness in the backbone network.
  • To balance detection speed and accuracy through a lightweight, efficient feature fusion mechanism.
  • To increase model convergence speed and detection accuracy via advanced activation and loss functions.
  • To achieve real-time, lightweight, and accurate fire detection suitable for deployment in resource-constrained environments.

Proposed method

  • Replacing multiple C3 modules in the YOLOv5 backbone with a separable vision transformer (SepViT) block to improve global feature representation and capture long-range dependencies in flame and smoke patterns.
  • Designing a light bidirectional feature pyramid network (Light-BiFPN) to enhance feature fusion efficiency while reducing model complexity.
  • Integrating a global attention mechanism (GAM) to emphasize important global features and improve detection accuracy.
  • Employing the Mish activation function to accelerate convergence during training and improve model learning capacity.
  • Applying the SIoU loss function to enhance localization accuracy and robustness in complex fire scenes.
  • Optimizing the overall architecture to reduce parameters and FLOPs without sacrificing detection performance.

Experimental results

Research questions

  • RQ1Can a separable vision transformer block improve global feature representation in YOLOv5 for better detection of flame and smoke in complex fire scenes?
  • RQ2How can a lightweight feature pyramid network enhance feature fusion while maintaining high inference speed?
  • RQ3To what extent does integrating a global attention mechanism improve detection accuracy in fire-detection tasks?
  • RQ4Does combining Mish activation and SIoU loss lead to faster convergence and higher mAP in fire detection?
  • RQ5Can the overall model achieve real-time inference (≥90 FPS) with significantly reduced FLOPs and parameters while maintaining high accuracy?

Key findings

  • Light-YOLOv5 achieves a 3.3% improvement in mean average precision (mAP) compared to the original YOLOv5.
  • The model reduces the number of parameters by 27.1% compared to the baseline YOLOv5.
  • Floating-point operations (FLOPs) are reduced by 19.1%, indicating improved computational efficiency.
  • The model attains a real-time inference speed of 91.1 FPS, suitable for dynamic fire detection applications.
  • The integration of SepViT, Light-BiFPN, GAM, Mish, and SIoU leads to a robust and efficient detection system for complex fire scenarios.
  • The proposed architecture maintains high accuracy while significantly reducing model size and computational cost, enabling deployment on edge devices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.