Comparative Evaluation of CNN, Random Forest, and SVM for Deepfake Image Classification


  • Dyo Arya Purnama * Mail Universitas Sriwijaya, Palembang, Indonesia
  • Idris Sonny Universitas Sriwijaya, Palembang, Indonesia
  • Ongki Juliandra Universitas Sriwijaya, Palembang, Indonesia
  • Dhafin Rizky Trisandy Universitas Sriwijaya, Palembang, Indonesia
  • Ken Ditha Tania Universitas Sriwijaya, Palembang, Indonesia
  • Alsella Meiriza Universitas Sriwijaya, Palembang, Indonesia
  • (*) Corresponding Author
Keywords: Deepfakes; Machine Learning; Convolutional Neural Networks; Random Forest; Support Vector Machines; Image Classification

Abstract

Deepfake image detection remains a challenging image classification problem because the effectiveness of a detection model can vary according to the classification approach and image representation used. This study comparatively evaluates three classification algorithms, namely Convolutional Neural Network (CNN), Random Forest, and Support Vector Machine (SVM), for distinguishing real facial images from deepfake images. The dataset consists of two classes, real and deepfake images, which undergo preprocessing through resizing to 32 × 32 pixels and pixel normalization from 0–255 to 0–1. The preprocessed dataset is divided into 80% training data and 20% testing data. CNN performs feature learning through convolutional layers, whereas Random Forest and SVM perform classification based on the prepared image feature representation. Model performance is evaluated using accuracy, precision, recall, and F1-score on the testing data. The experimental results show that CNN achieves the highest performance, with 91% accuracy, 93% precision, 88% recall, and 91% F1-score, followed by SVM with 77% accuracy and Random Forest with 75% accuracy. Thus, under the experimental conditions of this study, CNN provides better classification performance than the two conventional machine-learning algorithms. However, the result is limited to the dataset, 32 × 32 pixel input representation, and experimental configuration used in this study; therefore, the 91% accuracy should not be interpreted as evidence of general superiority across other datasets or deepfake generation techniques. These findings provide an empirical comparison of the three approaches and highlight the need for cross-dataset and higher-resolution evaluation in subsequent research.

Downloads

Download data is not yet available.

References

R. Ratnawita, “Cybersecurity in the AI Era Measures Deepfake Threats and Artificial Intelligence-Based Attacks,” Journal of the American Institute, vol. 2, no. 2, pp. 180–189, Feb. 2025, doi: 10.71364/s3emxx77.

K. T. Pedersen, L. Pepke, T. Stærmose, M. Papaioannou, G. Choudhary, and N. Dragoni, “Deepfake-Driven Social Engineering: Threats, Detection Techniques, and Defensive Strategies in Corporate Environments,” Journal of Cybersecurity and Privacy, vol. 5, no. 2, p. 18, Apr. 2025, doi: 10.3390/jcp5020018.

L. Gaur, DeepFakes. New York: CRC Press, 2022. doi: 10.1201/9781003231493.

F. Hu and X. Hei, “AI, Machine Learning and Deep Learning: A Security Perspective,” AI, Machine Learning and Deep Learning: a Security Perspective, pp. 1–334, Jan. 2023, doi: 10.1201/9781003187158/AI-MACHINE-LEARNING-DEEP-LEARNING-FEI-HU-XIALI-HEI/RIGHTS-AND-PERMISSIONS.

A. A. Khan, A. A. Laghari, S. A. Inam, S. Ullah, M. Shahzad, and D. Syed, “A survey on multimedia-enabled deepfake detection: state-of-the-art tools and techniques, emerging trends, current challenges & limitations, and future directions,” Discover Computing, vol. 28, no. 1, p. 48, Apr. 2025, doi: 10.1007/s10791-025-09550-0.

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.

Y. Zhang, Z. Pang, S. Huang, C. Wang, and X. Zhou, “Unmasking AI-created visual content: a review of generated images and deepfake detection technologies,” Journal of King Saud University Computer and Information Sciences, vol. 37, no. 6, p. 148, Aug. 2025, doi: 10.1007/s44443-025-00154-8.

T. Luan, “A Survey on Deepfake Detection Technologies,” International Journal of Emerging Technologies and Advanced Applications, vol. 2, no. 1, pp. 1–9, Feb. 2025, doi: 10.62677/IJETAA.2501131.

A. Raza et al., “A Comprehensive Review of Deepfake Detection Techniques: From Traditional Machine Learning to Advanced Deep Learning Architectures,” AI, vol. 7, no. 2, p. 68, Feb. 2026, doi: 10.3390/ai7020068.

O. A. H. H. Al-Dulaimi and S. Kurnaz, “A Hybrid CNN-LSTM Approach for Precision Deepfake Image Detection Based on Transfer Learning,” Electronics (Basel)., vol. 13, no. 9, p. 1662, Apr. 2024, doi: 10.3390/electronics13091662.

A. Al-Adwan, H. Alazzam, N. Al-Anbaki, and E. Alduweib, “Detection of Deepfake Media Using a Hybrid CNN–RNN Model and Particle Swarm Optimization (PSO) Algorithm,” Computers, vol. 13, no. 4, p. 99, Apr. 2024, doi: 10.3390/computers13040099.

Muh. H. A. Akbar, J. Jimsan, Y. Yahya, I. Ilcham, and N. Nasrullah, “XceptionNet-based Digital Image Forensics with DFRWS Framework for Deepfake Detection,” Insect (Informatics and Security): Jurnal Teknik Informatika, vol. 11, no. 2, pp. 221–228, Oct. 2025, doi: 10.33506/insect.v11i2.4996.

E. M. Dharma, N. M. S. Iswari, and I. P. R. A. Arimbawa, “DeepFake Image Detection Using Convolutional Neural Network with EfficientNet Architecture,” G-Tech: Jurnal Teknologi Terapan, vol. 9, no. 4, pp. 1829–1838, Oct. 2025, doi: 10.70609/g-tech.v9i4.7727.

R. Afandi and B. Purnama, “Detecting Deepfake Videos Using CNN and GRU Methods: Evaluating Performance on the Celeb-DF(v2) Dataset,” Jurnal Sistem Komputer dan Informatika (JSON), vol. 7, no. 2, pp. 448–458, Dec. 2025, doi: 10.30865/json.v7i2.9372.

D. V. Kavitha, A. Dhanalakshmi, A. Sweena, and V. S. R. Harshini, “AI-Powered Deepfake Detection Using Ensemble Learning,” International Journal of Engineering and Computer Science, vol. 14, no. 12, pp. 28070–28077, 2025, doi: 10.18535/ijecs/v14i12.5365.

Hemanth Chandra N, Nikhitha S Naik, and Sameeksha A B, “Deepfake Creation and Detection of Multimedia Data,” International Journal of Advanced Research in Science, Communication and Technology, vol. 12, no. 1, pp. 36–41, Feb. 2024, doi: 10.48175/IJARSCT-15308.

Nimrita. Koul, “Ultimate Deepfake Detection Using Python Master Deep Learning Techniques Like CNNs, GANs, and Transformers to Detect Deepfakes in Images, Audio, and Videos Using Python (English Edition),” 2024, Accessed: Apr. 03, 2026. [Online]. Available: https://books.google.com/books/about/Ultimate_Deepfake_Detection_Using_Python.html?id=AHkqEQAAQBAJ

T. Moulahi, M. N. Halgamuge, and P. Lorenz, Mitigating the Risks of AI Deepfakes. Boca Raton: CRC Press, 2026. doi: 10.1201/9781003539032.

J. Mu, M. Adrezo, and A. N. Haikal, “Identifikasi Wajah Asli dan Buatan Deepfake Menggunakan Metode Convolutional Neural Network,” Teknika, vol. 13, no. 1, pp. 45–50, Jan. 2024, doi: 10.34148/teknika.v13i1.705.

A. F. Akbar, P. D. W. Ayu, and D. P. Hostiadi, “Performance Analysis of Deep Learning Architectures in Classifying Fake and Real Images,” JUITA: Jurnal Informatika, vol. 13, pp. 167–176, Aug. 2025, doi: 10.30595/juita.v13i2.25790.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Comparative Evaluation of CNN, Random Forest, and SVM for Deepfake Image Classification

Dimensions Badge
Article History
Submitted: 2026-03-25
Published: 2026-06-30
Abstract View: 0 times
PDF Download: 0 times
How to Cite
Purnama, D., Sonny, I., Juliandra, O., Trisandy, D., Tania, K., & Meiriza, A. (2026). Comparative Evaluation of CNN, Random Forest, and SVM for Deepfake Image Classification. Building of Informatics, Technology and Science (BITS), 8(1), 677-686. https://doi.org/10.47065/bits.v8i1.9555
Issue
Section
Articles

Most read articles by the same author(s)

<< < 1 2