AI Image Detection Using an Ensemble of Efficientnet, Resnet and Vision Transformer
DOI:
https://doi.org/10.15407/intechsys.2026.04.099Keywords:
synthetic image detection, deepfake detection, ensemble learning, EfficientNet, Vision Transformer, transfer learning, CIFAKEAbstract
Modern generative models, such as GANs and diffusion models, produce highly realistic synthetic images that are virtually indistinguishable from authentic photographs, posing significant risks in forensics, journalism, and data verification. To address the need for a fast and accessible detection tool, this paper proposes an ensemble approach combining EfficientNet-B0, ResNet-50, and ViT-B/16 architectures. Fine-tuned via transfer learning on the CIFAKE and AI-vs-Real datasets, the ensemble leverages CNNs for local texture anomaly detection and the Vision Transformer for global patch dependencies. Evaluated on a 2,000-image test set using soft voting, the model achieved an accuracy of 89.60%, precision of 92.94%, recall of 85.70%, an F1-score of 89.17%, and an AUC-ROC of 0.9641. The notably high precision minimizes false accusations of tampering. The system is deployed as a scalable web application utilizing a microservices architecture (React, Node.js, FastAPI, PostgreSQL, Docker).
References
Castillo Camacho I., Wang K. A Comprehensive Review of Deep-Learning-Based Methods for Image Forensics. Journal of Imaging, 2021, Vol. 7 (7), Article 69. https://doi.org/10.3390/jimaging7070069
Bird J.J., Lotfi A. CIFAKE: Image Classification and Explainable Identification of AI-Generated Synthetic Images. IEEE Access, 2024, Vol. 12, 15642–15650. https://doi.org/10.1109/ACCESS.2024.3356122
Patel Y., Tanwar S., Bhattacharya P., et al. An Improved Dense CNN Architecture for Deepfake Image Detection. IEEE Access, 2023, Vol. 11, 22081–22095. https://doi.org/10.1109/ACCESS.2023.3251753
Lu S., Ebrahimi M. Assessment Framework for Deepfake Detection in Real-World Situations. EURASIP Journal on Image and Video Processing, 2024, Vol. 2024, Article 9. https://doi.org/10.1186/s13640-024-00624-5
Lei S., Song J., Feng F., et al. Deepfake Face Detection and Adversarial Attack Defense Method Based on Multi-Feature Decision Fusion. Applied Sciences, 2025, Vol. 15 (12), Article 6588. https://doi.org/10.3390/app15126588
Tran V.-N., Lee S.-H., Le H.-S., Kwon K.-R. DiffCoR: Exposing AI-Generated Image by Using Stable Diffusion Model. IEEE Open Journal of Computer Society, 2025, vol. 6, 1353–1365. https://doi.org/10.1109/OJCS.2025.3575507
Lokner Lađević A., Kramberger T., Kramberger R., Vlahek D. Detection of AI-Generated Synthetic Images with a Lightweight CNN. AI, 2024, Vol. 5 (3), 1575–1593. https://doi.org/10.3390/ai5030076
Yang Q., Cai Y., Yan R., Zhang G. Detecting Deepfakes Using Two-Stream Framework Based on EfficientNet and Vision Transformer. Journal of Electrical and Computer Engineering, 2026, Vol. 2026, Article 9686924. https://doi.org/10.1155/jece/9686924
Çınar O., Doğan Y. Novel Deepfake Image Detection with PV-ISM: Patch-Based Vision Transformer for Identifying Synthetic Media. Applied Sciences, 2025, Vol. 15 (12), Article 6429. https://doi.org/10.3390/app15126429
Guarnera L., Giudice O., Guarnera F., et al. The Face Deepfake Detection Challenge. Journal of Imaging, 2022, Vol. 8 (10), Article 263. https://doi.org/10.3390/jimaging8100263
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Copyright Holder is the publisher of the Paper (The Institute of Information Technologies and Systems of the NAS of Ukraine), and/or the publisher of the Paper (PH "Akademperiodika" of the NAS of Ukraine), to that the The Institute of Information Technologies and Systems of the NAS of Ukraine on the basis of a sublicense publishing agreement granted the right to publish the work and the right to indicate the publisher after the copyright sign.

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
The paper is an Open Access under the CC BY-NC-ND 4.0 license - Attribution-NonCommercial-NoDerivatives 4.0 International.