Adverse Weather Target Detection Algorithm Based on Adaptive Color Levels and Improved YOLOv5

Jiale Yao, Xiangsuo Fan, Bing Li, Wenlin QinSensors 2022

TL;DR

This paper tackles the critical challenge of robust object detection for autonomous vehicles in adverse weather conditions like fog, rain, and snow. They introduce an adaptive color correction method to enhance image clarity and significantly improve the YOLOv5 object detection model by integrating Transformer and CBAM modules, along with a more effective EIOU loss function, achieving a state-of-the-art mAP of 94.7%.

What Problem Does This Paper Address?

Autonomous vehicles rely heavily on computer vision for safe navigation. However, adverse weather conditions such as fog, rain, snow, and sandstorms severely degrade image quality, reducing visibility and making it difficult for current object detection systems to accurately identify road users like cars, pedestrians, and cyclists. This directly impacts driving safety and the reliability of self-driving technology in real-world scenarios. Existing methods often struggle with the diverse and challenging visual characteristics of these environments.

Methods

The authors propose a two-pronged approach:

  1. Adaptive Color Levels Correction: They introduce a novel "bias compensation model" to adaptively adjust color levels in images affected by adverse weather. This method analyzes image statistics (mean values) and classifies weather types to apply specific filtering, aiming to enhance target clarity without introducing color distortion. This is an improvement over traditional auto color levels algorithms that can sometimes lead to color shifts.
  2. Improved YOLOv5 Architecture:
    • Backbone Enhancement: They integrate a Transformer module into the YOLOv5 backbone. Transformers are known for their ability to capture long-range dependencies and global context, which helps in understanding complex scenes and relating features across different scales.
  3. Attention Mechanism: The CBAM (Convolutional Block Attention Module) is added to the Neck and Head of the network. CBAM combines channel and spatial attention, allowing the model to focus on more informative feature regions and suppress irrelevant ones, further improving feature extraction.
  4. Loss Function Optimization: The original CIOU (Complete Intersection over Union) loss function is replaced with EIOU (Efficient Intersection over Union). EIOU is designed to more accurately account for the aspect ratio differences between predicted and ground truth bounding boxes, leading to faster convergence and better localization accuracy, especially for dense or multi-scale targets.

Datasets

The primary dataset used is DAWN (Dataset for Adverse Weather in Navigation). This dataset contains images captured in various adverse weather conditions (fog, rain, snow, dust storms) with common road targets. The authors note that DAWN has a limited number of images (1027) and many small, low-resolution targets. To address this, they performed data augmentation by applying crop, pan, rotate, mirror, cutout, brightness adjustment, and Gaussian noise. This expanded the dataset by a factor of 4, resulting in a total of 5135 images.

Key Insights and Ideas

  • Adaptive Image Enhancement is Crucial: Simply applying a generic image enhancement might not be sufficient for diverse adverse weather. The authors' adaptive approach, which considers weather type and image statistics, shows significant benefits in improving target visibility.
  • Transformers for Global Context: Integrating Transformer modules into the CNN backbone effectively leverages their strength in capturing long-range dependencies, which is vital for understanding complex scenes in adverse weather.
  • Attention for Feature Refinement: CBAM's ability to selectively focus on important features and suppress noise is key to improving detection accuracy, especially when dealing with degraded image quality.
  • EIOU for Better Bounding Box Regression: The choice of EIOU over CIOU highlights the importance of fine-tuning the loss function for precise bounding box prediction, particularly in challenging scenarios with varying target scales and densities.
  • Synergy of Components: The paper demonstrates that combining adaptive image preprocessing with architectural improvements (Transformer, CBAM) and an optimized loss function (EIOU) leads to a substantial performance boost, outperforming individual enhancements.

Key Results

  • The proposed improved YOLOv5 algorithm achieved a mean Average Precision (mAP) of 94.7% on the enhanced DAWN dataset.
  • The algorithm maintained a high Frames Per Second (FPS) of 199.86, indicating real-time processing capabilities.
  • Qualitative results (Figure 8) show significantly better detection of various targets (trucks, humans) in adverse weather images after applying the adaptive color correction and the improved YOLOv5 model, compared to the baseline YOLOv5 on original images.
  • Ablation studies (Table 7) demonstrated that adding Transformer and CBAM modules individually improved mAP by 0.5%, while their combined effect, along with EIOU loss, yielded the highest performance gains.

Limitations and Future Work

  • Dataset Size and Diversity: While data augmentation was used, the DAWN dataset is still relatively small and might not cover all possible adverse weather scenarios or target variations.
  • True Value for Image Metrics: The authors acknowledge that for evaluating image enhancement metrics (MSE, PSNR, SSIM), they used the processed images as "estimated true values" due to the absence of ground truth images in the DAWN dataset. This introduces a potential source of error in the image quality assessment.
  • Failure Cases: The paper identifies failure cases (Figure 9) where morphological transformations, noise, or low resolution in the original images still lead to missed detections or false positives, even after processing.

Future work could involve exploring larger and more diverse adverse weather datasets, investigating more advanced image enhancement techniques, and further refining the model architecture to address the identified failure cases.

Summary updated

BibTeX
@inproceedings{yao2022adverse,
  author = {Jiale Yao and Xiangsuo Fan and Bing Li and Wenlin Qin},
  title = {{Adverse Weather Target Detection Algorithm Based on Adaptive Color Levels and Improved YOLOv5}},
  booktitle = {Sensors},
  year = {2022},
  doi = {10.3390/s22218577},
}
Figure