## Abstract

Migration of cells can be characterized by two prototypical types of motion: individual and collective migration. We propose a statistical inference approach designed to detect the presence of cell-cell interactions that give rise to collective behaviors in cell motility experiments. This inference method has been first successfully tested on synthetic motional data and then applied to two experiments. In the first experiment, cells migrate in a wound-healing model: When applied to this experiment, the inference method predicts the existence of cell-cell interactions, correctly mirroring the strong intercellular contacts that are present in the experiment. In the second experiment, dendritic cells migrate in a chemokine gradient. Our inference analysis does not provide evidence for interactions, indicating that cells migrate by sensing independently the chemokine source. According to this prediction, we speculate that mature dendritic cells disregard intercellular signals that could otherwise delay their arrival to lymph vessels.

## INTRODUCTION

Cell migration is a dynamic process, which may be characterized by two prototypical kinds of motion: a collective motion in which cells communicate with each other, e.g., by means of biochemical or mechanical signals, and an individual motion, where each cell migrates independently (*1*, *2*). Among the notable examples of cell migration in pathological contexts are cancer cells during metastasis, where collective migration generally results from physical contacts between cells, which adhere to each other via specific adhesion molecules. Despite the fact that both individual and collective motions have been observed, for cancer cells, collective migration is believed to result in more efficient metastatic spreading (*3*, *4*).

On the other hand, immune cells do not exhibit cell-cell adhesion during migration: For these cells, the existence of physical cell-to-cell communication is induced by specific signaling pathways (*5*) and is restricted to slow migratory phases. This direct cell-to-cell communication allows immune cells to share pathogenic information or to coordinate the arrival of other cells (*6*, *7*), while it does not result in a collective motion. As a consequence, in the context of fast migration of immune cells, such cells have been suspected to migrate as single cells.

However, immune cells respond to a large variety of biochemical signals. They release cytokines, chemokines, and small molecules that control cell migration and may send signals to adjacent cells without the need of physical interactions (*7*, *8*). This paracrine signaling might constitute an alternative mechanism to achieve cell-to-cell communication, which, as shown in other cellular systems (*9*), may ultimately lead to cellular coordination. As a result, the existence of these signaling mechanisms raises the question of whether immune cells may ultimately migrate “collectively,” regardless of physical interactions.

Among the difficulties in answering this question is the fact that immune cells are often guided by extracellular signals produced by tissues (*10*): As a result, they may be exchanging biochemical signals with each other but still appear to migrate individually because they all move toward the same signal source. In addition, the number of potential molecules that could be responsible for cell-to-cell signaling is so large that molecular perturbation approaches could not rule out the existence of cell-to-cell communication through some of these molecules. Moreover, molecular perturbation approaches rely on an a priori knowledge of the signaling involved and/or the development of new experimental tools, which are, in general, both time consuming and expensive.

In this study, we propose a statistical inference method to overcome the issues mentioned above. Unlike the classical molecular perturbation approaches, our procedure is statistically rather than biologically driven and does not rely on any a priori knowledge of the biochemical interactions among the migrating cells. Instead, our method leverages the statistical information stored in empirical observations on cell motility, e.g., statistics of cells’ speeds and directions of motion (*11*, *12*). We designed this statistical inference method so as to take account of a variety of experimental sources of error that are specific to cell motility experiments, e.g., limited tracking resolution, missing trajectories, and tracking anomalies, and thus efficiently exploit the information contained in the cell-tracking data.

Given a set of data for a cell migration experiment, the resulting statistically inferred model allows one to single out cell-cell interactions. While the method cannot assess the nature of these interactions, e.g., the signaling protein that is responsible for it, it makes a clear prediction on the existence, or absence, of such interaction. In particular, the model allows us to tell apart a population of independent cells, which may appear to migrate collectively only because they all follow the same cue from a population that migrates in a truly collective manner.

We first tested the inference method on two benchmark datasets, i.e., synthetic cell trajectories generated from a mean-field model of interacting spins and from a non–mean-field model of self-propelled (SP) particles. In both cases, the method correctly reconstructs the microscopic features of the models, e.g., the spin-spin couplings, and the strength of the external signal to which the SP particles are subject.

Next, we applied the inference framework to two experiments: In the first, cells migrate toward a “wound” and physically interact with each other via cell-cell adhesion resulting from cellular crowding. The inference method predicts the existence of cell-cell interactions, and this prediction correctly reflects the presence of intercellular contacts in the experiment, thus yielding a proof of concept for our inference framework.

We then applied the inference method to a population of dendritic cells migrating in a chemokine gradient. Our inference analysis does not provide evidence for the existence of cell-cell interactions, indicating that dendritic cells migrate independently and sense only the chemokine source. This prediction is supported by an exhaustive analysis of the raw motional data, which indicates the absence of cell-cell correlations.

We then present the biological applications of our results and discuss how the absence of instantaneous cell-cell interactions detected by our inference method may constitute an indication of a strategy to efficiently trigger the immune response. Last, we discuss how our inference method may be applied to a wide variety of biological systems, where it could be used to reconstruct the maximum-entropy (ME) probability distribution while handling multiple sources of error.

