Birds, Boids and Band-Aids


Posted on

Birds flocking in the sky

Introduction

Eager to spend my summer gaining experience (and money), the opportunity to intern as a researcher in the MARS departmentwith the MARS: Mathematics for AI in Real-world Systems group was one I was not willing to pass up on. Over the eight weeks, I redeveloped an interest in cell biology, that I had previously believed to be left behind at GCSE, and experienced firsthand how maths and AI can be used in real-world systems.

Wound Healing

Whenever I fell over at primary school, teachers would hand me a wet paper towel and tell me that thise seemingly ordinary object could magically fix all wounds. While my cuts and grazes would always eventually heal, the ‘magic’ was actually an invisible four-step process over the course of many weeks.

  1. Haemostasis: If the lining of blood vessels is broken, nearby uninjured blood vessels will constrict to limit blood loss while a blood clot is formed to seal the wound and protect from contaminants.
  2. Inflammation: Activity of the immune system is increased to enable inflammatory cells to remove bacteria and debris from the damaged area by phagocytosis, while macrophages produce cytokines, in particular TGF-beta, to stimulate chemotaxis.
  3. Proliferation: Skin begins to repair as myofibroblasts exert pulling forces on the extracellular matrix, causing wound contraction (the amount of which is factored by size, shape, depth and location of the wound) after the clot is broken by proteins and replaced by granulation tissue.
  4. Maturation/Remodelling: The longest stage of wound healing involves collagen connecting to other collagen molecules for strength and cytokines binding to surface receptors for increased cell response to increase the tensile strength of new tissue, although this will never be to the same level as pre-damage.

My project used this context to investigate cell movement using Python simulations and articles on cell behaviour.

Boids Model

Developed in 1986, Craig Reynolds’ Boids Model simulates aggregate motion of a flock of bird objects (‘boids’) as a result of interactions of relatively simple behaviours of individual boids. At the very heart of flocking is the individual’s desire to stay close to the flock for evolutionary advantages such as protection from predators and a larger, more effective search for food, whilst still avoiding collisions within the flock. To simulate this, Reynolds proposed the three main flocking behaviours to be collision avoidance, velocity matching and flock centering. While a single bird is not comparable to a single cell, the stochastic movement of cells in groups resembles the flocking behaviour that the Boids model simulates.

Leader-Follower Cells

Within a group of cells, there are two types, each of which has a different role to play in collective cell movement. Leaders play the biggest role in guiding the direction, with their increased energy metabolism and consumption compensating in response to a physically challenging environment. They are more migratory but less proliferative than follower cells, whose main role is to extend protrusions to leaders and other follower cells to maintain cell neighbour relationships within the collection of cells. The roles of both leader and follower are not fixed, as depleted leader cell energy leads to a high-energy follower cell assuming the leader position to sustain invasion. While both have different roles, a coordinated relationship between leaders and followers is key in reducing healing time.

Chemotaxis

During the inflammation stage of wound healing, chemotaxis is a key cell behaviour involving fundamental properties of cells, including the ability to move, communicate with the environment, and regulate cell shape. Specialised protein receptors on the cell surface sense an external chemical gradient and translate this into directional movement of the cell to either attract towards or retreat away from the repellent. Absent chemotaxis has been linked to defects in wound healing, due to a lack of control over cell speed and direction during wound closure.

Graph showing Gaussian chemical field when chemical spread (sigma) = 0.6

Figure: Gaussian chemical field when chemical spread (sigma) = 0.6

My Implementation

After multiple iterations, my final Python model simulated cell movement, using the Boids model as a basis, before incorporating the behaviours of cells in response to chemotaxis and follower cells in response to leader cells.

Steps:

  1. Follower cells (colour changing in the viridis map according to speed) and leader cells (in red) are randomly distributed within a 1cm radius circle around (2.5,2.5).
  2. Followers are randomly assigned an initial speed and direction and their speed is capped at a maximum limit to maintain realistic movement. Leaders are given a pre-determined trajectory to model independence of follower cells and decaying velocity to simulate energy loss over time.
  3. A concentration field creates a 2D Gaussian with the highest concentration being centred at (5,5).
  4. At each timestep, followers move according to Boids flocking rules of collision avoidance, flock centring and velocity matching, and in response to increasing chemical concentration and leader movement.
  5. In order to measure clustering, the Clark-Evans R nearest neighbour statistic compares observed nearest neighbour distances to what would be expected from a Normal distribution. A value less than 1 indicates significant clustering, while DBSCAN clustering estimates the number of clusters found amongst follower cells.

Conclusion

Using this model, I was able to investigate the effect each variable had on the clustering of cells after 5000 timesteps.

The first finding is that increased chemical spread results in a group converging around high chemical concentration in less time, as shown in the following figures. This implies that higher chemical spread would decrease wound healing time as cells would be attracted to the affected area faster.

Graph showing result of simulation after 5000 timesteps when sigma = 0.2

Figure: Result of simulation after 5000 timesteps when sigma = 0.2

Graph showing result of simulation after 5000 timesteps when sigma = 2

Figure: Result of simulation after 5000 timesteps when sigma = 2

Another finding was that an increased number of leaders decreased leader dependency and resulted in more randomness, which is not productive in wound healing as it would take more time for important healing molecules to travel to where chemical strength is highest.

Grraph showing result of simulation after 5000 timesteps with 2 leaders

Figure: Result of simulation after 5000 timesteps with 2 leaders

Figure: Result of simulation after 5000 timesteps with 20 leaders

Based on these results, the next steps are to investigate both the relationship between the number of leaders and chemical spread and the effect of moving the centre of the chemical field and increasing the number of chemical fields.

Skills I’ve Learnt From this Internship

Over the 8 weeks of the internship, I’ve learnt how to work independently to review mathematical literature and how to communicate ideas I feel are significant to my supervisors. Many hours of trial and error (and plenty of mistakes) forced me to become more comfortable with using software such as Python and LaTeX. Overall, the internship has improved my confidence in a number of helpful skills for my future career, and I’m very grateful to have had the opportunity.

Related Blogs


Disclaimer

The opinions expressed by our bloggers and those providing comments are personal, and may not necessarily reflect the opinions of Lancaster University. Responsibility for the accuracy of any of the information contained within blog posts belongs to the blogger.


Back to blog listing