Unsupervised Single Image Deraining with Self-Supervised Constraints

Xin Jin, Zhibo Chen, Jianxin Lin, Zhikai Chen, Wei Zhou

TL;DR

Researchers have developed UD-GAN, a new framework that removes rain from single images without needing perfectly paired "before and after" training data. By using self-supervised constraints to analyze the intrinsic statistics of rain streaks and background textures, the model outperforms existing unsupervised methods and generalizes much better to unpredictable real-world weather.

What Problem Does This Paper Address?

Most deep learning models for "deraining" are supervised, meaning they are trained on thousands of pairs of synthetic rainy images and their perfectly clean counterparts. This creates two major hurdles:

  1. The Reality Gap: Synthetic rain (often just white lines) looks very different from real rain. A model trained on fake rain often fails when it meets a real storm.
  2. The Data Bottleneck: It is nearly impossible to capture a "ground truth" clean image of the exact same scene at the exact same moment it is raining in the real world.

While unsupervised methods like CycleGAN exist to bridge this gap using unpaired data, they often struggle with "under-constraint." Without a ground truth to compare against, these models frequently introduce weird artifacts or blur out important background details while trying to "erase" the rain.

Methods

The authors introduce the Unsupervised Deraining Generative Adversarial Network (UD-GAN). Instead of relying on pairs, it uses two clever self-supervised modules to guide the learning process:

  • Rain Guidance Module (RGM): This module focuses on the "removed" part of the image. It takes the rain streaks the generator stripped away and adds them to a random clean image to create a "fake" rainy image. A discriminator then tries to tell if this fake rainy image looks like a real one. This forces the generator to only remove things that actually look like rain.
  • Background Guidance Module (BGM): To prevent the model from changing the actual scenery, the BGM applies a hierarchical Gaussian blur to both the input and the output. Since blurring removes rain streaks but keeps the general "shape" of the background, the model can compare these blurred versions to ensure the background remains consistent.
  • Luminance-Adjusting Adversarial Loss: The authors noticed a bias: rainy images are usually dark/cloudy, while clean training images are often bright/sunny. To prevent the model from simply over-brightening every image to "look clean," they introduced a loss function that accounts for these natural lighting differences.

Datasets

The model was evaluated on several standard synthetic benchmarks and a new real-world collection:

  • Synthetic: Rain800, Rain12, Rain100L, and Rain100H. These vary in rain density and streak shapes.
  • Real-World: A collection of 784 real-world rainy (and some snowy) images scraped from the internet and previous studies.
  • Denoising (Extension): The BSD68 dataset was used to test if the model could generalize to general image noise removal.

Key Insights and Ideas

  • Supervising the "Residual": One of the biggest "aha" moments is that while we don't know what the clean image should look like, we do know what rain looks like. By forcing the "removed" content to match the statistics of real rain, the model becomes much more precise.
  • The Blur Trick: Using Gaussian blur as a way to "ignore" rain streaks while comparing backgrounds is a computationally efficient way to enforce structural consistency without needing pixel-perfect labels.
  • Luminance Matters: Recognizing that a "clean" image isn't just a "rainy image minus streaks" but often has different lighting (sunny vs. cloudy) prevents the common pitfall of GANs producing unnaturally bright or washed-out results.

Key Results

  • Quantitative: On synthetic datasets, UD-GAN achieved a PSNR (Peak Signal-to-Noise Ratio) of 37.13 dB on Rain12, outperforming many fully supervised state-of-the-art models like DID-MDN (36.14 dB).
  • Qualitative: In real-world tests, UD-GAN preserved fine details (like facial features and car logos) that other models blurred out.
  • User Study: In a study with 10 non-expert subjects, UD-GAN's results were voted as the "best de-rained result" significantly more often than competing methods (receiving 101 votes compared to the next best's 14 in one trial).
  • Speed: The model is highly efficient, taking only 0.25 seconds to process a 512x512 image on a standard GPU.

Limitations and Future Work

While UD-GAN performs exceptionally well, the authors note that it is currently focused on rain streaks. Real-world rain often involves "rain veil" (a misty, foggy effect) and heavy motion blur.

Future Work: The team plans to extend this self-supervised approach to other "image restoration" tasks, such as removing heavy fog (dehazing), fixing motion blur (deblurring), and potentially handling super-resolution.

Summary updated

BibTeX
@inproceedings{jin2019unsupervised,
  author = {Xin Jin and Zhibo Chen and Jianxin Lin and Zhikai Chen and Wei Zhou},
  title = {{Unsupervised Single Image Deraining with Self-Supervised Constraints}},
  booktitle = {ICIP},
  year = {2019},
  doi = {10.1109/icip.2019.8803238},
}
Figure