arXiv:2610.22676cs.CVOct 2026

Manuscript Offprint

arXiv:2610.22676

Deep Learning for Deepfake Image Detection: Comparative Model Evaluation and Gradient-Based Visual Attribution

Saad Korchi, Abderrahim Waga

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Synthetic facial imagery has made the distinction between authentic and generated content increasingly important for digital forensics and online trust. This study examines an explainable deep-learning workflow for image-level deepfake detection using two contrasting classification strategies: a compact convolutional model trained from scratch and an ImageNet-pretrained MobileNetV2 model adapted through two-stage transfer learning. Experiments were conducted with the balanced 140k Real and Fake Faces dataset, comprising 140,000 facial images. Under the recorded validation protocol, the augmented from-scratch model reached 84.15% accuracy (loss 0.3625), compared with 95.90% accuracy (loss 0.1074) for the fine-tuned pretrained model. Gradient-weighted class activation mapping (Grad-CAM) was used to visualize image regions associated with predictions, and a Flask-based prototype was developed for side-by-side inspection. These observations support the practical value of pretrained visual representations in the studied setting while underscoring the need to interpret validation performance alongside dataset provenance, explanation limitations, and evaluation scope. The reported results are validation results, not held-out test estimates.

Keywords: Synthetic Face Forensics; Transfer Learning; Gradient-Weighted Class Activation Mapping; Model Interpretability.

1. Introduction

Improvements in generative modeling have made artificial facial images increasingly convincing. Although synthetic imagery has legitimate applications, the same capability raises concerns about impersonation, fabricated evidence, misinformation, and identity misuse. Reliable media authentication has therefore become relevant to computer vision, information security, and digital forensics.

An automated detector faces more than a binary classification problem. It must also be evaluated in terms of the evidence used to support its decisions, the data distribution under which it was trained, and the conditions in which its predictions may fail. Models that appear accurate on a familiar benchmark can exploit characteristics of its data collection or image-generation pipeline rather than broadly transferable forensic evidence.

This paper studies two complementary deep-learning strategies using the same publicly available balanced facial-image dataset. The first is a compact network learned from scratch; the second uses pretrained visual representations followed by task-specific adaptation. Both models are incorporated into an explainable prototype through Grad-CAM visualizations and side-by-side predictions. The purpose is to document the empirical comparison and to examine how model design, learning dynamics, and interpretability interact in a practical detection workflow.

This study contributes a documented comparison between learning from scratch and transfer learning on a dataset of 140,000 authentic and synthetic facial images. It describes preprocessing, training schedules, fine-tuning procedures, and the recorded validation evidence; integrates Grad-CAM visualizations into an analyst-facing Flask prototype; and carefully distinguishes observed validation findings from claims about generalization or held-out test performance.

*Corresponding author: saad.korchi@eidia.ueuromed.org