Masked Event Modeling: Self-Supervised Pretraining for Event Cameras

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

Abstract Event cameras asynchronously capture brightness changes with low latency, high temporal resolution, and high dynamic range. However, annotation of event data is a costly and laborious process, which limits the use of deep learning methods for classification and other semantic tasks with the event modality. To reduce the dependency on labeled event data, we introduce Masked Event Modeling (MEM), a self-supervised framework for events. Our method pretrains a neural network on unlabeled events, which can originate from any event camera recording. Subsequently, the pretrained model is finetuned on a downstream task, leading to a consistent improvement of the task accuracy. For example, our method reaches state-of-the-art classification accuracy across three datasets, N-ImageNet, N-Cars, and N-Caltech101, increasing the top-1 accuracy of previous work by significant margins. When tested on real-world event data, MEM is even superior to supervised RGB-based pretraining. The models pretrained with MEM are also label-efficient and generalize well to the dense task of semantic image segmentation.

Introduction

Event cameras, or neuromorphic sensors, represent a paradigm shift in visual sensing. Unlike traditional cameras that capture frames at fixed intervals, event cameras report per-pixel brightness changes asynchronously. This results in microsecond-level latency, high dynamic range, and low power consumption. Despite these advantages, the adoption of deep learning for event-based vision is hindered by the "data hunger" of modern models. Labeling event data is significantly more challenging than labeling RGB images because the data lacks familiar textures and colors, appearing as sparse, temporal edges. While transferring knowledge from RGB-pretrained models is a common workaround, the substantial domain gap often limits performance. Masked Event Modeling (MEM) addresses this by enabling models to learn directly from raw, unlabeled event recordings.

Methodology

The MEM framework utilizes a three-stage pipeline inspired by the BEiT architecture to learn robust visual representations from event streams.

  1. The Tokenizer (dVAE): A discrete Variational Autoencoder (dVAE) is trained to compress patches of an event histogram into a "codebook" of discrete visual tokens. This process establishes a vocabulary of "event primitives," such as specific edge orientations or motion patterns.
  2. Masked Event Modeling (Pretraining): During pretraining, an event histogram is divided into patches, and 50% of these patches are masked. A Vision Transformer (ViT) is then trained to predict the discrete tokens of the missing patches based on the visible context. This forces the network to learn the underlying spatial and temporal structure of event data.
  3. Finetuning: The pretrained ViT is subsequently finetuned on specific downstream tasks, such as object classification or semantic segmentation, using labeled datasets.
The three-stage MEM pipeline: (I) dVAE training for visual tokens, (II) masked pretraining of a ViT, and (III) task-specific finetuning.

Experimental Evaluation

The researchers evaluated MEM across several benchmarks, including semi-synthetic datasets like N-ImageNet and N-Caltech101, as well as real-world datasets like N-Cars and DSEC-Semantic. A critical finding was the importance of RandAugment; while originally designed for RGB data, its application to event histograms proved vital for effective self-supervised learning.

Results and Discussion

MEM achieved new state-of-the-art results across multiple classification tasks. On N-ImageNet, it reached 57.89% top-1 accuracy, an 8% improvement over previous event-only methods. On the real-world N-Cars dataset, it achieved 98.55%, effectively halving the error rate of prior models.

A standout feature of MEM is its label efficiency. In scenarios where labeled data is scarce, the pretraining provides a significant performance floor. For instance, on N-Caltech101, using only 10% of the labeled data, the MEM-pretrained model achieved nearly 67% accuracy, whereas a model trained from scratch reached only 37%.

Label efficiency comparison: MEM significantly outperforms training from scratch, especially when labeled data is limited.

Furthermore, the study debunked the "RGB Transfer Myth" for real-world event data. While RGB-pretraining is helpful for synthetic datasets that mimic images, it falters on actual sensor data like N-Cars. MEM, by training on the native modality, bridges this gap. Visualizing the dVAE codebook confirms that the model learns fundamental "visual primitives"—wedges, contours, and lines—that serve as the building blocks for event-based understanding.

Conclusion

Masked Event Modeling demonstrates that self-supervised pretraining is a powerful tool for overcoming the labeling bottleneck in event-based vision. By learning from unlabeled data, MEM achieves superior accuracy and remarkable label efficiency. Future work will focus on reducing the computational intensity of pretraining and exploring more "native" architectures, such as sparse or asynchronous neural networks, to better leverage the temporal precision of event sensors.

Summary updated

BibTeX
@inproceedings{klenk2024masked,
  author = {Simon Klenk and David Bonello and Lukas Koestler and Nikita Araslanov 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