Perbandingan EfficientNetB0, MobileNetV2, dan DenseNet121 Berbasis Transfer Learning untuk Deteksi AI-Generated Images


  • Nicholas Abraham Herytra Universitas Dian Nuswantoro, Semarang, Indonesia
  • Suprayogi Suprayogi * Mail Universitas Dian Nuswantoro, Semarang, Indonesia
  • (*) Corresponding Author
Keywords: AI Image Detection; Transfer Learning; EfficientNetB0; MobileNetV2; DenseNet121; Convolutional Neural Network

Abstract

The rapid advancement of AI-based generative models such as GANs and Diffusion Models has produced high-quality synthetic images that are visually indistinguishable from real photographs. This poses serious challenges in digital security, media verification, and public trust in visual content. However, few studies have compared multiple CNN architectures using a two-phase transfer learning strategy on the same dataset. This study proposes a transfer learning-based approach by comparing three ImageNet-pretrained CNN architectures, namely EfficientNetB0, MobileNetV2, and DenseNet121, for detecting AI-generated images. The dataset used is the AI vs Real Images Dataset from Kaggle, consisting of two classes: AI-generated and real images. Training was conducted in two phases: the first phase with a frozen backbone to adapt pretrained weights, and the second phase involving fine-tuning the last 30 layers of the backbone. Data augmentation including rotation, shifting, zoom, shear, and brightness variation was applied to the training set, while class weighting and label smoothing were employed to address class imbalance. Evaluation was performed using accuracy, precision, recall, F1-score, and AUC-ROC metrics. Experimental results show that DenseNet121 achieved the highest performance with an accuracy of 98.00%, precision 99.10%, recall 98.21%, F1-score 98.65%, and AUC-ROC 99.72%. EfficientNetB0 ranked second with 95.33% accuracy, while MobileNetV2 recorded 94.67% accuracy with the fewest parameters, making it superior in terms of efficiency. Grad-CAM visualizations confirm that the models focus on the main objects as well as textured and color-transition regions that serve as markers of generative artifacts. This study demonstrates that a two-phase transfer learning approach with structured data augmentation is effective for AI image detection tasks.

Downloads

Download data is not yet available.

References

L. Y. Gong and X. J. Li, “A Contemporary Survey on Deepfake Detection: Datasets, Algorithms, and Challenges,” Electronics (Basel)., vol. 13, no. 3, p. 585, Jan. 2024, doi: 10.3390/electronics13030585.

Z. Akhtar, “Deepfakes Generation and Detection: A Short Survey,” J. Imaging, vol. 9, no. 1, p. 18, Jan. 2023, doi: 10.3390/jimaging9010018.

A. López-Borrull and C. Lopezosa, “Mapping the Impact of Generative AI on Disinformation: Insights from a Scoping Review,” Publications, vol. 13, no. 3, p. 33, Jul. 2025, doi: 10.3390/publications13030033.

Á. F. Gambín, A. Yazidi, A. Vasilakos, H. Haugerud, and Y. Djenouri, “Deepfakes: current and future trends,” Artif. Intell. Rev., vol. 57, no. 3, p. 64, Feb. 2024, doi: 10.1007/s10462-023-10679-x.

A. Heidari, N. Jafari Navimipour, H. Dag, and M. Unal, “Deepfake detection using deep learning methods: A systematic and comprehensive review,” WIREs Data Mining and Knowledge Discovery, vol. 14, no. 2, Mar. 2024, doi: 10.1002/widm.1520.

Q. Bammey, “Synthbuster: Towards Detection of Diffusion Model Generated Images,” IEEE Open Journal of Signal Processing, vol. 5, pp. 1–9, 2024, doi: 10.1109/OJSP.2023.3337714.

R. Mubarak, T. Alsboui, O. Alshaikh, I. Inuwa-Dutse, S. Khan, and S. Parkinson, “A Survey on the Detection and Impacts of Deepfakes in Visual, Audio, and Textual Formats,” IEEE Access, vol. 11, pp. 144497–144529, 2023, doi: 10.1109/ACCESS.2023.3344653.

Y. Mirsky and W. Lee, “The Creation and Detection of Deepfakes,” ACM Comput. Surv., vol. 54, no. 1, pp. 1–41, Jan. 2022, doi: 10.1145/3425780.

