Skip to main content

Advances, Systems and Applications

Source camera identification: a distributed computing approach using Hadoop


The widespread use of digital images has led to a new challenge in digital image forensics. These images can be used in court as evidence of criminal cases. However, digital images are easily manipulated which brings up the need of a method to verify the authenticity of the image. One of the methods is by identifying the source camera. In spite of that, it takes a large amount of time to be completed by using traditional desktop computers. To tackle the problem, we aim to increase the performance of the process by implementing it in a distributed computing environment. We evaluate the camera identification process using conditional probability features and Apache Hadoop. The evaluation process used 6000 images from six different mobile phones of the different models and classified them using Apache Mahout, a scalable machine learning tool which runs on Hadoop. We ran the source camera identification process in a cluster of up to 19 computing nodes. The experimental results demonstrate exponential decrease in processing times and slight decrease in accuracies as the processes are distributed across the cluster. Our prediction accuracies are recorded between 85 to 95% across varying number of mappers.


As we live in an era of high technology, digital images are commonly used due to the availability of various models of digital cameras. Each day, more and more digital cameras are invented by technology companies. Consequently, digital cameras have become more affordable for the consumers to own. Mobile phones are now equipped with digital cameras. This has further increased the number of individuals owning image capturing devices. As a consequence, thousands of images are being created each day with some of them capturing a critical moment in time such as a crime. These images can be used in court as evidence to demonstrate the relationship between the suspects and criminals [18]. However, a major issue in using digital images as evidence in court is that digital images are easily created and manipulated without leaving any obvious traces of modifications. Evidence manipulation causes the credibility and authenticity of the digital image to be questioned [12]. Therefore, we need more tools and applications to address the problem of verifying the authenticity of an image [12, 18].

Image authenticity is able to be verified through various methods ranging from a simpler method like comparing the EXIF metadata method to a complex method like tracing the digital fingerprints of the image. The latter seems to be more reliable and has attracted a growing interest among researchers in image forensics [16]. The digital fingerprints of an image provide distinguishing characteristics of the image. Therefore, the forensic analyzer is able to track the possible source camera of the image under investigation whether it is acquired by the device that it is claimed to be sensed with. Source camera identification has been the focus of recent research with various techniques being investigated [14].

There are a number of approaches in source camera identification which are divided into two main categories: hardware and software-related [3, 911]. The hardware-related approach is caused by defects in the lens of the camera or any flaws in the device’s sensors. In addition, hardware-related is further divided into two sub-categories which are the optics and sensors. The software-related approach comprises image-related statistics and camera processing. Statistical category considers factors such as higher order statistics and conditional probability, while the processing category consists of image processing tasks like the CFA configuration and colour interpolation. For example, McKay et al. [10] used CFA interpolation coefficients and noise features in identifying the source camera of the image which obtained an average accuracy of 93.75%. Kharrazi et al. [9] achieved 98.73% accuracy by using statistical features (average pixel values, wavelet domain statistics). Bayram et al. [3] successfully used CFA interpolation coefficient but implemented it on different sizes of interpolation kernel. Hu et al. [8] compared the most common features used in source camera identification and obtained 92% accuracy when combining all compared features. However, the aforementioned works extracted a high number of features on large data sets which affected the total processing time. Wahab and Bateman [17] used conditional probability features and obtained an accuracy of 92.5% by using only 27 features. In spite of that, processing time remains an issue and a few works [13, 19, 21] addressed the problem by implementing image processing in a distributed computing environment.

A distributed computing environment enables multiple remote computers connected through a network to perform a specific task concurrently. As a result, the processing capacity of the computers is combined and hence significantly reduces the processing time compared to running the task on a single computer. The processing time is reduced because complex tasks and operations can be broken into smaller tasks that can be executed on different computers in parallel. Han et al. [7] implemented a prototype in the field of life sciences to demonstrate the linear-speedups achieved with the increasing number of distributed computing nodes. They highlighted two ways to fully utilize distributed computing in image processing which are task and data parallelism. Zhang et al. [20] achieved 91% time saving by implementing image processing in distributed computing using Hadoop.

