Modeling of Photo-Switching and Unmixing Method

In this section, we present a comprehensive forward model and an unmixing algorithm for photo-switching PAT.

Forward Model in the Continuum

We consider the general case of \(P\) species of reporters distributed along the concentration map \(c_p(\mathbf{r})\) for \(p = 1, \ldots, P\), characterized by an intrinsic kinetic constant \(k_p\). Note that we model the non-switching background as the last (\(P\)th) reporter with kinetic constant \(k_P=0\).

Without loss of generality, we look at one sequence of OFF-switching pulses and assume that all reporters are initially in their ON-state. The transition of the proteins from ON to the OFF state is a stochastic process under pulsed illumination at the OFF-wavelength, which results in exponential decay of the extinction coefficient \(\varepsilon_p(\mathbf{r}, t; \lambda_{\text{OFF}})\):

(40)\[ \varepsilon_p(\mathbf{r}, t; \lambda_{\text{OFF}}) = \left(\varepsilon_p^{\text{ON}}(\lambda_{\text{OFF}}) - \varepsilon_p^{\text{OFF}}(\lambda_{\text{OFF}})\right) \text{e}^{-k_p\Phi(\mathbf{r})t} + \varepsilon_p^{\text{OFF}}(\lambda_{\text{OFF}}),\]

where \(\varepsilon_p^{\text{ON}}(\lambda_{\text{OFF}})\) and \(\varepsilon_p^{\text{OFF}}(\lambda_{\text{OFF}})\) are the extinction coefficients of the \(p\)th reporter of the ON and OFF states at wavelength \(\lambda_{\text{OFF}}\), respectively. Here, we adopt the approximation by Yao et al. [157] that the decay rate depends linearly on light fluence \(\Phi(\mathbf{r})\). The distribution \(H(\mathbf{r}, t)\) of total deposited optical energy at spatial location \(\mathbf{r}\) and switching time \(t\) is

(41)\[ H(\mathbf{r}, t) = \Phi(\mathbf{r}) \left(\sum_{p=1}^{P}\varepsilon_p(\mathbf{r}, t; \lambda_{\text{OFF}}) c_p(\mathbf{r})\right),\qquad \mathbf{r}\in\Omega, \quad t\ge0,\]

where \(\Omega \subset \mathbb{R}^3\) represents the domain of the 3D sample to be imaged. We assume that light pulses are independent of each other and that there is no temporal overlap with neighboring switching events. The combination of Eq. (40) and Eq. (41) yields the forward model

(42)\[ H(\mathbf{r}, t) = \Phi(\mathbf{r})\left(\sum_{p=1}^{P} \left(\bar{\varepsilon}_p \mathrm{e}^{-k_p\Phi(\mathbf{r})t} + \varepsilon_p^{\text{OFF}}\right) c_p(\mathbf{r})\right),\]

where \(\bar{\varepsilon}_p = \left(\varepsilon_p^{\text{ON}}(\lambda_{\text{OFF}}) - \varepsilon_p^{\text{OFF}}(\lambda_{\text{OFF}})\right)\) and we omit the dependence of \(\bar{\varepsilon}_p\) and \(\varepsilon_p^{\text{OFF}}\) on \(\lambda_{\text{OFF}}\) to simplify notations.

In Eq. (42), the series of optical energy deposition maps \(H\) is proportional to \(p^0\), the acoustically reconstructed PA image at the corresponding pulse number. The unknown quantities are the concentration maps \(c_p(\mathbf{r})\) of \(P\) species of reporters and the distribution \(\Phi(\mathbf{r})\) of light fluence within the sample.

Spatial distribution of fluence \(\Phi(\mathbf{r})\) in the tomographic setting can be estimated separately via diffusion equation with optical parameters of the nonswitching background of the sample [8, 158, 159]. It is time-independent as the contribution of blood vessels to the absorption is much stronger than that of protein reporters. More details on the computation of fluence are provided in section Computation of Light Fluence.

Discrete Forward Model

To numerically implement the forward model, we proceed to discretize Eq. (42) over domain \(\Omega\). Because of tomographic sectioning, we consider a 2D cross-section of the sample and write the forward model in 2D while we still compute light fluence in 3D. We discretize a 2D cross-section into a collection of points \(\Delta\boldsymbol{i} = (\Delta_1 i_1, \Delta_2 i_2)\), where \(\boldsymbol{i} = (i_1, i_2) \in \Omega_{\text{2D}}\subset \mathbb{Z}^2\) is the index of sampled points, \(i_1 = 0, \ldots, L_\text{x} - 1\), and \(i_2=0, \ldots, L_\text{z} - 1\). The diagonal matrix \(\Delta = \text{diag}\left\{\Delta_1, \Delta_2\right\}\) defines the stepsize \(\Delta_1\) and \(\Delta_2\) for the lateral and axial direction, respectively. Switching time \(t\) is sampled at \(N\) pulses such that \(t_n = \Delta_{\text{t}} n\), \(n=0, \ldots, N-1\), with \(\Delta_{\text{t}}\) the temporal stepsize which is determined by the laser repetition rate during switching. We define discrete energy deposition \(H_{\boldsymbol{i}}^{n}= H(\mathbf{r}_{i_1, i_2},t_{n} )\), reporter concentrations \(c^p_{\boldsymbol{i}} = c^{p} (\mathbf{r}_{i_1,i_2} )\), \(p=1, \ldots, P\) (with \(P\) the total number of protein species plus one), and fluence distribution \(\Phi_{\boldsymbol{i}} = \Phi (\mathbf{r}_{i_1,i_2} )\). The photo-switching forward model Eq. (42) is first specified at a pixel index \(\boldsymbol{i}\) for all \(N\) time points as

(43)\[\begin{split} \underbrace{ \begin{bmatrix} H^{0}_{\boldsymbol{i}} \\ H^{2}_{\boldsymbol{i}} \\ \vdots \\ H^{N-1}_{\boldsymbol{i}} \end{bmatrix}} _{\mathbf{H}_{\boldsymbol{i}}} = \underbrace{ \Phi_{\boldsymbol{i}} \begin{bmatrix} \bar{\varepsilon}_{1} \mathrm{e}^{-k_{1} \Phi_{\boldsymbol{i}} t_{0}} + \varepsilon_{1}^{\text{OFF}} & \cdots & \bar{\varepsilon}_{P} \mathrm{e}^{-k_{P} \Phi_{\boldsymbol{i}} t_{0}} + \varepsilon_{P}^{\text{OFF}}\\ \bar{\varepsilon}_{1} \mathrm{e}^{-k_{1} \Phi_{\boldsymbol{i}} t_{1}} + \varepsilon_{1}^{\text{OFF}} & \cdots & \bar{\varepsilon}_{P} \mathrm{e}^{-k_{P} \Phi_{\boldsymbol{i}} t_{1}} + \varepsilon_{P}^{\text{OFF}}\\ \vdots & \ddots & \vdots \\ \bar{\varepsilon}_{1} \mathrm{e}^{-k_{1} \Phi_{\boldsymbol{i}} t_{N-1}} + \varepsilon_{1}^{\text{OFF}} & \cdots & \bar{\varepsilon}_{P} \mathrm{e}^{-k_{P} \Phi_{\boldsymbol{i}} t_{N-1}} + \varepsilon_{P}^{\text{OFF}} \end{bmatrix}} _{\mathbf{S}_{\boldsymbol{i}}} \underbrace{ \begin{bmatrix} c^1_{\boldsymbol{i}} \\ c^2_{\boldsymbol{i}} \\ \vdots \\ c^P_{\boldsymbol{i}} \end{bmatrix}} _{\mathbf{c}_{\boldsymbol{i}}},\end{split}\]

where \(\mathbf{H}_{\boldsymbol{i}} \in \mathbb{R}^{N}\), \(\mathbf{c}_{\boldsymbol{i}} \in \mathbb{R}^{P}\), and \(\mathbf{S}_{\boldsymbol{i}} \in \mathbb{R}^{N \times P}\). Then, we assemble the per-pixel system of Eq. (43) into a block-diagonal system by sequentially combining \(L=L_{\text{x}} L_{\text{z}}\) systems

(44)\[\begin{split} \underbrace{ \begin{bmatrix} \mathbf{H}_{0,0} \\ \mathbf{H}_{1,0} \\ \vdots \\ \mathbf{H}_{L_{\text{x}}-1,0} \\ \mathbf{H}_{0,1} \\ \vdots \\ \mathbf{H}_{L_{\text{x}}-1,L_{\text{z}}-1} \end{bmatrix}} _{\mathbf{H}} = \underbrace{ \begin{bmatrix} \mathbf{S}_{0,0} & \mathbf{0} & \cdots & \cdots & \cdots & \cdots & \mathbf{0} \\ \mathbf{0} & \mathbf{S}_{1,0} & \ddots & \cdots & \cdots & \cdots & \vdots \\ \vdots & \ddots & \ddots & \mathbf{0} & \cdots & \cdots & \vdots \\ \vdots & \cdots & \mathbf{0} & \mathbf{S}_{L_{\text{x}}-1,0} & \mathbf{0} & \cdots & \vdots \\ \vdots & \cdots & \cdots & \mathbf{0} & \mathbf{S}_{0,1} & \ddots & \vdots \\ \vdots & \cdots & \cdots & \cdots & \ddots & \ddots & \mathbf{0} \\ \mathbf{0} & \cdots & \cdots & \cdots & \cdots & \mathbf{0} & \mathbf{S}_{L_{\text{x}}-1, L_{\text{z}}-1} \\ \end{bmatrix}} _{\mathbf{S}} \underbrace{ \begin{bmatrix} \mathbf{c}_{0,0} \\ \mathbf{c}_{1,0} \\ \vdots \\ \mathbf{c}_{L_{\text{x}}-1,0} \\ \mathbf{c}_{0,1} \\ \vdots \\ \mathbf{c}_{L_{\text{x}}-1,L_{\text{z}}-1} \end{bmatrix}} _{\mathbf{c}},\end{split}\]

with deposited energy vector \(\mathbf{H} \in \mathbb{R}^{NL}\), concentration map vector \(\mathbf{c} \in \mathbb{R}^{PL}\), and the pooled system matrix \(\mathbf{S} \in \mathbb{R}^{NL \times PL}\). For the sake of memory efficiency, the block matrix \(\mathbf{S}_{\boldsymbol{i}}\) for all each location is directly constructed using Einstein summation [160], and the final forward matrix \(\mathbf{S}\) is implemented as a block-diagonal operator without storing the zeros in it via PyLops [83].

By assembling the temporal evolution of all pixels into one linear system, we aggregate all available information to reconstruct concentration maps of all reporters at once. Compared to pixelwise fitting, our approach enables spatial regularization to increase robustness to noise and obtain coherent concentration maps.

Unmixing Algorithm

The unmixing task is to reconstruct spatial concentration maps of \(P\) reporters from measurements of the optical deposition over time via the linear system Eq. (44). In a typical photo-switching PAT experiment, \(N \sim 10^1\), \(P \sim 10^{0}\), and \(L \sim 10^6\), which yields a linear system of size \(\sim 10^{13}\). Direct inversion of such a large sparse linear system is computationally challenging and not robust against measurement noise. We thus follow the methodology introduced in chapter Modeling and Solving of Inverse Problems and adopt a model-based approach that retrieves solution to Eq. (44) via the resolution of an optimization problem

(45)\[ \hat{\mathbf{c}} \in \text{arg}\min_{\mathbf{c} \geq \mathbf{0}}\left\{\frac{1}{2} \lVert \mathbf{H} - \mathbf{S}\mathbf{c} \rVert^{2}_{2} + \mathcal{R}(\mathbf{c}) \right\}, \]

which involves a quadratic data-fidelity term and a regularization term \(\mathcal{R}\). Regularization enforces prior information on the solution, which we define as the combination of total-variation (TV) and \(\ell_1\) regularizers given by

(46)\[ \mathcal{R}(\mathbf{c}) = \gamma^{\text{TV}} \sum_{p=1}^{P} |\mathbf{c}^p|_{\text{TV}} + \gamma^{\ell_1} \sum_{i_1=0}^{L_{\text{x} - 1}} \sum_{i_2=0}^{L_{\text{z} - 1}} \|\mathbf{c}_{i_1, i_2}\|_1, \]

where the nonnegative constants \(\gamma^{\text{TV}}\) and \(\gamma^{\ell_1}\) are the weights of TV and \(\ell_1\) regularizers. We choose the anisotropic TV \(|\cdot|_{\text{TV}} = \lVert \nabla_{\text{x}} (\cdot) \rVert_1 + \lVert \nabla_{\text{z}} (\cdot) \rVert_1\) for computational efficiency, where \(\nabla_\text{x}\) and \(\nabla_\text{z}\) are the finite difference operators in the lateral and axial directions, respectively. TV-regularization promotes sparse gradients and hence achieves piecewise-smooth reconstructions [161]; \(\ell_1\)-regularization minimizes cross-talk between different species.

The minimization in Eq. (45) is a large-scale convex optimization problem. For computational speed, we use the limited-memory Broyden–Fletcher–Goldfarb–Shanno algorithm with bound constraints (L-BFGS-B) [81]. The whole pipeline, including forward operator and inverse-problem solver, is implemented using PyLops, an open-source Python library for large-scale optimization with linear operators [83].