Sound localization#
This experiment uses only the submillisecond difference between left- and right-ear arrival times to drive a spiking direction readout. Exact delay taps, event communication, and batched independent state make timing semantics the core of the implementation.
Prompt#
Build a spiking network that tells whether a sound came from the left or right using only the tiny difference in when it reaches the two ears.
Agent decision path#
Classify the system as a point-neuron auditory circuit.
Route neurons to
brainpy-state, spike delivery tobrainevent, and physical timing tobrainunit.Select the Jeffress delay-line principle with two auditory relays and a coincidence bank.
Round physical interaural delays once to an explicit
0.05 mstime grid.Deliver binary spikes through fixed-fan-out projections to left and right readouts.
Give every interaural delay independent mapped membrane, refractory, and delay state.
Advance all lanes through one state-aware
vmap2step insidefor_loop.Verify delay impulse convention, dimensional bounds, and direction labels with three tests.
Result#
Every tested negative interaural time difference is classified as RIGHT, every positive difference as LEFT, and simultaneous arrival as CENTER. All three focused tests pass.
The selected run did not generate a plot. This structured result preserves the committed classification evidence without inventing a graph.
With-BrainX skill/Without skill comparison#
With BrainX skill
Source captured · benchmark pending
Add measured rollout throughput across the same delay grid, including compile policy and all timing-semantic tests.
Without BrainX skill
Matched run not collected
Use the same 0.05 ms grid, +/-0.6 ms bounds, and direction convention before comparing speed or correctness.