Abstract
Autonomous driving systems require robust perception in adverse weather conditions like fog. However, training deep learning models for defogging is hindered by the lack of paired real-world data. This paper presents SynFog, a high-fidelity synthetic dataset generated through a physically-based end-to-end imaging simulation pipeline. By incorporating volumetric path tracing and realistic sensor modeling, SynFog accurately captures complex lighting effects and sensor noise, bridging the domain gap between synthetic and real-world foggy environments. Evaluations demonstrate that models trained on SynFog achieve state-of-the-art performance on real-world benchmarks.
Introduction
For autonomous vehicles to navigate safely in fog, they rely on "defogging" algorithms—typically deep learning models trained on pairs of foggy and clear images. A significant challenge in this field is the "sim-to-real" gap: obtaining perfectly aligned clear/foggy image pairs in the real world is nearly impossible, forcing researchers to rely on synthetic data.
Most existing datasets utilize the Atmospheric Scattering Model (ASM), which treats fog as a uniform 2D filter applied over a clear image based on depth. This approach suffers from three major flaws: it ignores indirect light and multiple light sources (like headlights), neglects the behavior of real camera sensors (especially noise in low-contrast conditions), and results in a generalization gap where models produce artifacts when applied to real-world photos. SynFog addresses these issues by moving beyond simple mathematical overlays to a full physically-based simulation of light transport and camera hardware.
Methodology
The authors propose an end-to-end simulation pipeline that replaces the traditional "overlay" method with a physics-first approach:
- Volumetric Path Tracing: Instead of a 2D filter, fog is modeled as a 3D spatial volume. The researchers use the Henyey-Greenstein phase function to calculate exactly how light particles scatter. This allows the simulation to handle "active lighting" (headlights) and global illumination naturally.
- Realistic Camera Simulation: Using the ISETCam framework, they simulate the entire imaging chain, including optics (lens diffraction), the sensor (photovoltaic conversion and noise sources like shot noise), and the Image Signal Processor (ISP).
- Physical Validation: To ensure accuracy, the team built a physical fog chamber with a laser-based visibility measurement module, comparing real photos of a color checker against simulated versions to tune the pipeline.
The SynFog Dataset
The resulting SynFog dataset consists of 500 unique outdoor scenes. Each scene is rendered under two lighting conditions—natural skylight only and skylight combined with active headlights/lamps—across three fog densities (Visibility: 150m, 300m, and 600m).
As shown in the figure above, SynFog provides pixel-accurate depth maps and segmentation labels, making it a robust resource for both low-level vision (defogging) and high-level perception (object detection) tasks.
Results and Analysis
The inclusion of realistic sensor noise and active lighting proves crucial for real-world performance. The authors found that fog and sensor noise are deeply linked; as fog density increases, the signal-to-noise ratio drops. Models trained on "clean" synthetic fog often fail because they cannot distinguish between fog-induced blur and sensor-induced noise.
Defogging Performance
When training the AECRNet model, SynFog achieved a PSNR of 15.43 on the real-world O-Haze dataset, significantly outperforming models trained on Foggy Cityscapes (14.46) or Virtual KITTI (13.90).
Downstream Machine Vision
Beyond image restoration, SynFog improves object detection. On the Foggy Zurich dataset, object detection accuracy (mAP) reached 71.5%, compared to 69.7% for the next best synthetic training set. An ablation study confirmed that removing sensor noise simulation from the pipeline caused a measurable drop in performance, proving that "realistic imperfections" are vital for synthetic data utility.
Conclusion and Future Work
SynFog demonstrates that photo-realism in synthetic data—achieved through matching the statistical distribution of real-world light transport—is key to bridging the sim-to-real gap. While volumetric path tracing is computationally intensive, limiting the current dataset to 500 scenes, it provides a superior training ground for autonomous driving in adverse weather. Future work will focus on scaling the dataset using more efficient rendering techniques and expanding the pipeline to include other scattering mediums such as rain, snow, and dust.
Summary updated