ConceptioArchiveNCBI PubMed Central
NCBI PubMed Centralopen access

Artificial embodied circuits uncover neural architectures of vertebrate visuomotor behaviors.

Liu X et al. · ncbi_pmc
NCBI PubMed Central · Papers · License: Open Access
Open Source ↗Direct PDF ↓
computerscienceeducation
computer science education

Skip to main content An official website of the United States government Here's how you know Here's how you know Official websites use .gov A .gov website belongs to an official government organization in the United States. Secure .gov websites use HTTPS A lock ( Lock Locked padlock icon ) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites. Search Log in Dashboard Publications Account settings Log out Search… Search NCBI Primary site navigation Search Logged in as: Dashboard Publications Account settings Log in Search PMC Full-Text Archive Search in PMC Journal List User Guide PERMALINK Copy As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: PMC Disclaimer | PMC Copyright Notice Sci Robot . Author manuscript; available in PMC: 2026 Apr 15. Published in final edited form as: Sci Robot. 2025 Oct 15;10(107):eadv4408. doi: 10.1126/scirobotics.adv4408 Search in PMC Search in PubMed View in NLM Catalog Add to search Artificial Embodied Circuits Uncover Neural Architectures of Vertebrate Visuomotor Behaviors Xiangxiao Liu Xiangxiao Liu 1 Biorobotics Laboratory, EPFL - École Polytechnique Fédérale de Lausanne, Lausanne 1015, Switzerland Find articles by Xiangxiao Liu 1, † , Matthew D Loring Matthew D Loring 2 Duke School of Medicine, Department of Neurobiology, Durham, NC 27710, United States Find articles by Matthew D Loring 2, † , Luca Zunino Luca Zunino 1 Biorobotics Laboratory, EPFL - École Polytechnique Fédérale de Lausanne, Lausanne 1015, Switzerland Find articles by Luca Zunino 1 , Kaitlyn E Fouke Kaitlyn E Fouke 2 Duke School of Medicine, Department of Neurobiology, Durham, NC 27710, United States Find articles by Kaitlyn E Fouke 2 , François A Longchamp François A Longchamp 1 Biorobotics Laboratory, EPFL - École Polytechnique Fédérale de Lausanne, Lausanne 1015, Switzerland Find articles by François A Longchamp 1 , Alexandre Bernardino Alexandre Bernardino 3 Institute for Systems and Robotics, Instituto Superior Técnico, 1049-001 Lisbon, Portugal Find articles by Alexandre Bernardino 3 , Auke J Ijspeert Auke J Ijspeert 1 Biorobotics Laboratory, EPFL - École Polytechnique Fédérale de Lausanne, Lausanne 1015, Switzerland Find articles by Auke J Ijspeert 1, ‡ , Eva A Naumann Eva A Naumann 2 Duke School of Medicine, Department of Neurobiology, Durham, NC 27710, United States 4 Department of Psychology & Neuroscience, Duke University, Durham, NC 27708, USA 5 Duke School of Medicine, Department of Cell Biology, Duke University, Durham, NC 27708, USA 6 Department of Biomedical Engineering, Duke University, Durham, NC 27708, USA Find articles by Eva A Naumann 2, 4, 5, 6, ‡ Author information Article notes Copyright and License information 1 Biorobotics Laboratory, EPFL - École Polytechnique Fédérale de Lausanne, Lausanne 1015, Switzerland 2 Duke School of Medicine, Department of Neurobiology, Durham, NC 27710, United States 3 Institute for Systems and Robotics, Instituto Superior Técnico, 1049-001 Lisbon, Portugal 4 Department of Psychology & Neuroscience, Duke University, Durham, NC 27708, USA 5 Duke School of Medicine, Department of Cell Biology, Duke University, Durham, NC 27708, USA 6 Department of Biomedical Engineering, Duke University, Durham, NC 27708, USA † These authors contributed equally to this work. ‡ These authors jointly supervised this work. Author contributions X.L., A.I., and E.A.N. conceived of this project. X.L. and L.Z. constructed and tested the neuromechanical simulations. M.D.L. performed and analyzed all live zebrafish calcium imaging experiments, and M.D.L. and K.E.F. collected the live zebrafish behavioral data. M.D.L., K.E.F., X.L., and E.A.N. analyzed and compared zebrafish, simulation, and robotic data. X.L., F.L., and L.Z. constructed, tested, and evaluated ZBot functionality. X.L., M.D.L., A.I., and E.A.N. wrote the manuscript with input from all authors. A.I. and E.A.N. supervised the project. ✉ Corresponding Author: [email protected] Issue date 2025 Oct 15. PMC Copyright notice PMCID: PMC13077711  NIHMSID: NIHMS2161523  PMID: 41091910 The publisher's version of this article is available at Sci Robot Abstract Brains evolve within specific sensory and physical environments, yet neuroscience has traditionally focused on studying neural circuits in isolation. Understanding of their function requires integrative brain-body testing in realistic contexts. To investigate the neural and biomechanical mechanisms of sensorimotor transformations, we constructed realistic neuromechanical simulations (simZFish) of the zebrafish optomotor response, a visual stabilization behavior. By computationally reproducing the body mechanics, physical body-water interactions, hydrodynamics, visual environments, and experimentally derived neural network architectures, we closely replicated the behavior of real larval zebrafish. Through systematic manipulation of physiological and circuit connectivity features, impossible in biological experiments, we demonstrate how embodiment shapes neural activity, circuit architecture, and behavior. Changing lens properties and retinal connectivity revealed why the lower posterior visual field drives optimal optomotor responses in simZFish, explaining receptive field properties observed in real zebrafish. When challenged with novel visual stimuli, simZFish predicted previously unknown neuronal response types, which we identified via two-photon calcium imaging in the live brain of real zebrafish and incorporated to update the simZFish neural network. In virtual rivers, simZFish performed rheotaxis autonomously by using current-induced optic flow patterns as navigational cues, compensating for the simulated water flow. Finally, experiments with a physical robot (ZBot) validated the role of embodied sensorimotor circuits in maintaining position in a real river with complex fluid dynamics and visual environments. By iterating between simulations, behavioral observations, neural imaging, and robotic testing, we demonstrate the power of integrative approaches to investigating sensorimotor processing, providing insights into embodied neural circuit functions. One sentence summary: Simulated and robotic zebrafish reveal how brain circuits, body mechanics, and environment interact to control behavior. Introduction Despite decades of research into animal sensorimotor systems ( 1 ), we still lack a holistic understanding of how physical and environmental factors shape neural computations during behavior ( 2 , 3 ), as these systems cannot be fully understood without considering the body in which they evolved ( 4 ). Our insights into how these physical interactions affect sensory processing remain limited due to the challenges of manipulating body traits, controlling sensory environments, and recording neural activity during animal movement ( 5 ). Neuromechanical simulations, that is, numerical simulations of the nervous system, the body, and its surroundings, and bio-inspired robots provide powerful tools to explore the effects of the environment on neural function and sensorimotor behaviors ( 6 – 9 ). The combination of these methods offers untapped opportunities to understand the relevance of embodiment for neural architectures ( 10 – 12 ), enabling the testing of artificial neural circuits within physical bodies ( 12 ). Here, we use neuromechanical simulations to investigate the neural control of visually guided stabilization behaviors, which are essential for survival and have been identified in many species ( 13 , 14 ), including mammals ( 15 ), fish ( 16 ), birds ( 17 ), and insects ( 18 , 19 ). For instance, the optomotor response (OMR) helps animals compensate for displacement caused by moving water ( 20 ) or air ( 21 ). These compensatory actions are highly effective in stabilizing body position and retinal gaze ( 21 ), and successfully replicating these neural algorithms represents a decisive advantage to any artificial agent ( 22 , 23 ). However, accurate modeling of neural dynamics observed in real animals requires validation of sensorimotor loops within the complexities of the physical world and associated nuanced behavioral consequences. The translucent larval zebrafish offers genetic and optical access to almost all neurons ( 24 ) and well-characterized neural circuits underlying visually guided behaviors ( 25 – 29 ). Therefore, we leveraged these insights to investigate how embodiment affects visuomotor neural architecture and function ( 26 ). Current models of zebrafish visuomotor transformations rely on correlation-based neural activity, lack realistic representations of the retina or motor systems ( 25 , 29 ), omit the ability to manipulate neural connectivity, and exclude closed-loop observations of neural activation during behavior, which limits the integrative investigation of the system within its sensory and physical environment. Therefore, we developed simZFish, a larval zebrafish-inspired neuromechanical simulation, designed to investigate how sensory-driven behaviors depend on embodied neural circuits ( Fig. 1 ). Benefitting from detailed experimental data ( 25 , 29 – 34 ) and recent advances in physics simulation technologies ( 35 ), our open-source simZFish faithfully reproduces the zebrafish OMR, utilizing experimentally observed neural activity ( 25 ). Furthermore, when experiencing a virtual river, simZFish’s artificial embodied neural circuits enabled it to swim against a virtual water flow, performing a behavior known as rheotaxis ( 20 ). Whereas multiple sensory modalities play a role in rheotaxis ( 20 , 36 ), we demonstrate that the simZFish circuits are, in principle, sufficient to drive visually guided rheotaxis without other sensory input. Further, we used systematic manipulations of sensory features, including simZFish’s optical lens and retinal connectivity, to reveal key factors driving neural architecture and response characteristics ( 31 , 37 ). Guided by simZFish predictions, we also identified neurons with previously undiscovered response profiles through calcium imaging in live zebrafish brains and incorporated these newly discovered neural subtypes, leading to improved performance. Fig. 1 |. Integrative framework for investigating embodied neural circuit functions. Open in a new tab Leveraging the behavioral, neurobiological, and theoretical insights into visuomotor transformations in live zebrafish (left), we developed a virtual neuromechanical simulation of a larval zebrafish, simZFish (middle), to replicate realistic hydrodynamic, anatomical, sensory, neural, and behavioral aspects. This permits the investigation of emergent properties driven by embodiment. Validating these findings in a physical zebrafish-inspired robot, ZBot (right), in naturalistic environments informs future experiments, hypotheses, and robotic design. Scale bars, 1 mm (zebrafish), 1mm (simZFish), 1m (ZBot). Finally, simZFish directly informed the design of a zebrafish-like robot (ZBot), constructed to test whether these embodied artificial neural circuits are sufficient to stabilize its position in natural rivers. Corroborating the results from simulations, ZBot experiments in a real river with rich visual stimuli and complex fluid dynamics confirmed that these artificial circuits are effective in counteracting real water currents. Together, our results underscore how embodiment shapes neural circuits and how mechanisms identified in idealized laboratory conditions can be implemented to lead to adaptive behaviors in the real world. Results Neural architecture of a simulated zebrafish To construct a realistic, neuromechanical simulation of larval zebrafish ( Fig. S1A ), simZFish, we used Webots ( 38 ), a physics-based simulator ( Methods , Supplementary Methods ). In this simulated reality, the head and body of the simZFish are modeled as seven segments connected by six hinge joints actuated by simulated servomotors ( Fig. S1B ), with dimensions and masses matching biophysical measurements of real zebrafish. The simZFish head is equipped with two laterally positioned simulated cameras as the eyes of larval zebrafish ( 39 ). The simZFish platform generates a faithful virtual sensory environment, complete with fluid dynamics, modeling drag, and viscous forces ( Fig. S1C ), resulting in realistic locomotion behaviors ( Fig. S1D , E )( 40 ). Revealing the internal states of the simulated neural network, the simZFish interface allows access to the simulated camera views, all neuronal activity dynamics, and locomotor variables in this complete, end-to-end simulation from retinal input to motor output ( Supplementary Movie 1 , Fig. S2A ). Only limited by computational time, the computational design of simZFish allows an endless number of new experiments in realistic or unrealistic conditions ( Fig. S2B ). To achieve a biorealistic artificial neural architecture, we synthesized anatomical ( 30 , 41 ), functional ( 25 , 31 , 32 ), and computational findings ( 25 ), creating an embedded multi-layer network model of the OMR visuomotor pathways consisting of rate-coding artificial neurons ( Fig. 2A ). Visual motion detection starts with simulated photosensitive pixels ( Fig. 2B ) representing the zebrafish retina ( 42 ). Using a classic delay line model ( 43 ), the simZFish retina computes the direction of motion ( 44 ) ( Fig. 2C ). This artificial retina drives four types of direction-selective retinal ganglion cells (DSGCs) with preferred directions: superior, inferior, anterior, and posterior ( 45 , 46 ). As in real zebrafish ( 32 ), all DSGCs project contralaterally, activating neurons in the early pretectum (ePTs). These ePTs activate neurons in the late pretectum (lPTs) ( 25 , 30 , 33 ), creating complex binocular response types ( Fig. 2D ). These neurons exist in real zebrafish in at least eight mirror symmetric sets of direction-selective functional response types ( 25 ). As suggested by our previous modeling, lPTs collectively control the movement direction by activating neurons of the anterior hindbrain (aHB) ( 25 , 30 ), which suppresses behavioral oscillation via reciprocal inhibition ( Fig. 2E ). Fig. 2 |. simZFish, a neuromechanical simulation replicating the zebrafish optomotor response. Open in a new tab A simZFish neural network. Each node represents an artificial neuron. Motion detection starts in the artificial retina, computing direction selective information relayed to contralateral monocular neurons in the early pretectum (ePT), activating the late pretectal neurons (lPTs), which project to the nucleus medial longitudinal fasciculus (nMLF) and the anterior hindbrain (aHB), controlling swim initiation and turning angle. Integrating nMLF and aHB activity, ‘Bout Gate’ activates spinal central pattern generators (CPGs), and the ‘Behavior Determinator’ calculates directional movement probabilities. Motor neurons set the joint positions by integrating the signals from ventromedial spinal projection neurons (vSPNs) and CPGs. B Sideview of the left simZFish retina consists of 102 * 78 direction-selective retinal ganglion cells (DSGCs), artificial units responding to four cardinal directions. Only lower-posterior DSGCs project to the pretectum. C Direction detection in the simZFish retina. DSGCs achieve their selectivity for anterior (A), posterior (P), superior (S), and inferior (I) directions by specific wiring. D Pretectal connectivity in the left hemisphere. Neuron types: oB, outward-responsive binocular; B, binocular; iB, inward-responsive binocular; ioB, inward- and outward-responsive binocular; iM M , inward-responsive monocular, medial-selective; M M , monocular, medial-selective; oM L , outward-responsive monocular, lateral-selective); S, coherent motion selective. Line color indicates excitatory (black) and inhibitory (blue) connections; line thickness: connectivity weights. ePt selectivity is abbreviated as in 2C . E Neuronal connections from binocular lPT neurons to aHB and nMLF. Note that reciprocal inhibition results in stable behavior and suppresses turns to the opposite side of motion direction. F Schematic of visual stimulus set composed of static, medial, and lateral motion and forward and backward-moving gratings. Arrowheads indicate the direction of motion; inset shows ‘forward’ motion to both eyes. Circular icons represent eyes, and white tick marks show the direction of motion. G Average normalized ΔF/F neuronal recordings from pretectal neurons of real, live zebrafish (blue) and simZFish (red) for representative left-selective neurons: oB, B, iB, ioB. Shaded area, standard error of the mean (SEM) across neurons. Like real zebrafish ( 40 ), simZFish swims in bouts of rapid tail undulations and passive glides ( Supplementary Movie 2 ). To modulate the spontaneous bout frequency (simZFish: 0.6 Hz; zebrafish: 0.67 Hz +/− 0.09 Hz), the lPTs connect to symmetric neural nodes, representing the diencephalic nuclei of the medial longitudinal fasciculus (nMLF) known to control bout frequency ( 27 ), tail posture, and bout initialisation ( 41 ). To generate this characteristic burst and glide behavior ( 47 ), we implemented abstract neural models of the brainstem and spinal cord motor circuits composed of ‘Bout Gate’ and ‘Bout Determinator’ centers and artificial central pattern generators (CPGs) ( 48 ). The Bout Gate receives input from both nMLF neurons, accumulating motion information across both eyes ( 25 ). Upon reaching a threshold ( Fig. S3A ), the Bout Gate neuron activates the spinal CPGs modeled as coupled oscillators ( 49 ), generating rhythmic tail undulations ( 50 ). The transitions between the burst and glide phases are handled by leaky integration at the Bout Gate ( 51 ), ending a bout when activity decreases to less than 5% of its initial activation level. The Bout Gate triggers a Bout Determinator event, which stochastically defines the turning direction for each bout, replicating a set of bilateral, ventromedial spinal projection neurons (vSPNs, Fig. S3B ) known to control bout direction ( 28 ). In the simulated spinal cord, the motor neurons determine the body curvature by integrating the output of vSPNs and CPGs ( Fig. S3C , D ). To compensate for self-generated neural activation during swimming ( Fig. S3E , F ), we added low-pass filters, as suggested by their delayed and accumulating activity profiles in real zebrafish ( 27 , 29 ). By initializing simZFish’s circuits with our experimentally derived, best-fit ( 25 ) connection weights ( Fig. S3G ), minimal additional tuning achieved functional connectivity that demonstrated similar activation patterns to zebrafish neurons to the direction and eye-specific stimuli ( Fig. 2F , G ). simZFish replicates OMR behaviors To compare simZFish and real zebrafish behavior, we recreated a well-established experimental paradigm to study the OMR ( 25 ). Placing the simZFish in a simulated petri dish ( Fig. 3A ), we tested its behavior to drifting gratings ( Methods ). To present motion in a consistent direction, the stimulus display is locked to the body orientations, like in closed-loop experiments with real zebrafish ( 25 ). Comparing general kinematic functionality, simZFish performs forward, left, and right swim bouts like real zebrafish ( Fig. 3B , Supplementary Movie 3 ). These bouts can be quantified based on distance traveled and angular change ( Fig. 3C ). Overall, simZFish recapitulates the characteristic trimodal behavioral distribution of real zebrafish, with frequent forward swims (0°+/− 5°) and balanced leftward and rightward routine turns (~+/−35°) ( Fig. 3D , S4A ). Comparing average histograms of bout angle distributions ( Fig. 3E ), simZFish and zebrafish respond to converging motion to both eyes, with increased bout frequency, while diverging motion decreases bout frequency below spontaneous levels. Binocular leftward motion increased leftward bout frequency (0.027 Hz, at −46°), increased biased forward bouts (0.089 Hz, at −4°), and suppressed turns in the opposite direction (0.012 Hz, at 34°). All qualitative aspects are well matched within the behavioral variability of real zebrafish. As the simZFish behavior was tuned to match bout probabilities rather than peak bout frequencies, their peak locations differ slightly ( Fig. S4B ). Nonetheless, when comparing bout probabilities, the relative proportion of right, forward, and left bouts, we find strong quantitative behavioral correspondence, with exceptions for challenges in fitting behavior to backward motion ( Fig. 3F , S4C – E ). Fig. 3 |. simZFish replicates the optomotor responses of real zebrafish. Open in a new tab A simZFish during simulated OMR experiments. B Snapshots of simZFish and of real, live larval zebrafish performing forward, leftward, and rightward bouts. C Schematic of simZFish performing a bout, illustrating measurements of angle and distance change. D Scatterplots of the bout angle and distance distributions for simZFish and a representative real zebrafish exposed to visual stimuli, color code as in 2F . Both exhibit symmetric, trimodal distributions of left, right, and forward bouts to stationary (grey), converging (blue), and diverging (red) motion. For leftward binocular (black, n = 2135 simZFish bouts, n = 3295 zebrafish bouts), monocular medial (green), and monocular lateral (purple) stimuli, both increase turns and biased swim bouts in the direction of motion. E Average histograms of bout frequency for simZFish and real zebrafish to visual stimuli (symbols as in Fig 2F ). Bout distributions of simZFish qualitatively replicate the characteristic trimodal zebrafish behavior. Filled circles plotted on the simZFish histograms show peak frequencies for real zebrafish’s left, forward, and right bouts. Triangles show peak frequencies for simZFish, with shaded area shows S.E.M. across N = 38 fish. F Comparison of normalized bout probability for real zebrafish (y-axis) and simZFish (x-axis) for forward bouts (Fb) probability and turn bout (Tb) probability. Each point represents the normalized integrated response for each stimulus. Points close to the diagonal indicate a good match between real zebrafish and simZFish data. Error bars represent S.E.M. G Left, Simulation still image of simZFish (red) in a virtual river. Right, Heading angle over 30 seconds for different initialized directions (−180°, −135°, −90°, −45°, 0°, 45°, 90°, 135°, 180°). As real zebrafish, simZFish first aligns with a few bouts and then swims against the current, with an average heading angle of −5.27°, +/−3.03° in the last second. H Left, displacement of simZFish in a virtual river at different flow speeds. simZFish overcompensates for too slow virtual currents but is dragged downstream if currents are too fast. Right, simZFish maintains its position on average (red) across 10 repetitions of being placed in virtual currents flowing at 0.3 cm/s. After confirming simZFish OMR performance with moving gratings, we tested whether simZFish’s circuits compensate for virtual water currents with naturalistic visual stimuli, which occur when simZFish is dragged in a simulated river ( Fig. 3G , Supplementary Movie 4 ). When initialized with different heading directions, simZFish eventually oriented its heading direction against the flow, performing rheotaxis, as observed in real fish maintaining position in rivers ( 20 ). This demonstrates that simZFish’s circuits enable position-stabilizing, which requires repeated alignment with varying optic flow directions to swim upstream. In different flow velocities, simZFish maintains its position for speeds up to 0.3 cm/s, overcompensating for slower flow velocities ( Fig. 3H ). These simulations show that simZFish’s circuits contribute to maintaining position in moving waters with visual input alone, effectively performing rheotaxis autonomously. In principle, this suggests that these visuomotor computations can compensate for water current-induced displacement, especially in situations where mechanosensory information from the lateral line organ is not reliable ( 20 ). Importantly, these results not only validate the circuit functionality but also provide evidence for OMR’s purpose as a sensory-guided stabilization mechanism. Effects of embodiment on network function In principle, although simZFish enables testing infinite conditions, it can also serve as a tool to systematically explore the effects of manipulations of body morphology and neural connectivity, which may not exist or are difficult to test in real zebrafish. Here, we used simZFish to measure the effects of altering the sensory morphology, specifically the properties of its optical lens ( 52 ). By equipping simZFish with lenses of different focal lengths that produced varying field-of-view angles ( 53 ), we investigated how these optical properties affected the perceived image on the artificial retina ( Fig. 4A , S5A ). Since we could precisely enforce simZFish’s position in three-dimensional space, we imposed a specific perspective to compare lens effects on perception directly to analyze the visual scene through simZFish’s eyes. As predicted from optical principles, the focal length affected the perceived visual projection onto the simulated retina, with a wider field of view corresponding to shorter focal lengths. When analyzed for optic flow, focal length does not affect areas without contours, such as the simulated, featureless ‘sky’ above the horizon, appearing like the real sky for submersed zebrafish when looking upward through Snell’s window, ~42° elevation ( 54 ). This upper visual field contains little information about visual motion generated by being dragged underwater ( 55 ). However, contoured features, such as river rocks, reveal that lenses with shorter focal lengths produce expected perspective exaggerations, rendering closer features larger and those that are more distant smaller ( Supplementary Movie 5 ). Therefore, focal length affects the processing of any patterned bottom-projected stimuli ( Fig. S6A , B ). Narrower angle lenses increase the optic flow magnitude of gratings moving orthogonally to the image plane of the camera or eye but have minimal effect on the optic flow magnitude of parallel stimuli ( Fig. 4A ). Analysis of the simZFish perceived sensory information shows that focal length mainly changes the amount of measurable optic flow for stimuli containing orthogonal light-dark edges ( Fig. S5B – H ). Calculating the optic flow magnitude, we traced these embodiment effects throughout the entire neural network activity ( Fig. 4B , S6B – F ) and resulting behavior ( Fig. 4C ). Thus, lens morphology directly affects neural activation and sensory-driven behavior in identical neural networks ( Fig. S6C , D ). Fig. 4 |. Effects of embodiment on neural activity and visually guided behaviors. Open in a new tab A simZFish can be equipped with optical lenses with different focal lengths. Right, Snapshots of right camera recordings gratings drift in parallel (0° or 180°) or orthogonal (90° or 270°) directions to the body axis viewed through lenses (rectangular insets), light grey, 90°; grey, 120°; black, 150°. Narrow-angle lenses increase optic flow for orthogonal stimuli but minimally affect parallel stimuli. B Neural recordings of pretectal (ioB) and aHB neurons illustrate that changing focal length has specific effects on neural activation, predicted by increased optic flow for narrower angle lenses with 90° lenses (light grey) increasing ioB responses to orthogonal stimuli, but not to parallel stimuli. C Bout frequency histograms from simZFish equipped with different lenses (90°, 120°, 150°; lighter to darker color). Orthogonal stimuli viewed through 90° lenses led to increased optic flow, altering behavior nonlinearly. D Dorsal view of simZFish’s left and right visual fields, which can be separated into quadrants, defined by their location in the upper, lower, anterior (blue), and posterior (red) areas of the retina. E Snapshots of recorded left eye/camera views during parallel forward motion. Perspective distortion leads to rotational optic flow for parallel sinusoidal stimuli. Right, forward motion, the lower anterior (LA) retina perceives upward (superior) and nasal (anterior) optic flow. In contrast, the lower posterior (LP, red) visual field perceives anterior and downward (inferior) optic flow, activating the corresponding DSGCs. F Snapshots of recorded left eye/camera views during orthogonal sinusoidal stimulation. Right, the entire lower visual field perceives downward (inferior) optic flow, thus only activating inferior selective DSGCs. G Neural recordings of ePTs when all (grey), only LP (red), or LA (blue) DSGCs are connected; colors as in e . Medial motion (m*) drives strong activation of inferior (light blue) and anterior (dark blue) selective ePTs only with LP connected (black arrowheads). LP connectivity optimally drives zebrafish OMR behaviors as medial/forward motion coactivates the same ePts in simZFish. simZFish also permits the testing of neural connectivity that does not exist or is difficult to manipulate in real zebrafish. During early network tuning, we found that connecting all DSGCs led to poor OMR performance, with no increased bout frequency in response to forward motion. Optic flow analysis of perceived visual input suggested that this occurred because the perspective-distorted rotational direction information generated by stimuli with parallel gratings cancels each other out ( Fig. 4D , Supplementary Movie 6 ). This cancellation reduces the network’s ability to differentiate the direction of motion using local motion processing. As DSGCs process visual information locally, obfuscating the overall optic flow pattern is a phenomenon known as the ‘aperture problem’ ( 56 ). Due to perspective distortion of bottom-projected parallel, forward stimuli, the local optic flow co-activates inferior and anterior selective DSGCs in the lower posterior retina and superior and anterior selective DSGCs in the lower anterior retina ( Fig. 4E ). In contrast, orthogonal stimuli only activate either inferior or superior DSGCs across the lower visual field ( Fig. 4F ). Systematically altering the connectivity between DSGCs and ePTs revealed that the lower posterior visual field is most effective, as only this connectivity strongly activated the downstream circuit to drive increased bout frequency ( Fig. S6E , F ). Notably, our findings align well with biological studies, which show that the OMR is most strongly evoked by motion in the lower posterior visual field ( 55 ), matching real pretectal receptive fields ( 31 ). Moreover, medial/forward motion-responsive neurons are the most frequent monocular response type in real zebrafish (iMM ( 25 ), cf.,’MoNL’ ( 32 )), which respond to medial (nasalward) and forward (translational) motion. Therefore, in simZFish, we connected only the lower posterior DSGCs to drive ePts. Although it is plausible that alternative neural circuits favoring lower anterior DSGCs connectivity could be equally effective, they would require downstream visuomotor circuits different from those experimentally observed ( 25 ). Conceptually, these results suggest that the sensory input—specifically, rotational optic flow patterns in the lower visual field— dictates the architecture of the neural circuits. If evolutionary pressure favors minimizing neural connections, this configuration provides an effective solution, maximizing optic flow information for downstream neural circuits while minimizing wiring and computational load. Practically, these results demonstrate that neural connectivity and ethologically relevant sensory input not only affect neural activity and resulting behavior but might even dictate neural architecture itself ( 57 ). Simulation predictions drive network improvements The first iteration, simZFish1.0, successfully replicates key behavioral aspects of zebrafish OMR, partly due to its tuning to match behaviors for limited orthogonal stimuli ( 25 ). However, simZFish1.0, relying on neurons classified by their responses to these stimuli, exhibited difficulties in modeling neural activity and behavior to backward motion ( Fig. 3F ). Using simZFish1.0 as a predictive framework ( Fig. 5A ), we challenged it with an expanded monocular and binocular parallel moving stimulus as evoked by body forward and backward translation ( Fig. 5B ). Unexpectedly, simZFish1.0 predicted strong turning when tested with these novel stimuli it had not previously encountered, including forward-moving gratings to one eye and backward to the other (FB, Fig. 5B , S6C – F ). Presenting these new stimuli to real zebrafish ( Fig. 5C , middle), we observed substantial behavioral differences ( Fig. S7A , B ), suggesting mismatches between the real and simulated neural architectures. Fig. 5 |. Iterative simZFish neural network refinement with new behavioral and neural data. Open in a new tab A Data-driven strategy to iteratively improve neuromechanical simulations. B Monocular and binocular forward (teal) and backward (orange) stimulus combinations move ‘parallel’ to the body axis. Previously, simZFish1.0 had only encountered binocular FF and BB. Conflicting, ‘shearing’ combinations of forward and backward (black) to each eye test how these information channels interact. C Scatter plots comparing bout distributions in response to ‘parallel’ stimulus set for simZFish1.0 (light red), representative real zebrafish (blue), and simZFish2.0 (darker red). D Schematic of two-photon microscopy to record in vivo neural activity from real transgenic Tg(elavl3:H2B-GCaMP6s) zebrafish while presenting motion stimuli. E Representative two-photon image of Pt, nMLF, and aHB, overlayed with all detected motion-sensitive neurons as dots, encoding direction selectivity (hue) and activation level (brightness); see the color wheel. Neurons responding to leftward (blue) and rightward (red) motion cluster in the left and right hemispheres, respectively. Scale bar, 50 μm. F Same brain regions as in E , overlaid with all leftward selective oB type neurons (oB L , n = 394, 7 zebrafish). Each is colored based on its class, defined by the hierarchical clustering of each neuron’s ΔF/F, shown as a heatmap (right). oB L neurons contain at least forward (oB1 L ) and backward (oB2 L ) subtypes. Scale bar, 50 μm. G Mean normalized ΔF/F traces of oB1 L , oB2 L in response to the 16 stimuli in real zebrafish (blue) and recordings in simulated simoB1 L , simoB2 L neurons (red). Shaded area, S.E.M. across neurons. H Data-driven strategy to update the simZFish1.0 (light red) network with the addition of simulated neurons found in real zebrafish, simZFish2.0 (darker red). I Comparison of measured probability for forward bouts in real zebrafish, simZFish1.0, and updated simZFish2.0 for stimuli in B (legend). Each point is the mean peak behavioral response. simZFish1.0 predicts incorrect bout probabilities, repaired in simZFish2.0. J Measured probability for turn bouts in real zebrafish, simZFish1.0, and updated simZFish2.0. As expected, real zebrafish and simZFish1.0 strongly increased bout frequency to binocular forward motion (FF, Fig. S7C – E ), and monocular forward motion (xF, Fx) triggered ~50% of the bout rate. However, in real zebrafish, monocular backward (xB, Bx) induced turning in the direction of the stimulated eye, indicating that the brain interprets this as a turning stimulus despite the absence of formal directional information. In simZFish1.0, these stimuli strongly increased turning to the opposite side, predicting discrepancies in their neural architecture ( Fig. S7C ). When conflicting forward and backward motion was presented to either eye (BF, FB), mimicking rotational or shearing motion, real zebrafish bout rate remained near spontaneous levels. These behavioral results reveal complex interactions across eyes and motion directions in real zebrafish, which were not identified before and, therefore, absent from simZFish1.0 ( Fig. S7G ). We hypothesized that these discrepancies stem from differences in neural response characteristics or connectivity. To improve simZFish1.0, we recorded neural activity across the brain via two-photon calcium imaging in response to all parallel and orthogonal stimuli ( Fig. 5D , Methods ). Mirroring the behavior, we discovered some backward-selective neurons were suppressed by forward motion to the opposite eye, indicating a neural mechanism that reduces turning ( Fig. S8A ). Since these computations were not captured in simZFish1.0, we classified all neurons into the original overrepresented response classes ( Fig. 5E ) and applied unbiased hierarchical clustering to reveal subtypes ( Fig. 5F , S8B ). Notably, neurons most critical for turning (oB, B, Mm, S), split into forward and backward selective types, with additional neurons responding to both and showing suppression to the contralateral eye ( Supplementary Movie 7 ). These forward and backward-preferring subtypes were prevalent across all zebrafish, highlighting their importance in motion processing ( Fig. S8C – E ). Updating the simulated neural architecture, we incorporated these subtypes into simZFish1.0, drastically improving its behavior ( Fig. 5G , S7H ). Quantitative comparisons of bout probabilities confirmed that simZFish2.0 functionally replicates real zebrafish behavior ( Fig. 5I – J ). This iterative process enhanced the simulated neural circuit’s accuracy and realism, offering important insights into circuit function. Physical robot performs OMR in a natural river The complexity of the real world is challenging to replicate in simulation. For instance, real fish in natural rivers experience far richer visual inputs than we can simulate, including variations in texture, turbidity, and lighting. Real-world fluid dynamics present challenges, such as turbulences and irregular flow patterns. To validate the functionality of the simZFish neural network in real-world conditions, we implemented it in a real swimming zebrafish-like physical robot, ZBot ( Fig. 6A ). Fig. 6 |. Robot with OMR circuit achieves positional stabilization in natural environments. Open in a new tab A Photographs of ZBot with 3D renderings of a tail segment and a waterproof head segment. B Vertically head fixed ZBot, viewing visual stimuli. Right, views through ZBot cameras demonstrate the perspective distortion effect on orthogonally oriented gratings, 0° or 180°. C Aerial view of ZBot in a lake. Right, ZBot camera views show visual input in naturalistic environments. The lower visual fields contain visual contrast features crucial for activating the OMR mechanism. D Aerial views of ZBot in a natural, fast flowing river, snapshots 5 s apart, zoom in at 60 s. ZBot is released at same location, with an initial 0° heading direction. Due to water flow, ZBot eventually drifts out of the field of view as it is swept downstream. E Time-aligned nMLF, aHB activity, and tail angle corresponding to D . After a spontaneous bout, ZBot drifts rightward, thus experiencing leftward optic flow (blue shading), inducing tail-bending bias to the left and alignment against the water flow direction. F Zoom-in on an example of a tail angle change during ZBot bouts to the left and right. G Bar graphs compare the average time before ZBot leaves the drone’s field of view, with activated OMR circuit (red, 57.6 s +/− 13.17 s), without OMR (blocked visual input, grey, 37.0 s +/− 5.72 s), or motors off (light grey, 20.0 s +/− 1.0 s). ZBot stays in view significantly longer with an activated OMR mechanism, but even random swimming (without OMR) aids its positional stabilization. Error bars represent standard deviation. Undisturbed number of trials: OMR, N = 5, no OMR, N = 8; motors off, N = 2. p = 0.0093, Mann-Whitney U-test for OMR vs. blinded OMR. Although the ZBot would ideally replicate the small size (~4 mm) of the larval zebrafish body, current technology does not permit the construction of such small robots with the required hardware (cameras, controller, motors, electronic boards, batteries, waterproofing, etc.). Thus, our larger-scale ZBot (~ 80 cm) balances key features of real larval zebrafish with technological requirements ( Fig. S9A ). The ZBot is equipped with two laterally positioned cameras acting as eyes, a series of servomotors moving its tail segments, and a computational control board with the same neural circuits as simZFish ( Fig. S9B ). We tested ZBot’s capabilities while suspended in air, swimming freely in clear, stationary water, and navigating a fast-flowing, shallow river with turbulent, sometimes muddy water. First, we conducted head-fixed OMR experiments to investigate ZBot’s neural activations to moving gratings ( Fig. 6B , S9C , D ). Stimulating the ZBot with OMR stimuli displayed on a screen, we recorded video from the onboard cameras and the activation of its artificial neurons ( Fig. S9E ). These controlled experiments demonstrate the strong correspondence between ZBot and simZFish camera views ( Fig. 6B , C ). As expected, we observed comparable neuronal responses across ZBot, simZFish, and real zebrafish, suggesting that ZBot visual processing aligns with that of real zebrafish in these laboratory conditions. To evaluate the ZBot’s swimming capabilities, we released it into a stationary lake ( Fig. S9F , Supplementary Movie 7 ). Despite the size differences, ZBot exhibited swimming kinematics like real larval zebrafish, demonstrating realistic bout and glide behavior with preset bout (0.09 Hz), and tail-beating frequencies (1.5 Hz). Each tail-beating bout phase lasted ~5 s, completing five tail-beating cycles ( Fig. S9G – H ). ZBot traveled twice as far per bout as the real zebrafish, likely due to differences in fluid dynamics. ZBot operates in a turbulent regime, with a higher Reynolds number (1.35*10 5 , at 0.15 m/s), experiencing lower viscous drag than the real larval zebrafish, which experience intermediate Reynolds numbers: 10–1000 ( 58 ) and are influenced by both viscous and pressure drag ( 59 ). Since viscous drag is higher than pressure drag during the gliding phase, the comparatively small body of larval zebrafish experiences higher drag while gliding ( 59 ), resulting in proportionally shorter gliding distances compared to the ZBot ( Fig. S9I ). Recordings of the ZBot’s cameras, even in clear waters, emphasized the importance of lower visual fields, as visual features above a certain elevation tend to be blurred and saturated by light ( Fig. 6C , S10A ). To test whether the ZBot can use its OMR network to stabilize its position in real water currents, we performed experiments in a natural river with rich visual scenery and irregular water flow ( Supplementary Movie 9 ). We chose a shallow, relatively clear river with sufficiently fast water flow to induce OMR by dragging the ZBot downstream. In standardized experiments, we released the ZBot always at the same location while a remote-controlled drone recorded video of the ZBot’s position from above until the ZBot was swept out of the drone’s field of view ( Fig. 5D ). For each trial, we recorded the ZBot’s displacement, its artificial neuronal activation, and its tail angles ( Fig. 6E ). The remotely recorded neural activity demonstrates that the natural visual input is sufficient to orient ZBot upstream, adjusting heading direction with directed turn bouts and increasing forward bout frequency when aligned with the direction of optic flow ( Fig. 6F ). As predicted from our simulations ( Fig. 3G ), the OMR circuit aided the ZBot to maintain its position in the river as it remained in the drone’s field of view notably (57%) longer than when its OMR circuit was blinded (cameras off), but spontaneously swimming in bouts in random directions. Further, the activated OMR circuit allowed the ZBot to maintain its position far (188%) longer than drifting with motors off ( Fig. 6G ). Remarkably, the OMR circuit enabled the ZBot to navigate upstream despite the highly variable and blurry visual input in the river ( Fig. S10B ). Nonetheless, even with active OMR circuits, the ZBot eventually drifted downstream, like the simZFish in faster virtual water currents. As simZFish and ZBot currently lack any ability for motor adaptation ( 60 ), such as adjusting their speed to compensate for faster river flow, they are limited by their maximal swimming speed and bout frequency. Together, these results demonstrate that our sensory-driven OMR circuit aids the physical ZBot to reorient its body against the flow to compensate for being dragged downriver. Discussion Solving the design principles of brain sensorimotor systems remains a challenge that cannot be solved with models decoupled from the body and sensory feedback ( 5 , 61 ). To address this, we developed and analyzed zebrafish-inspired neuromechanical simulations and a robot, capturing visually evoked locomotion and neural activity. By synthesizing empirical neurobiological data into a physics-based simulator, we created simZFish, which accurately reproduces body-water interactions, neural circuits, and visual environments ( Fig. 2 ). Equipped with realistic brain-scale neural circuits, from photoreceptors to motor neurons, simZFish and the physical ZBot generate OMR behaviors like live zebrafish ( Fig. 3 ). Our findings demonstrate the utility of artificial OMR circuits in fish-like simulated and physical bodies for compensating for downstream drift ( Fig. 3G , 6D ). Manipulations to simZFish exposed how embodiment influences neural architecture by permitting access to otherwise hidden variables, such as visual input from the fish’s perspective, highlighting how sensory morphology shapes emergent neural functionality and how the physical properties of visual stimuli dictate optimal neural connectivity ( Fig. 4 ). Ultimately, simZFish served as a predictive framework that suggested novel behavioral and neural experiments, leading to the identification of neural characteristics critical for biorealistic OMR behaviors ( Fig. 5 ). The physical ZBot further validated these neural algorithms in the wild, contributing to stabilizing its position in challenging, natural environments with fast-flowing, turbid water conditions ( Fig. 6 ), reinforcing its potential for studying sensorimotor systems in real-world environments. Robots ( 62 ) and neuromechanical simulations ( 63 ) are increasingly used to investigate specific aspects of adaptive animal behavior ( 5 , 64 ), from insect navigation to lamprey locomotion ( 5 , 11 , 63 , 65 , 66 ), coordination in rodents ( 9 ), and humans ( 67 ). Here, we model the complete sensorimotor transformation, from raw photoreceptor signals to muscle actuation and the resulting physical and sensory feedback loops. simZFish and ZBot provide open-source tools to investigate visuomotor coordination, enabling the exploration of how embodied neural circuits perform in vastly different scenarios from those in which they were measured. This approach overcomes the experimental limitations of real zebrafish, testing functionalities in virtual conditions that are difficult or impossible to test in vivo. Although brain scale imaging ( 25 , 60 , 68 ) and causal manipulations ( 69 ) via optogenetics are possible in zebrafish, they are costly and technically challenging, particularly during movement ( 70 ). In contrast, simulations are cost-effective and allow for systematic testing of body or neural connectivity modifications ( 6 , 61 ). simZFish provides full control over sensory input and artificial neurons during free locomotion, offering virtually unlimited opportunities to manipulate neuronal properties and physical attributes like lens characteristics or body proportions ( Supplementary Discussion ). Beyond replicating controlled lab experiments, simZFish’s visuomotor circuits are sufficient to reorient upstream ( Fig. 3G ). Thus, this relatively complex behavior can emerge from sensing local optic flow, demonstrating that simZFish generalized to unseen visual environments, robustly and autonomously performing rheotaxis ( 36 ). Although multiple sensory modalities, including mechanosensation and proprioception, influence rheotaxis ( 36 , 71 ), simZFish circuits alone can effectively drive rheotaxis if visual information is available. Demonstrating that vision is sufficient is a challenging and non-trivial result, since isolating one sensory modality while deactivating all others is rarely possible in animals. By systematically analyzing visual input through simZFish’s eyes ( Fig. 4 ), we confirmed that optic flow processing is biased to the lower visual field, where most contrast and chromatic content is found in underwater habitats ( 54 ). Through controlled manipulations of visual input, lens properties, and retina-pretectal connectivity, we revealed how physical attributes and connectivity influence neural activity across the network, behavior, and, ultimately, neural circuit design. Specifically, our simulations explain why pretectal neurons in real zebrafish preferentially respond to motion in the lower posterior visual field ( 25 , 30 , 31 ), because with laterally positioned eyes, translational, bottom-projected visual stimuli generate opposing rotational optic flow patterns ( Fig. 4E ). Restricting retinal-pretectal connectivity to only one quadrant, may confer computational advantages, allowing combined processing of forward/medial and backward/lateral motion which drive or reduce locomotion, respectively ( 25 ). These results, supported by the prevalence of these response types in real zebrafish, uncover neural circuit design principles influenced by embodiment. Crucially, these insights prompted us to use an expanded set of translational stimuli, uncovering discrepancies between the simZFish and real behavior, which directly predicted functional neural subtypes with specific stimulus preferences and circuit layouts ( Fig. 5D ). Incorporating these neurons into simZFish improved behavioral accuracy and provided a valuable strategy for reverse-engineering visuomotor systems, uncovering previously overlooked, behaviorally relevant neural computations. Moving beyond simulations, we constructed a physical robot using the same artificial neural architecture as simZFish. Fish-like robots have been designed to address questions about swimming and sensorimotor coordination ( 72 ), tactile feedback ( 73 ), lateral line sensing ( 74 ), vortex phase matching ( 75 ), and tradeoffs between maneuverability and stability ( 76 ). Other non-fish-like robots have been developed with biologically inspired visual stabilization, for visually-guided bee flight ( 22 , 77 ), and several fish-like robots with camera vision ( 62 , 63 , 78 , 79 ). Nonetheless, ZBot is unique in using a biorealistic, neurobiologically derived artificial neural architecture. Investigating the visual input of the ZBot demonstrates the complexity of natural visual input, including turbidity, glare, and Snell’s window, which limits the field of view underwater due to surface refraction ( 80 ). Thus, the physical constraints of the underwater environment, as well as those imposed by embodiment, dictate the design of the optimal neural architecture in both real fish and these artificial agents. The current methods for stabilization in floating robots, such as quadcopters and underwater vehicles often use multiple cameras pointing downward ( 81 ). Our zebrafish-inspired artificial neural architecture, featuring just two laterally positioned eyes, offers a bio-inspired strategy for stabilizing fish-like robots in fluid flows, thereby reducing cost and weight. Ultimately, our findings demonstrate how neural circuits, body morphology, and environmental context interact to shape neural circuits and adaptive behavior. Future studies should investigate how different sensory modalities, such as mechanosensation ( 82 , 83 ), proprioception ( 84 ), or cerebral fluid sensors ( 85 ), contribute to behavior modulation. Our physics-based simulations also provide a platform for investigating neural feedback mechanisms and gain control ( 60 , 86 ) and visually guided behaviors, such as predator avoidance ( 87 ), and prey capture ( 88 ). By reverse engineering sensory processing using end-to-end neuromechanical simulations of real animals, future versions of simZFish could incorporate other neurobiological data, such as connectivity mapping via electron microscopic reconstructions ( 89 ), optogenetic manipulations ( 69 ), or transsynaptic labeling ( 90 ). Moreover, simZFish would benefit from machine learning techniques ( 66 , 91 ), including supervised ( 92 ) or reinforcement learning ( 93 ) of target behaviors. Iterating between biorealistic simulations, neurobiological and behavioral experiments, and robotic testing offers great potential to deepen our understanding of the neuromechanical principles underlying adaptive behavior in biological and artificial agents. Ultimately, this integrated approach lays the foundation for investigating how embodied brains evolve to function in dynamic, real-world environments. Materials and Methods Study design The overall design of this investigation was to test whether experimentally derived neural circuits in embodied simulated and physical agents can perform complex visuomotor behaviors. The rationale for ZBot recordings was to record behavior under comparable natural conditions in a real-world river. For all zebrafish behavior, we met or exceeded the field’s standard for the number of experimental animals (>16) and trial repetitions (>10, >25 s trial length); for imaging studies (> 7 animals), stimulus repetitions (>5). For more details on experimental design and methods, see Supplementary Methods . simZFish physical body hydrodynamics and simulated neural architecture simZFish was implemented in Webots 2021a (Cyberbotics Ltd, Switzerland). We approximated the real larval zebrafish ( 39 ) body dimensions (length: 4 mm, height: 0.44 mm, weight: 0.0938 mg) and a density slightly lower, 91.5 % of water itself. The simZFish contains a head segment with bilateral cameras and pectoral fins, followed by six body segments and a tail fin, connected by a hinge joint under the actuation of a servomotor. These servomotors are designed to rotate to the desired joint angle set by the neural network’s output. To allow the simZFish to perceive simulated visual information, the head includes two simulated color cameras with no-distortion lenses measuring 120° diagonally, at 1000 frames per second (fps), 320 * 240 pixels resolution, ~0.3 retinal degrees. Running at 1000 Hz, the simZFish neural network is composed of visual processing, sensorimotor, and locomotor circuits of the simulated spinal cord. These circuits are modeled using rate-coding neural models, which compute the firing rate of a neuron based on a sum of inputs and a sigmoid transfer function (for more details, see Supplementary Methods ). To present simulated visual stimuli to the simZFish, we constructed virtual displays (8 * 8 cm, 2048 * 2048 pixels). To simulate closed-loop OMR experiments for at least 2000 seconds, the displays showed black and white gratings with a spatial frequency of 1 cycle/cm, 10 mm/s, refresh rate 250 Hz, rotating and moving in lockstep to the simZFish. ZBot physical construction ZBot’s length (~80 cm) and weight (2.7 kg) represent reasonable trade-offs between approximating real larval zebrafish morphological features and satisfying technical requirements to equip a moving fish-like robot with cameras, electronic boards, batteries, motors, and waterproofing. ZBot consists of seven serially connected modules and a flexible fin (length: 15 cm; height: 12 cm). These modules are 3D-printed (polylactic acid, X-Max, Qidi Tech, China), connected by hinge joints, which are actuated by servomotors (XM430-W350-T/R, ROBOTIS Co., Ltd., South Korea) and rotate horizontally. By controlling the relative rotational angles of each joint, the ZBot generates head-to-tail traveling waves. The head module (21 * 8 * 10 cm) contains a computer (Raspberry Pi 4 Model B, Raspberry Inc., UK) running the simZFish neural circuitry software. This central controller communicates with serially connected servomotors via a USB cable and USB-RS485 converter (DYNAMIXEL U2D2, ROBOTIS Co., Ltd., South Korea). ZBot has two laterally positioned, compact (15 * 15 * 8 mm), color-sensitive CMOS cameras (MU9PC-MH, XIMEA GmbH, Germany). Each CMOS sensor contains 5 megapixels (pixel size: 1.2 μm; active sensing area: 5.7 * 4.28 mm). Replicating real zebrafish eyes, we installed wide-angle (125°), low-distortion lenses (M27289M07S, Arducam, China). Matching spatial (0.5° to 3°) and temporal sensitivity (10 to 20 ms) in motion detection in zebrafish, each camera operates at a resolution of 320 * 240, frame rate of 50 fps, and fixed exposure time of 10 ms, using the automatically adjustable gain function to adapt to a range of ambient light levels. A Lipo battery (11.1V 3s 2500 mAh 30C, nVision NVO1811, Neidhart SA Switzerland) in the head supplies power to the sensors, controller, and motors, lasting for õne hour at full charge. We attached steel weights to the head to move the center of mass towards the head. To waterproof the ZBot, we applied a coating to the hard head shell. The body is wrapped in a thermoplastic polyurethane, ~1 mm thick. A hard shell was attached to each segment outside the soft sleeve to ensure that the surfaces interacting with water kept the same form and area, providing a waterproof, flexible, and consistent robotic morphology. ZBot OMR in a natural river To test the ZBot’s ability to navigate in natural waters, we chose the river Chamberonne (Lausanne, Switzerland) for its often relatively clear water, shallow depth (0.3 to 0.6 m), moderate width (6 m) for safe experimental access, reasonable flow speed ~0.5 m/s over a rocky riverbed. As rain muddied the water, decreasing visibility, experiments were only conducted if it had not rained in the past five days. As the water flow in natural rivers varies rapidly, we conducted all experiments within one hour on the same day to ensure comparable visibility and current velocity. We recorded the robot’s position via a drone (Mini SE, SZ DJI Technology Co., Ltd., China), hovering at ~12 m above the river (field of view: 15 * 15 m; frame rate: 30 fps; resolution: 2720 × 1530). Each trial started with the ZBot software operator remotely controlling the onboard ZBot software. For all trials, ZBot was released with the same initial upstream heading direction (0°). ZBot recorded artificial neural activation internally by writing log files and saving visual input data from the onboard cameras whenever memory constraints permitted, terminating each trial after 120 seconds. Of 29 trials, we included 14 trials in the final analysis because the other 16 trials were corrupted due to collisions with the river edge (4 trials), swimming upstream out of the drone camera view (3 trials), and failure of Wi-Fi communication (6 trials). Zebrafish For all live zebrafish experiments, we used 6–9 days post fertilization (dpf) zebrafish, maintained on a 14/10 hour light/ dark cycle at 28.5 °C. Embryos were raised E3 solution (5 mM NaCl, 0.17 mM KCl, 0.33 mM CaCl2, 0.33 mM MgSO4), fed with paramecia starting at four dpf. For imaging, we used homozygous Tg(elavl3:H2B-GCaMP6s) ( 94 ) in the Casper background ( 95 ). All live zebrafish experiments were approved by Duke University School of Medicine’s animal care and use program (IACUC, Protocol Registry #A058-24-03). Optomotor behavior in live zebrafish We adapted our closed-loop routines to record responses to visual stimuli in freely swimming zebrafish ( 25 , 96 ). Briefly, we recorded each zebrafish’s position and orientation from above at 163 Hz using a high-speed camera while projecting visual stimuli from below. This information was rerouted into our custom 3.7 Python pandastim visual stimulus rendering software to present stimuli to each eye, locked to the position and angle of the fish body axis to maintain a closed-loop configuration. Each trial started with the presentation of 3 s stationary gratings, followed by gratings moving at 10 mm/s for up to 30 s or until the fish aborted the trial. We removed zebrafish from further analysis if there were tracking artifacts or the fish did not perform at least one trial of each visual stimulus repetition. Extracted position and orientation data were further analyzed to extract individual bouts and compared to simZFish behavior. Bout extraction and other behavioral analyses were performed similarly to those described previously ( 25 ). Average bout frequencies were computed over the total stimulus time, displayed as bout angle frequency histograms. Two-photon calcium imaging in live zebrafish To record neural activity in live zebrafish, we performed volumetric calcium imaging with a custom two-photon laser-scanning microscope at 950 nm (InsightX3, Spectra Physics, USA). Live, transgenic zebrafish, Tg(elavl3:H2B-GCaMP6s), were head-fixed in 2 % weight/volume low-melting-point agarose (Sigma Aldrich) in E3 medium. We imaged an area of ~300 μm x 300 μm acquisition rates of 0.85 – 0.9 Hz, eight planes per zebrafish, 5 μm apart, spanning a 40 μm volume. We removed zebrafish from further analysis if there were imaging artifacts or if the population response in the pretectum did not show consistent activation by whole-field visual stimuli. At least five repetitions of the 16 binocular and monocular orthogonal and parallel moving stimuli were presented with a black bar underneath the fish. Each stimulus lasted 15 s in total, beginning with a 10 s stationary period during which the orientation of the grating changed, followed by a 5 s moving phase. Following data acquisition, uncompressed image stacks were movement corrected using CaImAn, and Suite2p was used for source identification and signal extraction ( 97 ). Classification into overrepresented response types was adapted from our previous methods ( 25 ), followed by hierarchical clustering (SciPy). Statistical analysis To compare zebrafish and simZFish behavior, the tracking data were preprocessed to extract heading angle, x, and y coordinates of each locomotion bout during visual stimulation. All bouts were plotted as histograms across all trials for each stimulus for a representative zebrafish (> 10 trials) and simZFish’s continuous 2000 s per stimulus experiment ( Fig. 3D ). Otherwise, simZFish data were compared to live zebrafish average behavioral data (N > 16) for quantitative comparisons for absolute bout histograms and probabilities, presented as means ± standard error of the mean (SEM). The Mann-Whitney U-test was applied to compare the means of ZBot drift times ( Fig. 6G ). P values were used to indicate statistical significance (* P < 0.001). Supplementary Material VIDEO 1 Download video file (11.3MB, mp4) VIDEO 2 Download video file (6.1MB, mp4) VIDEO 3 Download video file (1.4MB, mp4) VIDEO 4 Download video file (15.3MB, mp4) VIDEO 5 Download video file (19.7MB, mp4) VIDEO 6 Download video file (13.6MB, mp4) VIDEO 7 Download video file (17.4MB, mp4) VIDEO 8 Download video file (4.4MB, mp4) VIDEO 9 Download video file (38.2MB, mp4) Supplementary Materials NIHMS2161523-supplement-Supplementary_Materials.pdf (12.9MB, pdf) Supplementary Discussion Supplementary Methods Figs. S1 to S10 Table S1 – 3 Supplementary Movies S1 to S10 Acknowledgments We thank Drs. Timothy Dunn and Henry Greenside for helpful comments; Misha Ahrens for the Tg(elavl3:H2B-GCaMP6s) transgenic fish; Florian Engert for support with pilot behavioral experiments. We thank Duke School of Medicine Z-Core for zebrafish husbandry. We thank Alessandro Crespi for his technical support in constructing the ZBot. Funding: This work is supported by grants from the ERC (Synergy grant 951477, Salamandra) to A.I. Research reported in this publication was supported by the National Institutes of Health, BRAIN initiative (RF1NS128895), and the National Eye Institute (R01EY033845) to M.D.L., K.E.F., and E.A.N. The content is solely the authors’ responsibility and does not necessarily represent the official views of the National Institutes of Health. The Whitehall and Alfred P. Sloan Foundation also supported M.D.L. and E.A.N. Footnotes Competing interests: NA Data and materials availability: The simZFish code is available at Automatic citation updates are disabled. To see the bibliography, click Refresh in the Zotero tab. . All software for generating visual stimuli, analysis of neural activity, calcium imaging, and behavioral data is available at https://github.com/Naumann-Lab . All code used was created using Python or MATLAB 2023b. Raw and processed two-photon microscopy data for all experiments are publicly available at https://dandiarchive.org/dandiset/001076 . Further information regarding zebrafish data should be directed to Eva Naumann at [email protected] , and for data regarding simulations, mechanical and electronic blueprints of the ZBot, to Auke Ijspeert at [email protected] . References 1. Seabrook TA, Burbridge TJ, Crair MC, Huberman AD, Architecture, Function, and Assembly of the Mouse Visual System. Annu Rev Neurosci 40, 499–538 (2017). [ DOI ] [ PubMed ] [ Google Scholar ] 2. Wang-Chen S, Stimpfling VA, Lam TKC, Özdil PG, Genoud L, Hurtak F, Ramdya P, NeuroMechFly v2: simulating embodied sensorimotor control in adult Drosophila. Nat Methods, 1–10 (2024). [ DOI ] [ PubMed ] [ Google Scholar ] 3. Pfeifer R, Bongard J, How the Body Shapes the Way We Think: A New View of Intelligence (The MIT Press, 2006; https://direct.mit.edu/books/book/2035/How-the-Body-Shapes-the-Way-We-ThinkA-New-View-of ). [ Google Scholar ] 4. Niven JE, Laughlin SB, Energy limitation as a selective pressure on the evolution of sensory systems. Journal of Experimental Biology 211, 1792–1804 (2008). [ DOI ] [ PubMed ] [ Google Scholar ] 5. Ramdya P, Ijspeert AJ, The neuromechanics of animal locomotion: From biology to robotics and back. Sci Robot 8, eadg0279 (2023). [ DOI ] [ PubMed ] [ Google Scholar ] 6. Lobato-Rios V, Ramalingasetty ST, Özdil PG, Arreguit J, Ijspeert AJ, Ramdya P, NeuroMechFly, a neuromechanical model of adult Drosophila melanogaster. Nat Methods, 1–8 (2022). [ DOI ] [ PubMed ] [ Google Scholar ] 7. Floreano D, Ijspeert AJ, Schaal S, Robotics and neuroscience. Curr Biol 24, R910–R920 (2014). [ DOI ] [ PubMed ] [ Google Scholar ] 8. Ijspeert AJ, Biorobotics: Using robots to emulate and investigate agile locomotion. Science 346, 196–203 (2014). [ DOI ] [ PubMed ] [ Google Scholar ] 9. Aldarondo D, Merel J, Marshall JD, Hasenclever L, Klibaite U, Gellis A, Tassa Y, Wayne G, Botvinick M, Ölveczky BP, A virtual rodent predicts the structure of neural activity across behaviours. Nature 632, 594–602 (2024). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 10. John A, Aleluia C, Opstal AJV, Bernardino A, Modelling 3D saccade generation by feedforward optimal control. PLOS Computational Biology 17, e1008975 (2021). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 11. Webb B, Can robots make good models of biological behaviour? Behav Brain Sci 24, 1033–1050; discussion 1050–1094 (2001). [ DOI ] [ PubMed ] [ Google Scholar ] 12. Aldarondo D, Merel J, Marshall JD, Hasenclever L, Klibaite U, Gellis A, Tassa Y, Wayne G, Botvinick M, Ölveczky BP, A virtual rodent predicts the structure of neural activity across behaviors. Nature, 1–3 (2024). [ Google Scholar ] 13. Baden T, Euler T, Berens P, Understanding the retinal basis of vision across species. Nature Reviews Neuroscience 21, 5–20 (2020). [ DOI ] [ PubMed ] [ Google Scholar ] 14. Knudsen EI, Evolution of neural processing for visual perception in vertebrates. J Comp Neurol 528, 2888–2901 (2020). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 15. Kretschmer F, Tariq M, Chatila W, Wu B, Badea TC, Comparison of optomotor and optokinetic reflexes in mice. J Neurophysiol 118, 300–316 (2017). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 16. Masseck OA, Hoffmann K-P, Question of Reference Frames: Visual Direction-Selective Neurons in the Accessory Optic System of Goldfish. Journal of Neurophysiology 102, 2781–2789 (2009). [ DOI ] [ PubMed ] [ Google Scholar ] 17. Winship IR, Crowder NA, Wylie DRW, Quantitative reassessment of speed tuning in the accessory optic system and pretectum of pigeons. J. Neurophysiol 95, 546–551 (2006). [ DOI ] [ PubMed ] [ Google Scholar ] 18. Mauss AS, Pankova K, Arenz A, Nern A, Rubin GM, Borst A, Neural Circuit to Integrate Opposing Motions in the Visual Field. Cell 162, 351–362 (2015). [ DOI ] [ PubMed ] [ Google Scholar ] 19. Egelhaaf M, Kern R, Krapp HG, Kretzberg J, Kurtz R, Warzecha AK, Neural encoding of behaviourally relevant visual-motion information in the fly. Trends Neurosci 25, 96–102 (2002). [ DOI ] [ PubMed ] [ Google Scholar ] 20. Oteiza P, Odstrcil I, Lauder G, Portugues R, Engert F, A novel mechanism for mechanosensory-based rheotaxis in larval zebrafish. Nature 547, 445–448 (2017). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 21. Borst A, Fly visual course control: behaviour, algorithms and circuits. Nat. Rev. Neurosci 15, 590–599 (2014). [ DOI ] [ PubMed ] [ Google Scholar ] 22. Franceschini N, Ruffier F, Serres J, A Bio-Inspired Flying Robot Sheds Light on Insect Piloting Abilities. Current Biology 17, 329–335 (2007). [ DOI ] [ PubMed ] [ Google Scholar ] 23. Santos-Victor J, Sandini G, Curotto F, Garibaldi S, Divergent stereo in autonomous navigation: From bees to robots. Int J Comput Vision 14, 159–177 (1995). [ Google Scholar ] 24. Loring MD, Thomson EE, Naumann EA, Whole-brain interactions underlying zebrafish behavior. Current Opinion in Neurobiology 65, 88–99 (2020). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 25. Naumann EA, Fitzgerald JE, Dunn TW, Rihel J, Sompolinsky H, Engert F, From Whole-Brain Data to Functional Circuit Models: The Zebrafish Optomotor Response. Cell 167, 947–960.e20 (2016). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 26. Orger MB, Kampff AR, Severi KE, Bollmann JH, Engert F, Control of visually guided behavior by distinct populations of spinal projection neurons. Nat. Neurosci 11, 327–333 (2008). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 27. Severi KE, Portugues R, Marques JC, O’Malley DM, Orger MB, Engert F, Neural control and modulation of swimming speed in the larval zebrafish. Neuron 83, 692–707 (2014). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 28. Huang K-H, Ahrens MB, Dunn TW, Engert F, Spinal projection neurons control turning behaviors in zebrafish. Curr. Biol 23, 1566–1573 (2013). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 29. Bahl A, Engert F, Neural circuits for evidence accumulation and decision making in larval zebrafish. Nat Neurosci 23, 94–102 (2020). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 30. Kramer A, Wu Y, Baier H, Kubo F, Neuronal Architecture of a Visual Center that Processes Optic Flow. Neuron, doi: 10.1016/j.neuron.2019.04.018 (2019). [ DOI ] [ Google Scholar ] 31. Wang K, Hinz J, Zhang Y, Thiele TR, Arrenberg AB, Parallel Channels for Motion Feature Extraction in the Pretectum and Tectum of Larval Zebrafish. Cell Reports 30, 442–453.e6 (2020). [ DOI ] [ PubMed ] [ Google Scholar ] 32. Kubo F, Hablitzel B, Dal Maschio M, Driever W, Baier H, Arrenberg AB, Functional architecture of an optic flow-responsive area that drives horizontal eye movements in zebrafish. Neuron 81, 1344–1359 (2014). [ DOI ] [ PubMed ] [ Google Scholar ] 33. Yildizoglu T, Riegler C, Fitzgerald JE, Portugues R, A Neural Representation of Naturalistic Motion-Guided Behavior in the Zebrafish Brain. Curr. Biol, doi: 10.1016/j.cub.2020.04.043 (2020). [ DOI ] [ Google Scholar ] 34. Kist AM, Portugues R, Optomotor Swimming in Larval Zebrafish Is Driven by Global Whole-Field Visual Motion and Local Light-Dark Transitions. Cell Rep 29, 659–670.e3 (2019). [ DOI ] [ PubMed ] [ Google Scholar ] 35. A Systematic Comparison of Simulation Software for Robotic Arm Manipulation using ROS2 | IEEE Conference Publication | IEEE Xplore. https://ieeexplore.ieee.org/document/10003832/ . 36. Coombs S, Bak-Coleman J, Montgomery J, Rheotaxis revisited: a multi-behavioral and multisensory perspective on how fish orient to flow. J Exp Biol 223, jeb223008 (2020). [ DOI ] [ PubMed ] [ Google Scholar ] 37. Zhang Y, Huang R, Nörenberg W, Arrenberg AB, A robust receptive field code for optic flow detection and decomposition during self-motion. Current Biology 32, 2505–2516.e8 (2022). [ DOI ] [ PubMed ] [ Google Scholar ] 38. Michel O, Cyberbotics Ltd. webots ™ : Professional mobile robot simulation. International Journal of Advanced Robotic Systems 1, 39–42 (2004). [ Google Scholar ] 39. Zhao Z, Li G, Xiao Q, Jiang H-R, Tchivelekete GM, Shu X, Liu H, Quantification of the influence of drugs on zebrafish larvae swimming kinematics and energetics. PeerJ 8, e8374 (2020). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 40. Marques JC, Lackner S, Félix R, Orger MB, Structure of the Zebrafish Locomotor Repertoire Revealed with Unsupervised Behavioral Clustering. Curr. Biol 28, 181–195.e5 (2018). [ DOI ] [ PubMed ] [ Google Scholar ] 41. Thiele TR, Donovan JC, Baier H, Descending control of swim posture by a midbrain nucleus in zebrafish. Neuron 83, 679–691 (2014). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 42. Zhou M, Bear J, Roberts PA, Janiak FK, Semmelhack J, Yoshimatsu T, Baden T, Zebrafish Retinal Ganglion Cells Asymmetrically Encode Spectral and Temporal Information across Visual Space. Current Biology 30, 2927–2942.e7 (2020). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 43. Barlow HB, Levick WR, The mechanism of directionally selective units in rabbit’s retina. J. Physiol. (Lond.) 178, 477–504 (1965). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 44. Emran F, Rihel J, Adolph AR, Wong KY, Kraves S, Dowling JE, OFF ganglion cells cannot drive the optokinetic reflex in zebrafish. Proceedings of the National Academy of Sciences 104, 19126 (2007). [ Google Scholar ] 45. Nikolaou N, Lowe AS, Walker AS, Abbas F, Hunter PR, Thompson ID, Meyer MP, Parametric Functional Maps of Visual Inputs to the Tectum. Neuron 76, 317–324 (2012). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 46. Sabbah S, Gemmer JA, Bhatia-Lin A, Manoff G, Castro G, Siegel JK, Jeffery N, Berson DM, A retinal code for motion along the gravitational and body axes. Nature 546, 492–497 (2017). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 47. Wiggin TD, Anderson TM, Eian J, Peck JH, Masino MA, Episodic swimming in the larval zebrafish is generated by a spatially distributed spinal network with modular functional organization. J Neurophysiol 108, 925–934 (2012). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 48. Fetcho JR, McLean DL, Some principles of organization of spinal neurons underlying locomotion in zebrafish and their implications. Ann. N. Y. Acad. Sci 1198, 94–104 (2010). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 49. Ijspeert AJ, Crespi A, Ryczko D, Cabelguen J-M, From swimming to walking with a salamander robot driven by a spinal cord model. Science 315, 1416–1420 (2007). [ DOI ] [ PubMed ] [ Google Scholar ] 50. Grillner S, The motor infrastructure: from ion channels to neuronal networks. Nature Reviews Neuroscience 4, 573–586 (2003). [ DOI ] [ PubMed ] [ Google Scholar ] 51. Lin Q, Manley J, Helmreich M, Schlumm F, Li JM, Robson DN, Engert F, Schier A, Nöbauer T, Vaziri A, Cerebellar Neurodynamics Predict Decision Timing and Outcome on the Single-Trial Level. Cell, doi: 10.1016/j.cell.2019.12.018 (2020). [ DOI ] [ Google Scholar ] 52. Collery RF, Veth KN, Dubis AM, Carroll J, Link BA, Rapid, Accurate, and Non-Invasive Measurement of Zebrafish Axial Length and Other Eye Dimensions Using SD-OCT Allows Longitudinal Analysis of Myopia and Emmetropization. PLoS One 9, e110699 (2014). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 53. Jagger WS, The optics of the spherical fish lens. Vision Research 32, 1271–1284 (1992). [ DOI ] [ PubMed ] [ Google Scholar ] 54. Zimmermann MJY, Nevala NE, Yoshimatsu T, Osorio D, Nilsson D-E, Berens P, Baden T, Zebrafish Differentially Process Color across Visual Space to Match Natural Scenes. Current Biology 28, 2018–2032.e5 (2018). [ DOI ] [ PubMed ] [ Google Scholar ] 55. Alexander E, Cai LT, Fuchs S, Hladnik TC, Zhang Y, Subramanian V, Guilbeault NC, Vijayakumar C, Arunachalam M, Juntti SA, Thiele TR, Arrenberg AB, Cooper EA, Optic flow in the natural habitats of zebrafish supports spatial biases in visual self-motion estimation. Curr Biol 32, 5008–5021.e8 (2022). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 56. Pack CC, Born RT, Temporal dynamics of a neural solution to the aperture problem in visual area MT of macaque brain. Nature 409, 1040–1042 (2001). [ DOI ] [ PubMed ] [ Google Scholar ] 57. Harris SC, Dunn FA, Asymmetric retinal direction tuning predicts optokinetic eye movements across stimulus conditions. Elife 12, e81780 (2023). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 58. Müller UK, van den Boogaart JGM, van Leeuwen JL, Flow patterns of larval fish: undulatory swimming in the intermediate flow regime. Journal of Experimental Biology 211, 196–205 (2008). [ DOI ] [ PubMed ] [ Google Scholar ] 59. An Un-Momentous Start to Life: Can Hydrodynamics Explain Why Fish Larvae Change Swimming Style? https://www.jstage.jst.go.jp/article/jbse/4/1/4_1_37/_article/-char/en . 60. Ahrens MB, Li JM, Orger MB, Robson DN, Schier AF, Engert F, Portugues R, Brain-wide neuronal dynamics during motor adaptation in zebrafish. Nature 485, 471–477 (2012). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 61. Merel J, Aldarondo D, Marshall J, Tassa Y, Wayne G, Olveczky B, “Deep neuroethology of a virtual rodent” (2019; https://openreview.net/forum?id=SyxrxR4KPS ). 62. Manfredi L, Assaf T, Mintchev S, Marrazza S, Capantini L, Orofino S, Ascari L, Grillner S, Wallén P, Ekeberg O, Stefanini C, Dario P, A bioinspired autonomous swimming robot as a tool for studying goal-directed locomotion. Biol Cybern 107, 513–527 (2013). [ DOI ] [ PubMed ] [ Google Scholar ] 63. Youssef I, Mutlu M, Bayat B, Crespi A, Hauser S, Conradt J, Bernardino A, Ijspeert A, A Neuro-Inspired Computational Model for a Visually Guided Robotic Lamprey Using Frame and Event Based Cameras. IEEE Robotics and Automation Letters 5, 2395–2402 (2020). [ Google Scholar ] 64. Ijspeert AJ, Daley MA, Integration of feedforward and feedback control in the neuromechanics of vertebrate locomotion: a review of experimental, simulation and robotic studies. J Exp Biol 226, jeb245784 (2023). [ DOI ] [ PubMed ] [ Google Scholar ] 65. Mangan M, Floreano D, Yasui K, Trimmer BA, Gravish N, Hauert S, Webb B, Manoonpong P, Szczecinski N, A virtuous cycle between invertebrate and robotics research: perspective on a decade of Living Machines research. Bioinspir Biomim 18 (2023). [ Google Scholar ] 66. Li C, Kreiman G, Ramanathan S, Discovering neural policies to drive behaviour by integrating deep reinforcement learning agents with biological neural networks. Nat Mach Intell 6, 726–738 (2024). [ Google Scholar ] 67. Geyer H, Herr H, A muscle-reflex model that encodes principles of legged mechanics produces human walking dynamics and muscle activities. IEEE Trans Neural Syst Rehabil Eng 18, 263–273 (2010). [ DOI ] [ PubMed ] [ Google Scholar ] 68. Ahrens MB, Orger MB, Robson DN, Li JM, Keller PJ, Whole-brain functional imaging at cellular resolution using light-sheet microscopy. Nat. Methods 10, 413–420 (2013). [ DOI ] [ PubMed ] [ Google Scholar ] 69. dal Maschio M, Donovan JC, Helmbrecht TO, Baier H, Linking Neurons to Network Function and Behavior by Two-Photon Holographic Optogenetics and Volumetric Imaging. Neuron 94, 774–789.e5 (2017). [ DOI ] [ PubMed ] [ Google Scholar ] 70. Marques JC, Li M, Schaak D, Robson DN, Li JM, Internal state dynamics shape brainwide activity and foraging behaviour. Nature 577, 239–243 (2020). [ DOI ] [ PubMed ] [ Google Scholar ] 71. Newton KC, Kacev D, Nilsson SRO, Saettele AL, Golden SA, Sheets L, Lateral line ablation by ototoxic compounds results in distinct rheotaxis profiles in larval zebrafish. Commun Biol 6, 1–15 (2023). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 72. Lauder GV, Anderson EJ, Tangorra J, Madden PGA, Fish biorobotics: kinematics and hydrodynamics of self-propulsion. J Exp Biol 210, 2767–2780 (2007). [ DOI ] [ PubMed ] [ Google Scholar ] 73. Thandiackal R, Melo K, Paez L, Herault J, Kano T, Akiyama K, Boyer F, Ryczko D, Ishiguro A, Ijspeert AJ, Emergence of robust self-organized undulatory swimming based on local hydrodynamic force sensing. Sci Robot 6, eabf6354 (2021). [ DOI ] [ PubMed ] [ Google Scholar ] 74. Salumäe T, Kruusmaa M, Flow-relative control of an underwater robot. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences 469, 20120671 (2013). [ Google Scholar ] 75. Li L, Nagy M, Graving JM, Bak-Coleman J, Xie G, Couzin ID, Vortex phase matching as a strategy for schooling in robots and in fish. Nat Commun 11, 5408 (2020). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 76. Sefati S, Neveln ID, Roth E, Mitchell TRT, Snyder JB, Maciver MA, Fortune ES, Cowan NJ, Mutually opposing forces during locomotion can eliminate the tradeoff between maneuverability and stability. Proc Natl Acad Sci U S A 110, 18798–18803 (2013). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 77. Srinivasan MV, Honeybees as a model for the study of visually guided flight, navigation, and biologically inspired robotics. Physiol Rev 91, 413–460 (2011). [ DOI ] [ PubMed ] [ Google Scholar ] 78. Hu Y, Zhao W, Wang L, Vision-Based Target Tracking and Collision Avoidance for Two Autonomous Robotic Fish. IEEE Transactions on Industrial Electronics 56, 1401–1410 (2009). [ Google Scholar ] 79. Yu J, Wu Z, Yang X, Yang Y, Zhang P, Underwater Target Tracking Control of an Untethered Robotic Fish With a Camera Stabilizer. IEEE Transactions on Systems, Man, and Cybernetics: Systems 51, 6523–6534 (2021). [ Google Scholar ] 80. Dunn TW, Fitzgerald JE, Correcting for physical distortions in visual stimuli improves reproducibility in zebrafish neuroscience. eLife 9, e53684 (2020). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 81. Floreano D, Wood RJ, Science, technology and the future of small autonomous drones. Nature 521, 460–466 (2015). [ DOI ] [ PubMed ] [ Google Scholar ] 82. Pichler P, Lagnado L, Motor Behavior Selectively Inhibits Hair Cells Activated by Forward Motion in the Lateral Line of Zebrafish. Curr Biol 30, 150–157.e3 (2020). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 83. Odstrcil I, Petkova MD, Haesemeyer M, Boulanger-Weill J, Nikitchenko M, Gagnon JA, Oteiza P, Schalek R, Peleg A, Portugues R, Lichtman JW, Engert F, Functional and ultrastructural analysis of reafferent mechanosensation in larval zebrafish. Curr Biol 32, 176–189.e5 (2022). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 84. Picton LD, Bertuzzi M, Pallucchi I, Fontanel P, Dahlberg E, Björnfors ER, Iacoviello F, Shearing PR, El Manira A, A spinal organ of proprioception for integrated motor action feedback. Neuron 109, 1188–1201.e7 (2021). [ DOI ] [ PubMed ] [ Google Scholar ] 85. Wyart C, Del Bene F, Warp E, Scott EK, Trauner D, Baier H, Isacoff EY, Optogenetic dissection of a behavioural module in the vertebrate spinal cord. Nature 461, 407–410 (2009). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 86. Markov DA, Petrucco L, Kist AM, Portugues R, A cerebellar internal model calibrates a feedback controller involved in sensorimotor control. Nat Commun 12, 6694 (2021). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 87. Dunn TW, Gebhardt C, Naumann EA, Riegler C, Ahrens MB, Engert F, Del Bene F, Neural Circuits Underlying Visually Evoked Escapes in Larval Zebrafish. Neuron 89, 613–628 (2016). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 88. Bianco IH, Kampff AR, Engert F, Prey Capture Behavior Evoked by Simple Visual Stimuli in Larval Zebrafish. Front Syst Neurosci 5 (2011). [ Google Scholar ] 89. Hildebrand DGC, Cicconet M, Torres RM, Choi W, Quan TM, Moon J, Wetzel AW, Scott Champion A, Graham BJ, Randlett O, Plummer GS, Portugues R, Bianco IH, Saalfeld S, Baden AD, Lillaney K, Burns R, Vogelstein JT, Schier AF, Lee W-CA, Jeong W-K, Lichtman JW, Engert F, Whole-brain serial-section electron microscopy in larval zebrafish. Nature 545, 345–349 (2017). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 90. Coomer CE, Naumova D, Talay M, Zolyomi B, Snell NJ, Sorkaç A, Chanchu JM, Cheng J, Roman I, Li J, Robson D, McLean DL, Barnea G, Halpern ME, Transsynaptic labeling and transcriptional control of zebrafish neural circuits. Nat Neurosci 28, 189–200 (2025). [ DOI ] [ PubMed ] [ Google Scholar ] 91. Song S, Kidziński Ł, Peng XB, Ong C, Hicks J, Levine S, Atkeson CG, Delp SL, Deep reinforcement learning for modeling human locomotion control in neuromechanical simulation. Journal of NeuroEngineering and Rehabilitation 18, 126 (2021). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 92. Rumelhart DE, Durbin R, Golden R, Chauvin Y, “Backpropagation: The basic theory” in Backpropagation: Theory, Architectures, and Applications (Lawrence Erlbaum Associates, Inc, Hillsdale, NJ, US, 1995)Developments in connectionist theory, pp. 1–34. [ Google Scholar ] 93. Schulman J, Wolski F, Dhariwal P, Radford A, Klimov O, Proximal Policy Optimization Algorithms. arXiv arXiv:1707.06347 [Preprint] (2017). 10.48550/arXiv.1707.06347. [ DOI ] [ Google Scholar ] 94. Chen T-W, Wardill TJ, Sun Y, Pulver SR, Renninger SL, Baohan A, Schreiter ER, Kerr RA, Orger MB, Jayaraman V, Looger LL, Svoboda K, Kim DS, Ultrasensitive fluorescent proteins for imaging neuronal activity. Nature 499, 295–300 (2013). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 95. White RM, Sessa A, Burke C, Bowman T, LeBlanc J, Ceol C, Bourque C, Dovey M, Goessling W, Burns CE, Zon LI, Transparent adult zebrafish as a tool for in vivo transplantation analysis. Cell Stem Cell 2, 183–189 (2008). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 96. Fouke KE, He Z, Loring MD, Naumann EA, Neural circuits underlying divergent visuomotor strategies of zebrafish and Danionella cerebrum. Curr Biol 35, 2457–2466.e4 (2025). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 97. Pachitariu M, Stringer C, Dipoppa M, Schröder S, Federico Rossi L, Dalgleish H, Carandini M, Harris KD, Suite2p: beyond 10,000 neurons with standard two-photon microscopy (2017). 98. Stringer C, Pachitariu M, Steinmetz N, Reddy CB, Carandini M, Harris KD, Spontaneous behaviors drive multidimensional, brainwide activity. Science 364 (2019). [ Google Scholar ] 99. Stone T, Webb B, Adden A, Weddig NB, Honkanen A, Templin R, Wcislo W, Scimeca L, Warrant E, Heinze S, An Anatomically Constrained Model for Path Integration in the Bee Brain. Curr Biol 27, 3069–3085.e11 (2017). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 100. Schoepe T, Janotte E, Milde MB, Bertrand OJN, Egelhaaf M, Chicca E, Finding the gap: neuromorphic motion-vision in dense environments. Nat Commun 15, 817 (2024). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 101. Kamali Sarvestani I, Kozlov A, Harischandra N, Grillner S, Ekeberg Ö, A computational model of visually guided locomotion in lamprey. Biol Cybern 107, 497–512 (2013). [ DOI ] [ PubMed ] [ Google Scholar ] 102. King RD, Rowland J, Oliver SG, Young M, Aubrey W, Byrne E, Liakata M, Markham M, Pir P, Soldatova LN, Sparkes A, Whelan KE, Clare A, The automation of science. Science 324, 85–89 (2009). [ DOI ] [ PubMed ] [ Google Scholar ] 103. Sparkes A, Aubrey W, Byrne E, Clare A, Khan MN, Liakata M, Markham M, Rowland J, Soldatova LN, Whelan KE, Young M, King RD, Towards Robot Scientists for autonomous scientific discovery. Autom Exp 2, 1 (2010). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 104. Antinucci P, Folgueira M, Bianco IH, Pretectal neurons control hunting behaviour. Elife 8 (2019). [ Google Scholar ] 105. Lappalainen JK, Tschopp FD, Prakhya S, McGill M, Nern A, Shinomiya K, Takemura S, Gruntman E, Macke JH, Turaga SC, Connectome-constrained networks predict neural activity across the fly visual system. Nature, 1–9 (2024). [ Google Scholar ] 106. Van Trump WJ, McHenry MJ, The lateral line system is not necessary for rheotaxis in the Mexican blind cavefish (Astyanax fasciatus). Integr Comp Biol 53, 799–809 (2013). [ DOI ] [ PubMed ] [ Google Scholar ] 107. Kim I-J, Zhang Y, Yamagata M, Meister M, Sanes JR, Molecular identification of a retinal cell type that responds to upward motion. Nature 452, 478–482 (2008). [ DOI ] [ PubMed ] [ Google Scholar ] 108. Vigouroux RJ, Duroure K, Vougny J, Albadri S, Kozulin P, Herrera E, Nguyen-Ba-Charvet K, Braasch I, Suárez R, Bene FD, Chédotal A, Bilateral visual projections exist in non-teleost bony fish and predate the emergence of tetrapods. Science 372, 150–156 (2021). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 109. Körber M, Lange J, Rediske S, Steinmann S, Glück R, Comparing Popular Simulation Environments in the Scope of Robotics and Reinforcement Learning. arXiv arXiv:2103.04616 [Preprint] (2021). 10.48550/arXiv.2103.04616. [ DOI ] [ Google Scholar ] 110. Ehrlich DE, Schoppik D, A primal role for the vestibular sense in the development of coordinated locomotion. eLife 8, e45839 (2019). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 111. McHenry MJ, Lauder GV, The mechanical scaling of coasting in zebrafish (Danio rerio). J Exp Biol 208, 2289–2301 (2005). [ DOI ] [ PubMed ] [ Google Scholar ] 112. Ekeberg Ö, A combined neuronal and mechanical model of fish swimming. Biol. Cybern 69, 363–374 (1993). [ Google Scholar ] 113. Demb JB, Cellular mechanisms for direction selectivity in the retina. Neuron 55, 179–186 (2007). [ DOI ] [ PubMed ] [ Google Scholar ] 114. Bianco IH, Engert F, Visuomotor transformations underlying hunting behavior in zebrafish. Curr. Biol 25, 831–846 (2015). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 115. Vaney DI, Sivyer B, Taylor WR, Direction selectivity in the retina: symmetry and asymmetry in structure and function. Nat Rev Neurosci 13, 194–208 (2012). [ DOI ] [ PubMed ] [ Google Scholar ] 116. Ganczer A, Szarka G, Balogh M, Hoffmann G, Tengölics ÁJ, Kenyon G, Kovács-Öller T, Völgyi B, Transience of the Retinal Output Is Determined by a Great Variety of Circuit Elements. Cells 11, 810 (2022). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 117. Nikolaou N, Meyer MP, Lamination Speeds the Functional Development of Visual Circuits. Neuron 88, 999–1013 (2015). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 118. Robles E, Laurell E, Baier H, The Retinal Projectome Reveals Brain-Area-Specific Visual Representations Generated by Ganglion Cell Diversity. Current Biology 24, 2085–2096 (2014). [ DOI ] [ PubMed ] [ Google Scholar ] 119. Robles E, Filosa A, Baier H, Precise Lamination of Retinal Axons Generates Multiple Parallel Input Pathways in the Tectum. J. Neurosci 33, 5027–5039 (2013). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 120. Oyster CW, Barlow HB, Direction-selective units in rabbit retina: distribution of preferred directions. Science 155, 841–842 (1967). [ DOI ] [ PubMed ] [ Google Scholar ] 121. Yonehara K, Ishikane H, Sakuta H, Shintani T, Nakamura-Yonehara K, Kamiji NL, Usui S, Noda M, Identification of Retinal Ganglion Cells and Their Projections Involved in Central Transmission of Information about Upward and Downward Image Motion. PLoS ONE 4, e4320 (2009). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 122. Huberman AD, Wei W, Elstrott J, Stafford BK, Feller MB, Barres BA, Genetic Identification of an On-Off Direction- Selective Retinal Ganglion Cell Subtype Reveals a Layer-Specific Subcortical Map of Posterior Motion. Neuron 62, 327–334 (2009). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 123. Hanson L, Sethuramanujam S, deRosenroll G, Jain V, Awatramani GB, Retinal direction selectivity in the absence of asymmetric starburst amacrine cell responses. Elife 8, e42392 (2019). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 124. Burrill JD, Easter SS Jr, Development of the retinofugal projections in the embryonic and larval zebrafish (Brachydanio rerio). J. Comp. Neurol 346, 583–600 (1994). [ DOI ] [ PubMed ] [ Google Scholar ] 125. Yonehara K, Shintani T, Suzuki R, Sakuta H, Takeuchi Y, Nakamura-Yonehara K, Noda M, Expression of SPIG1 Reveals Development of a Retinal Ganglion Cell Subtype Projecting to the Medial Terminal Nucleus in the Mouse. PLoS ONE 3, e1533 (2008). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 126. Giolli RA, Blanks RH, Torigoe Y, Pretectal and brain stem projections of the medial terminal nucleus of the accessory optic system of the rabbit and rat as studied by anterograde and retrograde neuronal tracing methods. J. Comp. Neurol 227, 228–251 (1984). [ DOI ] [ PubMed ] [ Google Scholar ] 127. Kunst M, Laurell E, Mokayes N, Kramer A, Kubo F, Fernandes AM, Förster D, Dal Maschio M, Baier H, A Cellular-Resolution Atlas of the Larval Zebrafish Brain. Neuron 103, 21–38.e5 (2019). [ DOI ] [ PubMed ] [ Google Scholar ] 128. Cohen AH, Bard Ermentrout G, Kiemel T, Kopell N, Sigvardt KA, Williams TL, Modelling of intersegmental coordination in the lamprey central pattern generator for locomotion. Trends in Neurosciences 15, 434–438 (1992). [ DOI ] [ PubMed ] [ Google Scholar ] 129. Online Tracker. https://physlets.org/tracker/trackerJS/ . 130. Štih V, Petrucco L, Kist AM, Portugues R, Stytra: An open-source, integrated system for stimulation, tracking and closed-loop behavioral experiments. PLoS Comput Biol 15, e1006699 (2019). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 131. Freeman J, Vladimirov N, Kawashima T, Mu Y, Sofroniew NJ, Bennett DV, Rosen J, Yang C-T, Looger LL, Ahrens MB, Mapping brain activity at scale with cluster computing. Nat. Methods 11, 941–950 (2014). [ DOI ] [ PubMed ] [ Google Scholar ] 132. Pnevmatikakis EA, Giovannucci A, NoRMCorre: An online algorithm for piecewise rigid motion correction of calcium imaging data. J. Neurosci. Methods 291, 83–94 (2017). [ DOI ] [ PubMed ] [ Google Scholar ] 133. Schmitt EA, Dowling JE, Early eye morphogenesis in the zebrafish, Brachydanio rerio. J Comp Neurol 344, 532–542 (1994). [ DOI ] [ PubMed ] [ Google Scholar ] 134. Bruhn A, Weickert J, Schnörr C, Lucas/Kanade Meets Horn/Schunck: Combining Local and Global Optic Flow Methods. International Journal of Computer Vision 61, 211–231 (2005). [ Google Scholar ] 135. VanRullen R, The continuous Wagon Wheel Illusion is object-based. Vision Research 46, 4091–4095 (2006). [ DOI ] [ PubMed ] [ Google Scholar ] 136. Easter SS, Nicola GN, The development of vision in the zebrafish (Danio rerio). Dev Biol 180, 646–663 (1996). [ DOI ] [ PubMed ] [ Google Scholar ] Associated Data This section collects any data citations, data availability statements, or supplementary materials included in this article. Supplementary Materials VIDEO 1 Download video file (11.3MB, mp4) VIDEO 2 Download video file (6.1MB, mp4) VIDEO 3 Download video file (1.4MB, mp4) VIDEO 4 Download video file (15.3MB, mp4) VIDEO 5 Download video file (19.7MB, mp4) VIDEO 6 Download video file (13.6MB, mp4) VIDEO 7 Download video file (17.4MB, mp4) VIDEO 8 Download video file (4.4MB, mp4) VIDEO 9 Download video file (38.2MB, mp4) Supplementary Materials NIHMS2161523-supplement-Supplementary_Materials.pdf (12.9MB, pdf) Data Availability Statement The simZFish code is available at Automatic citation updates are disabled. To see the bibliography, click Refresh in the Zotero tab. . All software for generating visual stimuli, analysis of neural activity, calcium imaging, and behavioral data is available at https://github.com/Naumann-Lab . All code used was created using Python or MATLAB 2023b. Raw and processed two-photon microscopy data for all experiments are publicly available at https://dandiarchive.org/dandiset/001076 . Further information regarding zebrafish data should be directed to Eva Naumann at [email protected] , and for data regarding simulations, mechanical and electronic blueprints of the ZBot, to Auke Ijspeert at [email protected] . ACTIONS View on publisher site PDF (3.4 MB) Cite Collections Permalink PERMALINK Copy RESOURCES Similar articles Cited by other articles Links to NCBI Databases Cite Copy Download .nbib .nbib Format: AMA APA MLA NLM Add to Collections Create a new collection Add to an existing collection Name your collection * Choose a collection Unable to load your collection due to an error Please try again Add Cancel Follow NCBI NCBI on X (formerly known as Twitter) NCBI on Facebook NCBI on LinkedIn NCBI on GitHub NCBI RSS feed Connect with NLM NLM on X (formerly known as Twitter) NLM on Facebook NLM on YouTube National Library of Medicine 8600 Rockville Pike Bethesda, MD 20894 Web Policies FOIA HHS Vulnerability Disclosure Help Accessibility Careers NLM NIH HHS USA.gov Back to Top

Record · ID 13750 · SHA-256 00ea87a66818666a
Conceptio Open Knowledge Archive — every document is proof-bundled with source, license, and retrieval metadata.