Introduction

Bacteria live and move in an extraordinarily wide range of habitats and can quickly respond to the presence of other cells and physical boundaries in their environment. For instance, bacteria swim independently in fluids, but when transferred to surfaces display a collective behavior known as swarming1,2. Swarming occurs in many gram-negative and gram-positive species and corresponds to a hyper-flagellated elongated phenotype2,3. Swarming cells self-organize into rapid collective motions that allow for quick colonization of new environmental niches1,4,5,6. Swarming is co-regulated with virulence determinants, inversely regulated with sessile biofilm formation, and associated with enhanced antibiotic resistance6,7,8. More broadly, the collective motion of self-propelling (active) particles9,10 is observed in bacterial infections11, embryogenesis12, and wound healing13 and is an important feature of both prokaryotic14 and eukaryotic15 systems.

Ecological niches are typically a heterogeneous mix of cells, and internal boundaries can form separating cells of two difference types. Bacterial swarms coexist symbiotically with other microbes—assisting in the transport of fungal spores16 and other bacterial species17—or they compete at sharp boundaries18,19. Boundaries also emerge in cultures of the same bacteria due to chemotaxis and cell death20,21 or the presence of extracellular polymers22,23, both of which can induce a swimming-speed dependent phase separation21,23. Segregation of active particles is not unique to biological settings, arising in synthetic systems such as phoretic particles24,25.

In passive bi-phasic systems26,27,28 such as melting ice-water mixtures and solidifying alloys, properties of internal boundaries (such as interface shape and speed) depend on the surface tension, interfacial energies, and externally imposed flows. In active systems, particle motion can couple to the presence of boundaries which can lead to anomalous properties in mechanical pressure29,30 and impact collective flows31,32. However, despite the ubiquity of boundaries in living and life-like materials, boundary stability and motion remain largely unexplored in active non-equilibrium matter. Identifying boundary conditions that link boundary structure and active motion will help elucidate a minimal description of actively-driven boundaries.

Here, we focus on the propagation of an interface separating mobile and immobile bacteria in swarming Serratia marcescens. Serratia are a rod-shaped, gram-negative, opportunistic pathogen of the Enterobacteriaceae family3. We use high intensity ultraviolet (UV) light to selectively paralyze and passivate cells in large compact domains within the swarm (Methods). The passive domain and active swarm interact at the interphase boundary where self-emergent, vortical flows develop. The interphase is spontaneously reshaped and eroded as passivated bacteria are dislodged from their neighbors and convected by nearby collective flows. Intriguingly, the active–passive boundary behaves as a propagating, diffuse elastic interface with speeds that seems to correlate with local interface curvature and the intensity of the active bacterial flow. Our results raises the possibility that an active analog to classic Gibbs–Thomson–Stefan conditions may control the observed boundary propagation process.

Results

Generating passive domains in bacterial swarms

Figure 1a shows snapshots of a Serratia marcescens swarm before and after its exposure to UV light. The swarm is grown on an agar substrates (Methods 1) and is pictured moving right to left at a speed of approximately 1 μm/min; the colony edge is marked by a clear precursor fluid film (white edge in image). Close examination reveals (Fig. 1b) densely packed rod-shaped cells with local orientational order resembling a nematic liquid crystal. The individual cells3 are 1 μm in diameter and 5–7 μm in length, and the collective swarm edge is estimated to be approximately a monolayer thick based on previous investigations5. In its initial state, the swarm is highly motile and exhibits long-range collective flows (Supplementary Movie 1). We use particle image velocimetry (PIV, Methods 0.2, Supplementary Notes 1 and 2) to exact the bacterial velocity field v(r, t) (overlaid in color). We find that the fastest moving cells are approximately 100–400 μm from the leading edge of the colony, where the average local speed is 28 μm/s (Fig. 1c). The collective flow has a correlation length of approximately 20 μm and characteristic time of 0.25 s (Supplementary Note 2, Supplementary Fig. 1).

Fig. 1
figure 1

Creation and dissolution of an active–passive interphase boundary in a bacterial swarm. a A series of snapshots of the expanding edge of a Serratia marcescens swarm taken over time. The colony was cultured on an agar substrate, and its expanding edge (marked by a precursor fluid film that appears as white curve) is moving from right to left. The swarm shows long-range collective flows, with strong velocity fields (PIV; overlaid color). A large domain of passive, immobile bacteria is created by exposing a region of the swarm to high intensity ultraviolet (UV) light (highlighted octagon). An interphase boundary forms between the passivated and active bacteria. When the light source is switched off (t = 0 s), the active unexposed bacteria deform the interphase boundary and penetrate the passive region. Over time, active bacteria convect immobile bacteria away from the passive domain, causing the boundary to erode and propagate inward. The boundary is manually traced in white for visualization. The swarm dissolves the passive phase in 60 s, with interface speeds greater than that of expanding colony edge. b The swarm edge (close-up) features densely packed cells with local polarity and nematic order. c The swarm’s collective motion recovers after dissolution as shown by the probability distribution of bacterial speeds p(v), before and after exposure (data shown for representative experiment, collected from 5 s interval of PIV data). d A montage of the flow streamlines—from the highlighted box in a—reveals the motion of vortices (labeled by color) at the interface (blue line). Vortices starting in the bulk can collide and attach to the interface (labeled brown vortex for example); some vortices at the surface detach and move away (green, orange). Others fade away (purple) or split (dark blue splits from light blue vortex in right tile). Data shown here is from a single experiment; results were repeated for a minimum of N = 4 experiments

When exposed to sufficiently high intensity light (Methods 3, Supplementary Note 1), a portion of the highly motile swarm is quenched and becomes immobile (Fig. 1a, Supplementary Movie 2). We use standard microscope optics to focus the light from a mercury lamp source to the swarm, selectively damaging and blocking cell motility [Methods 3]. This generates domains of passive bacteria, the shape of which can be controlled through an aperture. We focus on two aperture geometries: a half-plane aperture [H] and an octagonal-shaped [O] aperture.

Figure 1 illustrates the swarm’s response to UV light using the [O] aperture. Bacteria inside the exposed region (highlighted octagon) stop moving and are eventually trapped. This is seen in Supplementary Movie 2: particles that serve as tracers slow down and eventually stop moving as they are trapped amongst the passive bacteria. The slowing down is accompanied by increasing alignment in the exposed region; such alignment may be due to direct excluded volume interactions33 or via induced slowly decaying flows. Bacteria outside the exposure remain motile, forming vortices and jets along the boundary of the trapped cells (Supplementary Movie 3).

When the light source is switched off, the active unexposed bacteria collide with the region of passivated bacteria. Initially, the passivated bacteria are trapped in space by their tightly packed neighbors. The incessant motions of the swarm dislodge passivated bacteria from their neighbors and convects them from the boundary toward the active region; the passive bacteria appear absorbed by the swarm, as shown in Supplementary Movies 46. Simultaneously, active bacteria move into the passive regions and the interface propagates radially inward albeit asymmetrically. The swarm’s collective motion recovers to its pre-exposure state (Fig. 1c).

Propagating interfaces of bacteria have been recently reported34; the use of a rotating magnet to impose vortical flows34,35 leads to an accumulation of bacteria in suspension, forming dense bacterial droplets that expand in a violent instability when released. In our experiments, we observe a different transport mechanism, erosion of a solid phase of passive particle by an active swarm of bacteria with emergent collective flows. Here, we will present new findings that the presence of soft deformable boundaries impacts the collective motion of swarming flows.

Flow streamlines (Fig. 1d) near the interphase boundary show the rich complex behaviors of individual vortices. We observe vortices convecting in from the bulk, interacting with each other, and lingering at the surface (highlighted brown vortex, for example). Similar features occur when the exposure is made using the [H] aperture (Supplementary Fig. 2, Supplementary Movie 5); a notable difference for the [H] aperture is that the absence of imposed corners and the approximate translational invariance along the exposed edge results in active–passive boundary propagating without large scale curvatures.

Bi-phasic passive systems involving boundary erosion such as melting of ice or alloy solidification usually feature a diffuse interfacial region where the two phases mix. The active system here differs from these classical systems in some noteworthy ways. Here, the passive region is continuously eroded and remodeled by self-emergent self-organized flows generated in the active phase. Passive bacteria enter the active phase as they are convected away from the interface; their fraction far from the interface however is small since the overall (initial) size of the passive phase is small compared to the total swarming area. Nevertheless, direct observation of the interface between the active and passive phases and results from PIV illustrating a mixing region between the two phases suggests that the interphase boundary may be represented as a diffuse interface with a finite thickness with the density of active motile bacteria varying very sharply across a boundary layer thickness, We hypothesize that, similarly, the boundary between the passive (immobile) and active (swarming) bacteria may be treated as an diffuse interface possessing an intrinsic time dependent thickness, w. We surmise that continuous phase-field order parameters can be used to define a mathematically defined diffuse boundary interface as done in previous investigations involving interface phenomena36 and phase transition/separation and damage problems in thermoviscoelastic materials37,38.

The active–passive phase field

Here, we utilize two independent scalar order parameters to track and characterize the interface; the first, ϕ (Methods 4, Supplementary Note 3) is based on intensity fluctuations between images of the swarm, which are related to bacterial density fluctuations, and the second ϕv is based on the bacterial velocity fields. Each order parameter quantifies the local motion throughout the swarm as shown in Fig. 2: the active phase corresponds to values of +1 and the passive phase, −1. A transitional interfacial region exists between the two phases; we define the mathematical interface as the locus of points rs satisfying ϕ(rs, t) = 0 (Fig. 2a, f). We find that the results obtained from using the order parameters ϕ and ϕv yield essentially the same description of the active–passive interface as seen in the phase-field maps in Fig. 2b, g; here, we present results primarily from ϕ based on intensity fluctuations (see Supplementary Fig. 4 for ϕv results).

Fig. 2
figure 2

Growth and structure of the active–passive interface in the bacterial swarm. Active–passive domain boundaries are designed with different initial shapes by varying the geometry of the aperture, such as an octagon [O] (ae) or half-space [H] (fj). a The interface position changes shape as it moves over time. b The interface position is identified by order parameters based on fluctuations in image intensity, ϕt = 0.1 s) and the bacterial speed, ϕv (Methods 4). In a, the boundary correspond to ϕ* = 0. In b the boundary is manually traced. c The averaged one-dimensional profiles of the ϕ-fields smoothly transitions between the active (ϕ = 1) and passive (ϕ = −1) phases. Fits of the data (dashed lines, Eqs. (6) and (7) Methods) yield the mean location d and width w of the interface. d, e Parameters d and w are determined for multiple experiments and averaged together as a function of time. Black lines in d, e and i, j are the averaged results of N = 4 experiments per condition; gray represents their min to max variation. For the [O] aperture, the mean interface position d(t) (black line, measured radially from the center of the domain) decreases over time and follows the scaling law \(d\sim \sqrt {\left( {t_0 - t} \right)}\) with t0 ≈ 40 s. fj Corresponding results for [H] aperture. For this case, the interface position d initially follows d ~ t (red line) and then transitions to faster than \(d\sim \sqrt t\) (blue line) at t ≈ 2 s. Width w (e, j) ranges from 4 and 10 μm and varies little over time—except for the case of the octagon aperture at long times (t > 40 s) as the passive domain dissolves entirely. Black lines in d, e, i, j are the averaged results of N = 4 experiments per condition; gray represents their min to max variation. Scale bar, 50 μm

