Abstract
This study explores the challenges of integrating human visual cue-based dehazing into object detection, given the selective nature of human perception. While human vision adapts dynamically to environmental conditions, computational dehazing does not always enhance detection uniformly. We propose a multi-stage framework where a lightweight detector identifies regions of interest (RoIs), which are then improved via spatial attention-based dehazing before final detection by a heavier model. Though effective in foggy conditions, this approach unexpectedly degrades the performance on clear images. We analyze this phenomenon, investigate possible causes, and offer insights for designing hybrid pipelines that balance enhancement and detection. Our findings highlight the need for selective preprocessing and challenge assumptions about universal benefits from cascading transformations.
Introduction
In autonomous driving and surveillance, environmental conditions like fog significantly degrade image quality by reducing contrast and obscuring features. To mitigate this, researchers often employ dehazing algorithms as a preprocessing step before object detection. The prevailing assumption is that "cleaner" images necessarily lead to better detection performance. However, recent research from RIT and Amazon Gen AI, presented at the I Can’t Believe It’s Not Better Workshop @ ICLR 2025, reveals that indiscriminate dehazing can introduce "overprocessing" artifacts, particularly in clear weather, leading to a performance drop where models may actually perform better in fog than in clear conditions.
The Perceptual Piercing Framework
To address the limitations of universal dehazing, we introduce Perceptual Piercing, a framework inspired by the human visual system's distinction between peripheral and foveal vision. Instead of applying a uniform dehazing filter to the entire image, the system focuses on specific areas likely to contain objects.
The pipeline consists of three main stages:
- Preliminary Detection (Peripheral Vision): A lightweight model (e.g., YOLOv5s) performs a rapid scan of the raw input to identify Regions of Interest (RoIs).
- Selective Dehazing (Foveal Vision): An enhanced version of the All-in-One Dehazing Network, termed AOD-NetX, applies spatial attention based on the identified RoIs. This concentrates dehazing efforts on relevant objects while minimizing artifacts in the background.
- Final Detection: A robust, heavy-duty model (e.g., YOLOv5x) performs the final object detection on the selectively enhanced image.
Experimental Evaluation
The framework was evaluated using three major benchmarks: Foggy Cityscapes (synthetic fog), RESIDE-β OTS (large-scale outdoor training), and RESIDE-β RTTS (real-world hazy images).
The Inverse Performance Trend
A key finding of this research is the "Inverse Performance Trend." While standard detectors typically see a performance drop as visibility decreases, the AOD-NetX pipeline exhibited the opposite behavior. For example, the YOLOv5s + AOD-NetX + YOLOv5x configuration achieved a +25.68% relative gain in mAP when moving from clear to foggy conditions. It reached 0.6152 mAP in fog compared to only 0.4896 mAP in clear conditions. By comparison, a standard YOLOv5x detector without the dehazing pipeline saw a -14.07% drop in performance when fog was introduced.
This phenomenon stems from the bias of specialization. Because the dehazing module is trained to remove haze, it struggles to find a neutral transformation for clear images, often introducing distortions that the final detector was not trained to handle.
Discussion and Future Work
The study highlights that image enhancement for human perception does not always align with enhancement for machine vision. While AOD-NetX achieved high image restoration scores (0.998 SSIM on Foggy Cityscapes), the resulting "clean" images sometimes confused the detector in clear conditions.
Several hurdles remain for practical deployment:
- Latency: The multi-stage pipeline is currently too slow for real-time applications like high-speed autonomous driving.
- Context-Aware Gating: Future iterations require a haze estimation module to decide whether to activate the dehazing step.
- End-to-End Joint Training: Optimizing both dehazing and detection modules simultaneously could help align their feature spaces and mitigate clear-weather degradation.
Conclusion
"Fixing" images through dehazing is not a neutral step. By demonstrating that selective, attention-based preprocessing can lead to superior performance in adverse conditions but fail in clear ones, this research underscores the need for context-aware vision pipelines. Developers must balance the benefits of enhancement with the risks of feature space misalignment, challenging the "universal preprocessing" dogma in computer vision.
Summary updated