DigitalFruitFly DigitalFruitFly a fruit fly that lives digitally
A digital insect  ·  real brain wiring

It flinches using
a real fly’s brain

This fly is not alive. But when something rushes at it, the decision to bolt is made by brain cells copied out of a real fly — the same cells, joined up the same way scientists found them under a microscope. Move your cursor at them.

live · thinking 20× a second click to drop food · they can see your cursor
females 0 males 0 young 0 eggs 0 meals 0 panics 0 droppings 0
what's happening
  1. Add one female and one male. Click the box to drop food. Move your cursor at them.
the day so far

Nothing has happened yet. The box is empty.

A log of what happened, not what they felt. Courtship, mating, egg-laying and growing up are hand-written rules from published fly behaviour, not measured wiring — see section 03. Eggs hatch after a minute into small flies that grow up after three meals; that stands in for the real ten-day egg→larva→pupa→adult cycle. You can add one of each; every fly after that has to be born. The box holds 24 at most.


01Watch it think

Watch each part of the brain light up

This is the first fly you added, thinking, twenty times every second. Each bar is one part of its brain, and the bar shows how hard that part is working right now. Move your cursor at the fly and watch spotting danger spike; watch getting tired creep up the longer it stays in the air, until it gives in and lands.


02Prove it

How do you know I’m not making this up?

Anyone can write “real fly brain” on a web page. So here is the test that settles it. Take the same brain cells. Keep the same number of connections, and the same strengths. Then join them up at random instead. If the fly behaves exactly the same either way, the real wiring was never doing anything and I should stop talking. Press the button — your own computer runs it, right now, in front of you.

The real one

wired as found in a real brain

A · real

Randomly rewired

same cells, joined up at random

B · shuffled
the real one randomly rewired lower down = flinched sooner
Press Run the test. Your browser will fly a looming object at both circuits at six approach speeds, twenty-four times each, and plot how long each took to fire its escape command. Nothing is pre-recorded — the numbers are computed here, now.

03The honest bit

What this is, and what it is not

True
✓

The connections in the panic circuit were measured from a real fly brain and published by scientists. I did not invent them.

✓

Every cell has a name and an ID number. You can look any of them up yourself and find the same cell in the real dataset.

✓

The random-rewiring test above was run at exactly the same strength setting as the real one, so neither side was tuned to win.

✓

The brain thinks at a steady twenty times a second, no matter how fast your screen draws.

Not true, and worth saying out loud
✕

This is not a whole fly brain. A real one has about 140,000 cells. This has a few hundred, and only for one reflex — flinching. Everything else it does, I wrote by hand.

✕

These are simplified cells. No electrical spikes, no chemistry, and the fly does not learn anything.

✕

A wiring map tells you what connects to what — and nothing else. How fast each cell reacts, and how hard it pushes, are numbers I had to choose.

✕

It looks like a housefly. The brain cells come from a fruit fly. Different animals — the body is just a costume.

✕

Courtship, mating and egg-laying are hand-written rules taken from published descriptions of fly behaviour — the male's song, the female's choice, laying on food. The real wiring for those exists in the new male connectome, but it is not imported here yet. Eggs hatch after a minute and youngsters grow up after three meals — a stand-in for the real ten-day life cycle, and a new fly is a copy of the same brain, not an inheritance.

Connectome: Dorkenwald et al., Nature 634 (2024), and Schlegel et al., Nature 634 (2024) · FlyWire, Princeton University and the FlyWire Consortium · data reused under CC BY 4.0.
Circuit sources: Klapoetke et al. 2017 (LPLC2, radial expansion) · Ache et al. 2019 (LC4, angular speed) · von Reyn et al. 2014 & 2017 (giant-fibre escape modes) · Seelig & Jayaraman 2015 and Hulse et al. 2021 (heading ring) · Aso et al. 2014 (mushroom-body valence) · Donlea et al. 2014 (sleep drive) · Seeds et al. 2014 (grooming hierarchy).
Control-experiment rationale after the 2026 digital sphinx result (Brunton lab): a connectome model that behaves correctly is not by itself evidence that the connectome is doing the work.