Neuroscience Cloud Analysis As a Service

Taiga Abe, Ian Kinsella, Shreya Saxena, E. Kelly Buchanan, João Couto, John D. Briggs, Sian Lee Kitt, Ryan Glassman, John Zhou, Liam Paninski, John P. CunninghambioRxiv 2020

Abstract

A major goal of computational neuroscience is the development of powerful data analyses that operate on large datasets. These analyses form an essential toolset to derive scientific insights from new experiments. Unfortunately, a major obstacle currently impedes progress: novel data analyses have a hidden dependence upon complex computing infrastructure (e.g. software dependencies, hardware), acting as an unaddressed deterrent to potential analysis users. While existing analyses are increasingly shared as open source software, the infrastructure needed to deploy these analyses – at scale, reproducibly, cheaply, and quickly – remains totally inaccessible to all but a minority of expert users. In this work we develop Neuroscience Cloud Analysis As a Service (NeuroCAAS): a fully automated analysis platform that makes state-of-the-art data analysis tools accessible to the neuroscience community. Based on modern large-scale computing advances, NeuroCAAS is an open source platform with a drag-and-drop interface, entirely removing the burden of infrastructure purchase, configuration, deployment, and maintenance from analysis users and developers alike. NeuroCAAS offers two major scientific benefits to any data analysis. First, NeuroCAAS provides automatic reproducibility of analyses at no extra effort to the analysis developer or user. Second, NeuroCAAS cleanly separates tool implementation from usage, allowing for immediate use of arbitrarily complex analyses, at scale. We show how these benefits drive the design of simpler, more powerful data analyses. Furthermore, we show that many popular data analysis tools offered through NeuroCAAS outperform typical analysis solutions (in terms of speed and cost) while improving ease of use, dispelling the myth that cloud compute is prohibitively expensive and technically inaccessible. By removing barriers to fast, efficient cloud computation, NeuroCAAS can dramatically accelerate both the dissemination and the effective use of cutting-edge analysis tools for neuroscientific discovery.

Introduction: The Infrastructure Bottleneck

In modern neuroscience, data is exploding in scale, from high-resolution behavioral video to massive neural recordings. While the community has developed powerful open-source tools like DeepLabCut or CaImAn, deploying them remains a significant challenge. The authors describe the status quo as "Infrastructure-as-Grad-Student" (IaGS): a model where trainees spend weeks troubleshooting Linux drivers, managing version conflicts, and configuring expensive GPU hardware.

The infrastructure stack for data analysis, ranging from hardware to core analysis.

This creates a massive barrier for experimentalists and leads to "it works on my machine" reproducibility issues. As shown in the infrastructure stack above, the "Core Analysis" sits atop multiple layers—Dependencies, System, and Hardware—all of which must be correctly configured for the analysis to run successfully. Manual management of these layers is prone to error and highly inefficient.

NeuroCAAS: Infrastructure-as-Code for Science

The core innovation of NeuroCAAS is the application of Infrastructure-as-Code (IaC) to scientific research. By automating the setup of hardware, software dependencies, and scaling, it eliminates the technical bottleneck of manual configuration. Key components include:

  • Blueprints: JSON-based configuration files defining the entire analysis stack—from AWS hardware (CPU/GPU/RAM) to the OS and software packages.
  • Immutable Analysis Environments: NeuroCAAS instantiates a fresh, identical environment for every job. Once the analysis is done, the environment is destroyed, ensuring 100% reproducibility.
  • Autonomous Job Manager: Built using AWS Lambda, this layer automatically "recruits" cloud resources when data is uploaded, runs the analysis, and delivers results.
  • Scalability: The system can process dozens of datasets in parallel, providing a massive speedup over local workstations.

Benchmarking and Performance

NeuroCAAS was benchmarked using standard neuroscience datasets, including CaImAn (calcium imaging), DeepLabCut (behavioral video), and LocaNMF (widefield imaging). Data sizes ranged from hundreds of MBs to nearly 80GB.

Comparison of management tools and field standards, showing the proportion of the infrastructure stack delegated to the user.

A survey of 10 popular neuroscience tools showed that while most manage version control and packages well, 0% managed the underlying hardware, storage, or GPU layers. As illustrated above, even with tools like Docker or Github, a significant portion of the stack remains "unmanaged" and must be handled by the user. NeuroCAAS fills this gap by providing a fully managed stack.

Key results include:

  • Efficiency: Significantly faster than local workstations for large-scale batch processing.
  • Cost-Effectiveness: For the CaImAn pipeline, a researcher would need to analyze roughly 100 datasets (8.39 GB each) every week for several years to make buying a local machine more cost-effective than using NeuroCAAS.
  • Low Per-Dataset Cost: Most analyses cost only a few US dollars per dataset.

Discussion: Democratizing High-Performance Computing

NeuroCAAS dispels the myth that cloud compute is prohibitively expensive and technically inaccessible. By coupling analysis code tightly with infrastructure blueprints, reproducibility becomes a fundamental property of the system. This democratizes expertise, allowing experimentalists with no "devops" knowledge to use high-performance computing pipelines.

Future work will focus on improving interactivity for tasks like manual labeling, addressing data transfer bottlenecks for labs with poor internet, and expanding the algorithm library to include spike sorting and real-time analysis.

Summary updated

BibTeX
@misc{abe2020neuroscience,
  author = {Taiga Abe and Ian Kinsella and Shreya Saxena and E. Kelly Buchanan and João Couto and John D. Briggs and Sian Lee Kitt and Ryan Glassman and John Zhou and Liam Paninski and John P. Cunningham},
  title = {{Neuroscience Cloud Analysis As a Service}},
  year = {2020},
  doi = {10.1101/2020.06.11.146746},
  howpublished = {bioRxiv},
}
Figure