Our active–passive phase fields possess many of the main features of a propagating, broadening, and coarsening interface. To examine the boundary evolution, we spatially average the phase field into one-dimensional phase profiles, ϕ* (Fig. 2c, h, Methods 5). The phase profiles are well captured using fits to hyperbolic tangent functions (Methods 5), which indicates a functional dependence and yields the mean interface position d and interface thickness w over time.

The evolution of the mean interface position d depends on the shape of the aperture (Fig. 2d, i). For the (O) aperture, d(t) provides an area averaged radius of the passive domain that decreases over time, eventually reducing to zero as the whole domain erodes away; in this case, we find \(d\sim \sqrt {t_0 - t}\) (Fig. 2d), with the time at which the passive phase disappears, t0 ≈ 40 s. For the (H) aperture (Fig. 2i), the mean interface position propagates faster than \(d\sim \sqrt t\) for the duration of the experiment.

The interface thickness w ranges from 4 to 10 μm (~bacterial length) over most of the dissolution process (Fig. 2e, j). The most significant deviation from this trend is seen for the [O] aperture at relatively long times (Fig. 2e): when the interface width is approximately the radius of the passive phase (t ≈ 40 s), both w and d exhibit large fluctuations and the thickness increases dramatically. Our results show that the interface width is a weak function of time, consistent with a quasi-steady propagating interface. We do observe isolated bacteria—singly or in very small pockets—entering into the passive region at distances more than the interface thickness (Supplementary Movie 4). However, these events are rare, resulting in the averaging procedure yielding a phase-field based interface without overhangs. We interpret w as a correlation length characterizing the gradient in the density of active bacteria.

The active–passive phase fields based on intensity fluctuations (ϕ) and bacterial velocity field (ϕv) yield qualitatively similar results (Supplementary Note 3). For instance, the interface positions are the same (Supplementary Fig. 4). We hypothesize that wv is greater than w (Supplementary Fig. 4) because velocity fields vary over vortex (20 μm) length scales whereas intensity fluctuations vary over bacterial scales (5 μm).

Coupling between the boundary and collective flow of bacteria

Next, we examine how the bacterial flow interacts with the interface. Figure 3a highlights two robust features of the flow near the interface: (i) a gradient in flow perpendicularly across the interface and (ii) an array of size-varying vortical flows. We find that the flow varies in both strength and dynamics. As shown in 3b, the square of vorticity 〈ω2〉 increases as one moves away from the interface; while the flow decay time τ decreases (Methods 6), indicating an increase in vortical flow lifetimes, a result similar to recent simulations of active and passive sphere mixtures32. Overall, our data suggests a coupling between the interface and flow: the interface plays a stabilizing role on the collective flow while the gradient in bacterial vorticity marks a flux of momentum and energy from the swarming bacteria to the interface, energy that can be used to erode and reform the surface. Consistent with this picture, the interface undergoes displacements through interactions with many fluctuating vortical flows (Methods 6).

Fig. 3
figure 3

Interface structure is coupled to collective flow of bacteria. a A snapshot of the bacterial vorticity field, t = 4 s after exposure with the half-space (H) aperture. b The strength of the vorticity field, characterized by 〈ω2〉, increases as one moves away from the interface boundary; while the flow decay timescale τ decreases (blue error bars represent standard error and gray variation represents min to max values gathered from temporal fluctuations in a representative experiment). c The overall decay of the interface static structure factor scales as \(\left| {{\mathrm{\Delta }}h_q} \right|^2\sim q^{ - 2}\), yielding an interfacial stiffness κ = 0.7 μm−2. The black line represents the averaged results of N = 4 experiments for the half-plane aperture geometry; gray variation represents min to max. d The energy spectrum of the flow E(q) (Eq. (9)) is non-monotonic with a peak that shifts to higher values of q close to the interface (Y ≈ 40 μm) compared with the bulk active phase (Y ≈ 130 μm); data averaged over 10 s from a representative sample. The peak in E(q) coincides with peaks in \(| {{\mathrm{\Delta }}h_q^2} |\)

To understand the boundary-flow coupling, we calculate the (quasi-static) structure factor of the interface (Fig. 3c) and the two-dimensional energy spectrum of the flow (Fig. 3d). We focus here on experiments using the [H] aperture, which are not limited by finite time dissolution effects. The static structure factor \(\langle {| {{\mathrm{\Delta }}h_q} |^2} \rangle\) (Methods 6) decays with wavenumber q, punctuated by peaks at q = 0.15 and 0.22 μm−1 (Fig. 3c). For q > 0.4 μm−1, the overall decay scales as \(\langle {| {{\mathrm{\Delta }}h_q} |^2} \rangle \sim q^{ - 2}\). To correlate these length scales with the energetic features of the flow, we calculate the two-dimensional time-averaged energy spectra E(q) from the bacteria velocity field (Methods 6) for different distances from the interface Y. As shown in Fig. 3d, E(q) is non-monotonic with q and depends on Y. This non-monotonic behavior is a unique characteristic of active fluids and is attributed to the injection of energy at the level of the bacteria39. Compared to dense suspensions of swimming bacteria in microfluidic devices39, our measured spectra exhibit similar scalings with q as q5/3 and q−8/3 (Fig. 3d) with a peak centered at scales of about 1–2 vortex sizes. The interface also impacts the flow spectra by shifting the peak to higher q, indicating a shift to smaller vortices near the interface.