## RESULTS

### ME methods

Here, we will describe the statistical inference method that we designed for the analysis of motional features of cell-tracking experiments. Given a dataset **X** = {*x*_{1}, ⋯, *x _{T}*} composed of multiple observations of a quantity

*x*, ME models provide a fundamental principle to model and reconstruct the probability distribution

*P*(

*x*) from a limited number of empirical observations, which would be too small to reconstruct such distribution directly from the data. Specifically, given a set of features

*f*

_{1}(

*x*),

*f*

_{2}(

*x*), ⋯ related to the observable

*x*, their experimental and model estimates are, respectively

The ME method then constructs *P* as the least-structured probability distribution that matches the experimental averages above. Given that the amount of “structure” in *P* is quantified by the entropy (*13*)*S*, the less structured *P*, the ME model is formulated in terms of the following constrained optimization problem

ME models have attracted growing interest in the past few years and have been used for a wide variety of domains and of biological systems. Notable examples are the inference of motional order in flocks of birds (*14*), collective behavior in networks of neurons (*15*, *16*), interaction structures resulting from amino acid sequences in protein families (*17*, *18*), and interaction structure of genetic networks (*19*).

In the specific problem under consideration in this study, the positions of *N* moving cells are imaged and tracked in time with a camera on a pixel grid (see Fig. 1). Given that the precision with which the cell position is determined cannot exceed the pixel size, at any instant of time *t*, every cell, labeled by index *i*, is assigned a nominal position **r*** _{i}*(

*t*), which coincides with the center of the pixel (see section S5 for details). The nominal cell positions

**r**

*(*

_{i}*t*) and

**r**

*(*

_{i}*t*+ Δ

*t*) at time

*t*and at a subsequent observation

*t*+ Δ

*t*, respectively, yield the velocity

**v**

*(*

_{i}*t*) = [

**r**

*(*

_{i}*t*+ Δ

*t*) − r

*(*

_{i}*t*)]/Δ

*t*, where we use boldface for vector quantities. We compute the direction of motion, i.e., the normalized velocity, of each cell at time

*t*

We then obtain the full set of motional directions of the population, **S*** _{t}* = {

**s**

_{1}(

*t*), ⋯,

**s**

*(*

_{N}*t*)}, which we regard as the empirical observations for the ME problem, i.e.,

*x*=

_{t}**S**

*(*

_{t}*14*). We select as features the average pairwise correlation and polarization

*N*≡

_{p}*N*(

*N*− 1)/2 is the number of cell pairs, and in the classical ME approach, the ME distribution is obtained by solving the optimization problem (Eqs. 4 to 6) (see section S1.1 for details).

We recall the fundamental difference between correlation, *C*, and cell-cell interaction, which will be denoted by *J* (*14*, *20*). A nonzero correlation does not necessarily imply a nonzero interaction—a population of cells attracted by an external source may display a nonzero correlation *C*, even if cells do not interact with each other. In this regard, the ME method allows one to extract cell-cell interactions, which are, in general, encoded in a nontrivial way in the motional data, e.g., correlation and polarization. If the resulting ME distribution factors out as the product of distribution of independent directions of motion, we obtain that cells behave independently; if not, we conclude that an interaction between cells exists. The feature choice (Eq. 9) sets the type of interaction that the ME method will probe. For instance, the experimental average 〈〉_{ex} of Eq. 9 involves directions of motion **s*** _{i}*(

*t*) ·

**s**

*(*

_{j}*t*) of cells

*i*and

*j*evaluated at the same instant of time

*t*: It follows that the resulting cell-cell interaction inferred by the ME model will necessarily be an instantaneous one, i.e., its propagation time is much shorter than all other time scales (

*15*). Alternative types of interactions could be probed by choosing other features, e.g., by introducing a lag between times at which

**s**

*and*

_{i}**s**

*are evaluated.*

_{j}Despite its wide use in a variety of systems, the ME method above may suffer from a fundamental limitation when applied to data affected by strong uncertainties (*14*, *15*, *18*). If the empirical data contain significant errors or a limited amount of information, complete satisfaction of the equality constraint is known to be too strict a criterion and may lead to data overfitting (*21*, *22*). A prototypical example of this issue comes from ME models for language modeling (*22*), where the observations *x* = (*w*, *w*′) are pairs of consecutive words, *w* and *w*′, in a corpus of text, which constitutes the dataset *X*. Given two words, e.g., “saint” and “George,” we consider as features the frequency with which George occurs in the text *P*(*w*, George) = 0 if *w* ≠ ‘ saint^{′}. These zero-frequency events in the ME model may not only cause numerical instability in ME estimation (*21*) but also result in poor performance of the ME model in a variety of applications, e.g., text recognition, where any word pair (*w*, George) in which *w* ≠ ‘ saint^{′} would not be recognized as a bigram.

