betaFeedback

WorksAgricultural and Biological Sciences

From dispersal to patrol: the extracellular matrix shapes an annealing-like search by Drosophila embryonic macrophages

Abstract

Hemocytes, the macrophages of Drosophila, disperse through the embryo and then patrol its tissues, moving along basement membranes that they help to build. Because the persistence (H) and amplitude (D) of hemocyte motion vary along each track, it is difficult to describe how movement changes during development and how it depends on basement membrane composition. We analysed trajectories, obtained by selective plane illumination microscopy, of hemocytes in control embryos and in embryos deficient in the basement membrane components laminin (LanB1-deficient) or collagen IV (collagen-deficient). A physics-informed neural network estimates H and D in short windows, each with a calibrated uncertainty. From them we construct an effective diffusivity Deff, defined for any anomalous diffusion as the diffusivity of the unpredictable part of the motion. Its error is uncorrelated with that of H and acts as an effective temperature. Cells decelerate during development by cooling (falling Deff) and forgetting (falling H). Control cells cool gradually while staying persistent. LanB1-deficient cells cool further, forget, lose the coupling between speed and persistence and become nearly Brownian. Collagen-deficient cells cool but keep most of their persistence. Hemocyte movement thus resembles an annealed search, in which laminin, rather than collagen IV, keeps patrolling cells persistent.

Introduction

Hemocytes are the macrophages of Drosophila melanogaster. In the embryo they appear in the head mesoderm, disperse along stereotyped routes until they populate the whole embryo, and then remain in the tissues, where they clear apoptotic corpses, respond to wounds and deposit extracellular matrix [1, 2, 3]. The embryo thus provides a genetically tractable system in which a population of immune cells switches, within a few hours, from colonising a tissue to surveying it. The cues that guide the dispersal phase have been studied extensively [1, 3]. Less is known about how the motility of individual cells is reorganised across the transition, and whether that reorganisation follows a search strategy that can be described in physical terms. The extracellular matrix along which hemocytes migrate is the basement membrane, a thin sheet built mainly from laminin, type IV collagen, perlecan and nidogen. Hemocytes are a major source of it: as they disperse they deposit most of the embryo’s collagen IV and about half of its perlecan [4], and the laminin they secrete strengthens their own migration [5]. In Drosophila, LanB1 is the only laminin β\beta subunit, so embryos deficient in it lack functional laminin. Because the cells both build this matrix and move along it, the basement membrane is a natural candidate for shaping the change in motility, and embryos deficient in LanB1 or collagen IV allow this to be tested.

Asking how the matrix shapes motility requires a quantitative description of the search itself, and physics offers a vocabulary for search strategies [6]. Escherichia coli alternates between straight runs and random reorientations [7, 8], effector T cells perform generalized Lévy walks [9], and intermittent strategies that alternate fast relocation with slow local exploration can minimise the time needed to find sparse targets [10, 11]. A strategy of a different kind is familiar from optimisation problems in computer science. In simulated annealing, a searcher moves with a noise amplitude set by a temperature that is lowered over time [12, 13]. At high temperature it crosses barriers freely and explores the whole energy landscape; as the temperature falls, it becomes sensitive to progressively shallower features and settles where the landscape is favourable. Applied to hemocytes, this picture predicts an early phase of vigorous, weakly constrained motion that disperses the cells, followed by a gradual cooling that allows them to settle and patrol. Testing the prediction requires two quantities for every cell at every stage of development: a temperature-like measure of how strongly the cell moves, and a measure of how much the cell remembers its previous direction.

In studies of cell migration these two quantities are usually speed and persistence, and both are measured using the mean squared displacement (MSD). The MSD of a trajectory grows as ⟨r2(t)⟩∝tα\langle r^{2}(t) \rangle\propto t^{\alpha}, where the anomalous exponent α=1\alpha= 1 corresponds to a random walk and α=2\alpha= 2 to ballistic (straight-line) motion [14]. In the persistent random walk model the MSD crosses over from ballistic to diffusive scaling at a single persistence time [15], and the local slope α(t)\alpha(t) is therefore used to follow persistence across time scales. In Dictyostelium, α≈1.5\alpha\approx1.5 at short times in all conditions, but only cells moving towards a source of directional cues kept α≈1.6\alpha\approx1.6 beyond a few minutes; without a cue α\alpha decayed towards 1 [16]. Many cell types, however, remain superdiffusive over long times, with power-law velocity correlations that a single persistence time cannot capture [17, 18]. Speed and persistence are also not independent. Across cell types, faster cells turn less [19], so the two are correlated on the same trajectories [20].

Fractional Brownian motion (FBM) makes this description precise. The mean squared displacement is ⟨r2(t)⟩=2dDt2H\langle r^{2}(t) \rangle= 2dDt^{2H}, so that α=2H\alpha= 2H and dd is the number of dimensions. The Hurst exponent HH measures directional memory, with persistent motion for H>1/2H > 1/2, antipersistent motion for H<1/2H < 1/2 and Brownian motion at H=1/2H = 1/2, and the generalized diffusion coefficient DD sets the amplitude of the motion [21, 22, 23]. Unlike the persistent random walk, FBM motion has no single persistence time. Its memory extends over all time scales, as do the correlations observed in migrating cells. In earlier work we imaged hemocytes by selective plane illumination microscopy in control embryos and in two mutants: LanB1-deficient, which removes a laminin subunit and disrupts the extracellular matrix, and SCARΔ37{}^{\Delta37}, which impairs actin-driven motility [24]. The motion was well described by FBM that is heterogeneous in both time and space. The distributions of displacements were non-Gaussian and were reproduced by FBM with a Weibull distribution of generalized diffusion coefficients. Local exponents, estimated by a neural network in windows sliding along each track [25, 26], oscillated in time, with alternating periods of more or less persistent motion. On average, the motion became less persistent as development proceeded. Hemocytes that touched underwent synchronised contact inhibition of locomotion, and both mutations disrupted the collective motion and reduced its persistence. These results established that hemocyte motility has to be followed locally, cell by cell and window by window, for a detailed understanding of their behaviour. They also left open the question this work addresses: as the cells lose persistence, do they also slow down?

Two obstacles prevented an answer. First, a window of twenty frames carries an uncertainty comparable to the biological variation one wishes to resolve, and the earlier local estimates carried no error bar. A change along a track therefore could not be distinguished from a fluctuation of the estimator [27]. Second, estimated HH and DD are correlated. DD carries units of L2T−2H\mathrm{L}^{2}\mathrm{T}^{-2H} (LL is length and TT is time), which differ whenever HH differs, so a cell that loses persistence also changes the units in which its diffusion coefficient is expressed. In a short window, moreover, an error in HH is compensated almost entirely by an error in DD. The resulting correlation between HH and log⁡D\log D is a property of the measurement, not of the cells, and even its sign depends on the frame rate. It must not be confused with the biological coupling between speed and persistence [19], which can only be measured once the two have been separated. A change in DD during development therefore cannot be interpreted until it has been separated from the change in HH that accompanies it.

Here we overcome both limitations and follow hemocyte motility across six hours of embryonic development, far longer than in our earlier study [24]. A physics-informed neural network estimates HH, DD and the localization error from short three-dimensional windows of twenty frames, and returns with each estimate an uncertainty calibrated on simulated trajectories. The network is trained on two terms: a supervised loss on simulated parameters, and the exact likelihood of fractional Gaussian noise, which ties every estimate to the observed steps themselves and needs no ground truth. From its output we construct an effective diffusivity DeffD_{\mathrm{eff}}. Its definition is not specific to FBM. It applies to any anomalous diffusion process with finite second moments, with stationary increments, as in FBM, or non-stationary ones, as in continuous-time random walks and scaled Brownian motion. For FBM it takes a closed form in HH and DD, which we use throughout. The units of DD (μm2 s−2H\mu\mathrm{m}^{2}\,\mathrm{s}^{-2H}) change with HH. DeffD_{\mathrm{eff}} is always measured in μm2 s−1\mu\mathrm{m}^{2}\,\mathrm{s}^{-1}, reduces to the ordinary diffusion coefficient for Brownian motion (H=1/2H = 1/2), and its estimation error is, to leading order, uncorrelated with that of HH. DeffD_{\mathrm{eff}} also has a direct physical meaning that holds for every process. Specifically, 2ΔtDeff2\Delta tD_{\mathrm{eff}} is the average variance of the part of each step that cannot be predicted from the preceding steps. DeffD_{\mathrm{eff}} therefore measures how much fresh randomness a cell injects per unit time, and HH separately records how strongly each step remembers the past. By analogy with the Einstein relation, DeffD_{\mathrm{eff}} defines an effective temperature Teff=γDeff/kBT_{\mathrm{eff}} = \gamma D_{\mathrm{eff}}/k_{\mathrm{B}}, where γ\gamma is a friction coefficient and kBk_{\mathrm{B}} is Boltzmann’s constant. The network is described in Methods and Supplementary Sec. S1, and the general definition of DeffD_{\mathrm{eff}}, its FBM form and its properties in Supplementary Sec. S2.

With these tools, the transition from dispersal to patrol appears as a trajectory through the plane of temperature (TeffT_{\mathrm{eff}}) and memory (HH). Early hemocytes are hot and persistent. As development proceeds, DeffD_{\mathrm{eff}} falls in both the control and the LanB1-deficient embryos, but the two genotypes cool along different paths. Control cells retain their directional memory, whereas LanB1-deficient cells cool further and become nearly Brownian. This refines the earlier observation that hemocytes lose persistence during development [24]. The loss of memory is accompanied by cooling, the two can now be measured separately, and their relative contributions differ between genotypes. We interpret the decreasing effective temperature as an annealed search, in which vigorous early motion disperses the population and progressive cooling lets the cells settle into patrolling their local environments. We also discuss an alternative explanation, involving an increase in friction as the tissue matures, and identify measurements that can distinguish the two.

Results

Effective temperature and memory can be estimated from twenty-frame windows

Anomalous diffusion is characterised by the mean squared displacement in dd dimensions

⟨r2(t)⟩=2dDtα,(1)\langle r^2(t) \rangle= 2dDt^\alpha, \tag*{(1)}

where the anomalous exponent α\alpha describes the memory of the motion and the generalized diffusion coefficient DD its amplitude. For fractional Brownian motion (FBM) α=2H\alpha= 2H, with HH the Hurst exponent. Following how these two quantities change along a track raises two problems. First, DD has units of L2T−α\mathrm{L}^2\mathrm{T}^{-\alpha}, which differ whenever α\alpha differs, so values of DD from cells or windows with different α\alpha cannot be compared. Expressing time in a unit cc times larger, shifts log⁡D\log D by αlog⁡c\alpha\log c (log⁡10\log_{10} is used throughout), a different amount for every α\alpha. Second, the estimates of α\alpha and DD are not independent, because both come from the same displacements. A short track shows clearly the size of a typical step, but much less clearly how fast displacements grow with lag time, and that growth rate is what determines α\alpha. An error in α\alpha therefore tilts the fitted mean squared displacement about a pivot lag τ∗\tau^*, and log⁡D\log D shifts to compensate, δlog⁡D≃−log⁡τ∗δα\delta\log D \simeq-\log\tau^* \delta\alpha (see Supplementary Information). Longer windows decrease both errors but leave the coupling intact. Correlations of this kind between estimated exponents and diffusion coefficients, D∝exp⁡(c1α+c2)D \propto\exp(c_1\alpha+ c_2), have been reported in several single-particle-tracking experiments. They arise generically when both parameters are estimated from the same finite trajectory [28, 29], and can be strong enough to make a negative correlation between the true parameters appear positive [28]. What is needed is a measure of the amplitude of motion that has the same units for every trajectory and whose estimation error is not inherited from that of α\alpha.

We therefore introduce an effective diffusivity defined for any motion with finite second moments, whether its increments are stationary, as for fractional Brownian motion (FBM), or not, as for continuous-time random walks (CTRW) and Lévy walks. For NN consecutive increments of one coordinate, sampled at interval Δt\Delta t, with covariance matrix Σ\Sigma,

Deff=(det⁡Σ)1/N2Δt.(2)D_{\mathrm{eff}} = \frac{(\det\Sigma)^{1/N}}{2\Delta t}. \tag*{(2)}

For normal diffusion the increments are uncorrelated, so Σ=2DΔt IN\Sigma= 2D\Delta t\,I_N, with INI_N the N×NN \times N identity, so (det⁡Σ)1/N=2DΔt(\det\Sigma)^{1/N} = 2D\Delta t is simply the variance of a single step, and Deff=DD_{\mathrm{eff}} = D. When the increments are correlated, part of each step can be predicted from the preceding ones. Because det⁡Σ\det\Sigma is the product of the variances of the parts of successive steps that cannot be predicted from the preceding ones, (det⁡Σ)1/N(\det\Sigma)^{1/N} is then smaller than the step variance, and DeffD_{\mathrm{eff}} is the diffusivity of the unpredictable part of the motion. It has units of L2T−1\mathrm{L}^2\mathrm{T}^{-1} for every process. Moreover, whenever the covariance is an amplitude multiplied by a matrix that depends only on the memory parameters, log⁡Deff\log D_{\mathrm{eff}} is the measure of amplitude whose estimation error is, to leading order, uncorrelated with the errors of those parameters (Supplementary Sec. S2).

For FBM the covariance has this form, Σ=2DΔt2HR(H)\Sigma= 2D\Delta t^{2H}R(H), where R(H)R(H) is the correlation matrix of fractional Gaussian noise, and Eq. (2) takes the form

Deff=DΔt2H−1[det⁡R(H)]1/N.(3)D_{\mathrm{eff}} = D\Delta t^{2H-1}\left[\det R(H)\right]^{1/N}. \tag*{(3)}

DeffD_{\mathrm{eff}} equals DD at H=1/2H = 1/2, has units of μm2s−1\mu\mathrm{m}^2\mathrm{s}^{-1} at every HH. Importantly, estimation error is, to leading order, uncorrelated with that of HH. The HH-dependent correction Δt2H−1[det⁡R(H)]1/N\Delta t^{2H-1}[\det R(H)]^{1/N} is fixed by the pivot lag τ∗\tau^*, so the transformation removes exactly the coupling described above (Supplementary Secs. S1). The factor [det⁡R(H)]1/N[\det R(H)]^{1/N} is the average fraction of a step that cannot be predicted from the preceding steps.

To estimate HH and DD for short trajectories, we used a physics-informed neural network (PINN) with a Cerberus architecture (Figure 1). For each window it returns HH, log⁡D\log D and the static localization error σloc\sigma_{\mathrm{loc}} (due, for example, to the finite resolution of the microscope), together with the standard deviations σH\sigma_H and σlog⁡D\sigma_{\log D}. The network sees only displacements normalized by their own root mean square, so a single trained network can be applied at any frame rate and over decades of DD. The uncertainties are trained with a heteroscedastic loss and are reported without post-hoc rescaling (Supplementary Sec. S1). On simulated three-dimensional FBM trajectories with 20-point windows and a signal-to-noise ratio of 20, the network recovers HH with a mean absolute error of 0.065 and log⁡D\log D with 0.23 dex, and is essentially unbiased except very near the edges of the HH range. The stated uncertainties are calibrated, and the observed error tracks the stated uncertainty across the whole ranges of HH and DD. (Supplementary Sec. S1). The localization error, by contrast, is only weakly identifiable from twenty frames, and the network estimate stays close to its prior. We therefore report it but do not interpret it in detail.