Hadoop is a popular open source distributed computing platform under the Apache Software Foundation. It is a framework that allows for the distributed processing of large data sets across clusters of computers using a simple programming model (2014a). MapReduce is the programming model that enables massive scalability across Hadoop clusters. It is a Java based framework which breaks a job into two separate parts: map and reduce. The map function breaks down individual elements into key-value pairs which are then reduced into a single value through the reduce function. MapReduce easily parallelizes the image processing across multiple computing nodes with the help of another Hadoop module, Hadoop YARN. It schedules all the jobs and manages the Hadoop cluster.

This paper investigates the effect of executing source camera identification in a distributed computing environment by using Hadoop. We aim to evaluate the performance of the source camera identification on Hadoop in terms of execution time. This includes image feature extraction and classification using Apache Mahout. We also evaluate the accuracy of Random Forest classifier across different number of mappers in the Hadoop cluster. Finally, we analyze the trade-off between the performance of the image classification and the distributed computing environment.

The contributions of this paper are summarized as follows:

  1. 1.

    We proposed and developed a source camera identification tool that runs the entire identification process on Hadoop. It is a significant contribution because it addressed the limitation in the study by [4] which did not implement the machine learning phase as a distributed process.

  2. 2.

    The results achieved through the study showed that implementing source camera identification in a distributed computing managed to reduce the overall execution time. It took just 28 min to complete the process involving 6000 images that hold a total size of 20GB on a 19-node Hadoop cluster. As a comparison, a traditional single node computing took 2 h and 42 min to complete the same process.

  3. 3.

    This study scored high classification accuracies even as the number of mappers are varied. We recorded 95% prediction accuracy on a single mapper. On the lower end, we obtained 85% accuracy when the number of mappers are increased to 10. Besides that, our Hadoop cluster reached full utilization during the identification process.

  4. 4.

    We presented a comprehensive evaluation of the conditional probability features for source camera identification.

The rest of the paper is organized as follows: Section 2 contains the related works in the field. It is further divided into two sub-sections which presented the distributed machine learning tools used in the study. The methodology of the study is discussed in Section 3. It is divided into several sub-sections: (i) Apache Hadoop Experimental Setup (ii) Data Collection and Image Processing in Hadoop (iii) Image Classification. Section4 contains a discussion on the results of the experiment. The execution times and accuracies of the classification are discussed here. Finally, Section 5 presents the concluding remarks of the paper.

Related work

Image authenticity is important when images are to be used as evidence in legal cases. Law enforcers are required to prove to the court that the presented images have not being altered in any way. One of the simplest methods to verify image authenticity is through the use of metadata [1]. A metadata is a piece of information that describes other data. For instance, a metadata for a text file may contain the date and time the document was created. Digital images may also contain metadata through the Extended File Information header (EXIF). An EXIF header holds the information about the device that captured the image. It is useful to law enforcers when proving the authenticity of an image in court as they can determine whether the image is modified. However, EXIF headers are less reliable because it can be missing if the image’s file format is changed. The information in the EXIF header is easily editable through software like ExifTool [16]. The emergence of image manipulating software like ExifTool forces researchers to find more reliable approaches in verifying image authenticity. One approach is through source camera identification.

Source camera identification is the process to trace the original device which had produced a particular image. Kharazzi et al. [9] highlighted the fact that each image capturing device has its own unique characteristics. These unique features are extracted to classify the recovered image according to its source camera. However, a large number of features and collections of image are required to build the classifier. For example, Kharazzi et al. used 34 features which included average pixel value, RGB pairs correlation and wavelet domain statistics. Their image data set had 300 images with 40% of the data set serving as the training set. Similar features were used in [14] but only 150 images were included in their data set, half of the number used in [9]. They achieved 98.94% accuracy, improving 0.21% compared to [9]. A combination of features also presented reasonable result of 92% accuracy in Hu et al. [8] that proposed a combination of five of the most common features used in source camera identification: wavelet features, colour features, image quality matrix (IQM), statistical features of different images and statistical features of prediction errors. The total number of features used was 102 with 300 images in their data set. A new method in source camera identification is proposed in [17] where conditional probability features are used to detect the source of an image. An improvement in the size of features is achieved with only 27 features extracted from 400 images. The study managed to achieve 92.5% accuracy. It is clearly observed that the large number of features and size of data set presents an issue where the processing time taken is high [21]. To address this problem, distributed computing is used to perform the image processing.

Distributed computing is an alternative to improve the performance and processing time of an application. By distributing the workload among multiple connected computers, a process is executed in parallel thus reducing the completion time. Han et al. [7] demonstrated that implementing image processing in distributed computing environment reduced the execution time and achieved linear-speedups with increasing number of computing nodes. They focused on two ways to make use of distributed computing: data parallel and task parallel pipeline streaming. Data parallel pipelining streaming applies when the input of a process is not dependent on any other factors, the particular process is able to be distributed into multiple computing resources and executed in parallel. For example, in source camera identification, the feature extraction process is spread to different computing nodes and run in parallel. As a result, it reduces the execution time taken for extracting the features from the images. On the other hand, task parallel pipeline streaming applies when different pairs of nodes are running on a different line in a workflow. As the output of one pair of nodes never reaches the other pairs, these nodes can be implemented in distributed computing. A very easy approach to apply distributed computing is by using Hadoop [4, 13].

Hadoop is an open source distributed computing platform developed by Apache Software Foundation. It is built to handle large data sets (or big data) on distributed systems (DS). DS is a group of connected computing nodes (computers) which may be geographically dispersed. By using Hadoop, the workload of a process is spread across the nodes of a DS. Hence, the completion time is reduced [20]. Sarade et al. [13] proposed the implementation of image processing in distributed computing by using Hadoop. They defined the workflow of the system to consist of the following steps: (i) images being uploaded into the Hadoop Distributed File System (HDFS) (ii) image processing through MapReduce (iii) presentation of results. The paper focused on the processing of satellite images particularly on image scaling, feature extraction and image recognition. Similar experimental setup was used in [20] where multiple sets of Hadoop cluster were formed to observe the execution time as the number of computing nodes changed. The results showed that a traditional single node computer took 1967 s to process 800 images while a Hadoop cluster containing 10 nodes took only 253 s. Besides reducing execution times through distributed computing, Hadoop also supports distributed machine learning through Apache Mahout [5].

Few works have been published on large scale source camera identification particularly on distributed computing such as [4, 6]. Miroslav et al. [6] introduced a fast searching algorithm based on ‘fingerprint digests’ to quickly search through a database for a specific fingerprint of a camera which might correspond to the source camera of a given image. They experimented on a database containing over 2000 iPhones with the help of MATLAB software. Although the study showed the feasibility of the algorithm, it did not highlight the use of distributed computing to manage the large dataset. Cattaneo et al. [4] presented a scalable approach to source camera identification over Hadoop. They used 33 commodity PCs as their Hadoop cluster with 32 of them serving as the slave nodes. They experimented with 20 Nikon D90 digital cameras with 258 JPEG images captured from each camera. Their results recorded an impressive accuracy of ≈ 99.7% and close to 6 h of execution time.

However, the aforementioned works have similar limitation which is that distributed computing is not applied to all the process involved in the identification of the source camera. For instance, in [4], the machine learning phase was not implemented as a distributed process. Instead, they ran their classifier training and testing phase using sequential SVM-based classifier. Therefore, we aim to provide a combination of approaches from the distributed computing perspective, particularly by using Hadoop together with the distributed machine learning algorithms by using WEKA and Mahout to identify the source camera of an image. This study enables source camera identification which is an important branch of image forensics to be done in a more efficient manner and reduce the overall execution time.

Apache mahout

Mahout is an open source machine learning tool developed by Apache. Among the algorithms implemented in Mahout include collaborative filtering, clustering and classification. Mahout is scalable and it can support massive datasets that are too large to be processed on a single machine. It does not provide any user interface as it is basically a JAVA library. It provides a framework of tools that is to be used or customized by developers. Mahout is an advantage in our work as it is readily developed to run on Hadoop. The classification algorithms are mostly compatible to run on Hadoop’s MapReduce programming framework which enables them to be executed as a distributed process.

The advantage of Mahout in classifying large datasets starts to show when the size of the training samples gets extremely large [11]. Mahout’s may even perform slower than traditional non-Mahout approaches on small datasets because it must overcome overheads for being a distributed approach.

Figure 1 is a conceptual graph which illustrates the advantages that Mahout holds when dealing with large datasets. Based on the graph, when the size of dataset is relatively small, it is sufficient to use traditional or standalone machine learning tool. However, as the size of samples increases, Mahout’s scalable algorithms perform better in terms of execution times [11].

Fig. 1
figure 1

Advantages of Mahout for classification of large datasets

Ericson and Pallickara [5] implemented Mahout’s classification algorithm in their work to compare the difference in processing time when executing on Hadoop and Granules. They have used two classifier algorithms in their comparison: Naïve Bayes and Complementary Bayes. Their study showed the reliability and scalability of Mahout in handling large datasets.


To evaluate the performance of the source camera identification process in distributed environments, Apache Hadoop was used as the distributed computing platform. Hadoop cluster was set up using Amazon Elastic Map Reduce (EMR). EMR is chosen in this study due to resource constrain. By using EMR, we can easily build a cluster of up to 19 nodes in a few minutes. In order to explain the experimental setup in greater detail, the section is divided into three subsections: Apache Hadoop cluster setup, data collection and image processing and finally the classification. The first subsection discusses the experimental setup of Apache Hadoop cluster in detail. The data collection phase and the implementation of image feature extraction in Hadoop are presented in the second subsection while the final subsection presents the classification process using Apache Mahout. The workflow of the study is depicted in Fig. 2.

Fig. 2
figure 2

Workflow of the experiment

Apache Hadoop experimental setup

The HDFS has two main elements which are the NameNode and DataNode. A NameNode is usually assigned to a single machine with the highest capacity resources. It acts as the central point of Hadoop distributed system. It manages the file system and records on which node the file data is stored. The DataNode is responsible for data storage. A Hadoop cluster consists of multiple DataNodes spread among the cluster and data are replicated across them.In this study, Amazon EMR is used to build the Hadoop cluster. It allows us to easily scale the cluster to fit our needs. We started the experiment by building a 5-node Hadoop cluster before gradually increasing the nodes until we obtained a 19-node cluster. The Hadoop cluster configurations are shown in the following table: (Tables 1 and 2).

Table 1 Cluster hardware configurations
Table 2 Cluster software configurations

The EMR Hadoop cluster maintained the default memory configurations because the instances used were sufficiently large in terms of resources. Table 3 shows the default configuration of the cluster. However, our experiments altered the default number of maps and reduces through the following properties: mapreduce.job.maps and mapreduce.job.reduces.

Table 3 Hadoop cluster memory configurations

Table 4 shows a more detailed specification of resources on different clusters used in this study. It is worth noting that although each node had 15GB of memory, the total memory in a cluster reserved 3.75GB from each node for the operating system.

Table 4 Cluster resources

Data collection and feature extraction in Hadoop

In the data collection phase, a total of 6000 images were collected from six different mobile phone cameras. All of the mobile phones were from different brands and models: iPhone 4S, iPhone 5S, Sony Xperia C, Sony Xperia Z, Samsung Galaxy Note 3 and Samsung Galaxy Note 4.A total of 1000 images are captured from each mobile phone captured. These images are uploaded into Amazon S3 cloud storage. The total size of the images reached 20 GB where the average size of each image was 3.4 MB. A Python script is written to extract the conditional probability features using the MapReduce framework. Although Hadoop is known to accept Java MapReduce codes, it also provides a streaming API that accepts other programming languages such as Python. We carried out multiple rounds of feature extraction each being in a cluster of different number of nodes. We strictly enforced that each image would be assigned a single map process and no reduce process was involved by configuring two Hadoop’s properties as follows: mapreduce.job.maps and

