Theoretical Foundation: Physical and Mathematical Models¶
In this section, we explain the theoretical foundation of our optimization pipeline, in which we introduce the physical principles and necessary mathematical tools.
Scalar Excitation PSF Model via Zernike Polynomials¶
We start with modeling the beam propagation. The model that we adopt is the scalar Fourier propagation formula
Eq. (108) describes the relation between the pupil function \(P\) in the Fourier space and the resulting PSF \(h\) at the focal plan in the object space. The wave vector in the Fourier plane is \((k_\text{x},k_\text{y})\). We define the pupil function \(P: \mathbb{R}^2 \to \mathbb{C}\) on a disk whose radius is determined by the cutoff frequency \(k_{\max}=\frac{2\pi NA}{\lambda}\) in the Fourier space as
with \(\mathrm{j}\) the imaginary unit, NA is the numerical aperture, and \(\lambda\) is the excitation wavelength. The complex term in the exponential in Eq. (109) represents a phase mask which we parameterize with a series of Zernike coefficients, represented by a length-\(D\) vector \(\mathbf{c} = (c_0, \ldots, c_d, \ldots, c_{D-1} )\), where \(c_d\in \mathbb{R}\). The collection of functions \(\left\{ \varphi_d(\cdot, \cdot) \right\}_{d=0}^{D-1}\), \(\varphi_d:\mathbb{R}^2 \to \mathbb{R}\), is the first \(D\) Zernike polynomials. An extra factor \(\kappa(\cdot)\) is added to the phase to include functions outside the space spanned by the Zernike polynomials, e.g. the vortex phase ramp. The phase mask modulates the shape of the resulting excitation PSF. For example, when the phase mask is equal to zero, the resulting PSF is an Airy disk; when the phase mask is the ramp function \(\kappa(k_\text{x}, k_\text{y}) = \text{arctan}\left(\frac{k_\text{x}}{k_\text{y}}\right)\), the resulting PSF is a donut beam.
Statistical Model of the Photon Detection in MINFLUX¶
The measurement in MINFLUX is not images acquired by a camera, rather, one uses a photon counter to record the number of emitted photons from which one can estimate the spatial location of an emitter. In this section, we explain the statistical model of the photon detection in MINFLUX.
We assume that there is only one emitter (e.g., a fluorescent molecule) of interest in the FOV \(\Gamma_\tau\). We denote its location as \(\boldsymbol{\theta}=(x, y) \in \Gamma_{\tau}\subset\mathbb{R}^2\). It is exposed to a total number of \(K\) different excitation beams. Note that in the standard MINFLUX setup, four excitation beams are used. Here, we carry out our analysis in a more general scenario.
We describe the intensities of these beams by the following \(K\) functions \(h_0(\boldsymbol{\theta}), \ldots, h_{K-1}(\boldsymbol{\theta})\), where each function \(h_i(\boldsymbol{\theta}) = h_i(\boldsymbol{\theta} - \mathbf{t}_i)\), and \(\mathbf{t}_i = (t_{\text{x}, i}, t_{\text{y}, i})\in\mathbb{R}^2\) is a constant shift vector that represents the location of the center of the \(i\)th beam.
After each exposure, the molecule of interest emits photons that are collected by a photon counter. We define the expected number of detected photons \(\mu_i(\boldsymbol{\theta})\) for the \(i\)th exposure before normalization as
The constant \(\alpha\) represents the efficiency of the experiment. It depends on the photo-physics of the emitter, the detection efficiency of the system, and the energy delivered to the sample, and \(b\) is a constant background level including the detector dark counts.
We introduce a position-dependent normalization factor \(\mathcal{N}(\boldsymbol{\theta})\) to impose a budget \(N\) on the total expected number of photons on the detector for any position \(\boldsymbol{\theta}\) to ensure a fair comparison of the detection limits between experiments. The expected number of detected photons after normalization is
and the normalization factor is defined as
such that \(N = \sum_{i=0}^{K-1} n_i(\boldsymbol{\theta})\). We model the number of detected photons of the \(i\)th exposure as a Poissonian random variable (R.V.) \(X_i\) with mean \(n_i(\boldsymbol{\theta})\) dependent on the position \(\boldsymbol{\theta}\) of the emitter. Its probability mass function (PMF) is
Finally, the measurements of a MINFLUX experiment is a list of photon counts \(s_0, \ldots, s_{K-1}\) which are realizations of the \(K\) R.V.s \((X_0, \ldots, X_{K-1})\). The photons emitted by the fluorescent molecule and the background are statistically independent.
Statistical Detection Limit via the Cramér-Rao Lower Bound¶
We proceed to quantify the statistical detection limit of MINFLUX by computing the underlying Cramér-Rao bound (CRB), which is associated with the metric that we plan to optimize. Specifically, we would like to estimate the multivariate parameter \(\boldsymbol{\theta}=(x, y)\) which represents the location of the molecule from \(K\) independent measurements \((X_0, \ldots, X_{K-1})\). We first compute the 2-by-2 Fisher information matrix \(I(\boldsymbol{\theta})\) for estimating \(\boldsymbol{\theta}\) whose entry \(I(\boldsymbol{\theta})_{j, l}\), \(j, l\in \left\{1, 2\right\}\) is defined as
where the expectation \(\mathrm{E}=\mathrm{E}_{X_i;\boldsymbol{\theta}}\) is taken over the R.V. \(X_i\). Now we proceed to compute Eq. (114) step by step.
First compute \(\log(f_i(X_i; \boldsymbol{\theta}))\) as
(115)¶\[ \log(f_i(X_i; \boldsymbol{\theta})) = X_i\log n_i(\boldsymbol{\theta}) - n_i(\boldsymbol{\theta}) - \log (X_i!).\]Then, compute the first- and second-order partial derivatives of Eq. (115) as
(116)¶\[ \frac{\partial\log(f_i(X_i; \boldsymbol{\theta}))}{\partial\theta_j} = X_i\frac{1}{n_i(\boldsymbol{\theta})} \frac{\partial n_i(\boldsymbol{\theta})}{\partial \theta_j} - \frac{\partial n_i(\boldsymbol{\theta})}{\partial\theta_j}\](117)¶\[\begin{split} &\frac{\partial^2\log(f_i(X_i; \boldsymbol{\theta}))}{\partial\theta_l\partial\theta_j} \\ &= X_i\left[ -\frac{1}{(n_i(\boldsymbol{\theta}))^2} \frac{\partial n_i(\boldsymbol{\theta})}{\partial \theta_l} \frac{\partial n_i(\boldsymbol{\theta})}{\partial \theta_j} + \frac{1}{n_i(\boldsymbol{\theta})} \frac{\partial^2 n_i(\boldsymbol{\theta})}{\partial \theta_l \partial \theta_j} \right] - \frac{\partial^2 n_i(\boldsymbol{\theta})}{\partial \theta_l \partial \theta_j}.\end{split}\]Finally, take the expectation of Eq. (117) to attain that
(118)¶\[\begin{split} & \mathrm{E}\left[ \frac{\partial^2\log(f_i(X_i; \boldsymbol{\theta}))}{\partial\theta_l\partial\theta_j}\right] \\ & = n_i(\boldsymbol{\theta})\left[ -\frac{1}{(n_i(\boldsymbol{\theta}))^2} \frac{\partial n_i(\boldsymbol{\theta})}{\partial \theta_l} \frac{\partial n_i(\boldsymbol{\theta})}{\partial \theta_j} + \frac{1}{n_i(\boldsymbol{\theta})} \frac{\partial^2 n_i(\boldsymbol{\theta})}{\partial \theta_l \partial \theta_j} \right] - \frac{\partial^2 n_i(\boldsymbol{\theta})}{\partial \theta_l \partial \theta_j} \\ & = -\frac{1}{n_i(\boldsymbol{\theta})}\frac{\partial n_i(\boldsymbol{\theta})}{\partial \theta_l} \frac{\partial n_i(\boldsymbol{\theta})}{\partial \theta_j}.\end{split}\]
Hence, the Fisher information matrix at entry \((j,l)\) has the following expression
Now, we proceed to simplify the expression in Eq. (119). First, we handle the partial derivative term by plugging Eq. (112) in \(\frac{\partial (\mathcal{N} (\boldsymbol{\theta}) \mu_i (\boldsymbol{\theta})))}{\partial \theta}\) which leads to
where \(\theta\in\left\{x, y\right\}\). Finally, we obtain the expression of the entries of the Fisher information matrix as
We notice that the computation of \(I(\boldsymbol{\theta})\) relies on computing the partial derivatives of \(\mu_i(\boldsymbol{\theta})\), and subsequently the partial derivatives of \(h(\boldsymbol{\theta})\). In fact, these partial derivatives admit explicit analytical expressions, and the formulae are provided in the following section Explicit Expression of the Partial Derivatives in the Fisher Information Matrix.
The statistical detection limit is determined by the Cramér-Rao lower bound, which indicates the theoretical best detection precision of MINFLUX. The inverse of the Fisher information matrix indicates the minimal variance of any unbiased estimator of \(\boldsymbol{\theta}\). Assuming invertibility of the Fisher information matrix \(I\), we denote \(I^{-1}\) its inverse and
where the diagonal entries \(\sigma^2_\text{xx}\) and \(\sigma^2_\text{yy}\) are the variance of the estimated horizontal and vertical locations, respectively.
Definition of the Optimization Problem¶
We are interested in the optimal shape of the excitation beams and thus a set of Zernike coefficients that would lead to a minimal CRB under certain experimental setups. We define such a quest as the following minimization problem of a loss function \(J\)
The columns in the \((D\times K)\) matrix \(\mathbf{C} = [\mathbf{c}_0, \ldots, \mathbf{c}_{K-1}]\) contain the Zernike coefficient vectors of all \(K\) beams. The loss function is minimized over the matrix \(\mathbf{C}\) of all \(K\) Zernike coefficient vectors. The relation of \(\mathbf{c}\) and \(h_i\) is provided in Eq. (108) and Eq. (109). The loss is composed of two terms. The first term in \(J(\mathbf{C})\) is a sum of the average CRB value \(\nu(x, y)\) at every location \((x, y)\) inside a given field of view \(\Gamma_{\tau}\subset\mathbb{R}^2\), which is the prime quantity that we aim to minimize. The average CRB (which we call precision) \(\nu(x, y)\) at a location \((x, y)\) is defined as the arithmetic average of the variance \(\sigma_\text{xx}^2\) and \(\sigma_\text{yy}^2\) in the horizontal and vertical directions, respectively:
The second term involves a nonnegative constant \(\gamma\) multiplied by the sum of the intensities of all \(K\) beams inside a given region of interest \(\Omega_\text{h}\subset\mathbb{R}^2\), which guides the optimization into directions of desirable beams (regularization). The hyperparameter \(\gamma\) controls the strength of the regularization. To be precise, here it is defined to maximize the intensity of all the beams inside the ROI and avoid degenerate cases where most of the energy of the beams is outside the FOV. In our simulations, we define \(\Gamma\) as a disk the radius of which is a tunable hyperparameter. The ROI \(\Omega_\text{h}\) is defined similarly as a disk with a radius of 170 nm, approximately the radius of a donut beam. Because the problem in Eq. (123) is nonconvex with multiple local minima, the solution is not unique and strongly depends on the initial start. Therefore, initialization is crucial, and we provide more details on this in section Results.