Skip to main content
QUICK REVIEW

[Paper Review] Fast vehicle detection algorithm based on lightweight YOLO7-tiny

Bo Li, YiHua Chen|arXiv (Cornell University)|Apr 12, 2023
Advanced Neural Network ApplicationsComputer Science4 citations
TL;DR

This paper proposes Ghost-YOLOv7, a lightweight vehicle detection model based on YOLOv7-tiny, using Ghost convolutions, a custom Ghost BiFPN, Ghost Decoupled Head, and coordinate attention to reduce computational cost and improve inference speed and accuracy. On PASCAL VOC, it achieves 29.8% lower FLOPs, 37.3% fewer parameters, 35.1% smaller model size, 1.1% higher mAP, and 27 FPS faster inference than YOLOv7-tiny.

ABSTRACT

The swift and precise detection of vehicles plays a significant role in intelligent transportation systems. Current vehicle detection algorithms encounter challenges of high computational complexity, low detection rate, and limited feasibility on mobile devices. To address these issues, this paper proposes a lightweight vehicle detection algorithm based on YOLOv7-tiny (You Only Look Once version seven) called Ghost-YOLOv7. The width of model is scaled to 0.5 and the standard convolution of the backbone network is replaced with Ghost convolution to achieve a lighter network and improve the detection speed; then a self-designed Ghost bi-directional feature pyramid network (Ghost-BiFPN) is embedded into the neck network to enhance feature extraction capability of the algorithm and enriches semantic information; and a Ghost Decouoled Head (GDH) is employed for accurate prediction of vehicle location and species; finally, a coordinate attention mechanism is introduced into the output layer to suppress environmental interference. The WIoU loss function is employed to further enhance the detection accuracy. Ablation experiments results on the PASCAL VOC dataset demonstrate that Ghost-YOLOv7 outperforms the original YOLOv7-tiny model. It achieving a 29.8% reduction in computation, 37.3% reduction in the number of parameters, 35.1% reduction in model weights, 1.1% higher mean average precision (mAP), the detection speed is higher 27FPS compared with the original algorithm. Ghost-YOLOv7 was also compared on KITTI and BIT-vehicle datasets as well, and the results show that this algorithm has the overall best performance.

Motivation & Objective

  • Address the high computational complexity and low feasibility of existing vehicle detection models on mobile devices.
  • Improve detection accuracy and speed for real-time vehicle detection in intelligent transportation systems.
  • Reduce model size and parameter count while maintaining or enhancing mAP performance.
  • Enhance feature representation and robustness to environmental interference in complex scenes.
  • Optimize the model for deployment on resource-constrained edge devices without sacrificing detection quality.

Proposed method

  • Reduced the width multiplier of YOLOv7-tiny to 0.5 to decrease model complexity and improve inference speed.
  • Replaced standard convolutions in the backbone with Ghost convolutions to reduce FLOPs and parameters while preserving feature representation.
  • Designed a Ghost Bi-directional Feature Pyramid Network (Ghost-BiFPN) to enhance multi-scale feature fusion and enrich semantic information.
  • Proposed a Ghost Decoupled Head (GDH) for more accurate localization and classification of vehicles by decoupling prediction heads.
  • Integrated a coordinate attention mechanism into the output layer to suppress background noise and improve attention to relevant vehicle features.
  • Employed the WIoU loss function to improve bounding box regression accuracy and enhance mAP performance.

Experimental results

Research questions

  • RQ1Can a lightweight YOLO-based model achieve faster inference speed and higher accuracy for vehicle detection on mobile and edge devices?
  • RQ2To what extent can Ghost convolutions reduce model size and FLOPs without degrading detection performance?
  • RQ3How effective is the proposed Ghost-BiFPN in improving feature representation and multi-scale detection?
  • RQ4Does the Ghost Decoupled Head outperform standard heads in vehicle localization and classification accuracy?
  • RQ5Can coordinate attention and WIoU loss jointly improve robustness to environmental interference and regression accuracy?

Key findings

  • Ghost-YOLOv7 achieved a 29.8% reduction in FLOPs compared to YOLOv7-tiny on the PASCAL VOC dataset.
  • The model showed a 37.3% reduction in the number of parameters and a 35.1% reduction in model size.
  • It recorded a 1.1% higher mean average precision (mAP) than the original YOLOv7-tiny model.
  • The detection speed increased by 27 FPS, reaching a total of 27 FPS faster inference.
  • On KITTI and BIT-vehicle datasets, Ghost-YOLOv7 demonstrated superior overall performance compared to baseline models.
  • Ablation studies confirmed the effectiveness of each component, including Ghost-BiFPN, GDH, and coordinate attention, in enhancing accuracy and efficiency.

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.