Introduction
Reversible Data Hiding (RDH) is a specialized branch of steganography where the embedded secret message can be extracted, and the original cover image can be perfectly reconstructed. This property is vital for sensitive domains such as medical imaging, military intelligence, and forensic analysis, where any permanent distortion is unacceptable. The primary challenge in RDH is balancing high embedding capacity with minimal visual distortion, often referred to as the capacity-distortion trade-off. Traditional methods like Prediction-Error Expansion (PEE) typically offer limited capacity, often restricted to 1 or 2 bits per pixel (bpp). This paper presents $NNP^2$, a novel algorithm that leverages Nearest Neighborhood Pixel Prediction and the Chinese Remainder Theorem (CRT) to achieve significantly higher embedding capacities.
Methodology
The $NNP^2$ algorithm integrates three core techniques to optimize data hiding performance: rhombus prediction, CRT-based embedding, and histogram shifting.
Rhombus Prediction
To predict pixel values accurately, the algorithm employs a rhombus-based neighborhood approach. The image is divided into a checkerboard pattern of "White" and "Black" pixels. As shown in Figure 2, the value of a central "White" pixel $p_{i,j}$ is predicted using its four immediate "Black" neighbors: $P_{i-1,j}$, $P_{i,j-1}$, $P_{i,j+1}$, and $P_{i+1,j}$. This spatial independence allows one set of pixels to be modified for data embedding without affecting the reference values used for prediction in the other set, facilitating perfect reversibility.
Chinese Remainder Theorem (CRT) for Multi-bit Embedding
The central innovation of $NNP^2$ is the application of the Chinese Remainder Theorem to embed multiple bits into a single pixel. By treating secret data as residues of a system of congruences, the algorithm calculates a modification value $C$. This value is then used to expand the prediction error. By adjusting the moduli $p$ and $q$, the algorithm can "pack" up to 6 bits of data into a single expandable pixel, effectively breaking the traditional 2-bpp limit.
Histogram Shifting and Prediction-Error Expansion
To ensure reversibility and prevent pixel value overflow or underflow, the algorithm utilizes histogram shifting. If the prediction error for a pixel is small, it is expanded to carry the CRT-encoded secret data. If the error exceeds a certain threshold, the pixel value is shifted to create a gap in the histogram, as illustrated in Figure 4. This shifting mechanism prevents different pixel values from merging, allowing the original state to be recovered during extraction.
Experimental Results
The $NNP^2$ algorithm was evaluated using standard $512 \times 512$ grayscale benchmark images, including Lena, Baboon, Boat, F-16, Peppers, and GoldHill. These images represent a spectrum of textures, from smooth gradients to high-frequency details.
Key findings include:
- Capacity: The algorithm demonstrated a theoretical capacity of up to 6 bpp. In practical tests, it consistently outperformed state-of-the-art methods like those by Sachnev et al. at equivalent visual quality levels.
- Visual Quality: For a bit rate of approximately 0.2 bpp, the algorithm maintained a Peak Signal-to-Noise Ratio (PSNR) exceeding 48 dB for most images, ensuring that the modifications remain imperceptible to the human eye (typically anything above 40 dB is considered indistinguishable).
- Texture Sensitivity: Performance varied with image complexity. Smooth images like F-16 achieved high capacities (e.g., 53,167 bits at 48.60 dB), while complex images like Baboon yielded lower capacities (9,493 bits at 48.22 dB) due to larger, less predictable prediction errors.
Conclusion
The $NNP^2$ algorithm represents a significant advancement in Reversible Data Hiding by combining spatial rhombus prediction with the mathematical efficiency of the Chinese Remainder Theorem. While it excels in smooth images, its performance on high-texture images remains a challenge due to larger prediction errors. Future work will focus on improving performance in high-texture regions and automating the selection of optimal parameters ($p$ and $q$) to further enhance the capacity-distortion trade-off.
Summary updated