Physics-informed neural network for fractional motion analysis

Figure 1. A physics-informed neural network for the simultaneous estimation of the Hurst exponent, the generalized diffusion coefficient and the localization error. (A) Three-dimensional FBM trajectories simulated with H=0.25H = 0.25, 0.500.50 and 0.800.80, corresponding to anti-persistent, Brownian and persistent motion respectively. Open circles mark the start of each trajectory and filled circles the end. The measured positions include a static localization error. (B) Schematic of the Cerberus neural network. The input layer is loaded with the 3(T−1)3(T-1) displacements of a window of TT points, normalized by their root mean square, together with two scalars which state whether the localization error is known and, if so, its size relative to the root mean square. A shared trunk of four fully connected layers with 256, 256, 128 and 64 units feeds three heads, which predict HH, the logarithm of the generalized diffusion coefficient DD and the localization error σloc\sigma_{\mathrm{loc}}. The numbers of nodes drawn are illustrative. The first two heads also predict a standard deviation, so every estimate carries its own uncertainty. (C) The physics-informed term. The predicted HH, DD and σloc\sigma_{\mathrm{loc}} are used to build the covariance matrix Σ\Sigma of the observed displacements, and the exact fractional Gaussian noise likelihood is evaluated on the data themselves. Since this term does not use the ground truth, it constrains the network on experimental trajectories, where HH and DD are unknown, as well as on the simulated trajectories used for training.

Figure 2 shows the coupling, and its removal, for short trajectories simulated with fixed H=0.7H = 0.7 and log⁡D=−1\log D = -1. At Δt=0.02\Delta t = 0.02 s the estimates spread along a narrow ridge in (H,log⁡D)(H,\log D) [Figure 2(A)]: a single true point is smeared over 0.3≲Hpred≲0.90.3 \lesssim H_{\mathrm{pred}} \lesssim0.9 and more than two decades in DD. The errors are almost perfectly correlated, with a slope of +4.0+4.0 dex per unit HH [Figure 2(B)]. At Δt=17\Delta t = 17 s, close to the hemocyte frame interval, the ridge reverses [Figure 2(E)] and the slope becomes −1.9-1.9 dex per unit HH [Figure 2(F)], the sign we previously observed between local estimates of HH and DD for hemocytes [24]. Both slopes agree with the predicted pivot τ∗≈0.5Δt\tau^{*} \approx0.5\Delta t (Supplementary Sec. S2). The correlation therefore characterises the measurement, not the motion, and in twenty-frame windows the correlated error in log⁡D\log D is large enough to mask real changes in DD. In (H,log⁡Deff)(H,\log D_{\mathrm{eff}}) the same windows form a compact cloud centred on the true values at both frame intervals [Figure 2(C,G)], and the error correlation vanishes [Figure 2(D,H)]. The residual slope, ≈0.06\approx0.06 dex per unit HH, is less than 3% of the original, and the errors in log⁡Deff\log D_{\mathrm{eff}} lie within ±0.25\pm0.25 dex, against more than two decades for log⁡D\log D at Δt=0.02\Delta t = 0.02 s and more than one decade at Δt=17\Delta t = 17 s. The scatter that remains in HpredH_{\mathrm{pred}} is the uncertainty of HH alone and no longer contaminates the amplitude.

Joint probability distributions and estimation errors of fractional Brownian motion parameters

Figure 2. Joint probability distributions and estimation errors of fractional Brownian motion (FBM) parameters for different sampling time intervals. The theoretical parameters were Htheor=0.7H_{\mathrm{theor}} = 0.7 and log⁡Dtheor=−1\log D_{\mathrm{theor}} = -1. (A,E) Joint probability distributions of the predicted Hurst exponent HH and predicted logarithm of the diffusion coefficient log⁡D\log D for trajectories generated with dt=0.02dt = 0.02 and dt=17dt = 17, respectively. The units of DD and DtheorD_{\mathrm{theor}} are (μm2s−2H)(\mu\mathrm{m}^{2}\mathrm{s}^{-2H}) and change with HH. (B,F) Corresponding distributions of the estimation errors ΔH=H−Htheor\Delta H = H - H_{\mathrm{theor}} and Δlog⁡D=log⁡(D/Dtheor)\Delta\log D = \log(D/D_{\mathrm{theor}}) for dt=0.02dt = 0.02 and dt=17dt = 17, respectively, showing positive and negative correlations between the errors. (C,G) Joint distributions of HH and the predicted effective diffusion coefficient log⁡Deff\log D_{\mathrm{eff}} for dt=0.02dt = 0.02 and dt=17dt = 17, respectively. The units of DeffD_{\mathrm{eff}} are (μm2 s−1)(\mu\mathrm{m}^{2}\,\mathrm{s}^{-1}) and are independent of HH. (D,H) Corresponding distributions of ΔH=H−Htheor\Delta H = H - H_{\mathrm{theor}} versus Δlog⁡Deff=log⁡(Deff/Deff,theor)\Delta\log D_{\mathrm{eff}} = \log(D_{\mathrm{eff}}/D_{\mathrm{eff,theor}}) for dt=0.02dt = 0.02 and dt=17dt = 17, respectively. The colorbars indicate the number of trajectories in each bin. Cyan solid lines in (B,D,F,H) show linear fits to the corresponding estimation errors.

We applied this approach to hemocytes in control, LanB1-deficient and collagen-IV-deficient embryos, imaged at Δt=17.6\Delta t = 17.6 s per frame and tracked in three dimensions (experimental details in Ref. [24]). Control and LanB1-deficient embryos were each recorded for ≈5.9\approx5.9 h as six consecutive 200-frame movies, and further embryos of all three genotypes were recorded for two movies (Methods). To follow the motility of each cell through development, we analysed every track in windows of 20 frames (N=19N = 19 steps, 334 s), sliding along the trajectory by one frame at a time. A window of this length is short enough to resolve changes in behaviour along a track, but it carries limited information, so every estimate made from it must come with its own uncertainty. For each window, DeffD_{\mathrm{eff}} was obtained from the network output by the fixed transformation of Eq. (3); its uncertainty, measured on simulated windows at the hemocyte frame interval, is 0.08–0.09 dex across the range of HH (Methods). In what follows, DeffD_{\mathrm{eff}} is the temperature-like measure of how strongly a cell moves, and HH the measure of its directional memory.

PINN reproduces the hemocyte dynamics

Before applying the PINN analysis to the hemocyte trajectories, we investigated whether the FBM model, estimated by PINN, could reproduce hemocyte dynamics. To test whether the window estimates describe the actual motion of the cells, we compared them with the frame-to-frame speed, measured directly from the positions without any model. For FBM in d=3d = 3 dimensions with static localization error and motion blur, the mean squared displacement over one frame, τ=Δt=17.6 s\tau= \Delta t = 17.6\,\mathrm{s}, is expressed through the frame-to-frame speed v=∣r(t+τ)−r(t)∣/τv = \lvert\mathbf{r}(t+\tau)-\mathbf{r}(t)\rvert/\tau, computed from the measured positions of consecutive frames, with ⟨v2⟩\langle v^{2}\rangle its mean over all pairs of consecutive frames [30]:

τ2⟨v2⟩=2dDτ2Hκ(H,R)+2dσloc2,κ(H,R)=(1+R)2H+2+(1−R)2H+2−2−2R2H+2R2(2H+1)(2H+2)(4)\tau^{2}\langle v^{2}\rangle= 2dD\tau^{2H}\kappa(H,R) + 2d\sigma_{\mathrm{loc}}^{2}, \qquad\kappa(H,R) = \frac{(1+R)^{2H+2} + (1-R)^{2H+2} - 2 - 2R^{2H+2}}{R^{2}(2H+1)(2H+2)} \tag*{(4)}

where RR is the fraction of each frame interval during which the camera is exposed. The blur factor κ\kappa equals 1 for instantaneous sampling and 1−R/31-R/3 for Brownian motion (H=0.5H = 0.5). Written with the effective diffusivity, the same expression separates the amplitude of the motion from its memory,

τ2⟨v2⟩=2dτDeffκ(H,R)f(H)+2dσloc2,f(H)=[det⁡R(H)]1/N(5)\tau^{2}\langle v^{2}\rangle= \frac{2d\tau D_{\mathrm{eff}}\kappa(H,R)}{f(H)} + 2d\sigma_{\mathrm{loc}}^{2}, \qquad f(H) = [\det R(H)]^{1/N} \tag*{(5)}

with N=19N = 19. The factor f(H)f(H) is the fraction of the variance of a step that cannot be predicted from the preceding steps. It equals 1 for Brownian motion and is smaller for persistent motion (f=0.96f = 0.96 at H=0.63H = 0.63 and 0.76 at H=0.78H = 0.78), so a persistent cell covers more space per frame than a Brownian cell at the same DeffD_{\mathrm{eff}}.

At every time point of a track we combined the network estimates of all windows containing that point (HH linearly, DD in log scale) and evaluated Eq. (4). The prediction was averaged over the time points of each track in a bin and then over the tracks with matching observed speeds, and the ratio ⟨v2⟩obs/⟨v2⟩FBM\langle v^{2}\rangle_{\mathrm{obs}}/\langle v^{2}\rangle_{\mathrm{FBM}} was formed from the two averages. The prediction is thus smoothed over 20Δt≈6 min20\Delta t \approx6\,\mathrm{min}, while the observed speed is a single-frame quantity. The prediction depends on HH and DD only through Dτ2HD\tau^{2H} at τ=Δt\tau= \Delta t, the expected one-frame displacement. This combination is well determined even though HH and DD individually are not, because their errors compensate: an overestimate of HH comes with an underestimate of log⁡D\log D. Inserting the point estimates into Eq. (4) therefore biases the prediction only slightly.

The observed speed agrees with the prediction to within a few percent in all three genotypes [Fig. 3(a)]. The agreement holds while ⟨v2⟩\langle v^2\rangle falls several-fold [Fig. 3(b)], and the decomposition of Eq. (5) also holds. That is the speed divided by Deffκ/f(H)D_{\mathrm{eff}}\kappa/f(H) stays close to 1 throughout the time [Fig. 3(c)]. Because Dτ2H=Deffτ/f(H)D\tau^{2H} = D_{\mathrm{eff}}\tau/f(H) exactly at τ=Δt\tau= \Delta t, panels (a) and (c) express the same agreement, the second without the localization term, which is very small here so we neglect it [Fig. 3(d)]. Mildly non-Gaussian increments and variation of speed within a window account for the remaining scatter. Stationary FBM with the inferred HH and DD thus reproduces the short-time kinetics of hemocytes throughout development, and the frame-scale speed is fully accounted for by DeffD_{\mathrm{eff}} and HH.

The largest departure occurs in the first hour of the continuous control recording. The mean of seven independent control embryos shows no excess in the same bins. We attribute the excess to a transient, embryo-specific episode of directed migration, not to a general feature of early dispersal, and do not interpret DeffD_{\mathrm{eff}} quantitatively in that interval.

Hemocytes warm, then cool; cells in LanB1-deficient embryos cool faster and lose their memory

To follow the population through development, we averaged log⁡Deff\log D_{\mathrm{eff}} and HH over the windows of each track in 176 s bins and took the median across tracks, with a bootstrap confidence interval [Fig. 4(A,B)]. The time course has two phases. During the first hour both genotypes warm and gain persistence, as the hemocytes disperse through the embryo. DeffD_{\mathrm{eff}} and HH rises in all embryos. Thereafter different genotypes cool at different rates. Control hemocytes cool slowly. DeffD_{\mathrm{eff}} falls about 3-fold from its maximum, to ≈ 0.005 µm² s⁻¹ at 5.9 h. Hemocytes in LanB1-deficient embryos cool about 6-fold, to ≈ 0.003 µm² s⁻¹. Cells in LanB1-deficient embryos are therefore hotter than control cells for the first ≈ 2.7 h, by up to 0.2 dex, and colder afterwards.

Persistence follows a different course in the two genotypes [Fig. 4(B)]. Control hemocytes hold H≈0.78H \approx0.78 until ≈1.9\approx1.9 h, then lose persistence gradually and settle at H≈0.63H \approx0.63 from ≈4\approx4 h, well above the Brownian value. Hemocytes in LanB1-deficient embryos begin to lose persistence as soon as they reach their maximum, at ≈1\approx1 h; they fall to H≈0.61H \approx0.61 by 1.9 h and remain at H≈0.52H \approx0.52–0.57 after 3 h, close to Brownian motion. Cells in LanB1-deficient embryos are less persistent than control cells. In the plane of temperature and memory the two genotypes therefore trace different paths: control cells cool at nearly constant memory and lose it only late, whereas cells in LanB1-deficient embryos lose memory and cool together [Fig. 5].

Equation (5) separates the slowdown into two parts: cooling (the fall in DeffD_{\mathrm{eff}}) and loss of memory (the fall in HH), which enters through f(H)f(H). The loss of persistence alone, from H≈0.78H \approx0.78 to 0.63 in control and from 0.76 to 0.55 in LanB1LanB1-deficient embryos, lowers the frame-scale speed by ≈1.25\approx1.25-fold in both genotypes. The model-free ⟨v2⟩\langle v^2\rangle falls ≈3.7\approx3.7-fold in control and ≈5.3\approx5.3-fold in LanB1LanB1-deficient embryos over the same period [Fig. 3(b)], so most of the slowdown is cooling. Speed alone would mix the two contributions; DeffD_{\mathrm{eff}} isolates the amplitude of the motion and HH its memory.

Trajectories through memory and temperature

Figure 5. Trajectories through memory and temperature. (A,C) Marginal distributions of log⁡Deff\log D_{\mathrm{eff}} and HH, pooled over windows and tracks. (B) Joint distribution of (log⁡Deff,H)(\log D_{\mathrm{eff}},H): solid and dashed contours enclose the 50% and 90% highest-density regions; numbered circles, medians of movies 1–6, joined in time order. (D) Population medians in 176 s bins, coloured by time since the start of imaging; solid, control; dashed, LanB1LanB1-deficient embryos; arrowheads give the direction of time; numbers mark the first bin of each movie. Dashed outlines enclose the bins of the spread (movies 1–2) and patrol (movies 4–6) phases. Dotted lines, Brownian motion (H=0.5H = 0.5).

The cooling is visible without the network. Frame-to-frame speeds measured directly from the positions, averaged first within each track and then across tracks, show the same two phases [Fig. 6(A)]. During the first ≈0.7\approx0.7 h control cells accelerate from ≈4.1\approx4.1 to ≈5.4 μm min−1\approx5.4\,\mathrm{\mu m\,min^{-1}} and cells in LanB1LanB1-deficient embryos from ≈4.0\approx4.0 to ≈5.2 μm min−1\approx5.2\,\mathrm{\mu m\,min^{-1}}. Both then slow down steadily, to ≈2.6\approx2.6 (control) and ≈2.35 μm min−1\approx2.35\,\mathrm{\mu m\,min^{-1}} (LanB1LanB1-deficient embryos) by the end of imaging, roughly a twofold fall from the peak, or a 4–5-fold fall in ⟨v2⟩\langle v^2\rangle. Averaged over the whole recording, the per-track mean speed differs little between the genotypes (3.75 ±\pm 0.015 against 3.60 ±\pm 0.012 μm min−1\mathrm{\mu m\,min^{-1}}, mean ±\pm s.e.m.; see Figure 6(B)). Several further checks show that the trends are not the artifacts of the measurements. The confidence intervals of the medians are much narrower than the changes they track. Localization noise, which is negligible here, could only add a constant floor to ⟨v2⟩\langle v^2\rangle [Eq. (5)] and slow the apparent decline, never create it. Different cooling scenarios are barely distinguishable in the raw diffusion coefficient, because in μm2 s−2H\mathrm{\mu m^2\,s^{-2H}} a falling HH masks a falling amplitude (see Supplementary Fig. S6), but the apparent diffusivity at a fixed lag, Dτ2H−1D\tau^{2H-1}, falls differently in both genotypes.