For passive fluid-fluid interfaces fluctuating due to white noise, equipartition of energy requires that \(\langle {| {{\mathrm{\Delta }}h_q} |^2} \rangle = \left( {\kappa Aq^2} \right)^{ - 1}\) with κ being the stiffness, and A the interface area. Equipartition does not hold in our system. The peak in E(q) (between 0.15–0.2 μm−1; length scale, 15–20 μm) appears to overlay peaks in the static structure factor \(\langle {| {{\mathrm{\Delta }}h_q} |^2} \rangle\) (see Supplementary Fig. 7), suggesting that the interface is shaped at length scales of the flow structures (streamers and vortices). Still, the scaling \(\langle {| {\Delta h_q} |^2} \rangle \sim q^{ - 2}\) provides a good description over a range of length scales (Fig. 3c). We use this form to fit the data (Methods 7) and extract an interfacial stiffness κ ≈ 0.7 μm−2. This value is much smaller than the interfacial stiffness of water in air (1.7 × 107 μm−2) but similar to phase-separated systems involving colloids40,41,42 (0.1–20 μm−2). This stiffness is to be interpreted as an effective value of the diffuse interface and inherently accommodates variations in passive bacteria alignment.

Here, the bacterial flow injects energy into the surface at various wave-numbers and frequencies. One way to qualify the energetic features of the flow is by invoking an effective temperature Teff. In the absence of flow, Teff can be estimated by following tracers that sample the system for sufficiently long times43. Our swarm features collective flows; Teff therefore is ambiguous. Nonetheless, using 2 μm polystyrene spheres as tracer particles (Methods 7, Supplementary Fig. 10), we estimate Teff ≈ 2.2 × 105 K, which yields an apparent surface tension κkBTeff ~ 10 pN/μm.

Growth and form of the active–passive interface

In the paradigmatic example—melting of ice—the interface between ice and water propagates with speeds controlled by the temperature field at the interface and heat flux across the interface. For a stationary ice-water boundary, the Gibbs–Thomson relationship provides the relationship between the interface curvature \({\cal C}\) and the temperature (equivalently, chemical potential) while the Stefan boundary condition constrains the flux of heat across the interface. For slowly propagating ice-water interfaces, the Gibbs–Thomson relationship requires extension; a linear relationship can be obtained between the local curvature, local interface velocity, and temperature (or chemical potential)27,28.

To test for analogous boundary conditions for active–passive interfaces, we visualized how active flows extracted and convected passive particles at the boundary (Fig. 4a, b). We found that some particles move tangentially along the surface before being swept away by the collective flows whereas other particles appear ejected normally from the surface (Supplementary Movie 6), results that together suggests anisotropic caging effects due to bacteria alignment (see Methods 8). Based on our observations, we propose a simple linear relation that captures the main ingredients of the erosion process that connects the interface kinematics to geometry and intensity of activity,

$$v_{{\mathrm{int}}} = a_1 + a_2{\cal C} + a_3{\cal X}$$
(1)

with the variable \({\cal X}\) standing in for the swarm activity. We chose bacterial speed |v|, vN (normal component of the bacterial velocity), vT (tangential component), and vorticity ω as possible stand-ins for \({\cal X}\) and evaluated the fidelity of the fit of Eq. (1) to the experimental data (Methods 8, Supplementary Note 5). We gather these data at multiple points along the interface for varying times throughout the experiment. The data is combined with local measures of the interface velocity and interface curvature and cast into three-dimensional scatter plots (Supplementary Fig. 9). Scatter of the experimental data can be attributed to image processing errors, stochastic noise in bacterial length and speed, and variations in bacterial orientation.

Fig. 4
figure 4

Evolution of the active–passive interface follows an active analog to classical Gibbs–Thomson–Stefan conditions. a Particle motion at the interface. A representative trajectory of a 2 μm polystyrene tracer particle reveals how the swarm extracts particles from the passive domain. First, particles in the passive phase caged-in by their neighbors do not move. Second, when the diffuse interphase is roughly a velocity correlation length O(wv) away, the trapped particle starts to fluctuate, as seen in its speed over time. Third, agitations induced by the active particles dislodge the jammed tracer from the cage of neighboring passive particles. For the tracer in b the flow field moves the particle tangentially along the interface (Supplementary Movie 6). Finally, the particle escapes the passive domain as normal streaming flows between adjacent vortices pull the particle away, primarily perpendicularly from the interface. This escape correlates with a rapid increase in particle speed; once inside the swarm, the speed of the tracer fluctuates (red arrow). The schematic defines the sign of the curvature and normal bacterial velocity. c, d Local interface velocity vint correlates with the interface curvature \({\cal C}\) and the normal component of the collective bacterial velocity vN at the interface. Data for vint, \({\cal C}\), and vN collapses toward a plane for c half-plane [H] and d octagonal [O] aperture geometries; data shown here from representative experiments and gathered at 3 μm spacings across the interface over a 10–20 s interval (Supplementary Note 5). The collapse of the data unto plane suggests the existence of an active analog of the classical Gibbs–Thomson–Stefan boundary conditions. Spatiotemporal analysis shown here was verified for a minimum of N = 2 experiments per condition

The best collapse of the data to a plane—with statistical significance (Methods 9)—was obtained for the half-space aperture with vN, as shown in Fig. 4c. The values of the coefficients are dependent on the aperture geometry. For the half-plane [H] aperture, we find a1 = 0.4 μm/s, a2 = −2.3 μm2/s, and a3 = −2.0. For the octagonal [O] aperture (Fig. 4d), the presence of a mean curvature shifts the plane, which we find for vN to be given by a1 = 0.02 μm/s, a2 = −1.12 μm2/s, and a3 = −0.7. A possible reason for the slight difference in the coefficients for the two geometries, particularly for a2 multiplying the curvature term, is the presence of corners in the octagon geometry that appear to introduce additional streaming flows. Two-dimensional projections of the planes are shown in Supplementary Fig. 8. At a qualitative level, the scatter plots in Fig. 4 seems to show a three-way coupling between the interface velocity, bacterial flow, and curvature in a manner reminiscent of the classical Gibbs–Thomson–Stefan boundary conditions in passive systems, but the analogy is only suggestive given the correlation data. We find that the interface velocity is negatively correlated with curvature \({\cal C}\); regions of negative curvature move into the passive phase as passive bacteria are extracted from the surface.

