LEIAFlies
Flies island / Drosophila

Flight and vision

Tap or click the arena to place nectar

↑ Demo

Computational neuroscience · navigation

Participants · LEIASantiago Saldaña Subías

Navigation model with a , , and inspired by the of .

A simulated fly searches for nectar and avoids obstacles and projectiles. The study combines visual circuits, a representation of heading, and connections that change after reward or punishment. Decisions also use geometric information from the arena.

Project date
Model used
Bioinspired circuit for vision, the , and

What it perceives and what it can do

Two compound eyes each comprise 375 . Each unit provides a signal and a second signal that highlights nectar. The intensity depends on the object's distance and direction relative to the fly. This representation summarizes stimuli from a two-dimensional arena; it is not equivalent to a complete biological retina.

The controller also receives the direction, distance, and type of the target; the direction of and distance to obstacles; projectile threats; and the agent's health. From this information it produces forward thrust and . The geometry supplied by the arena makes it easier to find resources and anticipate collisions: behavior does not depend exclusively on vision.

FIGURE 1 / A CLOSED LOOP
  1. ArenaNectar, obstacles, and projectiles
  2. PerceptionRetina and environment geometry
  3. CircuitsMotion, heading, and valence
  4. ActionThrust and turning → new position
The action changes the position and, with it, the next observation. Geometric information enters the controller together with the visual signals.

How perception is transformed into movement

Motion and escape
Changes in brightness feed a detector. An signal contributes to turning. When a threat appears, escape rules select a rapid maneuver.
Orientation
The integrates and a visual turning signal. A circular activity profile represents heading; its difference from the target direction provides an orientation command.
Learned preference
The encode sensory patterns. Their output connections produce a that modulates the strength of approach or avoidance.
Motor control
Navigation rules combine target, obstacles, escape, hunger, and valence. The agent's dynamics convert thrust and turning into displacement. These rules are predefined.

The compass is a functional approximation: an angle is integrated and activity is computed around it. That the figure resembles a circular neural population does not demonstrate the .

What it learns and what stays fixed

In the team's Python model, a expands the visual signal and a keeps the most active units. Two estimate approach and avoidance. Their connections change through an : recent activity identifies which connections should receive the update when nectar or damage arrives.

Reward strengthens the approach output and weakens the avoidance output; punishment does the reverse. The remain bounded. Perception, the initial projection, heading integration, and the motor rules remain defined by the model.

Δw ∝ reward or punishment signal × recent activity of the connection

An interactive variant with a simpler rule

The interactive experience uses 400 units, each connected to four randomly chosen receptors. Half represent nectar-associated signals and the other half signals. When its summed sensory input exceeds a , the unit becomes active and its weight contributes to valence. The event modifies the weights of the units active at that moment, without the temporal trace of the Python model.

Valence also incorporates fixed terms for threat, damage, and nectar proximity, and it is clipped and smoothed over time. A reward or punishment can change it immediately even when no units are active. That immediate reaction is not sufficient to attribute a change in behavior to .

The difference affects which associations can be learned: a delayed reward can act on recent activity in Python, whereas the interactive variant acts on present activity. Their results require separate evaluations.

FIGURE 2 / AN EVENT CHANGES ACTIVE CONNECTIONS
Interactive example

An active unit

Initial weight: 0.400

0.400 → 0.820

An active unit

Initial weight: −0.450

−0.450 → −0.282
Example computed with the interactive rule, 0.15, and 2.8 (reward). Only the active units change. These are illustrative values of the rule, not a navigation evaluation.

From the sensory model to navigation

  1. September 2026

    Integrating vision, orientation, and memory

    The team developed an arena with hazards and resources to study the perception → action loop. The model combines motion detectors, an internal compass, and associative learning. The saved records contain runs dated from September 15 onward; the complete code was first published on September 25.

  2. September 2026

    Two control conditions

    The arena supports autonomous control and human control, and it records nectar, duration, and evasive maneuvers. Switching modes is useful for exploring behavior, but it prevents each record from being interpreted automatically as a pure experimental condition.

  3. Interactive experience

    Explaining perception and plasticity

    A variant retains the panoramic retina and continuous control, with a learning rule based on the active units. The Python model uses 1,500 Kenyon units in its graphical configuration and 800 in its headless run; these configurations are distinct from the 400 units of the interactive variant.

Results

Records from September 15 to 25, 2026 show sustained navigation and nectar collection in the Python arena. They are runs saved on an exploratory basis. The table gathers the maxima for each category; the recording conditions limit their comparison.

Dated team records · observed maxima, not averages or performance estimates
Saved categoryRecordsLongest stored durationNectar in that record
Autonomous1314,199.3 6,804 resources
Human6128.8 s of simulated time59 resources

Why these maxima do not compare the ability of the two pilots

The seeds, difficulty, control switches, interventions, and versions of each run are not documented. The system can save on restart or exit, as well as on death: stored duration is not always equivalent to time until a fatal collision. The human or autonomous label also does not guarantee exclusive control throughout the run.

Nor does the log include every attempt: it discards zero scores and, on exit or restart, requires a score greater than 200. This selection can omit short runs or runs without nectar and favor higher results.

Two entries named “Benchmark” are example values defined by the program and are excluded from the table. The numbers above describe 19 dated records; they do not certify 19 independent trials. They do not allow calculating a success rate, a useful confidence interval, or superiority over humans.

Scientific scope

The project explores how to combine bioinspired mechanisms in an agent that acts. The units, parameters, and rules are simplifications chosen for the simulation. The sensory connections are generated synthetically; the controller does not run the complete MaleCNS .

Nectar and hazards have visual signals designed to be distinguishable, and the controller receives additional geometry. The stored durations and resources correspond to the full controller with that privileged information.