P. Yu, Z. Xia, J. Fei, and Y. Lu, “A Survey on Deepfake Video Detection,” IET Biom., vol. 10, no. 6, pp. 607–624, Nov. 2021, doi: 10.1049/bme2.12031.

M. Masood, M. Nawaz, K. M. Malik, A. Javed, A. Irtaza, and H. Malik, “Deepfakes generation and detection: state-of-the-art, open challenges, countermeasures, and way forward,” Applied Intelligence, vol. 53, no. 4, pp. 3974–4026, Feb. 2023, doi: 10.1007/s10489-022-03766-z.

R. Yumlembam, B. Issac, N. Aslam, E. K. Babu, J. Collyer, and F. Kennedy, “Detection of AI generated images using combined uncertainty measures and particle swarm optimised rejection mechanism,” Sci. Rep., vol. 15, no. 1, p. 44021, Nov. 2025, doi: 10.1038/s41598-025-28572-8.

Z. Meng, B. Peng, J. Dong, T. Tan, and H. Cheng, “Artifact feature purification for cross-domain detection of AI-generated images,” Computer Vision and Image Understanding, vol. 247, p. 104078, Oct. 2024, doi: 10.1016/j.cviu.2024.104078.

A. M. Almars, “Deepfakes Detection Techniques Using Deep Learning: A Survey,” Journal of Computer and Communications, vol. 09, no. 05, pp. 20–35, 2021, doi: 10.4236/jcc.2021.95003.

J. J. Bird and A. Lotfi, “CIFAKE: Image Classification and Explainable Identification of AI-Generated Synthetic Images,” IEEE Access, vol. 12, pp. 15642–15650, 2024, doi: 10.1109/ACCESS.2024.3356122.

A. R. Gunukula, H. Das Gupta, and V. S. Sheng, “Detecting AI-Generated Images Using a Hybrid ResNet-SE Attention Model,” Applied Sciences, vol. 15, no. 13, p. 7421, Jul. 2025, doi: 10.3390/app15137421.

N. Hasaniyyah, K. Khadijah, S. Sutikno, and Z. A. Tyas, “Integration of Squeeze-and-Excitation in Densenet-121 for Classifying Real and AI-Generated Images,” Jurnal Teknik Informatika (Jutif), vol. 6, no. 6, pp. 5474–5488, Dec. 2025, doi: 10.52436/1.jutif.2025.6.6.5336.

G. Chen, C. Du, Y. Yu, H. Hu, H. Duan, and H. Zhu, “A Deepfake Image Detection Method Based on a Multi-Graph Attention Network,” Electronics (Basel)., vol. 14, no. 3, p. 482, Jan. 2025, doi: 10.3390/electronics14030482.

A. N. Abiyyu and M. Rahardi, “Comparison of Transfer learning Models MobileNetV3-Large and EfficientNet-B0 for Rice Leaf Disease Classification,” vol. 10, no. 1, pp. 818–828, 2026.

I. Amerini et al., “Deepfake Media Forensics: Status and Future Challenges,” J. Imaging, vol. 11, no. 3, p. 73, Feb. 2025, doi: 10.3390/jimaging11030073.

K. A. Huang, A. Alkadri, and N. Prakash, “Employing Squeeze-and-Excitation Architecture in a Fine-Tuned Convolutional Neural Network for Magnetic Resonance Imaging Tumor Classification,” Cureus, Mar. 2025, doi: 10.7759/cureus.80084.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Perbandingan EfficientNetB0, MobileNetV2, dan DenseNet121 Berbasis Transfer Learning untuk Deteksi AI-Generated Images

Dimensions Badge
Article History
Submitted: 2026-07-08
Published: 2026-09-30
Abstract View: 132 times
PDF Download: 36 times
How to Cite
Herytra, N., & Suprayogi, S. (2026). Perbandingan EfficientNetB0, MobileNetV2, dan DenseNet121 Berbasis Transfer Learning untuk Deteksi AI-Generated Images. Building of Informatics, Technology and Science (BITS), 8(2), 1099-1111. https://doi.org/10.47065/bits.v8i2.10645
Section
Articles