Besides that, Python’s Pillow library is used to carry out image processing such as pixel manipulation in this study. Pillow is an actively maintained fork of Python Imaging Library (PIL). It provides various functions to read and manipulate images. All 6000 images are read into their respective 3D RGB pixel array.Then, they are converted into 2D grayscale pixel array to allow 2D DCT to be applied. We discuss conditional probability features in more details in the following subsection.

Conditional probability features

The conditional probability feature set was initially proposed in [15] based on JPEG coefficient values for image steganalysis. Wahab and Bateman [17] used CP features to identify the source camera of an image among four different iPhone cameras. They managed to achieve 92.5% accuracy with 27 extracted features. The CP features capture software-related artifacts generated from the absolute values of the three selected block wise DCT coefficients during JPEG compression. Manufacturers normally configure their devices differently to balance compression and quality to their own tastes and needs. This variation in the JPEG quantization table can be used to identify the source of the image. In spite of that, although it is expected that cameras of the same make and model utilize similar quantization table during JPEG compression, in previous studies CP features achieved substantial performance for individual camera device identification. This means the proposed feature extraction method allows to develop intrinsic camera device fingerprint with relatively small size as well as small intra-model similarity that is ideal to differentiate among camera devices of even the same model. The feasibility of CP features on individual camera device identification could be explained based on the related study in [2]. The method proposed statistical process control (SPC) as a tool for identifying anomalies in the image acquisition process of the digital camera. In this study, X-Moving Range and Exponentially Weighted Moving Average (EWMA) control charts are used to highlight the variation for a subset of the devices, in order to determine a suitable fingerprint for matching a device to its source. Hence, it is possible to assume that the CP features capture anomalies in the JPEG compression process corresponding to individual camera devices.

The CP features are computed as follows: (i) using the DCT transform, the three DCT coefficients were selected from the 4 × 4 left upper sub-block, in view of the fact that the most non-zero coefficients are located in that region; (ii) the method illustrated three possible arrangements (horizontal, vertical and diagonal) of the three selected DCT coefficients in 4 × 4 sub-block. Figure 3 shows the different orientations of the three DCT coefficients; (iii) based on the concept of conditional probability, the image features were extracted by evaluating the absolute values of three selected blockwise DCT coefficients p, q and r in horizontal, vertical and diagonal directions; (iv) for every selected p, q and r, three preconditions with respect to event A and three probabilities corresponding to event B were considered as follows,

$$ {\mathrm{A}}_1:p<q,{\mathrm{A}}_2:p>q,{\mathrm{A}}_3:p=q $$
$$ {\mathrm{B}}_1:r<q,{\mathrm{B}}_2:r>q,{\mathrm{B}}_3:r=q $$
Fig. 3
figure 3

Conditional probability orientations: horizontal, vertical and diagonal

and, finally (v) the algorithm merged the event A and B corresponding to a total of nine CP features. Thus, a total of 9 × 3 = 27 CP features were computed for three different orientations.

Image classification

We obtained 6000 feature files from the feature extraction process. Then, we ran a Python script to convert and append all the feature files into a single comma delimited (CSV) file to matchApache Mahout’s input format. We reduced the number of computing nodes to 3 and only varied the number of mappers during the classification process. The classification process implemented Mahout’s Random Forest algorithm used the following default options:

  1. i)

    Number of trees to be generated, I = 100

  2. ii)

    Number of attributes to be used in random selection, K = 15

The number of random features to be selected, K, during the build process is selected using cross validation parameter selection. We have tested a range of numbers and identified 15 as the selection that gave the best results. The performance of the algorithms are evaluated using 10-fold cross validation method.The crossvalidation method divides the extracted features into ten equal sets. Each set is further divided into two groups: 90% training set and 10% testing set. Then, it builds classifier models for each set before averaging the performance of all the classifiers. Cross validation produces a more reliable result as it uses a unique split when evaluating the performance of the classifier. We repeated the classification process using 1,3,5,7 and 10 mappers to observe the performance of the model.

