Reversible data hiding in encrypted images based on combined encoding method containing the opposite bit

Zhenyu Chen, Zhaoxia Yin, Hongjian Zhan, Shujing Lv, Menghan HuJournal of Image and Graphics 2024

Introduction

In the era of cloud computing, Reversible Data Hiding in Encrypted Images (RDHEI) has emerged as a critical technology for securing sensitive data. RDHEI allows a data hider to embed additional information into an encrypted image while ensuring that the original image and the hidden data can be perfectly recovered. The primary challenge in this field is maximizing the Embedding Rate (ER)—the amount of data hidden per pixel (bits per pixel, or bpp). Current methods often struggle with compression efficiency when dealing with fragmented bitstreams, leading to wasted capacity. This paper proposes a novel RDHEI scheme that optimizes bit-plane compression through a "combined encoding method containing the opposite bit."

Methodology

The proposed scheme follows a multi-stage pipeline designed to maximize the storage space vacated before encryption.

1. Pixel Prediction and Error Calculation

The image owner first divides the original image into equal-sized blocks. Using a Median Edge Detector (MED), the system predicts pixel values based on their local context. By calculating the prediction errors rather than using raw pixel values, the data becomes highly redundant (concentrated near zero), making it significantly easier to compress.

Example of pixel prediction context using neighboring values to estimate the target pixel.

2. Bit-plane Rearrangement

The eight bit-planes of the prediction errors are rearranged to further exploit spatial correlations between neighboring pixels. This step ensures that the bitstreams are as continuous as possible before the encoding phase begins.

Bit-plane rearrangement strategies showing different scanning orders to optimize spatial correlation.

3. Combined Encoding with the "Opposite Bit"

The core innovation of this research is the encoding logic. The bitstream is divided into continuous and discontinuous segments. In any bitstream, if a sequence of identical bits (e.g., a run of 1s) ends, the subsequent bit is guaranteed to be the opposite (a 0). Traditional encoding methods store the length of the run and then explicitly store the next bit. This method implicitly includes that "opposite bit" at the end of a compressed string. By representing $L+1$ bits of original data using a code designed for only $L$ bits, the information density of the compressed stream is effectively increased.

4. Encryption and Embedding

After compression, auxiliary information is placed in the high bit-planes and encrypted. The low bit-planes are left empty, providing a reserved space for the data hider to embed secret information using a standard stream cipher.

Experimental Results

The algorithm was evaluated on two large-scale datasets: BOSSBase (10,000 images) and BOWS2 (10,000 images). The results demonstrate superior performance compared to existing state-of-the-art methods:

  • Average Embedding Rate (BOSSBase): 3.8183 bpp
  • Average Embedding Rate (BOWS2): 3.6943 bpp
  • Peak Performance: On specific images like Airplane, the method achieved an ER of 4.0121 bpp.

The scheme maintains perfect reversibility, achieving infinite Peak Signal-to-Noise Ratio (PSNR) and a Structural Similarity Index (SSIM) of 1 upon recovery.

Conclusion

By better utilizing the correlation between adjacent pixels and introducing the "opposite bit" encoding logic, this algorithm successfully addresses the compression loss typically caused by short, frequent bitstream transitions. This approach significantly enhances the embedding capacity of RDHEI systems, making it a robust solution for secure cloud-based image management.

Summary updated

BibTeX
@article{chen2024reversible,
  author = {Zhenyu Chen and Zhaoxia Yin and Hongjian Zhan and Shujing LV and Menghan Hu},
  title = {{Reversible data hiding in encrypted images based on combined encoding method containing the opposite bit}},
  journal = {Journal of Image and Graphics},
  year = {2024},
  doi = {10.11834/jig.240287},
}
Figure