Abstract

The image steganography systems use either the spatial domain or the frequency domain to hide the secret information. The proposed technique uses spatial domain technique to hide secret information in the frequency domain. The cover image is transformed using integer wavelet transform to obtain four subbands: LL, LH, HL, and HH. Then, the PVD approach is used to hide the secret information in the wavelet coefficients of all the four subbands. For improving the security of the hidden information, the proposed method first modifies the difference between two wavelet coefficients of a pair and then uses the modified difference to hide the information. This makes extraction of secret data from the stego image difficult even if the steganography method fails. The result shows that the proposed technique outperforms other PVD based techniques in terms of security of secret information and hiding capacity of cover image.

1. Introduction

Now a day, it is easy to share the information which is in the form of text, image, audio, or video using the Internet as the communication channel. Since Internet is an open channel of communication, there is always a threat of stealing the information. Therefore, it is becoming more important to adopt security measures so that the information can be protected from being stolen by malicious user. The security measures include cryptography, steganography, and coding. Steganography involves hiding secret information in a multimedia object such as image, audio, or video in such a way that its existence in these documents cannot be noticed. Digital images are preferred for hiding the secret information. It is relatively easy to place information in digital images because of the availability of sufficient redundant area where valuable information could be placed in an imperceptive way. It is possible to use images, either in the spatial domain or in the frequency domain, to hide secret information. In the spatial domain, the pixel values are used for hiding the secret information and, in the frequency domain, the wavelet coefficients are used for hiding the secret information.

The organization of the paper is as follows. A review of necessary background of IWT and PVD based steganography is presented in this section. In Section 2, the proposed method is discussed. In Section 3, the results are discussed while the paper is concluded in Section 4.

In the PVD method, as suggested by Wu et al. [1, 2], a gray-valued cover image is partitioned into nonoverlapping blocks composed with two consecutive pixels, and . For each block, difference value is calculated by subtracting from . Since the pixel value ranges from 0 to 255, the difference value also ranges from −255 to 255. Therefore, ranges from 0 to 255. The block is in smooth area if the difference value is small; otherwise, it is in sharply edged area. A range table is designed with contiguous ranges ( where ) and the table range is from 0 to 255. The lower and upper boundaries of are denoted by and , respectively. Hence, . The width of is calculated as + 1. This width is used to estimate the number of bits (where ) of secret message that can be hidden using the difference of two consecutive pixels. After hiding bits using the difference , new values are assigned to and . The new difference is calculated by subtracting from . The new difference stands for the secret data hidden in the pair. During extraction, the stego image is partitioned into nonoverlapping blocks composed with two consecutive pixels, and . Then, the difference value for each pair of two consecutive pixels and is calculated. Next, is used to locate the suitable range . The decimal equivalent of the secret information hidden in the block is given by which is then transformed into a binary sequence with bits.

In order to improve the capacity of hiding secret data and to provide an imperceptible stego image quality, a novel steganographic method based on least-significant-bit (LSB) replacement and pixel-value differencing (PVD) method is presented by Wu et al. [2]. The range table is divided into lower level (smooth area) and higher level (edged area). In the smooth area, 6 bits of the secret data is hidden by LSB method while, in the higher level, secret data is hidden using the PVD method.

To improve the hiding capacity of the cover image and quality of the stego image, another enhanced method is introduced based on the PVD method by Chang et al. [3, 5, 6]. In this method, data is hidden in vertical and diagonal edges along with the horizontal edges. The cover image is divided into the blocks of 2 × 2 pixels. Considering and to be the pixel locations, each 2 × 2 block includes four pixels , , , and . Pixel is grouped with the remaining three pixels in the block to form three pixel pairs. These three pairs are named , , and where , , and , respectively. After embedding the secret information in each pair using PVD approach, values of two pixels in each pair get modified. Thus, the original difference value is modified to a new difference value . The new pixel values in each pair are different from their original ones. That is, three different values are obtained for the pixel . However, pixel can have only one value. Therefore, one of the is selected as the reference pair to offset the remaining two pixel values. That is, two pixel values of the reference pair are used to adjust the pixel values of other two pairs and construct a new 2 × 2 block. The embedded secret data is unaffected because new difference values, , are unaltered. During extraction, the difference value is used to extract the hidden information. is used to locate the suitable range . The decimal equivalent of the secret information hidden in the pair is given by which is then transformed into a binary sequence with bits.

