An Architecture for the detection of GAN-generated Flood Images with Localization Capabilities

Jun Wang, Omran Alamayreh, Benedetta Tondi, Mauro Barni · DOI

Abstract

In this paper, we address a new image forensics task, namely the detection of fake flood images generated by ClimateGAN architecture. We do so by proposing a hybrid deep learning architecture including both a detection and a localization branch, the latter being devoted to the identification of the image regions manipulated by ClimateGAN. Even if our goal is the detection of fake flood images, in fact, we found that adding a localization branch helps the network to focus on the most relevant image regions with significant improvements in terms of generalization capabilities and robustness against image processing operations. The good performance of the proposed architecture is validated on two datasets of pristine flood images downloaded from the internet and three datasets of fake flood images generated by ClimateGAN starting from a large set of diverse street images.

Introduction

As Generative Adversarial Networks (GANs) become more sophisticated, they can create highly realistic "weather-sensitive" images. While tools like ClimateGAN are intended to raise awareness about climate change by visualizing floods in familiar street scenes, they also pose a risk for disinformation campaigns. Existing multimedia forensics tools often struggle with generalization across different synthetic sources and lack explainability. The authors tackle these gaps by focusing specifically on flood imagery and proposing a method that "learns to look" at the right places.

Proposed Architecture

The authors propose a hybrid architecture based on a ResNet50 backbone. The network splits into two functional branches:

  • The Detection Branch: Uses the features extracted by ResNet50, passes them through an Average Pooling layer and a Fully Connected layer to output a binary "Real vs. Fake" classification.
  • The Localization Branch: A Fully Convolutional Network (FCN) that takes the same features to produce a pixel-level mask ($M_{loc}$) identifying the manipulated regions.
The proposed hybrid architecture featuring detection and localization branches.

The model is trained using a joint loss function ($L_{tot} = \lambda_{det} \cdot L_{det} + \lambda_{loc} \cdot L_{loc}$). By penalizing the network for failing to locate the floodwater, the researchers force the feature extraction layers to focus on the most relevant parts of the image, rather than picking up on irrelevant background artifacts or noise.

Datasets

The study utilized a mix of existing and newly curated datasets:

  • Natural (Pristine) Images: RWFI (Roadway Flooding Image) for training and WSOC Flood Image (Twitter/news) for testing generalization.
  • Fake (ClimateGAN) Images: StreetG (generated from Cityscapes/Kitti) and WebG132/WebG504 (diverse internet street-view images) to test robustness in the "wild."

Results and Discussion

The hybrid model (ResNet50_hyb) outperformed standard Xception and ResNet50 architectures across the board. It achieved 100% AUC on the StreetG and WSOC datasets. On the unseen WebG132 dataset, the hybrid model maintained a 93.4% True Positive Rate (TPR), while the standard Xception model plummeted to just 37.9%.

Qualitative results showing input images, ground truth masks, model output masks, and Class Activation Maps (CAM).

A key insight is that localization acts as a regularizer. Adding a localization task improves detection accuracy even if the localization itself isn't perfectly accurate. It prevents the network from "overfitting" on specific camera signatures or textures unrelated to the forgery. By forcing the network to identify the "water" regions, the model learns the semantic characteristics of GAN-generated water, which is more consistent across different datasets than low-level pixel artifacts.

Conclusion

The proposed hybrid architecture demonstrates significant improvements in detecting and localizing GAN-generated flood images. While currently tuned to ClimateGAN, the approach shows promise for generalization. Future work includes testing against other generative architectures like Diffusion Models and extending the framework to other climate-related forgeries such as wildfires.

Summary updated

BibTeX
@misc{wang2022architecture,
  author = {Jun Wang and Omran Alamayreh and Benedetta Tondi and Mauro Barni},
  title = {{An Architecture for the detection of GAN-generated Flood Images with Localization Capabilities}},
  year = {2022},
  eprint = {2205.07073},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.07073},
}
Figure