← Back to projects

Physarum urban

research into slime mold capabilities with AI

The slime mold Physarum polycephalum is one cell with no brain. Its tubes thicken where flow runs and fade where it doesn't, leaving a short network with spare routes. I commute two hours a day, so I wanted to know if that rule could plan transit. With Claude as my coding partner, I turned it into code and tried it on cities, a border region and a drone frame.

Davis transit backbone

May 2026 · Python, OpenStreetMap

My first real test: the slime-mold model from Tero et al. (2010) on the streets of Davis, California, with ten transit hubs as food. One setting slides it from lean to redundant, and I turned the lean network's flows into four bus tiers.

105 kmlean backbone from 301 km of road; the redundant setting keeps 167.5 km

Street map of Davis, California on a cream background with ten labelled transit hubs. Routes are coloured by service tier, from thick dark red for every 10 minutes to thin tan for hourly feeders, with a legend and a 1 km scale bar.
The lean backbone as a service plan: the strongest corridors become 10-minute routes. Tier cut-offs are fixed shares of flow, not a ridership model. Map data © OpenStreetMap contributors.

Resilience Lab

May 2026 · browser app

Then I turned the question around: which roads would hurt most to lose? The app flags single points of failure, stress-tests the network with the slime mold and weighs upgrade cost against resilience.

