# Structure of noise

As introduced in the previous section, a noise $$W$$ is a random vector $$\left(w\_i\right)\_{1 \leq i \leq n}$$ where each element is independently chosen from a normal distribution. This atomic watermark is constructed as a rectangular image of periodic patterns as follows:

* let fix some values $$M,N$$ for the width and the height of the rectangle, and
* let $$\mathcal{X}\_i, \mathcal{Y}\_i$$ be independent and identically distributed normal random variables:

  $$
  \mathcal{X}\_i \sim \mathcal{Y}\_i \sim \mathcal{N}\left(\mu, \sigma^2\right)
  $$

  for some $$\mu$$ and $$\sigma$$, then take $$X\_i, Y\_i$$ be respectively some samples of $$\mathcal{X}\_i, \mathcal{Y}\_i$$.

The complex atomic signal $$w\_i$$ is defined by:

$$
w\_i(x,y) = A e^{2i\pi\left(\frac{x}{X\_i} + \frac{y}{Y\_i}\right)} \ \left(0 \leq x < M, 0 \leq y < N \right)
$$

for some amplitude $$A$$. We observe that $$w\_i\left(x,y\right) = w\_i\left(x + X\_i, y\right) = w\_i\left(x, y + Y\_i\right) , \forall x,y$$ then $$X\_i, Y\_i$$ are actually the horizontal and the vertical periods.

***Remark:*** $$\mathcal{X}\_i$$ and $$\mathcal{Y}\_i$$ are elements of a set $$\left{ \mathcal{X}\_i, \mathcal{Y}\_i \mid 1 \leq i \leq n\right}$$ of independent and identically distributed normal random variables $$\mathcal{N}\left(\mu, \sigma^2\right)$$. The parameters $$\mu$$ and $$\sigma$$ are chosen by analyzing the input scene that is discussed in\~\cref{subsec:noise\_spreading}.

***Proposition 1.*** (Fourier transform of complex atomic signals)

$$
F\_i\left(u,v\right) = \frac{A}{M \times N} \frac{\left(1 - e^{2i\pi \frac{M}{X\_i}}\right) \left(1 - e^{2i\pi \frac{N}{Y\_i}}\right)}{\left(1 - e^{2i\pi\left(\frac{1}{X\_i} + \frac{u}{M}\right)}\right) \left(1 - e^{2i\pi\left(\frac{1}{Y\_i} + \frac{v}{N}\right)}\right)}
$$

***Proof:*** Direct calculation (for details, see [Appendix 1](/inferix-whitepaper/appendix.md)).

The given structure of noise has two folds: we empirically find that this form of signal makes the wrapping graphical objects (discussed in the [noise insertion](/inferix-whitepaper/implementation/noise-insertion.md)) persistent in the rendering of graphics scenes. Furthermore, the distortion raised by any atomic watermark is easily controlled thanks to the simple form of the signal amplitude given in the proposition.

The spectrums of atomic signals play a crucial role in the noise verification since they help to distinguish embedded noises from the original image signals. They are also completely determined by the periods $$X\_i, Y\_i$$ given fixed $$M,N$$ since the discrete Fourier transform in the proposition. In turn, these periods statistically rely on the expectation $$\mu$$, we will discuss how to choose this value in the [noise spreading](/inferix-whitepaper/implementation/adaptive-noise-spreading.md).

The length $$n$$ of the noise vector is one of the principal factors which decides the robustness of noise: the higher the value $$n$$, the lower the false positive of noise verification. But this size influences the quality of the rendered image: the lower value $$n$$, the higher fidelity of the rendered images. Consequently, the value $$n$$ is a trade-off between the robustness of the embedded noise and the fidelity of the rendered image, it is empirically chosen to be about 8 to 15.

#### Figure 4: <a href="#random_vector_atomic_watermarks" id="random_vector_atomic_watermarks"></a>

<figure><img src="/files/x69Wyjf8gTNG716prgEJ" alt=""><figcaption><p>A random vector of 5 atomic watermarks</p></figcaption></figure>

[Figure 4](#random_vector_atomic_watermarks) shows a noise as a vector of $$5$$ atomic watermarks and the Fourier transforms showing the corresponding frequency characteristics. The vital frequencies of energy are clearly shown in the spectrums. For illustration purpose, we take $$X\_i = Y\_i \sim \mathcal{N}\left(25,5\right) \ \left(1 \leq i \leq 5\right)$$, and $$M = N = 512$$.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inferix.io/inferix-whitepaper/implementation/structure-of-noise.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
