This project aims to differentiate between AI-generated and real human faces using three distinct methods. Each method leverages different image processing and machine learning techniques to identify distinguishing features and accurately classify the images. Below are the details of each method implemented in this project.
The first method involves using a simple 3-layered CNN to classify images. The CNN is trained to identify distinguishing features in the images and classify them as either AI-generated or real human faces.
- Data Preparation: Load and preprocess the dataset of AI-generated and real human faces.
- Model Architecture: Design a 3-layered CNN.
- Training: Train the CNN on the preprocessed dataset.
- Evaluation: Evaluate the model's performance on a validation set.
The second method involves preprocessing images and applying edge detection filters. This helps in identifying distinguishing features based on edge patterns and color channels, providing a visual comparison between the original and processed images.
- Preprocessing: Apply edge detection filters to the images.
- Feature Extraction: Analyze edge patterns and color channels.
- Comparison: Visually compare the original and processed images to identify distinguishing features.
The third method utilizes frequency domain analysis coupled with a CNN to classify images based on their unique frequency domain representations. This is achieved through the Discrete Fourier Transform (DFT).
- Frequency Domain Conversion: Convert images to their frequency domain representations using DFT.
- Model Architecture: Design a CNN to process the frequency domain representations.
- Training: Train the CNN on the frequency domain representations of the dataset.
- Evaluation: Evaluate the model's performance on a validation set.
The shown results are of the 3rd method
This project demonstrates the versatility of image processing and machine learning techniques in accurately differentiating between AI-generated and real human faces. The complementary strategies provided by the three methods can be applied to various classification tasks involving similar data.