Skip to content
DraconiticResearch
Search Sources API
220,620 studies31 sourcesUpdated 2 min ago
PreprintCC BYbioRxiv

SPOUT: An open-source hardware and software platform to study decision making while manipulating and recording from neural activity

  1. 1Howard Hughes Medical Institute, Department of Neurobiology, Harvard Medical School, Boston MA, 02115, USA

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.

Related

  1. Measuring heart and breath: BRAMS-Bio-Box (B3), a wearable open-source physiology recording platform
    Mehrdad Bahadori, Jérémie Voix, Simone Dalla Bella +1
    PsyArXivPreprintCC BY 4.0Full textNeurosciencePhysiologyOSF
  2. Scalable hardware and software for high-density, multi-regional electrophysiology in non-human primates
    Agrita Dubey, Qiao Xu, Mohammad Khazali +5
    bioRxivPreprintCC BY-NCFull textNeurosciencebioRxivPMC
  3. Can tiered open-source mandates optimize innovation? A differential game study osn platform vs. independent project dynamics in foundation software ecosystems
    Bingyang Wu, Yongxi Yi
    PLOS OnePeer-reviewedCC BY 4.0Full textEcologyPLOS
  4. Varporter: a software platform for comprehensive genomic profiling (CGP) in cancer
    Masashi Idogawa, Kohichi Takada, Tasuku Mariya +6
    Human Genome VariationPeer-reviewedCC BYFull textGenetics & genomicsDOAJ
  5. PbAT: A user‐friendly R/Shiny platform for data‐driven decision support in crop improvement
    Krishnan P. Abhijith, K. K. Vinod, Ranjith Kumar Ellur +4
    Applications in Plant SciencesPeer-reviewedCC BY 4.0Full textPlant biologyPMC
BibTeX
@misc{boom2026spout,
  title = {{SPOUT: An open-source hardware and software platform to study decision making while manipulating and recording from neural activity}},
  author = {B. J. G. van den Boom and D. Dash and M. Rutherford and A. E. Girasole and P. Gorelik and O. Mazor and B. L. Sabatini},
  howpublished = {bioRxiv},
  year = {2026},
  month = aug,
  doi = {10.64898/2026.08.21.746318},
  url = {https://www.biorxiv.org/content/10.64898/2026.08.21.746318v2},
  note = {CC BY},
}
RIS
TY  - UNPB
TI  - SPOUT: An open-source hardware and software platform to study decision making while manipulating and recording from neural activity
AU  - B. J. G. van den Boom
AU  - D. Dash
AU  - M. Rutherford
AU  - A. E. Girasole
AU  - P. Gorelik
AU  - O. Mazor
AU  - B. L. Sabatini
PY  - 2026
DA  - 2026/08/21
PB  - bioRxiv
DO  - 10.64898/2026.08.21.746318
UR  - https://www.biorxiv.org/content/10.64898/2026.08.21.746318v2
AB  - 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.
ER  -