Open Access iconOpen Access



Detecting Double JPEG Compressed Color Images via an Improved Approach

Xiaojie Zhao1, Xiankui Meng1, Ruyong Ren2, Shaozhang Niu2,*, Zhenguang Gao3

1 School of Sciences, Beijing University of Posts and Telecommunications, Beijing, 100876, China
2 Beijing Key Lab of Intelligent Telecommunication Software and Multimedia, Beijing University of Posts and Telecommunications, Beijing, 100876, China
3 Department of Computer Science, Framingham State University, Framingham, MA, 01772, USA

* Corresponding Author: Shaozhang Niu. Email: email

Computers, Materials & Continua 2023, 75(1), 1765-1781.


Detecting double Joint Photographic Experts Group (JPEG) compression for color images is vital in the field of image forensics. In previous researches, there have been various approaches to detecting double JPEG compression with different quantization matrices. However, the detection of double JPEG color images with the same quantization matrix is still a challenging task. An effective detection approach to extract features is proposed in this paper by combining traditional analysis with Convolutional Neural Networks (CNN). On the one hand, the number of nonzero pixels and the sum of pixel values of color space conversion error are provided with 12-dimensional features through experiments. On the other hand, the rounding error, the truncation error and the quantization coefficient matrix are used to generate a total of 128-dimensional features via a specially designed CNN. In such a CNN, convolutional layers with fixed kernel of and Dropout layers are adopted to prevent overfitting of the model, and an average pooling layer is used to extract local characteristics. In this approach, the Support Vector Machine (SVM) classifier is applied to distinguish whether a given color image is primarily or secondarily compressed. The approach is also suitable for the case when customized needs are considered. The experimental results show that the proposed approach is more effective than some existing ones when the compression quality factors are low.


Cite This Article

X. Zhao, X. Meng, R. Ren, S. Niu and Z. Gao, "Detecting double jpeg compressed color images via an improved approach," Computers, Materials & Continua, vol. 75, no.1, pp. 1765–1781, 2023.

cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 587


  • 423


  • 0


Share Link