Discussion

We conclude that that dissolution of passive domains within active swarms is a spontaneous self-organized process governed by short-range interactions at the single bacterial level and long-range non-local effects due to collective flow. Three features define the active–passive interface during the erosion process. First, the interphase region acts as a broadening diffuse interface with a well defined position and thickness. Second, the interface is stiff with elastic constants dependent on flow intensity; stronger flows are expected to lower the effective stiffness, allowing for faster erosion. Third, the interface structure is tightly coupled to the statistics of the collective swarming flows. The interphase boundary stabilizes vortices that form parallel to the surface, enabling sustained erosion. Interface erosion processes may be interpreted using an active analog of the classic Gibbs–Thomson–Stefan boundary conditions, although more detailed experiments and analysis need to be performed to firmly establish such connection.

Our results highlight a new finding that the presence of soft deformable boundaries impacts the collective motion of swarming flows by stabilizing vortices and increasing flow correlation times. One possible reason may be related to the mechanism of how the active particles interact with and dislodge passive particles. It may be easier for the active bacteria to realign and stay moving tangentially to the surface versus normally, until they leave the interface due to either rotational diffusion (suppressed here due to the high density) or collective reorientation. As long as the radius of curvature (macroscopic) of the interface is larger than the bacteria size, the bacterium will spend more time aligned tangential to the interface and thus keep moving. The strong effect of the interface on the bacterial flow may be surprising, given that bacterial swarming motility is the most rapid form of surface motility and emerges naturally in crowded environments. Our results here indicate that the presence of a boundary layer and associated constraints on the fluid velocity may be the important mechanical feature through which the interface influences bacterial motility.

Interfaces separating cells of differing motility are a common motif in natural habitats, including biofilms, where swimmers, spores, and other non-motile phenotypes segregate into different domains44. Starting with light-induced boundaries in a model system of Serratia marcescens swarms, we identified important physical mechanisms that underlie the erosion of such active interfaces and the two way coupling between interface propagation and emergent flows in the active region. We anticipate that these physical mechanisms underlie segregation and pattern formation in active biological and synthetic settings with emergent flows. Naturally, the next step would be to explore how extracellular polymers—which are implicated in both single cell swimming45,46 and collective biofilm expansion47—impact boundary dynamics in microbial environments. Our results also motivate additional experimental and theoretical studies to explore if boundary conditions governing interface growth and form of passive interfaces may be extended or adapted to active interfaces.

Methods

Preparation of bacterial swarms and imaging

We use swarming Serratia marcescens cultured on on agar substrates. The agar is prepared by dissolving 1 w% Bacto Tryptone, 0.5 w% yeast extract, 0.5 w% NaCl, and 0.6 w% Bacto Agar in ddH2O. This is melted and poured into petri dishes after addition of 2 w% of glucose solution (25 w%). Once the agar cools and solidifies, Serratia marcescens (strain ATCC 274, Manassas, VA) from frozen glycerol stocks are inoculated on the agar plates and incubated at 34 °C. Bacterial colonies form at the inoculation sites and grow outward on the agar substrate, away from the inoculation site. Experiments are performed 12–16 h after inoculation; the bacteria are imaged with the free surface facing down with an inverted microscope. The bacteria were imaged with an inverted Nikon microscope Eclipse Ti-U with a Nikon 20x (NA = 0.45) and Nikon 60x (NA = 0.7) objective. Images were gathered at either 60 or 125 frames per second with a Photron Fastcam SA1.1 camera.

Bacterial velocity fields from PIV

Bacterial velocity fields, v(r, t), were extracted at 3 μm intervals from videos using particle image velocimetry (PIV, PIVLab, Supplementary Note 2). The velocity fields reveal complex transient collective flows at the expanding edge of the colony. Selecting regions of the swarm spanning 100 to 500 μm from the colony edge—where the swarming behavior appears strongest—we calculated the spatial and temporal velocity correlation functions, Crr) and Ctt) using

$$C_r({\mathrm{\Delta }}r) = \left\langle {\frac{{{\bf{v}}\left( {r_0} \right) \cdot {\bf{v}}\left( {r_0 + \Delta r} \right)}}{{\left| {{\bf{v}}\left( {r_0} \right)} \right|^2}}} \right\rangle ,$$
(2)

and

$$C_t({\mathrm{\Delta }}t) = \left\langle {\frac{{{\bf{v}}\left( {t_0} \right) \cdot {\bf{v}}\left( {t_0 + {\mathrm{\Delta }}t} \right)}}{{\left| {{\bf{v}}\left( {t_0} \right)} \right|^2}}} \right\rangle .$$
(3)

Here, the brackets denote and average over reference times t0 and reference positions r0. Pre-exposure, the swarming behavior does not appear to be biased in any particular direction (the swarming speeds are much larger than the speed of the advancing colony front); hence, scalar function defined by (1) and (2) suffice to characterize the flow. From these measurements, we extract a characteristic vortex size of 20 μm and vortex (residence or lifetime) timescale of 0.24 s (Supplementary Note 2, Supplementary Fig. 1).

Exposure to high intensity UV light

