NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FPGA-Based Vehicle Detection and Tracking Accelerator

Jiaqi Zhai, Bin Li, Shunsen Lv, Qinglei Zhou2023

TL;DR

This paper presents an FPGA-based accelerator for real-time vehicle detection and tracking, addressing the computational demands of deep learning models like YOLOv3 and DeepSort on edge devices. By employing aggressive model compression techniques and hardware optimizations, they achieve high throughput and energy efficiency, making intelligent transportation systems more feasible.

What Problem Does This Paper Address?

Smart transportation systems rely on accurate and real-time vehicle detection and tracking to manage traffic flow and improve efficiency. While deep learning models like YOLOv3 and DeepSort excel at these tasks, their high computational complexity, large parameter count, and significant memory requirements make them challenging to deploy on resource-constrained edge devices. This leads to a trade-off between accuracy, speed, and power consumption, hindering the widespread adoption of these technologies in real-world applications.

Methods

The authors tackle this challenge through a multi-pronged approach:

  • Model Compression:
    • Dynamic Threshold Structured Pruning: A binary search-based method is used to prune network channels, significantly reducing model size without substantial accuracy loss.
  • Dynamic 16-bit Fixed-Point Quantization: Network parameters (weights, biases, and intermediate results) are quantized to 16-bit fixed-point representation, further reducing memory footprint and computational overhead.
  • Tracking Enhancement:
    • Custom REID Dataset: A new re-identification (REID) dataset, REID-UA-DETRAC, is generated from the UA-DETRAC dataset to train the appearance feature extraction network of the DeepSort algorithm. This custom dataset is tailored for vehicle tracking.
  • Modified Input Size: The input size for the appearance feature extraction network is adjusted to better suit vehicle dimensions in monitoring video streams.
  • Hardware Acceleration:
    • FPGA Implementation: The optimized models are implemented on an FPGA using High-Level Synthesis (HLS) for efficient hardware acceleration.
  • Optimization Techniques: Several hardware optimization strategies are employed, including:
  • Memory interlayer multiplexing to reduce DRAM usage.
  • Parameter rearrangement to optimize memory access patterns.
  • Multichannel transmission for efficient data transfer.
  • Multi-level pipeline optimization to fuse operations and reduce latency.
  • Im2col+GEMM and Winograd algorithms for accelerated convolution operations.
  • Combinatorial logic for max-pooling and upsampling to improve efficiency.

Datasets

  • UA-DETRAC: Used for training the YOLOv3 and YOLOv3-tiny detection models. This dataset is a large-scale collection of vehicle detection and tracking data from real-world scenarios.
  • REID-UA-DETRAC: A newly generated dataset for training the appearance feature extraction network of the DeepSort algorithm. It was created from the UA-DETRAC dataset and specifically curated for vehicle re-identification.

Key Insights and Ideas

  • Aggressive Compression is Key: The paper demonstrates that significant model compression (up to 85% for YOLOv3 and 98.2% for YOLOv3-tiny) is achievable without sacrificing critical performance metrics, making deep learning models viable for edge deployment.
  • FPGA as a Powerful Platform: FPGAs offer a compelling balance of low latency, high parallelism, and power efficiency, making them an ideal choice for accelerating computationally intensive deep learning tasks like vehicle detection.
  • Custom Datasets Matter: Tailoring datasets for specific tasks (like vehicle re-identification) can significantly improve the performance of downstream algorithms like DeepSort.
  • Holistic Optimization: Achieving high performance requires a combination of model compression, efficient algorithm design, and hardware-level optimizations. No single technique is sufficient on its own.

Key Results

  • Model Size Reduction: YOLOv3 model size reduced by 85.7%, and YOLOv3-tiny by 98.2%.
  • Detection Accuracy: [email protected] for YOLOv3 improved by 0.04 after pruning. YOLOv3-tiny's mAP saw a reduction of only 0.026 after aggressive pruning.
  • Throughput: The dual-module parallel accelerator achieved a peak throughput of 168.72 fps for 6-way parallel video stream detection.
  • Energy Efficiency: The proposed FPGA accelerator demonstrated significantly higher energy efficiency compared to CPU and GPU implementations. For example, it achieved a 33x higher energy efficiency ratio than an AMD Ryzen 7 5800H CPU.
  • Tracking Performance: The RE-ID DeepSort algorithm showed improved tracking performance across various metrics (IDF1, IDP, IDR, MOTA) compared to the standard DeepSort, especially in challenging conditions like night scenes.

Limitations and Future Work

  • Limited Operator Support: The current accelerator architecture primarily supports convolution, upsampling, and max-pooling. While it has good support for YOLO series networks, adapting it to other network architectures like YOLOv5 would require further optimization of the focus structure.
  • Generalization of Acceleration Frames: The authors suggest that future research should focus on improving the generalization of acceleration frames to support a wider range of neural network architectures.
  • Neural Architecture Search (NAS): Exploring NAS for designing network structures specifically tailored for particular problems is identified as a promising research direction for network compression.

Summary updated

BibTeX
@misc{zhai2023fpga,
  author = {Jiaqi Zhai and Bin Li and Shunsen Lv and Qinglei Zhou},
  title = {{FPGA-Based Vehicle Detection and Tracking Accelerator}},
  year = {2023},
  doi = {10.3390/s23042208},
}
Figure