(A) A cartoon of the biophysical model (see Methods). Cells are modelled as beads, connected by springs, with preferred rest length l0. Cells self-propel with a propulsion force fa. It is assumed that cells regulate the direction of fa, and this regulation is modelled by a function ω, which includes a self-regulatory element, implemented as a confining potential Uω (shown as blue lines in the panels above cells). The value ωi of each cell is represented with an orange dot and its affected by random fluctuations, a mechanical feedback from neighbouring cells (Vω, red arrows), and an external signal fext, present at the ends of the track L (green arrow) (see Eq. (5)). (B) Example of reversal process: the snapshots show a coordinated filament approaching the border (top); after reaching it, the closest cells reverse their propulsion under the action of fext (centre). This prompts the rest of the cells to reverse and the filament coordinates again to travel in the opposite direction (bottom). (C) Simulated trajectories (gray lines) and absolute speed value (orange lines) as a function of time, presented as in (Fig. 1B, for Nf =70 units in a track of length L/l0 =400. The different panels display a typical trajectory for a well behaved filament (top, Kω = 20, ωmax = 30), a filament with little cell-to-cell coupling (centre, Kω = 1, ωmax = 30) or with little memory (bottom, Kω = 30, ωmax = 1). The gray bands highlight reversal events and their duration. (D) Contour plots of the synchronisation S (top) and of the reversal efficiency M (bottom) as a function of the cell-to-cell coupling Kω and of the cell memory ωmax. Black symbols highlight the systems showcased in panels (C).