Gulve and Joshi [4] have proposed a steganography method to improve the security of the secret information using five-pixel pair differencing approach. The cover image is partitioned into blocks of 2 × 3 pixels to form five pixel pairs. The secret data is embedded in the pairs using the difference value of pixels in that pair. Instead of hiding bits in the pair using the difference value, bits ≤ are hidden in the pair where is the average of bits that can be hidden in each pair of the block. Thus, in case of failure of the steganography system, it becomes difficult to estimate exact number of bits hidden in each pair of the block. Another level of security for the secret information is introduced by converting the secret information in its gray code form. For each pair in the block, the method converts bits of secret information in the gray code form and then embeds these bits in that pair. Thus, the security of the secret information is improved without involving the overhead of encryption and decryption. Gulve and Joshi [7] have proposed a steganography method to improve the security of the secret data embedded in the image. The cover image is divided in the blocks of 2 × 3 pixels to form five pairs. The location of the common pixel is decided using the image data. For this reason, data of last few rows are used. Since the common pixel is changed randomly based on the image data, it is difficult to extract the secret data from stego image even if the steganography method fails.

Integer wavelet transform maps an integer data set into another integer data set. Calderbank et al. [8] have explained the working of integer wavelet transform. Haar wavelet transform, in its unnormalized version involving pair wise averages and differences, is written as Its inverse is given by

Because of division by two, this is not integer transform. The integer version can be built by omitting division by two in and calculating the sum instead of the average. This is called transform [8]. Consider the following example:

It is possible to define as above because the sum and difference of two integers are either even or odd. Thus, it is safe to omit last bit of sum since it is similar to last bit of difference. The transform [8] is invertible and it is given by

A different way of writing Haar transform using “lifting” steps leads to natural generalizations. It is possible to write Haar and transform using lifting schemes [8].

First, compute the difference and, then, use the difference in second step to compute the average:

The inverse transform can be calculated in two steps. First, recover the even samples from the average and difference, and recover the odd samples from even and difference [8]. It is given by the following equations:

It is possible to write integer transform by truncating the division:

Lifting can be used to compute the inverse transform. The equations follow from reversing the order and changing the sign of the forward transform [8]:

Ramalingam et al. [9] have elaborated the process of separating four subbands using Haar IWT. The first stage IWT is given by where represents pixels in odd column and represents pixels in even column. In the next stage, the IWT coefficients are calculated using high pass and low pass filter banks. This process creates four subbands: low-low (LL), low-high (LH), high-low (HL), and high-high (HH). The second stage IWT is given by where Hodd represents H band’s odd row, Lodd represents L band’s odd row, Heven represents H band’s even row, and Leven represents L band’s even row [9].

Ghasemi et al. [10, 11] have proposed a novel steganography scheme based on integer wavelet transform and genetic algorithm. The scheme embeds data in integer wavelet transform coefficients by using a mapping function based on genetic algorithm. The methods use wavelet transform coefficients to embed secret data into the four subbands of two-dimensional wavelet transform. Genetic algorithm is used to find the mapping function. A chromosome is encoded as an array of 64 genes containing permutations 1 to 64 that point to pixel numbers in each block. OPAP is used to minimize the error between cover and stego image.

Xuan et al. [12] have suggested a lossless data hiding method for digital images using integer wavelet transform and threshold embedding technique. CDF (2.2) integer wavelet transform is used to obtain the wavelet coefficients. Histogram modification is applied to prevent possible underflow/overflow of pixel values. A predefined threshold value is used to embed data in the wavelet coefficients.

