At LATTIMEX we look for ideas where others don't. This time the question was unexpected: can a circuit from an insect's brain help load a truck?

The fruit fly finds its way with a kind of internal compass. A ring of neurons in the center of its brain keeps track of which way it is facing. Thanks to the MaleCNS connectome, the complete map of the connections in a fly's brain, we can read that circuit neuron by neuron and synapse by synapse.

What we did was take that circuit, understand what computation it performs and turn it into a rule a computer can execute in microseconds. We call this process distillation of natural algorithms.

A compass of 88 neurons

The starting point is the Male CNS connectome, published by the FlyEM team at Janelia Research Campus together with the Cambridge Connectomics Group and Google Research. Using electron microscopy, it reconstructs the entire central nervous system of a male fly: the brain, the optic lobes and the ventral nerve cord. Version 1.0 came out in June 2026, and the data are open under the CC BY 4.0 license, which allows reuse and transformation with attribution.

The circuit we chose links two populations of the central complex: 46 EPG neurons and 42 Delta7 neurons, joined by 2,149 connections. When one sector of the ring becomes active, Delta7 projects that activity to the opposite side. It is a natural counterweight mechanism.

The circuit's 88 neurons seen from the front: the ring of the ellipsoid body colored like a color wheel and the protocerebral bridge shaped like an arc
The circuit's 88 neurons, with their real shape. Each EPG takes the color of its position in the compass, which is why the lower ring (the ellipsoid body) forms a color wheel. The Delta7 neurons, in silver, run along the upper arc (the protocerebral bridge). LATTIMEX render using skeletons from the Male CNS connectome, obtained from neuPrint. Data: MaleCNS v1.0, FlyEM/HHMI Janelia and collaborators, under CC BY 4.0. Selection, geometry simplification and visualization by LATTIMEX.

That whole transformation fits exactly into a 16 × 16 matrix: 256 numbers, with no approximation error. Each number keeps the imprint of the fly's real wiring.

A truck also needs to know where its weight is.

From the connectome to the truck

  1. Brain map. We started from Janelia's MaleCNS connectome, reconstructed with electron microscopy and published as open data.
  2. Isolate the circuit. We extracted the EPG → Delta7 → EPG compass and verified its anatomy connection by connection.
  3. Distill it. We condensed its complete function into the 16 × 16 rule and checked that no neuron is redundant.
  4. Put it to work. We divided the truck floor into the same 16 sectors as the ring. The circuit reads how much weight is in each one and decides which wall the next box leans against.
  5. Test it against everything. We measured it on new loads against our baseline method, a classic counterweight and 64 fly brains with scrambled wiring.

The safety rules are not decided by the fly: the engine guarantees them for every box. Rotation only about the vertical axis, at least 75% of the base supported, nothing heavy on fragile items, the vehicle's maximum weight and a loading order that lets each stop unload without moving the boxes for the following stops.

What we measured

Average lateral imbalanceDistance from the center of gravity to the truck's axis, as a percentage of the width. Lower is more stable. Loads that were not used to design the method.

Fly-guided loading took practically the same volume as our baseline method. What changed was the distribution: the weight ended up better balanced between the left and right sides of the truck.

How the fly decides

You can try the circuit right here. Each column of the matrix is a stimulated sector; the ring shows where it responds. The strongest response appears on the opposite side: that is the counterweight signal we use in the truck.

The distilled 88-neuron ruleTap a column or a sector of the ring. The angles are the anatomical positions measured in the fly's brain.

Each number in the matrix summarizes real synapses. A single EPG connects one sector of the compass to the protocerebral bridge, and a single Delta7 spreads its signal along the whole arc. That's how the circuit carries information from one side of the ring to the opposite one.

One EPG neuron and one Delta7 neuron highlighted over the rest of the circuit
One EPG (coral) and one Delta7 (blue) highlighted over the rest of the circuit. The EPG leaves from a single sector of the compass; the Delta7 runs along the arc of the protocerebral bridge. LATTIMEX render with data from the Male CNS connectome. Data: MaleCNS v1.0, FlyEM/HHMI Janelia and collaborators, under CC BY 4.0. Selection, geometry simplification and visualization by LATTIMEX.

Frontier, with method

A striking idea is not enough. That's why we work the same way as in any other LATTIMEX research line:

  • Design on some data, measure on other data.
  • Rivals included. We compared against a hand-written classic counterweight, the simplified mathematical version of the circuit and 64 fly brains with scrambled wiring. The real wiring achieved the best balance.
  • Every box, audited. A program independent of the one that does the loading checks collisions, support, fragility, weight and unloading order in every load.
How to read these figures.

From a fly's brain to your operation

To use this circuit we had to understand it at an unusual level of detail. We reviewed 88 neurons one by one, counted their 2,149 connections and checked every synapse against the official source. We confirmed that the distilled rule reproduces the circuit without error. Then we audited every box in every load: where it rests, what it carries on top and in what order it comes out.

That same care is what we put into each customer's operation. A delivery plan fails in the details nobody wrote down: the box that can't be turned because it doesn't fit sideways, the pallet that can't go on top of fragile goods, the stop that ends up blocked at the back, the truck that had capacity on paper but not at the dock. That's why, before optimizing, we decode how your operation works:

  • Your cargo, as it is. Dimensions, weights, allowed orientations and fragility of each type of parcel.
  • Your real fleet. Interior dimensions, payload and how goods are loaded and unloaded on each vehicle.
  • Your delivery sequence. Which stop comes first, what must stay within reach and what can't move along the way.
  • Your unwritten rules. What your team does from experience and a system must respect.

With that information, every plan LATTIMEX proposes can be executed exactly as designed, and every improvement is measured against your current way of working, with your own data.

If we can decode a fly's brain, we can decode your operation.

Frontier research makes sense when it ends in a better operation. This is one of the many ideas we explore so that every LATTIMEX plan is more efficient, safer and easier to execute.

From research to your operation

See how your own cargo would be loaded.

We can start with a sample of your orders and vehicles to visualize the 3D loading, validate the constraints and measure the result on a real case.