A Detection of Deep Fake in Face Images Using Deep Learning


  • Hanady Sabah Abdul kareem Computer Science Department, College of Science, Al-Nahrain University, Baghdad, Iraq
  • Mohammed Sahib Mahdi Altaei Computer Science Department, College of Science, Al-Nahrain University, Baghdad, Iraq




Deep learning, Deep fake, Generative Adversarial Network, Convolution Neural Network, Principal Component Analysis.


Fake images are one of the most widespread phenomena that have a significant influence on our social life, particularly in the world of politics and celeb. Nowadays, generating fake images has become very easy due to the powerful yet simple applications in mobile devices that navigate in the social media world and with the emergence of the Generative Adversarial Network (GAN) that produces images which are indistinguishable to the human eye. Which makes fake images and fake videos easy to perform, difficult to detect, and fast to spread. As a result, image processing and artificial intelligence play an important role in solving such issues. Thus, detecting fake images is a critical problem that must be controlled and to prevent these numerous harmful effects. This research proposed utilizing the most popular algorithm in deep learning is (Convolution Neural Network) to detect the fake images.

The first steps includes a preprocessing which start with converting images from RGB to YCbCr color space, after that entering the Gamma correction. finally extract edge detection by entering the Canny filter on them. After that, utilizing two different method of detection by applying (Convolution Neural Network with Principal Component Analysis) and (Convolution Neural Network without Principal Component Analysis) as a classifiers.

The results reveal that the use of CNN with PCA in this research results in acceptable accuracy. In contrast, using CNN only gave the highest level of accuracy in detecting manipulated images.


L. Guarnera, O. Giudice, and S. Battiato, “Deepfake detection by analyzing convolutional traces,” Proceedings of the IEEE/CVF conference on computer vision and pattern recognition workshops, pp. 666–667, 2020.

L. S. Wang, 2019.

X. Chang, J. Wu, T. Yang, and G. Feng, 2020.

M. Abadi, P. Barham, J. Chen, Z. Chen, A. Davis, J. Dean, and M. Devin, “{TensorFlow}: a system for {Large-Scale} machine learning,” 12th USENIX symposium on operating systems design and implementation (OSDI 16), pp. 265–283, 2016.

F. Chollet, 2015.

A. Tewari, M. Zollhofer, H. Kim, P. Garrido, F. Bernard, P. Perez, and C. Theobalt, “Mofa: Model-based deep convolutional face autoencoder for unsupervised monocular reconstruction,” Proceedings of the IEEE International Conference on Computer Vision Workshops, pp. 1274–1283, 2017.

G. Antipov, M. Baccouche, and J.-L. Dugelay, “Face aging with conditional generative adversarial networks,” 2017 IEEE international conference on image processing (ICIP), pp. 2089–2093, 2017.

L. Guarnera, O. Giudice, C. Nastasi, and S. Battiato, “Preliminary forensics analysis of deepfake images,” 2020 AEIT international annual conference (AEIT), pp. 1–6, 2020.

Y. Wang, V. Zarghami, and S. Cui, “Fake Face Detection using Local Binary Pattern and Ensemble Modeling,” 2021 IEEE International Conference on Image Processing (ICIP), pp. 3917–3921, 2021.

M. Taeb and H. Chi, “Comparison of Deepfake Detection Techniques through Deep Learning,” Journal of Cybersecurity and Privacy, vol. 2, no. 1, pp. 2022–2022.

S. Tariq, S. Lee, H. Kim, Y. Shin, and S. S. Woo, “Detecting both machine and human created fake face images in the wild,” Proceedings of the 2nd international workshop on multimedia privacy and security, pp. 81–87, 2018.

X. Chang, J. Wu, T. Yang, and G. Feng, 2020.

A. I. Taloba, A. Dalia, Eisa, S. I. Safaa, and Ismail, 2018.

Karamizadeh, S. M. Sasan, A. A. Abdullah, M. Manaf, A. Zamani, and Hooman, “An overview of principal component analysis,” Journal of Signal and Information Processing, vol. 4, 2020.

M. Ahmad, A. M. Khan, J. A. Brown, S. Protasov, and A. M. Khattak, “Gait fingerprinting-based user identification on smartphones,” 2016 International Joint Conference on Neural Networks (IJCNN), pp. 3060–3067, 2016.

M. Ahmad, D. I. Ul, Q. Haq, M. Mushtaq, and Sohaib, “A new statistical approach for band clustering and band selection using K-means clustering,” Int. J. Eng. Technol, vol. 3, no. 6, 2011.

V. Arjun, R. R. Mane, V. Manza, and Karbhari, “Human face recognition using superior principal component analysis (SPCA),” International Journal of Computer Theory and Engineering, vol. 2, no. 5, 2010.

B. Traore, B. Boubacar, F. Kamsu-Foguem, and Tangara, “Deep convolution neural network for image recognition,” Ecological Informatics, vol. 48, 2018.

N. Aloysius and M. Geetha, “A review on deep convolutional neural networks,” 2017 international conference on communication and signal processing (ICCSP), pp. 588–0592, 2017.

J. Ali, R. Khan, N. Ahmad, and I. Maqsood, “Random forests and decision trees,” International Journal of Computer Science Issues (IJCSI), vol. 9, no. 5, 2012.

P. Shahane and D. Gore, “Detection of Fake Profiles on Twitter using Random Forest & Deep Convolutional Neural Network,” International Journal of Management, 2019.

H. Allcott and M. Gentzkow, “Social media and fake news in the 2016 election,” Journal of economic perspectives, vol. 31, no. 2, 2017.

S. Gilda, “Notice of violation of IEEE publication principles: Evaluating machine learning algorithms for fake news detection,” 2017 IEEE 15th student conference on research and development (SCOReD), pp. 110–115, 2017.

J. Han, M. Kamber, and J. Pei, “Data mining concepts and techniques third edition,” The Morgan Kaufmann Series in Data Management Systems, vol. 5, pp. 83–124, 2011.

K. Shu, A. Sliva, S. Wang, J. Tang, and H. Liu, “Fake news detection on social media: A data mining perspective,” ACM SIGKDD explorations newsletter, vol. 19, no. 1, 2017







How to Cite

Hanady Sabah Abdul kareem and Mohammed Sahib Mahdi Altaei, “A Detection of Deep Fake in Face Images Using Deep Learning”, WJCMS, vol. 1, no. 4, pp. 60–71, Dec. 2022, doi: 10.31185/wjcm.92.