Results and discussion

In this paper, a distributed computing cluster was built using Amazon EMR Hadoop. Multiple clusters with up to 19 nodes were used to demonstrate the effect of implementing source camera identification process in distributed computing. The execution times obtained on different clusters are compared to a single node standard computer having the same technical specifications. Table 5 shows the experimental results.

Table 5 Processing times of each different clusters

An exponential decrease in processing times are recorded. A single node computer took nearly 3 h to complete the source camera identification process. The process included feature extraction of 6000 images and classification.When the same process is run on a 5-node cluster, we observed 34% improvement in processing time. A similar pattern followed when 10, 15 and 19 nodes are used. We achieved 83% decrease when running the process in the 19-node cluster. On the other hand, we achieved full memory utilization during the process. Figure 4 shows the graph of processing times against the number of nodes while Fig. 5 shows a screenshot of the 19-node cluster utilization.

Fig. 4
figure 4

Graph of processing times against number of nodes

Fig. 5
figure 5

19-node cluster resource utilization

To gauge the performance of the Hadoop cluster further, the speedup is also chosen as our metric. Speedup is defined as the ratio of the execution time on a single node computer (T 1 ) to the execution time as the number of nodes in the cluster is increased. It is represented by the following equation:

$$ speedup={T}_1/{T}_n $$

Figure 6 shows the speedup as more computing nodes are added to the cluster. From the graph, it is evident that we obtain an impressive linear speedup. It proves Hadoop’s superiority when dealing with large datasets. We have also noted that even the largest cluster used in this study achieved full utilization. This shows that a larger Hadoop cluster can be used to obtain better performance. The claim holds true until the cluster begins to show slower speed up and less utilization. In other words, we would try to increase the size of the cluster until its memory and vCores usage become less than 100%. It indicates that the cluster’s resources have exceeded the demand from the source camera identification process.

Fig. 6
figure 6

Graph of speedup against number of nodes

On the other hand, we reduced the cluster’s size during the classification phase. We used a 3-node cluster to build and test Mahout’s Random Forest classifier on the dataset. As a justification, we have shrunk the cluster to avoid resource wastage as the classification process was less resource intensive. Our findings reveal that the memory and vCores utilization were less than 50% of the total available resource on average. Table 6 shows the resource utilization across different number of mappers.

Table 6 Cluster resource utilization during classification

We achieved good classification accuracies across the cluster. Although we recorded a proportional drop in accuracy with every map increase, the precision, recall and F1 score maintained at values close to 1. We present the scores in Table 7 shown below.

Table 7 Random Forest classification results

The accuracy ranges between 85 to 95% depending on the number of mappers used.

We can observe that we gained 1% in accuracy as we decreased a single mapper. This is due to the fact that as the number of mappers increases, the amount of data processed on each map tasks decreases, leading to smaller trees being produced on each map task, which impacted the accuracy of the classifier. However, we also take into consideration the precision, recall and F1 scores of the classifier. Our lowest performing model recorded 0.862 precision and only a slight drop in recall and F1 score at 0.855 and 0.854 respectively. We consider the mas a promising result because they are still in close range to the best score of 1. Figure 7 shows the graph of classifier accuracy against the number of maps.

Fig. 7
figure 7

Graph of classifier accuracy against the number of maps

Besides that, it is also important to observe the number of false positives during the classification. This can be done through the confusion matrix. It indicates the performance of the classifier by showing the number of actual and predicted instances. Each column of the matrix corresponds to the predicted class while each row represents the actual class. Confusion matrix presents an easy way for analysis because all correct predictions or also known as true positives will lie in the main diagonal of the matrix. Tables 8, 9, 10, 11 and 12 show the confusion matrix for each number of mappers used in this study.

Table 8 Confusion matrix for 1 mapper
Table 9 Confusion matrix for 3 mappers
Table 10 Confusion matrix for 5 mappers
Table 11 Confusion matrix for 7 mappers
Table 12 Confusion matrix for 10 mappers

