Motifs in self-organising cells
Small recurring patterns among neighbouring cells build up into larger ones, and can predict where a whole group will move next.
Read the paperMachine Learning: Science and Technology, 2026

Patterns within patterns: reading the hidden grammar of self-organising cells
Birds in a flock, fish in a school, cells in a tissue. Collective behaviour is everywhere in nature, and it has puzzled scientists ever since Philip Anderson’s 1972 observation that “more is different.” The trouble is that when many simple parts interact, what emerges at larger scales often looks nothing like the parts themselves, and is notoriously hard to describe.
In a new paper in Machine Learning: Science and Technology, we propose a way to chip at this problem. The idea is to look for motifs, meaning small groups of objects that form recurring, persistent patterns, and then build a hierarchy of motifs across length scales. A few cells form a neighbourhood motif. Neighbourhoods clump into clusters. Clusters assemble into larger structures like rings, spirals, or travelling bands. Each level reveals features that the level below cannot see.
To test the idea, we simulated thousands of cells interacting through two simple behaviours observed in real biology: contact-following, where cells tag along with their neighbours, and contact-inhibition, where cells repel after touching. Tuning the strength of these two rules produced a zoo of patterns: disordered swarms, slow-moving blobs, rotating aggregates, hollow rings, polar bands.
What the motif lens revealed was striking. The compact aggregates do not behave like rigid crystals but like strained, compressible packings. Cells pack more tightly toward the centre, and the defects (places where a cell has five or seven neighbours instead of the usual six) drift around in alternating chains rather than sitting still as they would in a solid. Even though long-range order is missing, there are clear local rules.
Spirals turn out to oscillate. The mean spacing between neighbouring cells alternates in time, capturing how a spiral mound stretches into an elongated form and folds back into a rounder one. The same statistical fingerprint cleanly distinguishes spirals from stable aggregates and from chaotic disordered systems.
Machine learning makes the framework sharper. A simple neural network, fed only motif features from a single snapshot, can recover the two hidden interaction parameters that generated the simulation. In effect, it solves the inverse problem of asking what rules produced a given movie. Unsupervised clustering of the same features rediscovers, with very little human guidance, the same behavioural “phases” that the original simulation paper had identified by eye.
Perhaps most interestingly, climbing one level up the hierarchy, from cell neighbourhoods to clusters, reveals a new emergent motif: a pair of counter-rotating vortices at the front of a moving aggregate. The positions and relative strengths of these dipolar vortices predict where the whole aggregate will travel next, and which way it will turn. Smaller motifs hierarchically build into larger ones that capture the collective’s macroscopic behaviour.
But we still have a ways to go. Motif features are not thermodynamic variables, and the framework needs testing on real experimental data. Time-lapse microscopy of Dictyostelium slime moulds is one obvious next target. But the broader idea is appealing: any system too tangled to describe with a single global theory might still be readable as a hierarchy of small, repeating, interpretable patterns. A kind of grammar for emergence.
Related work
- Coarse-graining and classifying massive high-throughput XFEL datasets of crystallization in supercooled water Crystals, 2025
- A multiscale generative model to understand disorder in domain boundaries Science Advances, 2023
- Learning motifs and their hierarchies in atomic resolution microscopy Science Advances, 2022