El Safy et al. [13] have suggested an adaptive steganographic model which combines adaptive hiding capacity function that hides secret data in the integer wavelet coefficients of the cover image with the optimum pixel adjustment (OPA) algorithm. Histogram modification is applied to prevent possible underflow/overflow of pixel values. The cover image is divided into 8 × 8 nonoverlapping blocks. Each block is transformed using 2D Haar integer wavelet transform to obtain four subbands: LLI, LHI, HLI, and HHI. Hiding capacity of each coefficient is determined and the data is embedded in the coefficients. A pseudorandom number generation function is used to select the wavelet coefficients for increasing the security of the hidden data. The OPA algorithm is applied after embedding secret message to minimize the embedding error. The extraction procedure is a blind process since it requires only the secret key from the receiver. The secret key is used to identify the wavelet coefficients. Secret message bits are extracted from each selected wavelet coefficient.

Archana et al. [14] have proposed a method for hiding secret information in the discrete wavelet transform coefficients using GA and OPAP algorithm to provide optimum hiding capacity. The four subbands LL, HL, LH, and HH are used for hiding the data. Hiding capacity function is modified by using different ranges for k for the LH, HL, and HH subbands where its values range from 1 to 4. The length L of message bits to be hidden in wavelet coefficient is determined by using hiding capacity function.

Al-Asmari et al. [15] have proposed a method using discrete wavelet transform and pixel value differencing approach to hide the information. Using the discrete wavelet transform, the cover image is decomposed to obtain the four subbands (LL, HL, LH, and HH). Then, the LSB method is used to hide secret information in the LL subband by hiding two bits of secret information in each coefficient. The PVD approach is used to hide the information in the remaining three subbands. For hiding the information, two consecutive pixels in the vertical direction are grouped to form a pair. The method gives high performance in terms of capacity, human visual quality, and PSNR.

2. Proposed Method

The proposed method hides secret information in the gray scale images. It uses spatial domain technique to hide secret information in the frequency domain. In the frequency domain, the image is decomposed into four subbands using integer wavelet transform and then the spatial domain technique is used to hide secret information in the wavelet coefficients of the four subbands.

The cover image is transformed using 2D Haar integer wavelet transform to obtain four subbands: LL, LH, HL, and HH. The proposed method embeds data in the coefficients of four subbands by using the pixel value differencing approach.

2.1. Preprocessing

The gray scale image is read as a 2D array of size [, ]. Histogram modification [1215] is applied to prevent the possible overflow/underflow of pixel values. This problem occurs when the pixel values of the cover image are close to 255 or 0, because they may exceed 255 or fall below 0 during inverse integer wavelet transform. The problem can be solved by mapping the lowest 15 gray scale levels to the value 15 and the highest 15 gray scale levels to the value 240. If the pixel values exceed the boundaries during the inverse wavelet transform, the image is not suitable for hiding secret data. The image is transformed using 2D Haar wavelet transform to obtain four subbands: LL, LH, HL, and HH of size [/2, /2] each. All the four subbands are used to hide the secret information. The 2D array of size [, ] is again constructed by arranging the four subbands as shown in Figure 1.

Figure 2 shows the arrangement of four subbands of the image lena.tiff after transforming it using 2D Harr integer wavelet transform.

A 2D array obtained by arranging the wavelet coefficients of four subbands is shown as follows: The difference operation in Haar transform may cause some of the wavelet coefficients in HL, LH, and HH subbands to have negative values.

Since some of the wavelet coefficients have negative values, the 2D array shown in (11) cannot be used for hiding secret information using the pixel value differencing approach. Hence, absolute values are used for the coefficient with negative values to create a new 2D array with positive elements as follows:

After hiding the secret information in the 2D array shown in (12), inverse wavelet transform is performed to obtain the stego image. To obtain good quality of stego image, the original sign of each wavelet coefficient, as shown in (11), is required. Hence, the 2D array shown in (11) is used to create a sign matrix of the size [, ] having elements with values 1 or −1. The sign matrix so created is shown as follows: The wavelet coefficients having positive values are represented by 1 whereas wavelet coefficients having negative values are represented by −1 in the sign matrix.

2.2. Embedding Process

For hiding the data in the 2D array, the method suggested by Gulve [4, 7] is used. In the method proposed by Chang [3], a block of 2 × 2 pixels is used to form 3 pairs which are then used to hide the secret information. The proposed method uses the block of 2 × 3 wavelet coefficients. The introduction of 2 wavelet coefficients in the 2 × 2 block forms two extra pairs. For a 512 × 512 image, it is possible to form 196608 pairs using the approach suggested by Chang [3] whereas, using the proposed approach, 217600 pairs can be formed. A greater number of pairs provide extra space for hiding the secret information. Thus, the proposed method improves the hiding capacity of the cover image.

The difference between two wavelet coefficients in the pair is used to hide the secret information. If the difference value is directly used to hide the information, it is easy to retrieve the embedded information in case the steganography system fails. To enhance the security of the secret information, the proposed algorithm modifies the difference between the two wavelet coefficients in the pair and this modified difference is used to hide the secret information. This imposes extra layer of security making harder extraction of original secret information from stego image using the difference values directly [4, 7].

The arrangement of wavelet coefficients into nonoverlapping blocks of 2 × 3 wavelet coefficients is shown in Figure 3. As shown in Figure 3, each 2 × 3 block includes six wavelet coefficients , , , , , and , where and are the locations of wavelet coefficients. Five pairs are formed by grouping the common wavelet coefficient PX1 with the remaining five wavelet coefficients PX0, PX2, PX3, PX4, and PX5. The five pairs where are as shown below:

The difference value is calculated for each pair by subtracting the common wavelet coefficient PX1 from the other wavelet coefficient in that pair. This difference value is used to identify the corresponding range from the range table . The range table is designed with ranges , , , , , and . The width of range is used to determine the number of bits ( = log2) that can be hidden in each pair where . This is then used to calculate the average value () of number of bits possible to be hidden in each pair of the block. The average value is used to calculate the revised difference as is remainder (/) so that where is the original difference. The offset difference is calculated as for each pair in the block. The revised difference is then used to determine the number of bits for each pair in the block. Thus, if the original difference value allows bits to be hidden in the pair; then the proposed approach hides bits ≤ in that pair [4, 7].

After embedding bits of the message in the pair, new difference is calculated as where represents lower boundary of the range in the range table and represents the decimal equivalent of message bits hidden in that pair.

Embedding bits in the pair modifies the values of both the wavelet coefficients in the pair. The new values of wavelet coefficients in each pair are different from their original values. Since new value is assigned to common wavelet coefficient PX1 in each pair, five different values are obtained for the common wavelet coefficient PX1. However, the common wavelet coefficient PX1 can have only one value in each bock. This requires values of other five wavelet coefficients PX0, PX2, PX3, PX4, and PX5 to be adjusted such that the new difference remains unchanged. Therefore, the pair, having new values of wavelet coefficients close to their original values, is selected as the reference pair. To find the reference pair, the difference between and is calculated. Small value of indicates that the new difference value is close to the original difference value . Thus, for the pair with minimum , the new values of wavelet coefficients are close to their original values. So the pair with minimum is selected as the reference pair. The values of the two wavelet coefficients in the reference pair are used to adjust the values of wavelet coefficients in other pairs and construct a new block. The embedded secret information in newly constructed block is unaffected because difference values for the pairs are unaltered [4, 7].

During the extraction process, average value () is calculated using the same process adopted during embedding of the secret message. The average value is used to calculate the revised difference as is remainder (/). Suitable range is identified using this revised difference. The secret message is extracted in the decimal form by subtracting from . Secret message is then converted into a binary stream with ( = log2) bits [4, 7].

