Research Article  Open Access
Sheng Chen, Xianyi Chen, Huijuan Fu, "General Framework of Reversible Watermarking Based on Asymmetric Histogram Shifting of Prediction Error", Advances in Multimedia, vol. 2017, Article ID 6359248, 9 pages, 2017. https://doi.org/10.1155/2017/6359248
General Framework of Reversible Watermarking Based on Asymmetric Histogram Shifting of Prediction Error
Abstract
This paper presents a general framework for the reversible watermarking based on asymmetric histogram shifting of prediction error, which is inspired by reversible watermarking of prediction error. Different from the conventional algorithms using singleprediction scheme to create symmetric histogram, the proposed method employs a multiprediction scheme, which calculates multiple prediction values for the pixels. Then, the suitable value would be selected by two dual asymmetric selection functions to construct two asymmetric error histograms. Finally, the watermark is embedded in the two error histograms separately utilizing a complementary embedding strategy. The proposed framework provides a new perspective for the research of reversible watermarking, which brings about many benefits for the information security.
1. Introduction
Reversible watermarking is a novel technology that embeds a digital mark in the carrier media with a reversible manner [1]. It has attracted many researchers’ great interest because of the huge application in sensitivity areas, such as medicine, military, and law. In recent years, many efficient methods have been proposed, especially the histogram shifting of prediction error (HSPR).
HSPR is a novel technology proposed by Tsai et al. [2] in 2009, in which prediction value of the basic pixel is calculated firstly. Then, prediction error is obtained from the subtraction between the original and prediction values, which will form the prediction error histogram. Finally, watermark is embedded in the histogram. Compared with those methods which utilize the histogram of an image itself [3], HSPR can not only make use of the redundancy of image pixels adequately but also obtain higher peak point of histogram. In a word, the usage of HSPR can embed more watermarks expediently and enhance the embedding capacity.
Nowadays, reversible watermarking algorithms based on HSPR have been studied extensively, and many researchers pay attention to the improvement of the predictive precision and the height of histogram. For example, Luo et al. utilized the fullsurrounded interpolation technology to compute prediction value separately and obtain prediction value with higher precision [4–6]. Hong and Chen reduced the embedding distortion based on image interpolation, image smoothness detection operator [7], and energy error control (EEC) when the error energy is too high [8], in which a highly accurate prediction value should be calculated firstly. Secondly, the area complexity composed of basic pixels is computed and divided into smooth and complex areas. After that, image distortion can be relieved and the watermarked image quality can be improved. Rad et al. designed an adaptive group modification on histogram of prediction error and then combined the HSPR to embed the watermark in [9]. Ou et al. generated the optimal prediction error histogram by considering the pixel compensation under multilayer embedment [10]. Zhang et al. established an equivalence relation between lossless data compression and reversible watermarking by iteratively modifying histogram [11–13]. In addition, reversible watermarking has obtained many developments and has been applied in many novel domains. For example, Zhang researched reversible watermarking technology of encrypted domain [14]. Zeng et al. researched reversible watermarking in H.264/AVC video [15]. Huang et al. applied prediction error histogram to highly relevant medical anatomy images and satellite images [16, 17].
2. Motivation
Compared with the methods that utilize the histogram of image itself, though the embedding capacity is higher in the above algorithms, the watermarked image qualities are still unsatisfying. Because these algorithms improve the watermarked image quality only by attempting to increase predictive precision or height of peak point, they do not consider how to decrease watermarked image distortion, especially the number of shifted pixels under the same height of histogram.
In traditional reversible algorithms based on prediction error, the error histogram generally conforms to the Laplace distribution. Figure 1(a) shows the symmetric error histogram of Elaine image using Tsai’s method. Even if only peak point is selected as embedded point, about half pixels of the host image are shifted. In Figure 1(b), 104988 pixels of the host image are shifted. When peak point and previous peak point are both selected as embedded points, 190015 pixels need to be shifted, as shown in Figure 1(c); this shifting can lead to huge image distortion.
(a)
(b)
(c)
Through the above analysis, we know that symmetric Laplace distribution, where error histogram has an average value of 0, is the source of huge shifting distortion. Hence, in [18], nearest neighbor prediction mechanism is utilized three times repeatedly and three prediction errors are calculated. Then, the prediction error is selected by utilizing the maximum and minimum functions, respectively; thus two asymmetric error histograms are created. Finally, the histogram bins will be shifted in the direction of small number; thus shifting distortion is reduced hugely and watermarked image quality obtains advancement. The method shows the high efficiency of asymmetric error histogram technology; in addition, the same idea was verified in [19–21], in which the surrounded prediction scheme [19], the edge sensitivity detection [20], and the directed prediction schemes [21] are utilized to generate the asymmetrical histograms and then embed the watermark, thus improving the embedding effect. Moreover, Kamal and Islam applied the idea to the stegoimage by using the multiple predictors in [22].
In this paper, we propose a general framework of reversible watermarking based on AHSPE, which gives a more standardized and generalized structure to AHSPE.
3. General Framework of Reversible WatermarkingAsymmetric Error Histogram Shifting
In this section, we design a general framework of error histogram shiftingasymmetric histogram shifting. The framework is divided into four parts: multiprediction scheme, creation of asymmetric error histogram, layered complementary embedding strategy, and watermark extraction and image restoration; the process is introduced in detail as follows.
3.1. MultiPrediction Scheme
In traditional reversible watermarking algorithms based on prediction error, only a prediction value is calculated; then the prediction value is substituted for the original value to embed watermark. For the convenience of description, the model of prediction is defined as singleprediction scheme (SPS), and its detailed definition is described as follows.
Definition 1. Suppose that the current pixel is , its reference pixels are and , where , and the prediction value is ; thus the SPS is defined as
Figure 2 represents the context of . Unshadowed is selected as ’s reference pixels in semisurrounded prediction algorithm, and fullsurrounded prediction algorithm needs to select as its reference pixels. Due to the wide use of semisurrounded prediction algorithm, in this paper, we only utilize semisurrounded prediction algorithm as an example for introduction. But its theory can almost be extended to fullsurrounded prediction algorithm without any modifications, for example, [20]. Thus formula (1) can be simplified as . And we can obtain the following: When , SPS degenerates to the simplest nearest neighbor prediction (NNP): . When and prediction algorithm selects piecewise function of combining the maximum and minimum value functions, SPS converts to the median edge prediction algorithm (MEP): When and prediction algorithm selects 7 piecewise functions according to gradient energy, SPS becomes gradient adjustment predictor (GAP).
According to the above example, we know that SPS only calculates a prediction value for the current pixel, thus limiting flexibility of the algorithm. In this paper, we design a multiprediction scheme (MPS).
Definition 2. Suppose that the current pixel is , its reference pixels are , and the prediction values are , ; thus the following model of multivariate vector function is called multiprediction scheme (MPS):
The MPS can be constructed by using a familiar prediction algorithm repeatedly or by combining multiple SPSs; we define the selected prediction algorithms as prediction kernels.
3.2. The Creation of Asymmetric Error Histogram
For calculated prediction values by formula (3), we first calculate the corresponding prediction errors separately; then we select appropriate prediction errors by using asymmetric selection function; finally, we collect all selected prediction errors to create asymmetric error histogram. We give the definition of asymmetric selection function firstly before creating asymmetric error histogram.
Definition 3. For a matrixeach is a column matrix of size and each is a row matrix of size and conforms to the symmetric distribution with an average value of 0. If the array does not accord with any symmetric distribution, we describe as an asymmetric selection function.
According to Definition 3, an asymmetric error histogram is created by selecting an appropriate value amongst multiple prediction errors. The detailed steps are described as follows.
Step 1. Utilize MPS to calculate ’s prediction values, and then obtain prediction errors. The prediction errors are calculated as follows:
Step 2. Select appropriate value from the above prediction errors by using asymmetric selection function; the calculation formula is described as follows:
Step 3. Collect all prediction errors and thus an asymmetric error histogram is created.
From the above steps, we can see that the error histogram is biased and asymmetric. For example, when prediction error, which is selected by , is low, the number of errors on the right side of the histogram peak point is small and that on the left side is large; thus an Lskewness error histogram is created. If the watermark is embedded by translating histogram bins to the right, shifting distortion is decreasing hugely and the quality of watermarked image is improving greatly.
According to the duality principle, if the selection function is modified slightly (predictive results are negative), the dual and large function can be obtained; thus an Rskewness histogram is created. When the watermark is embedded by combining the two histograms, the modified partial pixels in the previous layer are restored to the original values by being compensated in the next layer due to the opposite shifting of two histograms. Therefore, we design a layered complementary embedding strategy.
3.3. Layered Complementary Embedding Strategy
Suppose that the host image is an 8bit grayscale image of size , () presents the pixel that corresponds to the location of host image’s row and column, and the detailed embedding process is described as follows.
Input. We have host image and watermarks and as input.
Output. We have watermarked image as output.
Step 1. Select prediction algorithms and confirm and ; then initialize and by utilizing ’s reference pixels.
Step 2. For the predicted pixel , utilize formulas (3) and (5) to calculate its prediction values and prediction errors, respectively. Then use selection function to calculate its asymmetric prediction error according to formula (7). Without loss of generality, we set to be Rskewness selection function.
Step 3. Collect to create the Rskewness asymmetric histogram ; set its peak point and left zero point as and ; utilize the following formula to embed watermark:where ; when all watermarks in are embedded, a provisional image is obtained. We describe the process as the Rskewness embedding phase.
Step 4. For the predicted pixel , utilize formula (3) to calculate its prediction values. Then use asymmetric selection function to calculate smallskewness prediction error .
Step 5. Collect to create the Lskewness asymmetric histogram ; set its peak point and left zero point as and ; utilize the following formula to embed watermark:where ; when all watermarks in are embedded, a watermark image is obtained. We named the process as the Lskewness embedding phase.
3.4. Extraction of Watermark and Restoration of Image
For extracting embedded watermark and restoring watermarked image to the host image, the inverse process of proposed algorithm can be used to realize the two processes. Specific steps of the inverse process are as follows.
Input. We have watermarked image and embedded points and as input.
Output. We have host image and watermarks and as output.
Step 1. Select the suitable prediction algorithm and the values of and ; then initialize and by utilizing ’s reference pixels.
Step 2. For predicted pixel , utilize formula (6) to calculate its prediction errors. Then use asymmetric selection function to calculate small prediction error .
Step 3. Collect to create the Lskewness asymmetric histogram ; then extract the watermark according to histogram shifting technology:Then obtain the interim value of pixel by the following formula:
Step 4. For predicted pixel , utilize formulas (5) and (6) to calculate its prediction value and largeskewness prediction error, respectively.
Step 5. Utilize the above prediction errors to create Rskewness asymmetric histogram ; then extract the watermark by using the following formula according to histogram shifting technology:Then restore the value of pixel by utilizing the following formula:The embedded watermark can be extracted completely and the host image can be restored completely by using the above process.
4. Instance Verification
To verify the validity of the proposed framework, we will briefly explain the framework through two examples in this section.
4.1. Instance 1
Select NNP prediction algorithm as MPS prediction kernel and ; thus, prediction result of the above MPS is described as follows:
Then utilize the maximum function and the minimum function as the asymmetric selection functions and ; create the Rskewness error histogram and Lskewness error histogram through collecting all prediction errors. Standard test image Elaine can establish the maximum and minimum histograms, which are shown in Figure 3.
(a)
(b)
For the two above asymmetric error histograms, the minimum error histogram just needs to shift 56457 pixels to the right and the maximum error histogram shifts 62003 pixels to the left when selecting embedding points and . The result is much less than Tsai’s algorithm which shifts 85027 pixels to the left and 104988 pixels to the right; thus the proposed algorithm improves the quality of watermarked image. The instance verifies the efficiency of algorithm based on asymmetric error histogram shifting, which is presented in paper [18].
It should be pointed out that, in the error histograms established in instance 1, the peak points of error histograms are not always zero, which existed in the symmetric error histogram widely, because asymmetric selection functions choose the maximum and minimum functions directly. Actually, peak points of the above two histograms are −2 and 0, respectively, due to the skewness of peak point. In the process of embedment, we select 0 instead of peak point to embed watermark in the two error histograms. The goal is to decrease shifting distortion due to the skewness of peak point and improve the quality of watermarked image.
4.2. Instance 2
Select prediction kernels for prediction algorithms MED, GAP, and average function (Mean), then utilize the three prediction kernels to calculate prediction values, respectively, and . Thus, the three calculated prediction values , and are as follows:
Finally, use the maximum and minimum functions and as asymmetric selection functions and . The instance can also set up the asymmetric error histograms which are similar to instance 1 through collecting selected prediction errors.
5. Experimental Results
For verifying actual effect of the above asymmetric error histogram framework, this section designs several experiments to assess embedding capacity, shifting distortion, and quality of watermarked image based on the proposed framework, respectively. Select six frequently used grayscale images of size of 512 × 512 as tested covers. These images which are all obtained from the database of image SIPI [23] are shown in Figure 4.
5.1. Comparison of Embedding Distortion and Shifting Distortion
As is known to all, when utilizing histogram shifting to embed watermark, image distortion can be divided into two parts: one is the embedding distortion when the size of embedded watermark is “1” and the other is the shifting distortion when creating excess space for embedding, but the vast majority is the latter. The comparison of embedding distortion (ED) and shifting distortion (SD) by using Tsai’s method is shown in Table 1, which select one embedding point (1EP) and two embedding points (2EP), respectively.

It can be seen from Table 1 that the average value of SD is 16.6 times bigger than ED; 90% of distortions are almost from shifting. Taking Baboon image as an example, when selecting one embedding point, SD is 30.18 times bigger than ED. When selecting two embedding points, although the index is slightly low in other images, the ratio has increased to 33.37 in Baboon. The phenomenon explains that the proposed method that considers decreasing shifting distortion has great application and promotion space.
5.2. Comparison of Symmetric and Asymmetric Histograms
For verifying the reduced effect of SD of asymmetric error histogram, we take as an example. The ED almost cannot reduce due to the randomness of embedded watermark. Therefore, it is significant for enhancing the quality of watermarked image to decrease SD. For evaluating the reduced effect of SD accurately, we define the rate of shifting distortion :
is the quantity of shifted pixels when the size of embedded watermark is “1.” When becomes small, the quantity of shifted pixels also gets fewer and fewer; thus the distortion is small and the quality of watermarked image is better.
The effect of and the quantity of shifted pixels (QS) is compared between asymmetric and symmetric error histogram (Tsai’s method) in Table 2. For all tested images, embedded points select “0” and asymmetric error histogram utilize . In order to gain the reduced effect of SD of asymmetric error histogram, the reduction of shifting distortion (RSD) is also calculated in Table 2.

It can be seen from Table 2 that the proposed algorithm decreases the quantity of shifted pixels for different tested images. Average distortion rate of the proposed algorithm is close to half of Tsai’s algorithm; thus SD of the watermarked image is decreased. Taking the image of Elaine as an example, the quantity of shifted pixels in Tsai’s method is 109079; however, the proposed method only has 62008. When the size of embedded watermark is 1 bit, 7.95 pixels need to be modified averagely in Tsai’s method, whereas the proposed method only needs to modify 4.18 pixels averagely. Thus, the quality of watermarked image is improved hugely.
5.3. Analysis of Embedded Effect
In this section, we will compare the embedding capacity and the quality of images between the proposed framework and Tsai’s algorithm; the results are shown in Table 3. Table 3 shows the comparison of the embedding capacity (EC) and the peak signaltonoise ratio (PSNR) between classical symmetric error histogram shifting method, Tsai’s method, under single embedding point (1EP) and double embedding points (2EP) and the proposed method under maximum embedding (ME) and double embedding (DE). It can be seen from Table 3 that, for every cover image, the proposed method is superior to Tsai’s algorithm regarding EC and PSNR under 1EP or 2EP. Thus, it reflects the efficiency of proposed algorithm.

It should be pointed out that, for keeping the expandability of the proposed algorithm, we utilize each simplified parameter that appears in instance 1, but the implementation procedure of asymmetric error histogram is independent of the above parameters in above experiments. We have reasons to believe that the proposed algorithm can obtain better effect when we use the procedure of frequently used optimization and selection in existing algorithm based on symmetric error histogram shifting.
6. Conclusion
This paper proposes a novel general framework of reversible watermarking based on image prediction and histogram shifting technology. Firstly, the new framework designs a multiprediction scheme and then constructs an asymmetric error histogram by using an asymmetric selection function; thus the quantity of shifted pixels can be decreased. Besides, a complementary embedding strategy is proposed by utilizing double prediction errors. The strategy shifts error histogram to the opposite directions; thus some modified pixels will be restored to the original values and the quality of image can be better improved. Due to the peak overlapping problem under multilayer embedding, the more efficient prediction schemes require further research.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
This work is supported by the National Natural Science Foundation of China (NSFC) (61502242, U1536206, 61672294, 61602253, 61373133, 61232016, and U1405254), Social Science Foundation of Jiangxi Province (15JY48), Startup Foundation for Introducing Talent of Nanjing University of Information Science and Technology (2014r026#), Open Fund of Demonstration Base of Internet Application Innovative Open Platform of Department of Education (KJRP1402), Priority Academic Program Development of Jiangsu Higher Education Institutions (PAPD) Fund, Collaborative Innovation Center of Atmospheric Environment and Equipment Technology (CICAEET) Fund, and National Ministry of Science and Technology Special Project Research (GYHY201301030, 2013DFG12860, and BC2013012).
References
 Y.Q. Shi, X. Li, X. Zhang, H.T. Wu, and B. Ma, “Reversible data hiding: Advances in the past two decades,” IEEE Access, vol. 4, pp. 3210–3237, 2016. View at: Publisher Site  Google Scholar
 P. Tsai, Y.C. Hu, and H.L. Yeh, “Reversible image hiding scheme using predictive coding and histogram shifting,” Signal Processing, vol. 89, no. 6, pp. 1129–1143, 2009. View at: Publisher Site  Google Scholar
 Z. Ni, Y.Q. Shi, N. Ansari, and W. Su, “Reversible data hiding,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 16, no. 3, pp. 354–361, 2006. View at: Publisher Site  Google Scholar
 L. Luo, Z. Chen, M. Chen, X. Zeng, and Z. Xiong, “Reversible image watermarking using interpolation technique,” IEEE Transactions on Information Forensics and Security, vol. 5, no. 1, pp. 187–193, 2010. View at: Publisher Site  Google Scholar
 C.F. Lee and Y.L. Huang, “An efficient image interpolation increasing payload in reversible data hiding,” Expert Systems with Applications, vol. 39, no. 8, pp. 6712–6719, 2012. View at: Publisher Site  Google Scholar
 V. Sachnev, H. J. Kim, J. Nam, S. Suresh, and Y. Q. Shi, “Reversible watermarking algorithm using sorting and prediction,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 19, no. 7, pp. 989–999, 2009. View at: Publisher Site  Google Scholar
 W. Hong and T.S. Chen, “Reversible data embedding for high quality images using interpolation and reference pixel distribution mechanism,” Journal of Visual Communication and Image Representation, vol. 22, no. 2, pp. 131–140, 2011. View at: Publisher Site  Google Scholar
 W. Hong, “Adaptive reversible data hiding method based on error energy control and histogram shifting,” Optics Communications, vol. 285, no. 2, pp. 101–108, 2012. View at: Publisher Site  Google Scholar
 R. M. Rad, K. Wong, and J.M. Guo, “Reversible data hiding by adaptive group modification on histogram of prediction errors,” Signal Processing, vol. 125, pp. 315–328, 2016. View at: Publisher Site  Google Scholar
 B. Ou, Y. Zhao, and R. Ni, “Reversible watermarking using optional prediction error histogram modification,” Neurocomputing, vol. 93, pp. 67–76, 2012. View at: Publisher Site  Google Scholar
 W. Zhang, X. Hu, X. Li, and N. Yu, “Recursive histogram modification: Establishing equivalency between reversible data hiding and lossless data compression,” IEEE Transactions on Image Processing, vol. 22, no. 7, pp. 2775–2785, 2013. View at: Publisher Site  Google Scholar
 X. Hu, W. Zhang, X. Hu, N. Yu, X. Zhao, and F. Li, “Fast estimation of optimal markedsignal distribution for reversible data hiding,” IEEE Transactions on Information Forensics and Security, vol. 8, no. 5, pp. 779–788, 2013. View at: Publisher Site  Google Scholar
 B. Chen, W. Zhang, K. Ma, and N. Yu, “Recursive code construction for reversible data hiding in DCT domain,” Multimedia Tools and Applications, vol. 72, no. 2, pp. 1985–2009, 2014. View at: Publisher Site  Google Scholar
 X. P. Zhang, “Separable reversible data hiding in encrypted image,” IEEE Transactions on Information Forensics and Security, vol. 7, no. 2, pp. 826–832, 2012. View at: Publisher Site  Google Scholar
 X. Zeng, Z.Y. Chen, M. Chen, and Z. Xiong, “Reversible video watermarking using motion estimation and prediction error expansion,” Journal of Information Science and Engineering, vol. 27, no. 2, pp. 465–479, 2011. View at: Google Scholar
 L.C. Huang, L.Y. Tseng, and M.S. Hwang, “A reversible data hiding method by histogram shifting in high quality medical images,” The Journal of Systems and Software, vol. 86, no. 3, pp. 716–727, 2013. View at: Publisher Site  Google Scholar
 J. SerraRuiz and D. Megías, “Reversible data hiding for tampering detection in remote sensing images using histogram shifting,” in Proceedings of the Satellite Data Compression, Communications, and Processing VIII, August 2012. View at: Publisher Site  Google Scholar
 X. Chen, X. Sun, H. Sun, Z. Zhou, and J. Zhang, “Reversible watermarking method based on asymmetrichistogram shifting of prediction errors,” The Journal of Systems and Software, vol. 86, no. 10, pp. 2620–2626, 2013. View at: Publisher Site  Google Scholar
 T.C. Lu, C.M. Chen, M.C. Lin, and Y.H. Huang, “Multiple predictors hiding scheme using asymmetric histograms,” Multimedia Tools and Applications, vol. 76, no. 3, pp. 3361–3382, 2017. View at: Publisher Site  Google Scholar
 T.C. Lu, C.Y. Tseng, and J.H. Wu, “Asymmetrichistogram based reversible information hiding scheme using edge sensitivity detection,” The Journal of Systems and Software, vol. 116, pp. 2–21, 2016. View at: Publisher Site  Google Scholar
 X. Chen, X. Sun, H. Sun, L. Xiang, and B. Yang, “Histogram shifting based reversible data hiding method using directedprediction scheme,” Multimedia Tools and Applications, vol. 74, no. 15, pp. 5747–5765, 2015. View at: Publisher Site  Google Scholar
 A. H. M. Kamal and M. M. Islam, “Enhancing embedding capacity and stego image quality by employing multi predictors,” Journal of Information Security and Applications, vol. 32, pp. 59–74, 2017. View at: Publisher Site  Google Scholar
 Image database, http://sipi.usc.edu/database.
Copyright
Copyright © 2017 Sheng Chen et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.