NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Real-time weather monitoring and desnowification through image purification

Eliott Py, Elies Gherbi, Nelson Fernandez Pinto, Martin Gonzalez, Hatem HajriAI Ethics 2024 · DOI

TL;DR

This paper tackles the challenge of maintaining accurate object detection in adverse weather, specifically snow, by proposing a novel pipeline that integrates a real-time snow detector with an image purification model. Their approach significantly improves detection accuracy in snowy conditions while maintaining computational efficiency, offering a practical solution for real-world applications like autonomous systems.

What Problem Does This Paper Address?

Reliable object detection and tracking are crucial for many modern applications, from self-driving cars to drones. However, adverse weather conditions, particularly snow, can severely degrade the performance of these vision-based systems. Snowfall can cause visual obstructions, alter lighting, and change background appearances, leading to reduced accuracy and reliability. While image purification techniques exist to mitigate these effects, their performance can vary with snow intensity, and they often require significant computational resources. Furthermore, evaluating these purification methods solely on image quality metrics (like PSNR) doesn't guarantee improved performance on downstream tasks like object detection. This paper addresses the need for an efficient and effective method to enhance object detection robustness in snowy environments, bridging the gap between image purification and practical application performance.

Methods

The proposed solution is a two-stage pipeline:

  1. Real-time Snow Monitoring (ConvMixer): The authors employ a ConvMixer architecture, a lightweight and efficient image classifier, to detect the presence and intensity of snow in real-time. This model is trained to classify images into categories like "clean," "low intensity snow," "intermediate intensity snow," and "high intensity snow."
  2. Image Purification (PReNet): Based on the snow detection output, an image purification model is selectively activated. The paper utilizes PReNet, a progressive network that uses a shallow ResNet with an LSTM layer to capture temporal dependencies and restore corrupted images. PReNet is chosen for its balance of performance and efficiency, aiming to provide a practical solution for real-time applications.

The key innovation lies in the conditional activation of the PReNet purifier. The ConvMixer acts as a gatekeeper: if the snow intensity is low or absent, the image is passed directly to the object detector (YOLOv5). Only when intermediate or high snow intensity is detected is the PReNet activated to purify the image before it's fed to the detector. This selective approach aims to avoid the performance degradation observed when purification models are applied to clean images.

Datasets

  • Air Liquide's cylinder counting dataset: This dataset, consisting of 40 videos (approximately 300 images each, 780x1024 pixels), features drone-like views of trucks with gas cylinders. This dataset was used for training and evaluating the proposed pipeline. For training PReNet, random images from video batches were corrupted with high-intensity snow.
  • Corrupted dataset: A dataset was created by applying fixed snow corruption of high intensity to images from the Air Liquide dataset.
  • Test set of 42 videos: Used for evaluating the ConvMixer snow detection model.

The paper does not introduce a new benchmark dataset but rather uses an existing one and creates corrupted versions for evaluation.

Key Insights and Ideas

  • Selective Purification is Key: Applying image purification indiscriminately, even to clean images, can degrade object detection performance. The PReNet model, when applied to clean images, tends to darken them and obscure details, leading to higher counting errors. This highlights the importance of a "smart" or conditional application of purification.
  • Lightweight Snow Detector is Sufficient: A ConvMixer model, despite its simplicity, is effective enough to accurately detect snow intensity in real-time, enabling the selective activation of the more computationally intensive purification step.
  • PReNet's Trade-off: While PReNet effectively removes snow and improves detection in snowy conditions, its performance plateaus after a certain number of stages (T=4), suggesting diminishing returns and potential for optimization.
  • Practicality Over Pure Image Quality: The paper emphasizes evaluating purification methods based on their impact on downstream tasks (like object detection) rather than solely on image quality metrics, a crucial shift for real-world applications.

Key Results

  • Improved Detection Accuracy: The proposed "Ours" pipeline (ConvMix + PReNet + YOLOv5) achieved a Mean Counting Error (MCE) of 1.1784 on corrupted data, a significant improvement over YOLOv5 alone (3.4358) and YOLOv5 with PReNet preprocessing (1.9743). This represents a substantial reduction in counting errors in snowy conditions.
  • Comparable Inference Time: The proposed pipeline's inference time was 0.131s, which is only slightly higher than YOLOv5 alone (0.06s) and comparable to YOLOv5 with PReNet (0.13s). This demonstrates that the added complexity of the snow detector and conditional purification does not drastically impact real-time performance.
  • Snow Detection Accuracy: The ConvMixer snow monitoring system achieved an accuracy of 81.7% on a test set of 42 videos.
  • Performance on Clean Images: When applied to clean images, the purification model resulted in a higher counting error (e.g., 0.9512 for clean YOLOv5 vs. 1.1784 for the "Ours" pipeline when snow intensity is low, as indicated by Table 1 in the paper).

Limitations and Future Work

  • Performance on Clean/Low Snow: The paper acknowledges that the purification model can negatively impact accuracy in the absence of snow or with low-intensity snow.
  • Snow Detection Nuances: The ConvMixer model had some difficulty correctly identifying clean images, sometimes misclassifying them as low-intensity snow.
  • Future Work Suggestions:
    • Optimize ConvMixer and PReNet: Further optimization using conditional tricks could improve the accuracy of classifying low-intensity snow/clean images and reduce preprocessing components.
  • Explore Alternative Purification Models: Investigating purification models that are more effective at preserving image quality in the absence of snow, even if they have slower inference times, could be beneficial.
  • Reduce Preprocessing Components: Streamlining the pipeline to further reduce computational overhead.

Summary updated

BibTeX
@article{py2024real,
  author = {Eliott Py and Elies Gherbi and Nelson Fernandez Pinto and Martin Gonzalez and Hatem Hajri},
  title = {{Real-time weather monitoring and desnowification through image purification}},
  journal = {AI Ethics},
  year = {2024},
  doi = {10.1007/s43681-024-00418-5},
}
Figure