Analisis Perbandingan Kinerja Arsitektur CNN Dan Transformer dalam Klasifikasi Gambar AI-Generated dan Gambar Asli
Authors:
Open Access
- 1 January 2027
- journal article
- Published by Lembaga KITA in Jurnal JTIK (Jurnal Teknologi Informasi dan Komunikasi)
- Vol. 11 (1) , 292-304
Abstract
The advancement of generative artificial intelligence has enabled the creation of increasingly realistic facial images that are difficult to distinguish from authentic images, thereby creating a need for automated classification methods capable of maintaining both accuracy and consistency in detection. This study compares the performance of two deep learning architecture groups, namely Convolutional Neural Networks (CNNs) and Transformers, for the binary classification of AI-generated images and real images. Four models were evaluated: ResNet50 and MobileNetV2 as CNN representatives, and Vision Transformer (ViT) and Data-efficient Image Transformer (DeiT) as Transformer representatives. The dataset was obtained from the 140k Real and Fake Faces dataset on Kaggle, with 28,000 images used in a balanced distribution: 20,000 images for training, 4,000 for validation, and 4,000 for testing. The experimental workflow followed the CRISP-DM framework, comprising business and data understanding, data preparation, modeling, evaluation, and deployment. Model performance was assessed using accuracy, precision, recall, F1-score, confusion matrix, and classification report. The results show that DeiT achieved the best performance, with an accuracy of 86.98%, precision of 86.81%, recall of 87.20%, and F1-score of 87.00%, followed by MobileNetV2, ViT, and ResNet50. In aggregate, the Transformer-based models achieved an average accuracy of 79.5%, which was 7% higher than that of the CNN-based models. The DeiT model was subsequently implemented in a Gradio-based prototype application capable of receiving user-uploaded images, performing inference, and displaying the predicted classification label along with its confidence score.Keywords
This publication has 20 references indexed in Scilit:
- IDENTIFIKASI KONTEN VISUAL BUATAN AI DENGAN RESNET DAN FINE-GRAINED FEATURE EXTRACTIONJurnal Informatika dan Teknik Elektro Terapan, 2025
- Klasifikasi Fake dan Real Menggunakan Vision Transformer dan EfficientNet-B0 pada Gambar Asli dan Generatif AISMATIKA JURNAL, 2025
- AI-Synthesized Image Detection: Source Camera Fingerprinting to Discern the Authenticity of Digital ImagesIEEE Access, 2025
- Wayang’s Images Recognition using Vision TransformerInternasional Journal of Data Science, Engineering, and Anaylitics, 2024
- Performance Comparison and Visualization of AI-Generated-Image Detection MethodsIEEE Access, 2024
- Synthbuster: Towards Detection of Diffusion Model Generated ImagesIEEE Open Journal of Signal Processing, 2023
- Deep fake detection and classification using error-level analysis and deep learningScientific Reports, 2023
- Contrastive learning-based general Deepfake detection with multi-scale RGB frequency cluesJournal of King Saud University Computer and Information Sciences, 2023
- Deepfake Detection: A Systematic Literature ReviewIEEE Access, 2022
- DeepFake Detection for Human Face Images and Videos: A SurveyIEEE Access, 2022