AI-Generated Image Detection with Transfer-Learned CNNs and Explainable AI under Social Media–Like Image Degradation

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.

Authors

Publication Details

Journal
Knowledge and Decision Systems with Applications
Published
2026-12-02
DOI
https://doi.org/10.59543/t49p2b80
Primary Topic
Digital Media Forensic Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

AI-Generated Image Detection with Transfer-Learned CNNs and Explainable AI under Social Media–Like Image Degradation

Endrit Fetahi, Ercan Canhasi, Arsim Susuri, Jeta Kryeziu
Knowledge and Decision Systems with Applications
Digital Media Forensic Detection
article

AI-Generated Image Detection with Transfer-Learned CNNs and Explainable AI under Social Media–Like Image Degradation

Endrit Fetahi, Ercan Canhasi, Arsim Susuri, Jeta Kryeziu
article en

Abstract

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.

Knowledge and Decision Systems with ApplicationsVol. 2
Digital Media Forensic Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon