PRE-Mamba: A 4D State Space Model for Ultra-High-Frequent Event Camera Deraining

Ciyu Ruan, Ruishan Guo, Zihang Gong, Jingao Xu, Wenhan Yang, Xinlei Chen

TL;DR

This paper introduces PRE-Mamba, the first point-based framework for deraining event camera data. By leveraging a novel 4D event cloud representation and a Multi-Scale State Space Model (MS3M), PRE-Mamba effectively removes rain streaks while preserving the high temporal resolution and sparsity of event data, outperforming existing methods in both accuracy and efficiency.

What Problem Does This Paper Address?

Event cameras, with their microsecond temporal resolution and high dynamic range, are revolutionizing applications like robotics and autonomous driving. However, their performance degrades significantly in adverse weather, particularly rain, which introduces dense noise that overwhelms valid scene information. Existing deraining methods for event cameras often rely on converting event streams into frame-based representations, sacrificing the inherent temporal precision and sparsity. While point-based methods align better with event data, they struggle with computational bottlenecks and achieving high deraining effectiveness. This paper addresses the critical need for an efficient and accurate point-based event camera deraining solution that preserves the unique characteristics of event data.

Methods

The proposed PRE-Mamba framework tackles event deraining through several novel components:

  • 4D Event Cloud Representation: Raw event data (x, y, t, p) is transformed into a 4D representation by dividing it into temporal windows. Within each window, events are normalized to a 3D pseudo-point cloud (x, y, z), where 'z' represents the normalized timestamp. A fourth dimension, 'Tn', is added to represent the global temporal index of the window, enabling the modeling of long-term dependencies across windows. This representation preserves both intra-window (microsecond) and inter-window temporal dynamics.
  • Spatio-Temporal Decoupling and Fusion (STDF) Module: This module explicitly decouples spatial and temporal features from the 4D event cloud. It then fuses them through cross-domain modulation, where spatial features are refined by temporal representations (intra- and inter-window trends). This allows for effective interaction between spatial and temporal information to capture complex rain dynamics.
  • Multi-Scale State Space Model (MS3M): Inspired by the success of State Space Models (SSMs) like Mamba in sequence modeling, MS3M is adapted for event deraining. It incorporates parallel intra- and inter-window branches to capture appearance and motion features, respectively. A multi-scale spatial pathway is also included to handle diverse rain streak scales and preserve structural details. This architecture allows for efficient, linear-complexity modeling of deep rain dynamics.
  • Frequency-Domain Regularization: To further enhance feature discrimination, a frequency-domain regularization term (Lfft) is introduced in the loss function. This term guides the model to learn global frequency patterns of rain, ensuring statistical consistency and preventing artifacts like isolated rain events.

Datasets

The authors introduce EventRain-27K, a new benchmark dataset for point-based event deraining. It comprises:

  • Synthetic Dataset: Over 7K labeled samples generated by synthesizing rain effects onto clean video sources from the KITTI and SPAC datasets using state-of-the-art rendering simulators. This dataset covers various rain intensities and scenarios.
  • Self-recorded Artificial Dataset: Over 7K labeled samples captured using a Prophesee EVK4 event camera under controlled artificial rainfall conditions. This dataset helps bridge the domain gap between synthetic and real-world data.
  • Real-world Dataset: Over 9K unlabeled samples collected from real-world scenarios, including diverse viewpoints and rain intensities, as well as some snow data to test generalization.

Key Insights and Ideas

  • Point-based deraining is crucial for event cameras: Directly processing raw event data, rather than converting it to frames, is essential to preserve the microsecond temporal resolution and sparsity that make event cameras unique.
  • 4D representation unlocks temporal modeling: Extending the event data representation to 4D (including global window index) is key to capturing both short-term and long-term temporal dependencies relevant to rain streaks.
  • SSMs are a powerful tool for event data: Adapting Mamba-like SSMs for event deraining allows for efficient, linear-complexity modeling of complex spatiotemporal patterns, overcoming the quadratic complexity of traditional transformers.
  • Frequency domain regularization improves robustness: Incorporating frequency domain constraints helps the model learn physically consistent rain patterns, leading to more realistic and artifact-free deraining.
  • Generalization to snow is a bonus: The proposed method shows promising results even on snowy data without architectural changes, highlighting its robustness.

Key Results

PRE-Mamba achieves state-of-the-art performance on the EventRain-27K dataset, with average metrics of 0.95 SR (Signal Retention), 0.91 NR (Noise Removal), and 0.93 DA (Denoising Accuracy).

  • Efficiency: The model is highly efficient, boasting only 0.26M parameters and achieving a fast inference time of 0.0987s for 100K events on an NVIDIA RTX A6000 GPU. This translates to a significant speedup (up to 204.5x) compared to other learning-based methods.
  • Qualitative Results: Visual comparisons demonstrate PRE-Mamba's superior ability to remove rain streaks while preserving structural details (buildings, roads) and dynamic motion (vehicles, pedestrians) compared to existing methods. It also shows better generalization to diverse rain intensities and even snowy conditions.

Limitations and Future Work

  • Computational Cost of More Windows: While increasing the number of temporal windows improves deraining accuracy, it also increases inference time. The paper finds a balance with 5 windows, suggesting future work could explore more efficient ways to leverage longer temporal contexts.
  • Real-world Dataset is Unlabeled: While the real-world dataset is valuable for generalization testing, it is unlabeled, limiting direct quantitative evaluation on it. Future work could involve creating larger, labeled real-world datasets.
  • Potential for Multi-Agent Perception: The paper suggests the method's efficiency and robustness make it suitable for robust multi-agent perception systems.

Summary updated

BibTeX
@inproceedings{ruan2025pre,
  author = {Ciyu Ruan and Ruishan Guo and Zihang Gong and Jingao Xu and Wenhan Yang and Xinlei Chen},
  title = {{PRE-Mamba: A 4D State Space Model for Ultra-High-Frequent Event Camera Deraining}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure