SPOUT: An open-source hardware and software platform to study decision making while manipulating and recording from neural activity
Bastijn J.G. van den BoomiD, Deeptirmayee Dash, Melanie Rutherford, Allison E. GirasoleiD, Pavel Gorelik, Ofer MazoriD, Bernardo Luis SabatiniiD
Abstract
Recording and manipulating brain activity during behavior is critical to understanding the underlying mechanisms of decision-making. Linking neural activity to behavior requires behavioral hardware and software tightly integrated with recording and perturbation systems on a shared clock. We built SPOUT (State-machine Platform for Operant Uni/dual-spout Tasks), an open-source, Teensy-driven state-machine platform with a MATLAB interface that runs 10 unique decision-making tasks (with dozens of variations available through user-friendly settings) to study behavior in head-restrained mice. The platform is built on several custom hardware devices: a dual-lick detector, headplate designs for optogenetics and two-photon calcium imaging, a three-axis motorized spout manipulator, and an optogenetics power modulator. The firmware differentiates between one and two lick spout tasks and can be controlled by a user-friendly interface. Task settings can be selected through the interface or by loading predefined settings files. We validated the clock speed and lick detection against an independent, external acquisition system and identified highly precise, sub-millisecond detection of single licks. Using a pseudo-random synchronization pulse generated by SPOUT, we corrected for missing data due to glitches in the acquisition system and clock drift. We showcase the versatility of SPOUT by training mice on an uninstructed lick-left/lick-right task in which the rewarded side switches unexpectedly and found that mice use history-dependent action-outcome associations to guide future behavior. Transiently inhibiting the anterior lateral motor cortex (ALM) during cue presentation induced contralateral deficits, without affecting ipsilateral trials. Finally, two-photon imaging of ALM neurons revealed stronger population responses during contralateral choice licks compared to ipsilateral ones. Together, SPOUT offers an open-source, affordable platform to study decision-making in head-restrained mice while combining neural recordings and manipulations.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Organism
- Assay
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- A Low-Cost, Modular Hardware and Software Platform for Head-Fixed Mouse Decision-Making Tasks
Maxwell B. Madden, Mahee Khatri, … Rafiq Huda·bioRxiv·Aug 17, 2026
- Open hardware low-cost system for behavioral experiments simultaneously with electrophysiological recordings.
L. A. A. Aguiar, N. A. P. Vasconcelos, … P. V. Carelli·bioRxiv·Apr 28, 2020
- An Open-Source Platform for Head-Fixed Operant and Consummatory Behavior
Adam Gordon-Fennell, Joumana M Barbakh, … Garret D. Stuber·eLifePeer-reviewed·Aug 9, 2023
- A self-initiated two-alternative forced choice paradigm for head-fixed mice
Fred Marbach, Anthony M. Zador·bioRxiv·Feb 2, 2017
- An Open-Source Joystick Platform for Investigating Forelimb Motor Control, Auditory-Motor Integration, and Value-Based Decision-Making in Head-Fixed Mice
Ivan Linares-García, Evan Alexander Iliakis, … David J. Margolis·eNeuroPeer-reviewed·Apr 1, 2025
- Track-Control, an automatic video-based real-time closed-loop behavioral control toolbox
G.-W. Zhang, L. Shen, … L. I. Zhang·bioRxiv·Dec 11, 2019