How neuralmodeling/vismotion works
Purpose and execution surface
This is a Python research repository implementing the paper’s primate-informed neural dynamic model for motion-perception decision making, alongside a comparison CNN and experiment/visualization code. There is no package directory or declared CLI; execution is likely script/notebook-style through model modules and experiment drivers:
• vismodel.py
• psych_vismodel.py
• motnet.py
Neural dynamic-model stack
The biologically motivated model is assembled from explicit neuron and synapse dynamics, with CUDA-oriented implementations for simulation performance:
• LIF_cuda.py — leaky integrate-and-fire neural dynamics.
• Syn_cuda.py — synaptic dynamics/connectivity operations.
• vismodel.py — visual neural model composition and task-facing model behavior.
The key architectural boundary is between low-level stateful neural simulation (membrane/synapse state, likely timestep updates) and the visual-decision model that organizes those populations into a perception pipeline.
Visual decision and psychophysics layer
psych_vismodel.py appears to adapt or extend the visual model for psychophysical experiments: presenting motion stimuli, obtaining decisions, and measuring behavioral effects under experimental conditions. This is the likely primary control-flow layer for robustness/perturbation studies described in the README.
• psych_vismodel.py
• vismodel.py
• base.py
Comparison-model path
A separate motion-network implementation provides the CNN-style baseline used for performance comparison, rather than sharing the spiking/dynamic simulation path:
• motnet.py
• simplified.py
• logistic.py
motnet.py is the likely main comparison architecture; simplified.py and logistic.py likely provide reduced or readout/classification variants. The important boundary is that these models consume comparable visual/task inputs but use conventional differentiable network/readout components instead of explicit LIF/synapse dynamics.
Common model abstractions and outputs
base.py is the probable shared abstraction layer for model state, interfaces, or reusable experiment-facing behavior. It should be treated as the integration point when connecting neural dynamics, CNN baselines, and evaluation code.
• base.py
• vismodel.py
• motnet.py
The expected high-level flow is: construct model → generate/provide motion stimulus → run neural/CNN inference or temporal simulation → produce a decision/readout → aggregate results for comparison or perturbation analysis.
Runtime, acceleration, and result inspection
The repository is Python-based and materially depends on CUDA-capable execution for the dynamic neuron and synapse path, as indicated by:
• LIF_cuda.py
• Syn_cuda.py
visualize.py is the results-inspection boundary, separating plotting/analysis from model execution:
• visualize.py
No deployment infrastructure, web service, database, or external API integration is represented in the supplied tree. The principal external dependency class is the Python numerical/deep-learning stack required to execute CUDA model code; exact libraries are not declared in the provided files.
Main entry points: vismodel.py Visual dynamic model · motnet.py MotNet baseline · base.py Shared model base · LIF_cuda.py LIF dynamics
Components 12
Neural dynamics
CUDA-oriented stateful simulation.
- LIF dynamics · Leaky integrate-and-fire state updates.
LIF_cuda.py - Synapse dynamics · Connectivity and synaptic state operations.
Syn_cuda.py - CUDA execution · Acceleration boundary for neural simulation.
Decision models
Dynamic and conventional comparison paths.
- Shared model base · Common experiment-facing model behavior.
base.py - Visual dynamic model · Composes neural populations into visual decisions.
vismodel.py - MotNet baseline · Conventional motion-network inference path.
motnet.py - Simplified variant
simplified.py - Logistic readout
logistic.py
Experiments and analysis
Task control and result inspection.
- Psychophysics driver · Runs motion-stimulus decision experiments.
psych_vismodel.py - Motion stimulus
- Decision outputs · Choices and task readouts for evaluation.
- Results visualization · Plots and inspects experiment results.
visualize.py
Connections 14
- CUDA execution → LIF dynamics: accelerates
- CUDA execution → Synapse dynamics: accelerates
- LIF dynamics → Visual dynamic model: neuron updates
- Synapse dynamics → Visual dynamic model: synaptic updates
- Shared model base → Visual dynamic model: shared interface
- Shared model base → MotNet baseline: shared interface
- Motion stimulus → Psychophysics driver: presented by
- Psychophysics driver → Visual dynamic model: runs dynamic model
- Motion stimulus → MotNet baseline: comparison input
- Simplified variant → MotNet baseline: variant
- Logistic readout → MotNet baseline: readout variant
- Visual dynamic model → Decision outputs: produces
- MotNet baseline → Decision outputs: produces
- Decision outputs → Results visualization: analyzed by