Hemocyte speed across development and genotypes

Figure 6. Hemocyte speed across development and genotypes. Speed is v=∣r(t+Δt)−r(t)∣/Δtv = \lvert\mathbf{r}(t + \Delta t) - \mathbf{r}(t) \rvert/\Delta t, computed from 3D positions in consecutive frames (Δt=17.6\Delta t = 17.6 s); pairs across tracking gaps are excluded. Symbol shape encodes genotype: control (circles), LanB1-deficient (squares) and the collagen-deficient embryos (triangles). Open symbols are the continuous six-movie recordings of control and LanB1-deficient embryos; filled symbols are means over independent recordings: control (n=7n = 7) and LanB1-deficient embryos (n=4n = 4), each spanning movies 1–2, and the collagen-deficient embryos (n=4n = 4), two recordings spanning movies 1–2 and two spanning movies 2–3. (A) Mean speed in 352 s bins (20 frames), calculated by first averaging each track within a bin. For the continuous recordings, points are means over tracks ±\pm SEM across tracks (at least 5 tracks per bin). For the independent recordings, each recording is first averaged over its tracks (at least 5 per bin), and points are means over recordings ±\pm SEM across recordings (at least 2 recordings per bin). Dashed vertical lines mark the boundaries between consecutive 200-frame movies. Points are offset slightly in time for visibility. (B) Mean speed over each dataset’s full recording period. Small dots are per-track mean speeds (tracks with at least 5 speed samples). Large symbols are per-recording means. Bars and error bars are the mean ±\pm SEM, across tracks for the continuous recordings and across recordings for the independent recordings. The datasets cover different periods (movies 1–6, 1–2 or 1–3), so the bars are not time-matched.

The time course matches the developmental programme of embryonic hemocytes: a hot, persistent dispersal phase, in which the cells spread through the embryo, followed by gradual cooling into a slower, less persistent patrolling phase suited to local surveillance and matrix deposition. In the movies of every genotype, the initial decline is indistinguishable between control, LanB1LanB1-deficient and collagen-deficient embryos. Later, the continuous LanB1LanB1-deficient embryos recording cools further and approaches Brownian motion more closely than the control, which points to a role for laminin in sustaining an active, persistent search. These late differences rest on one continuous recording per genotype and are tested at the level of single cells in the next section. For a compact description we fitted four schedules to ln⁡Deff(t)\ln D_{\mathrm{eff}}(t): exponential, power-law, logarithmic (Deff∝1/ln⁡tD_{\mathrm{eff}} \propto1/\ln t, the schedule under which simulated annealing is guaranteed to converge [13]), and rise–decay, Deff∝tβe−t/τD_{\mathrm{eff}} \propto t^{\beta}e^{-t/\tau}. Only the rise–decay form captures the initial warming, and the Akaike information criterion prefers it in both genotypes. It gives a maximum at tpeak=0.24t_{\mathrm{peak}} = 0.24 h and a cooling time τ=4.5\tau= 4.5 h in control embryos, against 0.52 h and 2.13 h in LanB1LanB1-deficient embryos. Because the fits do not model the steps at movie boundaries, we use them as descriptive summaries, not as tests between mechanisms.

Fast cells remember: speed–persistence coupling is lost in LanB1LanB1-deficient embryos

Speed and persistence are coupled in many migrating cells: faster cells turn less, through the advection of polarity cues by actin flow [19]. We asked whether this coupling holds for hemocytes and whether it survives cooling. For each track segment and each movie, we paired the mean speed with the mean HH of its windows, keeping only windows that passed the goodness-of-fit test (p>0.05p > 0.05) [Fig. 7].

In control embryos the coupling is strong at every stage. The Spearman correlation between speed and HH is ρ=0.71\rho= 0.71 in the first hour and stays between 0.45 and 0.55 from the second hour onwards (p<10−10p < 10^{-10} throughout). In the first hour, HH rises from ≈0.6\approx0.6 for the slowest fifth of the cells to ≈0.87\approx0.87 for the fastest; in the last hour the rise is smaller but still clear, from ≈0.53\approx0.53 to ≈0.69\approx0.69. Cooling therefore shifts the control population to lower speeds along a preserved speed–persistence relation: slow cells are nearly Brownian, but fast cells still keep their direction.

In LanB1-deficient embryos the coupling is weaker from the start (ρ=0.31\rho= 0.31 and 0.37 in the first two hours). It then decays steadily, to ρ=0.20\rho= 0.20, 0.19 and 0.10 in the following hours, and was lowest in the last hour (ρ=−0.01\rho= -0.01, p=0.6p = 0.6), where HH stays at ≈0.51\approx0.51–0.53 across the whole speed range. Late in development the two genotypes coincide for the slowest cells, where both are close to H=0.5H = 0.5, and diverge for the fast cells: hemocytes in LanB1-deficient embryos that move as fast as persistent control cells do so without directional memory. The late loss of persistence in hemocytes embryos is thus a loss of memory in the fastest cells, not a shift of the population towards slow, Brownian motion. Laminin is a component of the basement membranes along which embryonic hemocytes migrate, and hemocytes themselves deposit it [5]. The data are consistent with the basement membrane providing the guidance that converts speed into persistence.

These observations can be interpreted as an annealed search. If each hemocyte moves with an effective temperature Teff=γDeff/kBT_{\mathrm{eff}} = \gamma D_{\mathrm{eff}}/k_{\mathrm{B}} in a landscape of attractive sites, an early high temperature lets the population cross weak barriers and spread through the embryo. As the temperature falls, random motion no longer overwhelms weak attractions, which increasingly determine where the cells settle and patrol. At constant friction the relative cooling Teff(t)/Teff(0)T_{\mathrm{eff}}(t)/T_{\mathrm{eff}}(0) equals Deff(t)/Deff(0)D_{\mathrm{eff}}(t)/D_{\mathrm{eff}}(0) and does not depend on the unknown γ\gamma. In this picture, control hemocytes follow a slow schedule and keep most of their directional memory while patrolling, whereas LanB1-deficient hemocytes are heated more strongly, cooled faster and further, and lose most of their memory. The friction, however, is not guaranteed to be constant. Deposition of basement membrane and compaction of tissue could raise γ\gamma and lower DeffD_{\mathrm{eff}} without any change in the cells’ activity, and in a laminin mutant the matrix itself is altered. The two explanations make different predictions, which we set out in the Discussion.

Methods

Data

Embryo preparation, selective plane illumination imaging and three-dimensional tracking of hemocytes were as described in Ref. [24]. Positions were recorded at Δt=17.6\Delta t = 17.6 s per frame with an exposure fraction R≈0.05R \approx0.05. Control and LanB1-deficient embryos were each recorded continuously for six consecutive 200-frame movies (≈ 5.9 h). In addition, independent recordings of two consecutive movies were analysed from seven control embryos (movies 1–2), six LanB1-deficient embryos (four spanning movies 1–2 and two spanning movies 2–3) and four collagen-deficient embryos (two spanning movies 1–2 and two spanning movies 2–3). Tracks were split at missing frames, and contiguous segments of at least 20 positions entered the window analysis. LanB1-deficient embryos are homozygous for a deletion of the LanB1 locus [31] while Collagen-IV deficient embryos are homozygous for the small chromosomal deletion Df(2L)BSC172 which removes the genes encoding the Collagen-IV components Col4a1 and Viking [4].

Observation model

For a window of N+1N + 1 positions we write the displacements on axis cc as δi(c)=yi+1(c)−yi(c)\delta_i^{(c)} = y_{i+1}^{(c)} - y_i^{(c)}, i=1,…,Ni = 1,\ldots,N, with N=19N = 19. For fractional Brownian motion with ⟨Δx2(t)⟩=2Dt2H\langle\Delta x^2(t) \rangle= 2Dt^{2H} per axis, the displacements are fractional Gaussian noise with correlation function

ρ(k)=DΔt2H(∣k+1∣2H−2∣k∣2H+∣k−1∣2H).(6)\rho(k) = D \Delta t^{2H}\left(\lvert k + 1\rvert^{2H} - 2\lvert k\rvert^{2H} + \lvert k - 1\rvert^{2H}\right). \tag*{(6)}

The measured positions carry a static localization error, yk=X(tk)+ϵk\mathbf{y}_k=\mathbf{X}(t_k)+\boldsymbol{\epsilon}_k, with ϵk∼N(0,σloc2I3)\boldsymbol{\epsilon}_k\sim\mathcal{N}(0,\sigma_{\mathrm{loc}}^2\mathbb{I}_3) independent between frames and axes, and each position is averaged over the exposure tE=RΔtt_{\mathrm{E}}=R\Delta t (box illumination). The covariance of the observed displacements is then

Σij=ρR(∣i−j∣)+σloc2(2δijK−δ∣i−j∣,1K)(7)\Sigma_{ij}=\rho_R(\lvert i-j\rvert)+\sigma_{\mathrm{loc}}^2\left(2\delta_{ij}^{\mathrm{K}}-\delta_{\lvert i-j\rvert,1}^{\mathrm{K}}\right) \tag*{(7)}

where ρR\rho_R is the correlation function of the blurred process, obtained from its mean squared displacement [30] M(n)=2DΔt2H[(n+R)p+(n−R)p−2np−2Rp]/[R2(p−1)p]M(n)=2D\Delta t^{2H}\left[(n+R)^p+(n-R)^p-2n^p-2R^p\right]/[R^2(p-1)p], p=2H+2p=2H+2, as ρR(k)=12[M(k+1)−2M(k)+M(∣k−1∣)]\rho_R(k)=\frac{1}{2}[M(k+1)-2M(k)+M(\lvert k-1\rvert)]. At lag one this gives the blur factor κ(H,R)=M(1)/(2DΔt2H)\kappa(H,R)=M(1)/(2D\Delta t^{2H}) of Eq. (4). The three axes are independent and share Σ\Sigma. We define the signal-to-noise ratio as SNR=2DΔt2H/σloc\mathrm{SNR}=\sqrt{2D\Delta t^{2H}}/\sigma_{\mathrm{loc}}. The background to Eq. (13) is given in Supplementary Sec. S1.

Network

Inputs. The displacements of a window are normalized by their own root mean square, s2=(3N)−1∑c∑i(δi(c))2s^2=(3N)^{-1}\sum_c\sum_i(\delta_i^{(c)})^2, and the 3N3N values δi(c)/s\delta_i^{(c)}/s are the input. The network is given neither Δt\Delta t nor the units of the coordinates, so one trained network applies at any frame rate and over any range of DD. Two scalars are appended: a flag stating whether σloc\sigma_{\mathrm{loc}} is known, and log⁡10(σloc/s)\log_{10}(\sigma_{\mathrm{loc}}/s) when it is (a fixed value otherwise).

Architecture. A shared trunk of four fully connected layers (256, 256, 128 and 64 units, SiLU activations) feeds three two-layer heads. The first head returns HH, through a rescaled sigmoid restricted to 0.02<H<0.980.02 < H < 0.98, and its standard deviation σH\sigma_H. The second head returns a bounded correction rr (∣r∣≤0.87\lvert r\rvert\leq0.87 dex) and the standard deviation σlog⁡D\sigma_{\log D}. The scale removed by the normalization is restored analytically,

log⁡10D=r+log⁡10s2−2Hlog⁡10Δt−log⁡102−log⁡10κ(H,R),(8)\log_{10}D=r+\log_{10}s^2-2H\log_{10}\Delta t-\log_{10}2-\log_{10}\kappa(H,R), \tag*{(8)}

so the network learns a correction of order one decade rather than the magnitude of DD. The third head returns σloc/s\sigma_{\mathrm{loc}}/s (the localization error due to the finite resolution of the microscope), bounded between 10−210^{-2} and 11; when σloc\sigma_{\mathrm{loc}} is supplied it replaces this output.

Loss. The loss is

L=w(e)Lphys+LH+Llog⁡D+λσLσ.(9)L=w(e)L_{\mathrm{phys}+}L_H+L_{\log D}+\lambda_\sigma L_\sigma. \tag*{(9)}

The physics term is the exact Gaussian negative log-likelihood of the observed displacements,

Lphys=13N[12∑c=13δ(c)TΣ−1δ(c)+32ln⁡det⁡Σ+3N2ln⁡2π],(10)L_{\mathrm{phys}}=\frac{1}{3N}\left[\frac{1}{2}\sum_{c=1}^{3}\delta^{(c)T}\Sigma^{-1}\delta^{(c)}+\frac{3}{2}\ln\det\Sigma+\frac{3N}{2}\ln2\pi\right], \tag*{(10)}

with Σ\Sigma from Eq. (13) built from the predicted parameters and evaluated by Cholesky factorization. It uses no ground truth. LHL_H and Llog⁡DL_{\log D} are heteroscedastic Gaussian losses, ⟨(θ^−θ)2/2σθ2+ln⁡σθ⟩\left\langle(\hat{\theta}-\theta)^2/2\sigma_\theta^2+\ln\sigma_\theta\right\rangle, whose minimum with respect to σθ\sigma_\theta lies at the realized error of each window, so the uncertainties are learned with the point estimates and are not rescaled afterwards. LσL_\sigma is a squared error on log⁡10(σ^loc/s)\log_{10}(\hat{\sigma}_{\mathrm{loc}}/s), evaluated only where σloc\sigma_{\mathrm{loc}} was not supplied, with λσ=(ln⁡10)2\lambda_\sigma=(\ln10)^2. The weight w(e)=min⁡(1,e/500)w(e)=\min(1,e/500) ramps in the likelihood term over the first 500 epochs (Supplementary Sec. S1).

Training. A new batch of 512 three-dimensional trajectories of 20 positions was simulated at every epoch. For each trajectory, HH was drawn uniformly in the range (0.04,0.96)(0.04,0.96), log⁡D\log D uniformly in (−5,1)(-5,1), Δt\Delta t uniformly in (0.01,0.03)(0.01,0.03) s and the static localization error was set by the signal-to-noise ratio, σloc=s/SNR\sigma_{\mathrm{loc}}=s/\mathrm{SNR}, with SNR drawn log-uniformly in (2,50)(2,50), where s=2DΔt2Hs=\sqrt{2D\Delta t^{2H}} is the standard deviation of a single step along one axis. The displacements were generated from the exact covariance by Cholesky factorization, with the exposure fraction drawn within ±10%\pm10\% of R=0.05R=0.05, and Gaussian localization noise was added to the positions. The value of σloc\sigma_{\mathrm{loc}} was supplied to the network for a random half of each batch. We used AdamW (learning rate 3×10−43\times10^{-4}, weight decay 10−410^{-4}) with gradient clipping for 12 000 epochs, evaluated the network every 100 epochs on eight independent validation batches, halved the learning rate when the validation loss reached a plateau, and kept the network with the lowest validation loss. Performance, calibration and the dependence on window length and SNR are reported in Supplementary Sec. S1.

Inference along trajectories

Each contiguous segment was analysed in windows of 20 positions sliding by one frame, with the exposure fraction checked against the value used in training. The estimates of all windows covering a time point were combined: HH and log⁡10D\log_{10}D as means weighted by 1/σ21/\sigma^2, and their uncertainties as the correspondingly weighted mean of the window uncertainties, because overlapping windows share most of their displacements and their errors are almost perfectly correlated.

Effective diffusivity calculation and its uncertainty

To calculate the effective diffusion coefficient Eq. (3) we need to calculate the N×NN \times N correlation matrix R(H)R(H) of fractional Gaussian noise. log⁡det⁡R(H)\log\det R(H) was tabulated by Cholesky factorization on a grid H∈[0.02,0.98]H \in[0.02,0.98] and interpolated. DeffD_{\mathrm{eff}} has units of μm2 s−1\mathrm{\mu m^2\,s^{-1}} at every HH, equals DD at H=1/2H = 1/2, and 2ΔtDeff2\Delta t D_{\mathrm{eff}} is the geometric mean of the variances of the parts of successive steps that cannot be predicted from the preceding steps.

Because the network does not return the covariance between the errors of HH and log⁡D\log D, the uncertainty of log⁡Deff\log D_{\mathrm{eff}} was measured directly. We simulated 4 000 three-dimensional FBM tracks of 40 positions at Δt=17.6\Delta t = 17.6 s, with HH uniform in (0.45,0.90)(0.45,0.90), per-axis step size uniform in (0.4,1.2)(0.4,1.2) µm and SNR=20 (we also tested SNR log-uniform in (5,50)(5,50)), analysed them with the same network and inference script, and tabulated the standard deviation of the error of log⁡Deff\log D_{\mathrm{eff}} in bins of the predicted HH. The error is 0.080–0.092 dex over the whole range, while the errors of HH and log⁡D\log D are correlated with coefficient −0.8 to −0.9.

Time courses

Each window was assigned to a 176 s bin (10 frames) by its time stamp, with movies placed on a common clock from their frame offsets. Within each track and bin, the estimates of HH and log⁡Deff\log D_{\mathrm{eff}} were averaged, giving one value per track and bin. For a single recording we report the median of the per-track values with a 95% percentile interval from 500 bootstrap resamples of tracks, for bins with at least five tracks. For independent recordings of the same genotype we report the mean of the per-recording medians, in bins covered by at least two recordings with at least five tracks each, with a 95% interval from a two-level bootstrap over recordings and over tracks within each recording. Treating each track as one unit gives tracks equal weight and keeps the resampled units independent. The rise–decay, exponential, power-law and logarithmic schedules were fitted to ln⁡Deff(t)\ln D_{\mathrm{eff}}(t) of the continuous recordings by least squares and compared using the Akaike information criterion.

Frame-scale speed

Squared frame-to-frame speeds, v2=∣r(t+Δt)−r(t)∣2/Δt2v^2 = \lvert\mathbf{r}(t+\Delta t)-\mathbf{r}(t)\rvert^2/\Delta t^2, were computed from positions in consecutive frames. At every time point the FBM prediction ⟨v2⟩FBM\langle v^2\rangle_{\mathrm{FBM}} was evaluated from Eq. (4) with the combined network estimates. Windows with goodness-of-fit p≤0.05p \le0.05 or with HH outside [0.02,0.98][0.02,0.98] were excluded. Within each time bin, observed and predicted values were averaged first per track (at least three samples of each) and then over tracks (at least ten tracks per bin), and the ratio in Figure 3(a) is the ratio of these track averages; bins were 704 s for the ratio and 352 s for the other panels. The decomposition check of Figure 3(c) is the same ratio written as τ2⟨v2⟩f/(2ΔtDeff)\tau^2\langle v^2\rangle_f/(2\Delta t D_{\mathrm{eff}}) [Eq. (5)]. Embryo means of the two ratios are equal-weight averages over embryos, shown where at least two embryos contribute. Because embryos cover different time spans, a plain average of absolute values such as ⟨v2⟩\langle v^2\rangle would change whenever an embryo enters or leaves it. The embryo mean of ⟨v2⟩\langle v^2\rangle was therefore obtained by fitting log⁡ybr=ar+fb\log y_{br}=a_r+f_b (one offset per embryo rr, one value per bin bb, ∑rar=0\sum_r a_r=0) by alternating least squares; exp⁡(fb)\exp(f_b) is the time course of a typical embryo, shown normalized to the maximum of its three-bin moving average. Confidence intervals are 95% percentile intervals from 200 bootstrap resamples, of tracks for single recordings and of embryos for means. Mean speeds (Figure 6) were computed from v=∣r(t+Δt)−r(t)∣/Δtv=\lvert\mathbf{r}(t+\Delta t)-\mathbf{r}(t)\rvert/\Delta t, averaging each track within a bin first; error bars are standard errors across tracks for single recordings and across recordings for independent recordings.

Fractional Brownian motion estimated by the PINN reproduces the hemocytes dynamics

Figure 3. Fractional Brownian motion estimated by the PINN reproduces the hemocytes dynamics. Control (blue circles), LanB1-deficient (vermillion squares) and collagen-deficient embryos (green triangles) hemocytes. Filled symbols and thick lines, mean of independent embryos (control n=7n = 7, LanB1-deficient n=6n = 6, collagen-deficient n=4n = 4), shown in bins covered by at least two embryos; open symbols and thin lines, single continuous six-movie recording. Grey bands mark alternate 200-frame movies. (a) Ratio of observed to FBM-predicted mean squared frame-to-frame speed, ⟨v2⟩obs/⟨v2⟩FBM\langle v^2\rangle_{\mathrm{obs}}/\langle v^2\rangle_{\mathrm{FBM}} [Eq. (4)], in 704 s bins; embryo means weight each embryo equally. Shading, 95% bootstrap confidence interval (over embryos for means, over tracks for continuous recordings); dotted line, perfect agreement. (b) ⟨v2⟩\langle v^2\rangle normalized to its own peak (maximum of a three-bin moving mean), in 352 s bins. Embryo means are estimated with one multiplicative offset per embryo, so that embryos entering or leaving the average do not shift the curve; shading, 95% bootstrap interval over embryos. (c) Decomposition of the speed into cooling and memory, τ2⟨v2⟩f(H)/(2dΔtDeffκ)\tau^2\langle v^2\rangle f(H)/(2d\Delta t D_{\mathrm{eff}}\kappa) [Eq. (5)] without the noise term, in the bins of (b); dotted line, exact decomposition. The ratio stays close to 1 while ⟨v2⟩\langle v^2\rangle falls several-fold. (d) Localization error estimated by the network, per movie: median over tracks (95% bootstrap interval over tracks) for continuous recordings and mean over embryos (95% bootstrap interval over embryos) for embryo means.

Data and code availability

The training and inference scripts for the network, as well as the analysis scripts, will be available on GitHub upon publication.

Discussion

We have followed the motility of Drosophila hemocytes through six hours of embryonic development in two coordinates: an effective diffusivity DeffD_{\mathrm{eff}}, which measures how strongly a cell moves, and the Hurst exponent HH, which measures how much it remembers its previous direction. In both genotypes followed for six hours (the control and LanB1) the time course has two phases. During the first hour the cells warm and become more persistent. Thereafter they cool. Control hemocytes cool about threefold and settle at H≈0.63H \approx0.63, remaining clearly persistent while they patrol. Hemocytes in LanB1-deficient embryos are hotter at first but cool about sixfold, and they approach Brownian motion. Hemocytes in collagen-IV-deficient embryos, recorded over the second and third hours, cool over the same period but keep most of their persistence. The spread between cells grows during development and, except during the second movie, exceeds the error of the individual estimates, so the late embryo contains a genuinely heterogeneous population.

These conclusions depend on two methodological steps. The first is a calibrated uncertainty for every local estimate. In twenty-frame windows the estimation error is comparable to the biological variation, and without it neither the changes along a track nor the spread between cells could be interpreted. The second is the choice of coordinate for the amplitude of motion. The generalized diffusion coefficient DD carries units of L2T−2H\mathrm{L^2T^{-2H}}, which differ whenever HH differs, and in short windows its error is almost entirely inherited from the error in HH. The resulting correlation between HH and log⁡D\log D is a property of the measurement: its sign is set by the frame rate, and it is positive at millisecond frame intervals and negative at the 17.6 s interval used here. Correlations of this kind between estimated exponents and diffusion coefficients are widely reported and can even reverse the sign of the true correlation [28]. The negative correlation we previously observed for hemocytes [24] belongs to the same class. DeffD_{\mathrm{eff}} removes the problem at the level of the likelihood. Its units are μm2s−1\mu\mathrm{m}^{2}\mathrm{s}^{-1} for every HH, it equals DD for Brownian motion, and its error is asymptotically uncorrelated with that of HH. Physically, it measures the unpredictable part of each step, that is, the part of the motion not explained by the cell’s recent history. With this transformation, the cooling of hemocytes, which is nearly invisible in DD because a falling HH masks a falling amplitude, becomes the dominant feature of the data.

The two phases coincide with the two stages of hemocyte behaviour known from developmental studies: dispersal from the head mesoderm along stereotyped routes, followed by residence in the tissues, where the cells clear apoptotic corpses and respond to wounds [1, 3]. Our measurements add a physical description of this transition. Dispersal is hot and persistent, and patrolling is cooler. Control cells cool while retaining much of their directional memory, so they continue to sweep their surroundings in persistent runs rather than diffusing in place. This is the pattern expected of an annealed search [12, 13]. A high early effective temperature allows the population to cross weak barriers and spread through the embryo. As the temperature then falls, weaker barriers become strong enough to hold a cell, so that the cells settle at favourable sites and patrol around them. The strategy differs from other standard paradigms such as run-and-tumble motion and from Lévy walks [9], in which the statistics of motion are stationary. It shares features with intermittent search [10], the alternation of relocation and local exploration, but here the alternation unfolds over developmental time rather than along each trajectory. We note that simulated annealing is usually formulated for a single searcher seeking one global minimum. Hemocytes instead form a population that must cover the whole embryo, so the relevant outcome is the redistribution of the population, not the convergence of individual cells.

Loss of laminin B1 alters both the effective temperature and the directional memory of hemocytes. Hemocytes in LanB1-deficient embryos are hotter during dispersal, cool faster and further, and lose most of the persistence that control cells retain. Hemocytes deposit components of the basement membrane [4], and the laminin they secrete strengthens their own migration [5]. One interpretation of our data is therefore that laminin is needed to sustain directed motility during patrol, not to set the effective temperature. The earlier observation that the LanB1 deficiency reduces the persistence of hemocyte motion [24] is consistent with this interpretation, and our analysis locates the loss of persistence in the patrol phase. A second interpretation, which we cannot fully exclude, is mechanical: an altered matrix could change the confinement and friction experienced by the cells, as discussed below.

Collagen IV, the other main structural component of the basement membrane and one that hemocytes largely deposit themselves [4], provides a contrast. In collagen-IV-deficient embryos the frame-scale speed is again reproduced by fractional Brownian motion Figure 3(a), and the hemocytes cool over the period we can follow, slightly below control cells in DeffD_{\mathrm{eff}}. Their persistence, however, stays close to that of control cells, at H≈0.66H \approx0.66–0.720.72, and above that of LanB1-deficient cells at the same stage Figure 4. Reducing collagen IV therefore does not reproduce the loss of memory caused by the loss of laminin. This points to laminin itself, rather than the integrity of the basement membrane as a whole, as the component that converts speed into persistence, consistent with the role of hemocyte-derived laminin in stabilising lamellipodia and sustaining persistent migration [5]. Two limits apply. The collagen recordings end before the patrol phase, where the memory of LanB1-deficient cells is lost most clearly, and four embryos give little power to detect a modest change in HH. Following collagen-deficient embryos into the late embryo, and testing the speed–persistence coupling of Figure 7 in them, would show whether collagen IV is dispensable for persistent patrol or only for its onset.

Warming and cooling of hemocyte motility

Figure 4. Warming and cooling of hemocyte motility. (A) Effective diffusivity DeffD_{\mathrm{eff}} [Eq. (3)] and (B) Hurst exponent HH, in 176 s bins (10 frames) of the time since the start of imaging. Symbol shape encodes genotype: control (circles), LanB1-deficient (squares) and collagen-deficient embryos (triangles). Filled symbols, continuous six-movie recordings of control and LanB1-deficient embryos; each point is the median over tracks with a 95% bootstrap interval (shaded). Open symbols, mean over independent recordings: control (n=7n = 7) and LanB1-deficient (n=4n = 4), each spanning movies 1–2, and collagen-deficient embryos (n=4n = 4), two recordings spanning movies 1–2 and two spanning movies 2–3. Each open point is the mean of the per-recording medians, with a 95% interval from a two-level bootstrap over recordings and over tracks within each recording. A bin is shown when at least 2 recordings contribute, each with at least 5 tracks. Dashed lines, best-fitting cooling schedules for the continuous recordings, selected by AIC among exponential, power-law, logarithmic and rise–decay forms. Grey and white bands mark consecutive 200-frame movies (58.7 min each). Dotted line in (B), Brownian motion, H=0.5H = 0.5. Estimates come from 20-position windows (Δt=17.6\Delta t = 17.6 s). Symbols are drawn every second bin.

Speed–persistence coupling across six movies

Figure 7. Speed–persistence coupling is preserved in control hemocytes and lost in LanB1-deficient embryos. Each panel corresponds to one movie (≈ 1 h). Dots: individual track segments, plotting the mean frame-to-frame speed against the mean Hurst exponent HH of windows that passed the goodness-of-fit test (p>0.05p > 0.05); segments required at least five speed samples and five HH estimates. Squares: means of speed quintiles, with error bars giving the s.e.m. in both coordinates. Dotted line: Brownian motion (H=0.5H = 0.5). ρ\rho: Spearman correlation per genotype (*** p<0.001p < 0.001; n.s., not significant). Numbers of segments per panel, control/LanB1-deficient: 1174/1089, 1126/1450, 1711/924, 1692/1414, 1484/1601, 1391/1256.

A falling DeffD_{\mathrm{eff}} is a direct observation. Interpreting it as a falling effective temperature, Teff=γDeff/kBT_{\mathrm{eff}} = \gamma D_{\mathrm{eff}}/k_{\mathrm{B}}, requires the friction γ\gamma to remain constant. The fluids of the fly are simple: larval hemolymph has a viscosity close to that of water, 1.34±0.071.34 \pm0.07 cP [32], and the embryonic cytoplasm and yolk respond predominantly viscously, at ∼103\sim10^{3} cP, on the scale of micrometre probes and minutes [33]. Hemocytes, however, do not move as particles suspended in these fluids. A cell of radius 5 μ\mum diffusing thermally in hemolymph would have D≈0.03 μm2s−1D \approx0.03 \,\mu\mathrm{m}^{2}\mathrm{s}^{-1}, more than the values of DeffD_{\mathrm{eff}} we measure. The friction that limits hemocyte motion is therefore set by adhesion and confinement within the tissue, not by hydrodynamics. The tissue itself is elastic on timescales of several minutes [33], comparable to our windows, and it stiffens markedly during development [34]. Viscoelasticity and confinement can make passive motion antipersistent but cannot generate persistence, so the values H>1/2H > 1/2 we measure reflect the activity of the cells, and any contribution from the medium can only bias HH downwards. This bias complicates the interpretation of the lower persistence of cells in LanB1-deficient embryos, whose surrounding matrix is altered. Whether the cooling reflects decreasing activity or increasing friction can be decided by three measurements: the dependence of HH on lag time, which would reveal a relaxation time of the medium within our range of lag times; the fluctuations of passive landmarks in the same embryos; and the Kramers scaling of dwell times, ln⁡τdwell∝1/Deff\ln\tau_{\mathrm{dwell}} \propto1/D_{\mathrm{eff}}, which annealing predicts and a change in friction alone does not.

