Conceptio › Archive › NCBI PubMed Central
NCBI PubMed Central open access

EthoPy provides an accessible platform for reproducible behavioral neuroscience.

Evangelou A et al. · ncbi_pmc
NCBI PubMed Central · Papers
Open Source ↗Direct PDF ↓
cognitive-psychology
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

EthoPy provides an accessible platform for reproducible behavioral neuroscience - PMC Skip to main content An official website of the United States government Here's how you know Here's how you know Search Log in Primary site navigation Search Log in Search PMC Full-Text Archive Search in PMC Journal List User Guide 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 Cell Rep Methods . 2026 Apr 23;6(6):101421. doi: 10.1016/j.crmeth.2026.101421 EthoPy provides an accessible platform for reproducible behavioral neuroscience Alexandros Evangelou 1, 2, 7 , Maria Diamantaki 1, 2, 7 , Konstantina Georgelou 1, 2 , Zoi Drakaki 1, 2 , Lydia Ntanavara 1, 2, 3 , Gerasimos Gerardos 1, 2, 4 , Sofia Morou 1, 2, 5 , Nikolaos Chatziris 1, 2, 6 , Zoi Dogani 1, 2 , Elissavet Anna Petsalaki 1, 2 , Odysseas Nikolaos Raos 1, 2 , Anastasios Gratsakis 1, 2 , Stamatios Aliprantis 1, 2 , Athanasia Papoutsi 1, 2 , Emmanouil Froudarakis 1, 2, 7, 8, ∗ Author information Article notes Copyright and License information 1 Institute of Molecular Biology & Biotechnology, Foundation of Research & Technology - Hellas, Heraklion, Crete, Greece 2 Department of Basic Sciences, Faculty of Medicine, University of Crete, Heraklion, Crete, Greece ∗ Corresponding author froudarakis@uoc.gr 3 Present address: Department of Ophthalmology, Byers Eye Institute, Stanford University School of Medicine, Stanford, CA, USA 4 Present address: Cognitive and Biological Psychology, Wilhelm Wundt Institute for Psychology, Leipzig University, Leipzig, Germany, Research Group Cognition and Plasticity, Max Planck Institute for Human Cognitive and Brain Sciences (MPI CBS), Leipzig, Germany 5 Present address: Instituto de Neurociencias, Consejo Superior de Investigación Científica (CSIC) - Universidad Miguel Hernández (UMH), San Juan de Alicante, Spain 6 Present address: Department of Physiology, University of California, San Francisco, San Francisco, CA, USA 7 These authors contributed equally 8 Lead contact Received 2025 Nov 21; Revised 2026 Feb 25; Accepted 2026 Mar 30; Collection date 2026 Jun 15. © 2026 The Authors This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). PMC Copyright notice PMCID: PMC13282661  PMID: 42030950 Summary As brain activity is tightly coupled to behavior, an accurate understanding of neural functions necessitates consideration of behavioral tasks that capture the complexity and variety that animals encounter. Nevertheless, animal training for behavioral experiments is often labor intensive, costly, and difficult to standardize. To overcome these challenges, we developed EthoPy, an open-source, Python-based behavioral control framework that integrates stimulus presentation, hardware management, and data logging. EthoPy supports diverse behavioral paradigms, stimulus modalities, and experimental systems, from home cage to head-fixed configurations, while operating on affordable hardware, such as Raspberry Pi. Its modular architecture and database integration enable scalable, high-throughput automatic behavioral training with minimal experimenter involvement while ensuring reproducibility through comprehensive metadata tracking. By automating training workflows, EthoPy makes it feasible to implement sophisticated behavioral paradigms that are traditionally difficult to achieve. EthoPy, thus, provides an accessible, extensible framework to study behavior and the underlying neural activity. Keywords: behavioral training, high-throughput training, home-cage training, Python, open source, automated behavioral tasks, modular architecture, data reproducibility, brain-behavior integration, mouse Graphical abstract Open in a new tab Highlights • EthoPy is a modular, open-source framework for scalable automated behavioral training • Database integration ensures reproducible and remotely accessible experimental data • Home-cage training enables high-throughput, low-stress behavioral training in rodents • Supports diverse hardware setups from freely moving to head-fixed configurations Motivation Behavioral tasks that account for both neural and behavioral variabilities are essential in neuroscience research. Despite significant progress in modern behavioral paradigms, current approaches still struggle with scalability and reproducibility. Many existing platforms rely on manual intervention, are limited to specific experimental configurations, or lack standardized data management, making it difficult to share and replicate experimental protocols across labs. These limitations are particularly acute for complex tasks, where multi-stage training and dynamic performance-based progression demand sustained experimenter involvement, reducing scalability and increasing inter-lab variability. Here, we present EthoPy, a modular, open-source platform for automated behavioral training and complex task designs that dynamically adapt to behavioral performance. Evangelou et al. present EthoPy, an open-source Python framework for automated behavioral experiments across diverse paradigms and hardware setups. Combining modular task design, scalable home-cage training, and integrated data management, EthoPy enables flexible experiment control and high-throughput behavioral training, providing an accessible platform for reproducible behavioral neuroscience. Introduction Our understanding of how neural activity drives behavior has advanced significantly through recent high-yield recording techniques 1 , 2 , 3 , 4 , 5 , 6 and the development of ethologically relevant behavioral paradigms in animal models. 7 , 8 , 9 , 10 However, a key challenge that remains is establishing automated and scalable behavioral tasks across diverse experimental paradigms, from home-cage to head-fixed settings, and from simple port selection to complex navigation tasks. 11 , 12 , 13 , 14 , 15 , 16 Many behavioral experiments have limited scalability as they require intensive manual effort for animal handling and response tracking during training. 17 , 18 Such involvement can also introduce variability, increase animal stress, 19 , 20 , 21 and reduce reproducibility across labs. 22 , 23 , 24 Furthermore, observer-based assessments are time consuming and prone to error, limiting the efficiency and consistency of behavioral research. 25 A second challenge is the lack of flexible systems that can seamlessly integrate both commercial and custom-built hardware. Existing platforms are often rigid and specific to a task, which restrict their adaptability to new experimental demands or emerging technologies. Ideally, behavioral systems should decouple software from hardware dependencies, which can allow researchers to prototype and deploy new tasks without initiating new projects from scratch. Third, behavioral frameworks typically assume fixed task parameters throughout a session, overlooking dynamic changes in behavioral state. Yet, performance can fluctuate due to learning, motivation, or arousal. 26 , 27 , 28 This highlights the need for adaptive real-time task designs that can adjust parameters, such as difficulty, based on behavior. This design also permits closed-loop approaches that enable causal control through the online task modulation. 13 , 15 , 16 , 29 While fine control of task structure is available in many systems, 30 , 31 making such adaptive strategies feasible and scalable remains a key challenge. Finally, the growing complexity of behavioral experiments has increased the need for efficient data and metadata management. Reproducibility requires careful logging of metadata, yet current practices often vary across platforms, limiting protocols and data reuse and sharing. Inconsistent access to datasets across teams further hampers collaboration and transparency. The FAIR (Findable, Accessible, Interoperable, and Reusable 32 ) data principles offer a valuable framework to address these challenges. Applying the FAIR principles to behavioral neuroscience ensures that data are securely stored, clearly documented, and easily reused, supporting open science and improving long-term accessibility across diverse research groups. Recent years have seen progress toward addressing these challenges through software tools that interface with diverse hardware components. Automated behavioral chambers now enable animals to interact with levers/buttons, sensors, or touchscreens, working toward reducing variability and improving experimental control. 13 , 30 , 31 , 33 , 34 , 35 , 36 , 37 However, many systems still require manual handling and are tied to specific tasks, limiting extensibility. 13 , 14 , 15 , 35 Most systems lack rich stimulus manipulation or integration with data management tools, while only a few may support secure, scalable databases. 34 Overall, these tools still do not provide a unified, open-source solution to the identified bottlenecks, and their sustainability and uptake critically depend on their accessibility and integration to the active research community. 38 Current behavioral research can greatly benefit from easily shareable and reproducible behavioral paradigms, with remote and automatic control, supported by open access code. Results A unified control framework for behavioral experiments We developed EthoPy, an open-source Python framework for automated behavioral experiments; so, it can manage all aspects of an experiment, such as design, behavior, hardware control, stimulus presentation, and data management, while prioritizing flexibility to adapt to emerging technologies and paradigms. Its modular architecture separates experimental components into independent modules ( Figure 1 A), enabling the reuse of task logic across different experimental setups (home-cage, head-fixed, and open-arena), stimulus modalities (olfactory, visual, and auditory), and paradigms (Go/no-Go and 2 alternative forced choice [2AFC]) without the need for rewriting code. Extensibility is achieved through abstracted core functions, allowing rapid customization and integration of new modules or community tools ( Figure 1 B). Figure 1. Open in a new tab EthoPy software framework, showing the core modules and their interaction within EthoPy and with other relevant scientific communities (A) The task configuration file (Task) defines the parameters of the experiment (e.g., session start/end time, type of experiment, and stimulus properties). Experiment module defines the experimental states (e.g., pre-trial, punish period, etc.). Behavior module handles animal behavior (e.g., port selection and licking activity). Stimulus module creates and handles the presented stimuli. Interface module handles the communication of EthoPy with the hardware (e.g., RPs and PCs). Logger module handles the interaction with the storage server where data are saved using DataJoint. (B) EthoPy is compatible and easily incorporates other publicly available and widely used software packages, such as DeepLabCut, PsychoPy toolbox, and Panda3D. In addition, EthoPy modules are independent and thus can be easily modified and shared across the research community. (C) In the experiment class, a trial consists of multiple states, and there are pre-defined rules for transitioning between states. Indicatively, the pre-trial state is the period before the trial initiation where the stimulus is prepared, and the inter-trial state is the state following the end of the trial. Within a trial, a response based on the presented stimulus drives the transition to the outcome states (abort, reward, or punish). (D) A state is defined by 4 overridable methods: entry, run, next, and exit functions. In each of these methods, a set of actions take place, using the methods of stimulus and behavior classes. For example, the stimulus-driven response state uses the stimulus class for stimulus presentation in the run method and the behavioral class for the animal’s response in the next method to proceed to the outcome states. (E) A trial is defined by the specific experiment, stimulus, and behavior conditions. Trials can be grouped together to create a block, with a criterion for transitioning between blocks during a session. See also Figures S2 and S3 . Each module’s hyperparameters and data are stored into distinct but linked tables in a database server via Datajoint, a quickly expanding operating platform for scientific data management, 39 , 40 which maintains full experimental traceability, including parameter changes and code versions. The database server further enables fast, combinatorial queries across large datasets and supports concurrent and distributed access for data sharing. The database’s dynamic management and balancing of synchronous data streams guarantee scalable acquisition across many concurrent setups ( Figure 2 A). Importantly, EthoPy achieves millisecond-level precision (see STAR Methods , synchronization; Figure S1 ) by distributing time-sensitive computations across processes and threads, supporting real-time operations, even on resource-constrained platforms like the Raspberry Pi (RP). Figure 2. Open in a new tab EthoPy supports diverse hardware implementations (A) Off-the-shelf or custom-made, low-end components communicate via hardware interfaces, such as Arduino with custom PCBoard or Bpod, with the computational nodes that run the EthoPy (RPs and PCs). By using typical home cages modified only with 3 small openings, we can perform the behavioral experiments at the racks where the animals are housed. EthoPy also supports various different behavioral systems in larger behavioral boxes. Through the online communication with the storage server, users can remotely control the experiments. (B) Exemplar behavioral systems supported by EthoPy: Homecage: an RP behavioral setup, including a screen, is placed in front of a modified home cage with 3 holes for the ports. Air Track: minor modifications to the Homecage system allow for performance of the same behavior under head fixation, using the Air-Track system. Open-field system: tracking of an animal’s pose through real-time video analysis is integrated in the EthoPy framework. Spherical treadmill: navigation under head fixation using a spherical treadmill; tracking of the animal’s position is performed by two sensors that encode the sphere’s movement; axes indicate head-stabilization and navigation properties to account for diverse experimental needs. Background colors indicate development in home cages or behavioral boxes. (C) EthoPy’s remote testing and validation of behavioral task configurations and precise version control enable collaborative development. See also Figure S5 , Video S1 , and Table S1 . EthoPy promotes its adaptation from behavioral labs by leveraging Python’s widely used and interpretable language 41 to support adoption in behavioral labs. Its high-level syntax simplifies extension, as most key tools (i.e., panda3d, 42 DeepLabCut, 43 , 44 PsychoPy, 45 , 46 OpenEphys, 47 etc.), are Python based ( Figure 1 B). EthoPy also exploits Python’s ecosystem to generate dynamic parameter sets, replacing static configuration files, and uses file-based logging for debugging and monitoring, all with negligible performance cost on modern processors. Hierarchical architecture The framework is organized into five core modules: experimental control (“experiment”), behavioral monitoring (“behavior”), stimulus presentation (“stimulus”), hardware communication (“interface”), and data management (“logger”) ( Figure 1 A). Each module implements core functions via abstract base classes that are further specialized through user-defined plugins to support specific hardware or workflows (see STAR Methods , EthoPy plugins). This inheritance-based design allows the integration of custom modules without rewriting core logic. Experiments are then configured through a task file (“task,” Figure 1 A) that specifies session parameters and selected classes. This approach creates a two-tier customization model in which standard experiments require only parameter adjustment, while novel protocols can be developed through custom classes. Experiment module constitutes the central control system of EthoPy Experimental protocols are implemented as object-oriented state machines 48 where states define specific behavior-stimulus interactions and transition rules ( Figure 1 C). Each state is implemented as an independent class, which avoids the nested, conditional experimental logic of centralized approaches. Each state includes methods for “entry” (executed upon entering), “run” (main computational loop), “next” (transition logic), and “exit” (executed upon leaving) ( Figure 1 D). The above architecture supports the states’ reuse when implementing similar behavior-stimulus interactions (e.g., reward or punish). States automatically share their variables, allowing continuous tracking of trial history and transfer of experimental information between them; this supports complex experimental protocols that require coordination between different experimental phases. A trial is composed of multiple states and is defined by the experiment, behavior, and stimulus parameters ( Figures 1 C, S2 , and S3 ). The methodology for trial selection can be tailored to the specific experimental needs, ranging from pseudo-randomized selection to bias-mitigation strategies. Sets of trials form blocks, with transitions determined by user-defined criteria such as accuracy, d-prime, or trial number ( Figure 1 E). This architecture supports a wide range of implementations, from basic procedures, such as cleaning and port calibration, to monitored water delivery and complex tasks, like the 2AFC. Behavior module forms the foundation for interpreting animal interactions The behavior module processes behavioral events such as position, proximity to target, and licking, while also tracking their duration and history. These events are acquired through the interface module, and their interpretation within this module preserves a clear separation between event detection and behavioral logic. The behavior module further validates the behavioral conditions by evaluating their completeness for consistent data storage ( Figure S3 A). By extending this core functionality via inheritance-based classes, the behavior module supports diverse paradigms, from simple response detection to spatial navigation tasks requiring dynamic position tracking. Stimulus module handles stimulus presentation The stimulus module defines the full life cycle of a stimulus, from preparation and presentation to cleanup, and manages the stimulus conditions ( Figure S3 B). Stimuli can be pre-generated at the start of a session for efficiency (e.g., movie clips) or rendered in real time for flexible, non-standardized presentations, such as those that depend on the animal’s position. This approach makes it straightforward for researchers to develop and integrate new stimulus types within a standardized framework. Specialized implementations extend across visual, olfactory, and auditory modalities, as well as their combinations. The module also provides standardized tools for stimulus timing and hardware synchronization with recording equipment. Logger module manages the data The logger manages event timing and data storage during experiments, using a producer-consumer architecture, 49 with a priority-based message queue that saves critical data first. Asynchronous processing separates data generation from storage, safeguarding time-critical functions. A dedicated worker thread maintains data integrity through error handling and retry mechanisms (e.g., duplicate detection and database connection recovery), while another thread updates the “control” table with real-time metrics (current state, trial count, and total reward; Figure S4 A). The logger also records session metadata, including software version, hardware configuration, and task file, maintaining reproducibility. The direct integration with the database through Datajoint provides for real-time remote monitoring and control of distributed setups, as well as reliable data capture for post hoc analysis ( Figures 2 A and S4B ). EthoPy, via Datajoint, 39 provides database creation and data management directly in Python, eliminating the need for SQL expertise. It also supports the export of experimental data to the Neurodata Without Borders (NWB) HDF5 format 50 , 51 for standardized formatting and community tool compatibility to support broader research collaboration. Interface module controls communication with hardware The interface base class defines standard hardware functions such as liquid delivery, response detection, stimulation, and device synchronization, supporting flexible setups built from low-cost, custom-made, or commercial components (e.g., photodetectors, photointerrupters, and valves; Figure 2 A, low-end hardware components). Specialized hardware interfaces (e.g., Arduino with our custom PCBoard or the commonly used Bpod; Figure 2 A; hardware interfaces) link these components to PCs with different operating systems or RPs ( Figure 2 A, computational nodes). Specialized interface classes running on the computational nodes handle device control (e.g., liquid delivery) and sensor-signal detection (e.g., lick detection or motion tracking). Because computational nodes operate independently and are remotely managed ( Figure S4 A), multiple setups can run in parallel in low-cost home cages ( Table S1 ) or behavioral boxes ( Figure 2 A, behavioral systems and data storage/access). For each session, users can define the hardware configuration of a setup, e.g., the number and type of ports, and these parameters are stored in the server to safeguard consistency and reproducibility ( Figure S5 ). Behavioral system support Based on this framework, we developed several automated behavioral systems ( Figure 2 B; Video S1 ): (1) a high-throughput Homecage system for low-stress training of freely moving mice with minimal experimenter input. This is used with standard rodent cages that fit typical facility racks; so, animals are trained in a familiar environment. Once trained, the animals can be moved to more demanding tasks, such as those requiring head immobilization for neural recordings; (2) an open-field system for freely moving animals, integrating real-time pose tracking with DeepLabCut-Live, 44 to study exploration and navigation during decision-making; (3) an Air-Track 52 system with hardware adapted to be similar to the Homecage system; and (4) a spherical treadmill system that allows animals to navigate while being head fixed. The Air-Track and spherical treadmill systems support experiments requiring head stabilization, a prerequisite for many neural recording techniques. These examples highlight EthoPy’s flexibility across diverse experimental paradigms, achieved by separating experimental logic from hardware implementation—namely the same experiment can be executed with different interfaces, independent of hardware configuration. This design also supports collaborative development by enabling task design and validation without physical hardware, using mock interfaces ( Figure 2 C). Documentation with assembly instructions, parts lists, and 3D designs for the above behavioral systems can be found in the ethopy_hardware GitHub repository (see STAR Methods , hardware). Video S1. Example behavioral sessions with EthoPy across systems, related to Figure 2 Indicative sessions across Homecage, Air-Track, spherical treadmill, and open-field systems. Download video file (2.3MB, mp4) Online monitoring of a behavioral session During a session, the logger records all events in real time, enabling live tracking of behavioral metrics such as responses, block transitions, and lick counts per port ( Figures 3 A–3C). The experiments can be monitored remotely via the storage server, using either Jupyter notebooks or a dedicated web interface for live plotting and control (see STAR Methods , experimental control and monitoring). The control table tracks animals, experiment status, session progress (e.g., consumed liquid; Figure S4 A), and detailed activity ( Figure S4 B). Post hoc, the database enables precise queries across sessions, allowing variables such as trial outcomes or aborts to be tracked for task evaluation and refinement ( Figures 3 D–3F). To support both online monitoring and offline analysis, we provide a Python package for data analysis and visualization, for example Jupyter notebooks (see STAR Methods , behavioral data analysis). Figure 3. Open in a new tab Behavioral monitoring during and across sessions (A) Timeline of two consecutive trials of a single session for a 2AFC task using 3D objects, showing distinct states (pre-trial, trial, reward, inter-trial, and abort) and animal responses (licks for receiving reward, and proximity on and off, i.e., nose-poke to initiate a trial). Time is in milliseconds since the beginning of the session. (B) Raster plot of licking activity following trial initiation (time = 0 s, green) for a subset of trials for the same example session as in (A). Each dot is a lick, and data are grouped by the targeted reward port (left: target port 1; right: target port 2). Colors indicate licking to port 1 (red) or port 2 (blue). Note the extensive licking when the animal has made a correct choice, indicative of the availability of reward. (C) The same sessions as in (A) and (B) showing block transitions: the mouse alternates between different blocks with increased task difficulty. The animal can transition to the next block or fall back to a previous block if its performance (evaluated in a moving 20 trials window, without considering abort trials) is higher or lower than a criterion, respectively. Red (blue) dots correspond to trials wherein the correct port was port 1 (port 2) and the animal responded correctly; empty gray dots correspond to the trials in which the animal responded incorrectly irrespective of port identity; small gray dots correspond to the aborted or missed trials. (D ) Performance (black) and liquid consumption (gray) across training sessions of a simple object detection task. (E) Number of trials wherein the animal responded (either correct or incorrect, black) and the number of aborted trials (gray) across training sessions. (F) Number of correct (black) and incorrect (gray) trials across training sessions, for 8 mice performing a visual object detection task. Shading represents SEM. See also Figure S4 . Diverse types of behavioral paradigms We used the behavioral systems shown in Figure 2 B to implement several behavioral tasks that vary in complexity, from single-modality stimulus presentation and basic port selection, to multi-sensory environments and ethologically relevant behaviors involving active navigation. Specifically, with the Homecage system, we trained mice in different versions of the Go/no-Go and the 2AFC tasks—two widely used paradigms for probing sensory and cognitive functions in freely moving or head-restrained animals. 18 Go/No-Go tasks are typically acquired rapidly, with high performance often reached in under five days for olfactory 53 and auditory tasks. 54 Indeed, in our Go/No-Go olfactory task ( Figure 4 A, top), where the mice were trained to discriminate between benzaldehyde (Go stimulus) and heptanone (No-Go stimulus), the animals achieved high performance after only two sessions ( Figure 4 A, bottom). Figure 4. Open in a new tab Diverse implementations of behavioral tasks using the EthoPy framework (A) Go/no-Go olfactory discrimination task ( n = 6 animals). The Go odor was benzaldehyde, and the no-Go odor was heptanone. Once the mice approached the center port (trial initiation), an odor was presented, based on which the mice had to decide to lick or withhold licking to either port. (B) Indicative multiple block transitions within a single session of a mouse trained in two 2AFC discrimination tasks. The mouse was trained to expert (>0.8) performance in a task requiring discrimination between a 0 deg and 90 deg grating (visual 2AFC) and another task requiring discrimination between 100 Hz tone clicks and a steady tone (auditory 2AFC). Experimental states of a trial are the same as in (A). Following training, the mouse alternated between the two rules multiple times within a session, with block switching induced once the mouse reached >0.8 in a moving window of 40 trials. Here, the plotted performance is calculated with a 15-trial moving window to show the evolution of performance within the block. Figure S6 shows block transitions from multiple mice. (C) Delayed visual discrimination task ( n = 5 animals). Different states can be implemented in EthoPy; shown is the addition of the cue and delay period. During the cue period, a moving 3D object was presented. Following the delay period, the mice were required to select the port on top of which was the cue stimulus. The port location of the distractor and cue stimuli varied between the trials. (D) Navigation tasks in the open field (top) and virtual reality (bottom), using the spherical treadmill behavioral systems; left: schematics of the behavioral systems; right: trajectory lines during the trial period of an example session for each case. For the open-field visual discrimination task, the mice had to ignore a distractor and approach the target stimulus to receive reward. Positioning of the target stimulus varied between the trials. For the virtual reality olfactory discrimination task, the mice had to identify the direction of the target odor (odor A) and move toward that corner to receive reward. In (A)–(C), dashed lines indicate chance performance and shading represents SEM. See also Figure S6 . 2AFC tasks increase complexity as they require animals to choose between two alternatives, with a response mandated on every trial to control for fluctuations in engagement. 18 , 55 They have been applied across sensory modalities, including vision, 56 , 57 olfaction, 58 and audition, 59 but typically require longer training than Go/No-Go tasks. To address this, we used EthoPy’s block structure ( Figure 1 E) to implement adaptive learning protocols, where the animals advanced to harder blocks upon reaching the performance criteria or reverted to easier ones when the performance declined ( Figure 3 C). Blocks also support studies of task switching in studies of decision-making. 60 , 61 As shown in Figures 4 B and S6 , the mice performed multiple block transitions within a single session between two previously learned visual and auditory discrimination tasks (for details, see STAR Methods , behavioral tasks). Formalizing protocols as sequences of discrete states ( Figure 1 C) enable extending 2AFC tasks with distinct trial epochs, as in match-to-sample designs. These tasks probe cognitive processes such as memory, stimulus categorization, and decision-making under specific manipulations and have been adapted to multiple different modalities. 56 , 58 , 59 We implemented a visual delayed discrimination task ( Figure 4 C, top) in which the animals viewed a 3D moving object during the cue period, then identified the target among two comparison stimuli during the response period. The mice could reliably discriminate between the objects after 7–10 days of training ( Figure 4 C, bottom). Many ethologically relevant behaviors depend on locomotion and active sensing to reach a goal. Navigation inherently involves movement through space, whether for exploration, foraging, or goal-directed actions. To incorporate locomotion in freely moving animals, we developed an open-field 2AFC visual discrimination task by integrating DeepLabCut-Live 44 into EthoPy for real-time choice inference based on position ( Figure 4 D, top). In this setup, a screen displaying two 3D objects was placed opposite a reward port. The animals selected the target stimulus by staying within a pre-defined zone in front of it and then moved to the reward port. Trials were initiated only when the animals were away from the screen, preventing accidental responses to the presented stimuli. Training in this task induced selective movement between stimulus locations and the reward port ( Figure 4 D, top right). To study navigation under head fixation, which is critical for investigating processes such as sensory processing 62 , 63 and spatial navigation, 64 , 65 we developed a virtual reality environment in EthoPy where the mice navigated a spherical treadmill guided by odor cues ( Figure 4 D, bottom). The environment was modeled as a square arena, with each corner defined by a distinct odor whose intensity peaked locally and decayed radially. At any point, the mice experienced a mixture of odors weighted by proximity, enabling spatial localization through relative intensity cues. By assessing head-fixed mouse trajectories ( Figure 4 D, bottom right), we observed that the continuous mixture of odors enabled spatial localization through relative-intensity cues. Together, these applications highlight EthoPy’s versatility across stimuli (visual, olfactory, and auditory), interfaces (Raspberry Pi, Arduino, DeepLabCut, cameras, and treadmill), behaviors (port selection, open-field, and virtual reality navigation), and paradigms (Go/No-Go and 2AFC), while integrating community tools in both freely moving and head-restrained mice. Discussion EthoPy offers a robust and customizable framework for training animals in a wide array of behavioral tasks using rich stimuli, which makes it a valuable tool for addressing diverse challenges in neuroscience research. Developed in Python 41 —a widely adopted language in scientific computing for its versatility and cross-platform compatibility—EthoPy is accessible to users with varying levels of programming expertise. This design also enables rapid customization and extension to meet diverse experimental needs. As an open-source framework, EthoPy supports community-driven development through its modular architecture and plugin system, allowing researchers to contribute new components and adapt the platform to the emerging paradigms. This fosters long-term sustainability and collaborative innovation across the neuroscience community. 38 , 66 By leveraging off-the-shelf, low-cost components, EthoPy makes it feasible for laboratories to deploy sophisticated behavioral training setups at scale without the financial or logistic burden of proprietary systems. This affordability ( Table S1 ) is particularly advantageous for labs aiming to train large cohorts or run multiple and/or diverse experiments in parallel. It also enables the execution of mock experiments without requiring specialized hardware, allowing researchers to validate or refine experimental protocols with ease before deploying them in full experimental settings. EthoPy’s flexible architecture further allows its adaptation not only to the established behavioral paradigms such as the Morris water maze or Y maze 55 , 67 but also to more complex visual navigational tasks using Panda3D, 42 which suggest its broad applicability across neuroscience research. A distinguishing aspect of EthoPy is its integrated data management system, which uses the open-source DataJoint framework to automate organization, storage, and retrieval of experimental data and metadata. 39 , 40 By embedding structured data management into its core architecture, EthoPy puts the FAIR principles 32 into practice, ensuring that experimental data and metadata are systematically captured, centrally stored, and readily accessible. Its integration with a relational database enables consistent logging of every parameter, from task configurations to software versions, facilitating traceability, version control, and reproducibility. In addition, support for exporting data in the NWB format 50 , 51 promotes standardized and transparent data sharing among research groups. Together, these features strengthen the long-term usability and scientific value of behavioral datasets, advancing the broader goals of open, collaborative neuroscience. EthoPy’s automated nature significantly reduces the need for direct interaction between the experimenter and the animals, which is crucial for maintaining stable experimental conditions and minimizing behavioral variability. 23 , 24 This reduction in experimenter involvement is particularly beneficial in high-throughput scenarios, where the system can efficiently train large numbers of animals on complex tasks with reduced effort. Moreover, one of the most innovative aspects of EthoPy is its ability to facilitate training within the animals’ home cages with adaptive learning protocols that optimize training efficiency and promote a stress-free learning environment. 19 , 20 , 21 This approach allows animals to learn challenging behavioral tasks without the added stress of frequent handling or changes in environment, which can often lead to inconsistent performance. Once trained, the animals can be moved to more demanding tasks, such as those requiring head immobilization for neural recordings, with a solid foundation of learned behavior. This continuity between stress-free training and advanced experimental setups not only improves the reliability of behavioral data and significantly reduces the experimenter’s workload but also enhances the overall welfare of the animals involved. While the laboratory-based behavioral paradigms inherently involve artificial constraints that diverge from natural ethological contexts, EthoPy’s design philosophy prioritizes incorporating naturalistic elements wherever experimentally feasible. Several behavioral control systems overlap with EthoPy in scope, including pyControl, 30 Bpod, 68 and Autopilot. 31 Bpod and pyControl use microcontroller-based finite state machines that provide precise low-latency control and are well suited for structured operant tasks. However, they primarily focus on trial execution and local data logging, rather than integrated experiment management or standardized metadata tracking. Autopilot is architecturally closer to EthoPy, as both are Python based and designed for distributed large-scale training. Autopilot focuses on inter-device coordination with local HDF5-based storage, while EthoPy transmits all session data and metadata through DataJoint pipelines for structured, queryable storage. EthoPy is not intended to replace these systems but to complement them by providing a unified framework for automated training, experiment management, and reproducible data handling across diverse experimental configurations. EthoPy is built to support hardware interfaces such as Bpod 68 and Air-Track, 52 and its modular architecture is designed to accommodate additional devices such as FED3, 69 as community needs continue to evolve. Overall, by combining accessibility, scalability, modularity, and data integrity, EthoPy represents a significant step forward in behavioral training systems. It enables rigorous, high-throughput behavioral neuroscience and is designed for extensibility, anticipating the rapid evolution of experimental needs across animal models. Looking ahead, its flexible design and strong community-oriented foundation make it well suited for continued development, whether to support new hardware, integrate neural feedback, or promote standardized behavioral protocols, across research groups. Limitations of the study Automated home-cage training raises concerns about single housing and potential stress effects. In our experiments, we did not observe stress-related symptoms, and prior work reports no significant differences in motivation or learning between singly and socially housed animals. 34 Together with the rapid learning rates observed here ( Figures 4 A and 4C), this suggests that structured automated training may mitigate potential isolation-related effects. As in all behavioral systems, animal-to-animal variability remains unavoidable. EthoPy does not eliminate variability but facilitates early-stage screening, enabling efficient identification of animals suitable for continued training. Task design in EthoPy is currently defined programmatically in Python, supported by a command-line template generator (ethopy-create-task) and a web-based interface (ethopy_control) for experiment configuration and monitoring in real time ( Figures S2–S4 )). Although a graphical task designer is not yet available, the code-based approach provides greater flexibility for specifying complex task logic. A GUI-based task builder may be introduced in future releases. EthoPy presently lacks a built-in protocol for real-time communication between multiple instances, limiting fully synchronized, distributed paradigms. While sub-millisecond clock alignment is ensured via the precision time protocol, this does not provide active inter-node coordination. Expanding support for multi-device communication is a focus of future development. Finally, EthoPy assumes some familiarity with experimental hardware and basic electronics, as certain configurations require cage modifications and custom assembly, which are thoroughly documented in the ethopy_hardware repository. Resource availability Lead contact Further information and requests for resources and reagents should be directed to and will be fulfilled by the lead contact, Emmanouil Froudarakis ( froudarakis@uoc.gr ). Materials availability This study did not generate new unique reagents. Data and code availability • Data reported in the main figures of this paper are available at Figshare: https://doi.org/10.6084/m9.figshare.30111118 . • All original code has been deposited at Zenodo: https://doi.org/10.5281/zenodo.19110086 and at EthoPy’s repositories, https://github.com/ef-lab/ethopy_package , https://github.com/ef-lab/ethopy_control , https://github.com/ef-lab/ethopy_analysis , and https://github.com/ef-lab/ethopy_hardware , and is publicly available. • Any additional information required to reanalyze the data reported in this paper is available from the lead contact upon request. Acknowledgments We would like to acknowledge Dr. Mostafa Nashaat for contributing to the Air-Track behavioral system and the members of the Froudarakis Lab for discussion and constructive feedback on the manuscript. E.F. acknowledges support from a European Research Council (ERC) grant (ERC-2022-STG, NEURACT, grant agreement no. 101076710), the Hellenic Foundation for Research and Innovation (HFRI) under the 2nd Call for HFRI Research Projects to Support Faculty Members and Researchers, with grant agreement no. 4049, and the Hellenic Foundation for Research and Innovation (HFRI) under the “Funding of Basic Research (Horizontal support of all Sciences)” of the National Recovery and Resilience Plan “Greece 2.0” with funding from the European Union - NextGenerationEU (grant agreement no. 016552). M.D. acknowledges support from the European Union’s Horizon 2020 research and innovation program under the Marie Skłodowska-Curie Actions with grant agreement no. 101025482. A.P. acknowledges support from the FORTH-Synergy grant (FlexBe). Author contributions Conceptualization, E.F.; methodology, M.D., A.E., A.P., and E.F.; formal analysis, M.D., A.E., K.G., S.A., A.P., and E.F.; investigation, all authors; resources, E.F.; writing – original draft, M.D., A.E., A.P., and E.F.; writing – review & editing, all authors; visualization, M.D., A.E., A.P., and E.F.; supervision, E.F.; project administration, M.D., A.P., and E.F.; and funding acquisition, A.P. and E.F. Declaration of interests The authors declare no competing interests. Declaration of generative AI and AI-assisted technologies in the writing process During the preparation of this work, the authors used ChatGPT, Claude, and Grammarly in order to improve language and readability, and ChatGPT to generate illustrations based on real photographs for Figure 2 A (“behavioral systems”). After using these tools, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication. STAR★Methods Key resources table REAGENT or RESOURCE SOURCE IDENTIFIER Chemicals, peptides, and recombinant proteins Nalgene L900 Liquid Detergen Thermofischer scientific Cat# 900-4000 Epoxy 5 min Bison EAN: 8710439153056 Chlorine solution Local market N/A Mineral oil Sigma-Aldrich 330779 Propyl-acetate Sigma-Aldrich 133108 Carvone Sigma-Aldrich 124931 2-Heptanone Sigma-Aldrich 537683 Benzaldehyde Sigma-Aldrich B1334 Deposited data dataset EthoPy: Reproducible Behavioral Neuroscience Made Accessible figshare https://doi.org/10.6084/m9.figshare.30111118 Experimental models: Organisms/strains Mouse: C57BL/6J The Jackson Laboratory Strain#: 000664 Mouse: Thy1-GCaMP6sGP4.3 The Jackson Laboratory Strain#: 024275 Software and algorithms ethopy_package This paper https://doi.org/10.5281/zenodo.19110086 ; https://github.com/ef-lab/ethopy_package ethopy_analysis This paper https://doi.org/10.5281/zenodo.19110086 ; https://github.com/ef-lab/ethopy_analysis ethopy_control This paper https://doi.org/10.5281/zenodo.19110086 ; https://github.com/ef-lab/ethopy_control Other ethopy_hardware This paper https://doi.org/10.5281/zenodo.19110086 ; https://github.com/ef-lab/ethopy_hardware/ Open in a new tab Experimental model and study participant details Animals Both male and female C57BL/6J mice (Strain #: 000664, The Jackson Laboratory) and Thy1-GCaMP6sGP4.3 mice (Strain #: 024275, The Jackson Laboratory) were used for behavioral training. At the start of the training, mice were at least two months old and weighed at least 20g. In total, 26 mice were used; 17 male and 7 female C57BL/6J, and 2 male Thy1-GCaMP6sGP4.3. Mice were single-housed under a 12-h inverted light/dark cycle and the experiments were conducted during the dark phase. Animals had unrestricted access to food and were maintained under water restriction, receiving between 800 μL and 1500 μL of water per day. Body weight was monitored regularly to ensure their health and well-being. The only water that the animals receive comes from the setups, during habituation or training sessions and is monitored. All procedures were approved by the Veterinarian Authorities of the Region of Crete with protocol number 54506. Method details Software Code availability & installation The EthoPy package is freely available at https://github.com/ef-lab/ethopy_package under the MIT License. Setup and installation instructions for both EthoPy and the associated database can be found in the EthoPy GitHub repository. Database schema organization The relational database used in EthoPy is managed through DataJoint, 39 which provides a high-level Python interface for interacting with SQL-based systems such as MariaDB and MySQL. The database is organized into schemas, i.e., named collections of related tables that organize the data. EthoPy defines separate schemas for the experiments, behavior, stimuli, interfaces, and recordings, each of which contains a subset of tables for the comprehensive saving of all experimental parameters and outcomes. Experiment schema The experiment schema ( Figure S2 ) defines a structured relational database designed to manage the parameters and metadata associated with the experiment module. At its core, the schema organizes data around sessions, each representing a single experimental run for a specific animal (animal_id). The session table (Figure S2, Session) stores metadata including the user conducting the session, the setup used, the experiment type, the session timestamp, the task configuration file, and the code versioning. Each session is linked to its trials via shared primary keys (animal_id, session) ( Figure S2 , Trials). Trial-specific information is stored in the trial table, and each trial is associated with its corresponding state transitions (e.g., Trial, Reward, Punish), which capture the temporal progression of states within a trial. Additionally, each trial references a unique set of experimental conditions ( Figure S2 , Conditions), captured in the condition table and identified by a cond_hash. A hash is a unique computed identifier derived from the experimental parameters that acts like a digital fingerprint, ensuring that trials with identical conditions can be easily identified and grouped together. Conditions are further partitioned into specialized tables tailored to specific experimental paradigms. For example the default condition_passive, condition_match_port, and condition_free_water tables contain experiment-specific parameters such as reward amounts, intertrial intervals, and trial selection strategies. These sub-tables maintain relational integrity by using the same cond_hash as a foreign key to the condition table. Any new experiment should create a new sub-table as shown with the high opacity table called new_experiment ( Figure S2 , where all the experiment parameters (conditions) will be saved. The control table ( Figures S2 ; 4 A, Lookup Tables: control) provides real time operational metadata for each setup, including the current experiment status, active state, task index, trial count, reward delivery, and timing-related information. This table is critical for managing experimental execution by monitoring the current status of each setup. Finally, the task table ( Figure S2 , Lookup Tables: task) serves as a lookup for task configuration files, linking a unique task identifier (task_idx) to a description, path, and timestamp of creation. Behavior schema This schema ( Figure S3 A) is organized into two main sections: Activity and Conditions. Both sections are connected to the trial table (gray table) from the experiment schema ( Figure S2 ) via the shared primary keys animal_id, session, and trial_idx, ensuring that both behavioral events and behavioral metadata are tightly integrated with the trial structure. The Activity tables (activity, activity_position, activity_lick, activity_proximity) record behavioral events of the animal during each trial, including positional tracking, licking, and proximity to interaction ports. The Conditions tables capture the behavioral parameters assigned to each trial. Central to this is the beh_condition table, which is identified by a unique beh_hash and linked to condition specific parameter tables (e.g., multi_port, multi_port_reward, and multi_port_response) that define the target behavior, such as the correct response port for reward. Stimulus schema The stimulus schema defines all conditions related to the creation and presentation of stimuli during experiments ( Figure S3 B). Each trial is associated with a unique stim_hash, which encapsulates the specific parameters of the stimulus used in this trial. The stim_condition table stores these parameters, while the stim_condition_trial table links them to individual trials and records the timing of stimulus presentation. Detailed configurations for each stimulus type (e.g., dot, bar, grating, grating_movie) are stored in dedicated subtype tables, all connected via the shared stim_hash. Interface schema The interface schema manages all parameters related to the experimental hardware configuration. It is structured around two main components: setup configuration and calibration ( Figure S5 ). The setup configuration allows users to define the specific hardware components (e.g., ports, sensors, screen) to be used in an experiment by referencing predefined lookup tables. This design enables users to configure the entire setup within a task simply by specifying the setup configuration id, which in turn maps to all associated subcomponents and their parameters. To safeguard reproducibility, the session-specific setup configuration is stored separately for each session, capturing the exact hardware parameters (or lack of in the case of the mock interface) used at the time of the experiment, even if the lookup tables are later modified. In addition, calibration tables store important measurements of the hardware that might vary over time, such as water dispensation volumes for individual ports. Task setup and execution Tasks in EthoPy are Python scripts that define the experimental protocol through a combination of experiment, behavior, and stimulus parameters. Each task is structured with three main components: (1) import of the experiment, stimulus, and behavior modules needed for the particular experiment, (2) session parameters that control global experiment settings (e.g., setup configuration index, reward limits), and (3) stimulus, behavior, and experiment trial-specific conditions. Tasks can be created using the ethopy-create-task command line tool, which generates a template file containing all necessary parameters and placeholders. The template is then customized by specifying the required module paths and class names for the experiment, behavior, and stimulus components. Trial conditions are defined using the experiment’s Block class, which implements the staircase or other trial selection methods. The experiment is executed by pushing the defined conditions to the experiment object and initiating the start method. A basic task implementation follows this structure. # Import required components from ethopy.behaviors import SomeBehavior from ethopy.experiments import SomeExperiment from ethopy.stimuli import SomeStimulus # Session parameters session_params = { 'setup_conf_idx': 0, 'max_reward': 1200, 'min_reward': 600 } # Initialize and setup experiment exp = SomeExperiment() exp.setup(logger, SomeBehavior, session_params) # Define Block conditions block = exp.Block( difficulty=1, trial_selection='staircase', metric='accuracy' ) # Experiment, Stimulus & Behavior parameters params = {...} # Create and run conditions conditions = exp.make_conditions( stim_class=SomeStimulus(), conditions={∗∗block.dict(), ∗∗params} ) exp.push_conditions(conditions) exp.start() The task configuration file can be stored in the Task table ( Figure S2 ) with a unique task_idx, which serves as a numerical identifier that links the task configuration path to an id. The task_idx can be used in the Control table to specify which experimental protocol should run on a particular setup. The users simply update the task_idx field in the Control table to remotely trigger the execution of the corresponding task configuration ( Figure S2 ). Task can also be executed by specifying the task_idx via the command line. ethopy --task - id < task_idx > --log - console EthoPy plugins The EthoPy framework incorporates a flexible plugin system that enables the extension of core functionality through custom modules specifying behaviors, experiments, interfaces, and stimuli. Plugins can be implemented either as standalone, single module, or categorized components within specific directories (behavior, experiment, interface, and stimulus modules). The system automatically discovers and registers plugins both from default locations (∼/.ethopy/ethopy_plugins/) and custom paths specified through the ETHOPY_PLUGIN_PATH environment variable. Plugin resolution follows a hierarchical precedence where core EthoPy modules take priority over user defined plugins, with later added paths overriding earlier ones in case of conflicts. The plugin architecture allows for seamless integration of custom experimental protocols while maintaining compatibility with the core framework. Each plugin can be imported using the ethopy namespace (e.g., ethopy.behaviors.custom_behavior), enabling a standardized approach to extending experimental capabilities. The system includes built-in conflict resolution and management features through the PluginManager class, which handles plugin discovery, registration, and information tracking. This extensible architecture facilitates the implementation of specialized experimental paradigms while ensuring robust integration with the core EthoPy framework. Examples of plugins can be found at EthoPy Plugins GitHub Repository ( https://github.com/ef-lab/ethopy_plugins/ ), providing a valuable resource for researchers looking to extend the framework. Experimental Control and Monitoring EthoPy Control ( https://github.com/ef-lab/ethopy_control/ ) serves as a web-based graphical interface that complements the EthoPy behavioral experiment framework. While EthoPy provides the core state control system for behavioral experiments on individual setups, ethopy_control enables laboratory-wide coordination and monitoring of multiple experimental systems. The Control monitoring page ( Figure S4 A) through the Control table at the Experiment schema ( Figure S2 ) provides real-time status monitoring of all laboratory setups, displaying critical parameters such as status(e.g., running, sleeping), user, ping, and experimental progress across multiple behavioral systems. Each setup can operate autonomously on a daily schedule based on configurable start and stop times defined within the individual setup parameters, enabling automated experiment execution without manual intervention. The control page serves as the primary interface for researchers for assigning tasks to specific setups, monitor session progress, and perform remote setup edits, including system reboot. Additionally, the platform integrates realtime data visualization capabilities that display live behavioral events (lick port activations, proximity sensor data) across configurable time windows, enabling immediate assessment of experimental progress and animal performance ( Figure S4 B). A dedicated task management page enables researchers to create, modify, and organize task configurations by adding new task_idx entries. Behavioral data analysis EthoPy Analysis ( https://github.com/ef-lab/ethopy_analysis/ ) is a Python package that extends the EthoPy framework for behavioral data analysis and visualization. Built with a modular, DataFrame based architecture, this package provides DataJoint based tools for analyzing multi-session behavioral experiments across animals and sessions. The package abstracts database complexity by providing high-level data loading functions that retrieve behavioral data from DataJoint schemas and return them in pandas DataFrame format, eliminating the need for users to write SQL queries or understand DataJoint syntax. Key features include automated performance metrics calculation, standardized visualization functions for learning curves and behavioral patterns ( Figure 3 ), and a command-line interface for batch processing experimental datasets. This extension enhances the EthoPy ecosystem by providing analysis tools that support reproducible behavioral neuroscience research workflows. Hardware All the information mentioned below, with assembly instructions, parts list, and 3D designs, is in the EthoPy Hardware GitHub Repository ( https://github.com/ef-lab/ethopy_hardware/ ). Hardware components Interruptor ports Interruptor ports [HR0172] are mainly used as proximity detectors, i.e., detection when and for how long a subject is located near to the port. Interruptor ports include an aligned LED and photo sensor. The photo sensor detects the animal’s movement when it approaches the port through the infrared interruption. The photo sensor of the port is connected to the Hardware Interface ( Figure 2 A) which links the port with the computational node (RP or PC). Lick ports Lick Ports can be used both for lick detection and reward delivery. Regarding the former, lick ports include an IR LED and a photodiode positioned in parallel. Close vicinity of an object (e.g., the tongue of a mouse) reflects the infrared light and increases the signal from the photodiode. The photodiode is connected to the control board that links it with the computational node (RP or PC). Regarding the latter, a tube for water delivery for correct responses is coupled to a computerized valve that controls the liquid delivery, which can deliver liquid volumes with 1 μL resolution. The water is channeled through a liquid delivery device when the correct electrical signal is transmitted from the port to the electric control panel, leading to the opening of the respective valve. Both the LED and photodiode wires and the reward tubes are enclosed in a stainless steel 6mm diameter cylinder, and epoxy glue is used at their endpoints in order to prevent possible damage that could be caused by chewing or other mouse activities. In addition to detecting licks, the infrared-based sensing mechanism of the lick ports can also function as a proximity detector, allowing them to serve as a substitute for interruptor ports in certain experimental configurations ( https://github.com/ef-lab/ethopy_hardware/blob/main/Homecage/Lick_ports_assemply.md ). EthoPy controller board and arduino To support the behavioral system described in this study, we developed a custom circuit board (PCBoard) that serves as an interface hub between the low-end hardware components and the computational nodes (EthoPy Controller https://github.com/ef-lab/ethopy_hardware/tree/main/EthoPy_Controller ). This board connects two lick ports and a central trial initiation port to a signal-processing microcontroller and a reward delivery system. Specifically, the PCBoard connects with an Arduino Nano, which receives and processes input signals from the photodiodes of the lick and center ports, allowing precise detection of animal interactions ( https://github.com/ef-lab/ethopy_package/tree/main/src/ethopy/interfaces/arduino_firmware ). The PCBoard further incorporates the necessary electrical components to drive solenoid valves, enabling precise and reliable control of liquid reward delivery. It also features three onboard buttons: two for manually activating the solenoid valves to verify reward delivery, and a third used to calibrate the activation thresholds of the lick and center ports. A dedicated connector on the board provides seamless integration with the GPIO ports of an RP that runs the EthoPy framework. Alternatively, the Arduino can be connected directly via USB to a PC that runs EthoPy, providing additional flexibility in experimental setups. This compact and modular hardware architecture reduces wiring complexity and supports rapid assembly and scalability across multiple experimental setups. RP behavioral setup For this setup, an RP computer with an SD card with sufficient storage (recommended at least 32GB) is connected to a 7-inch RP display screen and the control board. The latter ensures the communication between the ports, the miniature solenoid valves, and the processing node, in this case the RP. The number and type of ports are set up according to the needs of the specific experiment. For example, for the setup shown in Figure 2 B and a proximity port - that can be either an interruptor or a lick port - is located in the center of the apparatus (‘center port’) and can be used for trial initiation. Two lick ports, on either side of the center port, are used to detect licks and deliver rewards. The subject’s response is recorded, timestamped and uploaded to the database, immediately available for visualization. Using development boards like RP and Arduino makes the behavioral system much easier to work with. These standard platforms allow researchers to easily change and adapt their hardware. The system becomes less complicated to wire and set up, while staying consistent across multiple experimental systems. Development boards can make it simpler to connect custom sensors and devices, making advanced behavioral experiments more accessible to researchers and easier to reproduce in different laboratories. Behavioral systems Homecage We developed a Homecage behavioral system ( https://github.com/ef-lab/ethopy_hardware/tree/main/Homecage ) built on the above-described RP setups ( Figure 2 B, Homecage). Each unit consists of a standard mouse cage [1264C EUROSTANDARD TYPE II] modified with three openings (∼7.5 mm diameter for lick ports, ∼8.5 mm for speakers if included) on one side. These openings align with the RP behavioral setup, which includes ports, optional speakers, and a 7inch RP screen mounted ∼41 mm from the central proximity port (for more information see https://github.com/ef-lab/ethopy_hardware/tree/main/Homecage/Cage_modification.md ). The setup can be mounted on custom 3D-printed stands ( https://github.com/ef-lab/ethopy_hardware/tree/main/Homecage/3d_designs ) that hold ports, speakers, and the screen. The homecages can be placed directly onto standard racks in the animal facility, allowing mice to be trained in their familiar environment. Each unit operates as an independent node, connected directly to the central data management system, enabling multiple parallel experiments with minimal experimenter involvement. This design supports scalable, high-throughput behavioral training while reducing animal stress and handling. Room requirements for the system include: (1) power supply, (2) air supply (e.g., small compressor for liquid delivery), and (3) network connectivity (Wi-Fi or Ethernet). Air-Track Many neural recording techniques require head-fixation during behavioral tasks. To accommodate this, we adapted the RP behavioral setup to control the Air-Track platform developed by Nashaat et al. 11 , 52 , 70 ( Figure 2 B, Air-Track). This adaptation involved minimal hardware changes - mainly adjusting the photodetectors and the lick ports to fit the floating, air-cushioned platform. In the Air-Track configuration, an interruptor-style behavioral port (e.g., Bpod mouse behavior port https://sanworks.github.io/Bpod_Wiki/assembly/mouse-behavior-port-assembly/ ) aligns with platform requirements, and photodiode sensor signals are processed as in other EthoPy setups to trigger behavioral events. Thanks to EthoPy’s modular architecture, these modifications required no changes to the core RP-based control system. The RP behavioral setup can be securely mounted in front of the Air-Track using custom 3D-printed holders, maintaining precise stimulus control and response detection. This compatibility allows animals to be pre-trained in the homecage and then transition to head-fixed experiments. Open-field Studying naturalistic behaviors such as spatial exploration, decision-making, and goal-directed movement requires tasks that allow animals to navigate freely within their environment. To this end, we developed an open-field behavioral system ( Figure 2 B, Open-field) for investigating exploration and navigation in freely moving mice. The system consists of a transparent Plexiglas arena (30 × 30 × 35 cm) enclosed within a sound and light isolated box [RatRig: https://ratrig.dozuki.com/Guide/01.+V-Hive+Enclosure+Base+Model/183?lang=en ], providing a controlled testing environment. A 13.3-inch monitor is mounted on one side for visual stimulus presentation, with a single lick port on the opposite side for reward delivery. Both the port and reward delivery hardware are controlled via the same custom circuit board used in other setups via serial communication with a PC. An overhead camera, aided by red LED lighting for uniform, non-intrusive illumination, tracks the animal’s position in real time. Tracking is powered by the integration of DeepLabCut-Live 44 to EthoPy, enabling closed-loop task execution based on the animal’s position. Trials and state transitions ( Figure 1 C) are triggered by location-dependent events - for example, starting a trial when the animal enters a defined area, or delivering reward/punishment based on its position relative to the stimulus. For real-time inference at >30 FPS, EthoPy runs on Ubuntu with an NVIDIA GPU (minimum 8 GB VRAM) to maintain TensorFlow compatibility and GPU-accelerated processing. Data from each session, including trial events, pose coordinates, and session videos, is uploaded immediately to the database for visualization and storage. At the end of the session, the locations of the video and a file with the animal coordinates are saved in the database. Spherical treadmill To investigate navigation-based behaviors under head-fixation, we developed a virtual reality (VR) behavioral system using a spherical treadmill that allows animals to navigate through simulated environments ( Figure 2 B, Spherical treadmill). In this case, the RP behavioral setup incorporates two motion sensors for extracting translational movement, along with odor and reward delivery systems. The spherical treadmill setup consists of a 25cm diameter Styrofoam ball supported by three metal ball bearings, enabling smooth, low-friction movement. Animals are head-fixed via two metal posts on top of the ball, and navigate by rotating it. Movement is tracked using two optical computer mice placed 90°apart and positioned close to the bearings for accurate motion detection. Odor stimuli are delivered via a custom-built manifold that also includes a lick port for reward delivery. Licking is detected using a capacitance-based detection circuit [SEN-14520]. Odor delivery is managed by a custom olfactometer capable of switching between four odors through solenoid valves driven by PWM signals from an RP running EthoPy (see Olfactory stimuli). The setup requires the same infrastructure as other systems—power supply, air supply, and internet connectivity. Operational procedures Liquid delivery In the animal facility room, a dedicated water delivery system is required to provide consistent and precise liquid rewards across multiple behavioral setups. The system consists of an air supply with adjustable pressure, an airtight container filled with potable water or other reward solution, a pressurized tubing network, and inline micropore filters (45 μm pore size). The air supply, typically set between 3-8psi, is connected to the sealed water container to maintain constant pressure. This pressure forces water through the food-safe tubing system toward the behavioral setups, where solenoid valves control the release of liquid through the lick ports. Maintaining constant pressure facilitates fast, consistent water delivery with minimal latency. Micropore filters are placed near the end of the tubing system just before the valves to prevent clogging from particulates or debris. All tubing and fittings should be leak-proof and securely connected to avoid air loss or contamination, ensuring reliable performance during training sessions. Cleaning The water delivery system requires regular cleaning - at least once a week - to prevent contamination and clogging of tubes and lick ports. Cleaning is performed using a 0.7% detergent solution of Nalgene L900 Liquid Detergent and increased pressure set at 10psi. Each port is flushed with 70 pulses of 300ms duration of liquid, and 100ms intervals between pulses. The same procedure is repeated using purified water to rinse out any detergent residue. Twice a month, an additional disinfection cycle should be carried out using a 5% chlorine solution. Micropore filters (see above) must be removed before starting the cleaning procedure and replaced with new filters upon completion to maintain consistent flow across long time periods. Calibration To secure precise and consistent reward delivery across all behavioral setups, each liquid port is calibrated to determine the relationship between valve opening duration and the volume of water released. Calibration is performed weekly after cleaning the system and is typically carried out under a constant air pressure of ∼5psi. For each port, the solenoid valve opens for a series of predefined durations, typically 20ms, 35ms, and 100ms. For each duration, the valve is triggered multiple times to account for variability and obtain an average flow rate. The released water is collected and weighed using a precision scale. These measurements are then entered directly into the system via EthoPy’s graphical interface for each setup. EthoPy uses these measurements to compute the flow rate and generate a calibration curve, allowing it to automatically determine the exact valve opening duration required to dispense a specified reward volume. Synchronization To establish accurate timing and synchronization across behavioral, visual, and recording components, we characterized key sources of temporal delay and system latency in our experimental setup. During the behavioral task, the average delay between a lick response and the subsequent activation signal for the reward valve was estimated to be 1.2ms ( Figure S1 A). To assess real-time rendering performance, we measured the interval between two consecutive frame flips while presenting moving visual stimuli rendered using Panda3D 42 on an RP4. The monitor operated at its native refresh rate of 60Hz ( Figure S1 B), demonstrating the system’s ability to maintain consistent frame timing. We also quantified the monitor’s display response latency using a photodetector, finding an average lag of 30ms between the frame flip command and the actual visual update ( Figure S1 C). For cross-system synchronization—including behavioral, recording, and database server—we employed Precision Time Protocol (PTP). On RP4, which supports only software-based timestamping, the average synchronization precision was estimated at approximately 1.4ms ( Figure S1 D). In contrast, systems supporting hardware-based PTP timestamping (such as RP5 or desktop machines with compatible network interfaces) can achieve sub-millisecond precision. In addition to PTP-based clock alignment, EthoPy supports hardware-level synchronization using TTL pulses in two complementary modes. First, EthoPy can generate TTL pulses at user-defined task events (e.g., trial onset, stimulus presentation, reward delivery). These pulses are emitted through a digital output line with a registered internal timestamp and can be recorded by external acquisition systems such as NI-DAQ devices/OpenEphys. This allows behavioral events to be aligned precisely to electrophysiological recordings using shared digital markers. Second, EthoPy can receive and timestamp incoming TTL pulses from external systems (e.g., frame acquisition triggers from NI hardware or ScanImage during two-photon imaging). Incoming digital events are logged alongside behavioral timestamps, enabling alignment of neural data streams to behavioral task structure. Together, outbound and inbound TTL synchronization provide flexible integration with electrophysiology and optical physiology acquisition systems, supporting precise alignment across behavioral control and neural recording pipelines ( Figures S1 E–S1H). Stimuli Olfactory Odor delivery is controlled via a pulse-width modulation (PWM) signal—generated from the RP’s GPIOs —that drives a solenoid valve circuit. The resulting pulses produce brief “puffs” of air, which pass through bottles containing diluted odorants and are directed to the animal via the center port ( Figure 4 A). Odor concentration can be algorithmically modulated by varying the ON/OFF timing of the PWM signal, or manually adjusted by diluting the odorant in a carrier solvent such as mineral oil. EthoPy also supports mixtures of odorants and dynamic switching between them. In the olfactory task shown in Figure 4 A, an aldehyde (50% benzaldehyde in mineral oil) served as the target odor gradient, while a ketone (10% heptanone in mineral oil) was used as the distractor during the “no-go” phase. For the VR navigation task ( Figure 4 D, bottom), the 4 odors used are propyl-acetate, 2-heptanone, and benzaldehyde (50% in mineral oil) and carvone (not diluted). Auditory For tone delivery, the speakers are directly controlled from the output of the GPIOs of the RP. Modulation of this electrical signal can generate tone ‘clicks’, as the ones shown in Figure 4 B. In the homecage behavioral system, we used Ultrasonic Piezoelectric Transducers as speakers tuned at 40kHz; this was necessary as ultrasounds are characterized by a very focused spatial profile (high reduction in amplitude of the ultrasound beam as a function of distance) that allows for multiple auditory experiments to be performed within an animal room without interference between the cages. Visual Objects For presenting 3D objects, EthoPy integrates Panda3D, 42 an open-source engine optimized for real-time visualizations. This enables precise, dynamic control over both the objects and their visual context during experiments. Parameters such as object size, position, rotation, and motion can be flexibly adjusted, along with background features including color, lighting direction, and intensity. In the tasks shown in Figures 4 C and 4D, we presented two moving 3D objects against a black or gray background, systematically varying their size, horizontal and vertical position, rotation, tilt, yaw, and illumination to explore the animals’ ability to discriminate complex visual features. Gratings PsychoPy, 45 , 46 a Python-based open-source package, has been integrated into EthoPy to enable the creation and manipulation of visual gratings. This integration allows for the flexible control of various visual parameters, including grating position along the x- and y axes, masking, orientation, and spatial and temporal frequency, tailored to the needs of each experiment. Behavioral tasks Training procedure For all behavioral systems (Homecage, Air-track, Open-field, and Spherical treadmill), the training procedure is divided into two main stages: (1) habituation to the setup and (2) training to the specific behavioral task. It should be noted that for the homecage system no animal handling is required, but for the other systems time for habituation to the experimenter should also be considered in addition to the times described below. In the case of the homecage behavioral system, during habituation, water restricted animals first learn to lick freely from lick port(s) to receive water, which helps them associate the ports with reward and become familiar with the setup. In a subsequent session, they are required to initiate each trial by activating the center port before gaining access to the side ports. This promotes familiarization with the trial structure. Habituation is typically completed after the animal manages to drink at least 1mL of water within 2 h, and it usually takes one day (maximum 2 days) depending on the individual animal. Animals that require more than five days to habituate (approximately 1–2% of our tested animals) do not proceed to further training and are excluded at this stage. Habituation to the Air-track behavioral system, Open-field arena and Spherical treadmill requires transfer of the animal from the homecage to the setup. In the Air-track behavioral system, mice are initially freely moving and are habituated to the task structure similar to the homecage behavioral system (∼2–3 days). Once trial initiation is learned, mice are further habituated to head-fixation, requiring also to learn to move the air-platform (∼7 days), before training to a specific task. In the Open-field, animals are initially freely moving and learn to lick freely from the lick port to receive water (∼1–2 days). In the following days, mice are allowed to move freely for approximately 10–15min before task initiation to habituate and reduce stress following transfer from the homecage. Habituation to the spherical treadmill requires habituation to the head-fixation (2 days) and to the lick port (∼2–3 days), where the reward odor is also introduced. During this phase, animals also have to learn how to walk on the spherical treadmill. Once habituated, animals begin training on the specific behavioral tasks. Water is made available exclusively through task performance, with a daily minimum of 0.7mL and a maximum of 1.5mL. Food remains freely available in the homecage. Training sessions typically last 1–3h per day and start at least 1 h after the onset of the dark phase. All task parameters, including trial structure, stimulus timing, and reward delivery, are configurable based on experimental requirements. EthoPy supports several approaches for controlling task progression, including performance-adaptive paradigms. In the latter case, task difficulty automatically adjusts based on the subject’s performance 71 , 72 , 73 : if performance exceeds a threshold (e.g., 80% correct), the task becomes more difficult; if it falls below a minimum threshold (e.g., 50%), the difficulty is reduced ( Figure 3 C). This adaptive training allows animals to progress within the same session. Go-NoGo task In a Go-NoGo task in the homecage setup ( Figure 4 A), a trial begins when the mouse places its snout at the center port for a minimum of a predefined period (∼100ms). A stimulus is then presented in the form of an odor for 500ms. To facilitate engagement, the animal must maintain its position for an additional 100ms after stimulus presentation. Each trial is designated as either a “go” trial (target odor) or a “no-go” trial (distractor odor). During “go” trials, the mouse can receive water reward by licking at either lick port (correct response - Hit). If no licking response occurs within 3s, the trial is terminated and marked as aborted (miss). During “no-go” trials, the correct behavior is to withhold licking for 3s (correct rejection - CR). If the animal licks during these trials, the response is marked as incorrect (false alarm - FA) and results in a 10s timeout penalty (punish). For the data shown in Figure 4 A in total 6 mice were used, with 2.67 ± 0.52 (mean ± std) number of training days per animal, and 269.25 ± 206.54 (mean ± std) number of trials per training day and 1.43 ± 0.49 (mean ± std) training day duration. One training day is usually one session, but we can also have multiple sessions per day. The accuracy metric is calculated as accuracy = (Hits+CR)/(Hits+miss+CR+FA). Two alternative forced-choice tasks In a standard 2AFC task in the homecage setup, as the ones shown in Figure 4 B and a trial begins when the mouse places its snout at the center port and stays in place for a minimum of a predefined period (50ms). Then either a stimulus appears on the screen or a sound is activated, and the animal has 5s to make a response by approaching one of the two lick ports. Each stimulus is uniquely paired with a specific lick port. If the mouse licks the correct port, the screen turns white and a water reward (5-10 μL ) is delivered through the lick port. If the mouse licks the wrong port, the screen turns black, and there is a timeout penalty of 4-8s (punishment) before the next trial. If there is no response to either port within 5s, the trial is terminated and marked as aborted. For block switching of Figure 4 B and a new set of trials was presented once the animal reached >80% performance calculated in a 40-trial window. For the data shown in Figures 4 B and S6 total 6 mice were used, with 1 session per animal, and 243.33 ± 22.37 (mean ± std) number of trials with response per session and 0.96 ± 0.32 (mean ± std) hours session duration. The accuracy metric is calculated as accuracy = correct trials/(correct+incorrect trials). For the plots, a 15 moving window of non-aborted trials was used to calculate accuracy, while during the session, a 40 moving window was used for block switching. In the cued 2AFC task (Delayed Visual Discrimination task) in the homecage setup shown in Figure 4 C and a trial starts automatically with the presentation of the target object in the center of the screen (Cue period). For the implementation of the moving objects we used Panda3D. 42 During the Cue period, the animal has time to sample (view) the target object. For the example data in Figure 4 C the Cue period was set to a maximum of 4min. After sufficient sampling of the target object, the animal must approach and maintain its snout at the center port for 0.2–0.5s (Delay period). Subsequently, the target object appears on one side of the screen, and a distractor object appears on the opposite side (Response period). During the Response period, the animal must identify the target object and lick the port in front of the target object. If the animal’s choice is correct, the screen turns white and a water reward (5-10 μL ) is delivered through the lick port. If the choice is incorrect, meaning the animal licked the port in front of the distractor object, the screen turns black, and there is a timeout penalty of 4-10s (punish) before the next trial. For the data shown in Figure 4 C in total 5 mice were used, with 35.80 ± 8.07 (mean ± std) number of sessions per animal, and 316.47 ± 64.80 (mean ± std) number of trials with response per session and 1.33 ± 0.31 h (mean ± std) session duration. The accuracy metric is calculated as accuracy = correct trials/(correct+incorrect trials), aborted trials are excluded. It is important to note, that the Delayed Visual Discrimination task is a difficult task for the animals to learn. Therefore the animals were trained before to the visual detection task similar to the task shown in Figures 3 D–3F. The task structure is similar to the Discrimination task but only one object is used as a target and there is no delay. During the Response period, the animal must lick the port in front of the target object. For the data shown in Figures 3 D–3F in total 8 mice were used, with 7.12 ± 3.18 (mean ± std) number of sessions per animal, and 218.42 ± 88.74 (mean ± std) number of trials with response per session and 1.99 ± 0.22 h (mean ± std) session duration. The accuracy metric is calculated as performance = correct trials/(correct+incorrect trials), aborted trials are excluded. Open-field visual discrimination task In the open-field visual discrimination task ( Figure 4 D), the animal position is recognised and a trial begins when the animal is in a predefined area of the arena. Then, two stimuli appear on the screen (the target object on one side of the screen and the distractor object on the opposite side). The animal must respond by approaching one of the stimuli. If the mouse approaches the correct stimulus (target), the screen turns white and a water reward (5 μL ) is delivered through the lick port that is positioned on the opposite side of the arena. If the mouse approaches the wrong stimulus (distractor), the screen turns black, and there is a timeout penalty of 20s (punishment) before the next trial. In Figure 4 D (upper panel) one representative mouse is shown, for 1 session, with 266 number of trials and 54.3 min session duration. Virtual reality olfactory discrimination task In the head-fixed VR navigation using an olfactory discrimination task, the animal has to approach the target odor to receive reward (∼5-8 μL of water). The trial starts with the animal positioned in the center of the virtual space, where it receives an equal amount of all 4 odors. Then, the animal must move through the virtual space toward the higher concentration of the rewarding odor. The reward can be granted once the animal enters a pre-specified area centered at the source of the rewarding odor. The reward is delivered only if the animal licks the lick port while having a velocity of less than 0.025m/s to eliminate random licks. The mouse completes a full trial if it reaches the rewarding odor radius and licks to receive the water reward within 30s. If 30s pass before the completion of the trial then it is considered missed and a new trial starts without time delay. If the licks happen outside of the rewarding radius, then a new trial will start after a time penalty (∼1-2s). These conditions assist in task engagement, as the animal has a limited amount of time to complete a full trial and receive reward. During training, we implemented the staircase paradigm ( Figure 3 C) with the increase in difficulty including reduced reward radius, increased odor diffusion throughout the virtual space and alternative initial position (e.g., start from an unrewarded odor’s radius). In Figure 4 D (lower panel) one representative mouse is shown, for 1 session, with 147 number of trials and 48.2 min session duration. Electrophysiological recordings We performed chronic recordings using Neuropixels 2.0 probes 2 according to. 74 Location of probe insertion was chosen according to stereotaxic coordinates for targeting visual cortical areas using Pinpoint, 75 with all penetrations ranging from 600 to 1100 μm on the anteroposterior axis, 2900–3500 μm on the mediolateral axis, and at an angle of 55 deg or 60 deg with respect to the dorsoventral axis. The probe was smoothly lowered through the craniotomy to the final depth according to the trajectory planning to cover the whole cortical depth (covering 1800–2000 μm of the probe). Neuronal activity was recorded with OpenEphys GUI, 76 automatically spike sorted with the Kilosort4 77 using SpikeInterface 78 and units were classified as “single neurons” or “multi-unit activity” (mua). For Figures S1 E and S1F, recordings were performed while the animal was head-fixed and passively viewing 3D moving objects on a screen. Session duration was 58.3 min, and consisted of 700 trials of 5s duration each trial. For Figures S1 G and S1H, recordings were performed while the animal was freely-moving and actively engaged in a 2AFC object discrimination task in a Homecage setup. Session duration was 26 min and consisted of 283 trials in total. For plotting only the rewarded trials for one stimulus condition was used which was 58 trials. Quantification and statistical analysis Analysis was performed using Python ≥3.8 and ≤3.12 with NumPy 79 and SciPy. 80 Visualizations were made with Matplotlib 81 and Seaborn, 82 and shadings represent standard error of the means. Published: April 23, 2026 Footnotes Supplemental information can be found online at https://doi.org/10.1016/j.crmeth.2026.101421 . Supplemental information Document S1. Figures S1–S6 and Table S1 mmc1.pdf (1.9MB, pdf) Document S2. Article plus supplemental information mmc3.pdf (13.6MB, pdf) References 1. Jun J.J., Steinmetz N.A., Siegle J.H., Denman D.J., Bauza M., Barbarits B., Lee A.K., Anastassiou C.A., Andrei A., Aydın Ç., et al. Fully integrated silicon probes for high-density recording of neural activity. Nature. 2017;551:232–236. doi: 10.1038/nature24636. https://www.nature.com/articles/nature24636 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 2. Steinmetz N.A., Aydin C., Lebedeva A., Okun M., Pachitariu M., Bauza M., Beau M., Bhagat J., Böhm C., Broux M., et al. Neuropixels 2.0: A miniaturized high-density probe for stable, long-term brain recordings. Science. 2021;372 doi: 10.1126/science.abf4588. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 3. Lakunina A., Socha K.Z., Ladd A., Bowen A.J., Chen S., Colonell J., Doshi A., Karsh B., Krumin M., Kulik P., et al. Neuropixels Opto: Combining high-resolution electrophysiology and optogenetics. bioRxiv. 2025 doi: 10.1101/2025.02.04.636286. Preprint at. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 4. Sofroniew N.J., Flickinger D., King J., Svoboda K. A large field of view two-photon mesoscope with subcellular resolution for in vivo imaging. eLife. 2016;5 doi: 10.7554/eLife.14472. https://elifesciences.org/articles/14472 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 5. Zhang Y., Yuan L., Zhu Q., Wu J., Nöbauer T., Zhang R., Xiao G., Wang M., Xie H., Guo Z., et al. A miniaturized mesoscope for the large-scale single-neuron-resolved imaging of neuronal activity in freely behaving mice. Nat. Biomed. Eng. 2024;8:754–774. doi: 10.1038/s41551-024-01226-2. https://www.nature.com/articles/s41551-024-01226-2 [ DOI ] [ PubMed ] [ Google Scholar ] 6. Guo C., Blair G.J., Sehgal M., Sangiuliano Jimka F.N., Bellafard A., Silva A.J., Golshani P., Basso M.A., Blair H.T., Aharoni D. Miniscope-LFOV: A large-field-of-view, single-cell-resolution, miniature microscope for wired and wire-free imaging of neural dynamics in freely behaving animals. Sci. Adv. 2023;9 doi: 10.1126/sciadv.adg3918. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 7. Krakauer J.W., Ghazanfar A.A., Gomez-Marin A., MacIver M.A., Poeppel D. Neuroscience Needs Behavior: Correcting a Reductionist Bias. Neuron. 2017;93:480–490. doi: 10.1016/j.neuron.2016.12.041. [ DOI ] [ PubMed ] [ Google Scholar ] 8. Peters S.M., Pothuizen H.H.J., Spruijt B.M. Ethological concepts enhance the translational value of animal models. Eur. J. Pharmacol. 2015;759:42–50. doi: 10.1016/j.ejphar.2015.03.043. URL: [ DOI ] [ PubMed ] [ Google Scholar ] 9. Vielle C. Beyond the Illusion of Controlled Environments: How to Embrace Ecological Pertinence in Research? Eur. J. Neurosci. 2025;61 doi: 10.1111/ejn.16661. [ DOI ] [ PubMed ] [ Google Scholar ] 10. Shemesh Y., Chen A. A paradigm shift in translational psychiatry through rodent neuroethology. Mol. Psychiatr. 2023;28:993–1003. doi: 10.1038/s41380-022-01913-z. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 11. Nasr A., Dominiak S.E., Sehara K., Nashaat M.A., Sachdev R.N.S., Larkum M.E. Efficient training approaches for optimizing behavioral performance and reducing head fixation time. PLoS One. 2022;17 doi: 10.1371/journal.pone.0276531. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 12. Castelhano-Carlos M.J., Baumans V., Sousa N. PhenoWorld: addressing animal welfare in a new paradigm to house and assess rat behaviour. Lab. Anim. 2017;51:36–43. doi: 10.1177/0023677216638642. [ DOI ] [ PubMed ] [ Google Scholar ] 13. Watson M.R., Voloh B., Thomas C., Hasan A., Womelsdorf T. USE: An integrative suite for temporally-precise psychophysical experiments in virtual environments for human, nonhuman, and artificially intelligent agents. J. Neurosci. Methods. 2019;326 doi: 10.1016/j.jneumeth.2019.108374. [ DOI ] [ PubMed ] [ Google Scholar ] 14. Nourizonoz A., Zimmermann R., Ho C.L.A., Pellat S., Ormen Y., Prévost-Solié C., Reymond G., Pifferi F., Aujard F., Herrel A., Huber D. EthoLoop: automated closed-loop neuroethology in naturalistic environments. Nat. Methods. 2020;17:1052–1059. doi: 10.1038/s41592-020-0961-2. https://www.nature.com/articles/s41592-020-0961-2 [ DOI ] [ PubMed ] [ Google Scholar ] 15. Kim B., Kenchappa S.C., Sunkara A., Chang T.Y., Thompson L., Doudlah R., Rosenberg A. Real-time experimental control using network-based parallel processing. eLife. 2019;8 doi: 10.7554/elife.40231. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 16. Lopes G., Bonacchi N., Frazão J., Neto J.P., Atallah B.V., Soares S., Moreira L., Matias S., Itskov P.M., Correia P.A., et al. Bonsai: an event-based framework for processing and controlling data streams. Front. Neuroinf. 2015;9 doi: 10.3389/fninf.2015.00007. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 17. Sukoff Rizzo S.J., Silverman J.L. Methodological Considerations for Optimizing and Validating Behavioral Assays. Curr. Protoc. Mol. Biol. 2016;6:364–379. doi: 10.1002/cpmo.17. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 18. Zoccolan D., Di Filippo A. Methodological Approaches to the Behavioural Investigation of Visual Perception in Rodents. Handb. Behav. Neurobiol. 2018;27:69–101. doi: 10.1016/B978-0-12-812012-5.00005-7. [ DOI ] [ Google Scholar ] 19. Chesler E.J., Wilson S.G., Lariviere W.R., Rodriguez-Zas S.L., Mogil J.S. Identification and ranking of genetic and laboratory environment factors influencing a behavioral trait, thermal nociception, via computational analysis of a large data archive. Neurosci. Biobehav. Rev. 2002;26:907–923. doi: 10.1016/S0149-7634(02)00103-3. [ DOI ] [ PubMed ] [ Google Scholar ] 20. Sorge R.E., Martin L.J., Isbester K.A., Sotocinal S.G., Rosen S., Tuttle A.H., Wieskopf J.S., Acland E.L., Dokova A., Kadoura B., et al. Olfactory exposure to males, including men, causes stress and related analgesia in rodents. Nat. Methods. 2014;11:629–632. doi: 10.1038/nmeth.2935. [ DOI ] [ PubMed ] [ Google Scholar ] 21. Balcombe J.P., Barnard N.D., Sandusky C. Laboratory routines cause animal stress. Contemp. Top. Lab. Anim. Sci. 2004;43:42–51. [ PubMed ] [ Google Scholar ] 22. International Brain Laboratory. Aguillon-Rodriguez V., Angelaki D., Bayer H., Bonacchi N., Carandini M., Cazettes F., Chapuis G., Churchland A.K., Dan Y., et al. Standardized and reproducible measurement of decision-making in mice. eLife. 2021;10 doi: 10.7554/eLife.63711. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 23. Richter S.H. Automated Home-Cage Testing as a Tool to Improve Reproducibility of Behavioral Research? Front. Neurosci. 2020;14:383. doi: 10.3389/fnins.2020.00383. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 24. Nigri M., Åhlgren J., Wolfer D.P., Voikar V. Role of Environment and Experimenter in Reproducibility of Behavioral Studies With Laboratory Mice. Front. Behav. Neurosci. 2022;16 doi: 10.3389/fnbeh.2022.835444. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 25. Gulinello M., Mitchell H.A., Chang Q., Timothy O’Brien W., Zhou Z., Abel T., Wang L., Corbin J.G., Veeraragavan S., Samaco R.C., et al. Rigor and reproducibility in rodent behavioral research. Neurobiol. Learn. Mem. 2019;165 doi: 10.1016/j.nlm.2018.01.001. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 26. Berditchevskaia A., Cazé R.D., Schultz S.R. Performance in a GO/NOGO perceptual task reflects a balance between impulsive and instrumental components of behaviour. Sci. Rep. 2016;6 doi: 10.1038/srep27389. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 27. Hulsey D., Zumwalt K., Mazzucato L., McCormick D.A., Jaramillo S. Decision-making dynamics are predicted by arousal and uninstructed movements. Cell Rep. 2024;43 doi: 10.1016/j.celrep.2024.113709. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 28. Pisupati S., Chartarifsky-Lynn L., Khanal A., Churchland A.K. Lapses in perceptual decisions reflect exploration. eLife. 2021;10 doi: 10.7554/eLife.55490. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 29. Schweihoff J.F., Loshakov M., Pavlova I., Kück L., Ewell L.A., Schwarz M.K. DeepLabStream enables closed-loop behavioral experiments using deep learning-based markerless, real-time posture detection. Commun. Biol. 2021;4:130. doi: 10.1038/s42003-021-01654-9. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 30. Akam T., Lustig A., Rowland J.M., Kapanaiah S.K., Esteve-Agraz J., Panniello M., Márquez C., Kohl M.M., Kätzel D., Costa R.M., Walton M.E. Open-source, Python-based, hardware and software for controlling behavioural neuroscience experiments. eLife. 2022;11 doi: 10.7554/eLife.67846. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 31. Saunders J.L., Ott L.A., Wehr M. AUTOPILOT: Automating experiments with lots of Raspberry Pis. bioRxiv. 2019 doi: 10.1101/807693. Preprint at. [ DOI ] [ Google Scholar ] 32. Martone M.E. The past, present and future of neuroscience data sharing: a perspective on the state of practices and infrastructure for FAIR. Front. Neuroinf. 2023;17 doi: 10.3389/fninf.2023.1276407. https://www.frontiersin.org/articles/10.3389/fninf.2023.1276407/full [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 33. Ameen-Ali K.E., Eacott M.J., Easton A. A new behavioural apparatus to reduce animal numbers in multiple types of spontaneous object recognition paradigms in rats. J. Neurosci. Methods. 2012;211:66–76. doi: 10.1016/j.jneumeth.2012.08.006. https://linkinghub.elsevier.com/retrieve/pii/S0165027012002956 [ DOI ] [ PubMed ] [ Google Scholar ] 34. Poddar R., Kawai R., Ölveczky B.P. A Fully Automated High-Throughput Training System for Rodents. PLoS One. 2013;8 doi: 10.1371/journal.pone.0083171. https://dx.plos.org/10.1371/journal.pone.0083171 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 35. Aoki R., Tsubota T., Goya Y., Benucci A. An automated platform for high-throughput mouse behavior and physiology with voluntary head-fixation. Nat. Commun. 2017;8:1196. doi: 10.1038/s41467-017-01371-0. https://www.nature.com/articles/s41467-017-01371-0 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 36. Gordon-Fennell A., Barbakh J.M., Utley M.T., Singh S., Bazzino P., Gowrishankar R., Bruchas M.R., Roitman M.F., Stuber G.D. An open-source platform for head-fixed operant and consummatory behavior. eLife. 2023;12 doi: 10.7554/eLife.86183. https://elifesciences.org/articles/86183 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 37. Iman I.N., Yusof N.A.M., Talib U.N., Ahmad N.A.Z., Norazit A., Kumar J., Mehat M.Z., Jayabalan N., Muthuraju S., Stefaniuk M., et al. The IntelliCage System: A Review of Its Utility as a Novel Behavioral Platform for a Rodent Model of Substance Use Disorder. Front. Behav. Neurosci. 2021;15 doi: 10.3389/fnbeh.2021.683780. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 38. Diamantaki M., Papoutsi A. Gather your neurons and model together: Community times ahead. PLoS Biol. 2024;22 doi: 10.1371/journal.pbio.3002839. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 39. Yatsenko D., Walker E.Y., Tolias A.S. DataJoint: A Simpler Relational Data Model. arXiv. 2018 doi: 10.48550/ARXIV.1807.11104. https://arxiv.org/abs/1807.11104 Preprint at. [ DOI ] [ Google Scholar ] 40. Johnson E.C., Nguyen T.T., Dichter B.K., Zappulla F., Kosma M., Gunalan K., Halchenko Y.O., Neufeld S.Q., Ratan K., Edwards N.J., et al. SciOps: Achieving Productivity and Reliability in Data-Intensive Research. arXiv. 2024 http://arxiv.org/abs/2401.00077 Preprint at. [ Google Scholar ] 41. Muller E., Bednar J.A., Diesmann M., Gewaltig M.O., Hines M., Davison A.P. Python in neuroscience. Front. Neuroinf. 2015;9 doi: 10.3389/fninf.2015.00011. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 42. Goslin M., Mine M.R. The Panda3D graphics engine. Computer. 2004;37:112–114. doi: 10.1109/MC.2004.180. [ DOI ] [ Google Scholar ] 43. Mathis A., Mamidanna P., Cury K.M., Abe T., Murthy V.N., Mathis M.W., Bethge M. DeepLabCut: markerless pose estimation of user-defined body parts with deep learning. Nat. Neurosci. 2018;21:1281–1289. doi: 10.1038/s41593-018-0209-y. https://www.nature.com/articles/s41593-018-0209-y [ DOI ] [ PubMed ] [ Google Scholar ] 44. Kane G.A., Lopes G., Saunders J.L., Mathis A., Mathis M.W. Real-time, low-latency closed-loop feedback using markerless posture tracking. eLife. 2020;9 doi: 10.7554/eLife.61909. https://elifesciences.org/articles/61909 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 45. Peirce J.W. PsychoPy—Psychophysics software in Python. J. Neurosci. Methods. 2007;162:8–13. doi: 10.1016/j.jneumeth.2006.11.017. https://linkinghub.elsevier.com/retrieve/pii/S0165027006005772 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 46. Peirce J.W. Generating stimuli for neuroscience using PsychoPy. Front. Neuroinf. 2008;2 doi: 10.3389/neuro.11.010.2008. http://journal.frontiersin.org/article/10.3389/neuro.11.010.2008/abstract [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 47. Siegle J.H., López A.C., Patel Y.A., Abramov K., Ohayon S., Voigts J. Open Ephys: an open-source, plugin-based platform for multichannel electrophysiology. J. Neural. Eng. 2017;14 doi: 10.1088/1741-2552/aa5eea. https://iopscience.iop.org/article/10.1088/1741-2552/aa5eea [ DOI ] [ PubMed ] [ Google Scholar ] 48. Gamma E., Helm R., Johnson R., Vlissides J. Pearson Education; 1994. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley Professional Computing Series. https://books.google.gr/books?id=6oHuKQe3TjQC [ Google Scholar ] 49. Tanenbaum A.S., Bos H. 4. Prentice Hall; Boston: 2015. Modern Operating Systems. [ Google Scholar ] 50. Teeters J.L., Godfrey K., Young R., Dang C., Friedsam C., Wark B., Asari H., Peron S., Li N., Peyrache A., et al. Neurodata Without Borders: Creating a Common Data Format for Neurophysiology. Neuron. 2015;88:629–634. doi: 10.1016/j.neuron.2015.10.025. https://linkinghub.elsevier.com/retrieve/pii/S0896627315009198 [ DOI ] [ PubMed ] [ Google Scholar ] 51. Rübel O., Tritt A., Ly R., Dichter B.K., Ghosh S., Niu L., Baker P., Soltesz I., Ng L., Svoboda K., et al. The Neurodata Without Borders ecosystem for neurophysiological data science. eLife. 2022;11 doi: 10.7554/eLife.78362. https://elifesciences.org/articles/78362 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 52. Nashaat M.A., Oraby H., Sachdev R.N.S., Winter Y., Larkum M.E. Air-Track: a real-world floating environment for active sensing in head-fixed mice. J. Neurophysiol. 2016;116:1542–1553. doi: 10.1152/jn.00088.2016. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 53. Abraham N.M., Guerin D., Bhaukaurally K., Carleton A. Similar Odor Discrimination Behavior in Head-Restrained and Freely Moving Mice. PLoS One. 2012;7 doi: 10.1371/journal.pone.0051789. https://dx.plos.org/10.1371/journal.pone.0051789 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 54. Ceballo S., Bourg J., Kempf A., Piwkowska Z., Daret A., Pinson P., Deneux T., Rumpel S., Bathellier B. Cortical recruitment determines learning dynamics and strategy. Nat. Commun. 2019;10:1479. doi: 10.1038/s41467-019-09450-0. https://www.nature.com/articles/s41467-019-09450-0 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 55. Dudchenko P.A. An overview of the tasks used to test working memory in rodents. Neurosci. Biobehav. Rev. 2004;28:699–709. doi: 10.1016/j.neubiorev.2004.09.002. [ DOI ] [ PubMed ] [ Google Scholar ] 56. Gibson J.R., Maunsell J.H. Sensory Modality Specificity of Neural Activity Related to Memory in Visual Cortex. J. Neurophysiol. 1997;78:1263–1275. doi: 10.1152/jn.1997.78.3.1263. [ DOI ] [ PubMed ] [ Google Scholar ] 57. Froudarakis E., Cohen U., Diamantaki M., Patel S., Tan Z., Muhammad T., Walker E.Y., Reimer J., Berens P., Sompolinsky H., Tolias A.S. Object manifold geometry across the mouse cortical visual hierarchy. bioRxiv. 2020 doi: 10.1101/2020.08.20.258798. Preprint at. [ DOI ] [ Google Scholar ] 58. Roddick K.M., Schellinck H.M., Brown R.E. Olfactory delayed matching to sample performance in mice: Sex differences in the 5XFAD mouse model of Alzheimer’s disease. Behav. Brain Res. 2014;270:165–170. doi: 10.1016/j.bbr.2014.04.038. [ DOI ] [ PubMed ] [ Google Scholar ] 59. Sakurai Y. Hippocampal cells have behavioral correlates during the performance of an auditory working memory task in the rat. Behav. Neurosci. 1990;104:253–263. doi: 10.1037//0735-7044.104.2.253. [ DOI ] [ PubMed ] [ Google Scholar ] 60. Sul J.H., Jo S., Lee D., Jung M.W. Role of rodent secondary motor cortex in value-based action selection. Nat. Neurosci. 2011;14:1202–1208. doi: 10.1038/nn.2881. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 61. Findling C., Hubert F., International Brain Laboratory., et al. Brain-wide representations of prior information in mouse decision-making. Nature. 2025;645:192–200. doi: 10.1038/s41586-025-09226-1. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 62. Niell C.M., Stryker M.P. Modulation of Visual Responses by Behavioral State in Mouse Visual Cortex. Neuron. 2010;65:472–479. doi: 10.1016/j.neuron.2010.01.033. https://linkinghub.elsevier.com/retrieve/pii/S0896627310000590 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 63. Saleem A.B., Ayaz A., Jeffery K.J., Harris K.D., Carandini M. Integration of visual motion and locomotion in mouse visual cortex. Nat. Neurosci. 2013;16:1864–1869. doi: 10.1038/nn.3567. https://www.nature.com/articles/nn.3567 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 64. Dombeck D.A., Harvey C.D., Tian L., Looger L.L., Tank D.W. Functional imaging of hippocampal place cells at cellular resolution during virtual navigation. Nat. Neurosci. 2010;13:1433–1440. doi: 10.1038/nn.2648. https://www.nature.com/articles/nn.2648 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 65. Domnisoru C., Kinkhabwala A.A., Tank D.W. Membrane potential dynamics of grid cells. Nature. 2013;495:199–204. doi: 10.1038/nature11973. https://www.nature.com/articles/nature11973 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 66. Gau R., Noble S., Heuer K., Bottenhorn K.L., Bilgin I.P., Yang Y.F., Huntenburg J.M., Bayer J.M.M., Bethlehem R.A.I., Rhoads S.A., et al. Brainhack: Developing a culture of open, inclusive, community-driven neuroscience. Neuron. 2021;109:1769–1775. doi: 10.1016/j.neuron.2021.04.001. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 67. Vorhees C.V., Williams M.T. Morris water maze: procedures for assessing spatial and related forms of learning and memory. Nat. Protoc. 2006;1:848–858. doi: 10.1038/nprot.2006.116. https://www.nature.com/articles/nprot.2006.116 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 68. Poddar A.G.B., Kawai A.K. Bpod: an open-source, modular system for closed-loop behavioral control. eLife. 2021;10 doi: 10.7554/eLife.62499. [ DOI ] [ Google Scholar ] 69. Matikainen-Ankney B.A., Earnest T., Ali M., Casey E., Wang J.G., Sutton A.K., Legaria A.A., Barclay K.M., Murdaugh L.B., Norris M.R., et al. An open-source device for measuring food intake and operant behavior in rodent home-cages. eLife. 2021;10 doi: 10.7554/eLife.66173. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 70. Nashaat M., Oraby H., Krasniqi F., Goh-Sauerbier S.T., Bosc M., Koerner S., Karayel S., Kepecs A., Larkum M. The neural mechanisms of fast versus slow decision-making. bioRxiv. 2024 doi: 10.1101/2024.08.22.608577. Preprint at. [ DOI ] [ Google Scholar ] 71. Treutwein B. Adaptive psychophysical procedures. Vis. Res. 1995;35:2503–2522. [ PubMed ] [ Google Scholar ] 72. Garcıa-Perez M.A. Forced-choice staircases with fixed step sizes: asymptotic and small-sample properties. Vis. Res. 1998;38:1861–1881. doi: 10.1016/s0042-6989(97)00340-4. [ DOI ] [ PubMed ] [ Google Scholar ] 73. Leek M.R. Adaptive procedures in psychophysical research. Percept. Psychophys. 2001;63:1279–1292. doi: 10.3758/bf03194543. [ DOI ] [ PubMed ] [ Google Scholar ] 74. Melin M.D., Khanal A., Vasquez M., Ryan M.B., Churchland A.K., Couto J. Large scale, simultaneous, chronic neural recordings from multiple brain areas. bioRxiv. 2024 doi: 10.1101/2023.12.22.572441. https://www.biorxiv.org/content/early/2024/06/25/2023.12.22.572441 Preprint at. [ DOI ] [ Google Scholar ] 75. Birman D., Yang K.J., West S.J., Karsh B., Browning Y., International B.L., Siegle J.H., Steinmetz N.A. Pinpoint: trajectory planning for multi-probe electrophysiology and injections in an interactive web-based 3D environment. bioRxiv. 2023 doi: 10.1101/2023.07.14.548952. Preprint at. [ DOI ] [ Google Scholar ] 76. Siegle J.H., López A.C., Patel Y.A., Abramov K., Ohayon S., Voigts J. Open ephys: an open-source, plugin-based platform for multichannel electrophysiology. J. Neural. Eng. 2017;14 doi: 10.1088/1741-2552/aa5eea. [ DOI ] [ PubMed ] [ Google Scholar ] 77. Pachitariu M., Sridhar S., Pennington J., Stringer C. Spike sorting with kilosort4. Nat. Methods. 2024;21:914–921. doi: 10.1038/s41592-024-02232-7. https://www.nature.com/articles/s41592-024-02232-7 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 78. Buccino A.P., Hurwitz C.L., Garcia S., Magland J., Siegle J.H., Hurwitz R., Hennig M.H. Spikeinterface, a unified framework for spike sorting. eLife. 2020;9 doi: 10.7554/eLife.61834. https://elifesciences.org/articles/61834 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 79. Harris C.R., Millman K.J., Van Der Walt S.J., Gommers R., Virtanen P., Cournapeau D., Wieser E., Taylor J., Berg S., Smith N.J., et al. Array programming with NumPy. Nature. 2020;585:357–362. doi: 10.1038/s41586-020-2649-2. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 80. Virtanen P., Gommers R., Oliphant T.E., Haberland M., Reddy T., Cournapeau D., Burovski E., Peterson P., Weckesser W., Bright J., et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat. Methods. 2020;17:261–272. doi: 10.1038/s41592-019-0686-2. https://www.nature.com/articles/s41592-019-0686-2 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 81. Hunter J.D. Matplotlib: A 2D Graphics Environment. Comput. Sci. Eng. 2007;9:90–95. doi: 10.1109/mcse.2007.55. http://ieeexplore.ieee.org/document/4160265/ [ DOI ] [ Google Scholar ] 82. Waskom M. seaborn: statistical data visualization. J. Open Source Softw. 2021;6:3021. doi: 10.21105/joss.03021. [ DOI ] [ Google Scholar ] Associated Data This section collects any data citations, data availability statements, or supplementary materials included in this article. Supplementary Materials Video S1. Example behavioral sessions with EthoPy across systems, related to Figure 2 Indicative sessions across Homecage, Air-Track, spherical treadmill, and open-field systems. Download video file (2.3MB, mp4) Document S1. Figures S1–S6 and Table S1 mmc1.pdf (1.9MB, pdf) Document S2. Article plus supplemental information mmc3.pdf (13.6MB, pdf) Data Availability Statement • Data reported in the main figures of this paper are available at Figshare: https://doi.org/10.6084/m9.figshare.30111118 . • All original code has been deposited at Zenodo: https://doi.org/10.5281/zenodo.19110086 and at EthoPy’s repositories, https://github.com/ef-lab/ethopy_package , https://github.com/ef-lab/ethopy_control , https://github.com/ef-lab/ethopy_analysis , and https://github.com/ef-lab/ethopy_hardware , and is publicly available. • Any additional information required to reanalyze the data reported in this paper is available from the lead contact upon request. Articles from Cell Reports Methods are provided here courtesy of Elsevier ACTIONS View on publisher site PDF (5.0 MB) Cite Collections Permalink RESOURCES Similar articles Cited by other articles Links to NCBI Databases 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

Related documents

Record · ID 298729 · SHA-256 9f6ebaac58486f9b
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive