High-Capacity Reversible Data Hiding in Encrypted Image Using Pixel Predictions and Huffman Encoding

Yingqiang Qiu, Xin Chen, Qichao Ying, Huanqiang Zeng, Zhenxing Qian, Xinpeng Zhang

Abstract

Reversible Data Hiding in Encrypted Images (RDHEI) is a critical technology for maintaining data privacy in cloud environments. While existing "vacating room before encryption" (VRBE) schemes offer decent capacity, "vacating room after encryption" (VRAE) methods typically suffer from low payloads due to the destruction of spatial redundancy during encryption. This paper proposes a generalized framework for high-capacity RDHEI applicable to both scenarios. By utilizing an Efficient Embedding Room Generation Algorithm (ERGA) based on pixel prediction and entropy encoding, the proposed schemes achieve embedding rates exceeding 3 bits per pixel (bpp) on standard images while ensuring error-free data extraction and perfect image recovery.

Introduction

Reversible Data Hiding (RDH) allows for the embedding of secret data into digital media such that the original cover can be perfectly reconstructed after the data is extracted. In the encrypted domain (RDHEI), this process enables cloud service providers to manage client data (e.g., adding metadata or timestamps) without accessing the underlying content. The primary challenges in this field are maximizing embedding capacity and maintaining security against "contour leakage," where image outlines remain visible in the encrypted state. This research addresses these issues through a novel framework that leverages the statistical properties of pixel prediction errors.

Methodology

Efficient Embedding Room Generation Algorithm (ERGA)

The cornerstone of the proposed framework is the ERGA, which operates in two stages: pixel prediction and entropy encoding. Instead of processing raw pixel values, the system predicts values using Median Edge Detection (MED) and adjacency prediction.

Figure 5: Prediction error histogram for the Lena image, demonstrating the high concentration of errors around zero, which facilitates efficient compression.

As illustrated in Figure 5, the resulting prediction errors in natural images cluster tightly around zero. This distribution is highly compressible. The authors apply entropy encoding (such as Huffman or Arithmetic coding) to these errors, effectively "vacating" space within the image's bit-planes to accommodate secret data.

VRBE and VRAE Workflows

The framework is adaptable to two distinct operational workflows:

  1. PE-VRBE (Prediction Error - Vacating Room Before Encryption): The image owner applies ERGA to the plaintext image to create embedding space before encrypting the result with a stream cipher. This method maximizes capacity by exploiting the full redundancy of the original image.
Figure 6: Detailed architecture of the proposed PE-VRBE scheme, showing the processes for the image owner, data hider, and receiver.
  1. PE-VRAE (Prediction Error - Vacating Room After Encryption): To overcome the capacity limits of traditional VRAE, the owner uses a specialized block modulation and permutation encryption. This technique hides visual content while preserving local spatial correlations, allowing the data hider to generate embedding room directly from the encrypted blocks.

Experimental Results

The framework was evaluated using standard datasets including UCID, BOSSBase, and USC-SIPI. Key findings include:

  • Record Capacity: On the "Lena" image, the PE-VRBE method achieved an embedding rate of 3.444 bpp, while the PE-VRAE method reached 3.107 bpp—significantly higher than previous state-of-the-art methods that often struggle to reach 2 bpp.
  • Robustness on Textured Images: Even on complex images like "Baboon," the framework achieved 1.711 bpp, nearly tripling the capacity of earlier techniques.
  • Security and Reversibility: The encryption methods successfully prevent unauthorized content discovery. In all experimental cases, the receiver achieved 100% accurate data extraction and perfect (infinite PSNR) image reconstruction.

Conclusion

This paper introduces a robust, high-capacity framework for RDHEI that bridges the performance gap between VRBE and VRAE scenarios. By shifting the focus from simple bit-plane manipulation to the compression of prediction error distributions, the proposed ERGA provides a significant leap in embedding efficiency. Future work will explore the integration of deep-learning-based prediction models to further refine the error distribution and push capacity limits even higher.

Summary updated

Abstract

While the existing vacating room before encryption (VRBE) based schemes can achieve decent embedding rate, the payloads of the existing vacating room after encryption (VRAE) based schemes are relatively low. To address this issue, this paper proposes a generalized framework for high-capacity RDHEI for both VRBE and VRAE cases. First, an efficient embedding room generation algorithm (ERGA) is designed to produce large embedding room by using pixel prediction and entropy encoding. Then, we propose two RDHEI schemes, one for VRBE, another for VRAE. In the VRBE scenario, the image owner generates the embedding room with ERGA and encrypts the preprocessed image by using the stream cipher with two encryption keys. Then, the data hider locates the embedding room and embeds the encrypted additional data. In the VRAE scenario, the cover image is encrypted by an improved block modulation and permutation encryption algorithm, where the spatial redundancy in the plain-text image is largely preserved. Then, the data hider applies ERGA on the encrypted image to generate the embedding room and conducts data embedding. For both schemes, the receivers with different authentication keys can respectively conduct error-free data extraction and/or error-free image recovery. The experimental results show that the two proposed schemes outperform many state-of-the-art RDHEI arts. Besides, the schemes can ensure high security level, where the original image can be hardly discovered from the encrypted version before and after data hiding by the unauthorized user.
BibTeX
@article{qiu2022high,
  author = {Yingqiang Qiu and Xin Chen and Qichao Ying and Huanqiang Zeng and Zhenxing Qian and Xinpeng Zhang},
  title = {{High-Capacity Reversible Data Hiding in Encrypted Image Using Pixel Predictions and Huffman Encoding}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2022},
  url = {https://openreview.net/forum?id=xO1IgMoM2B},
}

Loading related content...

Figure