The process of hiding secret information in the cover image is described below [4, 7].(1)Create the 2D array as shown in (12) by preprocessing the gray scale cover image.(2)Partition the array into nonoverlapping blocks of wavelet coefficients and group wavelet coefficient PX1 with the remaining wavelet coefficients in the block to form five pairs.(3)Calculate the difference values for the five pairs in each block: (4)Use where to locate suitable range in the designed range table. Use this range to calculate number of bits that can be hidden in each pair . Then, calculate the average bits using (5)Calculate the revised difference where as is remainder (/) so that <= .(6)Calculate the difference as for each pair.(7)Use where to locate suitable range in the designed range table.(8)Compute the number of bits that can be embedded in each pair using the corresponding range given by . The value can be estimated from the width of , which is given by = log2  where width and and are upper and lower boundaries of the range .(9)Read bits from the binary secret data.(10)Calculate the new difference value given by (11)Modify the values of wavelet coefficients in the pair using where and represent two wavelet coefficients in the pair and is obtained by subtracting from .(12)Select the pair with minimum as the optimal reference pair and use this pair to adjust the values of wavelet coefficients of the other four pairs. The value of the common wavelet coefficient is given by of the reference pair. Modify value of another wavelet coefficient of remaining four pairs such that the new difference will remain unchanged. Thus, new values are assigned to remaining four wavelet coefficients in the block.(13)Check the new values of wavelet coefficients for fall-off boundaries; that is, check whether all the values are within the range from 0 to 255. If not, modify the values preserving the difference between the values of two wavelet coefficients of each pair in the block.(a)Find out the smallest of all the wavelet coefficients. If the smallest is less than 0 then add in all the wavelet coefficients in that block.(b)Find out the largest of all the wavelet coefficients. If the largest is greater than 255, subtract largest − 255 from all the wavelet coefficients in that block.(c)If fall-off boundary problems still exist, the cover image is not suitable for hiding secret information.(14)Now, reconstruct the block from all pairs with modified values of wavelet coefficients.(15)Repeat steps through (14) until the secret information is embedded in the cover image.

2.3. Postprocessing

After the embedding process is over, original signs are assigned to the elements of 2D array using the sign matrix created during preprocessing phase. This is accomplished by one to one comparison of elements of 2D array with the elements of 2D sign matrix. The 2D array is then split to obtain the four subbands. Using inverse 2D Haar integer wavelet transform, the four subbands are combined to obtain the stego image of size . All the pixel values of the stego image in the range from 0 to 255 indicate that secret data is safely hidden and can be extracted accurately.

2.4. Extraction Process

The extraction process is blind. It does not require the existence of cover image for extracting hidden secret data from the stego image. The stego image is preprocessed to obtain the 2D array as shown in (12). The process of extraction of secret information from the stego image is described below [4, 7].(1)Create the 2D array as shown in (12) by preprocessing the gray scale stego image.(2)Partition the array into nonoverlapping blocks of 2 × 3 wavelet coefficients and group wavelet coefficient PX1 with the remaining wavelet coefficients in the block to form five pairs. Keep the partition order the same as that of the embedding.(3)Calculate the difference values for the five pairs in each block: (4)Use where to locate suitable range in the designed range table. Use this range to calculate number of bits, , which is hidden in each pair . Then, calculate the average bits using (16).(5)Calculate revised difference where as is remainder (/)(6)Use where to locate suitable in the designed range table.(7)After is located, is subtracted from and is obtained in decimal form. A binary sequence is generated from with bits where = log2 .Repeat steps through (7) until embedded message is extracted.

3. Results

A set of gray scale TIFF images is used for the experimentation. This set consists of standard images as well as images taken from the camera. The standard images are obtained from the “the USC-SIPI image database (http://sipi.usc.edu/database/)”. The images taken from Canon A45 camera in JPG format are converted into gray scale tiff format. The text files are used as secret data. Since the proposed algorithm use PVD approach to hide information in wavelet coefficients, the data hiding capacity and PSNR values of the proposed method are compared with PVD method [1], TPVD [3] method, and Gulve’s method [4]. The comparison is shown in Table 1. The proposed method provides increased hiding capacity and improved PSNR values as compared to PVD and TPVD method. Although the PSNR is less as compared to Gulve’s [4] method, there is an improvement in the security of secret data.

The average payload of the proposed system is ~2.48 bpp. The performance of the proposed method is analyzed using PSNR, Universal Quality Index (), and Structural Similarity Index Measure (SSIM). and SSIM are full reference image quality assessment models and require the cover image to be available [16, 17]. Table 2 shows the PSNR values, MSE, Universal Quality Index (), and Structural Similarity Index Measure (SSIM) for different images obtained using proposed method. The PSNR values are above the threshold of 36 dB [18] even after using more than 95% of the hiding capacity of the cover image. Also Universal Quality Index () values [16] and Structural Similarity Index Measure (SSIM) values [17] are close to 1, which proves that the stego images are visually indistinguishable from original cover images.

Figure 4 shows the cover image and the corresponding stego images obtained using the proposed method. As the figures show, distortions resulted from embedding are imperceptible to human vision.

Figure 5 shows the histogram of the cover and stego image obtained using the proposed method. From the figure, it can be observed that the shape of the histogram is preserved.

The cover image data is subtracted from stego image and plotted as histogram. Figure 6 shows the pixel difference histogram. From the figure, it can be observed that there are more numbers of bins which are close to 0 as compared to bins which are away from 0. Also the step pattern is not observed in the figure. This confirms that the method is robust against histogram analysis attack.

Histogram of cover image is represented as whereas histogram of stego image is represented as . The change in histogram [19] is measured by

The proposed method can hide at least 3 bits in each pair considering the smallest width of the subrange to be 8. Figure 7 shows the comparison of the value of of the 3 bit LSB replacement method and the proposed method with different size of secret data embedded in the cover image, Lena.tiff. It can be observed that difference in histogram for the proposed method is less than that of 3 bit LSB method.

The output images are tested under the steganalysis [20]. It is observed from Figure 8 that the difference between and and and is very small. The rules and are satisfied for the output images. This proves that the proposed method is secure against attack.

4. Conclusion

In steganography, hiding capacity of cover image, quality of stego image, and security of secret data are three important factors. There is always a trade-off between data hiding capacity of cover image and security of secret data. The proposed algorithm provides improvements in the data hiding capacity as well as security of the secret data as compared to PVD [1] and TPVD [3] methods. Although Gulve’s [4] method provides better PSNR values as compared to proposed method, the proposed method improves security of secret information. The secret information is securely hidden in the coefficients of integer wavelet transform. For the implementation purpose, the four subbands obtained after decomposing the cover image by integer wavelet transform are arranged as shown in Figure 1. But it is possible to arrange the four subbands in 4! = 24 different ways thereby improving the security of the steganography system since the exact arrangement of four subbands will be known to sender and receiver only. The algorithm revises the original difference between two wavelet coefficients in the pair and this revised difference is used for hiding the data in that pair. This makes estimation of exact number of bits hidden in the pair difficult. Image steganography techniques hiding textual information require 100% accuracy for successful retrieval of hidden information from stego image. If the steganography method fails, correct estimation of number of bits hidden for some of the pairs will be a challenge for the invader. Thus, one more level of security is imposed to secure the secret information.

The PSNR values produced by the algorithm are close to 39.5 which are well above the threshold of 36 dB after using full hiding capacity of the cover image. This proves that the stego images are of good quality. Results also show that the difference between cover image and stego image cannot be noticed by human visual system (HVS).

Considering the fact that there is currently no steganography system that can resist all the steganalysis attacks, the best way to provide security to the secret data and to eliminate the attack of comparing the original image with the stego image is to freshly create an image and destroy it after generating the stego image.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.