A lab studying the evolution of flocking through neural networks and genetic algorithms, with alignment, collision and clustering metrics.
Problem
The classic Boids algorithm produces flocking with fixed rules. Can agents discover those rules themselves? Which local information is sufficient for collective motion?
Approach
Each boid receives 14 inputs: velocity, neighbour position, alignment, separation, neighbour density, edge distance and corner urgency. Two hidden layers (8+6 neurons) produce four outputs: turn, speed change and edge-avoidance components.
Method
JavaScript + Canvas; Neuroevolution-based population evolution; elitism, mutation, vision radius and edge-behaviour parameters; bird/fish/drone/arrow themes; live generation and collision statistics.
Findings
The simulation shows whether randomly initialised agents learn to survive longer and move without collisions across generations.
Status: Live. Live parameter updates and a multi-seed report are planned for the next release.
Limitations
Although visually compelling, a single metric set and limited seeds do not support statistical generalisation. “Swarm intelligence” here does not claim to be a one-to-one model of biological flocking.