The effect of data uncertainties may be even more dramatic in cell-tracking experiments. As shown in Fig. 1, if the cell motion is slow compared to the rate at which the observations are collected, the nominal position **r**(*t* + Δ*t*) at time *t* + Δ*t* may coincide with **r**(*t*), and the direction of motion (Eq. 7) is not defined. As a result, any empirical average that involves the directions of motion, e.g., the polarization (Eq. 10), will be affected by an error and will not be uniquely determined from the data, thus making the classical ME formulation pointless.

A potential workaround for this issue would be to measure the positions at intervals larger than Δ*t* in such a way that two subsequent measurements of the cell position **r**(*t*) lie in different bins for all cells and times: The resulting empirical averages could then be analyzed with the classical ME formulation (see section S1.1). However, this strategy would throw away a large number of the original measurements **r**(*t*), **r**(*t* + Δ*t*), ⋯ and thus use only a fraction of the experimental data available. In what follows, we discuss a ME formulation with bound constraints (MEb) (*21*, *22*) that efficiently exploits all the information contained in the experimental data (see section S1.2 for details). In addition to the uncertainty above on the directions of motion, this MEb method may be used to handle a variety of other experimental sources of error, such as missing tracks, tracking anomalies, and others.

Let us suppose that, because of the experimental uncertainty described in Fig. 1, the tracking data do not provide a precise value for the empirical averages but a confidence interval in which these averages lie: Namely, if we let each unknown direction of motion **s*** _{i}* vary between 0 and 2π, then 〈

*C*〉

_{ex}and 〈

**M**〉

_{ex}will fluctuate between a lower bound and an upper bound, which define a confidence interval. As a result, in the MEb approach, we introduce explicitly such confidence interval by smoothening (

*22*) the equality constraints in the ME model (Eqs. 4 to 6): The equality constraint (Eq. 5) is replaced by

*f*, respectively (

_{i}*21*).

### Statistical inference analysis

In what follows, we will describe the main features of the MEb method and refer to section S1.2 for details. The joint distribution of velocities resulting from the MEb construction has the shape of a Boltzmann distribution*J* reflects the “interaction” between cell velocities, the “external field” ℋ represents the overall tendency of the cells to flow in one particular spatial direction, and the partition function *Z* ensures that *P* is normalized.

The Hamiltonian (Eq. 13) is the one of the mean-field XY model—a statistical-mechanical model originally introduced to describe ferromagnetic systems (*23*). In the XY model, the larger *J*, the higher the energetic cost for **s*** _{i}* and

**s**

*to be misaligned; similarly, the larger*

_{j}**H**, the higher the energy cost for

**s**

*to misalign with respect to the direction of the external field. The mean-field structure of the Hamiltonian (Eq. 13) follows from the choice of the feature (Eq. 9), which involves an average over all cell pairs. This mean-field structure makes the model analytically tractable: Its partition function (eq. S32) can be expressed exactly in terms of a one-dimensional integral and Bessel functions even for a finite number of cells*

_{i}*N*(see section S1.2).

The solution of the MEb problem is determined by a set of equality and inequality conditions, also denoted by bound constraints, known as the Karush-Kuhn-Tucker (KKT) conditions (*24*, *25*). Given that each of the three parameters that appear in *P*, i.e., *J* and the two components of **H**, can be either positive, negative, or zero, we obtain a set of candidate MEb solutions, where each solution corresponds to a sign configuration of the parameters above. The MEb solution is then given by the solution with the largest entropy, and that satisfies all equality and inequality constraints (see the “Statistical inference analysis: Wound-healing experiment” and “Statistical inference analysis: Dendritic cell experiment” sections for details).

### Tests of the ME method with bounds on synthetic data

To test the predictive capabilities of the MEb method, we generate synthetic data for a system of *N* moving units that evolve according to a given dynamics. We will consider two different models for the synthetic dynamics: The XY model and a model of SP particles. We denote by P the set of parameters that determine the dynamics, generate samples of the configurations of the *N* elements for different choices of P, and analyze them with the MEb.

*XY model*. As shown in the “Statistical inference analysis” section, the Hamiltonian (Eq. 13) of the MEb model coincides with the one of the mean-field XY model. As a result, the simplest fundamental test for the MEb method consists of generating samples of the spin configurations with the XY model for a given choice of the model parameters P = {*J*, **H**}, analyzing these configurations with the MEb model, and inferring back the same values of the model parameters.

To achieve this, for a given set of parameters P = {*J*, **H**}, we initialize the XY model in a configuration **S** and let it evolve with a single spin-flip Glauber dynamics, reaching equilibration after a large enough number of spin flips. Then, we collect *T* = 100 configuration samples **S**_{1}, ⋯, **S*** _{T}*, with which we compute the configuration averages 〈

*C*(

**S**)〉

_{ex}and 〈

**M**(

**S**)〉

_{ex}(see Eq. 1). Given that the averages above are estimated from a finite number of samples, they are subjected to a statistical error. We thus estimate the confidence interval for these averages in terms of this statistical error, which we denote by σ, setting

*J*

