International Journal of Informatics and Computation
Vol. 8 No. 2 (2026): International Journal of Informatics and Computation

Comparing CNN Model Performance for Classifying Original Images Versus AI-Generated Images

Desi Fatmala Susilawati (Universitas Mataram, Indonesia)
Bulkis Kanata (Universitas Mataram, Indonesia)
Lalu A Syamsul Irfan (Universitas Mataram, Indonesia)



Article Info

Publish Date
26 Aug 2026

Abstract

The rapid development of generative artificial intelligence (AI), including systems such as Gemini AI, enables the creation of highly realistic images that closely resemble authentic photographs, making visual content verification increasingly challenging. This study aims to develop and implement a Convolutional Neural Network (CNN)-based system for classifying real and AI-generated images by comparing three pretrained architectures: ResNet50, Xception, and EfficientNetB0. We utilize a dataset of 20,000 images, consisting of 10,000 real images and 10,000 AI-generated images. The dataset is divided into 80% training, 10% validation, and 10% testing data. We preprocess the images by resizing them to 224 × 224 pixels, normalizing pixel values, and applying data augmentation through rotation, flipping, scaling, and brightness adjustment. We apply two-stage gradual fine-tuning combined with a learning rate scheduler to maintain stable model convergence. The evaluation results on the test set show that Xception achieves the best performance, with an accuracy of 91.10% and precision, recall, and F1-score of 91%. ResNet50 achieves an accuracy of 87.15%, while EfficientNetB0 achieves 83.95%. ResNet50 shows mild signs of overfitting after the tenth epoch, whereas Xception and EfficientNetB0 demonstrate more stable training behavior. We further implement the trained models in an interactive Python-based Streamlit application, allowing users to upload images and obtain classification results from all three models simultaneously. The results demonstrate the potential of CNN-based architectures, particularly Xception, for automated detection of AI-generated images and for supporting the security and credibility of digital visual content.  

Copyrights © 2026






Journal Info

Abbrev

ijicom

Publisher

Subject

Computer Science & IT

Description

International Journal of Informatics and Computation (IJICOM) is an international, peer-reviewed, open-access journal, that publishes original theoretical and empirical work on the science of informatics and its application in multiple fields. Our concept of Informatics includes technologies of ...