To create a passive phase of immobile bacteria, we used standard fluorescence microscope optics to expose cells to high intensity light. The light source is an unfiltered mercury lamp, which has a wide-spectrum that includes a significant amount of UV light (100–400 nm). The response of bacteria to light depends on the wavelength, intensity, and duration of the light48 and is affected by photosensitizers48,49. High intensity light ≥200 mW/cm2 at wavelengths 390–530 nm can lead to increased tumbling, slow swimming, and eventual irreversible paralysis48,49. It is hypothesized that paralysis may be due to flagellar motor damage caused by photosensitizing flavins and dyes that are present in growth media such as LB Broth. Experiments50 with Bacillus subtilis also suggest that photosensitizers can be used to reversibly or irreversibly affect collective motility. Cell death occurs from photodynamic action and UV light-induced DNA damage.

Consistent with previous experiments48,49,50, we found that for swarming Serratia marcescens passivation was not immediate and sometimes reversible; yet for sufficiently large light intensities and exposure times they were rendered permanently passivated. We selected an exposure time of 60 s and light intensity of I = 370 μW (measured at 535 nm) to reproducibly immobilize Serratia marcescens (Supplementary Note 1).

Phase-field order parameters identify interface

We use two scalar order parameters, ϕ and ϕv, based on a phase-field description of the interface region between the active (motile) and passive (non-motile) domains to define, identify, locate, and characterize the interface boundary (see also Supplementary Note 3).

  1. (I)

    From intensity fluctuations: The first scalar order parameter, ϕ is computed from intensity fluctuations, ΔI, defined by the difference in image intensities taken at 0.1 s intervals of the bacterial swarm (Supplementary Note 3). Treating the intensity fluctuation as a measure of the fluctuations in the bacteria density, we define the order parameter at location r by

    $$\phi ({\bf{r}},t) = \frac{{2\left| {{\mathrm{\Delta }}I({\bf{r}},t)} \right| - \left| {{\mathrm{\Delta }}I_{\mathrm{A}}(t)} \right| - \left| {{\mathrm{\Delta }}I_{\mathrm{P}}(t)} \right|}}{{\left| {{\mathrm{\Delta }}I_{\mathrm{A}}(t)} \right| - \left| {{\mathrm{\Delta }}I_{\mathrm{P}}(t)} \right|}}.$$
    (4)

    where |ΔIA(t)| and |ΔIP(t)| are the intensity fluctuations of the active and passive phases far from the interface. Here, −1 ≤ ϕ ≤ + 1, with −1 corresponding to the completely passive phase and 1 corresponding to the completely active phase.

    The interfacial region is fuzzy with finite thickness due to the intermingling of active and passive bacteria. Following classical phase-field approaches, we mathematically define the interface location as the locus of points satisfying ϕ = 0.

  2. (II)

    From velocity fields through PIV: The second order parameter ϕv is based on the velocity fields calculated from PIV (Supplementary Note 3, Supplementary Fig. 3). We define

$$\phi _v({\bf{r}},t) = \frac{{2v^2({\bf{r}},t) - v_{\mathrm{A}}^2 - v_{\mathrm{P}}^2}}{{v_{\mathrm{A}}^2 - v_{\mathrm{P}}^2}}$$
(5)

where \(v_{\mathrm{A}}^2\) and \(v_{\mathrm{P}}^2\) are velocities of the active and passive phases far from the interface and r is the position of velocity vectors sampled at 3 μm intervals. Again we have the bounds −1 ± ϕv ≤ + 1 with the interface location defined as the locus of points satisfying ϕv = 0.

Position and thickness of the diffuse interface

The boundary separating the active and passive phases resembles a propagating and broadening interface. To analyze this behavior, we fit the order parameter profiles to the classical form for a quasi-equilibrium diffuse, moving interface. We use the order parameter fields extracted from intensity fluctuations (Fig. 2) and PIV data (Supplementary Note 3) to obtain averaged one-dimensional phase profiles.

For experiments with the [H] aperture, we choose cartesian coordinates (x, y) with the y = 0 line aligned with the edge of the exposure. For times post-exposure, fields are averaged in the x direction to obtain ϕ*(y, t). Data from experiments then is fit to

$$\begin{array}{l}\phi ^ \ast = {\mathrm{tanh}}\left[ {\frac{{y - d(t)}}{{w(t)}}} \right],{\mathrm{and}}\\ \phi _v^ \ast = {\mathrm{tanh}}\left[ {\frac{{y - d_v(t)}}{{w_v(t)}}} \right].\end{array}$$
(6)

Here d(t) and dv(t) denote the interface location and w(t) and wv(t) denote the diffuse interface thickness.

In experiments using the [O] exposure, we define a polar co-ordinate system with center at the center of the passive phase and obtain an azimuthally averaged, radially dependent value of ϕ*(r, t). Reduced data is then fit to the forms

$$\begin{array}{l}\phi ^ \ast = {\mathrm{tanh}}\left[ {\frac{{r - d(t)}}{{w(t)}}} \right],{\mathrm{and}}\\ \phi _v^ \ast = {\mathrm{tanh}}\left[ {\frac{{r - d_v(t)}}{{w_v(t)}}} \right]\end{array}$$
(7)

where now d(t) is the averaged radius of the passive domain. Since r = 0 is the center of the passive region, Eq. (7) will exhibit significant errors for times close to dissolution (d ≤ w). The length scale over which ϕ varies sharply, w(t) yields the density correlation length characterizing the penetration of active bacteria into the passive phase. The length scale over which ϕv varies sharply, wv(t) yields the momentum penetration length—the length over which passive bacteria are pushed around by the active bacteria without being completely dislodged.

Interface-flow coupling

