Image Forgery Detection Using Digital Forensic
By
Joud Zyad Al Kadiki (4937)
Sajeda Al Dokale (4199)
Manal Ibrahim Hamammu (4931)
Supervised by
Abdurrahman Elzwai
Fall 2025
CHAPTER 1
INTRODUCTION
1.1 Introduction
In the digital age, images are widely used as evidence in legal, journalistic, and social contexts.
However, with the availability of advanced editing tools, it has become increasingly easy to
manipulate images without leaving visible traces. One of the most common forms of image
tampering is copy-move forgery, where a region within an image is copied and pasted
elsewhere to conceal or alter information.
Detecting such forgeries is a critical task in digital forensics. Traditional methods rely on
hand-crafted features and are often sensitive to post-processing operations. In contrast,
deep learning techniques, particularly Convolutional Neural Networks (CNNs), have
shown great promise by automatically learning discriminative features from raw pixel data with
minimal preprocessing.
This project proposes an implementation of a Dual-Stream Convolutional Neural Network
(CNN) combined with Block-Based Feature Analysis for accurate localization of copy-move
forgeries in digital images.
1.2 Background
Digital image forensics aims to verify the authenticity of digital images and detect any
manipulations. Among various types of forgeries, copy-move forgery is one of the most
challenging to detect due to its high visual consistency — the copied region matches the
surrounding area in color and texture.
Recent advances in deep learning have led to the development of specialized architectures for
this task. The dual-stream design separates the detection of manipulation artifacts (e.g., noise
inconsistencies) from the detection of pixel-level similarity, allowing for more precise
localization. This approach was pioneered by BusterNet [1], which introduced a dual-branch
network with a Manipulation Detection branch and a Similarity Detection branch, fused
together to produce pixel-level source and target masks [1].
Additionally, block-based analysis enhances detection accuracy by dividing the image into
overlapping blocks and comparing their features systematically. Techniques like the Spatio-
Channel Correlation Module (PSCC-Net) provide advanced ways to capture spatial and
channel-wise relationships between blocks, improving the robustness of similarity detection
[2].
1.3 Problem Statement
Accurate localization of copy-move forgeries is essential for maintaining trust in digital media,
especially in forensic and legal applications. However, existing deep learning models often
require high computational resources or rely on complex preprocessing steps, making them
impractical for real-world deployment on standard hardware.
This project aims to develop and train a lightweight dual-stream CNN architecture capable
of performing effective copy-move forgery localization on a local machine with limited
resources (e.g., Core i5 CPU, 8 GB RAM). The goal is to build a model that not only delivers
satisfactory accuracy but can also be saved and reused for future analysis, retraining, and
research purposes without relying on cloud-based solutions.
1.4 Aims and Objectives
The aim of this project is to build and implement a deep learning model using a dual-stream
CNN architecture combined with block-based feature analysis for localizing copy-move
forgeries in digital images on a local machine with limited computational resources, and to
save the trained model for future retraining, analysis, and research applications.
Objectives
1. To implement a Dual-Stream CNN model for copy-move forgery localization.
2. To achieve acceptable performance metrics (e.g., Dice > 0.65, IoU > 0.58, accuracy >
0.90) using limited hardware resources.
3. To ensure the model is lightweight enough to allow saving and retraining for future
applications.
4. To visually validate the model’s predictions by generating source and target localization
masks.
5. To perform block-based feature analysis using a dual-stream CNN, inspired by state-
of-the-art copy-move forgery localization approaches.
CHAPTER 2
LITERATURE REVIEW
2.1 Overview of Copy-Move Forgery Detection
Digital image forgery has become increasingly prevalent due to the availability of advanced
image editing tools. Among various manipulation techniques, copy-move forgery is one of the
most common, where a region of an image is copied and pasted within the same image to
conceal or replicate objects. Since the copied region originates from the same image, it shares
similar color, texture, and noise characteristics, making detection particularly challenging.
Copy-Move Forgery Detection (CMFD) plays a vital role in digital image forensics, especially
in applications related to journalism, legal evidence, and security systems. Effective CMFD
techniques must be robust to post-processing operations such as rotation, scaling, compression,
and noise addition [3].
2.2 Traditional CMFD Techniques
Early CMFD approaches were mainly based on handcrafted feature extraction and similarity
matching. These methods are generally divided into block-based and key point-based
techniques. Block-based methods segment the image into overlapping blocks and extract
features such as DCT, PCA, or Zernike moments, which are then matched to detect duplicated
regions [5], [6].
Although traditional methods are computationally efficient and interpretable, they suffer from
limited robustness to geometric transformations and complex post-processing. Moreover, their
dependency on manually designed features restricts their generalization capability across
different image contents and forgery scenarios [3].
2.3 Deep Learning-Based Approaches
Recent advances in deep learning have significantly improved the performance of CMFD
systems. Convolutional Neural Networks (CNNs) are widely used due to their ability to
automatically learn discriminative features from raw image data. According to the reviewed
study, deep learning-based methods consistently outperform conventional techniques,
particularly in detecting forgeries involving complex transformations [1] [2] [8].
Dual-stream CNN architectures have been introduced to enhance detection accuracy by
learning complementary local and global features. These models improve localization
precision by effectively capturing similarity patterns between duplicated regions. However,
deep learning approaches require large annotated datasets and high computational resources,
which remain major challenges [3].
2.4 Datasets and Evaluation Challenges
The availability of high-quality datasets is critical for training and evaluating CMFD models.
The literature highlights a lack of standardized and diverse benchmark datasets that accurately
represent real-world forgery conditions. Many existing datasets are limited in size and
variation, leading to overfitting and reduced generalization.
Common evaluation metrics include precision, recall, F1-score, and localization accuracy.
However, inconsistent evaluation protocols across studies make fair comparison difficult,
emphasizing the need for standardized benchmarking practices [3].
2.5 Limitations and Future Research Directions
Despite notable progress, several limitations persist in current CMFD research. Robustness
against multiple simultaneous transformations, real-time performance, and model
interpretability remain unresolved issues. Deep learning models often operate as black boxes,
which limits their applicability in forensic and legal contexts.
Future research should focus on developing lightweight and explainable models, constructing
realistic benchmark datasets, and exploring hybrid approaches that combine traditional
methods with deep learning to improve reliability and practicality [3].
Summary
In summary, the literature indicates a clear transition from traditional handcrafted
feature-based methods to deep learning-driven CMFD approaches. While CNN-
based models demonstrate superior performance, challenges related to dataset
diversity, robustness, and interpretability must be addressed to enable effective
real-world deployment.
Comparison of Traditional and Deep Learning-Based CMFD Methods
Aspect Traditional CMFD Methods Deep Learning CMFD Methods
Handcrafted features (DCT, PCA, Automatically learned features (CNN-
Feature Extraction
Zernike, SIFT) based)
Block-based or key point-based
Detection Approach End-to-end learning with neural networks
matching
Limited robustness to rotation, High robustness to complex
Robustness
scaling, noise transformations
Moderate, degrades with post-
Accuracy High accuracy and better localization
processing
Generalization Poor generalization across datasets Better generalization with sufficient data
Computational Cost Low to moderate High (training and inference)
Dataset Requirement Small datasets sufficient Requires large annotated datasets
Interpretability High (features are explainable) Low (black-box nature)
Real-Time Suitability More suitable for real-time systems Limited due to computational complexity
Superior for complex and real-world
Overall Performance Effective for simple forgeries
forgeries
CHAPTER 3
DESIGN AND IMPLEMENTATION
3.1 Introduction
In this project, we implemented a Dual-Stream Convolutional Neural Network (CNN) for
detecting copy-move image forgeries. The implementation was carried out using Python within
a Jupyter Notebook environment, leveraging the TensorFlow and Keras functional API for
building multi-input architectures. The design focuses on merging visual feature extraction
with forensic noise analysis to identify tampered regions [10].
3.2 Dataset Description: CoMoFoD
The CoMoFoD (Copy-Move Forgery Detection) dataset is a specialized image database
designed to benchmark digital forensic algorithms. It focuses specifically on Copy-Move
forgeries, where an object within an image is cloned and moved to another location to hide or
replicate information [7].
1) Composition: The dataset consists of 10,400 images in total. It includes 200 base image
sets (512x512 resolution).
2) Image Categories:
a) Original images (_O): Authentic, untampered photographs.
b) Forged images (_F): Tampered versions where a region has been copied and moved.
3) Robustness Factors: To test the model's reliability, the forged images include various
post-processing operations such as:
a) JPEG Compression (different quality factors).
b) Blurring (averaging, disk, and motion).
c) Noise Addition (Gaussian noise).
d) Color Reductions and contrast adjustments.
4) Application in this Project: This dataset is used to train the Dual-Stream CNN to
recognize the subtle mathematical "breaks" in sensor noise and visual edges caused by
these manipulations.
5) Significance: Unlike standard datasets, CoMoFoD includes post-processed versions
(e.g., JPEG compression, blurring) to test the robustness of forensic algorithms against
common manipulation traces [1].
3.3 Design Documentation
1. Automated Data Labelling and Importing We use a robust script to walk through the
dataset directory and automatically assign labels based on filenames (0 for Authentic, 1 for
Forged) .
Explanation: SRM-inspired filters are highly effective at suppressing image content to
highlight high-frequency noise residuals that are disrupted during cloning operations [3].
2. Forensic Preprocessing (Noise Stream) Significance To capture inconsistencies in
sensor noise, we implemented a specialized high-pass filter based on the Spatial Rich
Model (SRM) [9].
Explanation: This 5x5 SRM-like kernel highlights inconsistencies in the sensor noise
pattern, which are typically broken during a copy-move operation.
3. Model Architecture (Dual-Stream CNN) The architecture follows the "learning rich
features" paradigm [2], employing two parallel streams to process RGB data and noise
residuals simultaneously.
Explanation: By fusing visual and forensic features, the network can detect both visible
artifacts and microscopic noise mismatches [2].
4. Data Generation and Augmentation A custom generator produces synchronized batches
of original images and their filtered noise counterparts.
Explanation: This enables "on-the-fly" processing, feeding the dual-input model with both
data streams simultaneously without overloading memory.
5. Hyperparameters and Training Strategy
Epochs: Selected to balance training time and model convergence.
Steps per Epoch: Ensures the model sees diverse examples in every cycle.
Learning Rate: 0.0001 (Slow learning rate to prevent model bias).
CHAPTER 4
RESULTS AND DISCUSSION
4.1 Data Distribution and Experimental Setup
Following standard deep learning practices [4], and to evaluate the performance of the Dual-
Stream CNN, the CoMoFoD dataset was partitioned into two distinct subsets. This ensures
that the model is tested on "unseen" data, providing a realistic measure of its forensic
capabilities.
Training Set (80%): Consisting of 8,320 images, this subset was used to optimize the
network weights using the Adam optimizer.
Testing Set (20%): Consisting of 2,080 images, this subset was strictly reserved for
final evaluation and the generation of the Confusion Matrix.
4.2 Training Performance Analysis
The model was trained for 8 epochs with a step size of 200 per epoch.
Accuracy Improvement: The training accuracy showed a significant upward trend, moving
away from the 50% "random guess" mark. This indicates that the SRM-inspired noise stream
effectively learned to identify the disrupted noise patterns characteristic of copy-move
forgeries.
Loss Convergence: The binary cross-entropy loss decreased steadily. The low learning rate of
0.0001 and the use of Batch Normalization prevented the model from falling into a "class
bias" (where it predicts everything as forged).
Epochs
Epochs
Accuracy Accuracy
4.3 Evaluation on Unseen Test Data
The final performance was measured using the 20% test set. The results are summarized in
the Forensic Confusion Matrix below.
True Positives (Forged correctly identified): The model successfully identified cloned
regions even when post-processing (like blurring or JPEG compression) was applied.
True Negatives (Authentic correctly identified): By correctly identifying original
images, the model demonstrated that it is not simply "memorizing" forgeries but
understanding the mathematical signature of an authentic camera sensor.
4.4 Summary of Findings
The results confirm that a dual-stream approach is superior to a single RGB-only CNN for
image forensics. While the RGB stream detects visual inconsistencies, the Noise Residual
stream acts as a "magnifying glass" for pixel-level tampering. The 80/20 split validated that
the model has high generalization power, meaning it can detect forgeries in images it has
never seen before, which is a critical requirement for digital forensic tools in real-world
applications [2].
4.5 Future Work
Following the successful implementation of the Dual-Stream CNN for copy-move forgery
detection, several areas for future improvement and expansion have been identified:
Forgery Localization: Current implementation focuses on binary classification
(Authentic vs. Forged). Future work will involve developing a segmentation-based
output, similar to the U-Net architecture, to generate "Heatmaps" or masks that
pinpoint the exact pixels that were tampered with [2].
Transfer Learning Integration: To further improve the feature extraction of the
RGB stream, pretrained backbones such as ResNet50 or VGG16 can be utilized. This
would leverage "ImageNet" knowledge to better understand complex textures before
the fusion stage.
Robustness to Geometric Attacks: Future versions of the model will be trained on
data specifically augmented with rotations and scaling. While the SRM filter is good
for noise, copy-move forgeries that involve resizing require deeper spatial analysis
[4].
Multi-Dataset Validation: To ensure the model is ready for real-world forensic use, it
should be validated on other standard datasets such as CASIA v2.0 or NIST16,
testing its ability to handle different camera sensor signatures [1].
References:-
[1] J. B. Lee et al., “BusterNet: Detecting Copy-Move Image Forgery with Source/Target
Localization,” ECCV, 2018.
[2] Y. Zhang et al., “PSCC-Net: Progressive Spatio-Channel Correlation Network,” IEEE
TIFS, 2021.
[3] I. Shallal, L. R. Haddada, and N. E. B. Amara, "Image Forgery Detection with Focus
on Copy-Move: An Overview, Real World Challenges and Future Directions," Applied
Sciences, vol. 15, no. 21, p. 11774, Nov. 2025.
[4] B. Mahdian and S. Saic, “Detection of Copy-Move Forgery in Digital Images,” ICPR,
2008.
[5] H. Bay et al., “SURF: Speeded Up Robust Features,” CVIU, 2008.
[6] I. Amerini et al., “A SIFT-based Forensic Method,” IEEE TIFS, 2011.
[7] D. Tralic et al., “CoMoFoD — New Database for Copy-Move Forgery Detection,”
ELMAR, 2013.
[8] P. Zhou et al., “Learning Rich Features for Image Manipulation Detection,” CVPR,
2018.
[9] J. Fridrich and J. Kodovsky, “Rich Models for Steganalysis,” IEEE TIFS, 2012.
[10] TensorFlow Developers, “Keras Functional API Documentation,” 2024.