The annealing picture makes further predictions that do not depend on the value of γ\gamma. First, the cooling should be reversible. A wound, which recruits hemocytes rapidly [2], should reheat the population: annealing predicts a global rise in DeffD_{\mathrm{eff}}, whereas chemotaxis towards the wound should appear mainly as a local increase in HH directed at the wound. Second, if the cooling is set by the cells, direct microrheology of the hemocoel, using magnetic beads or ferrofluid droplets [33] at the stages imaged here, should show a friction that changes much less than DeffD_{\mathrm{eff}}. Third, an actin or motility mutant with a normal matrix should change the temperature but not the memory, which would separate a defect in motility from a defect in the matrix.

There are some caveats to our conclusions. The six movies for each embryo were recorded consecutively, and some changes in both parameters coincide with the boundaries between movies. We have therefore based our conclusions only on features that persist across several movies. The estimator assumes fractional Brownian motion with a static localization error within each window. For other processes, such as continuous-time random walks, Lévy walks or diffusing diffusivity, it returns the parameters of the closest fractional Brownian description. Fisher orthogonality of DeffD_{\mathrm{eff}} holds for an efficient estimator and is approximate for twenty-frame windows and for a Bayesian estimator subject to prior shrinkage. Because the network does not report the covariance between HH and log⁡D\log D, the uncertainty of log⁡Deff\log D_{\mathrm{eff}} can only be bracketed. We used the upper bound, which makes our estimates of heterogeneity conservative. DeffD_{\mathrm{eff}} depends on the frame interval and window length whenever H≠1/2H \ne1/2, so comparisons with experiments at other frame rates require converting back to DD, which reintroduces the uncertainty in HH. Only the LanB1 deficiency was followed through the patrolling phase; the collagen recordings cover the second and third hours of imaging, and the comparison rests on four embryos.

The combination used here for the Cerberus neural network, calibrated local estimates in coordinates whose errors do not mix, applies to any heterogeneous anomalous transport recorded in short windows: endosomes and other intracellular cargo, bacterial motility, immune cells in tissues, and tracers in soft materials. In each case the generalized diffusion coefficient confuses amplitude with memory, and DeffD_{\mathrm{eff}} separates them at no extra cost. For hemocytes, it turns a qualitative change of behaviour during development into a trajectory through the plane of temperature and memory. Cells in control, LanB1-deficient and collagen-IV-deficient embryos follow different paths through this plane, and the paths can be compared quantitatively. Robustness is a crucial defining principle in systems biology for biologically relevant processes [35]. The annealed search strategy is expected to be robust to energy landscapes with a wide variety of energy magnitudes. In the future it would be interesting to explore the annealed search process with respect to adaptation and fold-change detection, two important paradigms in systems biology that help determine robustness.

Conclusion

Hemocytes in the Drosophila embryo switch within a few hours from colonising the embryo to patrolling its tissues. We have described this transition with two quantities: an effective diffusivity DeffD_{\mathrm{eff}}, which measures how strongly a cell moves, and the Hurst exponent HH, which measures how much it remembers its previous direction. Two tools made this possible. A physics-informed neural network with a Cerberus architecture estimates both HH and the generalized diffusion coefficient DD from twenty-frame windows, each with its own uncertainty. The reparameterisation DeffD_{\mathrm{eff}} removes the degeneracy between amplitude and memory that is inherent to anomalous diffusion. DeffD_{\mathrm{eff}} has units of μm2 s−1\mu\mathrm{m}^2\,\mathrm{s}^{-1} for every HH, equals DD for Brownian motion, and its error is asymptotically uncorrelated with that of HH. At the hemocyte frame interval a single window fixes DeffD_{\mathrm{eff}} to about 20%, while the errors of HH and DD are strongly anticorrelated. Fractional Brownian motion with the inferred parameters reproduces the measured frame-to-frame speed throughout development, and the slowdown of the cells is fully accounted for by DeffD_{\mathrm{eff}} and HH.

In these coordinates hemocyte motility follows a clear course. During the first hour of imaging the cells warm and become more persistent. Thereafter they cool. In the period covered by recordings of all three genotypes, the initial cooling is indistinguishable between control, LanB1-deficient and collagen-deficient embryos. Later the genotypes diverge. Control hemocytes cool about threefold while remaining clearly persistent (H≈0.63H \approx0.63). Hemocytes in LanB1-deficient embryos are hotter at first but cool about sixfold and approach Brownian motion. In control embryos speed and persistence stay coupled throughout, so that fast cells keep their direction even late in development. In LanB1-deficient embryos the coupling weakens steadily and vanishes in the last hour, when fast cells move without directional memory. The spread between cells exceeds the estimation error in DeffD_{\mathrm{eff}} at all times, and in HH for most of development, so the embryo contains a genuinely heterogeneous population. The late differences between genotypes rest on one continuous recording per genotype and should therefore be interpreted with caution, although they are consistent across more than a thousand track segments per movie (Figure 7). The collagen mutant was recorded for the first three hours only, and its behaviour during the patrolling phase is not addressed here.

We interpret the cooling as an annealed search: a high early temperature disperses the population, and a falling temperature lets the cells settle at favourable sites and patrol around them. In this picture the basement membrane, through laminin, converts speed into persistence and so sustains the directional memory of patrolling cells. The interpretation assumes that the friction experienced by the cells does not rise during development. It makes testable predictions: passive landmarks in the same embryos should not cool, dwell times at favourable sites should follow Kramers’ scaling, and wounding should reheat the population.

More generally, the separation of amplitude from memory applies to all heterogeneous anomalous transport. Wherever changes along a trajectory are to be interpreted, a per-window uncertainty and a coordinate that does not mix the two parameters are needed to tell genuine changes from artefacts of the estimator.

Acknowledgements

NK acknowledges useful discussions with Daniel Han. The authors used Claude Opus 4.8 to assist with reviewing and developing parts of the code, to assist with manuscript revision. The authors reviewed and edited all AI assisted content and take full responsibility for the content of the publication.

Author contributions statement

NK: Conceptualization, Resources, Software, Formal analysis, Validation, Investigation, Visualization, Methodology, Project administration, Writing - original draft and editing; TM: Data curation, Validation, Investigation, Methodology, Writing - editing. TW: Formal analysis, Validation, Investigation, Methodology, Writing - editing.

Supplementary Material

Network architecture, training, error calibration

The fractional Gaussian noise correlation function

The network operates on displacements rather than positions, because the increments of FBM are stationary while the positions are not. For a window of NN points sampled at an interval Δt\Delta t, we write the displacements on axis cc as δi(c)=yi+1(c)−yi(c)\delta_i^{(c)} = y_{i+1}^{(c)} - y_i^{(c)}, with i=1,…,ni = 1,\ldots,n and n=N−1n = N - 1. These displacements are the fractional Gaussian noise (fGn), and their correlation function is

ρ(k)=⟨δiδi+k⟩=DΔt2H(∣k+1∣2H−2∣k∣2H+∣k−1∣2H),(11)\rho(k) = \langle\delta_i\delta_{i+k}\rangle= D\Delta t^{2H}\left(\lvert k+1\rvert^{2H} - 2\lvert k\rvert^{2H} + \lvert k-1\rvert^{2H}\right), \tag*{(11)}

with ρ(0)=2DΔt2H\rho(0) = 2D\Delta t^{2H}, in the convention ⟨Δx2(t)⟩=2Dt2H\langle\Delta x^2(t)\rangle= 2Dt^{2H} per axis used throughout this work. Equation (11) contains all of the information the network can use. Persistent motion (H>0.5H > 0.5) gives positive correlations that decay slowly as k2H−2k^{2H-2}; anti-persistent motion (H<0.5H < 0.5) gives negative correlations that sum to zero; and at H=0.5H = 0.5 the correlations vanish and the displacements are uncorrelated. It is the shape of Equation (11), and not the size of the displacements, that determines HH.

Experimental trajectories are recorded with a static localization error. We write the measured positions as

yk=X(tk)+εk,εk∼N(0,σloc2I3),(12)y_k = X(t_k) + \varepsilon_k,\qquad\varepsilon_k \sim\mathcal{N}(0,\sigma_{\mathrm{loc}}^2 I_3), \tag*{(12)}

where εk\varepsilon_k has zero mean and is independent between frames and between axes, and σloc\sigma_{\mathrm{loc}} is the standard deviation of the measured position of an immobile particle. Differencing Equation (12) shows that each displacement carries the error of two frames, which raises its variance by 2σloc22\sigma_{\mathrm{loc}}^2, while consecutive displacements share one frame with opposite sign, which gives a covariance of −σloc2-\sigma_{\mathrm{loc}}^2 at lag one and zero at longer lags. The covariance matrix of the observed displacements is therefore

Σij=ρ(∣i−j∣)+σloc2(2δijK−δ∣i−j∣,1K),(13)\Sigma_{ij} = \rho(\lvert i-j\rvert) + \sigma_{\mathrm{loc}}^2\left(2\delta_{ij}^{K} - \delta_{\lvert i-j\rvert,1}^{K}\right), \tag*{(13)}

where δK\delta^K is the Kronecker delta, written with a superscript to distinguish it from the displacements δi(c)\delta_i^{(c)}. The second term of Equation (13) is the zero-motion-blur limit of the displacement covariance derived by Berglund [36] for camera-based tracking of a Brownian particle, and the corresponding result for FBM, in which ρ(∣i−j∣)\rho(\lvert i-j\rvert) replaces the Brownian term, was given by Weber et al. [37]. At the level of the MSD the same effect appears as the additive offset 2σloc22\sigma_{\mathrm{loc}}^2 identified by Martin et al. [38] and refined by Savin and Doyle [39]. That the lag-one term carries information as well as bias was shown by Vestergaard et al. [40], whose covariance-based estimator (CVE) recovers both the diffusion coefficient and the localization error of a Brownian particle from the variance and the lag-one covariance of the displacements alone. The CVE is explicit, unbiased and regression-free, and in experimentally relevant parameter ranges it outperforms not only estimators built from the measured MSD but also the maximum-likelihood estimator. Our network may be considered as the FBM counterpart of that idea. Rather than fitting a power law to an MSD curve, we estimate HH, DD and σloc\sigma_{\mathrm{loc}} from the correlation structure of the displacements itself, which is why the localization error appears as an output rather than as a nuisance to be corrected for afterwards.

We assume throughout that the camera exposure is short compared with the frame interval. For continuous illumination the particle moves during the exposure, and its average position rather than its instantaneous position is recorded [36, 39]. This motion blur adds a positive contribution to the lag-one term, partially cancelling the localization error, and it is quantified by a single motion-blur coefficient determined by the illumination profile [36, 40]. It therefore enters Equation (13) as a known constant and could be included without any change to the network.

That static localization error induces apparent correlations in measured displacements is well established for Brownian motion [37, 39, 41, 42], and the consequences for anomalous exponent estimation were analysed by Burnecki et al. [43] and Lanoiselée et al. [44]. The negative lag-one term is what makes the estimation problem hard. An anti-persistent FBM produces a negative correlation at lag one for exactly the same reason that measurement noise does, so the two are difficult to separate in a short window, and the difficulty is worst at small HH where the physical correlation is itself negative. We define the signal-to-noise ratio as SNR =2DΔt2H/σloc= \sqrt{2D\Delta t^{2H}}/\sigma_{\mathrm{loc}}, the ratio of the standard deviation of the noise-free displacements to the standard deviation of the localization error of a single position, in agreement with our earlier definition.

Feature engineering

Which features from the data should be given to the Cerberus neural network for training? As we found previously with the tandem NNs [26], the choice of feature engineering is more important than the choice of architecture, and we describe our criteria here. As a first criterion, the features must be invariant under a change of units, so that one trained network can be applied to data recorded in μ\mum or in pixels. As a second criterion, they must be invariant under a change of the frame rate, so that the same network can be used at any Δt\Delta t. As a third criterion, they must not require the range of DD to be fixed in advance, since in the tandem long short-term memory (LSTM) neural networks the range of DD had to be customized for each application [26].

All three criteria are met by normalizing the displacements by their own root mean square,

s2=13n∑c=13∑i=1n(δi(c))2,(14)s^2 = \frac{1}{3n}\sum_{c=1}^{3}\sum_{i=1}^{n}\left(\delta_i^{(c)}\right)^2, \tag*{(14)}

which is the time-averaged MSD of the window at its shortest lag, averaged over the three axes. The input layer is loaded with the 3n3n normalized displacements δi(c)/s\delta_i^{(c)}/s. The network is given neither Δt\Delta t nor the units of the coordinates. Since FBM is self-similar, the normalized displacements have the same statistics for any length scale and any frame rate, and the network is left to learn the shape of Equation (11) alone.

The scale was removed by Equation (14) and we restore it afterwards. From Equation (13), ⟨s2⟩=2DΔt2H+2σloc2\langle s^2\rangle= 2D\Delta t^{2H} + 2\sigma_{\mathrm{loc}}^2, and inverting the first term gives

log⁡D=r+log⁡s2−2Hlog⁡Δt−log⁡2,(15)\log D = r + \log s^2 - 2H\log\Delta t - \log2, \tag*{(15)}

where the last three terms are the plug-in MSD estimate and rr is a correction predicted by the network. The correction absorbs what the plug-in estimate omits: the finite-nn bias of s2s^2, the 2σloc22\sigma_{\mathrm{loc}}^2 offset, and the correlation between the errors in s2s^2 and in the predicted HH. The correction is of order unity in decades, while DD itself varies over several decades, so the network learns a small quantity rather than the magnitude of DD. This is what allows one trained network to be used over the whole range of DD without retraining. We note that Equation (15) also shows why HH and DD must be estimated together: an error in HH enters log⁡D\log D multiplied by 2log⁡Δt2\log\Delta t.

Two further inputs are supplied. The first is a flag which states whether the localization error (σloc\sigma_{\mathrm{loc}}) has been measured independently, for example from movies of immobilized beads. The second is log⁡(σloc/s)\log(\sigma_{\mathrm{loc}}/s), which is used when the flag is set and replaced by a fixed value otherwise. The size of the input layer is therefore 3(N−1)+23(N-1)+2.

Because the network is trained with a squared error, its outputs approximate posterior means [29] and are shrunk towards the centre of the training distribution wherever the data carry little information: this pulls H^\hat{H} inwards near the edges of its range, lowering its coverage there, and leaves the estimate of σloc\sigma_{\mathrm{loc}} close to its prior mean.

Cerberus neural network architecture