To compare the structural features of the collective flow with the features of the interface, we calculated the static structure factor of the interface after suitably averaging fluctuations on the order of bacterial lengths. Focusing on experiments with the [H] aperture, we compute the height fluctuation Δh(t, x) = h(t, x) − d(t), where h(t, x) is the interface position interpolated as a function of the arc-length co-ordinate x and d(t) is the mean interface position. Next, the wavenumber dependent Fourier modes of the height fluctuations, Δhq(t), was obtained as

$${\mathrm{\Delta }}h_q(t) = \frac{1}{{{\cal L}_x}}{\int}_{0}^{{\cal L}_x} {\kern 1pt} {\mathrm{\Delta }}h(x,t)e^{ - iqx}{{d}}x.$$
(8)

Here, the wavenumber is \(q = n\pi {\mathrm{/}}{\cal L}_x\) where \({\cal L}_x \approx 200\,{\mathrm{\mu}} {\mathrm{m}}\)). We varies q from 0.015 μm−1, which corresponds to the system size, to 1.0 μm−1, which corresponds to approximately 3 μm (~half a bacterial length). The static structure factor was determined as the temporal-average of the Fourier mode magnitude square, \(\langle {| {{\mathrm{\Delta }}h_q} |^2} \rangle\).

The energy transfer to the surface comes from the flux of momentum flowing into the passive domain from the active domain as active bacteria invade and erode the interface.

The two-dimensional energy spectra of the flow is defined here through the PIV-velocity fields as

$$E(q) = \frac{q}{{2\pi }}{\int} {\kern 1pt} d{\bf{R}}\,e^{ - i{\bf{q}} \cdot {\bf{R}}}\left\langle {{\bf{v}}\left( {t,r_0} \right) \cdot {\bf{v}}\left( {t,{\bf{r}}_0 + {\bf{R}}} \right)} \right\rangle ,$$
(9)

where the brackets here denote averages over r0. For the near-interface case, we calculate E(q) within an [80 × 80] μm2 area, adjacent to the interface (Y ranging from 0–80 μm; average distance 40 μm). For the far from interface case, we calculate E(q) within an [100 × 100] μm2 area with Y ranging from 80 to 180 μm. We varied q from ~0.03 to 1.0 μm−1, corresponding to approximately the size of the region (80 μm) and to the bacterial velocity field spacing (3 μm), respectively. For the [H]-aperture results (Fig. 3), the interface position is a flat propagating line, and Y is the distance normal to this line.

We calculated the autocorrelation function of the boundary position (using the [H]-aperture), defined here as

$$C_{{\mathrm{int}}}({\mathrm{\Delta }}t) = \frac{{\left\langle {{\mathrm{\Delta }}h\left( {t_0} \right){\mathrm{\Delta }}h\left( {t_0 + {\mathrm{\Delta }}t} \right)} \right\rangle }}{{\left\langle {\left| {{\mathrm{\Delta }}h\left( {t_0} \right)} \right|^2} \right\rangle }},$$
(10)

where the correlation is averaged over reference locations and reference times t0. The data is fit to a single decaying exponential, yielding a characteristic decay time τ of 16 s (Supplementary Fig. 9). For characterize the bacterial flow, we measure the normalized spatial correlation of the velocity director v (from PIV) as a function of time Δt and the distance normal to the interface Y, as given by

$$C_{{\mathrm{flow}}}({\mathrm{\Delta }}t,Y) = \frac{{\left\langle {{\bf{v}}\left( {t_0,Y} \right){\bf{v}}\left( {t_0 + {\mathrm{\Delta }}t,Y} \right)} \right\rangle }}{{\left\langle {{\bf{v}}\left( {t_0,Y} \right)^2} \right\rangle }}$$
(11)

where the correlation is averaged over reference locations and reference times t0. The flow correlations are also fit to a single decaying exponential to determine characteristic flow time scales as a function of Y (Supplementary Fig. 9).

Interfacial stiffness and effective temperature

To extract an effective interfacial stiffness κ, we fit the structure factor in Fig. 3c to (κAq2)−1, assuming that the interfacial area is h × LX, where h = 1 μm is the cell width (since the swarm is approximately a monolayer thick5) and LX is the length of the observed interface, 200 μm.

To estimate an effective temperature of the swarm, we use two micron polystyrene spheres as probes of the swarming flows in the active region of the colony (Supplementary Fig. 10). The polystyrene particles are cleaned by centrifugation and then suspended in a buffer solution (67 mM NaCl aqueous solution) with a small amount of surfactant (Tween 20, 0.03% by volume). A small aliquot of this particle solution (20 μL) is gently pipetted unto the bacterial colony in a location where expanding colony front meets the agar. After the polystyrene particles are introduced, we allow the colony to settle for 5 min before imaging. We do not observe any change in the behavior of the swarming bacteria due to the addition of these particles at 0.8% area fraction. We track the particle positions over time using standard particle tracking techniques. We define the (time-averaged) particle speed as the particles displacement (in two dimensions) over a 1 s time interval, allowing tracers to sample multiple vortex structures (characteristic lifetimes ~0.1 s). The particle speed distributions seem to follow a 2D Maxwell–Boltmann distribution (Supplementary Fig. 10b), \(p(v) = v_m\left( {k_{\mathrm{B}}T_{{\mathrm{eff}}}} \right)^{ - 1}{\mathrm{exp}}\left( { - mv^2{\mathrm{/}}2k_{\mathrm{B}}T_{{\mathrm{eff}}}} \right)\), where m is the mass of the polystyrene particle, kB is the Boltzmann constant, and Teff ≈ 2.2 × 105 K, ~700 times the thermal temperature (293 K). This effective temperature is to be interpreted as a mixture temperature purely due to the energy in the swarming collective flows.

Effects of curvature and flow on interface speed