6street segments flagged as critical on 433 km of Davis streets (the app's own road import), though none disconnects anything if removed

Screenshot of a dark web app titled Physarum Resilience Lab. Sliders for demand, solver and failure settings on the left, a faint street map of Davis with pink hub markers in the middle, and on the right the network stats, six vulnerability hot-spots and a selected plan with 0.00 km of roads to upgrade and 99.7% resilience.
Removing any flagged segment costs 0.0% connectivity and 0.2–0.5% efficiency. The selected plan upgrades 0 km of road, so its 99.7% resilience comes with no reinforcement at all. Map data © OpenStreetMap contributors.

ARIA

May 2026 · built in a day for Defence Hackathon 2026 × Aalto Defence · code

The same algorithm on the roads of North Karelia, on Finland's eastern border. It ranks the corridors and bridges the network leans on, checks the bridges against the national bridge register, and regrows a route when you cut a road. Teammates' terrain scores are blended into the bridge ranking.

17.2 → 37.5 kmEno to Uimaharju before and after one cut on Road 73, in the run shown

Two map panels of lakes and roads in North Karelia. Left, before: a highlighted route runs north from Eno to Uimaharju past a marked cut point on Road 73. Right, after: that road is cut and a green route has regrown on a longer path to the west and north.
The route search has random starts, so runs differ: four made for this page, this one included, gave 17–22 km before the cut and 35–48 km after. Map data © OpenStreetMap contributors; roads also from Väylävirasto (CC BY 4.0).

Flood-aware bike plan

May 2026 · Somerville and Medford, Massachusetts · open data

A bike network to the seven Green Line Extension stations, weighing distance, slope, crashes, flood zones and equity. The solver comes from my PhysarumGPT prototype, where Claude turns a plain-English goal into the solver's two settings. Here I set the weights by hand, and Claude only wrote the memo, which tied the wrong figure to the flood test: 45.4%, the share of homes the network reaches.

28%of homes (17,650 of 63,320) lose every route to a station if every street touching the 100-year floodplain closes, bridges included. Almost all are across the Mystic River in Medford.

Map of Somerville and Medford on cream. Dark lines of varying weight mark the priority bike network linking seven rust-red station dots from Lechmere to Medford/Tufts. Blue-grey patches show the floodplain along the Mystic River, red rings mark flooded crossings, and the streets north of the river are tinted to show they are cut off.
The priority network, the top quarter of street segments by flow, over the FEMA 100-year floodplain. Flooded streets are penalised, not banned, so the plan still crosses the river. Re-run and redrawn for this page with the plan's exact settings. Map data © OpenStreetMap contributors; floodplain: FEMA.

Growing a drone frame

October 2026 · Python, printable STL and 3MF files

The same solver, pointed at a structure. Load points become food, a tube's flow stands in for a member's force, and tubes that die aren't printed. Load cases for thrust, twist, bending, a crash and payload grow the core of a 3-inch quadcopter: 20 cases on a 5 mm lattice in the first version, 32 on a 6.5 mm lattice in the current one.

35 g + 20 gplate and cage in PETG, 150 mm wheelbase (computed from solid volume, not weighed)

Three-quarter render of a warm-grey quadcopter frame core on cream. Four round motor pads sit at the ends of arms made of twin curving booms with cross-bracing, and a square strut cage with a perforated top deck is bolted over the central hub.
The current version (v0.3): arm trusses and body web grown by the solver, with a cage over the flight controller grown the same way on a 3D lattice. Not yet printed or flown.

In the first version, motor loads alone with hard pruning rediscover the standard X-frame. Add payload mounts and it grows a ring through them, so payload load reaches the motors without crossing the hub.

Two-by-two grid of network drawings on a circular lattice. Top left, motor loads only with strong pruning: a plain X between four motor mounts with a small square at the hub. Top right, with payload loads: a square ring through the payload points with thin spokes to the hub. The bottom row, with gentler pruning, shows denser webs of perimeter and diagonal members.
Motor loads alone give an X; payload mounts turn it into a ring. With gentler pruning (bottom row), even motor loads keep a redundant web. First version's lattice; all four panels re-run for this page.
Six circular lattices showing one solver run at iterations 2, 10, 25, 50, 120 and 400. Early frames are an even mesh with dark stars at the mount points; by iteration 120 a square ring with spokes stands out, and at 400 only the ring and a few inner links remain.
The first version's balanced plate, iterations 2 to 400: flow starts everywhere, then the load-carrying tubes thicken and the rest fade. Re-run for this page; the last frame matches my saved run.

The final state is thresholded and smoothed into members, and then I add what the mold can't know: printable widths, thinner members under the propellers, fillets and holes. The current version only allows material in a body and four arm corridors. Earlier ones grew a ring because I had put the payload mounts between the arms: the right answer to the wrong question.

Four renders of flat quadcopter plates at the same scale, each labelled with version, mass and member count: tree, 33 g, a thin ring of single members around a round hub; balanced, 37 g, with doubled members; mesh, 57 g, a dense tangle of members; and aero, 35 g, an X of twin-boom arms around a small central body.
Tree, balanced and mesh (v0.1) share 20 load cases and differ in γ and decay, which set how hard the solver prunes. Aero (v0.3), the current version, has a narrower design space and its own load cases.

What else it could do

  • Routing pipes and cables around obstacles. The most promising niche I read about: the authors of a 2022 method report that obstacles don't slow it down, though they didn't time it head-to-head against an exact solver. reported in one paper · not tried by me
  • Light structural parts. Brackets, chassis parts and frames like mine. Autodesk's Dreamcatcher and PIX Moving have used slime-mold algorithms, according to Biomimicry Institute write-ups. done by others · mine untested
  • Finding what a network leans on. Ranking the links a road network depends on, then cutting one to see the detour. tried by me · not validated
  • A better frame. Member height chosen by the mold, plate and cage grown as one, and a canopy over the stack, which my notes say matters more for drag than the arms. next steps

What I found

  • It rediscovers known answers. Motor loads give the textbook X-frame, and I read Tero's Tokyo match as two optimisers agreeing, not biology beating engineers.
  • No transport agency uses it, as far as I could find. I found no verifiable case, and the papers I read rarely test it against standard optimisation solvers.
  • Much of the shape is my choice. Where I put the mounts and how much space I allow settle a lot of the frame, and the physics is an analogy: flow, with no bending or buckling.
  • The frame is untested. Not yet printed, flown or checked with finite-element analysis; masses come from solid mesh volume, strength from one hand calculation.
  • My own numbers needed a second look. Re-checking them with Claude for this page: Somerville's 291 km priority network counts most two-way streets twice (about 195 km of street); in PhysarumGPT's three test areas the network stops changing above γ ≈ 1.3, so asking for a “balanced” or an “efficiency” plan often gives the same one; and ARIA's bridge ranking shifts between runs.

Reading