A Recurrent YOLOv8-based framework for Event-Based Object Detection

Diego A. Silva, Kamilya Smagulova, Ahmed Elsheikh, Mohammed E. Fouda, Ahmed M. EltawilarXiv 2024

TL;DR

This paper introduces ReYOLOv8 (Recurrent YOLOv8), a novel framework that adapts the popular frame-based YOLOv8 object detector for event-based cameras by integrating spatiotemporal recurrent blocks. To make event processing efficient, the authors propose a lightweight ternary event encoding method (VTEI) and a novel data augmentation technique called Random Polarity Suppression (RPS). The resulting framework achieves state-of-the-art accuracy on automotive and robotics datasets while maintaining real-time inference speeds and using significantly fewer parameters than competing models.

What Problem Does This Paper Address?

Conventional computer vision relies on frame-based RGB cameras, which capture snapshots of a scene at fixed intervals. While effective in static settings, these sensors struggle with motion blur during high-speed maneuvers and suffer from poor visibility in extreme or rapidly changing lighting conditions.

Event-based cameras offer a compelling alternative. Instead of capturing full frames, they mimic the human eye by asynchronously recording pixel-level changes in illumination ("events"). This results in ultra-low latency, massive high dynamic range (HDR > 120dB), and minimal power consumption. However, because event data arrives as a sparse, irregular stream of coordinates and timestamps, it cannot be directly fed into standard Convolutional Neural Networks (CNNs). Current methods either convert events into dense, memory-heavy representations or use complex architectures (like Transformers) that incur high computational costs.

The authors address this gap by building a highly efficient, real-time event-based object detector that leverages the proven power of YOLOv8 while introducing memory-efficient encoding and temporal modeling.

Methods

The authors introduce three core innovations to bridge the gap between event streams and standard CNN architectures:

  1. Recurrent YOLOv8 (ReYOLOv8) Architecture: The authors inject Convolutional Long Short-Term Memory (ConvLSTM) cells into the standard YOLOv8 backbone. This transforms the static detector into a recurrent network capable of long-range spatiotemporal modeling. The network is trained using Truncated Backpropagation Through Time (T-BPTT) to effectively capture temporal dynamics across event sequences.
Figure 2: Overview of the Recurrent YOLOv8 architecture.
  1. Volume of Ternary Event Images (VTEI): To feed the sparse event stream into the CNN, the authors developed VTEI, a fast and lightweight encoding method. VTEI discretizes the event stream into uniform temporal bins and records only the last event's polarity (+1, -1, or 0 for background) at each pixel location. This ternary representation drastically reduces memory footprint and bandwidth requirements compared to traditional floating-point voxel grids.
Figure 1: Working principle behind the Volume Ternary Event Image encoding.
  1. Random Polarity Suppression (RPS): Event cameras can suffer from polarity imbalances due to asymmetric sensor physics or scene lighting. RPS is a novel data augmentation technique that randomly suppresses all positive or negative events in a training batch. This forces the detector to learn features in a polarity-agnostic manner, mitigating dataset bias.

Datasets

The framework was validated on two prominent, large-scale, real-world event datasets:

  • Prophesee’s Generation 1 Automotive Dataset (GEN1): An automotive-focused dataset recorded in France containing 255k labels across two classes (cars and pedestrians) at a resolution of 304x240.
  • Person Detection for Robotics (PEDRo): A robotics-focused dataset recorded in Italy using a handheld camera, containing 43k labels specifically for person detection at a resolution of 346x260.

Key Insights and Ideas

  • Recurrence over Transformers: While recent top-performing event detectors rely on heavy Transformer backbones, this paper demonstrates that adding recurrence (ConvLSTM) to a highly optimized CNN baseline (YOLOv8) can achieve superior accuracy with a fraction of the parameters.
  • The Power of Ternary Sparsity: By limiting the dense representation to just three values (-1, 0, 1), VTEI allows edge devices to discard background data entirely for compression, significantly lowering the hardware bandwidth required to process high-rate event data.
  • Small Disturbances Matter in Augmentation: The evaluation of RPS revealed that data augmentation in the polarity domain works best as a "small disturbance" (suppression probabilities under 12.5%). Too much suppression degrades training quality, but a light touch significantly improves generalization.

Key Results

GEN1 Dataset (Automotive)

ReYOLOv8 outperformed all comparable state-of-the-art models across different scales:

  • Nano Scale: Achieved a 5% mAP improvement over RVT-T while reducing latency by 0.20ms.
  • Small Scale: Achieved a 2.8% mAP improvement over HMNet-L1 with 27% fewer parameters.
  • Medium Scale: Achieved a 2.5% mAP improvement over SAST-CB.
  • Across all scales, the models maintained real-time processing speeds between 9.2ms and 15.5ms on standard hardware.

PEDRo Dataset (Robotics)

  • ReYOLOv8 models demonstrated massive mAP improvements ranging from 9% to 18% compared to a standard frame-based YOLOv8x baseline.
  • These gains were achieved using models that were 14.5x smaller (Nano) and 3.8x smaller (Medium) in parameter count, alongside an average 1.67x speedup in runtime.

VTEI Encoding Efficiency

  • VTEI proved to be 1.54x faster on average than Stacked Histograms (SHist) and up to 2.17x faster during peak event loads, requiring only 3 bytes per non-zero entry.

Limitations and Future Work

While ReYOLOv8 achieves excellent accuracy and parameter efficiency, the authors note that the inclusion of recurrent cells introduces a slight latency penalty compared to purely non-recurrent, feed-forward networks.

For future work, the authors plan to extend the Random Polarity Suppression analysis to other types of event encodings. They also highlight an open challenge in the field: the need for comprehensive, system-level benchmarks that jointly evaluate the co-design of event encodings and detection models rather than treating them as isolated components.

Summary updated

BibTeX
@misc{silva2024recurrent,
  author = {Diego A. Silva and Kamilya Smagulova and Ahmed Elsheikh and Mohammed E. Fouda and Ahmed M. Eltawil},
  title = {{A Recurrent YOLOv8-based framework for Event-Based Object Detection}},
  year = {2024},
  eprint = {2408.05321},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.05321},
}
Figure