Does an approximate linear relationship between the interface speed, curvature, and a characteristic of the bacterial flow exist for small propagation speeds? Such a relationship may be viewed then as an active analog of the classical Gibbs–Thomson–Stefan boundary conditions for passive systems. Swarming provides the impetus for the motion and keeps the active–passive interface always out of equilibrium. We can directly gauge the intensity of the flow and its activity via measurements such as PIV or particle tracking methods. This is preferable to using temperature or chemical potential that cannot be measured directly and exact forms of which are a matter of debate10,29,30.

To test for correlations between the interface speed, curvature and flow speeds we assume that two independent processes act on the interface leading to erosion and remodeling. The first arises from self-propulsion based interactions at the single bacteria level and is proportional to density of active bacteria ρA. The second acts at longer spatiotemporal scales and accounts for hydrodynamic interactions and collective flow.

With this picture in mind, we look for a minimal linear description of the interface speed (a vector) by constructing linear terms from the relevant vectors and tensors that impact these mechanisms. Let vint(r) be the interface velocity at location r on the interface. Relevant vectors that are expected to influence the interface speed are (A) geometric features of the interface, that is the normal at this location n(r, t) and the tangent vector t(r, t), and (B) features of the collective flow—namely the (collective) bacterial velocity field v. Relevant tensors that are expected to influence the interface speed are (A) gradients of v and the alignment tensor Q that quantifies the orientation of the jammed passive bacteria in the neighborhood of r.

To simplify matters further, and motivated by the mechanisms by which passive bacteria are eroded from the interface, we assume that tangential and normal components of the collective flow are more important than higher order gradients in v. We emphasize however that vorticity and shear gradients in v influence these normal and tangential velocity components. In two dimensions and at a scaling level the vorticity ω ~ |v|/wv. Ignoring quadratic terms and higher order gradient terms in n, t, v, and Q we then write

$$\begin{array}{l}v_{{\mathrm{int}}}{\bf{n}} \approx \rho _{\mathrm{A}}{\bf{A}}_1 + \rho _{\mathrm{A}}{\bf{A}}_2(\nabla \cdot {\bf{n}}) + \rho _{\mathrm{A}}\beta _1({\bf{n}} \cdot {\bf{Q}} \cdot {\bf{n}}){\bf{v}} + \\ \rho _{\mathrm{A}}\beta _2({\bf{n}} \cdot {\bf{Q}} \cdot {\bf{t}}){\bf{v}} + \rho _{\mathrm{A}}\beta _3({\bf{t}} \cdot {\bf{Q}} \cdot {\bf{t}}){\bf{v}} + \rho _{\mathrm{A}}\beta _4({\bf{t}} \cdot {\bf{Q}} \cdot {\bf{n}}){\bf{v}} + \\ \rho _{\mathrm{A}}\left( {\beta _5{\bf{v}} \cdot {\bf{Q}} \cdot {\bf{n}} + \beta _6{\bf{n}} \cdot {\bf{Q}} \cdot {\bf{v}} + \beta _7{\bf{t}} \cdot {\bf{Q}} \cdot {\bf{v}} + \beta _8{\bf{v}} \cdot {\bf{Q}} \cdot {\bf{t}}} \right)\end{array}$$
(12)

with A1 and A2 being functionals of Q, n, and t with Q here comprising density variations and alignment effects in tandem and βk with k = 1–8 being O(1) constants permitted by linearity. The first term on the right hand side reflects local density driven self-propulsion effects present even in the absence of curvature or collective motion. The second curvature term reflects variations in the erosion rate due to geometric effects and bacteria preference to reside near the surface. The other terms describe erosion driven by the collective flow and include normal and tangential velocity contributions. Equation (12) as written cannot be used directly to interpret our data as we do not measure or visualize the alignment field of bacteria in the passive region.

To gain insight into the form of this linear relationship, we studied the trajectories of 2 μm polystyrene tracer particles trapped in the passive phase to identify the sequence of mechanistic events leading to their eventual extraction (Fig. 4a). From observations on dozens of tracers, we find that erosion occurs due to initially trapped passive particles being dislodged from their neighbors, then moving parallel to the surface as they are sheared by active bacteria (Supplementary Movie 6), and eventually escaping and leaving that passive domain due to normal streaming flows that occur between vortices at the interface (Fig. 4a). Guided by these observations of tracer particles escaping from the passive phase (Fig. 4a), we further deduce that anisotropic caging effects result in tangential and normal swarm velocities to affect the dislodgment of the passive particles differently. At the simplest level this incorporates the non-isotropic nature of Q. Incorporating these ideas, we write

$$v_{{\mathrm{int}}} \approx \rho _{\mathrm{A}}(\alpha _1 + \alpha _2{\cal C} + \alpha _3({\bf{v}} \cdot {\bf{n}}) + \alpha _4({\bf{v}} \cdot {\bf{t}})).$$
(13)

Deviations from this form can be attributed to non-linear effects involving curvature and flow, neglect of alignment effects in the passive phase, and density variations in the active phase. While we expect α1 (and thus a1 = ρAα1) to be zero in the absence of flow and curvature, we retain this as a fitting constant as higher order terms and the colony front velocity may lead to a net interface propagation.

Statistical analysis

Each experiment was performed a minimum of N = 4 times for each experimental condition. To test whether the data in Fig. 4c, d could be fit to the equation of a plane (Equation (1) with χ being substituted as either v, vN, vT, or ω), we performed ordinary least square regression analysis to yield the fitting parameters a1, a2, and a3 (Eq. (1)); a t-test with two tails at the 95% confidence interval was used to confirm statistical differences between the null hypothesis and the value of each parameter. Results were considered statistically significant when p-value was <0.05.