From the confusion matrices above, we can see that Sony Xperia C had the best features because it performed very well on all numbers of mappers tested. Among possible reasons would be that the camera for this model was significantly different from all other models in the study. On the other hand, Samsung Galaxy Note 4 was often misclassified as Sony Xperia Z. In future works, more consideration will be put into reducing the number of misclassifications or false positives when classifying in a distributed environment. One possible solution would be fine-tuning Mahout’s hyper parameters so that as the mappers increased, the number of trees grown in each mapper would be well balanced.

Based on the study, we can conclude that the time taken for source camera identification is exponentially reduced when all related processes are implemented in distributed computing. While proper attention is required to fine-tune the classifier, we showed that the classification accuracies were promising. Besides that, our study also revealed that more resources can be utilized to speed up the processing of datasets having similar size like ours.


As we venture into an era where technology advances at a rapid pace, more attention has to be given in the area of digital security. We have investigated the effect of implementing source camera identification method in a distributed computing environment by using Apache Hadoop. It was done to facilitate a fast and accurate source camera identification process that generally consumes a large amount of time. We implemented the process of classifying images based on their source cameras on Hadoop to study the difference in execution time as the number of nodeswere increased. A total of 6000 images from sixdifferent mobile phones of different models were collected and undergone the classification process which started with image feature extraction in Hadoop followed by image classification using Apache Mahout’s Random Forest classifier.

In terms of execution times, Hadoop proved to be a reliable distributed computing platform. The execution times recorded in the experiment showed impressive improvements as the number of nodes increased. We achieved almost a speedup of six when a 19-node cluster was in place compared to a single node computer. In general, we obtained a linear speedup as we added more computing nodes in the cluster. The overall processing times also showed exponential decrease across the clusters. Besides that, all cluster resources were utilized during feature extraction. The results provided a strong evidence that more resources can be put to use to further shorten the processing times.

In addition, we demonstrated Apache Mahout on Hadoop which is a scalable machine learning tool. We built a predictive model based on Mahout’s Random Forest algorithm. Our results showed high accuracies even as the number of mappers were increased. Although it can be argued that a slight loss of accuracy occurred in the process, other metrics such as precision, recall and F1 scored showed that the model was reliable. Furthermore, in order to argue that the dependency of the accuracy of the Random Forrest classifier on the number of map processes run was not a result of randomness, a 10-fold cross validation was utilized. Although only a single run was provided for each value, yet 10-fold cross validation ran the algorithm for 10 different subsets of the training and testing dataset. As a result, it is plausible to argue that the variation in performance of the Random Forrest classifier was due to the number of map processes run and was not due to randomness.

