Bridging the Gap between Events and Frames through Unsupervised Domain Adaptation

Nico Messikommer, Daniel Gehrig, Mathias Gehrig, Davide Scaramuzza · DOI

TL;DR

This paper introduces a novel Unsupervised Domain Adaptation (UDA) framework that allows neural networks to be trained for event cameras using only labeled single images and unlabeled event data. By splitting event features into shared "content" and sensor-specific "motion" components, the method unlocks massive existing image datasets for event-based vision without requiring paired sensors or video sequences.

Fig. 1: Our approach can teach a network to detect cars in event frames even though it was never told how cars look in the event domain. This unsupervised domain adaption is possible by leveraging labeled grayscale images and unlabeled events. During testing, our approach consists of a simple encoder E and task network T and thus has no computational overhead of first translating events to images.

What Problem Does This Paper Address?

Event cameras (or Dynamic Vision Sensors) are bio-inspired vision sensors that measure asynchronous intensity changes per pixel rather than capturing full image frames at a fixed rate. They offer outstanding properties like high dynamic range (HDR), microsecond-level latency, and no motion blur, making them ideal for robotics and autonomous vehicles operating in high-speed or low-light conditions.

However, because event cameras are a relatively new technology, labeled event datasets are scarce—comprising less than 4% of existing computer vision benchmarks. Annotating event streams manually is incredibly difficult. While deep learning thrives on massive datasets like ImageNet or Waymo, event-based vision has been bottlenecked by this data shortage. Previous attempts to bridge this gap relied on paired sensors (recording frames and events simultaneously) or video-to-event simulators, which limits training data to scarce video datasets. This paper tackles the challenge of transferring knowledge from abundant, labeled single-image datasets to unlabeled event streams.

Methods

The authors propose a one-sided, single-image-to-event translation framework designed for Unsupervised Domain Adaptation (UDA). The core architecture consists of the following components:

  1. Feature Splitting (Disentanglement): Because an event stream contains motion information that a static image lacks, fully aligning their latent spaces is impossible. The authors solve this by using separate encoders ($E_{img}$ and $E_{event}$). The event encoder splits the latent space into domain-invariant content features ($z$) and sensor-specific motion features ($\zeta_{event}$). Adversarial losses (PatchGAN) force the content embeddings of both domains to be indistinguishable.
  2. Generative Event Model & Pseudo-Flow: To guide the translation, a flow decoder ($D_{flow}$) combines the image content embedding with a random event motion embedding to predict a "pseudo-flow" field. This pseudo-flow is mathematically combined with image gradients using a physical event generation model to synthesize realistic "fake events."
  3. Refinement Network ($R_{ref}$): A data-driven refinement module corrects the initial physical event guesses by accounting for overlapping polarities and sensor noise.
  4. Pseudo-Flow Augmentation: To prevent mode collapse during training, the pseudo-flow is augmented with motion distributions typical of the target domain (e.g., camera ego-motion).

During training, a task network ($T$) is jointly trained on the shared content embeddings of both real images and synthesized fake events. Crucially, during inference, the translation and image modules are discarded; only the lightweight event encoder and the task network are required, ensuring zero computational overhead.

Fig. 2: During training, our method uses single-image-to-event translation to transfer a task from the image to the event domain. As there is a large domain gap between events and grayscale images, we use two separate encoders Eimg and Eevent (blue) to process unpaired images and event frames. Shared features z (yellow) and event-specific features ζevent (orange) are extracted from the event frame. Both features are given as input to the event decoder Dflow, which creates a pseudo flow map. This flow map is combined with the image to create clean events using the event generation model. To model sensor noise, the refinement module takes additionally random input feature maps. The task network T takes shared features from the images and the fake events as input and generates task predictions, which are supervised with the image labels. The applied loss constraints are visualized with red arrows. During inference, only the event encoder Eevent and the task network T are required, both are computationally light-weight networks.

Datasets

The framework was evaluated across two primary vision tasks:

  • Classification: Source data from Caltech101 (labeled images) was adapted to N-Caltech101 (unlabeled events).
  • Object Detection: Source data from the Waymo Open Dataset (labeled daylight images) was adapted to the Multi-Vehicle Stereo Event Camera Dataset (MVSEC) and DDD17 (unlabeled driving events).

Key Insights and Ideas

  • The Power of Disentanglement: Trying to force a neural network to map static images directly to event streams fails because of the missing motion dimension. Explicitly separating "what" is in the scene (content) from "how it moves" (motion) is the key to successful cross-modal transfer.
  • Physics-Guided Machine Learning: Purely data-driven GANs struggle to generate structured event data from single images. By embedding the physical equation of an event camera (relating intensity changes to image gradients and optical flow) into the network architecture, the model achieves stable, realistic event synthesis early in the training cycle.
  • Zero-Shot Night Vision: By training on labeled daylight images and adapting to unlabeled night events, the network learns to exploit the HDR properties of event cameras. It successfully detects cars in pitch-black environments where standard frame-based cameras only see black pixels.

Key Results

  • Object Detection (MVSEC): The proposed method achieves 0.54 mAP, outperforming the state-of-the-art unpaired method (E2VID at 0.28 mAP) by a massive 93% relative increase. Remarkably, it even outperforms EventGAN (0.30 mAP), which requires paired data during training.
  • Classification (N-Caltech101): The framework achieves 84.8% accuracy (rising to 93.8% when utilizing the full dataset), outperforming E2VID (82.1%) and VID2E (80.7%).
  • Inference Speed: Because the model bypasses expensive image reconstruction during testing, the object detection pipeline runs in just 27ms on an NVIDIA Quadro RTX 8000, making it highly viable for real-time robotics.
Qualitative results of car detection in nighttime sequences.

Limitations and Future Work

  • Independent Object Motion: The pseudo-flow augmentation currently assumes global scene motion (camera ego-motion). Scenes with multiple independently moving objects (e.g., pedestrians crossing a street while the vehicle is moving) remain a challenge.
  • Unexploited Features at Inference: Currently, the event-specific motion features ($\zeta_{event}$) are only utilized as an auxiliary tool during training for image-to-event translation. The authors note that retaining these features during inference could significantly benefit motion-centric downstream tasks, such as direct optical flow estimation.

Summary updated

BibTeX
@article{messikommer2022bridging,
  author = {Nico Messikommer and Daniel Gehrig and Mathias Gehrig and Davide Scaramuzza},
  title = {{Bridging the Gap between Events and Frames through Unsupervised Domain Adaptation}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2022},
  doi = {10.1109/lra.2022.3145053},
}
Figure