The network consists of a shared trunk and three output heads; a Cerberus architecture. The trunk is a feedforward network with four layers of 256, 256, 128 and 64 units and SiLU activation functions. Each head is a two-layer network acting on the 64 outputs of the trunk. We used a common trunk because HH, DD and σloc\sigma_{\mathrm{loc}} are all read from the same correlation function, and separate heads because they are read from different parts of it.

The first head predicts the Hurst exponent in the output layer with the sigmoid activation function, rescaled so that 0.02<H<0.980.02 < H < 0.98, that is, 0.04<α<1.960.04 < \alpha< 1.96. The second head predicts the correction rr of Equation (15) with the hyperbolic tangent activation function. The third head predicts σloc\sigma_{\mathrm{loc}} as a fraction of the root mean square displacement, bounded between 10−210^{-2} and 11. The lower bound was chosen because a localization error below one per cent of the displacements changes the variance by less than 0.02% and cannot be recovered from a short window. σloc\sigma_{\mathrm{loc}} should, where possible, be measured independently, for example from immobilised beads or fixed cells imaged under the same conditions, or from whole trajectories pooled over a movie; a value measured in this way is supplied to the network as an input and replaces the output of this head. The first two heads also predict the standard deviations, σH\sigma_H and σlog⁡D\sigma_{\log D}. These are the uncertainties which we report, and which are combined when the window is slid along the trajectory. They are the predictive spread of a single trained network.

Loss function

The network was trained with a loss function which combines the exact likelihood of the FBM model with the supervised error on the simulated parameters,

L=w(e)Lphys+LH+Llog⁡D+λσLσ,(16)L = w(e)L_{\mathrm{phys}} + L_H + L_{\log D} + \lambda_{\sigma}L_{\sigma}, \tag*{(16)}

and we describe each of the four terms in turn.

Since the displacements are Gaussian with the covariance matrix of Equation (13), and the three axes are independent and share Σ\Sigma, the likelihood term is

Lphys=13n[12∑c=13δ(c)TΣ−1δ(c)+32ln⁡det⁡Σ+3n2ln⁡2π],(17)L_{\mathrm{phys}} = \frac{1}{3n}\left[\frac{1}{2}\sum_{c=1}^{3}\delta^{(c)\mathrm{T}}\Sigma^{-1}\delta^{(c)} + \frac{3}{2}\ln\det\Sigma+ \frac{3n}{2}\ln2\pi\right], \tag*{(17)}

evaluated at the values of HH, DD and σloc\sigma_{\mathrm{loc}} predicted by the network and computed with a Cholesky factorization of Σ\Sigma. Here δ(c)\delta^{(c)} is the vector of the n=T−1n = T - 1 observed displacements on axis cc, Σ\Sigma is the n×nn \times n covariance matrix of Equation (13) built from the predicted HH, DD and σloc\sigma_{\mathrm{loc}} and shared by the three axes, det⁡Σ\det\Sigma is its determinant, and the last term is a normalisation constant. The quadratic form measures how well the predicted correlation function accounts for the observed displacements, and is small when Σ\Sigma whitens the data. The term ln⁡det⁡Σ\ln\det\Sigma is the normalization of the Gaussian and prevents Σ\Sigma from being made large to reduce the first term; together they fix the scale of DD as well as the shape set by HH. The constant carries no gradient and is retained only so that the printed value is a likelihood. We divide by 3n3n so that the term is a per-displacement quantity and does not change its weight relative to the others when the window size is changed. The logarithms here are natural, since they belong to the Gaussian normalization and are not a reporting convention. Equation (17) does not use the ground truth, so it constrains the network on experimental windows as well as on simulated ones, and it excludes combinations of the three parameters which are inconsistent with the measured displacements.

The point estimates and their uncertainties were trained together with the heteroscedastic Gaussian loss

Lθ=⟨(θ^−θ)22σθ2+ln⁡σθ⟩,θ=H, log⁡D,(18)L_{\theta} = \left\langle\frac{(\hat{\theta}-\theta)^2}{2\sigma_{\theta}^{2}} + \ln\sigma_{\theta}\right\rangle,\qquad\theta= H,\ \log D, \tag*{(18)}

one for each estimated parameter. These are the only terms that use the simulated ground truth. The squared error divided by the predicted variance trains the point estimate, and ln⁡σθ\ln\sigma_{\theta} prevents the network from reducing it by reporting an arbitrarily large uncertainty; the minimum with respect to σθ\sigma_{\theta} lies at the root mean squared error of the prediction for that window. This is why σH\sigma_H and σlog⁡D\sigma_{\log D} are calibrated by the training itself and require no subsequent rescaling. The fourth term in equation S6, LσL_{\sigma}, is a squared error on log⁡(σloc/s)\log(\sigma_{\mathrm{loc}}/s) against the clipped target, and it trains the third head. The likelihood is sharply peaked in HH and, without this, it dominates the gradient before the trunk has learned anything about the correlation function. All four terms are averaged over the batch.

Generation of training and validation datasets

Synthetic FBM trajectories with constant Hurst exponents HH and generalized diffusion coefficients DD were used to train the network, and a new batch was simulated at every epoch, so that no window was used twice. For each trajectory we drew HH uniformly in the range (0.04,0.96)(0.04, 0.96) and log⁡D\log D uniformly in (−5,1)(-5, 1), that is D∈(10−5,101)D \in(10^{-5}, 10^{1}). The displacements were generated directly from the correlation function rather than from the Langevin equation. We factorized the covariance matrix of Equation (13) with σloc=0\sigma_{\mathrm{loc}} = 0 and multiplied it by a vector of standard normal variates, obtained the positions by cumulative summation, and then added Gaussian noise with the standard deviation σloc=2DΔt2H/SNR\sigma_{\mathrm{loc}} = \sqrt{2D\Delta t^{2H}}/\mathrm{SNR} to represent the static measurement error. The simulator and the likelihood of Equation (17) therefore use the same covariance matrix.

The value of σloc\sigma_{\mathrm{loc}} was supplied to the network for half of the trajectories in each batch. A single trained network can therefore be used both when the localization error has been calibrated and when it has not, and the difference between the two shows how much of the uncertainty in HH is caused by the localization error.

The network was trained for 10410^{4} epochs with batches of 512 trajectories, using AdamW with a learning rate of 3×10−43 \times10^{-4}, a weight decay of 10−410^{-4} and gradient clipping. Every 100 epochs we evaluated the network on eight independently simulated validation batches, halved the learning rate when the validation loss reached a plateau, and saved the network when the validation loss improved. In addition to the MAE of HH and log⁡D\log D, we recorded the fraction of windows for which the true value fell inside θ^±1.96σθ\hat{\theta} \pm1.96\sigma_{\theta}. This coverage is as important as the MAE: if the predicted uncertainties are too small, the variations of HH and DD along a trajectory cannot be distinguished from the errors of the estimate.

Calibration of the uncertainties

Should the predicted uncertainties be rescaled after training? We chose not to apply any calibration, and we describe our reasons here. The standard deviations σH\sigma_H and σlog⁡D\sigma_{\log D} reported by the network are the raw outputs of the two heads. No variance inflation factor and no post-hoc regression of the predicted uncertainty against the observed error were used at any stage.

The first reason is that the uncertainties are calibrated during training and not afterwards. The loss function described by Equation (18) is minimized when σθ2\sigma_{\theta}^{2} equals the mean squared error of the prediction for that window, so the network is trained to report the error it actually makes. A network trained with a plain squared error, as in our previous work, produces no uncertainty at all, and any interval must then be attached to it afterwards from the ensemble statistics. Here the interval is a per-window quantity, and it is learned together with the point estimate. The distinction matters for heterogeneous trajectories: the error of the estimate depends strongly on HH itself, being largest at small HH where the localization error imitates anti-persistence, so a single ensemble-averaged error bar would be too large in some parts of a trajectory and too small in others.

The second reason is that a calibration factor cannot be transferred. Any factor would have to be fitted on simulated windows drawn from the training distribution, that is, on FBM with a particular range of DD, of Δt\Delta t, and of the SNR. Experimental trajectories are not drawn from that distribution. Applying a factor fitted on synthetic FBM to endosomes or to tracers in a gel would replace an uncertainty which is at least internally consistent with the model by one which has been adjusted using data of a different kind. We prefer to report the uncertainty which follows from the FBM likelihood and to test it separately.

The third reason is that the coverage of the uncertainties is itself a useful diagnostic, and rescaling would remove it. In our previous work we compared the NN predictions with the tMSD analysis, which assumes no anomalous diffusion model, to check that FBM was an appropriate description of the data. The coverage plays the same role here. If the true value falls inside θ^±1.96σθ\hat{\theta} \pm1.96\sigma_{\theta} for close to 95% of windows, the FBM model with a static localization error describes the data; if the coverage is much smaller, either the model is wrong, or the trajectories lie outside the range on which the network was trained. A calibration factor chosen to force the coverage to 95% would conceal exactly the discrepancy which we want to detect. We therefore compute the coverage independently, with a separate analysis script, and report it alongside the MAE rather than using it to adjust the network.

We employ a Physics-informed Neural Network (PINN) with a Cerberus architecture that learns the spatio-temporal features directly from the displacements of trajectory data. A schematic diagram is illustrated in Figure 1. We use the PINN to estimate the Hurst exponent HH, related to the anomalous exponent of the MSD by H=α/2H = \alpha/2, ⟨r2(t)⟩=2dDt2H\langle r^2(t) \rangle= 2dDt^{2H} (where dd is the number of spatial dimensions, which we have considered d=3d = 3 in the following), the generalized diffusion coefficient DD and the static localization error σloc\sigma_{\mathrm{loc}} from short three-dimensional windows of a single trajectory. σloc\sigma_{\mathrm{loc}} is well defined in the literature [30, 39] and represents the finite time-independent uncertainty (static localization error) on measuring the position of particles in an optical microscope. In contrast to our previous tandem approach [26], where the estimate of HH is passed from H-LSTM to a second D-LSTM network, here a single PINN estimates HH and log⁡D\log D simultaneously and returns uncertainties in the form of standard deviations, σH\sigma_H and σlog⁡D\sigma_{\log D}.

To assess whether estimators of anomalous exponent and diffusion coefficient are trustworthy, we simulated a set of FBM trajectories of duration TT with constant Hurst exponents 0<H<10 < H < 1 and generalized diffusion coefficients in the range of log⁡D∈(−5,1)\log D \in(-5,1). The predictive capabilities of neural networks depend heavily on the available information. For example, the duration of the trajectories (TT) is important as well as the amount of measurement noise. Since our ultimate goal is to quantify heterogeneous trajectories whose properties change over time using fixed TT trajectories combined with a rolling window, we start with a minimum duration of T=20T = 20 time points and with the small Gaussian measurement noise added to trajectories with a fixed signal-to-noise ratio (SNR). Together with the 0.02 second time increment used to generate FBM trajectories, this corresponds to 0.4 second trajectories. We will later show how the NN predictions, their error, and calibration depend on TT and on the signal-to-noise ratio.

The performance of the PINN to predict the Hurst exponent for short 20 time-point FBM trajectories is illustrated in Fig. S1(A). The dense concentration of points along the identity line indicates that the network successfully captures the relationship between particle trajectories and the underlying Hurst exponent across the entire interval 0<H<10 < H < 1. The colour scale, representing the absolute prediction error ∣Hpred−Htheor∣|H_{\mathrm{pred}} - H_{\mathrm{theor}}|, reveals that most trajectories are predicted with only small deviations from the true value. Quantitatively, this visual impression is confirmed by the low Mean Absolute Error (MAE = 0.058) and root-mean-square error (RMSE = 0.07). The histogram of the signed residuals in Fig. S1(B) is centred very close to zero and is well approximated by a Gaussian distribution having the same mean and variance. This confirms that the estimator is essentially unbiased and that its errors are dominated by random fluctuations rather than systematic offsets. Fig. S1(C) shows a monotonic decrease of the mean prediction error as a function of the true Hurst exponent. For strongly

Performance of the neural-network estimator for predicting the Hurst exponent and generalised diffusion coefficient

Figure S1. Fig. S1. Performance of the neural-network estimator for predicting the Hurst exponent HH and generalised diffusion coefficient DD from very short simulated FBM trajectories of 20 time points (19 displacements with Δt=0.02\Delta t = 0.02 s per frame) with constant HH, constant D∈(10−5,1)D \in(10^{-5}, 1), motion blur (dynamical error) and static measurement error with SNR=20. (A, E) Scatter plot of the predicted Hurst exponent, HpredH_{\mathrm{pred}} and generalised diffusion coefficient log⁡Dpred\log D_{\mathrm{pred}}, against the ground-truth values, HtheorH_{\mathrm{theor}} and DtheorD_{\mathrm{theor}}. The black diagonal denotes the ideal predictions. The colour scales represent the absolute prediction errors. (B, F) Distributions of the signed prediction errors. The histograms are compared with a zero-mean Gaussian having the same variance (red solid lines). (C, D) Mean prediction bias stratified by the true values. For each interval of values, the marker denotes the mean prediction error, and the error bars represent one standard deviation. (D, H) Distributions of predicted standard deviations σH\sigma_H and σD\sigma_D. Assessment of uncertainty calibration and reliability for variables HH and DD (I, J, K) (continued on next page).

Image not extracted

Figure S1 (continued). Fig. S1. (Continued) (I) Coverage reliability diagram demonstrating empirical coverage against the standard deviation multiplier, kk (×σ\sigma). (J) Reliability plot comparing normalized RMSE to RMV to evaluate variance calibration. (K) Conditional coverage for k=1k = 1, evaluated across 10 bins compared against the ideal target of 68.27%. (L) Histogram of the true parameter space. (M) Corresponding 3D histogram of the network’s estimated parameters. (N) Joint error distribution residuals. The cyan line highlights the principal axis of the strongly correlated error landscape.

subdiffusive trajectories, the network tends to slightly overestimate HH, whereas for strongly superdiffusive trajectories it slightly underestimates it. Importantly, the magnitude of this systematic bias remains small throughout the entire range of HH and is considerably smaller than the intrinsic prediction uncertainty represented by the standard deviations within each bin. Fig. S1(D) shows the distribution of Hurst exponent error σH\sigma_H reported by the PINN.

The performance of the PINN to predict the generalised diffusion coefficient for short 20 time-point FBM trajectories is illustrated in Fig. S1(E). Because DD spans multiple orders of magnitude, the network evaluates the target in logarithmic space. The dense concentration of points along the identity line demonstrates the network’s strong predictive capability across the entire evaluated range. Quantitatively, this is supported by the low Mean Absolute Error (MAE = 0.53), root-mean-square error (RMSE = 0.3), and the negligible mean bias (-0.02). The histogram of the signed residuals in Fig. S1(F), defined as log⁡Dpred−log⁡Dtheor\log D_{\mathrm{pred}} - \log D_{\mathrm{theor}}, is centred close to zero and is well approximated by a Gaussian distribution having the same mean and variance. This confirms that the estimator is essentially unbiased in logarithmic space, with errors dominated by random fluctuations rather than systematic offsets. In contrast to the Hurst exponent predictions, Fig. S1(G) shows no systematic bias in the mean prediction error as a function of the true diffusion coefficient. The mean error profile remains flat and close to zero across all bins, and the intrinsic prediction uncertainty remains remarkably stable regardless of the magnitude of DD. The distribution of standard deviations of predicted diffusion coefficients is shown in Fig. S1(H).