In the future, we plan to improve in the area of classification accuracies in distributed computing by experimenting with different types of classifier algorithms. Besides that, we would also like to investigate larger scale resources to observe the capacity of the cluster to handle large datasets. It is also interesting to analyze the model’s performance among mobile phones of the same model. As a conclusion, this study contributes to the advancement in the field of image forensics as image classification is done faster without complicating the accuracy of the classification.


  1. Alvarez P (2004) Using extended file information (EXIF) file headers in digital evidence analysis. Int J Digit Evid 2(3):1–5

    Google Scholar 

  2. Bateman P, Ho ATS, Woodward A (2010) Accurate detection of out-of-control variations from digital camera devices, Proc. of the IEEE International Symposium on Circuits and Systems, pp 3056–3059

    Google Scholar 

  3. Bayram S, Sencar HT, Memon N, Avcibas I (2005) Source camera identification based on CFA interpolation. Proc - Int Conf Image Process ICIP, pp 69–72

    Google Scholar 

  4. Cattaneo G, Roscigno G, Petrillo UF (2014) A scalable approach to source camera identification over Hadoop. 2014 IEEE 28th Int Conf Adv Inf Netw Appl :366–373. Available from:

  5. Ericson K, Pallickara S (2013) On the performance of high dimensional data clustering and classification algorithms. Futur Gener Comput Syst 29(4):1024–1034 [cited 2015 Feb 17]. Available from:

    Article  Google Scholar 

  6. Goljan M, Fridrich J, Filler T (2010) Managing a large database of camera fingerprints. SPIE Conf Media Forensics Secur. Available from:

  7. Han L, Liew CS, van Hemert J, Atkinson M (2011) A generic parallel processing model for facilitating data mining and integration. Parallel Comput 37(3):157–171 [cited 2015 Mar 3]. Available from:

    Article  Google Scholar 

  8. Hu Y, Li C-T, Zhou C (2010) Selecting forensic features for robust source camera identification. Int Comput Symp (ICS) 2010:506–511

    Google Scholar 

  9. Kharrazi M, Sencar HT, Memon N (2004) Blind source camera identification. Image process 2004 ICIP ‘04 2004 Int conf, pp 709–712

    Book  Google Scholar 

  10. McKay C, Swaminathan A, Gou H, Wu M (2008) Image acquisition forensics: forensic analysis to identify imaging source. IEEE Int Conf Acoust Speech Signal Process 2008:1657–1660

    Google Scholar 

  11. Owen S, Anil R, Dunning T, Friedman E (2012) Mahout in action. Manning Publications Co., Online Available from:

    Google Scholar 

  12. Piva A (2013) An overview on image forensics. ISRN Signal Process 2013:1–22. Available from:

  13. Sarade SS, Ghule NB, Disale SP, Sasane SR (2014) Large scale satellite image processing using Hadoop distributed system. Int J Adv Res Comput Eng Technol 3(3):731–735

    Google Scholar 

  14. Tsai M-J, Wu G-H (2006) Using image features to identify camera sources. IEEE Int Conf Acoust Speech Signal Process 2006:297–300

    Google Scholar 

  15. Wahab AW, Briffa JA, Schaathun HG, Ho ATS (2009) Conditional probability based Steganalysis for JPEG Steganography, Proc. of the International conference on signal processing systems, pp 205–209

    Google Scholar 

  16. Wahab AWA, Ho ATS, Li S. Inter-camera model image source identification with conditional probability features. Proc IIEEJ 3rd image electron Vis Comput work (IEVC 2012). 2012

    Google Scholar 

  17. Wahab AWA, Bateman P (2010) Conditional probability based camera identification. Int J Cryptol Res 2(1):63–71.

    Google Scholar 

  18. Wen C, Yang K (2006) Image authentication for digital image evidence. Forensic Sci J 5:1–11

    Google Scholar 

  19. Yamamoto M, Kaneko K (2012) Parallel image database processing with Mapreduce and performance evaluation in pseudo distributed mode. Int J Electron Commer Stud 3(2):211–228 [cited 2014 Jun 4]. Available from:

    Article  Google Scholar 

  20. Zhang G, Wu Q, Zhuo Z, Wang X, Lin X (2013) A large-scale images processing model based on Hadoop platform. ICCC ‘13 Proc Second Int Conf Innov Comput Cloud Comput :51–54. Available from:

  21. Zhu H, Shen Z, Shang L, Zhang X. Parallel Image Texture Feature Extraction under Hadoop Cloud Platform. Intell Conf Intell Comput 2014. Springer International Publishing; 2014. 459–465. Available from:

Download references


This work is funded by the Malaysian Ministry of Education under the University of Malaya High Impact Research Grant UM.C/625/1/HIR/MOE/FCSIT/17.

Author information

Authors and Affiliations



MF, NBA and AWAW carried out the studies, participated in the sequence alignment and drafted the manuscript. MF, NBA participated in the design of the study, collected the data and performed the statistical analysis. SS and ATC conceived of the study, and participated in its design and coordination and helped to draft the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Shahaboddin Shamshirband.

Ethics declarations

Competing interests

The authors declare that they have no competing interests.

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (, which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Faiz, M., Anuar, N.B., Wahab, A.W.A. et al. Source camera identification: a distributed computing approach using Hadoop. J Cloud Comp 6, 18 (2017).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: