# BayesTICS: Local temporal image correlation spectroscopy and Bayesian simulation technique for sparse estimation of diffusion in fluorescence imaging

Anca Caranfil, Yann Le Cunff, Charles Kervrann

► To cite this version:

Anca Caranfil, Yann Le Cunff, Charles Kervrann. BayesTICS: Local temporal image correlation spectroscopy and Bayesian simulation technique for sparse estimation of diffusion in fluorescence imaging. Biological Imaging, 2023, Biological Imaging, 3, pp.1-12. 10.1017/s2633903x23000041 . hal-04355179

HAL Id: hal-04355179

https://hal.science/hal-04355179v1

Submitted on 20 Dec 2023

**HAL** is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_1.png" /></figure>

Distributed under a Creative Commons CC BY 4.0 - Attribution - International License
# BayesTICS: Local temporal image correlation spectroscopy and Bayesian simulation technique for sparse estimation of diffusion in fluorescence imaging

Anca Caranfil<fnref n="1" />,<fnref n="2" />, Yann Le Cunff<fnref n="2" />,<fnref n="3" /> and Charles Kervrann<fnref n="1" />*

**Received:** 19 May 2022; **Revised:** 29 October 2022; **Accepted:** 28 January 2023

**Keywords:** Bayesian methods; diffusion; estimation; fluorescence microscopy; temporal correlation spectroscopy

## Abstract

The dynamics and fusion of vesicles during the last steps of exocytosis are not well established yet in cell biology. An open issue is the characterization of the diffusion process at the plasma membrane. Total internal reflection fluorescence microscopy (TIRFM) has been successfully used to analyze the coordination of proteins involved in this mechanism. It enables to capture dynamics of proteins with high frame rate and reasonable signal-to-noise values. Nevertheless, methodological approaches that can analyze and estimate diffusion in local small areas at the scale of a single diffusing spot within cells, are still lacking. To address this issue, we propose a novel correlation-based method for local diffusion estimation. As a starting point, we consider Fick's second law of diffusion that relates the diffusive flux to the gradient of the concentration. Then, we derive an explicit parametric model which is further fitted to time-correlation signals computed from regions of interest (ROI) containing individual spots. Our modeling and Bayesian estimation framework are well appropriate to represent isolated diffusion events and are robust to noise, ROI sizes, and localization of spots in ROIs. The performance of BayesTICS is shown on both synthetic and real TIRFM images depicting Transferrin Receptor proteins.

## Impact Statement

This paper presents an original Bayesian method to analyze fluorescent spots diffusing at the cell membrane and observed in time-lapse fluorescence microscopy. Unlike related temporal correlation spectroscopy methods, BayesTICS adapts locally and is robust to low signal-to-noise ratios and sizes of regions of interest.

## 1. Introduction

In cell biology, diffusion measurements are commonly used to compare several compartments within a cell or in different cells (e.g., neuronal synapses or HeLa cells). At the scale of a single cell, free diffusion of proteins (i.e., molecules undergoing Brownian motion) often corresponds to the main mode of molecular transport. The analysis of intracellular diffusion provides information about both the dynamics of the proteins and the cellular medium in which they evolve. Several techniques have been developed to quantify the dynamics of fluorescently-tagged proteins (e.g., Green Fluorescent Proteins [GFP]) in live cell imaging and to estimate diffusion coefficients from fluorescence microscopy data, that were adapted

<footnote n="1">¹SERPICO Project-Team, INRIA Rennes, UMR144 CNRS Institut Curie, PSL Research, Sorbonne Université, Campus universitaire de Beaulieu, Rennes, France</footnote>

<footnote n="2">²CeDRE Team, GDR UMR6290-CNRS, Faculty of Medicine, University of Rennes 1, Rennes, France</footnote>

<footnote n="3">³Dyliss Team, Univ Rennes, CNRS, Inria, IRISA, UMR 6074, Campus de Beaulieu, Rennes, France</footnote>

<footnote>*Corresponding author. E-mail: charles.kervrann@inria.fr</footnote>
to different purposes. The two main types of techniques are single-particle techniques and ensemble
measurement techniques, both allowing for the analysis of molecular dynamics, each having their
advantages and limitations as described below.

Single-particle tracking (SPT) approaches are particularly recommended when the experimental setup is available, as the trajectory of a single molecule provides a quantitative description of motion in space and time. Given tracks obtained by nearest neighborhood algorithms or more sophisticated tracking methods<sup>(1)</sup>, the mean-square displacement (MSD) of tracks is generally used to interpret and detect free diffusion, confined diffusion, and directed flow<sup>(2)</sup>. The theoretical limits of SPT, in particular for confined diffusion, have been established in Ref. (3). SPT-based approaches require labeling single molecules with suitably high signal/noise marker particles, as well as high-speed and high-sensitivity microscopes. Tracking errors due to imperfect algorithms can also limit the applicability of this technique.

Fluorescence correlation approaches are valuable techniques that provide quantitative information on both large and small-scale intracellular dynamics without individual object tracking. In the original fluorescence correlation spectroscopy (FCS) method<sup>(4-6)</sup>, temporal fluctuations of fluorescent molecules in a region of interest (ROI) are used to measure the local concentration of the observed population. A correlation method is used to analyze 1D signals of temporal fluctuations. The main drawback of FCS is related to the photobleaching of the fluorescently-tagged molecules that limits the acquisition time and, thus, the applicability to fast dynamics. A related approach consists in analyzing the fluorescence recovery after photobleaching (FRAP)<sup>(7)</sup> in a specified area by a high-intensity laser pulse and is used to quantify two-dimensional lateral diffusion and protein binding. The fluorescence recovery curves are fitted to a theoretical model by using a nonlinear least squares algorithm<sup>(8)</sup>. However, reliable estimation of the parameters requires several experimental curves that might introduce numerical and experimental repetition errors. The major limitations of both FCS and FRAP are related to strong sensitivity to the signal-to-noise ratio (SNR) and the need for spatial and temporal stationarity of dynamics in the ROI.

Another approach that is derived from fluorescence correlation techniques and overcomes some of FCS limitations is temporal image correlation spectroscopy (TICS)<sup>(9)</sup>. With TICS, one can measure the concentration of molecules in the image as well as dynamical properties such as the characteristic time of diffusion. TICS is based on the same principles as FCS but exploits 2D temporal signals instead of 1D temporal signals, and can detect diffusion and flow at the same time. Spatio-temporal image correlation spectroscopy (STICS)<sup>(10)</sup> extended the applicability of TICS to recover direction flow of moving molecules. Other derived methods were developed for specific purposes, such as spatio-temporal image cross-correlation spectroscopy (STICCS)<sup>(11)</sup> that can detect and characterize the dynamics of two species in the ROI, reciprocal space image correlation spectroscopy (kICS)<sup>(12)</sup> that solves the issue of sensitivity to photobleaching and blinking of the fluorescent molecules of STICS or, more recently, pair correlation function FCS (pCF)<sup>(13)</sup> that is able to detect barriers of diffusion. While a wide range of applications is covered by these correlation-based methods, they still require a low concentration of molecules in the region of focus and a temporal stationarity of the fluorescence signals<sup>(10,14)</sup>, which is not always satisfied in experimental data.

All the aforementioned methods are either computationally demanding or come with a high sensitivity to parameters such as SNR or ROI size. Moreover, standard correlation-based methods require a previous knowledge of the point spread function (PSF) that is not always available, and need a minimum window size, which makes it impossible to estimate the diffusion coefficient on very small ROIs. Thus, analyzing diffusion in small inhomogeneous regions of the cell from regular 2D fluorescent microscopy data is still a real challenge.

In this paper, we address the issue of estimating locally constant but spatially varying diffusion coefficients of fluorescently-tagged membrane proteins close to the plasma membrane (PM). Experimental data is acquired by total internal reflection fluorescence (TIRF) microscopy, a technique vastly used for imaging protein dynamics within thin layers<sup>(15,16)</sup>. We propose two models of the autocorrelation function of the 2D temporal fluorescent signal and a Bayesian framework (approximate Bayesian computation (ABC)<sup>(17)</sup>) for robustly estimating the local diffusion coefficient. We show that the proposed method complements previous techniques by providing distinct advantages of local analysis over TICS
counterparts on ROIs. Moreover, the method does not rely on a temporal stationarity hypothesis of the fluorescent signal or an accurate measurement of PSF of the imaging system. Unlike previous methods based on nonlinear model fitting<sup>(18)</sup>, BayesTICS is based on the simulation of time-correlation signals and provides the posterior distribution of diffusion coefficient that can be exploited to analyze changes in dynamics, or in the local environment of the membrane.

This paper is organized as follows. In the next section, we describe the diffusion and image models with initial conditions, the closed-form solution and approximations, including the ABC-based algorithm to estimate local diffusion coefficients from time-correlation signals computed over ROIs. In the experimental section, we demonstrate the robustness of BayesTICS to SNRs on simulated and real images depicting Transferrin Receptor (TfR) dynamics (labeled with pHluorin, a pH-sensitive derivative of GFP) at the PM during the late steps of exocytosis, that is, diffusion in the PM after vesicle fusion. We evaluate the sensitivity to both nuisance parameters (e.g., size of ROIs) and the algorithm parameters, and we assess the accuracy of BayesTICS on simulated data. Our approach further extends the capability of correlation spectroscopy methods and provides, to our knowledge, a new tool for the quantitative characterization of molecular dynamics in living cells.

## 2. Method

### 2.1. Diffusion model and image generation

Diffusion of transmembrane proteins is mainly modeled by lateral diffusion in the membrane<sup>(19)</sup>. This phenomenon may be described by Fick's second law<sup>(20)</sup>:

$$ \frac{\partial C(\mathbf{x}, t)}{\partial t} = D \Delta C(\mathbf{x}, t), \qquad (1) $$

where $C(\mathbf{x}, t)$ denotes the concentration of molecules at time $t$ and at location $\mathbf{x} \in \Omega \subset \mathbb{R}^2$, $\Omega$ being the ROI in the image domain, and $\Delta$ is the Laplacian operator. In our modeling framework, the diffusion coefficient $D$ in (1) is assumed to be constant over $\Omega$. In addition, we assume that all the proteins are concentrated at the center $\mathbf{x}_0$ of $\Omega$, at initial time $t = t_0$, that is $C(\mathbf{x}, t_0) = C_0 \delta(\mathbf{x} - \mathbf{x}_0)$ where $\delta$ is the Kronecker symbol and $C_0$ is the initial concentration of molecules. With the aforementioned initial conditions, the closed-form solution is well established and given by<sup>(21,22)</sup>:

$$ C(\mathbf{x}, t) = \frac{C_0}{4\pi(t-t_0)D} \exp\left(-\frac{\|\mathbf{x} - \mathbf{x}_0\|_2^2}{4(t-t_0)D}\right), \forall t > t_0. \qquad (2) $$

Define $f: \mathbb{R}^2 \times \{0, \dots, T-1\} \to \mathbb{R}^+$, and denote $f(\mathbf{x}, t)$ the fluorescence intensity at time $t$ and spatial position $\mathbf{x} \in \Omega$. The fluorescence intensity is assumed to be proportional (with factor $B$) to the convolution (denoted $*$) of the microscopic number density (or concentration) $C$ and the instrumental “PSF” $h$:

$$ f(\mathbf{x}, t) = B(h*C)(\mathbf{x}, t), \qquad (3) $$

where $B = \rho\epsilon Q$, $\rho$ is the efficiency of the instrument to collect photons, $\epsilon$ is the molecular absorption coefficient, and $Q$ is the quantum yield of the fluorophore. If we assume that the PSF is approximated with a 2D Gaussian function with an isotropic bandwidth $\sigma_{PSF}$ in the lateral direction, we get (see Refs. 18,23) and Supplementary Appendix A):

$$ f(\mathbf{x}, t) = \frac{A_0}{2D(t-t_0) + \sigma_{\text{PSF}}^2} \exp\left(-\frac{\|\mathbf{x} - \mathbf{x}_0\|_2^2}{4D(t-t_0) + 2\sigma_{\text{PSF}}^2}\right) \qquad (4) $$

with $A_0 = C_0B/2\pi$.

### 2.2. Local temporal image correlation spectroscopy

In this section, we describe our correlation-based method, inspired from FCS, to compute local diffusion in fluorescence images. For this purpose, we need to compute the temporal autocorrelation of images to capture temporal fluctuations of intensities.
### 2.2.1. Uniform background

First, we are interested in locally estimating the diffusion of an isolated spot over a uniform background (i.e., for a long enough sequence, the spatiotemporal average of $f$ is zero). In that case, the process associated with the image sequence is not stationary. Accordingly, the autocorrelation function is real-time dependent and not only delay-dependent. Hence, we use the following expectation formula for the autocorrelation function:

$$G_1(t, \tau) = \frac{\langle f(\mathbf{x},t)f(\mathbf{x},t+\tau) \rangle}{\langle f \rangle_t^2} = \frac{\frac{1}{|\Omega|} \int_{\mathbf{x} \in \Omega} f(\mathbf{x},t)f(\mathbf{x},t+\tau) dx}{\left[ \frac{1}{|\Omega|} \int_{\mathbf{x} \in \Omega} f(\mathbf{x},t) dx \right]^2}, \quad (5)$$

where $\tau$ is the temporal lag and denote the spatial average. By substituting $f$ with (4) in (5), we get (see details in Supplementary Appendix B):

$$G_1(t, \tau) \approx \frac{|\Omega|}{4\pi(D\tau + 2Dt + \sigma_{\text{PSF}}^2)}. \quad (6)$$

Note that if we consider the inverse of the autocorrelation function, $G_1^{-1}(t, \tau)$ can be approximated as a linear function of unknown parameters $D$ and $\sigma_{\text{PSF}}$ (see details in Supplementary Appendix B):

$$G_1^{-1}(t, \tau) \approx \frac{4\pi}{|\Omega|} [D(\tau + 2t) + \sigma_{\text{PSF}}^2]. \quad (7)$$

### 2.2.2. Nonuniform and cluttered background

In order to account for nonuniform background and the potential presence of neighboring spots diffusing in the ROI $\Omega$, let us assume that the spatiotemporal average of $f$ is nonzero. Hence, we consider the following expectation formula for the intensity fluctuation autocorrelation function:

$$G_2(t, \tau) = \frac{\langle (f(\mathbf{x},t) - \bar{f})(f(\mathbf{x},t+\tau) - \bar{f}) \rangle}{\langle f \rangle_t^2} = \frac{\frac{1}{|\Omega|} \int_{\mathbf{x} \in \Omega} (f(\mathbf{x},t) - \bar{f})(f(\mathbf{x},t+\tau) - \bar{f}) d\mathbf{x}}{\left[ \frac{1}{|\Omega|} \int_{\mathbf{x} \in \Omega} f(\mathbf{x},t) d\mathbf{x} \right]^2}, \quad (8)$$

where $\bar{f} = \frac{1}{T-t} \int_t^T f(\mathbf{x},r) dr$. By replacing $f$ in (8) with the expression given in (4), we obtain (see details in Supplementary Appendix C):

$$G_2(t, \tau) \approx G_1(t, \tau) + |\Omega|(K_1(t, \tau) + K_2(t)), \quad (9)$$

where

$$K_1(t, \tau) = \frac{1}{4\pi D(T-t)} \log \left( \frac{D\tau + 2Dt + \sigma_{\text{PSF}}^2}{D\tau + D(T+t) + \sigma_{\text{PSF}}^2} \right) \\ K_2(t) = \frac{2DT + \sigma_{\text{PSF}}^2}{4\pi D^2(T-t)^2} \log \left( \frac{2DT + \sigma_{\text{PSF}}^2}{D(T+t) + \sigma_{\text{PSF}}^2} \right) + \frac{D(T+t) + \sigma_{\text{PSF}}^2}{4\pi D^2(T-t)^2} \log \left( \frac{2Dt + \sigma_{\text{PSF}}^2}{D(T+t) + \sigma_{\text{PSF}}^2} \right).$$

Model $G_2(t, \tau)$ can then be considered as an extension of the model $G_1(t, \tau)$. In (6) and (9), the ROI size $|\Omega|$ is a multiplicative factor and can be interpreted as a scaling parameter. We shall see that the ROI size does not influence the estimation of $D$ in our experiments provided there is a single spot in the ROI. Unlike (6), the total time of observation $T$ appears in $K_1(t, \tau)$ and $K_2(t)$ and may thus influence the estimation of $D$. Nevertheless, this impact is minimal for $T$ large enough, as one has

$$\lim_{T \to \infty} G_2(t, \tau) = G_1(t, \tau).$$

Finally, the extended model $G_2$ can be interpreted as an “out of equilibrium” state of the observed system, that allows us to take into account perturbations such as noisy data, nonuniform background, or other spots diffusing in the image.
## 2.3. Bayesian estimation of model parameters

Model $G_2$, as given by (9), depends on the values of $D$ and $\sigma_{PSF}$ in a highly nonlinear fashion. As a result, the estimation of the involved parameters performed by maximizing the underlying likelihood (or minimizing the corresponding data fidelity term) may be very complex or even not tractable. Nevertheless, we can resort by applying a computational Bayesian approach described in what follows.

### 2.3.1. Principles of ABC

The ABC method(17) relies on stochastic simulation that generates samples and selects those that follow the posterior distribution. This approach allows us to compute both the maximum a posteriori estimator and the a posteriori expectation from the selected samples.

Formally, let us assume that a given discrete observation $z$ is generated from a model with parameters $\theta$ whose prior is denoted by $p(\theta)$.$^1$ The posterior distribution of interest is defined by $p(\theta|z) = \frac{p(z|\theta)p(\theta)}{p(z)}$, where $p(z) = \int p(z|\theta)p(\theta)d\theta$. The success of the rejection ABC method(17) depends on the fact that the underlying stochastic process is easy to simulate for a given set of parameters. The ABC procedure can be summarized as below:

1. Generate $\theta$ from the prior distribution $p(\theta)$;

2. Simulate $z'$ from the model with parameter $\theta$;

3. Compute the distance $\rho(z, z')$ between $z'$ and $z$;

4. Accept $\theta$ with probability $\frac{\pi_{\varepsilon}(z, z')}{c}$ and return to 1.

Here $c$ is a constant chosen to guarantee that $\pi_{\varepsilon}(z, z')$ defines a probability:

$$ \frac{\pi_{\varepsilon}(z, z')}{c} = \begin{cases} 1 & \text{if } \rho(z, z') \le \varepsilon, \\ 0 & \text{otherwise.} \end{cases} $$

The observation $z$ and the simulation $z'$ are real-valued arrays of matching dimension and $\rho(z, z')$ evaluates the distance between them.

As mentioned above, this approach requires the design of a suitable metric $\rho$, as well as the choice of an adapted value for $\varepsilon$. The choice of $\rho$ depends on the given problem. However, standard metrics, such as the $L_2$ norm, are used in a significant number of problems. As for the choice of $\varepsilon$, one may note that, when $\varepsilon$ tends to $\infty$, the accepted samples come from the prior, while when $\varepsilon \to 0$, the accepted samples follow the target posterior distribution $p(\theta|z)$. Therefore, the choice of $\varepsilon$ reflects the balance between computability and accuracy. For a given $\rho$ and $\varepsilon$, accepted samples are independent and identically distributed from $p(\theta|\rho(z, z') \le \varepsilon)$.

The next step is to compute posterior expectation defined as $\hat{\theta}_{\text{MMSE}} = \mathbb{E}(\theta|z) = \int p(\theta|D)\theta d\theta$, which is known as the minimum mean square error (MMSE) estimator. The simplest way to compute the MMSE estimator is to draw $N$ samples $\{\theta_i\}_{i=1,...,N}$, from $p(\theta|z)$ using the algorithm above and compute the empirical averages $\hat{\theta}_{\text{MMSE}} = N^{-1}\sum \theta_i$. The samples can also be exploited to compute the posterior distribution for which the maximum mode equals the maximum a posteriori (MAP) estimator $\hat{\theta}_{\text{MAP}}$. There are several advantages to this rejection method, among them the fact that they are usually easy to code, and they generate independent samples.

### 2.3.2. ABC algorithm and implementation details

In our context, the observation $z$ is the autocorrelation (5) or (8) approximated in the discrete setting from the fluorescent intensities $f$, in a given ROI $\Omega$, as follows:

$$ z(t, \tau)|_{t=0} = \frac{1}{W \times H} \sum_{i=1}^{W} \sum_{j=1}^{H} \frac{(f_{i,j}(t+\tau) - \bar{f}) (f_{i,j}(t) - \bar{f})}{\bar{f}_i^2}, \quad (10) $$
where $(i,j)$ denotes a pixel location in $\Omega$, $W$ and $H$ are the width and height of the ROI ($|\Omega| = W \times H$), $\bar{f} = \frac{1}{T|\Omega|} \sum_{i=1}^{W} \sum_{j=1}^{H} \sum_{k=0}^{T-1} f_{i,j}(k)$, and $\bar{f}_t = \frac{1}{|\Omega|} \sum_{i=1}^{W} \sum_{j=1}^{H} f_{i,j}(t)$, $t \in \{0, \dots, T-1\}$. The simulated sample $z'$ is the autocorrelation simulated from the model (6) and (9) with parameter $\theta = (D, \sigma_{\text{PSF}})^T$.

We implemented the ABC rejection-based method with 0–1 cut-off and the distance $\rho(z, z') = \|z - z'\|_2^2$ (see Algorithm 1). The algorithm takes as input an image sequence, also denoted $f$, and computes $z$ as explained above. Then, it uses the ABC procedure to compute the estimates $\hat{\theta}_{\text{MAP}}$ and $\hat{\theta}_{\text{MMSE}}$.

<caption>**Algorithm 1:** BayesTICS algorithm</caption>

**Data:** $f$ (image sequence)
**Result:** $\hat{\theta}_{\text{MAP}}$, $\hat{\theta}_{\text{MMSE}}$
**Initialization:** $N_{\text{samples}}$, $\theta_{\text{inf}}$, $\theta_{\text{sup}}$, $\epsilon$, **begin**
    Compute autocorrelation $z$ from $f$ (with (10)).
    **for** $i \leftarrow 1$ **to** $N_{\text{samples}}$ **do**
        Generate $\theta \sim U[\theta_{\text{inf}}, \theta_{\text{sup}}]$ (uniform distribution).
        Compute $z'$ from $\theta$ (with (6) or (9)).
        Compute $\rho(z, z') = \|z' - z\|_2^2$.
    **if** $\rho(z, z') \le \epsilon$ **then**
        Save $\theta$, $\rho(z, z')$, and $z'$.
    Select the $\theta$ values with the smallest distances $\rho(z, z')$.
    Compute $\hat{\theta}_{\text{MAP}}$ and $\hat{\theta}_{\text{MMSE}}$ from the selected $\theta$ values.

We now discuss how the parameters of BayesTICS can be selected. The prior distribution of both parameters $D$ and $\sigma_{\text{PSF}}$ is assumed to be uniform on intervals depending on the underlying biological process. Typically, $D \sim U[0.1, 2.0]$ and $\sigma_{\text{PSF}} \sim U[\sqrt{0.1}, \sqrt{2}]$. The number $N_{\text{samples}}$ is set to 100, 000 samples. The cut-off value $\epsilon$ is set so as to accept 1 to 5% of the samples (about the best 1000 samples) which serve to compute the posterior distribution, $\hat{\theta}_{\text{MAP}}$, and $\hat{\theta}_{\text{MMSE}}$.

The algorithm is relatively fast as each sample $z'(t, \tau)$ from (6) or (9) takes about 0.001 s to generate. Moreover, all the simulated samples in a ROI are independent and can be generated in parallel. This means that the processing of multiple ROIs in an image sequence can be performed very efficiently.

## 3. Experimental Results

In this section, we evaluate the performance of BayesTICS on synthetic and real images depicting multiple diffusing spots at the PM observed in TIRF microscopy as illustrated in Figure 1. We applied the BayesTICS algorithm to compute the MAP and MMSE estimators of the diffusion coefficient by considering the two models (6) and (9), respectively. The ROI size depends on the spot size and here is set to 21 × 21 pixels windows from the analysis of real images. Meanwhile, the temporal series should be long enough to observe stationary fluctuations. In our experiments, $T > 100$ time points. As these choices may involve some arbitrariness, we assessed the sensitivity to $|\Omega|$ and $T$, as well as the position of the spot of interest in the ROI. In what follows, we show that changes in these parameters lead to essentially similar results and demonstrate the robustness of BayesTICS with respect to noise levels and cluttered background (i.e., presence of multiple spots in a ROI). We focus on the estimation of $D$ which is the parameter of interest.

### 3.1. Evaluation on simulated data

First, in order to test the robustness of BayesTICS to noise, we simulated six image sequences depicting an isolated diffusion spot in a ROI $\Omega$ of 21 × 21 pixels, with a diffusion coefficient equal to 0.10 pixel/frame.
<figure><img src="image_2.png" /><figcaption>**Figure 1.** Microscopy image depicting diffusing pHluorin-tagged spots at the PM observed in TIRF microscopy (courtesy of PICT facility, UMR144-CNRS Institut Curie).</figcaption></figure>

The image intensities were then corrupted with Gaussian white noise with different standard deviations yielding image sequences with different SNRs. Figure 2 shows the 2D images at time $t = 0$ (left) extracted from the six image sequences and the autocorrelation plots (middle and right). We reported the results of BayesTICS, that is the posterior distributions, $\hat{D}_{MAP}$, and $\hat{D}_{MMSE}$ for the two autocorrelation models $G_1$ and $G_2$, respectively. The results suggest that the performance of estimators $\hat{D}_{MAP} \in [0.10,0.13]$ pixel/frame and $\hat{D}_{MMSE} \approx 0.13$ pixel/frame for $G_1$, and $\hat{D}_{MAP} \approx 0.10$ pixel/frame and $\hat{D}_{MMSE} \approx 0.14$ pixel/frame for $G_2$, are hardly influenced by the amount of noise in the images. We observe that the MMSE values are slightly higher than the true diffusion coefficient ($D = 0.10$ pixel/frame) for both models.

Furthermore, we evaluated the influence of the ROI size, the spot position in ROIs, and the amount of noise in ROIs. We analyzed six different ROIs shown in Figure 3. The spot of interest (red circle) is not located at the center of the ROI. The size of the ROI varies from small regions to large square/rectangle windows which may contain background and additional spots. The SNR changes from low values (upper-left image in Figure 3) to high values (lower-right image in Figure 3). In this experiment, we obtained $\hat{D}_{MAP} \in [0.27,0.38]$ pixel/frame and $\hat{D}_{MMSE} \in [0.28,0.39]$ pixel/frame for $G_1$, and $\hat{D}_{MAP} \in [0.21,0.32]$ pixel/frame and $\hat{D}_{MMSE} \in [0.22,0.33]$ pixel/frame for $G_2$, while $D_{true} = 0.25$ pixel/frame. Both MAP and MMSE estimators display a certain variance and inaccuracy that is due to the background environment in the ROI. Supplementary Figures 1–3 show that the change in ROI size or in spot position do not influence significantly the estimation, but a combined effect with the background clutter in the ROI can potentially diminish the accuracy of the estimation. Interestingly, both MAP and MMSE estimators from model $G_2$ are more accurate than the estimation from $G_1$, suggesting that model (9) is better suited for spots in complex environments than model (6).

## 3.2. Experiments on real data: TfR molecules diffusion at different locations at the plasma membrane

We assessed the BayesTICS algorithm on real data from total internal reflection fluorescence microscopy (TIRFM) 2D image sequences depicting TfR proteins tagged with pHluorin in M10 cells, at the late steps of exocytosis, that is when the vesicles fuse with the PM. TfR is a transmembrane protein known to diffuse at the PM, and serves here as a reference biological model. pHluorin is pH-sensitive and is helpful here to
Theoretical diffusion coefficient $D_{\text{th}} = 0.10$

<figure><img src="image_3.png" /><figcaption>**Figure 2.** Robustness of the BayesTICS method to noise level with a fixed window size. Five different ROIs with increasing amount of noise (from top to bottom, and from left to right) were simulated. (a) The ROIs at time $t=0$ are extracted from five simulated sequences composed of $T=300$ frames (256 × 256 pixels images) and depicting 2D diffusing spots with a theoretical diffusion coefficient $D_{\text{true}} = 0.100$ pixel/frame. The size of ROIs is set to 21 × 21 pixels and the spots are located at the center of each ROI. (b) The autocorrelation versus time lag plot is shown for $G_1$ and $G_2$ models. Each plot shows the observed autocorrelation (black curve), and two autocorrelation samples generated from the $G_1$ and $G_2$ models with the $\hat{D}_{\text{MAP}}$ and $\hat{D}_{\text{MMSE}}$ parameters (green and magenta curves). (c) The estimated posterior distributions are displayed for $D$ and $\sigma_{\text{PSF}}$ for the ROI with intermediate noise level.</figcaption></figure>
Theoretical diffusion coefficient $D_{th}$ = 0.25

<figure><img src="image_4.png" /><figcaption>**Figure 3.** Robustness of the BayesTICS method to noise level with variable spot position, and window size. (a-f) Six different cases with varying noise level, spot position, and window size were tested. They were extracted from six simulated sequences of 2D diffusing spots, with 256 × 256 pixels window size, total length of 300 frames, a theoretical diffusion coefficient of 0.250 pixels/frame. For each case, the z-projection of the maximum intensity of the simulated stack and the autocorrelation versus time lag plot is shown. The spot of interest is market in purple, and can be anywhere in the ROI. Other spots can be in the ROI, diffusing or not. The size of the ROI has the following values (from a to f): 39 × 39, 41 × 31, 26 × 25, 21 × 20, 48 × 43, 31 × 35 pixels. Each plot shows the computed autocorrelation from the data (dark gray), generated autocorrelations for the BayesTICS method (green). The two estimates $\hat{D}_{MAP}$ and $\hat{D}_{MMSE}$ for the diffusion coefficient are given on the corresponding plots.</figcaption></figure>

determine the accurate time-point when the fusion starts. This probe was already used in previous studies$^{(23,24)}$. We considered 2D TIRFM sequences composed of 600 images of size 256 × 256 pixels (see Figure 1), acquired with a frame rate of 10 frames/s.

Local diffusion events are first detected at the PM with an appropriate algorithm$^{(18,23)}$ (or manually selected by an user) and several temporal series of ROIs with the same size $|\Omega| = 21 \times 21$ are automatically extracted as illustrated in Figure 4. The nonuniform fluorescent background in $\Omega$ is estimated as the median of the intensity values, over 20 frames, and further subtracted to reduce bias in the estimation of diffusion. The initial time point $t_0$ is automatically found in our experiments by detecting the frame in which the fluorescence intensity is maximal in the temporal sequence. For a given ROI, the frames with index $t < t_0$ are discarded. The value of $T$ is set to 100 and 300 for computing $G_1$ and $G_2$, respectively. As the background is subtracted from the last few dozen frames, $T$ must be chosen as to keep the end of the
<figure><img src="image_5.png" /><figcaption>**Figure 4.** Evaluation of BayesTICS on real TIRF image sequences depicting TfR proteins tagged with pHluorin (pH-sensitive probe) in M10 cells. (a) Five 21 × 21 pixels ROIs were selected (left). (b) The autocorrelation versus time lag plot are shown for G₁ and G₂ models. Each plot shows the observed autocorrelation (black curve), and two autocorrelation samples generated from the G₁ and G₂ models with the D̂MAP and D̂MMSE parameters (green and magenta curves). (c) The estimated posterior distributions are displayed for D (left) and σPSF (right) for Spot s5.</figcaption></figure>

sequence free of other diffusing spots. As long as this condition is satisfied, *T* can be tuned according to
the underlying diffusion speed. Finally, we assume that the images are corrupted by white Gaussian noise.
A variance stabilizing transform (Generalized Anscombe transform<sup>(24)</sup>) is potentially applied to produce a
normally distributed noise<sup>(25)</sup>.
We selected five ROIs (s1,s2, s3, s4, s5) in the image shown in Figure 1 which contain a diffusing spot and variable background. We applied BayesTICS to compute the posterior distributions of *D* and σ<sub>PSF</sub> and the MAP and MMSE estimators by considering the two models G<sub>1</sub> and G<sub>2</sub>. In the present situation, the MAP and MMSE estimators (D̂<sub>MAP</sub> ∈ [0.10,0.32], D̂<sub>MMSE</sub> ∈ [0.14,0.33]) computed with the G<sub>2</sub> model are more consistent with those published in the literature<sup>(18,23)</sup>.

## 4. Conclusion

In this paper, we have proposed a novel method, named BayesTICS, to estimate local 2D diffusion observed in TIRF microscopy from temporal series of images acquired for typical temporal correlation measurements. BayesTICS was specifically designed for local estimation, as opposed to other methods such as FRAP or FCS that provide a global estimator for the entire image. We assume that the diffusion coefficient is constant in the region of interest, that is, for each diffusing spot, but not necessarily constant across the entire image. BayesTICS may be helpful to confirm if diffusion is homogeneous or heterogeneous across several spots. In our approach, the fluorescent intensity and a nonstationary initial diffusion model are used to compute the autocorrelation function of the sequence. This function is then used in a correlation-based Bayesian framework providing the posterior distribution of the diffusion coefficient. Two models are proposed: one for isolated diffusing spots without background (G<sub>1</sub>), and one for nonisolated diffusing spots with crowded background (G<sub>2</sub>). The efficiency and accuracy of the method are demonstrated on extensive simulated sequences, then applied to experimental data.

By applying the BayesTICS method to the diffusion of TfR molecules during the fusion of vesicles to the PM in exocytosis, we showed that this method is able to properly handle a wide variety of situations, yielding results that are consistent and in accordance with previously reported results. The results show that the apparent diffusion coefficient varies slightly between the different spots, which is helpful here to detect local variations in the environment of the diffusing spot. In Supplementary Figure 4, we illustrate BayesTICS in a complementary study focused on the interactions between TfR and Rab11 proteins that dissociate or diffuse close to the PM. Our method suggests that a small fraction of the detected Rab11 spots display apparent diffusion at the PM. These preliminary results need to be confirmed with alternative and complementary estimation techniques as currently investigated in an on-going project.

BayesTICS is a fast and simple-to-implement method for local diffusion quantification from TIRF microscopy data. Its main advantages are that it uses standard TIRF microscopy acquisition, and only needs a single sequence to estimate local diffusing with little preprocessing. This both reduces experimental setup costs and avoids extra numerical errors that come from repeating experiments and from complex pre or postprocessing. This method is also robust to variable SNRs, to the choice of the size of the analysis window, and to the location of the spot of interest in the ROI. Two limitations remain: the method requires long acquisition sequences (at least 100 frames for G<sub>1</sub> and 300 frames for G<sub>2</sub>), which is due to the correlation basis itself and, it is sensitive to dynamic interferences in the ROI, which could be improved by introducing the appropriate dynamic initial model to include other types of diffusion. While BayesTICS is currently designed to detect 2D diffusion only, its extension to 3D and, in particular, its application to 3D multi-angle TIRFM<sup>(26)</sup> are envisioned, in order to better decipher the late steps of the exocytosis mechanisms.

**Acknowledgments.** We warmly thank L. Leconte and J. Salamero for discussions and suggestions to improve the manuscript, as well as the PICT imaging platform of Institut Curie, member of the France-BioImaging infrastructure (ANR-10-INBS-04-01), for providing real TIRM image sequences.

**Competing Interests.** The authors declare no competing interests exist.

**Authorship Contributions.** C.K. devised the project and the main conceptual ideas, supervised the project, and was in charge of overall direction and planning. A.C. designed and implemented the presented BayesTICS, in discussions with Y.L.C. A.C. performed experiments on artificial datasets and real images. A.C. and C.K. cowrote the manuscript. All authors provided critical feedback and helped shape the research, analysis, and manuscript.
**Funding Statement.** This research was supported by a grant from the French Ministry of Research and Innovation (MESRI).

**Supplementary Materials.** To view supplementary material for this article, please visit http://doi.org/10.1017/S2633903X23000041.

**References**

1. Chenouard N, Smal I, De Chaumont F, et al. (2014) Objective comparison of particle tracking methods. *Nature Methods* **11**(3), 281–289.

2. Qian H, Sheetz M & Elson E (1991) Single particle tracking: analysis of diffusion and flow in two-dimensional system. *Biophysical J* **60**, 910–921.

3. Bickel T (2007) A note on confined diffusion. *Phys A Stat Mech App* **377**(1), 24–32.

4. Elson E & Magde D (1974) Fluorescence correlation spectroscopy. I. conceptual basis and theory. *Biopolymers* **13**(1), 1–27.

5. Magde D, Elson E & Webb W (1972) Thermodynamic fluctuations in a reacting system—measurement by fluorescence correlation spectroscopy. *Phys Rev Lett* **29**(11), 705.

6. Magde D, Elson E & Webb W (1974) Fluorescence correlation spectroscopy. II. An experimental realization. *Biopolymers* **13**(1), 29–61.

7. Axelrod D, Koppel D, Schlessinger J, Elson E & Webb W (1976) Mobility measurement by analysis of fluorescence photobleaching recovery kinetics. *Biophysical J* **16**(9), 1055–1069.

8. Soumpasis D (1983) Theoretical analysis of fluorescence photobleaching recovery experiments. *Biophysical J* **41**(1), 95–97.

9. Wiseman P, Squier J, Ellisman M & Wilson K (2000) Two-photon image correlation spectroscopy and image cross-correlation spectroscopy. *J Microscopy* **200**(1), 14–25.

10. Hebert B, Costantino S & Wiseman P (2005) Spatiotemporal image correlation spectroscopy (stics) theory, verification, and application to protein velocity mapping in living cho cells. *Biophysical J* **88**(5), 3601–3614.

11. Schwille P, Meyer-Almes F-J & Rigler R (1997) Dual-color fluorescence cross-correlation spectroscopy for multicomponent diffusional analysis in solution. *Biophysical J* **72**(4), 1878–1886.

12. Kolin D, Ronis D & Wiseman P (2006) k-space image correlation spectroscopy: a method for accurate transport measurements independent of fluorophore photophysics. *Biophysical J* **91**(8), 3061–3075.

13. Malacrida L, Hedde P, Ranjit S, Cardarelli F & Gratton E (2018) Visualization of barriers and obstacles to molecular diffusion in live cells by spatial pair-cross-correlation in two dimensions. *Biomedical Opt Express* **9**(1), 303–321.

14. Ji L & Danuser G (2005) Tracking quasi-stationary flow of weak fluorescent signals by adaptive multi-frame correlation. *J Microscopy* **220**(3), 150–167.

15. Axelrod D (2001) Total internal reflection fluorescence microscopy in cell biology. *Traffic* **2**(11), 764–774.

16. Burchfield J, Lopez J, Mele K, Vallotton P & Hughes W (2010) Exocytotic vesicle behaviour assessed by total internal reflection fluorescence microscopy. *Traffic* **11**(4), 429–439.

17. Beaumont M, Zhang W & Balding D (2002) Approximate Bayesian computation in population genetics. *Genetics* **162**, 2025–2035.

18. Basset A, Bouthemy P, Boulanger J, Waharte F, Salamero J & Kervrann C (2017) An extended model of vesicle fusion at the plasma membrane to estimate protein lateral diffusion from TIRF microscopy images. *BMC Bioinformatics* **18**, 352.

19. Almeida P & Vaz W (1995) Lateral diffusion in membranes. In *Handbook of Biological Physics*, Vol. 1, pp. 305–357. Amsterdam: Elsevier.

20. Philibert J (2005) One and a half century of diffusion: Fick, einstein, before and beyond. *Diffusion Fundamentals* **2**(1), 1–10.

21. Crank J (1975) *The Mathematics of Diffusion*. Oxford: Clarendon Press.

22. Seiffert S & Oppermann W (2005) Systematic evaluation of frap experiments performed in a confocal laser scanning microscope. *J Microscopy* **220**(1), 20–30.

23. Basset A, Bouthemy P, Boulanger J, Waharte F, Kervrann C & Salamero J (2015) Detection and estimation of membrane diffusion during exocytosis in TIRFM image sequences. In *Proceedings IEEE International Symposium on Biomedical Imaging (ISBI)*, pp. 695–698. New York: IEEE.

24. Boulanger J, Kervrann C, Bouthemy P, Elbau P, Sibarita JB & Salamero J (2010) Patch-based nonlocal functional for denoising fluorescence microscopy image sequences. *IEEE Trans Med Imaging* **29**(2), 442–454.

25. Basset A, Boulanger J, Salamero S, Bouthemy P & Kervrann C (2015) Adaptive spot detection with optimal scale selection in fluorescence microscopy images. *IEEE Trans Image Process* **24**(11), 4512–4527.

26. Boulanger J, Gueudry C, Münch D, et al. (2014) Fast high-resolution 3D total internal reflection fluorescence microscopy by incidence angle scanning and azimuthal averaging. *Proc Natl Acad Sci USA* **111**(48), 17164–17169.

<footnote>**Cite this article:** Caranfil A, Le Cunff Y and Kervrann C (2023). BayesTICS: Local temporal image correlation spectroscopy and Bayesian simulation technique for sparse estimation of diffusion in fluorescence imaging. *Biological Imaging*, 3: e5. doi:https://doi.org/10.1017/S2633903X23000041</footnote>