AI-Generated Image Detection with Transfer-Learned CNNs and Explainable AI under Social Media–Like Image Degradation
DOI:
https://doi.org/10.59543/t49p2b80Keywords:
AI-generated image detection, transfer learning, explainable AI, image degradation, robustness evaluation, multimedia forensicsAbstract
Images shared on social media are often recompressed, resized, smoothed or affected by noise, and originate from diverse sources. However, detectors of AI-generated images are typically evaluated on clean images from individual benchmarks. We systematically evaluate four widely used transfer-learned convolutional neural networks (CNNs), ResNet-50, DenseNet-121, ConvNeXt-Tiny and EfficientNet-B3, pretrained on ImageNet, alongside a compact CNN trained from scratch. The models were trained on eight pooled public datasets comprising 628,857 images and tested on 125,772 images under social media–like degradation filters. We assess performance degradation across classes and sources and investigate model decisions using gradient-weighted class activation mapping (Grad-CAM), supported by randomisation sanity checks and predefined input interventions. ResNet-50 achieved the highest performance on the clean test split (Macro-F1 0.9733). JPEG compression, blur and resampling, which resemble the training augmentations, preserved 96–99% of the pooled Macro-F1 of the pretrained models, but 77–97% on their worst-performing sources. Gaussian noise preserved 72–86% and shifted predictions predominantly towards the real class. In three examined cases, Grad-CAM maps remained broadly similar (Spearman ρ = 0.73–0.82) despite noise-induced classification changes. File-level properties predicted the labels almost perfectly in two datasets, yet identical re-encoding changed Macro-F1 by at most 0.025. The pretrained models outperformed the compact CNN by approximately 0.2 Macro-F1 under the common training schedule, while leave-one-source-out evaluation of ResNet-50 revealed reductions of 0.25–0.57 Macro-F1 on unseen sources. These findings demonstrate that pooled clean-image performance alone is insufficient to characterise detector reliability under social media–like degradation. Robust evaluations should incorporate source-specific and class-specific performance measures, cross-source generalisation and intervention-based validation of model explanations.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Arsim Susuri, Endrit Fetahi, Jeta Kryeziu, Ercan Canhasi (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.






