Simulation-based inference of cell migration dynamics in complex spatial environments

Jonas Arruda, Emad Alamoudi, Robert Mueller, Marc Vaisband, Ronja Molkenbur, Jack Merrin, Eva Kiermaier, Jan Hasenauer

This research paper presents a modern machine-learning approach to a classic problem in systems biology: understanding how cells navigate through the "obstacle courses" of our bodies. By combining Cellular Potts modeling with Neural Posterior Estimation (NPE), the authors provide a faster, more accurate way to decode the hidden rules governing cell movement.

TL;DR

The authors developed a simulation-based inference pipeline that uses deep learning to automatically "learn" the best summary statistics for cell migration data. This approach allows for highly accurate calibration of complex Cellular Potts Models, outperforming traditional methods and revealing how physical obstacles and chemical signals jointly shape immune cell navigation.

What Problem Does This Paper Address?

Dendritic cells (DCs) are the sentinels of the immune system, migrating through dense tissues and narrow gaps to reach lymph nodes. To study this, researchers use microfabricated "pillar forests" and "mazes" to track cell trajectories.

However, translating these raw trajectories into biological insights is difficult. Scientists use the Cellular Potts Model (CPM) to simulate this behavior, but the model has several "knobs" (parameters)—like chemotactic attraction strength and random motility—that are impossible to measure directly. Traditionally, researchers use Approximate Bayesian Computation (ABC) to find these parameters, but ABC relies on "hand-crafted" statistics (like average speed) that often miss the subtle spatiotemporal patterns created by complex environments.

Methods

The researchers moved beyond human-selected statistics by implementing Neural Posterior Estimation (NPE) using the BayesFlow framework.

  1. The Model: A 2D Cellular Potts Model (CPM) that simulates cells as flexible domains on a lattice, influenced by energy constraints, chemokine gradients, and persistent random walks.
  2. The Summary Network: Instead of picking stats like "mean squared displacement," they built a neural network (combining CNNs, GRUs, and Attention mechanisms) to automatically extract the most informative features from raw cell coordinate data.
  3. The Inference Engine: They used Conditional Normalizing Flows to map these learned features to a probability distribution of the model parameters.
  4. Comparison: They compared this to three variations of ABC, including one that used the neural network as a feature extractor for the ABC pipeline (ABC-NPE).

Datasets

  • Synthetic Data: A training set of 32,000 simulation-parameter pairs generated by the CPM to train the neural networks.
  • Experimental Data: 143 individual trajectories of bone marrow-derived dendritic cells migrating through a microfabricated polydimethylsiloxane (PDMS) pillar array with 10 µm gaps, stimulated by a CCL19 chemokine gradient.

Key Insights and Ideas

  • Amortization is a Game Changer: Once the NPE network is trained (which took about 4 hours), performing inference on a new dataset takes one second. In contrast, traditional ABC methods took up to 20 hours per dataset.
  • Machines "See" Better than Humans: Hand-crafted statistics like velocity and turning angles are interpretable but "lossy." The learned summary representations captured richer patterns in how cells interacted with pillars, leading to significantly more accurate parameter recovery.
  • The Persistence Paradox: Simulations showed that while chemokine gradients provide direction, "persistence" (the tendency to keep moving in the same direction) is the primary driver of how far cells disperse.
  • Traps and Pulses: Interestingly, the model suggested that a constant chemokine gradient can actually "trap" cells behind obstacles. A transient or pulsed signal might actually allow cells to reorient and navigate complex mazes more efficiently than a steady one.

Key Results

  • Accuracy: NPE achieved the lowest error in parameter recovery, with a Normalized Root Mean Squared Error (NRMSE) of 0.20, compared to 0.23 for standard ABC and a much higher 0.48 for ABC based on posterior means.
  • Simulation Budget: NPE required roughly 10 times fewer simulations than ABC to reach a comparable level of accuracy.
  • Experimental Validation: When applied to real-world dendritic cell data, the NPE-calibrated model produced simulations that closely matched the experimental UMAP clusters and cosine similarity metrics, proving the model's "biological realism."

Limitations and Future Work

  • Static Environments: The current model assumes the environment (pillars and chemical gradients) is static. In reality, cells actively remodel the extracellular matrix and consume chemokines as they move.
  • 2D vs. 3D: The study used 2D microfluidic chips. While computationally efficient, real-world migration happens in 3D tissues, which adds another layer of geometric complexity.
  • Cell Heterogeneity: The authors noted that individual cells vary in size and behavior. Future work could involve hierarchical models to quantify these individual differences rather than just finding a population-level average.

Summary updated

BibTeX
@inproceedings{arruda2026simulation,
  author = {Jonas Arruda and Emad Alamoudi and Robert Mueller and Marc Vaisband and Ronja Molkenbur and Jack Merrin and Eva Kiermaier and Jan Hasenauer},
  title = {{Simulation-based inference of cell migration dynamics in complex spatial environments}},
  booktitle = {Npj},
  year = {2026},
  doi = {10.1038/s41540-026-00648-9},
}
Figure