# Appendix K - Measured Data Quick Reference (For Cross-Checking Experiments)

<!-- lang-switch -->
> [🌐 中文版](https://yukinoshita-lin.github.io/nsf5-steganography/zh/content/appK.html)



This appendix collects the real numbers cited throughout the handbook, all of them reproducible from the project's scripts (sources noted in parentheses). Authoritative sources: docs/RESULTS.md (generated by experiments/build_results_table.py — do not edit it by hand) and the measured output of each script.

## K.1 Embedding measurements (256×256 demo image, 2026-10-04)

| **Metric** | **Pixel domain (p=3)** | **JPEG domain (p=3, q85)** |
| --- | --- | --- |
| Total carriers | 65 536 pixels | 5 150 nonzero AC coefficients |
| Modifications to embed 240 bit | 108 pixels (0.2%) (240 bit = 28-byte message + 16-bit length header) | 117 coefficients |
| Theoretical capacity | ≈ 3.4 KB of text (p=3) | 2 205 bit |
| Fidelity | No visible difference; PSNR ≈ 76 dB (measured) | No visible difference (JPEG compression noise floor) |

## K.2 Full-capacity efficiency sweep (random noise image, measured by compute_comparison(6))

| **p** | **Theoretical α** | **Measured α** | **Modified pixels** |
| --- | --- | --- | --- |
| 1 | 2.00 | 2.01 | 32 502 |
| 2 | 2.67 | 2.62 | 16 655 |
| 3 | 3.43 | 3.38 | 8 263 |
| 4 | 4.27 | 4.18 | 4 149 |
| 5 | 5.16 | 5.08 | 2 054 |
| 6 | 6.10 | 5.90 | 1 035 |
| 504 bit (p=3) | 3.43 | 2.68 | 188 |

**A note on the counting basis (do not mix these up).** The first six rows of the table above are measurements of **full-capacity filling** (every available position for each p is filled), not the result of one fixed message; the last row separately lists the measurement for the 63-byte (504 bit) demo message from run_e2e.py: same image, p=3, modifying only 188 pixels. The two numbers have different denominators — the "188 pixels modified" in the Ch. 2 run_e2e output is the latter, and the 8 263 in the Ch. 4 efficiency section is the former.

## K.3 Main detection table (BOSSbase 1.01, held out by source image, excerpted from docs/RESULTS.md)

| **Model** | **Features** | **AUC** | **95% CI** |
| --- | --- | --- | --- |
| LGB-11d | 11-D | 0.7128 | [0.6913, 0.7360] |
| LGB-143d | 143-D | 0.8062 | [0.7894, 0.8225] |
| LGB-53d | 53-D | 0.7172 | [0.6943, 0.7406] |
| xuNet | Raw pixels | 0.5007 | [0.5004, 0.5012] |
| yenet | 30 fixed SRM kernels + conv | 0.9541 | [0.9463, 0.9630] |

## K.4 Datasets and protocol essentials

| **Dataset** | **Size** | **In one sentence** |
| --- | --- | --- |
| bossbase_npz | 2 000 source images × 5 variants = 10 000 samples | The field's standard benchmark |
| campus_v2_jpeg | 414 campus photos × 14 = 5 796 samples | Self-built dataset containing real JPEG clean images |
| ood_real_jpeg | 1 514 real clean photos | False-positive evaluation before deployment (campus+DIV2K+ALASKA#2) |

Protocol red lines: all training/evaluation is **grouped by source image**; confidence intervals are resampled by source image; numbers from different datasets are not comparable. Historically, violating these three rules produced an inflated-AUC incident of 0.8946 → 0.7555 (audit of 2026-09-14; see Section 1 of RESULTS.md for details).

## K.5 Tampering and hash measurements

| **Item** | **Measured value** |
| --- | --- |
| SHA-256 avalanche (1-character difference) | 121 of 256 bits flipped ≈ 47% |
| JPEG-domain modified coefficients / carriers | 117 / 5 150 (240 bit, p=3, q85) |
| JPEG-domain chroma hash anchor | Covers only Cb/Cr; never touched by the Y-channel embedding |
| Freeze smoke test | Six items: size/version/round-trip/ML bit-for-bit/JPEG round-trip+repro/GUI theme |

## K.6 LSB embedding-rate sweep (Ch. 3, ch03_results.csv)

Per-level data for the sweep experiment in Section 3.6 of Ch. 3 (256×256 demo image, random bits, 2026-10-04). The four fingerprint columns move in the same direction: the more you hide, the lower the chi-square statistic, the smaller the RS gap Gn, and the closer the LSB difference entropy gets to 1 — visually there is still no difference, yet statistically the image moves step by step toward "suspicious". For the complete 15 columns, see figures/ch03_results.csv in StegoLab.

| **Embedding rate** | **Payload bits** | **Modified pixels** | **PSNR (dB)** | **Chi-square statistic** | **RS_Gn** | **LSB difference entropy** |
| --- | --- | --- | --- | --- | --- | --- |
| 0.0% | 0 | 0 | — | 34 829 | 0.555 | 0.785 |
| 10.0% | 6 554 | 3 272 | 61.2 | 30 535 | 0.515 | 0.812 |
| 20.0% | 13 107 | 6 488 | 58.2 | 25 995 | 0.471 | 0.842 |
| 30.0% | 19 661 | 9 834 | 56.4 | 21 272 | 0.425 | 0.872 |
| 40.0% | 26 214 | 13 131 | 55.1 | 16 668 | 0.375 | 0.901 |
| 50.0% | 32 768 | 16 451 | 54.1 | 12 228 | 0.320 | 0.928 |
| 60.0% | 39 322 | 19 719 | 53.4 | 8 398 | 0.261 | 0.951 |
| 70.0% | 45 875 | 23 056 | 52.7 | 5 018 | 0.198 | 0.971 |
| 80.0% | 52 429 | 26 326 | 52.1 | 2 353 | 0.134 | 0.986 |
| 90.0% | 58 982 | 29 590 | 51.6 | 679 | 0.070 | 0.996 |
| 100.0% | 65 536 | 32 911 | 51.1 | 72 | -0.004 | 1.000 |
