JND-Guided Neural Watermarking with Spatial Transformer Decoding for Screen-Capture Robustness
Organizations: School of Optical-Electrical and Computer Engineering, Zhejiang Gongshang University
Abstract
Screen-shooting robust watermarking aims to imperceptibly embed extractable information into host images such that the watermark survives the complex distortion pipeline of screen display and camera recapture. However, achieving high extraction accuracy while maintaining satisfactory visual quality remains an open challenge, primarily because the screen-shooting channel introduces severe and entangled degradations including Moiré patterns, color-gamut shifts, perspective warping, and sensor noise. In this paper, we present an end-to-end deep learning framework that jointly optimizes watermark embedding and extraction for screen-shooting robustness. Our framework incorporates three key innovations: (i) a comprehensive noise simulation layer that faithfully models realistic screen-shooting distortions -- notably including a physically-motivated Moiré pattern generator -- enabling the network to learn robust representations against the full spectrum of capture-channel noise through adversarial training; (ii) a Just Noticeable Distortion (JND) perceptual loss function that adaptively modulates watermark embedding strength by supervising the perceptual discrepancy between the JND coefficient map and the watermark residual, thereby concentrating watermark energy in perceptually insensitive regions to maximize visual quality; and (iii) two complementary automatic localization modules -- a semantic-segmentation-based foreground extractor for captured image rectification and a symmetric noise template mechanism for anti-cropping region recovery -- that enable fully automated watermark decoding under realistic deployment conditions. Extensive experiments demonstrate that our method achieves an average PSNR of 30.94~dB and SSIM of 0.94 on watermarked images while embedding 127-bit payloads.
Figures & tables
| Layer | Channels | Input | ||
| input | – | – | 6 | – |
| conv1 | 3 | 1 | input | |
| conv2 | 3 | 2 | conv1 | |
| conv3 | 3 | 2 | conv2 | |
| conv4 | 3 | 2 | conv3 | |
| conv5 | 3 | 2 | conv4 |
| Layer | Channels | Input | ||
| STN Sub-network | ||||
| conv1 | 3 | 2 | image | |
| conv2 | 3 | 2 | conv1 | |
| conv3 | 3 | 2 | conv2 | |
| fc0 | – | – | 320 000 | flatten(conv3) |
| fc1 | – | – | fc0 | |
| Category | Parameter | Value |
| Network | Training iterations | 175,000 |
| Batch size | 16 | |
| Watermark length | 127 bits | |
| Learning rate | ||
| Loss weights | (MSE) | 2 |
| (LPIPS) | 1.5 |
| Network | PSNR (dB) | SSIM | LPIPS | BER (%) | |
|---|---|---|---|---|---|
| NET1 | – | 19.73 | 0.737 | 0.125 | 0.13 |
| NET2 | 1 | 22.86 | 0.772 | 0.109 | 0.14 |
| 0.5 | 23.59 | 0.806 | 0.098 | 0.36 | |
| 0.2 | 25.00 | 0.845 | 0.075 | 0.49 | |
| NET3 | 1 | 30.94 | 0.942 | 0.048 | 2.86 |
| Angle | NET4 | NET5 | |
|---|---|---|---|
| 7.46 | 8.27 | ||
| 1.85 | 1.97 | ||
| 2.55 | 2.73 | ||
| 2.39 | 3.18 | ||
| 2.53 | 3.68 | ||
| 1.09 | 1.20 |
| Angle | Method | BER (%) | |
|---|---|---|---|
| No localization | 46.72 | – | |
| w/o segmentation | 46.70 | 0.144 | |
| w/ segmentation | 7.39 | 0.963 | |
| No localization | 44.54 | – | |
| w/o segmentation | 44.54 | 0.112 | |
| w/ segmentation | 8.58 | 0.953 |
| Crop ratio | Dir. | w/ anti-crop | w/o anti-crop |
|---|---|---|---|
| Top | 2.72 | 4.87 | |
| Left | 2.46 | 5.90 | |
| Bottom | 1.76 | 3.91 | |
| Right | 2.47 | 4.93 | |
| Top | 4.96 | 53.10 | |
| Left | 6.24 | 55.96 |
| Angle | Distance | Redmi K30 | Sony A6100 |
|---|---|---|---|
| 40 cm | 1.09 | 1.42 | |
| 60 cm | 1.57 | 1.81 | |
| 100 cm | 2.51 | 1.46 | |
| 200 cm | 11.65 | 3.33 | |
| 40 cm | 2.55 | 1.44 | |
| 40 cm | 2.53 | 1.65 |
| Method | Cropping ratio | Distance (cm) | Angle range ( ∘ ) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.05 | 0.25 | 0.45 | 0.55 | 30–39 | 40–49 | 50–59 | 60–69 | – | – | – | – | – | – | |
| Nakamura Nakamura et al. (2004) | – | – | – | – | 14.75 | 17.81 | 18.44 | 19.50 | 19.63 | 16.31 | 15.44 | 13.88 | 22.27 | 16.11 |
| Pramila Pramila et al. (2012) | – | – | – | – | 28.38 | 28.62 | 28.94 | 30.19 | 19.92 | 16.41 | 19.91 | 20.70 | 20.31 | 22.34 |
| DTW Fang et al. (2021) | 0.31 | 0.31 | 0.31 | 22.34 | 4.81 | 2.73 | 12.11 | 11.72 | 16.02 | 5.47 | 3.91 | 2.73 | 2.73 | 3.52 |
| SSRW Fang et al. (2019) | – | – | – | – | – | 0.78 | 1.08 | 2.64 | 1.08 | 1.75 | 3.42 | 1.56 | 5.95 | 5.17 |
| TERA Fang et al. (2022) | – | – | – | – | 2.54 | 7.03 | 3.71 | 6.84 | 14.46 | 7.03 | 7.05 | 5.27 | 11.52 | 23.52 |
| Method | Bits | PSNR | SSIM | LPIPS |
|---|---|---|---|---|
| Nakamura Nakamura et al. (2004) | 32 | 38.97 | 0.99 | – |
| Pramila Pramila et al. (2012) | 32 | 40.26 | 0.99 | – |
| DTW Fang et al. (2021) | 64 | 39.73 | 0.99 | – |
| SSRW Fang et al. (2019) | 64 | 42.30 | – | – |
| Ours | 127 | 31.77 | 0.91 | 0.05 |
| Stage | Time (ms) | Throughput (FPS) |
|---|---|---|
| Watermark Embedding | 21.55 | 46.40 |
| Region Localization | 29.03 | 34.44 |
| Watermark Extraction | 13.43 | 74.46 |
| Total | 64.01 | 15.62 |
Robust Watermarking
Robust watermarking embeds or verifies ownership and provenance signals that survive editing, compression, model changes, and deliberate removal.
See all 207 papers