_{inf}and

**H**

_{inf}, respectively.

The procedure above is repeated *Q* = 100 times for each parameter configuration, resulting in a mean value and error bar for *J*_{inf}, **H**_{inf} (see fig. S1): Overall, the agreement between the inferred and original parameter values is very good, even for small *N*.

*SP model*. In the SP model, we consider *N* particles moving on a plane with no boundaries. The dynamics of the particles’ velocities and positions is set by the following rules**y**) = **y**/∣ **y**∣ which keeps the velocity modulus fixed at ∣**v**∣ = *v*_{0}, and the sum in Eq. 14 runs over the *n*_{c} nearest neighbors of particle *i*, according to a topological definition of distance. The first term in the square bracket in the right-hand side of Eq. 14 makes particles that are close to each other move in the same direction; the second term involves an interaction force **f*** _{ij}*, which accounts for excluded volume (vide infra); and the third term represents a uniform gradient in the direction of the unit vector

**h**. The fourth term represents noise and includes a random unit vector η

*(*

_{i}*t*), which is independent for each particle and instant of time. This noise term physically represents the uncertainty with which particle

*i*feels the force

**f**

*exerted by particle*

_{ij}*j*, which appears in the second term: Given that the second term involves a sum over the

*n*

_{c}nearest neighbors of particle

*i*, the noise term is proportional to

*n*

_{c}(

*26*).

The parameters α, β, γ set the magnitude of the terms which they multiply. The distance-dependent force **f*** _{ij}* acts along the direction between

*i*and

*j*,

**e**

*=*

_{ij}**r**

*/∣*

_{ij}**r**

*∣, with*

_{ij}**r**

*=*

_{ij}**r**

*−*

_{i}**r**

*, and is defined as*

_{j}*r*,

_{a}*r*,

_{b}*r*,

_{e}*r*

_{0}suitable length scales. More precisely,

*r*represents the particle size, and

_{b}*r*

_{0}sets the interaction range in such a way that particles are insensitive to each other when their distance exceeds

*r*

_{0}. The radii

*r*and

_{a}*r*set the magnitude and direction of the force

_{e}**f**

*, which is attractive and repulsive when*

_{ij}*r*>

_{ij}*r*and

_{e}*r*<

_{ij}*r*, respectively.

_{e}We set the parameters α, β, γ, *n*_{c}, *r _{a}*,

*r*,

_{b}*r*,

_{e}*r*

_{0}and the direction of the field

**h**, and then we initialize the system by placing all the particles in a two-dimensional area and by associating to each particle a (normalized) velocity given by the angle θ

*,*

_{i}*i*= 1, …,

*N*randomly and uniformly drawn in [0,2π] (see Eq. 8). Next, we let the particles move according to Eqs. 14 and 15. In an effort to emulate the positional uncertainty due to the camera pixels in the experiments above, for each simulation, we assumed that the positions are affected by an error σ = 0.02 and rounded off the cell positions according to this error (see section S5 for details). The numerical value of σ has been chosen so as to obtain a fraction of nondefined directions of motion roughly comparable with the experimental ones. After a large enough number of iterations, we collect the resulting configurations of velocities

*v*(

_{i}*t*),

*t*= 1, ⋯,

*T*, the related normalized velocities, and the lower and upper bounds for 〈

*C*〉 and 〈

**M**〉, which we then used in the MEb method.

We would like to stress that, unlike the XY model where the Hamiltonian has the same form and parameter structure as the MEb model (Eq. 13), for the SP model, a direct comparison between P = {α, β, γ} and the output *J*_{inf}, **H**_{inf} of the MEb is no longer possible. In particular, the former model is built out of mean-field interactions, while the latter involves a non–mean-field interaction structure. Despite the fact that there is no one-to-one mapping between the parameters of the two models, the interaction parameter *J* in the MEb Hamiltonian (Eq. 13) can be related to the parameter α in the SP dynamics, which sets the strength of the alignment between particle velocities. In fact, the inferred value of *J* appears to be positively correlated with α (see fig. S2), indicating that the MEb model correctly captures the tendency of SP particles to align their directions of motion. More precisely, in fig. S2, we set γ = 0 and vary α, and we correctly infer a vanishing field **H**, while the inferred value of *J* is non-null. However, we observe that *J*_{inf} seems to depend also on *N*, and its dependence on α appears to be nonlinear. On the other hand, by setting α = 1.2 and varying γ by fixing **h** directed in the direction −π/4, we correctly infer a linear relation between **H**_{inf} and γ, while *J*_{inf} still exhibits a slight dependence on *N* and γ.

In addition, we performed the inference analysis of fig. S2 with a mean-field SP model with *n*_{c} = *N* − 1, where each particle interacts with all the other ones, and found that the resulting level of accuracy of the inference analysis is similar to the one for an SP model with short-range interactions, i.e., fig. S2. This indicates that the accuracy of the inference analysis for the SP model is not directly related to the mean-field structure of the MEb model (Eq. 13), but it may depend on a variety of features of the SP model, e.g., its out-of-equilibrium dynamics, topological interaction structure, and the form of interparticle forces.

