**Abstract:**
Detection of double jpeg compression with in an image with the same quantization matrix is a challenging problem. Detection of double JPEG compression plays an important role in digital image forensics. Some successful approaches have been proposed to detect double JPEG compression when the primary and secondary compressions have different quantization matrices. However, detecting double JPEG compression with the same quantization matrix is still a challenging problem. Here, an effective error based statistical feature extraction scheme is presented to solve this problem. First, a given JPEG file is decompressed to form a reconstructed image. An error image is obtained by computing the differences between the inverse discrete cosine transform coefficients and pixel values in the reconstructed image. Two classes of blocks in the error image, namely, rounding error block and truncation error block,
are analyzed. Then, a set of features is proposed to characterize the statistical differences of the error blocks between single and double JPEG compressions. Finally, the K nearest neighbour classifier is employed to identify whether a
given JPEG image is doubly compressed or not.

**Keywords:**
Double JPEG compression, rounding error, truncation error,,color image.