Yen
Chiu
a,
Jui-Lin
Hsu
ab,
Chien-Jung
Lo
*ab and
Yonggun
Jun
*a
aDepartment of Physics and Center for Complex Systems, National Central University, Taoyuan 320, Taiwan. E-mail: yonggun@phy.ncu.edu.tw
bInstitute of Physics, Academia Sinica, Taipei 115201, Taiwan. E-mail: cjlo@as.edu.tw
First published on 24th November 2025
Bacterial swarming is a phenomenon characterized by the rapid migration of microorganisms on a surface powered by flagella. While extensive studies have explored various factors influencing swarming dynamics, the impact of length variation within a single strain on swarming remains to be elucidated. Here, we investigate the effect of length variants within a single strain, Vibrio alginolyticus, as an ideal model to explore the cooperative mechanisms driven by a heterogeneous, flexible population. Through individual cell tracking, we found that cell length directly impacts collective organization. Long, flexible cells move faster and more persistently than shorter cells, promoting the emergence of large-scale, coordinated flow. In contrast, shorter cells slow down due to frequent reverse movements, which create spaces and prevent jamming within the dense colony. This division of labor, where longer cells act as leaders and shorter cells serve as buffers, facilitates efficient collective movement and demonstrates the significant advantage of phenotypic heterogeneity within a single strain for robust swarming. Our findings suggest that the diversity in length of active matter may facilitate efficient spreading across soft interfaces.
From a dynamic perspective, numerous studies have explored the flow fields observed in bacterial swarming to gain a comprehensive understanding of swarming dynamics, ranging from smaller to larger scales. These studies encompass chaotic trajectories,14,15 active turbulence,16–18 and active nematic defects.19–21 Central to these analyses are the correlations and the distributions of velocity and vorticity, with particular emphasis on their temporal and spatial characteristic scales. These swarming dynamics are known to be influenced by long-range hydrodynamic interactions and short-range repulsion due to volume exclusion.19,22–24
Recently, the effect of different cell aspect ratios on these dynamics has been studied.13,25,26 One study on a single-strain with length-mutated Bacillus subtilis (hereafter B. subtilis) has shown that the strain with an aspect ratio close to the wild-type cell exhibits faster movement. In contrast, for the system of two length-mutated strains, a small proportion of longer cells enhanced the movement of the entire population while the longer cells tended to move more slowly.23 Despite these findings, the measurements were often averaged across entire strains, potentially masking the specific roles of individual cells with different lengths. This raises intriguing questions about the contribution of individual variants within the same strain to swarming behavior.
To investigate this issue, we experimentally examine the dynamics of mono-layered bacterial swarming of variants of Vibrio alginolyticus (strain YM19), an elongated flexible bacterium that exhibits a range of lengths within a single strain. By tracing the positions of single cells, we found that longer cells are more motile and contribute to the aligned collective motion observed in swarming, while shorter cells tend to exhibit more lateral movements and reversals, which create space within the swarm. This combination of behaviors enhances the overall motility of the cell swarm. As a result, swarming bacteria with length heterogeneity are able to travel quickly and effectively together, demonstrating that length variation can be advantageous for collective movement.
The paper is organized as follows: in Section II, we provide a detailed explanation of our experimental methods and image analysis. Section III presents the length distribution of cells within a single strain and explores the diverse motions of cells with varying lengths. Section IV discusses the impact of cell lengths on the coherent and density fields. In Section V, we identify the lengths of swarming clusters and examine the role of long cells within these clusters. Finally, Section VI summarizes our conclusions.
Prior to the plate making, a scratch of YM19 is taken from −80 °C stock and cultured overnight in 5000 µL autoclaved growth medium (supplemented with 3% NaCl, 0.5% polypeptone, 0.5% yeast extract, 0.4% K2HPO4, and 0.2% glucose) at 30 °C. As representative bacteria in the group of robust swarmers, YM19 exhibits swarming behavior on hard agar surfaces, in contrast to the temperate swarmers.9,12,25 0.5 µL YM19 overnight culture was then inoculated at the center of a 30 mm glass-bottom Petri dish filled with 1% agar, as shown in Fig. 1(a). A swarming colony expanded after a lag phase, and it was recorded approximately 6 hours after inoculation.
To investigate individual cell dynamics, we analyzed 500 frames of images over 10 s intervals and tracked ∼240 cells (∼10% population) in each frame, which is sufficient for active cells to traverse the field of view and provide a representative sampling of swarming dynamics. For the study of bacteria spatial distribution, we separately analyzed two 10-frame bursts separated by 10 s, yielding snapshots of ∼2300 to 2400 cells per frame that capture collective organization. Since the swarm evolves continuously under non-equilibrium growth, two bursts with a finite sampling window capture spatial organization at a well-defined stage of colony expansion. We also used another ImageJ plug-in, OrientationJ,33 to extract the orientation of bacterial arrangement and the alignment coherence.
or speed |
| was calculated from the midpoint displacements between consecutive frames, divided by the frame interval (0.02 s). It provides a reproducible metric of motility at our experiment resolution.
Identification of swarming cluster, representing the rapid collective behavior, requires a robust measure to prevent misclassifications caused by local motion of elongated cells. To achieve this, we computed body-averaged speeds by choosing points along the cell centerline and averaging their displacement between consecutive frames. Active motile cells were defined as those with a body-averaged velocity greater than 10 µm. We then connected nearby candidate bacteria based on spatial proximity, using a threshold distance of 0.95 µm (∼1.2 × cell width). Clusters containing at least 2 members were classified as swarming clusters to effectively represent collective motion. After the initial grouping, an optional refinement step was performed to ensure that the mean velocity difference within each group was within 25 µm s−1. Although this step rarely changed the results, it helped to confirm that identified clusters exhibited robust collective motion.
Statistical significance among different groups based on cell length or cluster size was evaluated using Kruskal–Wallis test followed by Dunn's post-hoc test with Dunn–Šidák correction, which are suitable for non-parametric data distribution.
Next, we turn our attention to the individual behavior of cells. Since the spatial configuration of bacteria is not uniform, their motions can be different. Fig. 2(a) and Movie S1 demonstrate the diverse motions of several bacteria. The cell trajectories were determined by tracking the midpoint of the bacteria over a 2-second period. We observed three distinct patterns of the trajectories: (i) the short runs accompanied by the irregular rotation, (ii) the wiggle motions, and (iii) the long and smooth trajectories. Longer cells (yellow-green) show smooth and persistent navigation, and short cells (green) prefer to exhibit irregular rotations and intermittent dash runs. Cells of intermediate length tend to follow curved paths that lie between the aforementioned trajectory styles.
![]() | ||
Fig. 2 (a) Trajectories (pink dashed line) of example bacteria on the snapshot of the microscope within 2 s, where the example bacteria are colored based on their lengths. (b) and (c), mean square displacement and the midpoint speed distribution of the bacteria according to their group of lengths, respectively. The gray lines in (b) are the fitting curves according to eqn (1) and the inset in (b) indicates the persistence time, τ, for the four length groups. (d) and (f) The sketches of the measurement on θRv and θv, respectively. The sketches below are the criteria for (d) the active and passive motion and (f) the forward and reverse motion. Green lines, red arrows, and the dotted green arrow denote the measured bacterium in time series, the velocity at the nearby time, and the main axis of the bacterium, respectively. (e) The histogram of the angle θRv between the main axis of each bacterium and the velocity at the middle point, where the gray area belongs to the active motion. (g) The histogram of the angle θv between the midpoint velocity of the bacteria t and t+dt in the time nearby with the time interval 0.02 s and the measurement based on the sketch in (f), where the gray area belongs to the forward motion. Different lines in (e) and (g) represent different length groups of bacteria as the color label in (c). | ||
To quantify the motility of the cells, we calculated the mean square displacement: MSD = 〈|
(t + Δt) −
(t)|2〉, where Δt is the lag time and
is the position vector of the cells. As shown in Fig. 2(b), MSD values of the longer cells are higher than those of shorter cells, indicating the longer cells move faster. Furthermore, the cells exhibit super-diffusive behavior at short times, with scaling exponents α ranging from 1.6 to 1.8 and the Brownian-like diffusion at long time scales [Fig. 2(b)], regardless of the length groups. Thus, with two exponents of Brownian-like and ballistic-like motions, we can rewrite the MSD as follows:34
| MSD = 2DA[Δt − τ(1 − e−Δt/τ)] | (1) |
), for each length group. Here, velocity is defined
= [
(t + Δt) −
(t)]/Δt at the middle point vector,
, of the cell. The stretched tails in P(
) of the long cell groups compared to those of the shorter counterpart groups further illustrate this trend [Fig. 2(c)]. This finding is inconsistent with the previous study,23 which found that shorter cells move faster. It may come from the fact that YM19 has a flexible body in contrast to the rigid body of B. subtilis. Additionally, the groups of short bacteria display an exponential decay in their speed distribution, indicating that these short cells do not retain a memory of their motion [Fig. 2(c)]. Importantly, these behaviors are not solely determined by the number of lateral flagella but are also shaped by intercellular interactions.
Further analysis explores additional possible factors that contribute to the intricate interaction among cells. Propelled by the flagella, the rod-like swarming bacteria can only navigate along their main axis. However, in a densely populated environment, jostling motion becomes inevitable, leading to lateral movements. The sketch in Fig. 2(d) illustrates these two possible movements (active and passive motions) of the bacterium. The former indicates the motion powered by itself, and the latter is induced by the collision with other cells. While bacteria typically exhibit a combination of both types of motion, the dominant motion can be classified according to the prevailing mode. The passive and active motions can be quantified by assessing the angle θRv and the velocity
= [
(t + Δt) −
(t)]/Δt, where θRv is measured between the end-to-end vector
of the cell. In the figure, the gray area represents the active dominant motion with |θRv| smaller than 45° or greater than 135°, and the other belongs to the passive motion. The probability density function (PDF) of θRv, P(θRv), in Fig. 2(e) shows that P(θRv) of short cells at the passive region is higher than that of other groups, indicating that the motion of short bacteria is more likely to be affected by neighbors.
Additionally, YM19 displays a bilateral motion, as shown in Fig. 2(a). It moves backward when its movement is restricted by its surroundings, indicating that bacteria adapt to reverse motion to avoid jamming. As shown in Fig. 2(f), the degree of reverse motion is measured by the angle change θv between the velocities over time
(t) and
(t + Δt) with Δt = 0.02 s (red arrows). The reverse motion is identified when |θv| is greater than 90°; otherwise, the bacteria continue moving with the same midpoint considered as the forward motion. The histogram of θv in Fig. 2(g) shows that short cells exhibit reverse motion more frequently than long cells.
The re-alignment process is closely linked to cellular interactions, as illustrated in Fig. 3(b). We compared the midpoint speed |
| and coh surrounding a specific bacterium to the moment of its passive motion (yellow intervals) over time. As also demonstrated in Movie S3, passive motion is caused by jostling between individuals and is correlated with decreased local coh. It is clear that the cell experiences a reduction in velocity, |
|, during passive motion, followed by an immediate increase in speed afterward. This behavior arises from a series of realignments driven by collisions within the dense population, allowing the bacterium to navigate quickly and directly by joining a swarming group with high coh. Shorter cells, being more influenced by their neighbors, contribute to improved local swarming efficiency through this passive motion.
This phenomenon is illustrated in 2D joint histograms for two groups, the shortest (3.1 µm) and longest (>9.5 µm) length groups, as shown in Fig. 3(c). In both groups, ϕ is strongly correlated with coherence coh. However, the cells in the longest length group are localized in the region where both ϕ and coh are high. These longest cells exhibit higher velocity, primarily localized at higher ϕ and coh. In contrast, the cells in the shortest length group move slowly but are distributed over the entire ϕ and coh. These observations highlight the relationship between cell length and their swarming dynamics as well as their collective behavior. The long cells are found in highly aligned and concentrated swarming areas, whereas the short cells are less aligned with their neighboring cells, even in regions of high concentration.
Fig. 3(d) presents the average values of the coherence field 〈coh〉, density field 〈ϕ〉, and the speed 〈|
|〉 for four different length groups. These values support the trends visually observed in Fig. 3(c) and (d) and further highlight the difference between short and long cells. The density 〈ϕ〉 remains steady at around 0.8 across all lengths, reflecting that bacteria, especially longer cells, spend most of their time within dense packs. Moreover, the mean velocity 〈|
|〉 exhibits a clear upward tendency with increasing bacterial length, consistent with previous findings in Fig. 2(b), (c) and 3(c). In contrast, the coherence field 〈coh〉 also increases with cell length, largely due to the benefits of volume exclusion presented by longer cells.35 This property enhances the organization of neighboring cells, intensifying the clustering effect. However, the saturation of 〈coh〉 can be attributed to the flexible structure of long YM19 cells, which allows for greater adaptability to varying environmental conditions.
| and direction field vθ within 0° to 360°, respectively. When a high-velocity group emerges, the alignment of bacterial cells along their swarming directions becomes important. The clusters are predominantly composed of bacteria with similar movement patterns. The alignment of cells fosters positive feedback in collective motion, allowing high-speed cells to carry surrounding cells through slight realignments by collisions. These active swarming clusters, mostly colored in light blue, are apparent and associated with faster motion, close to 40 µm s−1, deviating from most other bacteria, which are colored in deep blue [Fig. 4(a)]. In contrast, in less active regions (deep blue), bacterial motion is characterized by frequent reversals, irregular rotations, and short runs, as noted in Fig. 2(a). Moreover, the areas with inhomogeneous vθ reflect slower velocities or even the immobility of cells, indicating that the bacteria are jammed due to the surrounding bacteria having different alignments since YM19 can only move toward its end directions.
Fig. 4(c) shows the spatial correlation g(r) in relation to coh, |
|, and vθ, which is defined as
![]() | (2) |
|, and vθ for each g(r) curve, respectively. An exponential decay was observed in three of the g(r) curves. The vθ curve exhibits the steepest decay rate, with a corresponding correlation length of vθ (about 2.2 µm), which is shorter than that of |
| (about 4.0 µm). The correlation length of coh falls in between these two values, as coherence can be enhanced in both active and inactive regions through the jostling of bacteria, as shown in Fig. 3(b). The rapid decline of all the spatial correlations indicates a short-range interaction between cells associated with the limitation of velocity coupling. Only nearby cells significantly influence each other's velocities, resulting in localized interactions where dynamics heavily depend on the local cell configuration.
As previously discussed, since swarming clusters are characterized by rapid and collective motion, we can determine their size based on experimentally obtained information. Although high-speed cells predominantly maintain their speed as they move in a consistent direction, a small fraction may occasionally deviate from this path, though such instances are infrequent and typically short-lived. Therefore, we identified swarming clusters by selecting actively motile cells (body-averaged speed ≥10 µm s−1, based on Fig. 4(a)) and grouping those in close proximity. Clusters with more than two members exhibited stable collective motion and were classified as swarming clusters (see Methods for details). In this context, we define the size of a swarming cluster, denoted as n, as the total number of bacteria within the cluster. We note that only swarming clusters with n > 2 are considered since they effectively represent collective motion. Fig. 4(d) illustrates the spatial configuration of the resulting swarming cluster within the observed window, depicted in distinct vibrant colors. Bacteria colored in white and gray are associated with the small active region and inactive region, respectively. Those swarming clusters tend to form a comet-like shape with a stretched tail, followed by a mass of bacteria that contributes to higher motility within the colony.36 The left and right panels of Fig. 4(e) compare the occupied area to the number of bacteria, categorized into three regions: the swarming cluster, the small active region, and the inactive region. For the swarming cluster, the number fraction decreases in comparison to the area fraction, indicating that longer cells are predominantly found in this area, while shorter cells are mainly concentrated in the inactive region.
Fig. 4(f) shows the size distribution of the swarming clusters with an average size of approximately 20 cells. The temporal variations in the sizes of these swarming clusters result from splitting and merging clusters or active cells over time. Several studies37,38 assuming cells as rigid rods showed that it has a power law decay, p(n) ∼ n−β, whose scaling exponent β is between 0.9 and 1.3. However, in our system, β is approximately 1.7, which can be attributed to the long and flexible bodies of cells, as well as the diversity of cell lengths. It also agrees well with the experiment of a 2D model of Myxococcus xanthus35 and the simulation of the dense system of flexible self-propelled rods, interacting by a soft volume exclusion.39,40
Fig. 5(c) and (d) depict the bacterial clusters (represented by white cells), emphasizing the top one (c) and two (d) longest cell groups in colors. The bacteria colored in pink are the long cells that do not belong to the swarming clusters. Fig. 5(c) shows that most of the long cells (the longest group) move within or in proximity to the swarming clusters, addressing the significant role of the long cells in the formation of swarming clusters again. When the criteria for long cells are adjusted to include a shorter length range (top two longest length groups), a noticeably greater number of long cells are found outside the cluster, as shown in Fig. 5(d). These indicate that the long cells move fast and lead the movement of the shorter cells, which constitute a majority of the population.
The key finding in this swarming system is that the heterogeneity in cell length within the same strain provides a functional advantage that enhances the efficiency of bacterial swarming in the compact state. This effect is achieved through a cooperative division of labor among cells of different lengths. The longer cells exhibit higher motility and typically lead the swarming clusters, while the shorter cells, which make up the majority of the population, act as a buffer. This observation contrasts with previous findings in B. subtilis, where the motility of long cells is lower than that of short cells.13,25 This discrepancy can be attributed to the characteristics of V. alginolyticus, which possesses a longer and more flexible body than B. subtilis. As a result, V. alginolyticus can maneuver around obstacles by bending, avoiding the formation of immobile clusters that occur in the more rigid, rod-like B. subtilis. Consequently, the trajectories of longer V. alginolyticus cells display sustained and smoother patterns of movement.
Beyond individual motility enhancement, cell length also significantly impacts collective alignment through volume exclusion, a crucial factor in dense monolayer systems.35 Our analysis reveals that when short cells collide, they may simply deflect, experiencing relatively weak geometric constraints that would force perfect alignment. In contrast, the long cells impose stronger geometric restrictions, which limit their rotational freedom, enhancing their tendency to align with neighbors and the local flow. This length-dependent enhancement of alignment, stemming directly from cell shape, appears to be a key factor promoting the large-scale coordinated flow and emergent order characteristic of bacterial swarms. Cell length, therefore, directly amplifies the organizational impact of volume exclusion on collective dynamics.
These microscopic interactions and alignment tendencies collectively shape the macroscopic structure and dynamics of the swarm, such as density and alignment coherence across space and time. These fields exhibit distinctive swarming patterns, with local fluctuations reflecting the intensity of collective movement. High-coherence regions correlate with high density, signifying the presence of strong collective motion, where bacteria move swiftly as a cohesive swarm. In addition to alignment driven by volume exclusion, the realignment through jostling between cells is crucial in indirectly enhancing both coherence and propagation speed, promoting the stability of swarming clusters. Conversely, low-density regions lead to decreased coherence, resulting in the disintegration of swarming clusters or the formation of new ones.
These swarming clusters are crucial to the population transport, with bacteria motility amplified by collective interactions that strengthen as the cluster grows. The long cells play a crucial role in driving and maintaining swarming clusters despite their relatively small portion of the total population. Moreover, the presence of long cells directly influences the size of the clusters. Hence, as the clusters grow larger, the number of cells with the longest length increases consistently. In contrast, although the short cells constitute the majority of the population, a smaller number of cells than the average number of short cells in the total population participated in the swarming clusters, suggesting that they are either accompany the swarming clusters as background cells or are even excluded.
By integrating these observations, we propose that long and short cells play distinct yet cooperative roles in swarming. The long cells move quickly, align strongly, and appear to initiate and drive the dense, rapidly moving clusters. A large portion of short cells is located in lower-density regions between clusters. Here, they may act as buffers, mitigating alignment between clusters, potentially preventing jams between clusters, and maintaining open pathways. The fact that larger clusters contain more short cells suggests a system where the group's capacity and efficiency benefit from this teamwork between different cell lengths. Such collaboration, using a mix of lengths, might not be possible in groups where all cells are the same short length.
In conclusion, this study highlights the importance of cell length variation in understanding microbial collective motion. By analyzing the behavior of V. alginolyticus with varying lengths within the same strain, we discovered that longer cells drive collective motion and alignment within clusters, while shorter cells create buffers for new cluster fronts, which demonstrates how heterogeneity can be a crucial factor in enabling efficient and robust collective behavior. Our findings provide insights into the fundamental principles of self-organization in active matter, potentially enhancing our understanding of collective dynamics in other biological systems. Further investigations are necessary to explore these principles across different species and environmental contexts.
Supplementary information (SI) is available. See DOI: https://doi.org/10.1039/d5sm00798d.
| This journal is © The Royal Society of Chemistry 2026 |