Masked Event Modeling: Self-Supervised Pretraining for Event Cameras

Simon Klenk, David Bonello, Nikita Araslanov, Lukas Koestler, Daniel Cremers · DOI

Abstract

Masked Event Modeling (MEM) is a novel self-supervised pretraining framework designed for event camera data. By leveraging a Vision Transformer (ViT) to reconstruct masked portions of an event stream, MEM enables neural networks to learn robust representations from unlabeled data. This approach significantly reduces the dependency on manually labeled datasets and achieves state-of-the-art performance across multiple neuromorphic benchmarks, including N-ImageNet and N-Cars.

Introduction

Event cameras offer unique advantages over traditional frame-based sensors, including microsecond-level temporal resolution, high dynamic range, and low power consumption. However, the asynchronous nature of event streams makes manual annotation exceptionally difficult. Consequently, the field has lacked large-scale labeled datasets comparable to ImageNet. While pretraining on RGB images is a common workaround, the significant domain gap between standard intensity frames and event-based data often limits the effectiveness of transferred features. Masked Event Modeling (MEM) addresses this by enabling effective pretraining directly on unlabeled event data.

Methods

The proposed MEM framework addresses the data scarcity challenge through a three-stage self-supervised pipeline.

The three-stage MEM pipeline: dVAE tokenization, masked pretraining, and task-specific finetuning.
  1. Tokenization (dVAE): A discrete Variational Autoencoder (dVAE) is trained to map patches of an event histogram into "visual tokens" from a learned codebook. This stage establishes a discrete vocabulary of event patterns, such as edges and motion polarities.
  2. Pretraining (MEM): A Vision Transformer (ViT) is trained on event histograms where 50% of the patches are randomly masked. The model learns to predict the missing visual tokens, forcing it to capture the underlying spatial and temporal structure of the event data.
  3. Finetuning: The pretrained ViT is subsequently finetuned on specific downstream tasks, such as object classification or semantic segmentation, using limited labeled data.

Experimental Setup

The effectiveness of MEM was evaluated on several prominent event-based datasets:

  • N-ImageNet & N-Caltech101: Neuromorphic conversions of standard image classification datasets.
  • N-Cars: A real-world dataset of urban event recordings.
  • DSEC-Semantic: A dataset for dense semantic segmentation in driving environments.

Results and Key Insights

MEM demonstrates remarkable label efficiency and performance gains over traditional training methods.

Comparison of Top-1 accuracy on N-Caltech101 between MEM pretraining and training from scratch across different labeled data regimes.

Performance Benchmarks

  • N-ImageNet: MEM achieved a top-1 accuracy of 57.89%, outperforming previous event-only methods by nearly 8%.
  • N-Cars: The model reached 98.55% accuracy, effectively halving the error rate of prior state-of-the-art approaches.
  • N-Caltech101: Accuracy improved from 66.94% (training from scratch) to 85.60% with MEM pretraining.

Key Insights

  • Domain-Specific Pretraining: Pretraining directly on event data is superior to using RGB-pretrained weights, especially for real-world datasets like N-Cars where unique noise and temporal dynamics are prevalent.
  • Label Efficiency: MEM acts as a significant force multiplier for small datasets. As shown in Figure 1, with only 10% of labels on N-Caltech101, MEM achieves ~67% accuracy, nearly matching the performance of a scratch-trained model using 100% of the data.
  • Visual Primitives: Analysis of the dVAE codebook reveals that the model naturally learns fundamental visual structures without explicit supervision.

Conclusion and Future Work

Masked Event Modeling provides a powerful paradigm for self-supervised learning in the event-based vision domain. While the current implementation relies on 2D histograms which may "flatten" some temporal precision, it sets a new standard for performance and label efficiency. Future research will explore event-specific architectures, such as sparse or graph neural networks, to more natively process the asynchronous format of event data.

Summary updated

BibTeX
@inproceedings{klenk2024masked,
  author = {Simon Klenk and David Bonello and Nikita Araslanov and Lukas Koestler and Daniel Cremers},
  title = {{Masked Event Modeling: Self-Supervised Pretraining for Event Cameras}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=FLUUsRCLOg},
}
Figure