Phase retrieval
Phase retrieval is the process of algorithmically finding solutions to the phase problem. Given a complex signal [math]\displaystyle{ F(k) }[/math], of amplitude [math]\displaystyle{ |F (k)| }[/math], and phase [math]\displaystyle{ \psi(k) }[/math]:
- [math]\displaystyle{ F(k) = |F(k)|e^{i \psi(k)} =\int_{-\infty}^{\infty} f(x)\ e^{- 2\pi i k \cdot x}\,dx }[/math]
where x is an M-dimensional spatial coordinate and k is an M-dimensional spatial frequency coordinate. Phase retrieval consists of finding the phase that satisfies a set of constraints for a measured amplitude. Important applications of phase retrieval include X-ray crystallography, transmission electron microscopy and coherent diffractive imaging, for which [math]\displaystyle{ M = 2 }[/math].[1] Uniqueness theorems for both 1-D and 2-D cases of the phase retrieval problem, including the phaseless 1-D inverse scattering problem, were proven by Klibanov and his collaborators (see References).
Problem formulation
Here we consider 1-D discrete Fourier transform (DFT) phase retrieval problem. The DFT of a complex signal [math]\displaystyle{ f[n] }[/math] is given by
[math]\displaystyle{ F[k]=\sum_{n=0}^{N-1} f[n] e^{-j 2 \pi \frac{k n}{N},}=|F[k]|\cdot e^{j\psi[k]} \quad k=0,1, \ldots, N-1 }[/math],
and the oversampled DFT of [math]\displaystyle{ x }[/math] is given by
[math]\displaystyle{ F[k]=\sum_{n=0}^{N-1} f[n] e^{-j 2 \pi \frac{k n}{M},} \quad k=0,1, \ldots, M-1 }[/math],
where [math]\displaystyle{ M \gt N }[/math].
Since the DFT operator is bijective, this is equivalent to recovering the phase [math]\displaystyle{ \psi[k] }[/math]. It is common recovering a signal from its autocorrelation sequence instead of its Fourier magnitude. That is, denote by [math]\displaystyle{ \hat{f} }[/math] the vector [math]\displaystyle{ f }[/math] after padding with [math]\displaystyle{ N-1 }[/math] zeros. The autocorrelation sequence of [math]\displaystyle{ \hat{f} }[/math] is then defined as
[math]\displaystyle{ g[m]=\sum_{i=\max \{1, m+1\}}^{N} \hat{f}_{i} \overline{\hat{f}_{i-m}}, \quad m=-(N-1), \ldots, N-1 }[/math],
and the DFT of [math]\displaystyle{ g[m] }[/math], denoted by [math]\displaystyle{ G[k] }[/math], satisfies [math]\displaystyle{ G[k]=|F[k]|^2 }[/math].
Methods
Error reduction algorithm
The error reduction is a generalization of the Gerchberg–Saxton algorithm. It solves for [math]\displaystyle{ f(x) }[/math] from measurements of [math]\displaystyle{ |F(u)| }[/math] by iterating a four-step process. For the [math]\displaystyle{ k }[/math]th iteration the steps are as follows:
Step (1): [math]\displaystyle{ G_k(u) }[/math], [math]\displaystyle{ \phi_k }[/math], and [math]\displaystyle{ g_k(x) }[/math] are estimates of, respectively, [math]\displaystyle{ F(u) }[/math], [math]\displaystyle{ \psi }[/math] and [math]\displaystyle{ f(x) }[/math]. In the first step we calculate the Fourier transform of [math]\displaystyle{ g_k(x) }[/math]:
- [math]\displaystyle{ G_k(u) = |G_k(u)|e^{i \phi_k(u)} = \mathcal{F} (g_k (x)). }[/math]
Step (2): The experimental value of [math]\displaystyle{ |F(u)| }[/math], calculated from the diffraction pattern via the signal equation[clarification needed], is then substituted for [math]\displaystyle{ |G_k(u)| }[/math], giving an estimate of the Fourier transform:
- [math]\displaystyle{ G'_k(u) = |F(u)|e^{i \phi_k(u)}, }[/math]
where the ' denotes an intermediate result that will be discarded later on.
Step (3): the estimate of the Fourier transform [math]\displaystyle{ G'_k(u) }[/math] is then inverse Fourier transformed:
- [math]\displaystyle{ g'_k(x) =|g'_k(x)|e^{i \theta'_k(x)} = \mathcal{F}^{-1}(G'_k (u)). }[/math]
Step (4): [math]\displaystyle{ g'_k (x) }[/math] then must be changed so that the new estimate of the object, [math]\displaystyle{ g_{k+1} (x) }[/math], satisfies the object constraints[clarification needed]. [math]\displaystyle{ g_{k+1} (x) }[/math] is therefore defined piecewise as:
- [math]\displaystyle{ g_{k+1} (x) \equiv \begin{cases} g'_k(x), & x \notin \gamma, \\ 0, & x \in \gamma, \end{cases} }[/math]
where [math]\displaystyle{ \gamma }[/math] is the domain in which [math]\displaystyle{ g'_k (x) }[/math] does not satisfy the object constraints. A new estimate [math]\displaystyle{ g_{k+1} (x) }[/math] is obtained and the four step process is repeated.
This process is continued until both the Fourier constraint and object constraint are satisfied. Theoretically, the process will always lead to a convergence,[1] but the large number of iterations needed to produce a satisfactory image (generally >2000) results in the error-reduction algorithm by itself being unsuitable for practical applications.
Hybrid input-output algorithm
The hybrid input-output algorithm is a modification of the error-reduction algorithm - the first three stages are identical. However, [math]\displaystyle{ g_k(x) }[/math] no longer acts as an estimate of [math]\displaystyle{ f(x) }[/math], but the input function corresponding to the output function [math]\displaystyle{ g'_k (x) }[/math], which is an estimate of [math]\displaystyle{ f(x) }[/math].[1] In the fourth step, when the function [math]\displaystyle{ g'_k (x) }[/math] violates the object constraints, the value of [math]\displaystyle{ g_{k+1}(x) }[/math] is forced towards zero, but optimally not to zero. The chief advantage of the hybrid input-output algorithm is that the function [math]\displaystyle{ g_k(x) }[/math] contains feedback information concerning previous iterations, reducing the probability of stagnation. It has been shown that the hybrid input-output algorithm converges to a solution significantly faster than the error reduction algorithm. Its convergence rate can be further improved through step size optimization algorithms.[2]
- [math]\displaystyle{ g_{k+1} (x) \equiv \begin{cases} g'_k(x), & x \notin \gamma, \\ g_k (x) - \beta{g'_k(x)}, & x \in \gamma. \end{cases} }[/math]
Here [math]\displaystyle{ \beta }[/math] is a feedback parameter which can take a value between 0 and 1. For most applications, [math]\displaystyle{ \beta \approx 0.9 }[/math] gives optimal results.{Scientific Reports volume 8, Article number: 6436 (2018)}
Shrinkwrap
For a two dimensional phase retrieval problem, there is a degeneracy of solutions as [math]\displaystyle{ f(x) }[/math] and its conjugate [math]\displaystyle{ f^*(-x) }[/math] have the same Fourier modulus. This leads to "image twinning" in which the phase retrieval algorithm stagnates producing an image with features of both the object and its conjugate.[3] The shrinkwrap technique periodically updates the estimate of the support by low-pass filtering the current estimate of the object amplitude (by convolution with a Gaussian) and applying a threshold, leading to a reduction in the image ambiguity.[4]
Semidefinite relaxation-based algorithm for short time Fourier transform
The phase retrieval is an ill-posed problem. To uniquely identify the underlying signal, in addition to the methods that adds additional prior information like Gerchberg–Saxton algorithm, the other way is to add magnitude-only measurements like short time Fourier transform (STFT).
The method introduced below mainly based on the work of Jaganathan et al.[5]
Short time Fourier transform
Given a discrete signal [math]\displaystyle{ \mathbf{x}=(f[0],f[1],...,f[N-1])^T }[/math] which is sampled from [math]\displaystyle{ f(x) }[/math]. We use a window of length W: [math]\displaystyle{ \mathbf{w}=(w[0],w[1],...,w[W-1])^T }[/math] to compute the STFT of [math]\displaystyle{ \mathrm{f} }[/math], denoted by [math]\displaystyle{ \mathbf{Y} }[/math]:
[math]\displaystyle{ Y[m,r]=\sum_{n=0}^{N-1}{f[n]w[rL-n]e^{-i2\pi \frac{mn}{N}}} }[/math]
for [math]\displaystyle{ 0\leq m \leq N-1 }[/math] and [math]\displaystyle{ 0\leq r \leq R-1 }[/math], where the parameter [math]\displaystyle{ L }[/math] denotes the separation in time between adjacent short-time sections and the parameter [math]\displaystyle{ R = \left \lceil \frac{N+W-1}{L} \right \rceil }[/math] denotes the number of short-time sections considered.
The other interpretation (called sliding window interpretation) of STFT can be used with the help of discrete Fourier transform (DFT). Let [math]\displaystyle{ w_r[n]=w[rL-n] }[/math] denotes the window element obtained from shifted and flipped window [math]\displaystyle{ \mathbf{w} }[/math]. Then we have
[math]\displaystyle{ \mathbf{Y}=[\mathbf{Y}_0,\mathbf{Y}_1,...,\mathbf{Y}_{R-1}] }[/math], where [math]\displaystyle{ \mathbf{Y}_r = \mathbf{x}\circ\mathbf{w}_r }[/math].
Problem definition
Let [math]\displaystyle{ {Z}_{w}[m,r]=|Y[m,r]|^2 }[/math] be the [math]\displaystyle{ N \times R }[/math] measurements corresponding to the magnitude-square of the STFT of [math]\displaystyle{ \mathbf{x} }[/math], [math]\displaystyle{ \mathbf{W}_{r} }[/math] be the [math]\displaystyle{ N \times N }[/math] diagonal matrix with diagonal elements [math]\displaystyle{ \left(w_{r}[0], w_{r}[1], \ldots, w_{r}[N-1]\right) . }[/math] STFT phase retrieval can be stated as:
Find [math]\displaystyle{ \mathbf{x} }[/math] such that [math]\displaystyle{ Z_{w}[m, r]=\left|\left\langle\mathbf{f}_{m}, \mathbf{W}_{r} \mathbf{x}\right\rangle\right|^{2} }[/math] for [math]\displaystyle{ 0 \leq m \leq N-1 }[/math] and [math]\displaystyle{ 0 \leq r \leq R-1 }[/math], where [math]\displaystyle{ \mathbf{f}_{m} }[/math] is the [math]\displaystyle{ m }[/math]-th column of the [math]\displaystyle{ N }[/math]-point inverse DFT matrix.
Intuitively, the computational complexity growing with [math]\displaystyle{ N }[/math] makes the method impractical. In fact, however, for the most cases in practical we only need to consider the measurements corresponding to [math]\displaystyle{ 0 \leq m \leq M }[/math], for any parameter [math]\displaystyle{ M }[/math] satisfying [math]\displaystyle{ 2W \leq M \leq N }[/math].
To be more specifically, if both the signal and the window are not vanishing, that is, [math]\displaystyle{ x[n] \neq 0 }[/math] for all [math]\displaystyle{ 0 \leq n \leq N-1 }[/math] and [math]\displaystyle{ w[n] \neq 0 }[/math] for all [math]\displaystyle{ 0 \leq }[/math] [math]\displaystyle{ n \leq W-1 }[/math], signal [math]\displaystyle{ \mathbf{x} }[/math] can be uniquely identified from its STFT magnitude if the following requirements are satisfied:
- [math]\displaystyle{ L \lt W \leq N/2 }[/math],
- [math]\displaystyle{ 2W \leq M \leq N }[/math].
The proof can be found in Jaganathan' s work,[5] which reformulates STFT phase retrieval as the following least-squares problem:
[math]\displaystyle{ \min _{\mathbf{x}} \sum_{r=0}^{R-1} \sum_{m=0}^{N-1}\left(Z_{w}[m, r]-\left|\left\langle\mathbf{f}_{m}, \mathbf{W}_{r} \mathbf{x}\right\rangle\right|^{2}\right)^{2} }[/math].
The algorithm, although without theoretical recovery guarantees, empirically able to converge to the global minimum when there is substantial overlap between adjacent short-time sections.
Semidefinite relaxation-based algorithm
To establish recovery guarantees, one way is to formulate the problems as a semidefinite program (SDP), by embedding the problem in a higher dimensional space using the transformation [math]\displaystyle{ \mathbf{X}=\mathbf{x}\mathbf{x}^\ast }[/math] and relax the rank-one constraint to obtain a convex program. The problem reformulated is stated below:
Obtain [math]\displaystyle{ \mathbf{\hat{X}} }[/math] by solving:[math]\displaystyle{ \begin{align}
&\mathrm{minimize}~~~\mathrm{trace}(\mathbf{X})\\[6pt]
&\mathrm{subject~to}~~Z[m,r]=\mathrm{trace}(\mathbf{W}_r^{\ast}\mathbf{f}_m\mathbf{f}_m^\ast\mathbf{W}_r\mathbf{X})\\[0pt]
&~~~~~~~~~~~~~~~~~~~\mathbf{X}\succeq0
\end{align} }[/math]for [math]\displaystyle{ 1 \leq m \leq M }[/math] and [math]\displaystyle{ 0 \leq r \leq R-1 }[/math]
Once [math]\displaystyle{ \mathbf{\hat{X}} }[/math] is found, we can recover signal [math]\displaystyle{ \mathbf{x} }[/math] by best rank-one approximation.
Applications
Phase retrieval is a key component of coherent diffraction imaging (CDI). In CDI, the intensity of the diffraction pattern scattered from a target is measured. The phase of the diffraction pattern is then obtained using phase retrieval algorithms and an image of the target is constructed. In this way, phase retrieval allows for the conversion of a diffraction pattern into an image without an optical lens.
Using phase retrieval algorithms, it is possible to characterize complex optical systems and their aberrations.[6] For example, phase retrieval was used to diagnose and repair the flawed optics of the Hubble Space Telescope.[7][8]
Other applications of phase retrieval include X-ray crystallography and transmission electron microscopy.
See also
- Phase problem
- Crystallography
- X-ray crystallography
- Coherent diffraction imaging
- Transport-of-Intensity Equation
- Phase correlation
References
- ↑ 1.0 1.1 1.2 Fienup, J. R. (1982-08-01). "Phase retrieval algorithms: a comparison" (in en). Applied Optics 21 (15): 2758–69. doi:10.1364/AO.21.002758. ISSN 0003-6935. PMID 20396114. Bibcode: 1982ApOpt..21.2758F. https://www.osapublishing.org/abstract.cfm?URI=ao-21-15-2758.
- ↑ Marchesini, S. (25 January 2007). "Invited Article: A unified evaluation of iterative projection algorithms for phase retrieval" (in en). Review of Scientific Instruments 78 (1): 011301–011301–10. doi:10.1063/1.2403783. ISSN 0034-6748. PMID 17503899. Bibcode: 2007RScI...78a1301M.
- ↑ Fienup, J. R.; Wackerman, C. C. (1986-11-01). "Phase-retrieval stagnation problems and solutions" (in en). Journal of the Optical Society of America A 3 (11): 1897. doi:10.1364/JOSAA.3.001897. ISSN 1084-7529. Bibcode: 1986JOSAA...3.1897F. https://www.osapublishing.org/abstract.cfm?URI=josaa-3-11-1897.
- ↑ Marchesini, S.; He, H.; Chapman, H. N.; Hau-Riege, S. P.; Noy, A.; Howells, M. R.; Weierstall, U.; Spence, J. C. H. (2003-10-28). "X-ray image reconstruction from a diffraction pattern alone" (in en). Physical Review B 68 (14): 140101. doi:10.1103/PhysRevB.68.140101. ISSN 0163-1829. Bibcode: 2003PhRvB..68n0101M.
- ↑ 5.0 5.1 Jaganathan, Kishore; Eldar, Yonina C.; Hassibi, Babak (June 2016). "STFT Phase Retrieval: Uniqueness Guarantees and Recovery Algorithms". IEEE Journal of Selected Topics in Signal Processing 10 (4): 770–781. doi:10.1109/JSTSP.2016.2549507. ISSN 1941-0484. Bibcode: 2016ISTSP..10..770J.
- ↑ Fienup, J. R. (1993-04-01). "Phase-retrieval algorithms for a complicated optical system" (in EN). Applied Optics 32 (10): 1737–1746. doi:10.1364/AO.32.001737. ISSN 2155-3165. PMID 20820307. Bibcode: 1993ApOpt..32.1737F. https://www.osapublishing.org/ao/abstract.cfm?uri=ao-32-10-1737.
- ↑ "First person: A scientist's discovery puts space into focus". https://www.wbur.org/onpoint/2022/04/01/first-person-a-scientists-discovery-puts-space-into-focus. Retrieved 30 May 2022. Interview with Professor Robert Gonsalves.
- ↑ Krist, JE; Burrows, CJ (1995-08-01). "Phase-retrieval analysis of pre- and post-repair Hubble Space Telescope images" (in EN). Applied Optics 34 (22): 4951–64. doi:10.1364/AO.34.004951. PMID 21052338. Bibcode: 1995ApOpt..34.4951K. https://pubmed.ncbi.nlm.nih.gov/21052338/.
- Klibanov, M. V. (1985). "On uniqueness of the determination of a compactly supported function from the modulus of its Fourier transform". Soviet Mathematics - Doklady 32: 668–670.
- Klibanov, M.V. (1987). "Determination of a function with compact support from the absolute value of its Fourier transform and an inverse scattering problem". Differential Equations 22: 1232–1240.
- Klibanov, M.V. (1987). "Inverse scattering problems and restoration of a function from the modulus of its Fourier transform". Siberian Math J. 27 (5): 708–719. doi:10.1007/bf00969199.
- Klibanov, M. V. (1989). "Uniqueness of the determination of distortions of a crystal lattice by the X-ray diffraction in a continuous dynamical model". Differential Equations 25: 520–527.
- Klibanov, M.V.; Sacks, P.E. (1992). "Phaseless inverse scattering and the phase problem in optics". J. Math. Phys. 33 (11): 2813–3821. doi:10.1063/1.529990. Bibcode: 1992JMP....33.3813K.
- Klibanov, M. V.; Sacks, P.E. (1994). "Use of partial knowledge of the potential in the phase problem of inverse scattering". J. Comput. Phys. 112 (2): 273–281. doi:10.1006/jcph.1994.1099. Bibcode: 1994JCoPh.112..273K.
- Klibanov, M. V.; Sacks, P.E.; Tikhonravov, A.V. (1995). "The phase retrieval problem". Inverse Problems 11 (1): 1–28. doi:10.1088/0266-5611/11/1/001. Bibcode: 1995InvPr..11....1K.
- Klibanov, M. V. (2006). "On the recovery of a 2-D function from the modulus of its Fourier transform". J. Math. Anal. Appl. 323 (2): 818–843. doi:10.1016/j.jmaa.2005.10.079.
Original source: https://en.wikipedia.org/wiki/Phase retrieval.
Read more |