Abstract
Hybrid Event-Based Vision Sensors (HybridEVS) represent a significant leap in sensor technology, merging traditional frame-based capture with asynchronous event-based sensing. This combination is ideal for low-light, high dynamic range, and low-latency applications like wearable devices and smartphones. However, the unique pixel arrangement of HybridEVS—where event pixels replace traditional color pixels—presents a major challenge for standard Image Signal Processing (ISP) pipelines. We introduce DemosaicFormer, a coarse-to-fine framework that achieved first place in the MIPI 2024 Demosaic Challenge. Our approach utilizes a two-stage network comprising coarse demosaicing and transformer-based pixel correction, enhanced by a novel Multi-Scale Gating Module (MSGM) to effectively reconstruct high-quality RGB images from sparse hybrid data.
The HybridEVS Challenge
Traditional frame-based sensors often struggle with motion blur in high-speed scenarios or noise in low-light environments. Event-Based Sensors (EVS) mitigate this by detecting luminance changes asynchronously, but they lack color information. The HybridEVS sensor attempts a middle ground by modifying a standard Quad Bayer pattern, replacing specific color pixels with event-detecting pixels.
This hybrid design introduces two primary difficulties:
- Information Loss: The replacement of color pixels with event pixels reduces the available spatial and chromatic data.
- Defective Pixels: The event pixels effectively act as "holes" in the frame. Furthermore, manufacturing complexities in these sensors often lead to additional inaccurate pixel values that require sophisticated correction.
DemosaicFormer Architecture
To address these issues, we propose a two-stage pipeline that separates the reconstruction task from the refinement task. This "divide and conquer" strategy prevents the network from becoming overwhelmed by trying to solve demosaicing and defect correction simultaneously.
Stage 1: Coarse Demosaic
The first stage employs Recursive Residual Groups (RRG) to generate a preliminary RGB estimate from the raw HybridEVS data. This stage focuses on establishing the fundamental color and structural layout of the scene, providing a high-quality baseline for the subsequent stage.
Stage 2: Pixel Correct
The second stage refines the coarse image using a Transformer-based architecture inspired by Restormer. By leveraging Multi-Dconv Head Transposed Attention, the network can capture long-range dependencies and non-local similarities, which are essential for resolving fine details and correcting sensor-induced defects without the heavy computational cost of standard self-attention.
Key Innovations
Multi-Scale Gating Module (MSGM)
A critical component of our architecture is the MSGM, which replaces standard skip connections. Instead of simple concatenation, MSGM uses a gating mechanism to adaptively fuse features across different scales. This allows the model to intelligently integrate fine-grained details with broader global context, improving the flow of information between the encoder and decoder.
Progressive Training and Defect-Aware Augmentation
We utilized a progressive training strategy where the patch size of training images increases over time, allowing the model to learn local textures before tackling larger structural patterns. To improve robustness against real-world sensor flaws, we extracted "defect maps" from the challenge data and injected these patterns into clean training images, ensuring the model is well-prepared for the specific noise profiles of HybridEVS hardware.
Experimental Results
DemosaicFormer achieved 1st place in the MIPI 2024 Demosaic for HybridEVS Camera challenge. Quantitatively, the model reached a PSNR of 44.8464 dB, significantly outperforming established baselines such as Restormer (41.73 dB) and CycleISP (41.32 dB). Visually, our method produces much sharper edges and more accurate textures, effectively eliminating the muddy artifacts and aliasing common in standard demosaicing algorithms when applied to hybrid patterns.
Conclusion
DemosaicFormer demonstrates that a coarse-to-fine approach, combined with scale-aware gating and transformer-based refinement, is highly effective for the emerging category of HybridEVS sensors. While the model is computationally intensive, its superior reconstruction quality sets a new benchmark for hybrid ISP pipelines, paving the way for high-performance imaging in next-generation mobile and wearable devices.
Summary updated