Checking how many agents are working

How this works
Kontakt
← Blog
A matte resin fly with six thin legs standing on the rim of a brushed steel turntable, a faint amber arc showing a slow turn to the left, in teal and steel with a warm amber rim light, the AMARBARO mark and wordmark centered over it.
✎Post blogowy

How a simulated fly walks and turns

The short version

Our simulated fly's steady left turn of about 30 degrees a second vanished with the senses off, which points to the legs but does not prove the legs alone cause it.

What this is about

Our simulated fly walks. While it walks, it drifts slowly to the left, at about 30 degrees a second. We wanted to know where that turn comes from. We guessed that it came from the brain, from a response to smell. It did not. When we turned the senses off, the turn vanished, and the signal that remained pointed at the legs.

This article walks through how the fly moves and how we found the source of the turn. It is a small story, and it teaches something about bodies that is easy to miss.

Why it matters

When a model does something, it is tempting to give the credit to the part you care about most. We care about the brain. So we expected the brain to steer.

But a body is not a passive thing that obeys. Its legs feel the ground. Its senses feed back into the control. A turn can come from that loop and not from the clever part. If we had not tested, we would have told a nicer story that was wrong.

This is also a lesson for anyone who builds a robot. A walking machine is a team of brain, senses, legs and floor. You must test which part does what.

How the fly walks

The walker joins a brain model to a physics body. The body weighs 1.026 milligrams. It has 44 joint motors and 6 sticky foot pads. Three small readings from the brain run the walk.

  1. Speed. A group of descending neurons, the cells that carry commands from the brain toward the body, sets how fast the fly walks.
  2. Stop. One cell type, called DNg103, sets a stop.
  3. Turn. A readout of the turn-related descending cells gives a turn signal.

A gait clock sets the rhythm of the legs, and named leg motor neurons set the posture.

Sugar, which stands in for taste, did not lower the forward group. The stop came from DNg103 alone. That is a clean, small result: one cell type stops the walker.

How we found where the turn came from

We follow a short routine, written here in steps so you can reuse it for any odd result.

  1. Notice the oddity. The fly drifted left. The turn signal sat at about minus 0.4, which our model maps to a left drift of roughly 30 degrees a second.
  2. Guess the cause. Our first guess was smell.
  3. Switch the suspect off. We ran the walker with the senses off and read the turn signal again. It was zero.
  4. Ask what the test really removed. This is the careful step. The probe switched off all the senses together. It did not switch off only the legs, so it cannot show the legs alone.
  5. Look for a second source. In a separate study, the leg senses reached the motor neurons at plus 27 percent. That fits the legs, but it did not prove the leg route was the only one.
  6. Compare to a shuffled version. The margin over a version with shuffled legs was plus 0.036, which is small.

So where does that leave us? The legs are the most likely source. They are not a shown one. We say exactly that in our record.

What smell did, and did not, do

In the runs we measured, odor input did not reach steering at all. Vision did. Vision steered mostly through the right eye, with a readout of plus 55.7 degrees, and barely through the left.

We hold the smell result loosely, and here is why. Earlier in the project, taste never reached the brain in some full runs. The taste cells were filed under names that our loops did not match, so those runs had no taste input at all. Our lesson from that: a result that says "this sense did nothing" needs a check that the cells were really driven. For smell, the record has no such check. So the odor result may be untested and not negative. If someone counts how many odor-wired cells fire during the probe, they will know.

What this tells us about bodies

Three plain lessons come out of it.

  • The body is part of the controller. The legs sense the ground and feed that back. A drift can come from that feedback, not from a decision.
  • A switch-off test is only as good as its scope. Turning off every sense together hides which sense mattered.
  • A null result needs a proof of life. Before you say a sense did nothing, show that its cells were active.

We gave the first full account of the numbers in The fly's turn came from its legs, and odor did not reach the steering we measured. If you want the wider view of the project, start at The fly project in plain words.

Glossary

  • Descending neuron: a nerve cell that carries a command from the brain down toward the body.
  • Readout: a number we compute from the activity of a group of cells.
  • Gait: the pattern in which legs lift and land during a walk.
  • Null result: a test that found no effect. It is only useful if the test could have found one.
  • Probe: a short test run that changes one thing and reads the result.
  • Seed: a number that fixes a run's random choices so it can be repeated.

Try it

  • The code is public: fly-connectome on GitHub. Its capabilities page lists what the walker can do and what is refused.
  • The body engine that grew out of this project is Kinestride. Its README explains how each stage is checked against MuJoCo.
  • A small exercise for any machine you own, even a toy: turn off one sensor and watch what changes. Then ask the question from step 4 above: what else did I switch off at the same time?

Previous in The Fly: The fly project in plain words. Next: How a simulated fly tastes sugar, and what was missing.

Komentarze

Brak komentarzy.

Zaloguj się aby skomentować.