Last, we present an additional test of the MEb method. For a given parameter configuration α = 1.2, β = 4, γ = 2.2, and *n*_{c} = 9, we performed *Q* = 100 simulations of the SP with *N* = 60 particles and collected *T* = 360 snapshots of their positions. For each simulation, we rounded off the cell positions as discussed above and, by using this positional uncertainty, we obtained the lower and upper bounds for the feature averages 〈*C*〉 and 〈**M**〉, which we used to infer *J* and **H** with the MEb. Furthermore, we considered the connected correlation function between motional correlation and polarization 〈*C***M**〉 − 〈*C*〉〈**M**〉. We compute this quantity both from the inferred MEb model above and from the data and compare them in fig. S3. The MEb model is based on the average correlations and polarization 〈*C*〉 and 〈**M**〉 only, not on their cross correlation 〈*C***M**〉 − 〈*C*〉〈**M**〉: As a result, the MEb prediction for the connected correlation involves no free parameters. First, fig. S3 shows a good agreement between model and empirical connected correlation. Second, the MEb method reproduces quantitatively the negative correlation between the *x* and *y* components of 〈*C***M**〉 − 〈*C*〉〈**M**〉 across multiple simulations—the larger the *x* component, the smaller the *y* component. Overall, the analysis above indicates that the MEb method, which is based on averages of empirical features only, is able to describe and capture also more complex statistical properties, e.g., the cross correlation between two of such experimental features (*14*). Given the satisfactory results of the MEb on these benchmark datasets, in what follows, we will present the experimental data of our study, discuss their statistical features, and analyze them with the MEb.

### Experiments

In the wound-healing experiment, a population of human cancerous epithelial cells migrates in a planar device in which we realized a wound (see Fig. 2 and the “Wound-healing experiment” section for details). In the dendritic cell experiment, cells move in a spatially varying concentration of chemokines built along the horizontal axis of the device (see Fig. 3 and the “Dendritic cell experiment” section for details).

*Analysis of cellular trajectories*. For both experiments, the data consists of the nominal coordinates **r*** _{i}*(

*t*),

*t*= 1, …,

*T*, where the length

_{i}*T*of track

_{i}*i*is cell dependent because the tracks may lie in the observation window for different periods, and the time lapse between two measurements is Δ

*t*= 5 min and Δ

*t*= 2 min for the wound-healing and dendritic cell experiment, respectively (see the “Wound-healing experiment” and “Dendritic cell experiment” sections for details). Therefore, tracks are regarded as discrete-time random walks, where the

*i*th walker at time

*t*takes a step Δ

**r**

*(*

_{i}*t*) =

**r**

*(*

_{i}*t*+ Δ

*t*) −

**r**

*(*

_{i}*t*), with length Δ

*r*(

_{i}*t*) = ∣ Δ

**r**

*(*

_{i}*t*)∣ and velocity

**v**

*(*

_{i}*t*). In addition to the Cartesian coordinate system above, we describe the motion in a polar system where, at the

*t*th time step, the

*i*th track performs a step of length Δ

*r*(

_{i}*t*) in the direction described by the angle θ

*(*

_{i}*t*) with respect to the horizontal axis.

In the remainder of this section, we introduce the fundamental motional features of the cells tracked in the two experiments, in view of the statistical analysis of the “Statistical inference analysis: Wound-healing experiment” and “Statistical inference analysis: Dendritic cell experiment” sections. First, we introduce the displacement of cell *i*, i.e., **R*** _{i}*(

*t*) =

**r**

*(*

_{i}*t*) −

**r**

*(0) and its square average*

_{i}*N*is the number of cells whose tracks have length larger or equal than

_{t}*t*, i.e.,

*R*between cells, i.e.,

*N*is the total number of pairs at distance

_{R}*R*, namely,

In what follows, we will discuss shortly the results of the analysis of motional data and refer to section S4 for details. In the wound-healing experiment, the trajectories show a strong bias along the horizontal direction, evidenced by a sharply peaked polar histogram for the angle θ (Fig. 2C) and a ballistic-like mean-squared displacement *27*). In chemokine-free region (zone 1), cells exhibit an isotropic random walk with a uniform polar histogram for the angle of migration θ (Fig. 3C) and a diffusive-like mean-squared displacement *R* is found. Figure 3G shows that the correlation decay with distance is peculiar to the wound-healing experiment, and it suggests that diverse migratory mechanisms may be at work in the two experiments, possibly indicating the existence of a collective behavior in the wound-healing experiment. In this regard, in fig. S4, we show a visual comparison between the cell tracks of the wound-healing and dendritic cell experiment, demonstrating that a naked-eye inspection of the tracks does not allow to confirm or to rule out the existence of a collective behavior in either of the two experiments. In fact, in both experiments, cells appear to be moving toward a source, and the existence of genuine collective effects is encoded in their trajectories in a nontrivial way. To unveil the presence of these mechanisms, in what follows, we will leverage the MEb method and find out whether cell motion is simply gradient driven or whether a collective migration is also at play.

*Statistical inference analysis: Wound-healing experiment*. To analyze the cell trajectories with the MEb, we estimated the uncertainty on cell positions resulting from the finite pixel size (see Fig. 1 and section S5 for details), incorporated this uncertainty in the lower and upper bounds of empirical averages as described in the “ME methods” section, and used the MEb with these bounds.

First, we observe that the spread of the correlation average due to the experimental error, i.e., *14*), thus demonstrating the need for a MEb formulation. The MEb solution is depicted in Fig. 4: A visual inspection of the full set of candidate solutions shows that there is a unique solution that has the largest entropy per cell *s* = *S*/*N* and which satisfies all constraints within numerical precision. As shown in Fig. 4, the results of the MEb analysis are *J* = 1.1, **H** = (0.018,0). Because *J* and **H** are multiplied by *O*(*N*) terms in the Hamiltonian (Eq. 13), these parameters should be considered to be significantly different from zero as long as they are of order unity: It follows that the MEb solution yields an interaction parameter *J* significantly different from zero, thus indicating the presence of a collective behavior in the cell migration of Fig. 2. In addition, the nonzero value of the *x* component of the external field may be ascribed to the attractive effect of the wound located on the right edge of the observation window (see Fig. 2A). Last, the null *y* component of the external field reflects the spatial homogeneity of the experiment with respect to the vertical direction.

It is important to point out that the result *J* ≠ 0 is consistent with the analysis of motional data of the “Analysis of cellular trajectories” section and section S4.1. The analysis shows that the empirical distribution of the cell velocities is exponential in the *y* direction, but it markedly differs from an exponential distribution in *x* direction, thus indicating that cells do not migrate as independent units. The existence of a cell-cell cooperation is also indicated by the analysis of angle correlations between cell pairs, *R* (see Fig. 2E) and by the pairwise correlation coefficient between the directions of motion,

*Statistical inference analysis: Dendritic cell experiment*. Proceeding along the lines of the wound-healing experiment, we estimated the uncertainty on cell positions resulting from the finite pixel size as described in section S5. This uncertainty results in broad confidence intervals for the feature averages: Indeed, table S2 shows that the relative spread for the empirical average of the correlation

Figures 5 and 6 show the MEb solution for the dendritic cell experiment in the high- and low-density case and chemokine-poor and chemokine-rich regions, i.e., zones 1 and 2, respectively, and the resulting values of *J* and **H** are shown in table S2. First, we observe that the *y* component of the external field **H** is very small and that the *x* component vanishes in zone 1, while it is different from zero in zone 2 for all densities: This dependence of the inferred external field on the zone reflects the chemokine gradient built in the device in the horizontal direction (see Fig. 3).

Second, for all densities and zones, the MEb indicates that the interaction parameter, *J*, is null. This result is supported by the motional data analysis of the “Analysis of cellular trajectories” section. In fact, Fig. 3G demonstrates that the angle correlations between cell pairs,

## DISCUSSION

Motivated by the recent ubiquitous applications of inference methods to biological systems (*14*–*19*) and by the importance of cell migration phenomena in both physiological and pathological contexts (*3*, *4*), we proposed a statistical inference method to detect and single out cell-cell interactions in a population of migrating cells. In fact, while there is a variety of cases of collectively moving biological entities that do not have direct physical interactions, it is often unclear whether migrating cells, such as immune cells, could interact remotely, e.g., by means of diffusible factors or other intercellular signals, and thus display collective behaviors. This issue is particularly important when cells migrate in the same direction toward an external attractor, e.g., a biochemical signal: It is difficult to tell whether cells all go in the same direction independently of each other simply because they are all attracted by the same cue or whether they also interact with each other through some signals.

To address this question, we proposed a statistical inference method specifically designed for cell-tracking experiments, which is capable of handling the empirical uncertainties specific to tracking processes, such as the errors resulting from finite camera resolution, missing tracks, and others. In addition, the mean-field structure of our inferred statistical model allows an explicit solution even for a finite number of cells—a feature that may prove to be particularly useful for, say, experiments on lab-on-a-chip technology, where the number of tracked cells can be small.

To check the soundness of our inference approach, we first tested it on synthetic datasets, i.e., trajectories generated from an XY model of spins, and on tracks generated from a non–mean-field SP model of particles. We find, overall, a good agreement between the original and inferred values of the model parameters, e.g., the spin-spin couplings and the strength of the external field to which the SP particles are subject.

Building on the results above, we applied our method to two prototypical cell migration experiments: Mesenchymal migration toward a wound and amoeboid migration of immune cells, i.e., dendritic cells, following a chemokine gradient. The inference analysis gives strong evidence of intercellular interactions for the wound-healing experiment, which served as a stereotypical case of collective migration, thus providing a positive control for detection of cell-cell interactions by our method. As far as the dendritic cell experiment is concerned, immune cells release molecules toward the extracellular milieu, which could steer the migration of adjacent cells (*7*). The release of vesicles or small molecules to extracellular milieu as a mechanism of paracrine cell communication allows coordinated migration in a contact-independent manner in other cellular systems (*9*, *28*). Similarly, dendritic cells release adenosine triphosphate (ATP), which acts in an autocrine manner (*8*), but it is unknown whether it can affect the migration of adjacent cells. Nonetheless, our inference method did not provide evidence of cell-cell interactions during dendritic cell chemotaxis, revealing that these cells move independently toward the gradient.

From the statistical inference standpoint, the results above support the validity of a mean-field ME model (Eq. 13). First, the ME with bound constraints yields qualitatively correct results for the SP model, which contains non–mean-field interactions, and the nonzero interaction inferred in the wound-healing experiment correctly mirrors the existence of actual cell-cell contacts. Second, the prediction of a null interaction in the dendritic cell experiment is in agreement with the statistical analysis in the “Analysis of cellular trajectories” section (see the absence of a correlation decay with distance in Fig. 3G). In sum, these results indicate that the mean-field ME model yields, at the least, qualitatively correct results on the existence or absence of cell-cell interactions.

In addition, it is important to point out that the statistical inference method that we proposed detects cell-cell interactions that are instantaneous, i.e., whose propagation time is much shorter than all other time scales: The observables that have been chosen in the ME method (Eq. 9) involve directions of motion **s*** _{i}*(

*t*) ·

**s**

*(*

_{j}*t*) of cells

*i*and

*j*evaluated at the same instant of time

*t*(see the “ME methods” section). Despite the fact that such instantaneous interactions have been used in a variety of statistical inference studies for biological systems (

*14*,

*15*), other types of interactions may be present in cell migration experiments. For example, cell

*i*may locally release a chemical compound along its migratory path, and cell

*j*may cross the former path of

*i*at a later time and thus feel a delayed interaction with

*i*mediated by this compound. The implementation of a time-lagged ME model goes beyond the scope of this work, but it may be studied by introducing, in the present model, features in which the directions of motion

**s**

*and*

_{i}**s**

*appear at different instants of time (*

_{j}*29*). The existence of a time-lagged interaction would denote a type of collective migration that is markedly different from the one addressed in this study. While instantaneous interactions characterize a genuinely collective behavior, time-lagged interactions would be rather an indirect effect due to the fact that cell

*i*alters the environment in which cell

*j*moves. As a result, the absence of instantaneous cell-cell interactions resulting from our analysis indicates the lack of a genuinely collective behavior in the dendritic cell experiment.

An additional interesting extension of our analysis would consist of introducing further observables in the ME model. For instance, while the correlation and polarization (Eqs. 9 and 10) involve averages over the entire cell population, one could restrict these averages to cells lying in a specific spatial region, e.g., zone 1 or 2 in the dendritic cell experiment. While this complex feature structure goes beyond the minimal ME model that we propose in our analysis, it may provide additional insights on cell-cell interactions in relation to their proximity to the signaling source.

From a biological standpoint, our statistical method may provide unprecedented insights on the strategy by which dendritic cells perform their function. Indeed, to trigger the immune response, dendritic cells need to uptake an antigen in the peripheral tissues and then quickly reach the lymph nodes via the lymphatic vessels (*30*): In this regard, our statistical inference analysis suggests that dendritic cells individually follow signals from the lymphatic vessels (i.e., CCL21 chemokine), disregarding any other signal. It is conceivable that such absence of cell-cell interactions during dendritic cell migration may correspond to a mechanism to undergo their main function. In fact, dendritic cell migration markedly differs from the one of other immune cells, e.g., neutrophils, which, when receiving an attractive signal from a pathogen, emit secondary signals to attract other neutrophils on site (*31*). For dendritic cells, only the cells activated directly by the pathogen should leave the tissue to reach the lymph nodes: As a result, the fact that these cells should not emit such signal to attract other cells allows a natural interpretation of our statistical inference results. Last, the individual migratory mechanism that we inferred may allow the cells to disregard not only intercellular but also external signals that might delay their arrival toward the lymphatic vessels and ultimately to the lymph nodes, thus constituting a strategy to reach the vessels as efficiently as possible. Further studies should be done in this direction to corroborate these hypotheses.

Overall, the statistical inference method presented in this analysis may be applied not only to cell-tracking experiments but also to a wide variety of biological systems, some of which have attracted growing interest in the past few years. Notable examples are the inference of motional order in flocks of birds (*14*), collective behavior in networks of neurons (*15*, *16*), interaction patterns resulting from amino acid sequences in protein families (*17*, *18*), and interaction structure of genetic networks (*19*). In all these instances, both the experimental and data analysis procedure may introduce a variety of errors in the estimates of experimental features, which can be naturally handled with the ME method with bound constraints presented in this analysis.

## MATERIALS AND METHODS

### Wound-healing experiment

For the wound-healing experiment, human cancerous epithelial cells (HeLa) from adenocarcinoma were used. HeLa cells stably transfected with H2B-mCherry that allows live imaging of the nucleus were cultured in DMEM (Dulbecco’s modified Eagle’s medium containing glutamax), 10% fetal bovine serum, and 1% penicillin-streptomycin. Once confluence was reached, HeLa H2B cells were detached with trypsin and 0.5 × 10^{6} cells were plated in a FluoroDish 24 hours before the experiment. Then, a monolayer was formed, and four scratches were done (two in the vertical axis and two in the horizontal one) using a 200-μl pipette tip. Medium was changed twice after the scratching to remove detached and dead cells. The dishes were left in the incubator at 37^{∘}C for 4 hours before starting the experiment. Phase-contrast images were acquired every 5 min overnight with a DMi8 inverted microscope (Leica), at 37^{∘}C with 5% CO_{2} atmosphere using a 10× dry objective [numerical aperture (NA) 0.40 phase], binning 2. In addition to phase contrast, mCherry fluorescence was also imaged.

### Dendritic cell experiment

Bone marrow–derived dendritic cells (BMDCs) were prepared as previously described (*8*). Briefly, mouse bone marrow precursors were obtained from wild-type C57/B6 mice and were differentiated in vitro for 10 days with granulocyte-macrophage colony-stimulating factor–containing culture medium, obtained from transfected J558 cells. At day 10, cells were stimulated with a pulse bacterial lipopolysaccharide (LPS; 100 ng/ml), as previously described (*32*). The migration experiments in collagen gels were performed as previously described (*27*). LPS-stimulated BMDCs were mixed with bovine collagen type I at 3 mg/ml and loaded in a custom-made chamber of polydimethylsiloxane. After 30 min of incubation at 37^{∘}C, gel polymerization was reached and samples were bathed with a medium containing CCL21 (200 ng/ml). Last, imaging was done as for the wound-healing experiment, but the period of acquisition was 2 min.

## SUPPLEMENTARY MATERIALS

Supplementary material for this article is available at http://advances.sciencemag.org/cgi/content/full/6/11/eaay2103/DC1

Section S1. ME models

Section S2. Tests of ME method with bound constraints

Section S3. Visual comparison between experiments

Section S4. Analysis of motional data

Section S5. Estimate of positional uncertainty

Fig. S1. Test of ME method with bound constraints on synthetic data for the XY model.

Fig. S2. Test of ME method with bound constraints on synthetic data for the SP model.

Fig. S3. Consistency test of ME method with bound constraints.

Fig. S4. Visual comparison between tracks of the wound-healing and dendritic cell experiment.

Fig. S5. Statistics of motional data for the wound-healing experiment.

Fig. S6. Empirical distributions for cell velocities in the wound-healing experiment.

Fig. S7. Statistics of motional data for zone 1 in the dendritic cell experiment.

Fig. S8. Empirical distributions for cell velocities for zone 1 in the dendritic cell experiment.

Fig. S9. Statistics of motional data for zone 2 in the dendritic cell experiment.

Fig. S10. Empirical distributions for cell velocities for zone 2 in the dendritic cell experiment.

Fig. S11. Estimate of the positional error.

Table S1. Confidence intervals for the empirical averages in the wound-healing experiment.

Table S2. Confidence intervals for the empirical averages in the dendritic cell experiment.

This is an open-access article distributed under the terms of the Creative Commons Attribution-NonCommercial license, which permits use, distribution, and reproduction in any medium, so long as the resultant use is **not** for commercial advantage and provided the original work is properly cited.

## REFERENCES AND NOTES

**Acknowledgments:**We thank L. Caccianini, G. Colazzo, L. Del Mercato, J.-F. Joanny, A. S. Kumar, I. Lavi, G. Maruccio, P. Šulc, and A. Zilman for valuable conversations.

**Funding:**A.B. acknowledges Università del Salento and INFN for financial support. M.C. and M.P. acknowledge support from CNRS and Institut Curie. This research was supported by Sapienza University of Rome, Progetto Ateneo RG11715C7CC31E3D and RM118164368D6841; Association Nationale pour la Recherche (MOTILE project, ANR-16-CE13-0009) attributed to P.V.; and “Institut Pierre-Gilles de Gennes” (“Laboratoire d’excellence,” “Investissements d’avenir” program ANR-10-IDEX-0001-02 PSL and ANR-10-LABX-31).

**Author contributions:**E.A., A.B., M.C., M.P., and P.V. conceived the study. E.A. and M.C. developed the theory. P.J.S. designed and performed the experiments. E.A., A.B., and M.C. wrote most of the paper. M.P. and P.J.S. contributed to the revisions.

**Competing interests:**The authors declare that they have no competing interests.

**Data and materials availability:**All data needed to evaluate the conclusions in the paper are present in the paper and/or the Supplementary Materials. Additional data related to this paper may be requested from the authors.

- Copyright © 2020 The Authors, some rights reserved; exclusive licensee American Association for the Advancement of Science. No claim to original U.S. Government Works. Distributed under a Creative Commons Attribution NonCommercial License 4.0 (CC BY-NC).