The main question is how reliable and calibrated the network’s outputs are. Fig. S1(I-K) demonstrates that both Hurst exponent HH and diffusion coefficient DD achieve excellent global calibration. By looking at the coverage in Fig. S1(I), which represents the empirical proportion of true observation values that fall within a predicted uncertainty interval defined by a standard deviation multiplier (kk), we find that both variables closely track the ideal coverage reliability curve. Because their empirical coverage closely matches the ideal expectation, both variables exhibit exceptionally low Expected Calibration Error (ECE), which quantifies the average absolute difference between the observed empirical coverage and the theoretical confidence level across all evaluated intervals. HH achieves an ECE of 0.009, and DD achieves 0.008. This strong global performance is confirmed by Fig. S1(J), where both HH and DD points fall tightly along the perfect calibration diagonal. This alignment results in low Expected Normalized Calibration Error (ENCE) that assesses variance calibration by measuring the average relative difference between the actual prediction error (RMSE) and the predicted uncertainty (RMV) across sorted bins, yielding 5.2% for HH and 6.1% for DD. Fig. S1(K) shows that DD maintains stable, with consistent coverage near the 68.27% target (representing an ideal 1σ\sigma interval) across all true value bins, while HH experiences severe under-coverage at the extreme ends of the distribution (bins 1 and 10). This indicates that HH is well-calibrated on average and its uncertainty estimates become overly confident and unreliable at the extreme boundaries of the data space, whereas DD remains robust throughout.

The global fidelity of the PINN in reconstructing the joint parameter space for short T=20T = 20 time-point FBM trajectories is qualitatively illustrated by comparing the true parameter plane in Fig. S1(L) with the estimated parameter plane in Fig. S1(M). The macroscopic similarity between the two distributions confirms that the estimator faithfully reproduces the underlying bivariate parameter space without introducing severe large-scale distortions or collapsing the variance of the predictions. However, examining the joint error distribution in Fig. S1(N) reveals a critical dependency between the estimation errors of the two individual parameters. The 2D density plot of the residuals, ΔH\Delta H and Δlog⁡D\Delta\log D, exhibits a pronounced diagonal elongation. This strong positive correlation, highlighted by the cyan trend line, indicates that the network’s prediction errors are strongly coupled: an overestimation of the Hurst exponent systematically drives an overestimation of the generalised diffusion coefficient, and vice versa. This inherent degeneracy reflects a fundamental physical ambiguity in short-trajectory characterisation, wherein an increased estimated scaling exponent HH requires a corresponding compensatory increase in the diffusion amplitude DD to adequately map to the observed trajectory fluctuations.

PINN performance as a function of trajectory length and measurement noise

The performance scaling of the PINN estimator with respect to trajectory length is shown in figures S2 and S3. It demonstrates a monotonic improvement in predictive reliability as the trajectory duration TT increases from 20 to 100 time points. While the model successfully captures the overall Hurst exponent trend at highly constrained lengths (e.g., T=20T = 20), the predictions naturally exhibit a wider variance around the theoretical ground truth. Extending the trajectory length rapidly resolves this dispersion, visibly tightening the prediction spread and elevating the coefficient of determination (R2R^2) to 0.98 by T=100T = 100. Furthermore, an analysis of the signed prediction errors confirms the model remains exceptionally well-calibrated; the error distributions center symmetrically at zero and sharpen significantly as more temporal data is introduced. Crucially, the estimator maintains a stable, near-zero bias profile across the entire functional range of HH, indicating that the network generalizes effectively without severe boundary degradation, even when processing highly abbreviated FBM sequences.

The robustness of the PINN estimator to measurement noise is shown in Figure S4. Fixing the trajectory length to just T=20T = 20 time points, the estimator exhibits strong noise resilience in moderate noise regimes. Prediction accuracy, error variance, and overall model calibration remain remarkably stable down to an SNR of 5, maintaining a coefficient of determination (R2R^2) above 0.92. At extreme noise thresholds (SNR of 2 or lower), structural degradation in predictive performance becomes evident. In these highly corrupted signal environments, the model begins to systematically underestimate the true Hurst exponent, manifesting as a pronounced negative bias that becomes increasingly severe at higher theoretical HH values.

Performance of the PINN estimator for predicting the Hurst exponent from simulated FBM trajectories with different Signal-to-Noise Ratios

Figure S4. Performance of the PINN estimator for predicting the Hurst exponent HH from simulated FBM trajectories with different Signal-to-Noise Ratios (SNR). Trajectories of durations T=20T = 20 time points (19 increments) were simulated with dt=0.02dt = 0.02, constant uniform H∈(0.04,0.96)H \in(0.04,0.96), constant uniform log⁡D∈(−5,1)\log D \in(-5,1) and SNR = 20, 10, 5, 2, and 1. (a1)–(a5) Density scatter plots comparing the predicted Hurst exponent (HpredH_{\mathrm{pred}}) against the theoretical ground truth (HtheorH_{\mathrm{theor}}). The SNR is given in the title of each panel. The colormap indicates the absolute prediction error, ∣Hpred−Htheor∣\lvert H_{\mathrm{pred}} - H_{\mathrm{theor}}\rvert. (b) Bias profile illustrating the mean signed error (Hpred−HtheorH_{\mathrm{pred}} - H_{\mathrm{theor}}) as a function of the theoretical Hurst exponent across different trajectory durations. Error bars represent one standard deviation, highlighting the reduction in variance as TT increases.(c) Probability density functions (PDF) of the signed prediction errors. The distributions become progressively narrower and more sharply peaked at zero for longer trajectories, confirming improved model calibration. (d) Headline accuracy metrics plotted against trajectory duration TT. Mean Absolute Error (MAE, blue circles) and RMSE (orange squares) correspond to the left y-axis, demonstrating a steady decay in error. The corresponding rise in R2R^2 (green triangles) is tracked on the right y-axis.

The effective diffusion coefficient DeffD_{\mathrm{eff}}}

As in the main text, log denotes log⁡10\log_{10}, and logarithms of dimensional quantities refer to their numerical values in μm and s.

Why DD is a poor measure of amplitude

For anomalous diffusion the mean squared displacement grows as

⟨r2(t)⟩=2dDtα,α=2H for fractional Brownian motion (FBM).(19)\langle r^2(t) \rangle= 2dDt^\alpha, \qquad\alpha= 2H \text{ for fractional Brownian motion (FBM).} \tag*{(19)}

Two quantities are mixed in this expression: how strongly the particle moves, and how much its motion remembers the past. The mixing shows up first in the units. DD is measured in L2 T−2H\mathrm{L}^2\,\mathrm{T}^{-2H}, so two cells with different HH have diffusion coefficients that cannot be compared, much as a velocity cannot be compared with an acceleration. Changing the time unit by a factor cc shifts log⁡D\log D by 2Hlog⁡c2H\log c, a different amount for every cell.

Comparison of predicted and true generalised diffusion coefficients across trajectory durations

Figure S3. Same as in Figure S2, but for generalised diffusion coefficient.

Performance of the PINN estimator for predicting the Hurst exponent from simulated FBM trajectories

Figure S2. Performance of the PINN estimator for predicting the Hurst exponent HH from simulated FBM trajectories of varying durations T=20,40,60,80T = 20,40,60,80, and 100 time points (T−1T - 1 increments). Trajectories were simulated with dt=0.02dt = 0.02, constant uniform H∈(0.04,0.96)H \in(0.04,0.96), constant uniform log⁡D∈(−5,1)\log D \in(-5,1) and SNR=20. (a1)–(a5) Density scatter plots comparing the predicted Hurst exponent (HpredH_{\mathrm{pred}}) against the theoretical ground truth (HtheorH_{\mathrm{theor}}). The colormap indicates the absolute prediction error, ∣Hpred−Htheor∣\lvert H_{\mathrm{pred}} - H_{\mathrm{theor}}\rvert. (b) Bias profile illustrating the mean signed error (Hpred−HtheorH_{\mathrm{pred}} - H_{\mathrm{theor}}) as a function of the theoretical Hurst exponent across different trajectory durations. Error bars represent one standard deviation, highlighting the reduction in variance as TT increases.(c) Probability density functions (PDF) of the signed prediction errors. The distributions become progressively narrower and more sharply peaked at zero for longer trajectories, confirming improved model calibration. (d) Headline accuracy metrics plotted against trajectory duration TT. Mean Absolute Error (MAE, blue circles) and RMSE (orange squares) correspond to the left y-axis, demonstrating a steady decay in error. The corresponding rise in R2R^2 (green triangles) is tracked on the right y-axis.

The mixing shows up again in the errors. A short window measures the typical size of a step very well, because every step samples it. It measures the exponent much less well, because that requires following how displacements grow over a narrow range of lags, about 1.3 decades for twenty frames, with the longest lags represented by only a few overlapping displacements. The data therefore pin the MSD near the frame lag but leave its slope loose. An error in HH rotates the fitted MSD, on log–log axes, about a pivot lag τ∗\tau^{*}, and DD adjusts to keep the curve through the pinned point:

δlog⁡D≃−2log⁡τ∗ δH.(20)\delta\log D \simeq-2\log\tau^{*}\,\delta H. \tag*{(20)}

The sign of this correlation depends only on whether τ∗\tau^{*} is shorter or longer than the unit of time. With τ∗≃0.5Δt\tau^{*} \simeq0.5\Delta t (derived below), it predicts slopes of +4.0+4.0 dex per unit HH at Δt=0.02\Delta t = 0.02 s and −1.8-1.8 dex at Δt=17\Delta t = 17 s, as observed (Figure 2 in the main text). The correlation is a property of the measurement, not of the particle. What we need is an amplitude that has the same units for every trajectory, that does not inherit the error of HH, and whose meaning does not depend on a particular model.

Memory and fresh randomness

The motion with memory can be pictured as a Langevin equation. Each step is the sum of a part predictable from the preceding steps and a fresh random kick that the past cannot anticipate. For a persistent cell the predictable part is the tendency to keep going in the same direction; for an antipersistent one it is the tendency to turn back. The kicks are the genuinely new randomness of the motion, and their strength is the natural analogue of a temperature: a thermometer should respond to fluctuations, not to a cell that simply keeps moving straight.

To make this quantitative, consider NN consecutive steps of one coordinate, Δx1,…,ΔxN\Delta x_1,\ldots,\Delta x_N, sampled at interval Δt\Delta t, with covariance matrix Σ\Sigma. Let Δx^k\widehat{\Delta x}_k be the best linear prediction of the kk-th step from the k−1k-1 steps before it (for Gaussian motion, its conditional mean), and let

vk=Var⁡(Δxk−Δx^k),k=1,…,N,(21)v_k = \operatorname{Var}(\Delta x_k-\widehat{\Delta x}_k), \qquad k=1,\ldots,N, \tag*{(21)}

be the variance of what remains unpredicted, the innovation. The first step has nothing to be predicted from, so v1v_1 is the full step variance; each later vkv_k is smaller whenever the steps are correlated, and measures the strength of the kk-th fresh kick. A standard result of time-series analysis, the prediction-error decomposition of the Gaussian likelihood [45, 46], is that these

Generalised diffusion coefficient results

Figure S5. Same as in Figure S4, but for the generalised diffusion coefficient.

variances multiply to the determinant of the covariance,

det⁡Σ=∏k=1Nvk.(22)\det\Sigma= \prod_{k=1}^{N} v_k. \tag*{(22)}

We therefore define the effective diffusion coefficient as the diffusivity of the kicks,

Deff=(det⁡Σ)1/N2Δt=12Δt(∏k=1Nvk)1/N.(23)D_{\mathrm{eff}} = \frac{(\det\Sigma)^{1/N}}{2\Delta t} = \frac{1}{2\Delta t}\left(\prod_{k=1}^{N} v_k\right)^{1/N}. \tag*{(23)}

For normal diffusion every step is a pure kick: the steps are uncorrelated, each vkv_k equals the step variance 2DΔt2D\Delta t, and Deff=DD_{\mathrm{eff}}=D. With memory, part of every step is predictable, and DeffD_{\mathrm{eff}} is smaller than the apparent diffusivity Dapp=⟨∣Δr(Δt)∣2⟩/(2dΔt)D_{\mathrm{app}}=\langle|\Delta r(\Delta t)|^2\rangle/(2d\Delta t) built from the raw step size. This holds for persistent and antipersistent motion alike. DeffD_{\mathrm{eff}} is measured in L2T−1\mathrm{L}^2\mathrm{T}^{-1} for every process, so a change of time unit rescales all values by the same factor and leaves the width and shape of their distribution unchanged.

The definition requires only that the step covariance exists, i.e. finite second moments; the factorisation of Eq. (22) holds for any covariance matrix. For processes with stationary increments, such as FBM, the covariance depends only on the separation between steps and can be estimated by averaging along a trajectory. For processes that age, such as continuous-time random walks or scaled Brownian motion, the covariance depends on when the steps are taken, time averages along a trajectory no longer estimate it, and Σjk=⟨ΔxjΔxk⟩\Sigma_{jk}=\langle\Delta x_j\Delta x_k\rangle must instead be averaged over many trajectories at the same times since a common origin; DeffD_{\mathrm{eff}} then depends on that time. For non-Gaussian motion the kicks are defined by the best linear prediction, and the interpretation holds at the level of variances. In all cases DeffD_{\mathrm{eff}} measures how much unpredictability the motion generates per unit time.

Fractional Brownian motion

For FBM the step covariance is an amplitude multiplied by a correlation matrix that depends only on the memory,

Σ=2DΔt2HR(H),(24)\Sigma= 2D\Delta t^{2H}R(H), \tag*{(24)}

where R(H)R(H) is the correlation matrix of fractional Gaussian noise. The effective diffusion coefficient then takes the closed form

Deff=DΔt2H−1[det⁡R(H)]1/N=Dapp(Δt)f(H).(25)D_{\mathrm{eff}} = D\Delta t^{2H-1}\left[\det R(H)\right]^{1/N} = D_{\mathrm{app}}(\Delta t)f(H). \tag*{(25)}

The factor f(H)=[det⁡R(H)]1/Nf(H) = [\det R(H)]^{1/N} is the average fraction of a step that the preceding steps cannot predict: 1 for Brownian motion, 0.96 at H=0.63H = 0.63 and 0.76 at H=0.78H = 0.78 for N=19N = 19. For a strongly persistent cell, about a quarter of each step is therefore inherited from its recent path, and DeffD_{\mathrm{eff}} counts only the remaining three quarters.

The same factor explains why DeffD_{\mathrm{eff}} removes the ridge of Eq. (20). How strongly the step correlations, and hence ff, change with HH determines how much information about HH comes from the correlations rather than from the step size, and this places the pivot at

log⁡τ∗(H)Δt=12Ndlog⁡det⁡R(H)dH.(26)\log\frac{\tau^{*}(H)}{\Delta t} = \frac{1}{2N}\frac{d\log\det R(H)}{dH}. \tag*{(26)}

For Brownian motion the steps are uncorrelated and the pivot sits at the frame lag. For persistent motion stronger correlations pull it below Δt\Delta t, and for antipersistent motion they push it above: for N=19N = 19, τ∗/Δt=1.46\tau^{*}/\Delta t = 1.46, 1.00, 0.49 and 0.22 at H=0.3H = 0.3, 0.5, 0.7 and 0.8. The ratio measured on simulated windows with H=0.7H = 0.7, 0.51±0.010.51 \pm0.01, is the same from Δt=0.02\Delta t = 0.02 to 17 s and within 4% of the prediction. Writing log⁡Deff=log⁡D+g(H)\log D_{\mathrm{eff}} = \log D + g(H), the slope of the correction is exactly g′(H)=2log⁡τ∗(H)g'(H) = 2\log\tau^{*}(H): converting DD into DeffD_{\mathrm{eff}} re-expresses the amplitude at the lag about which an error in HH rotates the fitted MSD, so that errors in HH no longer propagate into the amplitude. Reporting DD at one fixed reference lag instead removes the ridge only for the single value of HH whose pivot coincides with that lag; the apparent diffusivity DappD_{\mathrm{app}}, the choice Δt\Delta t, works only for Brownian motion. This separation of amplitude from memory is the finite-window counterpart of a known result for stationary processes, in which the innovation variance is asymptotically independent of the parameters that shape the correlations [47, 48].

What DeffD_{\mathrm{eff}} is not

DeffD_{\mathrm{eff}} describes the motion at the scale at which it is observed, not the medium. It is not the prefactor of the mean squared displacement, which at any lag is

⟨∣Δr(t)∣2⟩=2dDt2H=2dDeffΔtf(H)(tΔt)2H.(27)\langle|\Delta\mathbf{r}(t)|^2 \rangle= 2dDt^{2H} = 2d\frac{D_{\mathrm{eff}}\Delta t}{f(H)}\left(\frac{t}{\Delta t}\right)^{2H}. \tag*{(27)}

Material properties defined through the MSD must therefore be computed from DD, or from DeffD_{\mathrm{eff}} after division by f(H)f(H). For a passive probe of radius aa in thermal equilibrium, for example, the generalized Stokes–Einstein relation gives the creep compliance J(t)=(6πa/kBT)Dt2HJ(t) = (6\pi a/k_{\mathrm{B}}T)Dt^{2H}, which reduces to J=t/ηJ = t/\eta in a Newtonian fluid. Hemocytes are active, so no such relation applies to them: their DeffD_{\mathrm{eff}} defines an effective temperature only through Teff=γDeff/kBT_{\mathrm{eff}} = \gamma D_{\mathrm{eff}}/k_{\mathrm{B}}, and only relative changes are meaningful while the friction γ\gamma stays constant (main text). Finally, for a self-similar process no diffusivity in L2T−1L^2 T^{-1} can be free of a time scale: DeffD_{\mathrm{eff}} is defined at the frame interval, scales as Δt2H−1\Delta t^{2H-1}, and depends weakly on the window length. Comparisons with experiments at other frame rates must go back to DD, which reintroduces the uncertainty of HH.

Measuring DeffD_{\mathrm{eff}}

For the hemocyte data, each track is divided into overlapping windows of 20 positions (N=19N = 19, Δt=17.6 s\Delta t = 17.6\ \mathrm{s}). For each window the network returns HH and DD, and

log⁡Deff=log⁡D+(2H−1)log⁡Δt+1Nlog⁡det⁡R(H),(28)\log D_{\mathrm{eff}} = \log D + (2H - 1)\log\Delta t + \frac{1}{N}\log\det R(H), \tag*{(28)}

with log⁡det⁡R(H)\log\det R(H) tabulated once on a fine grid of HH. For example, H=0.7H = 0.7 and D=0.02 μm2s−1.4D = 0.02\ \mu\mathrm{m}^2\mathrm{s}^{-1.4} give Deff≈0.056 μm2s−1D_{\mathrm{eff}} \approx0.056\ \mu\mathrm{m}^2\mathrm{s}^{-1}. Because the network does not report how its errors in HH and log⁡D\log D covary, the uncertainty of log⁡Deff\log D_{\mathrm{eff}} was measured on simulated windows at the hemocyte frame interval (Methods). It is 0.0800.080–0.0920.092 dex over the whole range of HH, whereas the errors of HH and log⁡D\log D are correlated with coefficient −0.8-0.8 to −0.9-0.9: the decoupling expected from the pivot argument holds for the trained network. For time courses, the window values are combined within each track and 176 s bin, and the median over tracks is reported with a 95% bootstrap interval. Since every window uses the same Δt\Delta t and NN, values of DeffD_{\mathrm{eff}} are directly comparable across developmental time and between genotypes.

Supplementary figures

A comparison of behaviour or diffusion coefficients with effective diffusion coefficients in Figure 4(A,B).

Diffusivity and Hurst exponent over time

Figure S6. (A) Diffusivity DD and (B) Hurst exponent HH, in 176 s bins (10 frames) of the time since the start of imaging. Symbol shape encodes genotype: control (circles), LanB1-deficient (squares) and collagen-deficient (triangles) embryos. Filled symbols, continuous six-movie recordings of control and LanB1-deficient embryos; each point is the median over tracks with a 95% bootstrap interval (shaded). Open symbols, mean over independent recordings: control (n=7n = 7) and LanB1Df (n=4n = 4), each spanning movies 1-2, and collagen mutant (n=4n = 4), two recordings spanning movies 1-2 and two spanning movies 2-3. Each open point is the mean of the per-recording medians, with a 95% interval from a two-level bootstrap over recordings and over tracks within each recording. A bin is shown when at least 2 recordings contribute, each with at least 5 tracks. Dotted line in (B), Brownian motion, H=0.5H = 0.5. Estimates come from 20-position windows (Δt=17.6\Delta t = 17.6 s). Symbols are drawn every second bin.

References

  1. [1]Wood, W. & Jacinto, A. Drosophila melanogaster embryonic haemocytes: masters of multitasking. Nat. Rev. Mol. Cell Biol. 8, 542–551 (2007).pubmed.ncbi.nlm.nih.gov/17565363
  2. [2]Stramer, B. et al. Live imaging of wound inflammation in drosophila embryos reveals key roles for small gtpases during in vivo cell migration. The J. cell biology 168, 567–573 (2005).pubmed.ncbi.nlm.nih.gov/15699212
  3. [3]Evans, I. R. & Wood, W. Drosophila blood cell chemotaxis. Curr. opinion cell biology 30, 1–8 (2014).DOI
  4. [4]Matsubayashi, Y. et al. A moving source of matrix components is essential for de novo basement membrane formation. Curr. Biol. 27, 3526–3534 (2017).DOI
  5. [5]Sanchez-Sanchez, B. J. et al. Drosophila embryonic hemocytes produce laminins to strengthen migratory response. Cell reports 21, 1461–1470 (2017).
  6. [6]Klages, R., Radons, G. & Sokolov, I. M. Anomalous transport (Wiley Online Library, 2008).
  7. [7]Berg, H. C. & Brown, D. A. Chemotaxis in escherichia coli analysed by three-dimensional tracking. nature 239, 500–504 (1972).pubmed.ncbi.nlm.nih.gov/4563019
  8. [8]Waigh, T. A. The Physics of Bacteria: From Cells to Biofilms (Cambridge University Press, 2024).DOI
  9. [9]Harris, T. H. et al. Generalized lévy walks and the role of chemokines in migration of effector cd8+ t cells. Nature 486, 545–548 (2012).DOI
  10. [10]Bénichou, O., Loverdo, C., Moreau, M. & Voituriez, R. Intermittent search strategies. Rev. Mod. Phys. 83, 81–129 (2011).
  11. [11]Viswanathan, G. M. et al. Optimizing the success of random searches. nature 401, 911–914 (1999).pubmed.ncbi.nlm.nih.gov/10553906
  12. [12]Kirkpatrick, S., Gelatt Jr, C. D. & Vecchi, M. P. Optimization by simulated annealing. science 220, 671–680 (1983).
  13. [13]Geman, S. & Geman, D. Stochastic relaxation, gibbs distributions, and the bayesian restoration of images. IEEE Transactions on pattern analysis machine intelligence 721–741 (1984).
  14. [14]Waigh, T. A. The Physics of Living Processes: A Mesoscopic Approach (Wiley, Chichester, 2014).
  15. [15]Selmeczi, D., Mosler, S., Hagedorn, P. H., Larsen, N. B. & Flyvbjerg, H. Cell motility as persistent random motion: theories from experiments. Biophys. journal 89, 912–931 (2005).pubmed.ncbi.nlm.nih.gov/15951372
  16. [16]McCann, C. P., Kriebel, P. W., Parent, C. A. & Losert, W. Cell speed, persistence and information transmission during signal relay and collective migration. J. cell science 123, 1724–1731 (2010).DOI
  17. [17]Dieterich, P., Klages, R., Preuss, R. & Schwab, A. Anomalous dynamics of cell migration. Proc. Natl. Acad. Sci. 105, 459–463 (2008).DOI
  18. [18]Wu, P.-H., Giri, A., Sun, S. X. & Wirtz, D. Three-dimensional cell migration does not follow a random walk. Proc. Natl. Acad. Sci. 111, 3949–3954 (2014).DOI
  19. [19]Maiuri, P. et al. Actin flows mediate a universal coupling between cell speed and cell persistence. Cell 161, 374–386 (2015).DOI
  20. [20]Gorelik, R. & Gautreau, A. Quantitative and unbiased analysis of directional persistence in cell migration. Nat. protocols 9, 1931–1943 (2014).DOI
  21. [21]Metzler, R. & Klafter, J. The restaurant at the end of the random walk: recent developments in the description of anomalous transport by fractional dynamics. J. Phys. A: Math. Gen. 37, R161 (2004).DOI
  22. [22]Metzler, R., Jeon, J.-H., Cherstvy, A. G. & Barkai, E. Anomalous diffusion models and their properties: non-stationarity, non-ergodicity, and ageing at the centenary of single particle tracking. Phys. Chem. Chem. Phys. 16, 24128–24164 (2014).DOI
  23. [23]Waigh, T. A. & Korabel, N. Heterogeneous anomalous transport in cellular and molecular biology. Reports on Prog. Phys. 86, 126601 (2023).arxiv.org/abs/2310.09950
  24. [24]Korabel, N. et al. Hemocytes in drosophila melanogaster embryos move via heterogeneous anomalous diffusion. Commun. physics 5, 269 (2022).DOI
  25. [25]Han, D. et al. Deciphering anomalous heterogeneous intracellular transport with neural networks. Elife 9, e52224 (2020).DOI
  26. [26]Korabel, N. & Waigh, T. A. Deep learning for heterogeneous anomalous dynamics in cellular and molecular biology. Cell Reports Phys. Sci. 6 (2025).
  27. [27]Seckler, H. & Metzler, R. Bayesian deep learning for error estimation in the analysis of anomalous diffusion. Nat. Commun. 13, 6717 (2022).DOI
  28. [28]Lanoiselée, Y., Pagnini, G. & Wyłomańska, A. Super-resolved anomalous diffusion: Deciphering the joint distribution of anomalous exponent and diffusion coefficient. Phys. Rev. Lett. 135, 137101 (2025).DOI
  29. [29]Han, D. S., Ananthanarayanan, V. & Simpson, M. J. Maximum likelihood, neural networks and posterior mean for inferring fractional Brownian motion parameters. arXiv preprint arXiv:2610.19888 (2026).arxiv.org/abs/2610.19888
  30. [30]Backlund, M. P., Joyner, R. & Moerner, W. E. Chromosomal locus tracking with proper accounting of static and dynamic errors. Phys. Rev. E 91, 062716 (2015).pubmed.ncbi.nlm.nih.gov/26172745
  31. [31]Urbano, J. M. et al. Drosophila laminins act as key regulators of basement membrane assembly and morphogenesis. Development 136, 4165–4176 (2009).DOI
  32. [32]Zabihihesari, A., Parand, S. & Rezai, P. Pdms-based microfluidic capillary pressure-driven viscometry and application to drosophila melanogaster’s hemolymph. Microfluid. Nanofluidics 27, 8 (2023).DOI
  33. [33]Doubrovinski, K., Swan, M., Polyakov, O. & Wieschaus, E. F. Measurement of cortical elasticity in drosophila melanogaster embryos using ferrofluids. Proc. Natl. Acad. Sci. 114, 1051–1056 (2017).DOI
  34. [34]Kiehart, D. P., Galbraith, C. G., Edwards, K. A., Rickoll, W. L. & Montague, R. A. Multiple forces contribute to cell sheet morphogenesis for dorsal closure in drosophila. The J. cell biology 149, 471–490 (2000).pubmed.ncbi.nlm.nih.gov/10769037
  35. [35]Alon, U. An introduction to systems biology: design principles of biological circuits (CRC press, 2019).
  36. [36]Berglund, A. J. Statistics of camera-based single-particle tracking. Phys. Rev. E-Statistical, Nonlinear, Soft Matter Phys. 82, 011917 (2010).pubmed.ncbi.nlm.nih.gov/20866658
  37. [37]Weber, S. C., Thompson, M. A., Moerner, W. E., Spakowitz, A. J. & Theriot, J. A. Analytical tools to distinguish the effects of localization error, confinement, and medium elasticity on the velocity autocorrelation function. Biophys. J. 102, 2443–2450 (2012).
  38. [38]Martin, D. S., Forstner, M. B. & Käs, J. A. Apparent subdiffusion inherent to single particle tracking. Biophys. journal 83, 2109–2117 (2002).pubmed.ncbi.nlm.nih.gov/12324428
  39. [39]Savin, T. & Doyle, P. S. Static and dynamic errors in particle tracking microrheology. Biophys. J. 88, 623–638 (2005).pubmed.ncbi.nlm.nih.gov/15533928
  40. [40]Vestergaard, C. L., Blainey, P. C. & Flyvbjerg, H. Optimal estimation of diffusion coefficients from single-particle trajectories. Phys. Rev. E 89, 022726 (2014).pubmed.ncbi.nlm.nih.gov/25353527
  41. [41]Michalet, X. Mean square displacement analysis of single-particle trajectories with localization error: Brownian motion in an isotropic medium. Phys. Rev. E 82, 041914, DOI: 10.1103/PhysRevE.82.041914 (2010).DOI
  42. [42]Michalet, X. & Berglund, A. J. Optimal diffusion coefficient estimation in single-particle tracking. Phys. Rev. E 85, 061916 (2012).
  43. [43]Burnecki, K., Kepten, E., Garini, Y., Sikora, G. & Weron, A. Estimating the anomalous diffusion exponent for single particle tracking data with measurement errors-an alternative approach. Sci. reports 5, 11306 (2015).DOI
  44. [44]Lanoiselée, Y., Sikora, G., Grzesiek, A., Grebenkov, D. S. & Wyłomańska, A. Optimal parameters for anomalous-diffusion-exponent estimation from noisy data. Phys. review E 98, 062139 (2018).DOI
  45. [45]Brockwell, P. J. & Davis, R. A. Time Series: Theory and Methods (Springer, New York, 1991), 2nd edn.
  46. [46]Hamilton, J. D. Time Series Analysis (Princeton University Press, Princeton, 1994).
  47. [47]Dahlhaus, R. Efficient parameter estimation for self-similar processes. Ann. Stat. 17, 1749–1766 (1989).
  48. [48]Beran, J. Statistics for Long-Memory Processes (Chapman & Hall, New York, 1994).

Paper details

vlnc:W_pf6xhq8w
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Agricultural and Biological Sciences

Claude Opus 4.8 (bare)

View statement
Looking for related papers…
Contents